tonpy.types.tlb_types package

Submodules

tonpy.types.tlb_types.builtins module

class tonpy.types.tlb_types.builtins.Bits(x: int)

Bases: TLB

args_cell_pack(x: str)
args_pack(cb: CellBuilder, x: str)
store_ref_or_tlb(cb: CellBuilder, value)
unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = False) str

Unpack current TLB and return TLB.Record if success, else return None |br|

By default, rec_unpack is False because for large TLB structures it can be slow. |br| More simple way is to skip needed structures one by one and load to python objects only needed ones. |br|

Parameters:
  • cs – CellSlice to unpack TLB from

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

TLB.Record instance or None

class tonpy.types.tlb_types.builtins.Int(x: int)

Bases: TLB

args_cell_pack(x: int)
args_pack(cb: CellBuilder, x: int)
store_ref_or_tlb(cb: CellBuilder, value)
unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = False) int

Unpack current TLB and return TLB.Record if success, else return None |br|

By default, rec_unpack is False because for large TLB structures it can be slow. |br| More simple way is to skip needed structures one by one and load to python objects only needed ones. |br|

Parameters:
  • cs – CellSlice to unpack TLB from

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

TLB.Record instance or None

class tonpy.types.tlb_types.builtins.UInt(x: int)

Bases: TLB

args_cell_pack(x: int)
args_pack(cb: CellBuilder, x: int)
store_ref_or_tlb(cb: CellBuilder, value)
unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = False) int

Unpack current TLB and return TLB.Record if success, else return None |br|

By default, rec_unpack is False because for large TLB structures it can be slow. |br| More simple way is to skip needed structures one by one and load to python objects only needed ones. |br|

Parameters:
  • cs – CellSlice to unpack TLB from

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

TLB.Record instance or None

tonpy.types.tlb_types.complex module

class tonpy.types.tlb_types.complex.TLBComplex

Bases: TLB

