tonpy.autogen package¶
Submodules¶
tonpy.autogen.block module¶
- class tonpy.autogen.block.AccStatusChange¶
Bases:
TLBComplex
- class Record_acst_deleted¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_acst_frozen¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_acst_unchanged¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- acst_deleted = 2¶
- acst_frozen = 1¶
- acst_unchanged = 0¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [1, 2, 2]¶
- cons_tag: List[int] = [0, 2, 3]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.Account¶
Bases:
TLBComplex
- class Record_account(addr: CellSlice | None = None, storage_stat: CellSlice | None = None, storage: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_account_none¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.AccountBlock¶
Bases:
TLBComplex
- class Record(account_addr: BitArray | None = None, transactions: CellSlice | None = None, state_update: Cell | None = None)¶
Bases:
RecordBase
- account_addr: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [5]¶
- class tonpy.autogen.block.AccountState¶
Bases:
TLBComplex
- class Record_account_active(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_account_frozen(state_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- state_hash: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_account_uninit¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- account_active = 2¶
- account_frozen = 1¶
- account_uninit = 0¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [2, 2, 1]¶
- cons_tag: List[int] = [0, 1, 1]¶
- class tonpy.autogen.block.AccountStatus¶
Bases:
TLBComplex
- class Record_acc_state_active¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_acc_state_frozen¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_acc_state_nonexist¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_acc_state_uninit¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- acc_state_active = 2¶
- acc_state_frozen = 1¶
- acc_state_nonexist = 3¶
- acc_state_uninit = 0¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 2¶
- cons_tag: List[int] = [0, 1, 2, 3]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.AccountStorage¶
Bases:
TLBComplex
- class Record(last_trans_lt: int | None = None, balance: CellSlice | None = None, state: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- last_trans_lt: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.Anycast¶
Bases:
TLBComplex
- class Record(depth: int | None = None, rewrite_pfx: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- depth: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- rewrite_pfx: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.BinTree(X_: TLB)¶
Bases:
TLBComplex
- class Record_bt_fork(left: Cell | None = None, right: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_bt_leaf(leaf: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.BinTreeAug(X_: TLB, Y_: TLB)¶
Bases:
TLBComplex
- class Record_bta_fork(left: Cell | None = None, right: Cell | None = None, extra: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_bta_leaf(extra: CellSlice | None = None, leaf: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.Bit¶
Bases:
TLBComplex
- class Record(x: bool | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- x: bool = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.BitstringSet(m_: int)¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.BlkMasterInfo¶
Bases:
TLBComplex
- class Record(master: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.BlkPrevInfo(m_: int)¶
Bases:
TLBComplex
- class Record_prev_blk_info(prev: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_prev_blks_info(prev1: Cell | None = None, prev2: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.Block¶
Bases:
TLBComplex
- class Record(global_id: int | None = None, info: Cell | None = None, value_flow: Cell | None = None, state_update: Cell | None = None, extra: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- global_id: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [300897706]¶
- class tonpy.autogen.block.BlockCreateFees¶
Bases:
TLBComplex
- class Record(masterchain_block_fee: CellSlice | None = None, basechain_block_fee: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [107]¶
- class tonpy.autogen.block.BlockCreateStats¶
Bases:
TLBComplex
- class Record_block_create_stats(counters: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_block_create_stats_ext(counters: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [23, 52]¶
- class tonpy.autogen.block.BlockExtra¶
Bases:
TLBComplex
- class Record(in_msg_descr: Cell | None = None, out_msg_descr: Cell | None = None, account_blocks: Cell | None = None, rand_seed: BitArray | None = None, created_by: BitArray | None = None, custom: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- created_by: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- rand_seed: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [1244919549]¶
- class tonpy.autogen.block.BlockIdExt¶
Bases:
TLBComplex
- class Record(shard_id: CellSlice | None = None, seq_no: int | None = None, root_hash: BitArray | None = None, file_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- file_hash: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- root_hash: BitArray = None¶
- seq_no: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.BlockInfo¶
Bases:
TLBComplex
- class Record(version: int | None = None, not_master: bool | None = None, after_merge: bool | None = None, before_split: bool | None = None, after_split: bool | None = None, want_split: bool | None = None, want_merge: bool | None = None, key_block: bool | None = None, vert_seqno_incr: bool | None = None, flags: int | None = None, seq_no: int | None = None, vert_seq_no: int | None = None, shard: CellSlice | None = None, gen_utime: int | None = None, start_lt: int | None = None, end_lt: int | None = None, gen_validator_list_hash_short: int | None = None, gen_catchain_seqno: int | None = None, min_ref_mc_seqno: int | None = None, prev_key_block_seqno: int | None = None, gen_software: CellSlice | None = None, master_ref: Cell | None = None, prev_ref: Cell | None = None, prev_vert_ref: Cell | None = None)¶
Bases:
RecordBase
- after_merge: bool = None¶
- after_split: bool = None¶
- before_split: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- end_lt: int = None¶
- flags: int = None¶
- gen_catchain_seqno: int = None¶
- gen_utime: int = None¶
- gen_validator_list_hash_short: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- key_block: bool = None¶
- min_ref_mc_seqno: int = None¶
- not_master: bool = None¶
- pack(cb: CellBuilder)¶
- prev_key_block_seqno: int = None¶
- seq_no: int = None¶
- start_lt: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- version: int = None¶
- vert_seq_no: int = None¶
- vert_seqno_incr: bool = None¶
- want_merge: bool = None¶
- want_split: bool = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [2613553543]¶
- class tonpy.autogen.block.BlockLimits¶
Bases:
TLBComplex
- class Record(bytes: CellSlice | None = None, gas: CellSlice | None = None, lt_delta: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [93]¶
- class tonpy.autogen.block.BlockProof¶
Bases:
TLBComplex
- class Record(proof_for: CellSlice | None = None, root: Cell | None = None, signatures: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [195]¶
- class tonpy.autogen.block.BlockSignatures¶
Bases:
TLBComplex
- class Record(validator_info: CellSlice | None = None, pure_signatures: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [17]¶
- class tonpy.autogen.block.BlockSignaturesPure¶
Bases:
TLBComplex
- class Record(sig_count: int | None = None, sig_weight: int | None = None, signatures: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- sig_count: int = None¶
- sig_weight: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.Bool¶
Bases:
TLBComplex
- class Record_bool_false¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_bool_true¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.BoolFalse¶
Bases:
TLBComplex
- class Record¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.BoolTrue¶
Bases:
TLBComplex
- class Record¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [1]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.Both(X_: TLB, Y_: TLB)¶
Bases:
TLBComplex
- class Record(first: CellSlice | None = None, second: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.BurningConfig¶
Bases:
TLBComplex
- class Record(blackhole_addr: CellSlice | None = None, fee_burn_num: int | None = None, fee_burn_denom: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- fee_burn_denom: int = None¶
- fee_burn_num: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [1]¶
- class tonpy.autogen.block.CatchainConfig¶
Bases:
TLBComplex
- class Record_catchain_config(mc_catchain_lifetime: int | None = None, shard_catchain_lifetime: int | None = None, shard_validators_lifetime: int | None = None, shard_validators_num: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mc_catchain_lifetime: int = None¶
- pack(cb: CellBuilder)¶
- shard_catchain_lifetime: int = None¶
- shard_validators_lifetime: int = None¶
- shard_validators_num: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_catchain_config_new(flags: int | None = None, shuffle_mc_validators: bool | None = None, mc_catchain_lifetime: int | None = None, shard_catchain_lifetime: int | None = None, shard_validators_lifetime: int | None = None, shard_validators_num: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mc_catchain_lifetime: int = None¶
- pack(cb: CellBuilder)¶
- shard_catchain_lifetime: int = None¶
- shard_validators_lifetime: int = None¶
- shard_validators_num: int = None¶
- shuffle_mc_validators: bool = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [193, 194]¶
- class tonpy.autogen.block.Certificate¶
Bases:
TLBComplex
- class Record(temp_key: CellSlice | None = None, valid_since: int | None = None, valid_until: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- valid_since: int = None¶
- valid_until: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [4]¶
- class tonpy.autogen.block.CertificateEnv¶
Bases:
TLBComplex
- class Record(certificate: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 28¶
- cons_tag: List[int] = [172071805]¶
- class tonpy.autogen.block.ChanConfig¶
Bases:
TLBComplex
- class Record(init_timeout: int | None = None, close_timeout: int | None = None, a_key: BitArray | None = None, b_key: BitArray | None = None, a_addr: Cell | None = None, b_addr: Cell | None = None, channel_id: int | None = None, min_A_extra: CellSlice | None = None)¶
Bases:
RecordBase
- a_key: BitArray = None¶
- b_key: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- channel_id: int = None¶
- close_timeout: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- init_timeout: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ChanData¶
Bases:
TLBComplex
- class Record(config: Cell | None = None, state: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ChanMsg¶
Bases:
TLBComplex
- class Record_chan_msg_close(extra_A: CellSlice | None = None, extra_B: CellSlice | None = None, promise: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chan_msg_init(inc_A: CellSlice | None = None, inc_B: CellSlice | None = None, min_A: CellSlice | None = None, min_B: CellSlice | None = None, channel_id: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- channel_id: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chan_msg_payout¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chan_msg_timeout¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- chan_msg_close = 3¶
- chan_msg_init = 0¶
- chan_msg_payout = 1¶
- chan_msg_timeout = 2¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [657553442, 939423760, 1126664744, 4069187971]¶
- class tonpy.autogen.block.ChanOp¶
Bases:
TLBComplex
- class Record(msg: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [2435332305]¶
- class tonpy.autogen.block.ChanPromise¶
Bases:
TLBComplex
- class Record(channel_id: int | None = None, promise_A: CellSlice | None = None, promise_B: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- channel_id: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ChanSignedMsg¶
Bases:
TLBComplex
- class Record(sig_A: CellSlice | None = None, sig_B: CellSlice | None = None, msg: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ChanSignedPromise¶
Bases:
TLBComplex
- class Record(sig: CellSlice | None = None, promise: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ChanState¶
Bases:
TLBComplex
- class Record_chan_state_close(signed_A: bool | None = None, signed_B: bool | None = None, promise_A: CellSlice | None = None, promise_B: CellSlice | None = None, expire_at: int | None = None, A: CellSlice | None = None, B: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- expire_at: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- signed_A: bool = None¶
- signed_B: bool = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chan_state_init(signed_A: bool | None = None, signed_B: bool | None = None, min_A: CellSlice | None = None, min_B: CellSlice | None = None, expire_at: int | None = None, A: CellSlice | None = None, B: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- expire_at: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- signed_A: bool = None¶
- signed_B: bool = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chan_state_payout(A: CellSlice | None = None, B: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- chan_state_close = 1¶
- chan_state_init = 0¶
- chan_state_payout = 2¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 3¶
- cons_tag: List[int] = [0, 1, 2]¶
- class tonpy.autogen.block.Coins¶
Bases:
TLBComplex
- class Record(grams: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.CommonMsgInfo¶
Bases:
TLBComplex
- class Record_ext_in_msg_info(src: CellSlice | None = None, dest: CellSlice | None = None, import_fee: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_ext_out_msg_info(src: CellSlice | None = None, dest: CellSlice | None = None, created_lt: int | None = None, created_at: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- created_at: int = None¶
- created_lt: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_int_msg_info(ihr_disabled: bool | None = None, bounce: bool | None = None, bounced: bool | None = None, src: CellSlice | None = None, dest: CellSlice | None = None, value: CellSlice | None = None, ihr_fee: CellSlice | None = None, fwd_fee: CellSlice | None = None, created_lt: int | None = None, created_at: int | None = None)¶
Bases:
RecordBase
- bounce: bool = None¶
- bounced: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- created_at: int = None¶
- created_lt: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- ihr_disabled: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- ext_in_msg_info = 1¶
- ext_out_msg_info = 2¶
- int_msg_info = 0¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [1, 2, 2]¶
- cons_tag: List[int] = [0, 2, 3]¶
- class tonpy.autogen.block.CommonMsgInfoRelaxed¶
Bases:
TLBComplex
- class Record_ext_out_msg_info(src: CellSlice | None = None, dest: CellSlice | None = None, created_lt: int | None = None, created_at: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- created_at: int = None¶
- created_lt: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_int_msg_info(ihr_disabled: bool | None = None, bounce: bool | None = None, bounced: bool | None = None, src: CellSlice | None = None, dest: CellSlice | None = None, value: CellSlice | None = None, ihr_fee: CellSlice | None = None, fwd_fee: CellSlice | None = None, created_lt: int | None = None, created_at: int | None = None)¶
Bases:
RecordBase
- bounce: bool = None¶
- bounced: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- created_at: int = None¶
- created_lt: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- ihr_disabled: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [1, 2]¶
- cons_tag: List[int] = [0, 3]¶
- class tonpy.autogen.block.ComplaintDescr¶
Bases:
TLBComplex
- class Record_no_blk_gen(from_utime: int | None = None, prod_info: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- from_utime: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_no_blk_gen_diff(prod_info_old: Cell | None = None, prod_info_new: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [1158581209, 3342315722]¶
- class tonpy.autogen.block.ComplaintPricing¶
Bases:
TLBComplex
- class Record(deposit: CellSlice | None = None, bit_price: CellSlice | None = None, cell_price: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [26]¶
- class tonpy.autogen.block.ComputeSkipReason¶
Bases:
TLBComplex
- class Record_cskip_bad_state¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cskip_no_gas¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cskip_no_state¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cskip_suspended¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- cskip_bad_state = 1¶
- cskip_no_gas = 2¶
- cskip_no_state = 0¶
- cskip_suspended = 3¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [2, 2, 2, 3]¶
- cons_tag: List[int] = [0, 1, 2, 6]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.ConfigParam(m_: int)¶
Bases:
TLBComplex
- class Record_config_block_limits(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_config_fwd_prices(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_config_gas_prices(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_config_mc_block_limits(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_config_mc_fwd_prices(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_config_mc_gas_prices(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons0(config_addr: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- config_addr: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons1(elector_addr: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- elector_addr: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons10(critical_params: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons11(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons12(workchains: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons13(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons14(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons15(validators_elected_for: int | None = None, elections_start_before: int | None = None, elections_end_before: int | None = None, stake_held_for: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- elections_end_before: int = None¶
- elections_start_before: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- stake_held_for: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- validators_elected_for: int = None¶
- class Record_cons16(max_validators: int | None = None, max_main_validators: int | None = None, min_validators: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_main_validators: int = None¶
- max_validators: int = None¶
- min_validators: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons17(min_stake: CellSlice | None = None, max_stake: CellSlice | None = None, min_total_stake: CellSlice | None = None, max_stake_factor: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_stake_factor: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons18(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons19(global_id: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- global_id: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons2(minter_addr: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- minter_addr: BitArray = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons28(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons29(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons3(fee_collector_addr: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- fee_collector_addr: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons31(fundamental_smc_addr: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons32(prev_validators: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons33(prev_temp_validators: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons34(cur_validators: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons35(cur_temp_validators: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons36(next_validators: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons37(next_temp_validators: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons39(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons4(dns_root_addr: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- dns_root_addr: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons40(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons43(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons44(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons5(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons6(mint_new_price: CellSlice | None = None, mint_add_price: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons7(to_mint: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons71(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons72(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons73(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons79(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons8(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons81(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons82(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons9(mandatory_params: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- config_block_limits = 15¶
- config_fwd_prices = 44¶
- config_gas_prices = 41¶
- config_mc_block_limits = 14¶
- config_mc_fwd_prices = 43¶
- config_mc_gas_prices = 40¶
- cons0 = 17¶
- cons1 = 18¶
- cons10 = 25¶
- cons11 = 37¶
- cons12 = 26¶
- cons13 = 13¶
- cons14 = 16¶
- cons15 = 27¶
- cons16 = 28¶
- cons17 = 29¶
- cons18 = 30¶
- cons19 = 31¶
- cons2 = 19¶
- cons28 = 38¶
- cons29 = 42¶
- cons3 = 20¶
- cons31 = 32¶
- cons32 = 7¶
- cons33 = 8¶
- cons34 = 9¶
- cons35 = 10¶
- cons36 = 11¶
- cons37 = 12¶
- cons39 = 33¶
- cons4 = 21¶
- cons40 = 5¶
- cons43 = 6¶
- cons44 = 0¶
- cons5 = 4¶
- cons6 = 22¶
- cons7 = 23¶
- cons71 = 34¶
- cons72 = 35¶
- cons73 = 36¶
- cons79 = 1¶
- cons8 = 39¶
- cons81 = 2¶
- cons82 = 3¶
- cons9 = 24¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.ConfigParams¶
Bases:
TLBComplex
- class Record(config_addr: BitArray | None = None, config: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- config_addr: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ConfigProposal¶
Bases:
TLBComplex
- class Record(param_id: int | None = None, param_value: CellSlice | None = None, if_hash_equal: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- param_id: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [243]¶
- class tonpy.autogen.block.ConfigProposalSetup¶
Bases:
TLBComplex
- class Record(min_tot_rounds: int | None = None, max_tot_rounds: int | None = None, min_wins: int | None = None, max_losses: int | None = None, min_store_sec: int | None = None, max_store_sec: int | None = None, bit_price: int | None = None, cell_price: int | None = None)¶
Bases:
RecordBase
- bit_price: int = None¶
- cell_pack()¶
- cell_price: int = None¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_losses: int = None¶
- max_store_sec: int = None¶
- max_tot_rounds: int = None¶
- min_store_sec: int = None¶
- min_tot_rounds: int = None¶
- min_wins: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [54]¶
- class tonpy.autogen.block.ConfigProposalStatus¶
Bases:
TLBComplex
- class Record(expires: int | None = None, proposal: Cell | None = None, is_critical: bool | None = None, voters: CellSlice | None = None, remaining_weight: int | None = None, validator_set_id: int | None = None, rounds_remaining: int | None = None, wins: int | None = None, losses: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- expires: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- is_critical: bool = None¶
- losses: int = None¶
- pack(cb: CellBuilder)¶
- remaining_weight: int = None¶
- rounds_remaining: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- validator_set_id: int = None¶
- wins: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [206]¶
- class tonpy.autogen.block.ConfigVotingSetup¶
Bases:
TLBComplex
- class Record(normal_params: Cell | None = None, critical_params: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [145]¶
- class tonpy.autogen.block.ConsensusConfig¶
Bases:
TLBComplex
- class Record_consensus_config(round_candidates: int | None = None, next_candidate_delay_ms: int | None = None, consensus_timeout_ms: int | None = None, fast_attempts: int | None = None, attempt_duration: int | None = None, catchain_max_deps: int | None = None, max_block_bytes: int | None = None, max_collated_bytes: int | None = None)¶
Bases:
RecordBase
- attempt_duration: int = None¶
- catchain_max_deps: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- consensus_timeout_ms: int = None¶
- fast_attempts: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_block_bytes: int = None¶
- max_collated_bytes: int = None¶
- next_candidate_delay_ms: int = None¶
- pack(cb: CellBuilder)¶
- round_candidates: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_consensus_config_new(flags: int | None = None, new_catchain_ids: bool | None = None, round_candidates: int | None = None, next_candidate_delay_ms: int | None = None, consensus_timeout_ms: int | None = None, fast_attempts: int | None = None, attempt_duration: int | None = None, catchain_max_deps: int | None = None, max_block_bytes: int | None = None, max_collated_bytes: int | None = None)¶
Bases:
RecordBase
- attempt_duration: int = None¶
- catchain_max_deps: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- consensus_timeout_ms: int = None¶
- fast_attempts: int = None¶
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_block_bytes: int = None¶
- max_collated_bytes: int = None¶
- new_catchain_ids: bool = None¶
- next_candidate_delay_ms: int = None¶
- pack(cb: CellBuilder)¶
- round_candidates: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_consensus_config_v3(flags: int | None = None, new_catchain_ids: bool | None = None, round_candidates: int | None = None, next_candidate_delay_ms: int | None = None, consensus_timeout_ms: int | None = None, fast_attempts: int | None = None, attempt_duration: int | None = None, catchain_max_deps: int | None = None, max_block_bytes: int | None = None, max_collated_bytes: int | None = None, proto_version: int | None = None)¶
Bases:
RecordBase
- attempt_duration: int = None¶
- catchain_max_deps: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- consensus_timeout_ms: int = None¶
- fast_attempts: int = None¶
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_block_bytes: int = None¶
- max_collated_bytes: int = None¶
- new_catchain_ids: bool = None¶
- next_candidate_delay_ms: int = None¶
- pack(cb: CellBuilder)¶
- proto_version: int = None¶
- round_candidates: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_consensus_config_v4(flags: int | None = None, new_catchain_ids: bool | None = None, round_candidates: int | None = None, next_candidate_delay_ms: int | None = None, consensus_timeout_ms: int | None = None, fast_attempts: int | None = None, attempt_duration: int | None = None, catchain_max_deps: int | None = None, max_block_bytes: int | None = None, max_collated_bytes: int | None = None, proto_version: int | None = None, catchain_max_blocks_coeff: int | None = None)¶
Bases:
RecordBase
- attempt_duration: int = None¶
- catchain_max_blocks_coeff: int = None¶
- catchain_max_deps: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- consensus_timeout_ms: int = None¶
- fast_attempts: int = None¶
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_block_bytes: int = None¶
- max_collated_bytes: int = None¶
- new_catchain_ids: bool = None¶
- next_candidate_delay_ms: int = None¶
- pack(cb: CellBuilder)¶
- proto_version: int = None¶
- round_candidates: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- consensus_config = 0¶
- consensus_config_new = 1¶
- consensus_config_v3 = 2¶
- consensus_config_v4 = 3¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [214, 215, 216, 217]¶
- class tonpy.autogen.block.Counters¶
Bases:
TLBComplex
- class Record(last_updated: int | None = None, total: int | None = None, cnt2048: int | None = None, cnt65536: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- cnt2048: int = None¶
- cnt65536: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- last_updated: int = None¶
- pack(cb: CellBuilder)¶
- total: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.CreatorStats¶
Bases:
TLBComplex
- class Record(mc_blocks: CellSlice | None = None, shard_blocks: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [4]¶
- class tonpy.autogen.block.CryptoSignature¶
Bases:
TLBComplex
- class Record_chained_signature(signed_cert: Cell | None = None, temp_key_signature: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons1(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [0, 4]¶
- cons_tag: List[int] = [0, 15]¶
- class tonpy.autogen.block.CryptoSignaturePair¶
Bases:
TLBComplex
- class Record(node_id_short: BitArray | None = None, sign: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- node_id_short: BitArray = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.CryptoSignatureSimple¶
Bases:
TLBComplex
- class Record(R: BitArray | None = None, s: BitArray | None = None)¶
Bases:
RecordBase
- R: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- s: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [5]¶
- class tonpy.autogen.block.CurrencyCollection¶
Bases:
TLBComplex
- class Record(grams: CellSlice | None = None, other: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.DNSRecord¶
Bases:
TLBComplex
- class Record_dns_adnl_address(adnl_addr: BitArray | None = None, flags: int | None = None, proto_list: CellSlice | None = None)¶
Bases:
RecordBase
- adnl_addr: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_dns_next_resolver(resolver: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_dns_smc_address(smc_addr: CellSlice | None = None, flags: int | None = None, cap_list: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_dns_storage_address(bag_id: BitArray | None = None)¶
Bases:
RecordBase
- bag_id: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_dns_text(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- dns_adnl_address = 3¶
- dns_next_resolver = 4¶
- dns_smc_address = 2¶
- dns_storage_address = 1¶
- dns_text = 0¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 16¶
- cons_tag: List[int] = [7898, 29811, 40915, 44289, 47763]¶
- class tonpy.autogen.block.DNS_RecordSet¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.DepthBalanceInfo¶
Bases:
TLBComplex
- class Record(split_depth: int | None = None, balance: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- split_depth: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.DictWithSimpleLibs¶
Bases:
TLBComplex
- class Record(library: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.Either(X_: TLB, Y_: TLB)¶
Bases:
TLBComplex
- class Record_left(value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_right(value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.EnqueuedMsg¶
Bases:
TLBComplex
- class Record(enqueued_lt: int | None = None, out_msg: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- enqueued_lt: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ExtBlkRef¶
Bases:
TLBComplex
- class Record(end_lt: int | None = None, seq_no: int | None = None, root_hash: BitArray | None = None, file_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- end_lt: int = None¶
- file_hash: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- root_hash: BitArray = None¶
- seq_no: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ExtraCurrencyCollection¶
Bases:
TLBComplex
- class Record(dict: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.FutureSplitMerge¶
Bases:
TLBComplex
- class Record_fsm_merge(merge_utime: int | None = None, interval: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- interval: int = None¶
- merge_utime: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_fsm_none¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_fsm_split(split_utime: int | None = None, interval: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- interval: int = None¶
- pack(cb: CellBuilder)¶
- split_utime: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [1, 2, 2]¶
- cons_tag: List[int] = [0, 2, 3]¶
- class tonpy.autogen.block.GasLimitsPrices¶
Bases:
TLBComplex
- class Record_gas_flat_pfx(flat_gas_limit: int | None = None, flat_gas_price: int | None = None, other: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- flat_gas_limit: int = None¶
- flat_gas_price: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_gas_prices(gas_price: int | None = None, gas_limit: int | None = None, gas_credit: int | None = None, block_gas_limit: int | None = None, freeze_due_limit: int | None = None, delete_due_limit: int | None = None)¶
Bases:
RecordBase
- block_gas_limit: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- delete_due_limit: int = None¶
- freeze_due_limit: int = None¶
- gas_credit: int = None¶
- gas_limit: int = None¶
- gas_price: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_gas_prices_ext(gas_price: int | None = None, gas_limit: int | None = None, special_gas_limit: int | None = None, gas_credit: int | None = None, block_gas_limit: int | None = None, freeze_due_limit: int | None = None, delete_due_limit: int | None = None)¶
Bases:
RecordBase
- block_gas_limit: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- delete_due_limit: int = None¶
- freeze_due_limit: int = None¶
- gas_credit: int = None¶
- gas_limit: int = None¶
- gas_price: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- special_gas_limit: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [209, 221, 222]¶
- class tonpy.autogen.block.GlobalVersion¶
Bases:
TLBComplex
- class Record(version: int | None = None, capabilities: int | None = None)¶
Bases:
RecordBase
- capabilities: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- version: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [196]¶
- class tonpy.autogen.block.Grams¶
Bases:
TLBComplex
- class Record(amount: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.HASH_UPDATE(X_: TLB)¶
Bases:
TLBComplex
- class Record(old_hash: BitArray | None = None, new_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- new_hash: BitArray = None¶
- old_hash: BitArray = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [114]¶
- class tonpy.autogen.block.Hashmap(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record(label: CellSlice | None = None, node: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- l: int = None¶
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.HashmapAug(m_: int, X_: TLB, Y_: TLB)¶
Bases:
TLBComplex
- class Record(label: CellSlice | None = None, node: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- l: int = None¶
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.HashmapAugE(m_: int, X_: TLB, Y_: TLB)¶
Bases:
TLBComplex
- class Record_ahme_empty(extra: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_ahme_root(root: Cell | None = None, extra: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.HashmapAugNode(m_: int, X_: TLB, Y_: TLB)¶
Bases:
TLBComplex
- class Record_ahmn_fork(left: Cell | None = None, right: Cell | None = None, extra: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_ahmn_leaf(extra: CellSlice | None = None, value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.HashmapE(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record_hme_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_hme_root(root: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.HashmapNode(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record_hmn_fork(left: Cell | None = None, right: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_hmn_leaf(value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.HmLabel(n_: int)¶
Bases:
TLBComplex
- class Record_hml_long(n: int | None = None, s: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- s: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_hml_same(v: bool | None = None, n: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- v: bool = None¶
- class Record_hml_short(len: CellSlice | None = None, s: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- s: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [1, 2, 2]¶
- cons_tag: List[int] = [0, 2, 3]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- n_: int = None¶
- class tonpy.autogen.block.IhrPendingInfo¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.IhrPendingSince¶
Bases:
TLBComplex
- class Record(import_lt: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- import_lt: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ImportFees¶
Bases:
TLBComplex
- class Record(fees_collected: CellSlice | None = None, value_imported: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.InMsg¶
Bases:
TLBComplex
- class Record_msg_discard_fin(in_msg: Cell | None = None, transaction_id: int | None = None, fwd_fee: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- transaction_id: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_discard_tr(in_msg: Cell | None = None, transaction_id: int | None = None, fwd_fee: CellSlice | None = None, proof_delivered: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- transaction_id: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_import_ext(msg: Cell | None = None, transaction: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_import_fin(in_msg: Cell | None = None, transaction: Cell | None = None, fwd_fee: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_import_ihr(msg: Cell | None = None, transaction: Cell | None = None, ihr_fee: CellSlice | None = None, proof_created: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_import_imm(in_msg: Cell | None = None, transaction: Cell | None = None, fwd_fee: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_import_tr(in_msg: Cell | None = None, out_msg: Cell | None = None, transit_fee: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- msg_discard_fin = 5¶
- msg_discard_tr = 6¶
- msg_import_ext = 0¶
- msg_import_fin = 3¶
- msg_import_ihr = 1¶
- msg_import_imm = 2¶
- msg_import_tr = 4¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 3¶
- cons_tag: List[int] = [0, 2, 3, 4, 5, 6, 7]¶
- class tonpy.autogen.block.InMsgDescr¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.IntermediateAddress¶
Bases:
TLBComplex
- class Record_interm_addr_ext(workchain_id: int | None = None, addr_pfx: int | None = None)¶
Bases:
RecordBase
- addr_pfx: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- workchain_id: int = None¶
- class Record_interm_addr_regular(use_dest_bits: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- use_dest_bits: int = None¶
- class Record_interm_addr_simple(workchain_id: int | None = None, addr_pfx: int | None = None)¶
Bases:
RecordBase
- addr_pfx: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- workchain_id: int = None¶
- class Tag(value)¶
Bases:
Enum
An enumeration.
- interm_addr_ext = 2¶
- interm_addr_regular = 0¶
- interm_addr_simple = 1¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [1, 2, 2]¶
- cons_tag: List[int] = [0, 2, 3]¶
- class tonpy.autogen.block.JettonBridgeParams¶
Bases:
TLBComplex
- class Record_jetton_bridge_params_v0(bridge_address: BitArray | None = None, oracles_address: BitArray | None = None, oracles: CellSlice | None = None, state_flags: int | None = None, burn_bridge_fee: CellSlice | None = None)¶
Bases:
RecordBase
- bridge_address: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- oracles_address: BitArray = None¶
- pack(cb: CellBuilder)¶
- state_flags: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_jetton_bridge_params_v1(bridge_address: BitArray | None = None, oracles_address: BitArray | None = None, oracles: CellSlice | None = None, state_flags: int | None = None, prices: Cell | None = None, external_chain_address: BitArray | None = None)¶
Bases:
RecordBase
- bridge_address: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- external_chain_address: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- oracles_address: BitArray = None¶
- pack(cb: CellBuilder)¶
- state_flags: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- jetton_bridge_params_v0 = 0¶
- jetton_bridge_params_v1 = 1¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.JettonBridgePrices¶
Bases:
TLBComplex
- class Record(bridge_burn_fee: CellSlice | None = None, bridge_mint_fee: CellSlice | None = None, wallet_min_tons_for_storage: CellSlice | None = None, wallet_gas_consumption: CellSlice | None = None, minter_min_tons_for_storage: CellSlice | None = None, discover_gas_consumption: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.KeyExtBlkRef¶
Bases:
TLBComplex
- class Record(key: bool | None = None, blk_ref: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- key: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.KeyMaxLt¶
Bases:
TLBComplex
- class Record(key: bool | None = None, max_end_lt: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- key: bool = None¶
- max_end_lt: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.LibDescr¶
Bases:
TLBComplex
- class Record(lib: Cell | None = None, publishers: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 2¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.LibRef¶
Bases:
TLBComplex
- class Record_libref_hash(lib_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- lib_hash: BitArray = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_libref_ref(library: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.MERKLE_PROOF(X_: TLB)¶
Bases:
TLBComplex
- class Record(virtual_hash: BitArray | None = None, depth: int | None = None, virtual_root: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- depth: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- virtual_hash: BitArray = None¶
- class Tag(value)¶
Bases:
Enum
An enumeration.
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [3]¶
- class tonpy.autogen.block.MERKLE_UPDATE(X_: TLB)¶
Bases:
TLBComplex
- class Record(old_hash: BitArray | None = None, new_hash: BitArray | None = None, old: Cell | None = None, new: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- new_hash: BitArray = None¶
- old_hash: BitArray = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [2]¶
- class tonpy.autogen.block.Maybe(X_: TLB)¶
Bases:
TLBComplex
- class Record_just(value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_nothing¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.McBlockExtra¶
Bases:
TLBComplex
- class Record(key_block: bool | None = None, shard_hashes: CellSlice | None = None, shard_fees: CellSlice | None = None, r1: Record | None = None, config: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- key_block: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 16¶
- cons_tag: List[int] = [52389]¶
- class tonpy.autogen.block.McBlockExtra_aux¶
Bases:
TLBComplex
- class Record(prev_blk_signatures: CellSlice | None = None, recover_create_msg: CellSlice | None = None, mint_msg: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.McStateExtra¶
Bases:
TLBComplex
- class Record(shard_hashes: CellSlice | None = None, config: CellSlice | None = None, r1: Record | None = None, global_balance: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 16¶
- cons_tag: List[int] = [52262]¶
- class tonpy.autogen.block.McStateExtra_aux¶
Bases:
TLBComplex
- class Record(flags: int | None = None, validator_info: CellSlice | None = None, prev_blocks: CellSlice | None = None, after_key_block: bool | None = None, last_key_block: CellSlice | None = None, block_create_stats: CellSlice | None = None)¶
Bases:
RecordBase
- after_key_block: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.Message(X_: TLB)¶
Bases:
TLBComplex
- class Record(info: CellSlice | None = None, init: CellSlice | None = None, body: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.MessageAny¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.MessageAnyBody¶
Bases:
TLBComplex
- class Record(body: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.MessageInit¶
Bases:
TLBComplex
- class Record(init: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.MessageRelaxed(X_: TLB)¶
Bases:
TLBComplex
- class Record(info: CellSlice | None = None, init: CellSlice | None = None, body: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.MisbehaviourPunishmentConfig¶
Bases:
TLBComplex
- class Record(default_flat_fine: CellSlice | None = None, default_proportional_fine: int | None = None, severity_flat_mult: int | None = None, severity_proportional_mult: int | None = None, unpunishable_interval: int | None = None, long_interval: int | None = None, long_flat_mult: int | None = None, long_proportional_mult: int | None = None, medium_interval: int | None = None, medium_flat_mult: int | None = None, medium_proportional_mult: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- default_proportional_fine: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- long_flat_mult: int = None¶
- long_interval: int = None¶
- long_proportional_mult: int = None¶
- medium_flat_mult: int = None¶
- medium_interval: int = None¶
- medium_proportional_mult: int = None¶
- pack(cb: CellBuilder)¶
- severity_flat_mult: int = None¶
- severity_proportional_mult: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- unpunishable_interval: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [1]¶
- class tonpy.autogen.block.MsgAddress¶
Bases:
TLBComplex
- class Record_cons1(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cons2(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- class tonpy.autogen.block.MsgAddressExt¶
Bases:
TLBComplex
- class Record_addr_extern(len: int | None = None, external_address: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- external_address: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- len: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_addr_none¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 2¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.MsgAddressInt¶
Bases:
TLBComplex
- class Record_addr_std(anycast: CellSlice | None = None, workchain_id: int | None = None, address: BitArray | None = None)¶
Bases:
RecordBase
- address: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- workchain_id: int = None¶
- class Record_addr_var(anycast: CellSlice | None = None, addr_len: int | None = None, workchain_id: int | None = None, address: BitArray | None = None)¶
Bases:
RecordBase
- addr_len: int = None¶
- address: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- workchain_id: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 2¶
- cons_tag: List[int] = [2, 3]¶
- class tonpy.autogen.block.MsgEnvelope¶
Bases:
TLBComplex
- class Record(cur_addr: CellSlice | None = None, next_addr: CellSlice | None = None, fwd_fee_remaining: CellSlice | None = None, msg: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [4]¶
- class tonpy.autogen.block.MsgForwardPrices¶
Bases:
TLBComplex
- class Record(lump_price: int | None = None, bit_price: int | None = None, cell_price: int | None = None, ihr_price_factor: int | None = None, first_frac: int | None = None, next_frac: int | None = None)¶
Bases:
RecordBase
- bit_price: int = None¶
- cell_pack()¶
- cell_price: int = None¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- first_frac: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- ihr_price_factor: int = None¶
- lump_price: int = None¶
- next_frac: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [234]¶
- class tonpy.autogen.block.OldMcBlocksInfo¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.OracleBridgeParams¶
Bases:
TLBComplex
- class Record(bridge_address: BitArray | None = None, oracle_mutlisig_address: BitArray | None = None, oracles: CellSlice | None = None, external_chain_address: BitArray | None = None)¶
Bases:
RecordBase
- bridge_address: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- external_chain_address: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- oracle_mutlisig_address: BitArray = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.OutAction¶
Bases:
TLBComplex
- class Record_action_change_library(mode: int | None = None, libref: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mode: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_action_reserve_currency(mode: int | None = None, currency: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mode: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_action_send_msg(mode: int | None = None, out_msg: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mode: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_action_set_code(new_code: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- action_change_library = 1¶
- action_reserve_currency = 2¶
- action_send_msg = 0¶
- action_set_code = 3¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [247711853, 653925844, 921090057, 2907562126]¶
- class tonpy.autogen.block.OutList(m_: int)¶
Bases:
TLBComplex
- class Record_out_list(prev: Cell | None = None, action: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_out_list_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.OutListNode¶
Bases:
TLBComplex
- class Record(prev: Cell | None = None, action: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.OutMsg¶
Bases:
TLBComplex
- class Record_msg_export_deq(out_msg: Cell | None = None, import_block_lt: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- import_block_lt: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_deq_imm(out_msg: Cell | None = None, reimport: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_deq_short(msg_env_hash: BitArray | None = None, next_workchain: int | None = None, next_addr_pfx: int | None = None, import_block_lt: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- import_block_lt: int = None¶
- msg_env_hash: BitArray = None¶
- next_addr_pfx: int = None¶
- next_workchain: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_ext(msg: Cell | None = None, transaction: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_imm(out_msg: Cell | None = None, transaction: Cell | None = None, reimport: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_new(out_msg: Cell | None = None, transaction: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_tr(out_msg: Cell | None = None, imported: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_msg_export_tr_req(out_msg: Cell | None = None, imported: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- msg_export_deq = 5¶
- msg_export_deq_imm = 4¶
- msg_export_deq_short = 6¶
- msg_export_ext = 0¶
- msg_export_imm = 2¶
- msg_export_new = 1¶
- msg_export_tr = 3¶
- msg_export_tr_req = 7¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [3, 3, 3, 3, 3, 4, 4, 3]¶
- cons_tag: List[int] = [0, 1, 2, 3, 4, 12, 13, 7]¶
- class tonpy.autogen.block.OutMsgDescr¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.OutMsgQueue¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.OutMsgQueueInfo¶
Bases:
TLBComplex
- class Record(out_queue: CellSlice | None = None, proc_info: CellSlice | None = None, ihr_pending: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ParamLimits¶
Bases:
TLBComplex
- class Record(underload: int | None = None, soft_limit: int | None = None, hard_limit: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- hard_limit: int = None¶
- pack(cb: CellBuilder)¶
- soft_limit: int = None¶
- underload: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [195]¶
- class tonpy.autogen.block.PfxHashmap(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record(label: CellSlice | None = None, node: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- l: int = None¶
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.PfxHashmapE(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record_phme_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_phme_root(root: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.PfxHashmapNode(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record_phmn_fork(left: Cell | None = None, right: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_phmn_leaf(value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.ProcessedInfo¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ProcessedUpto¶
Bases:
TLBComplex
- class Record(last_msg_lt: int | None = None, last_msg_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- last_msg_hash: BitArray = None¶
- last_msg_lt: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ProducerInfo¶
Bases:
TLBComplex
- class Record(utime: int | None = None, mc_blk_ref: CellSlice | None = None, state_proof: Cell | None = None, prod_proof: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- utime: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [52]¶
- class tonpy.autogen.block.ProofChain(m_: int)¶
Bases:
TLBComplex
- class Record_chain_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chain_link(root: Cell | None = None, prev: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.ProtoList¶
Bases:
TLBComplex
- class Record_proto_list_next(head: Enum | None = None, tail: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- head: Enum = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_proto_list_nil¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.Protocol¶
Bases:
TLBComplex
- class Record¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 16¶
- cons_tag: List[int] = [18516]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.ShardAccount¶
Bases:
TLBComplex
- class Record(account: Cell | None = None, last_trans_hash: BitArray | None = None, last_trans_lt: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- last_trans_hash: BitArray = None¶
- last_trans_lt: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardAccountBlocks¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardAccounts¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardDescr¶
Bases:
TLBComplex
- class Record_shard_descr(seq_no: int | None = None, reg_mc_seqno: int | None = None, start_lt: int | None = None, end_lt: int | None = None, root_hash: BitArray | None = None, file_hash: BitArray | None = None, before_split: bool | None = None, before_merge: bool | None = None, want_split: bool | None = None, want_merge: bool | None = None, nx_cc_updated: bool | None = None, flags: int | None = None, next_catchain_seqno: int | None = None, next_validator_shard: int | None = None, min_ref_mc_seqno: int | None = None, gen_utime: int | None = None, split_merge_at: CellSlice | None = None, fees_collected: CellSlice | None = None, funds_created: CellSlice | None = None)¶
Bases:
RecordBase
- before_merge: bool = None¶
- before_split: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- end_lt: int = None¶
- file_hash: BitArray = None¶
- flags: int = None¶
- gen_utime: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- min_ref_mc_seqno: int = None¶
- next_catchain_seqno: int = None¶
- next_validator_shard: int = None¶
- nx_cc_updated: bool = None¶
- pack(cb: CellBuilder)¶
- reg_mc_seqno: int = None¶
- root_hash: BitArray = None¶
- seq_no: int = None¶
- start_lt: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- want_merge: bool = None¶
- want_split: bool = None¶
- class Record_shard_descr_new(seq_no: int | None = None, reg_mc_seqno: int | None = None, start_lt: int | None = None, end_lt: int | None = None, root_hash: BitArray | None = None, file_hash: BitArray | None = None, before_split: bool | None = None, before_merge: bool | None = None, want_split: bool | None = None, want_merge: bool | None = None, nx_cc_updated: bool | None = None, flags: int | None = None, next_catchain_seqno: int | None = None, next_validator_shard: int | None = None, min_ref_mc_seqno: int | None = None, gen_utime: int | None = None, split_merge_at: CellSlice | None = None, r1: Record | None = None)¶
Bases:
RecordBase
- before_merge: bool = None¶
- before_split: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- end_lt: int = None¶
- file_hash: BitArray = None¶
- flags: int = None¶
- gen_utime: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- min_ref_mc_seqno: int = None¶
- next_catchain_seqno: int = None¶
- next_validator_shard: int = None¶
- nx_cc_updated: bool = None¶
- pack(cb: CellBuilder)¶
- reg_mc_seqno: int = None¶
- root_hash: BitArray = None¶
- seq_no: int = None¶
- start_lt: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- want_merge: bool = None¶
- want_split: bool = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [10, 11]¶
- class tonpy.autogen.block.ShardDescr_aux¶
Bases:
TLBComplex
- class Record(fees_collected: CellSlice | None = None, funds_created: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardFeeCreated¶
Bases:
TLBComplex
- class Record(fees: CellSlice | None = None, create: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardFees¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardHashes¶
Bases:
TLBComplex
- class Record(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardIdent¶
Bases:
TLBComplex
- class Record(shard_pfx_bits: int | None = None, workchain_id: int | None = None, shard_prefix: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- shard_pfx_bits: int = None¶
- shard_prefix: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- workchain_id: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 2¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ShardState¶
Bases:
TLBComplex
- class Record_cons1(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_split_state(left: Cell | None = None, right: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [32, 0]¶
- cons_tag: List[int] = [1597144485, 0]¶
- class tonpy.autogen.block.ShardStateUnsplit¶
Bases:
TLBComplex
- class Record(global_id: int | None = None, shard_id: CellSlice | None = None, seq_no: int | None = None, vert_seq_no: int | None = None, gen_utime: int | None = None, gen_lt: int | None = None, min_ref_mc_seqno: int | None = None, out_msg_queue_info: Cell | None = None, before_split: bool | None = None, accounts: Cell | None = None, r1: Record | None = None, custom: CellSlice | None = None)¶
Bases:
RecordBase
- before_split: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- gen_lt: int = None¶
- gen_utime: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- global_id: int = None¶
- min_ref_mc_seqno: int = None¶
- pack(cb: CellBuilder)¶
- seq_no: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- vert_seq_no: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [2418257890]¶
- class tonpy.autogen.block.ShardStateUnsplit_aux¶
Bases:
TLBComplex
- class Record(overload_history: int | None = None, underload_history: int | None = None, total_balance: CellSlice | None = None, total_validator_fees: CellSlice | None = None, libraries: CellSlice | None = None, master_ref: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- overload_history: int = None¶
- pack(cb: CellBuilder)¶
- underload_history: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.SigPubKey¶
Bases:
TLBComplex
- class Record(pubkey: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- pubkey: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [2390828938]¶
- class tonpy.autogen.block.SignedCertificate¶
Bases:
TLBComplex
- class Record(certificate: CellSlice | None = None, certificate_signature: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.SimpleLib¶
Bases:
TLBComplex
- class Record(public: bool | None = None, root: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- public: bool = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.SizeLimitsConfig¶
Bases:
TLBComplex
- class Record_size_limits_config(max_msg_bits: int | None = None, max_msg_cells: int | None = None, max_library_cells: int | None = None, max_vm_data_depth: int | None = None, max_ext_msg_size: int | None = None, max_ext_msg_depth: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_ext_msg_depth: int = None¶
- max_ext_msg_size: int = None¶
- max_library_cells: int = None¶
- max_msg_bits: int = None¶
- max_msg_cells: int = None¶
- max_vm_data_depth: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_size_limits_config_v2(max_msg_bits: int | None = None, max_msg_cells: int | None = None, max_library_cells: int | None = None, max_vm_data_depth: int | None = None, max_ext_msg_size: int | None = None, max_ext_msg_depth: int | None = None, max_acc_state_cells: int | None = None, max_acc_state_bits: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_acc_state_bits: int = None¶
- max_acc_state_cells: int = None¶
- max_ext_msg_depth: int = None¶
- max_ext_msg_size: int = None¶
- max_library_cells: int = None¶
- max_msg_bits: int = None¶
- max_msg_cells: int = None¶
- max_vm_data_depth: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [1, 2]¶
- class tonpy.autogen.block.SmartContractInfo¶
Bases:
TLBComplex
- class Record(actions: int | None = None, msgs_sent: int | None = None, unixtime: int | None = None, block_lt: int | None = None, trans_lt: int | None = None, rand_seed: BitArray | None = None, balance_remaining: CellSlice | None = None, myself: CellSlice | None = None, global_config: CellSlice | None = None)¶
Bases:
RecordBase
- actions: int = None¶
- block_lt: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- msgs_sent: int = None¶
- pack(cb: CellBuilder)¶
- rand_seed: BitArray = None¶
- trans_lt: int = None¶
- unixtime: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [124711402]¶
- class tonpy.autogen.block.SmcCapList¶
Bases:
TLBComplex
- class Record_cap_list_next(head: CellSlice | None = None, tail: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cap_list_nil¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.SmcCapability¶
Bases:
TLBComplex
- class Record_cap_is_wallet¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cap_method_pubkey¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cap_method_seqno¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_cap_name(name: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- cap_is_wallet = 0¶
- cap_method_pubkey = 2¶
- cap_method_seqno = 1¶
- cap_name = 3¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [16, 16, 16, 8]¶
- cons_tag: List[int] = [8567, 21361, 29172, 255]¶
- class tonpy.autogen.block.Special¶
Bases:
TLBComplex
- class Record(special: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.SplitDepth¶
Bases:
TLBComplex
- class Record(split_depth: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.SplitMergeInfo¶
Bases:
TLBComplex
- class Record(cur_shard_pfx_len: int | None = None, acc_split_depth: int | None = None, this_addr: BitArray | None = None, sibling_addr: BitArray | None = None)¶
Bases:
RecordBase
- acc_split_depth: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- cur_shard_pfx_len: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- sibling_addr: BitArray = None¶
- this_addr: BitArray = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.StateInit¶
Bases:
TLBComplex
- class Record(split_depth: CellSlice | None = None, special: CellSlice | None = None, code: CellSlice | None = None, data: CellSlice | None = None, library: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.StateInitWithLibs¶
Bases:
TLBComplex
- class Record(split_depth: CellSlice | None = None, special: CellSlice | None = None, code: CellSlice | None = None, data: CellSlice | None = None, library: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.StorageInfo¶
Bases:
TLBComplex
- class Record(used: CellSlice | None = None, last_paid: int | None = None, due_payment: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- last_paid: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.StoragePrices¶
Bases:
TLBComplex
- class Record(utime_since: int | None = None, bit_price_ps: int | None = None, cell_price_ps: int | None = None, mc_bit_price_ps: int | None = None, mc_cell_price_ps: int | None = None)¶
Bases:
RecordBase
- bit_price_ps: int = None¶
- cell_pack()¶
- cell_price_ps: int = None¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mc_bit_price_ps: int = None¶
- mc_cell_price_ps: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- utime_since: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [204]¶
- class tonpy.autogen.block.StorageUsed¶
Bases:
TLBComplex
- class Record(cells: CellSlice | None = None, bits: CellSlice | None = None, public_cells: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.StorageUsedShort¶
Bases:
TLBComplex
- class Record(cells: CellSlice | None = None, bits: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.SuspendedAddressList¶
Bases:
TLBComplex
- class Record(addresses: CellSlice | None = None, suspended_until: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- suspended_until: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TYPE_1658¶
Bases:
TLBComplex
- class Record(from_prev_blk: CellSlice | None = None, to_next_blk: CellSlice | None = None, imported: CellSlice | None = None, exported: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TYPE_1659¶
Bases:
TLBComplex
- class Record(fees_imported: CellSlice | None = None, recovered: CellSlice | None = None, created: CellSlice | None = None, minted: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.Text¶
Bases:
TLBComplex
- class Record(chunks: int | None = None, rest: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- chunks: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TextChunkRef(m_: int)¶
Bases:
TLBComplex
- class Record_chunk_ref(ref: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_chunk_ref_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.TextChunks(m_: int)¶
Bases:
TLBComplex
- class Record_text_chunk(len: int | None = None, data: BitArray | None = None, next: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- data: BitArray = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- len: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_text_chunk_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.TickTock¶
Bases:
TLBComplex
- class Record(tick: bool | None = None, tock: bool | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- tick: bool = None¶
- tock: bool = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TopBlockDescr¶
Bases:
TLBComplex
- class Record(proof_for: CellSlice | None = None, signatures: CellSlice | None = None, len: int | None = None, chain: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- len: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [213]¶
- class tonpy.autogen.block.TopBlockDescrSet¶
Bases:
TLBComplex
- class Record(collection: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [1254590963]¶
- class tonpy.autogen.block.TrActionPhase¶
Bases:
TLBComplex
- class Record(success: bool | None = None, valid: bool | None = None, no_funds: bool | None = None, status_change: Enum | None = None, total_fwd_fees: CellSlice | None = None, total_action_fees: CellSlice | None = None, result_code: int | None = None, result_arg: CellSlice | None = None, tot_actions: int | None = None, spec_actions: int | None = None, skipped_actions: int | None = None, msgs_created: int | None = None, action_list_hash: BitArray | None = None, tot_msg_size: CellSlice | None = None)¶
Bases:
RecordBase
- action_list_hash: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- msgs_created: int = None¶
- no_funds: bool = None¶
- pack(cb: CellBuilder)¶
- result_code: int = None¶
- skipped_actions: int = None¶
- spec_actions: int = None¶
- status_change: Enum = None¶
- success: bool = None¶
- tot_actions: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- valid: bool = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TrBouncePhase¶
Bases:
TLBComplex
- class Record_tr_phase_bounce_negfunds¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_tr_phase_bounce_nofunds(msg_size: CellSlice | None = None, req_fwd_fees: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_tr_phase_bounce_ok(msg_size: CellSlice | None = None, msg_fees: CellSlice | None = None, fwd_fees: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- tr_phase_bounce_negfunds = 0¶
- tr_phase_bounce_nofunds = 1¶
- tr_phase_bounce_ok = 2¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [2, 2, 1]¶
- cons_tag: List[int] = [0, 1, 1]¶
- class tonpy.autogen.block.TrComputePhase¶
Bases:
TLBComplex
- class Record_tr_phase_compute_skipped(reason: Enum | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- reason: Enum = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_tr_phase_compute_vm(success: bool | None = None, msg_state_used: bool | None = None, account_activated: bool | None = None, gas_fees: CellSlice | None = None, r1: Record | None = None)¶
Bases:
RecordBase
- account_activated: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- msg_state_used: bool = None¶
- pack(cb: CellBuilder)¶
- success: bool = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- tr_phase_compute_skipped = 0¶
- tr_phase_compute_vm = 1¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.TrComputePhase_aux¶
Bases:
TLBComplex
- class Record(gas_used: CellSlice | None = None, gas_limit: CellSlice | None = None, gas_credit: CellSlice | None = None, mode: int | None = None, exit_code: int | None = None, exit_arg: CellSlice | None = None, vm_steps: int | None = None, vm_init_state_hash: BitArray | None = None, vm_final_state_hash: BitArray | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- exit_code: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- mode: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- vm_final_state_hash: BitArray = None¶
- vm_init_state_hash: BitArray = None¶
- vm_steps: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TrCreditPhase¶
Bases:
TLBComplex
- class Record(due_fees_collected: CellSlice | None = None, credit: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TrStoragePhase¶
Bases:
TLBComplex
- class Record(storage_fees_collected: CellSlice | None = None, storage_fees_due: CellSlice | None = None, status_change: Enum | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- status_change: Enum = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.Transaction¶
Bases:
TLBComplex
- class Record(account_addr: BitArray | None = None, lt: int | None = None, prev_trans_hash: BitArray | None = None, prev_trans_lt: int | None = None, now: int | None = None, outmsg_cnt: int | None = None, orig_status: Enum | None = None, end_status: Enum | None = None, r1: Record | None = None, total_fees: CellSlice | None = None, state_update: Cell | None = None, description: Cell | None = None)¶
Bases:
RecordBase
- account_addr: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- end_status: Enum = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- lt: int = None¶
- now: int = None¶
- orig_status: Enum = None¶
- outmsg_cnt: int = None¶
- pack(cb: CellBuilder)¶
- prev_trans_hash: BitArray = None¶
- prev_trans_lt: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [7]¶
- class tonpy.autogen.block.TransactionDescr¶
Bases:
TLBComplex
- class Record_trans_merge_install(split_info: CellSlice | None = None, prepare_transaction: Cell | None = None, storage_ph: CellSlice | None = None, credit_ph: CellSlice | None = None, compute_ph: CellSlice | None = None, action: CellSlice | None = None, aborted: bool | None = None, destroyed: bool | None = None)¶
Bases:
RecordBase
- aborted: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- destroyed: bool = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_trans_merge_prepare(split_info: CellSlice | None = None, storage_ph: CellSlice | None = None, aborted: bool | None = None)¶
Bases:
RecordBase
- aborted: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_trans_ord(credit_first: bool | None = None, storage_ph: CellSlice | None = None, credit_ph: CellSlice | None = None, compute_ph: CellSlice | None = None, action: CellSlice | None = None, aborted: bool | None = None, bounce: CellSlice | None = None, destroyed: bool | None = None)¶
Bases:
RecordBase
- aborted: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- credit_first: bool = None¶
- destroyed: bool = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_trans_split_install(split_info: CellSlice | None = None, prepare_transaction: Cell | None = None, installed: bool | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- installed: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_trans_split_prepare(split_info: CellSlice | None = None, storage_ph: CellSlice | None = None, compute_ph: CellSlice | None = None, action: CellSlice | None = None, aborted: bool | None = None, destroyed: bool | None = None)¶
Bases:
RecordBase
- aborted: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- destroyed: bool = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_trans_storage(storage_ph: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_trans_tick_tock(is_tock: bool | None = None, storage_ph: CellSlice | None = None, compute_ph: CellSlice | None = None, action: CellSlice | None = None, aborted: bool | None = None, destroyed: bool | None = None)¶
Bases:
RecordBase
- aborted: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- destroyed: bool = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- is_tock: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- trans_merge_install = 6¶
- trans_merge_prepare = 5¶
- trans_ord = 0¶
- trans_split_install = 4¶
- trans_split_prepare = 3¶
- trans_storage = 1¶
- trans_tick_tock = 2¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [4, 4, 3, 4, 4, 4, 4]¶
- cons_tag: List[int] = [0, 1, 1, 4, 5, 6, 7]¶
- class tonpy.autogen.block.Transaction_aux¶
Bases:
TLBComplex
- class Record(in_msg: CellSlice | None = None, out_msgs: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.TrueT¶
Bases:
TLBComplex
- class Record¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.Unary¶
Bases:
TLBComplex
- class Record_unary_succ(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_unary_zero¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- class tonpy.autogen.block.Unit¶
Bases:
TLBComplex
- class Record¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- fetch_enum(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) int ¶
Fetch enum tag value from
CellSlice
of typeTLB
|br|- Parameters:
cs – CellSlice to fetch enum tag value from
- Returns:
Enum tag value of type
TLB
store incs: CellSlice
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- store_enum_from(cb: CellBuilder, value: int | None = None) bool ¶
Store enum
value
fromself.cons_tag
to cb: CellBuilder |br| Ifself.const_tag
is exact (tags are matched positions in lexicographic order) then will storevalue
|br| Ifvalue is None
andTLB.Tag is constant
will store constantTLB.Tag
else will raise an error |br|- Parameters:
cb – CellBuilder to store enum to
value – Value or enum position to store enum from
- Returns:
True
- class tonpy.autogen.block.ValidatorBaseInfo¶
Bases:
TLBComplex
- class Record(validator_list_hash_short: int | None = None, catchain_seqno: int | None = None)¶
Bases:
RecordBase
- catchain_seqno: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- validator_list_hash_short: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ValidatorComplaint¶
Bases:
TLBComplex
- class Record(validator_pubkey: BitArray | None = None, description: Cell | None = None, created_at: int | None = None, severity: int | None = None, reward_addr: int | None = None, paid: CellSlice | None = None, suggested_fine: CellSlice | None = None, suggested_fine_part: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- created_at: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- reward_addr: int = None¶
- severity: int = None¶
- suggested_fine_part: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- validator_pubkey: BitArray = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [188]¶
- class tonpy.autogen.block.ValidatorComplaintStatus¶
Bases:
TLBComplex
- class Record(complaint: Cell | None = None, voters: CellSlice | None = None, vset_id: int | None = None, weight_remaining: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- vset_id: int = None¶
- weight_remaining: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [45]¶
- class tonpy.autogen.block.ValidatorDescr¶
Bases:
TLBComplex
- class Record_validator(public_key: CellSlice | None = None, weight: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- weight: int = None¶
- class Record_validator_addr(public_key: CellSlice | None = None, weight: int | None = None, adnl_addr: BitArray | None = None)¶
Bases:
RecordBase
- adnl_addr: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- weight: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [83, 115]¶
- class tonpy.autogen.block.ValidatorInfo¶
Bases:
TLBComplex
- class Record(validator_list_hash_short: int | None = None, catchain_seqno: int | None = None, nx_cc_updated: bool | None = None)¶
Bases:
RecordBase
- catchain_seqno: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- nx_cc_updated: bool = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- validator_list_hash_short: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.ValidatorSet¶
Bases:
TLBComplex
- class Record_validators(utime_since: int | None = None, utime_until: int | None = None, total: int | None = None, main: int | None = None, list: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- main: int = None¶
- pack(cb: CellBuilder)¶
- total: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- utime_since: int = None¶
- utime_until: int = None¶
- class Record_validators_ext(utime_since: int | None = None, utime_until: int | None = None, total: int | None = None, main: int | None = None, total_weight: int | None = None, list: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- main: int = None¶
- pack(cb: CellBuilder)¶
- total: int = None¶
- total_weight: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- utime_since: int = None¶
- utime_until: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [17, 18]¶
- class tonpy.autogen.block.ValidatorSignedTempKey¶
Bases:
TLBComplex
- class Record(key: Cell | None = None, signature: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [4]¶
- class tonpy.autogen.block.ValidatorTempKey¶
Bases:
TLBComplex
- class Record(adnl_addr: BitArray | None = None, temp_public_key: CellSlice | None = None, seqno: int | None = None, valid_until: int | None = None)¶
Bases:
RecordBase
- adnl_addr: BitArray = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- seqno: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- valid_until: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [3]¶
- class tonpy.autogen.block.ValueFlow¶
Bases:
TLBComplex
- class Record_value_flow(r1: Record | None = None, fees_collected: CellSlice | None = None, r2: Record | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_value_flow_v2(r1: Record | None = None, fees_collected: CellSlice | None = None, burned: CellSlice | None = None, r2: Record | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 32¶
- cons_tag: List[int] = [1052743863, 3101986299]¶
- class tonpy.autogen.block.VarHashmap(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record(label: CellSlice | None = None, node: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- l: int = None¶
- m: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VarHashmapE(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record_vhme_empty¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vhme_root(root: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 1¶
- cons_tag: List[int] = [0, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VarHashmapNode(m_: int, X_: TLB)¶
Bases:
TLBComplex
- class Record_vhmn_cont(branch: bool | None = None, child: Cell | None = None, value: CellSlice | None = None)¶
Bases:
RecordBase
- branch: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vhmn_fork(left: Cell | None = None, right: Cell | None = None, value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vhmn_leaf(value: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [2, 2, 1]¶
- cons_tag: List[int] = [0, 1, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VarInteger(m_: int)¶
Bases:
TLBComplex
- class Record(len: int | None = None, value: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- len: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- value: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VarUInteger(m_: int)¶
Bases:
TLBComplex
- class Record(len: int | None = None, value: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- len: int = None¶
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- value: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VmCellSlice¶
Bases:
TLBComplex
- class Record(cell: Cell | None = None, st_bits: int | None = None, end_bits: int | None = None, st_ref: int | None = None, end_ref: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- end_bits: int = None¶
- end_ref: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- st_bits: int = None¶
- st_ref: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmCont¶
Bases:
TLBComplex
- class Record_vmc_again(body: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_envelope(cdata: CellSlice | None = None, next: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_pushint(value: int | None = None, next: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- value: int = None¶
- class Record_vmc_quit(exit_code: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- exit_code: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_quit_exc¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_repeat(count: int | None = None, body: Cell | None = None, after: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- count: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_std(cdata: CellSlice | None = None, code: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_until(body: Cell | None = None, after: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_while_body(cond: Cell | None = None, body: Cell | None = None, after: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vmc_while_cond(cond: Cell | None = None, body: Cell | None = None, after: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- vmc_again = 6¶
- vmc_envelope = 1¶
- vmc_pushint = 9¶
- vmc_quit = 2¶
- vmc_quit_exc = 3¶
- vmc_repeat = 4¶
- vmc_std = 0¶
- vmc_until = 5¶
- vmc_while_body = 8¶
- vmc_while_cond = 7¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [2, 2, 4, 4, 5, 6, 6, 6, 6, 4]¶
- cons_tag: List[int] = [0, 1, 8, 9, 20, 48, 49, 50, 51, 15]¶
- class tonpy.autogen.block.VmControlData¶
Bases:
TLBComplex
- class Record(nargs: CellSlice | None = None, stack: CellSlice | None = None, save: CellSlice | None = None, cp: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmGasLimits¶
Bases:
TLBComplex
- class Record(remaining: int | None = None, r1: Record | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- remaining: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmGasLimits_aux¶
Bases:
TLBComplex
- class Record(max_limit: int | None = None, cur_limit: int | None = None, credit: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- credit: int = None¶
- cur_limit: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_limit: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmLibraries¶
Bases:
TLBComplex
- class Record(libraries: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmSaveList¶
Bases:
TLBComplex
- class Record(cregs: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmStack¶
Bases:
TLBComplex
- class Record(depth: int | None = None, stack: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- depth: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.VmStackList(m_: int)¶
Bases:
TLBComplex
- class Record_vm_stk_cons(rest: Cell | None = None, tos: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_nil¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VmStackValue¶
Bases:
TLBComplex
- class Record_vm_stk_builder(cell: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_cell(cell: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_cont(cont: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_int(value: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- value: int = None¶
- class Record_vm_stk_nan¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_null¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_slice(x: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_stk_tinyint(value: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- value: int = None¶
- class Record_vm_stk_tuple(len: int | None = None, data: CellSlice | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- len: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- vm_stk_builder = 6¶
- vm_stk_cell = 4¶
- vm_stk_cont = 7¶
- vm_stk_int = 2¶
- vm_stk_nan = 3¶
- vm_stk_null = 0¶
- vm_stk_slice = 5¶
- vm_stk_tinyint = 1¶
- vm_stk_tuple = 8¶
- always_special()¶
Is current type marked as special cell or not
- cons_len: List[int] | int = [8, 8, 15, 16, 8, 8, 8, 8, 8]¶
- cons_tag: List[int] = [0, 1, 256, 767, 3, 4, 5, 6, 7]¶
- class tonpy.autogen.block.VmTuple(m_: int)¶
Bases:
TLBComplex
- class Record_vm_tuple_nil¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_tuple_tcons(head: CellSlice | None = None, tail: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.VmTupleRef(m_: int)¶
Bases:
TLBComplex
- class Record_vm_tupref_any(ref: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- n: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_tupref_nil¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Record_vm_tupref_single(entry: Cell | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- class Tag(value)¶
Bases:
Enum
An enumeration.
- vm_tupref_any = 2¶
- vm_tupref_nil = 0¶
- vm_tupref_single = 1¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 0¶
- cons_tag: List[int] = [0, 0, 0]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶
- class tonpy.autogen.block.WcSplitMergeTimings¶
Bases:
TLBComplex
- class Record(split_merge_delay: int | None = None, split_merge_interval: int | None = None, min_split_merge_interval: int | None = None, max_split_merge_delay: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_split_merge_delay: int = None¶
- min_split_merge_interval: int = None¶
- pack(cb: CellBuilder)¶
- split_merge_delay: int = None¶
- split_merge_interval: int = None¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [0]¶
- class tonpy.autogen.block.WorkchainDescr¶
Bases:
TLBComplex
- class Record_workchain(enabled_since: int | None = None, actual_min_split: int | None = None, min_split: int | None = None, max_split: int | None = None, basic: bool | None = None, active: bool | None = None, accept_msgs: bool | None = None, flags: int | None = None, zerostate_root_hash: BitArray | None = None, zerostate_file_hash: BitArray | None = None, version: int | None = None, format: CellSlice | None = None)¶
Bases:
RecordBase
- accept_msgs: bool = None¶
- active: bool = None¶
- actual_min_split: int = None¶
- basic: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- enabled_since: int = None¶
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_split: int = None¶
- min_split: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- version: int = None¶
- zerostate_file_hash: BitArray = None¶
- zerostate_root_hash: BitArray = None¶
- class Record_workchain_v2(enabled_since: int | None = None, actual_min_split: int | None = None, min_split: int | None = None, max_split: int | None = None, basic: bool | None = None, active: bool | None = None, accept_msgs: bool | None = None, flags: int | None = None, zerostate_root_hash: BitArray | None = None, zerostate_file_hash: BitArray | None = None, version: int | None = None, format: CellSlice | None = None, split_merge_timings: CellSlice | None = None)¶
Bases:
RecordBase
- accept_msgs: bool = None¶
- active: bool = None¶
- actual_min_split: int = None¶
- basic: bool = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- enabled_since: int = None¶
- flags: int = None¶
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_split: int = None¶
- min_split: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- version: int = None¶
- zerostate_file_hash: BitArray = None¶
- zerostate_root_hash: BitArray = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 8¶
- cons_tag: List[int] = [166, 167]¶
- class tonpy.autogen.block.WorkchainFormat(m_: int)¶
Bases:
TLBComplex
- class Record_wfmt_basic(vm_version: int | None = None, vm_mode: int | None = None)¶
Bases:
RecordBase
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- vm_mode: int = None¶
- vm_version: int = None¶
- class Record_wfmt_ext(min_addr_len: int | None = None, max_addr_len: int | None = None, addr_len_step: int | None = None, workchain_type_id: int | None = None)¶
Bases:
RecordBase
- addr_len_step: int = None¶
- cell_pack()¶
- cell_unpack(cell_ref: Cell, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current Cell as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br| If after unpack Cell contains some data - return False |br|- Parameters:
cell_ref – Cell to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- get_tag()¶
Get current TLB.Record constructor tag
- get_tag_enum()¶
Get current TLB.Record constructor tag in
Enum
type ofTLB.Tag
- get_tag_len()¶
Get length of bits for current TLB.Record constructor tag
- get_type_class()¶
Get TLB type of current record
- max_addr_len: int = None¶
- min_addr_len: int = None¶
- pack(cb: CellBuilder)¶
- unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = True) bool ¶
Unpack current CellSlice as TLB.Record to fields, if success return True |br| All field values store in class object. If
rec_unpack
is True - unpack all types with recursion |br| Note: simple types that contains only from tags don’t needrec_unpack
, they will be fetched immediately |br|- Parameters:
cs – CellSlice to be fetched as TLB.Record
rec_unpack – Need to unpack all types with recursion
strict – If False some failed to parse subtypes can be None
- Returns:
Is unpack was success
- workchain_type_id: int = None¶
- always_special()¶
Is current type marked as special cell or not
- cons_len_exact = 4¶
- cons_tag: List[int] = [0, 1]¶
- get_tag(cs: CellSlice) Tag | None ¶
Fetch tag from CellSlice
cs
and returnTLB.Tag
enum |br| :param cs: CellSlice to fetch tag from :return:TLB.Tag
enum
- m_: int = None¶