constants = {'t_AccStatusChange': <tonpy.autogen.block.AccStatusChange object>, 't_Account': <tonpy.autogen.block.Account object>, 't_AccountBlock': <tonpy.autogen.block.AccountBlock object>, 't_AccountState': <tonpy.autogen.block.AccountState object>, 't_AccountStatus': <tonpy.autogen.block.AccountStatus object>, 't_AccountStorage': <tonpy.autogen.block.AccountStorage object>, 't_Anycast': <tonpy.autogen.block.Anycast object>, 't_Anything': <tonpy.types.tlb_types.reft.tAny object>, 't_BinTree_ShardDescr': <tonpy.autogen.block.BinTree object>, 't_Bit': <tonpy.autogen.block.Bit object>, 't_BlkMasterInfo': <tonpy.autogen.block.BlkMasterInfo object>, 't_BlkPrevInfo_0': <tonpy.autogen.block.BlkPrevInfo object>, 't_Block': <tonpy.autogen.block.Block object>, 't_BlockCreateFees': <tonpy.autogen.block.BlockCreateFees object>, 't_BlockCreateStats': <tonpy.autogen.block.BlockCreateStats object>, 't_BlockExtra': <tonpy.autogen.block.BlockExtra object>, 't_BlockIdExt': <tonpy.autogen.block.BlockIdExt object>, 't_BlockInfo': <tonpy.autogen.block.BlockInfo object>, 't_BlockLimits': <tonpy.autogen.block.BlockLimits object>, 't_BlockProof': <tonpy.autogen.block.BlockProof object>, 't_BlockSignatures': <tonpy.autogen.block.BlockSignatures object>, 't_BlockSignaturesPure': <tonpy.autogen.block.BlockSignaturesPure object>, 't_Bool': <tonpy.autogen.block.Bool object>, 't_BoolFalse': <tonpy.autogen.block.BoolFalse object>, 't_BoolTrue': <tonpy.autogen.block.BoolTrue object>, 't_BurningConfig': <tonpy.autogen.block.BurningConfig object>, 't_CatchainConfig': <tonpy.autogen.block.CatchainConfig object>, 't_Cell': <tonpy.types.tlb_types.reft.FakeCell object>, 't_Certificate': <tonpy.autogen.block.Certificate object>, 't_CertificateEnv': <tonpy.autogen.block.CertificateEnv object>, 't_ChanConfig': <tonpy.autogen.block.ChanConfig object>, 't_ChanData': <tonpy.autogen.block.ChanData object>, 't_ChanMsg': <tonpy.autogen.block.ChanMsg object>, 't_ChanOp': <tonpy.autogen.block.ChanOp object>, 't_ChanPromise': <tonpy.autogen.block.ChanPromise object>, 't_ChanSignedMsg': <tonpy.autogen.block.ChanSignedMsg object>, 't_ChanSignedPromise': <tonpy.autogen.block.ChanSignedPromise object>, 't_ChanState': <tonpy.autogen.block.ChanState object>, 't_Coins': <tonpy.autogen.block.Coins object>, 't_CommonMsgInfo': <tonpy.autogen.block.CommonMsgInfo object>, 't_CommonMsgInfoRelaxed': <tonpy.autogen.block.CommonMsgInfoRelaxed object>, 't_ComplaintDescr': <tonpy.autogen.block.ComplaintDescr object>, 't_ComplaintPricing': <tonpy.autogen.block.ComplaintPricing object>, 't_ComputeSkipReason': <tonpy.autogen.block.ComputeSkipReason object>, 't_ConfigParams': <tonpy.autogen.block.ConfigParams object>, 't_ConfigProposal': <tonpy.autogen.block.ConfigProposal object>, 't_ConfigProposalSetup': <tonpy.autogen.block.ConfigProposalSetup object>, 't_ConfigProposalStatus': <tonpy.autogen.block.ConfigProposalStatus object>, 't_ConfigVotingSetup': <tonpy.autogen.block.ConfigVotingSetup object>, 't_ConsensusConfig': <tonpy.autogen.block.ConsensusConfig object>, 't_Counters': <tonpy.autogen.block.Counters object>, 't_CreatorStats': <tonpy.autogen.block.CreatorStats object>, 't_CryptoSignature': <tonpy.autogen.block.CryptoSignature object>, 't_CryptoSignaturePair': <tonpy.autogen.block.CryptoSignaturePair object>, 't_CryptoSignatureSimple': <tonpy.autogen.block.CryptoSignatureSimple object>, 't_CurrencyCollection': <tonpy.autogen.block.CurrencyCollection object>, 't_DNSRecord': <tonpy.autogen.block.DNSRecord object>, 't_DNS_RecordSet': <tonpy.autogen.block.DNS_RecordSet object>, 't_DepthBalanceInfo': <tonpy.autogen.block.DepthBalanceInfo object>, 't_DictWithSimpleLibs': <tonpy.autogen.block.DictWithSimpleLibs object>, 't_Either_Any_Ref_Any': <tonpy.autogen.block.Either object>, 't_Either_StateInit_Ref_StateInit': <tonpy.autogen.block.Either object>, 't_EnqueuedMsg': <tonpy.autogen.block.EnqueuedMsg object>, 't_ExtBlkRef': <tonpy.autogen.block.ExtBlkRef object>, 't_ExtraCurrencyCollection': <tonpy.autogen.block.ExtraCurrencyCollection object>, 't_FutureSplitMerge': <tonpy.autogen.block.FutureSplitMerge object>, 't_GasLimitsPrices': <tonpy.autogen.block.GasLimitsPrices object>, 't_GlobalVersion': <tonpy.autogen.block.GlobalVersion object>, 't_Grams': <tonpy.autogen.block.Grams object>, 't_HASH_UPDATE_Account': <tonpy.autogen.block.HASH_UPDATE object>, 't_HashmapAugE_256_AccountBlock_CurrencyCollection': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_256_CreatorStats_uint32': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_256_InMsg_ImportFees': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_256_OutMsg_CurrencyCollection': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_256_ShardAccount_DepthBalanceInfo': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_32_KeyExtBlkRef_KeyMaxLt': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_352_EnqueuedMsg_uint64': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAugE_96_ShardFeeCreated_ShardFeeCreated': <tonpy.autogen.block.HashmapAugE object>, 't_HashmapAug_64_Ref_Transaction_CurrencyCollection': <tonpy.autogen.block.HashmapAug object>, 't_HashmapE_15_Ref_Message_Any': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_16_CryptoSignaturePair': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_16_TrueT': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_16_ValidatorDescr': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_16_uint32': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_CreatorStats': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_LibDescr': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_Ref_Cell': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_Ref_DNSRecord': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_SimpleLib': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_TrueT': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_ValidatorSignedTempKey': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_256_uint256': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_288_Unit': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_320_IhrPendingSince': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_32_Ref_BinTree_ShardDescr': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_32_VarUInteger_32': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_32_WorkchainDescr': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_4_VmStackValue': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_96_ProcessedUpto': <tonpy.autogen.block.HashmapE object>, 't_HashmapE_96_Ref_TopBlockDescr': <tonpy.autogen.block.HashmapE object>, 't_Hashmap_16_ValidatorDescr': <tonpy.autogen.block.Hashmap object>, 't_Hashmap_256_TrueT': <tonpy.autogen.block.Hashmap object>, 't_Hashmap_32_Ref_Cell': <tonpy.autogen.block.Hashmap object>, 't_Hashmap_32_StoragePrices': <tonpy.autogen.block.Hashmap object>, 't_Hashmap_32_TrueT': <tonpy.autogen.block.Hashmap object>, 't_IhrPendingInfo': <tonpy.autogen.block.IhrPendingInfo object>, 't_IhrPendingSince': <tonpy.autogen.block.IhrPendingSince object>, 't_ImportFees': <tonpy.autogen.block.ImportFees object>, 't_InMsg': <tonpy.autogen.block.InMsg object>, 't_InMsgDescr': <tonpy.autogen.block.InMsgDescr object>, 't_IntermediateAddress': <tonpy.autogen.block.IntermediateAddress object>, 't_JettonBridgeParams': <tonpy.autogen.block.JettonBridgeParams object>, 't_JettonBridgePrices': <tonpy.autogen.block.JettonBridgePrices object>, 't_KeyExtBlkRef': <tonpy.autogen.block.KeyExtBlkRef object>, 't_KeyMaxLt': <tonpy.autogen.block.KeyMaxLt object>, 't_LibDescr': <tonpy.autogen.block.LibDescr object>, 't_LibRef': <tonpy.autogen.block.LibRef object>, 't_MERKLE_PROOF_Block': <tonpy.autogen.block.MERKLE_PROOF object>, 't_MERKLE_PROOF_ShardState': <tonpy.autogen.block.MERKLE_PROOF object>, 't_MERKLE_UPDATE_ShardState': <tonpy.autogen.block.MERKLE_UPDATE object>, 't_Maybe_Anycast': <tonpy.autogen.block.Maybe object>, 't_Maybe_BlkMasterInfo': <tonpy.autogen.block.Maybe object>, 't_Maybe_Cell': <tonpy.autogen.block.Maybe object>, 't_Maybe_Either_StateInit_Ref_StateInit': <tonpy.autogen.block.Maybe object>, 't_Maybe_ExtBlkRef': <tonpy.autogen.block.Maybe object>, 't_Maybe_Grams': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_BlockSignatures': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_Cell': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_InMsg': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_McBlockExtra': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_McStateExtra': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_Message_Any': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_TrActionPhase': <tonpy.autogen.block.Maybe object>, 't_Maybe_Ref_bits512': <tonpy.autogen.block.Maybe object>, 't_Maybe_TickTock': <tonpy.autogen.block.Maybe object>, 't_Maybe_TrBouncePhase': <tonpy.autogen.block.Maybe object>, 't_Maybe_TrCreditPhase': <tonpy.autogen.block.Maybe object>, 't_Maybe_TrStoragePhase': <tonpy.autogen.block.Maybe object>, 't_Maybe_VarUInteger_3': <tonpy.autogen.block.Maybe object>, 't_Maybe_VmStack': <tonpy.autogen.block.Maybe object>, 't_Maybe_bits256': <tonpy.autogen.block.Maybe object>, 't_Maybe_int16': <tonpy.autogen.block.Maybe object>, 't_Maybe_int32': <tonpy.autogen.block.Maybe object>, 't_Maybe_natwidth_5': <tonpy.autogen.block.Maybe object>, 't_Maybe_uint13': <tonpy.autogen.block.Maybe object>, 't_Maybe_uint256': <tonpy.autogen.block.Maybe object>, 't_McBlockExtra': <tonpy.autogen.block.McBlockExtra object>, 't_McBlockExtra_aux': <tonpy.autogen.block.McBlockExtra_aux object>, 't_McStateExtra': <tonpy.autogen.block.McStateExtra object>, 't_McStateExtra_aux': <tonpy.autogen.block.McStateExtra_aux object>, 't_MessageAny': <tonpy.autogen.block.MessageAny object>, 't_MessageAnyBody': <tonpy.autogen.block.MessageAnyBody object>, 't_MessageInit': <tonpy.autogen.block.MessageInit object>, 't_MessageRelaxed_Any': <tonpy.autogen.block.MessageRelaxed object>, 't_Message_Any': <tonpy.autogen.block.Message object>, 't_MisbehaviourPunishmentConfig': <tonpy.autogen.block.MisbehaviourPunishmentConfig object>, 't_MsgAddress': <tonpy.autogen.block.MsgAddress object>, 't_MsgAddressExt': <tonpy.autogen.block.MsgAddressExt object>, 't_MsgAddressInt': <tonpy.autogen.block.MsgAddressInt object>, 't_MsgEnvelope': <tonpy.autogen.block.MsgEnvelope object>, 't_MsgForwardPrices': <tonpy.autogen.block.MsgForwardPrices object>, 't_Nat': <tonpy.types.tlb_types.nat.NatWidth object>, 't_OldMcBlocksInfo': <tonpy.autogen.block.OldMcBlocksInfo object>, 't_OracleBridgeParams': <tonpy.autogen.block.OracleBridgeParams object>, 't_OutAction': <tonpy.autogen.block.OutAction object>, 't_OutListNode': <tonpy.autogen.block.OutListNode object>, 't_OutMsg': <tonpy.autogen.block.OutMsg object>, 't_OutMsgDescr': <tonpy.autogen.block.OutMsgDescr object>, 't_OutMsgQueue': <tonpy.autogen.block.OutMsgQueue object>, 't_OutMsgQueueInfo': <tonpy.autogen.block.OutMsgQueueInfo object>, 't_ParamLimits': <tonpy.autogen.block.ParamLimits object>, 't_ProcessedInfo': <tonpy.autogen.block.ProcessedInfo object>, 't_ProcessedUpto': <tonpy.autogen.block.ProcessedUpto object>, 't_ProducerInfo': <tonpy.autogen.block.ProducerInfo object>, 't_ProtoList': <tonpy.autogen.block.ProtoList object>, 't_Protocol': <tonpy.autogen.block.Protocol object>, 't_RefCell': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_Account': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_BinTree_ShardDescr': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_BlkMasterInfo': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_BlkPrevInfo_0': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_BlockExtra': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_BlockInfo': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_BlockSignatures': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ChanConfig': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ChanState': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ComplaintDescr': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ConfigProposal': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ConfigProposalSetup': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_DNSRecord': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ExtBlkRef': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_HASH_UPDATE_Account': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_Hashmap_32_Ref_Cell': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_InMsg': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_InMsgDescr': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_JettonBridgePrices': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_MERKLE_PROOF_Block': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_MERKLE_PROOF_ShardState': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_MERKLE_UPDATE_ShardState': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_McBlockExtra': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_McStateExtra': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_MessageRelaxed_Any': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_Message_Any': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_MsgAddressInt': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_MsgEnvelope': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_OutMsgDescr': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_OutMsgQueueInfo': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ProducerInfo': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ShardAccountBlocks': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ShardAccounts': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ShardStateUnsplit': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_SignedCertificate': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_StateInit': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1621': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1633': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1647': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1658': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1659': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1663': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1677': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1685': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TYPE_1732': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TopBlockDescr': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TrActionPhase': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_Transaction': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_TransactionDescr': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ValidatorComplaint': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ValidatorTempKey': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_ValueFlow': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_VmCont': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_VmStackValue': <tonpy.types.tlb_types.reft.RefT object>, 't_Ref_bits512': <tonpy.types.tlb_types.reft.RefT object>, 't_ShardAccount': <tonpy.autogen.block.ShardAccount object>, 't_ShardAccountBlocks': <tonpy.autogen.block.ShardAccountBlocks object>, 't_ShardAccounts': <tonpy.autogen.block.ShardAccounts object>, 't_ShardDescr': <tonpy.autogen.block.ShardDescr object>, 't_ShardDescr_aux': <tonpy.autogen.block.ShardDescr_aux object>, 't_ShardFeeCreated': <tonpy.autogen.block.ShardFeeCreated object>, 't_ShardFees': <tonpy.autogen.block.ShardFees object>, 't_ShardHashes': <tonpy.autogen.block.ShardHashes object>, 't_ShardIdent': <tonpy.autogen.block.ShardIdent object>, 't_ShardState': <tonpy.autogen.block.ShardState object>, 't_ShardStateUnsplit': <tonpy.autogen.block.ShardStateUnsplit object>, 't_ShardStateUnsplit_aux': <tonpy.autogen.block.ShardStateUnsplit_aux object>, 't_SigPubKey': <tonpy.autogen.block.SigPubKey object>, 't_SignedCertificate': <tonpy.autogen.block.SignedCertificate object>, 't_SimpleLib': <tonpy.autogen.block.SimpleLib object>, 't_SizeLimitsConfig': <tonpy.autogen.block.SizeLimitsConfig object>, 't_SmartContractInfo': <tonpy.autogen.block.SmartContractInfo object>, 't_SmcCapList': <tonpy.autogen.block.SmcCapList object>, 't_SmcCapability': <tonpy.autogen.block.SmcCapability object>, 't_Special': <tonpy.autogen.block.Special object>, 't_SplitDepth': <tonpy.autogen.block.SplitDepth object>, 't_SplitMergeInfo': <tonpy.autogen.block.SplitMergeInfo object>, 't_StateInit': <tonpy.autogen.block.StateInit object>, 't_StateInitWithLibs': <tonpy.autogen.block.StateInitWithLibs object>, 't_StorageInfo': <tonpy.autogen.block.StorageInfo object>, 't_StoragePrices': <tonpy.autogen.block.StoragePrices object>, 't_StorageUsed': <tonpy.autogen.block.StorageUsed object>, 't_StorageUsedShort': <tonpy.autogen.block.StorageUsedShort object>, 't_SuspendedAddressList': <tonpy.autogen.block.SuspendedAddressList object>, 't_TYPE_1658': <tonpy.autogen.block.TYPE_1658 object>, 't_TYPE_1659': <tonpy.autogen.block.TYPE_1659 object>, 't_Text': <tonpy.autogen.block.Text object>, 't_TickTock': <tonpy.autogen.block.TickTock object>, 't_TopBlockDescr': <tonpy.autogen.block.TopBlockDescr object>, 't_TopBlockDescrSet': <tonpy.autogen.block.TopBlockDescrSet object>, 't_TrActionPhase': <tonpy.autogen.block.TrActionPhase object>, 't_TrBouncePhase': <tonpy.autogen.block.TrBouncePhase object>, 't_TrComputePhase': <tonpy.autogen.block.TrComputePhase object>, 't_TrComputePhase_aux': <tonpy.autogen.block.TrComputePhase_aux object>, 't_TrCreditPhase': <tonpy.autogen.block.TrCreditPhase object>, 't_TrStoragePhase': <tonpy.autogen.block.TrStoragePhase object>, 't_Transaction': <tonpy.autogen.block.Transaction object>, 't_TransactionDescr': <tonpy.autogen.block.TransactionDescr object>, 't_Transaction_aux': <tonpy.autogen.block.Transaction_aux object>, 't_TrueT': <tonpy.autogen.block.TrueT object>, 't_Unary': <tonpy.autogen.block.Unary object>, 't_Unit': <tonpy.autogen.block.Unit object>, 't_ValidatorBaseInfo': <tonpy.autogen.block.ValidatorBaseInfo object>, 't_ValidatorComplaint': <tonpy.autogen.block.ValidatorComplaint object>, 't_ValidatorComplaintStatus': <tonpy.autogen.block.ValidatorComplaintStatus object>, 't_ValidatorDescr': <tonpy.autogen.block.ValidatorDescr object>, 't_ValidatorInfo': <tonpy.autogen.block.ValidatorInfo object>, 't_ValidatorSet': <tonpy.autogen.block.ValidatorSet object>, 't_ValidatorSignedTempKey': <tonpy.autogen.block.ValidatorSignedTempKey object>, 't_ValidatorTempKey': <tonpy.autogen.block.ValidatorTempKey object>, 't_ValueFlow': <tonpy.autogen.block.ValueFlow object>, 't_VarUInteger_16': <tonpy.autogen.block.VarUInteger object>, 't_VarUInteger_3': <tonpy.autogen.block.VarUInteger object>, 't_VarUInteger_32': <tonpy.autogen.block.VarUInteger object>, 't_VarUInteger_7': <tonpy.autogen.block.VarUInteger object>, 't_VmCellSlice': <tonpy.autogen.block.VmCellSlice object>, 't_VmCont': <tonpy.autogen.block.VmCont object>, 't_VmControlData': <tonpy.autogen.block.VmControlData object>, 't_VmGasLimits': <tonpy.autogen.block.VmGasLimits object>, 't_VmGasLimits_aux': <tonpy.autogen.block.VmGasLimits_aux object>, 't_VmLibraries': <tonpy.autogen.block.VmLibraries object>, 't_VmSaveList': <tonpy.autogen.block.VmSaveList object>, 't_VmStack': <tonpy.autogen.block.VmStack object>, 't_VmStackValue': <tonpy.autogen.block.VmStackValue object>, 't_WcSplitMergeTimings': <tonpy.autogen.block.WcSplitMergeTimings object>, 't_WorkchainDescr': <tonpy.autogen.block.WorkchainDescr object>, 't_bits256': <tonpy.types.tlb_types.builtins.Bits object>, 't_bits512': <tonpy.types.tlb_types.builtins.Bits object>, 't_int16': <tonpy.types.tlb_types.builtins.Int object>, 't_int257': <tonpy.types.tlb_types.builtins.Int object>, 't_int32': <tonpy.types.tlb_types.builtins.Int object>, 't_int64': <tonpy.types.tlb_types.builtins.Int object>, 't_int8': <tonpy.types.tlb_types.builtins.Int object>, 't_natleq_30': <tonpy.types.tlb_types.nat.NatLeq object>, 't_natleq_4': <tonpy.types.tlb_types.nat.NatLeq object>, 't_natleq_60': <tonpy.types.tlb_types.nat.NatLeq object>, 't_natleq_96': <tonpy.types.tlb_types.nat.NatLeq object>, 't_natwidth_1': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_10': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_12': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_13': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_16': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_24': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_3': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_32': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_5': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_6': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_7': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_8': <tonpy.types.tlb_types.nat.NatWidth object>, 't_natwidth_9': <tonpy.types.tlb_types.nat.NatWidth object>, 't_uint13': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint15': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint16': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint256': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint32': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint63': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint64': <tonpy.types.tlb_types.builtins.UInt object>, 't_uint8': <tonpy.types.tlb_types.builtins.UInt object>}

tonpy.types.tlb_types.nat module

class tonpy.types.tlb_types.nat.NatLeq(x)

Bases: TLB

args_cell_pack(x: int)
args_pack(cb: CellBuilder, x: int)
store_ref_or_tlb(cb: CellBuilder, value)
unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = False) int

Unpack current TLB and return TLB.Record if success, else return None |br|

By default, rec_unpack is False because for large TLB structures it can be slow. |br| More simple way is to skip needed structures one by one and load to python objects only needed ones. |br|

Parameters:
  • cs – CellSlice to unpack TLB from

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

TLB.Record instance or None

class tonpy.types.tlb_types.nat.NatLess(x)

Bases: TLB

args_cell_pack(x: int)
args_pack(cb: CellBuilder, x: int)
store_ref_or_tlb(cb: CellBuilder, value)
unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = False) int

Unpack current TLB and return TLB.Record if success, else return None |br|

By default, rec_unpack is False because for large TLB structures it can be slow. |br| More simple way is to skip needed structures one by one and load to python objects only needed ones. |br|

Parameters:
  • cs – CellSlice to unpack TLB from

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

TLB.Record instance or None

class tonpy.types.tlb_types.nat.NatWidth(x: int)

Bases: TLB

args_cell_pack(x: int)
args_pack(cb: CellBuilder, x: int)
store_ref_or_tlb(cb: CellBuilder, value)
unpack(cs: CellSlice, rec_unpack: bool = False, strict: bool = False) int

Unpack current TLB and return TLB.Record if success, else return None |br|

By default, rec_unpack is False because for large TLB structures it can be slow. |br| More simple way is to skip needed structures one by one and load to python objects only needed ones. |br|

Parameters:
  • cs – CellSlice to unpack TLB from

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

TLB.Record instance or None

tonpy.types.tlb_types.reft module

class tonpy.types.tlb_types.reft.FakeCell

Bases: TLB

fetch(cell_ref: Cell, rec_unpack: bool = False, strict: bool = False, **kwargs) Record | None
Parameters:
  • cell_or_slice

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

Will return cell/cellslice if cell is special, else will return record on success, else None

class tonpy.types.tlb_types.reft.RefT(x: TLB)

Bases: TLB

TLB Ref type ^T

fetch(cell_ref: Cell, rec_unpack: bool = False, strict: bool = False, load_ref: bool = False, **kwargs) Record | None

Load first ref from CellSlice and unpack as type

store_from(cb: CellBuilder, value)
store_ref_or_tlb(cb: CellBuilder, value)
class tonpy.types.tlb_types.reft.tAny

Bases: TLB

fetch(c: Cell | CellSlice, rec_unpack: bool = False, strict: bool = False, **kwargs) Record | None
Parameters:
  • cell_or_slice

  • rec_unpack – pass to RecordBase rec_unpack

  • strict – pass to RecordBase strict

Returns:

Will return cell/cellslice if cell is special, else will return record on success, else None

Module contents