Documentation ¶
Index ¶
- Variables
- func Marshal(c *boc.Cell, o any) error
- func Unmarshal(c *boc.Cell, o any) error
- type AccStatusChange
- type Account
- type AccountBlock
- type AccountState
- type AccountStatus
- type AccountStorage
- type AllShardsInfo
- type Any
- type Anycast
- type BinTree
- type Bits256
- type Bits264
- type Bits320
- type Bits352
- type Bits512
- type Bits96
- type BlkMasterInfo
- type BlkPrevInfo
- type Block
- type BlockCreateStats
- type BlockExtra
- type BlockHeader
- type BlockIdExt
- type BlockInfo
- type BlockInfoPart
- type BlockProof
- type BlockSignatures
- type BlockSignaturesPure
- type Certificate
- type ChunkedData
- type CommonMsgInfo
- type ComputeSkipReason
- type ConfigParams
- type ContentData
- type Counters
- type CreatorStats
- type CryptoSignature
- type CryptoSignaturePair
- type CryptoSignatureSimple
- type CryptoSignatureSimpleData
- type CurrencyCollection
- type DNSRecord
- type DNSRecordSet
- type DNSText
- type Decoder
- type DepthBalanceInfo
- type Either
- type EitherRef
- type Encoder
- type EnqueuedMsg
- type ExtBlkRef
- type ExtraCurrencyCollection
- type FullContent
- type GlobalVersion
- type Grams
- type HashMapAugExtraList
- type HashUpdate
- type Hashmap
- type HashmapAug
- type HashmapAugE
- type HashmapE
- type HashmapItem
- type IhrPendingSince
- type ImportFees
- type InMsg
- type Int1
- type Int10
- type Int11
- type Int12
- type Int128
- type Int13
- type Int14
- type Int15
- type Int16
- type Int17
- type Int18
- type Int19
- type Int2
- type Int20
- type Int21
- type Int22
- type Int23
- type Int24
- type Int25
- type Int256
- type Int257
- type Int26
- type Int27
- type Int28
- type Int29
- type Int3
- type Int30
- type Int31
- type Int32
- type Int33
- type Int34
- type Int35
- type Int36
- type Int37
- type Int38
- type Int39
- type Int4
- type Int40
- type Int41
- type Int42
- type Int43
- type Int44
- type Int45
- type Int46
- type Int47
- type Int48
- type Int49
- type Int5
- type Int50
- type Int51
- type Int52
- type Int53
- type Int54
- type Int55
- type Int56
- type Int57
- type Int58
- type Int59
- type Int6
- type Int60
- type Int61
- type Int62
- type Int63
- type Int64
- type Int7
- type Int8
- type Int9
- type IntermediateAddress
- type KeyExtBlkRef
- type KeyMaxLt
- type LibDescr
- type Magic
- type MarshalerTLB
- type Maybe
- type McBlockExtra
- type McStateExtra
- type McStateExtraOther
- type MerkleProof
- type Message
- type MsgAddress
- type MsgEnvelope
- type OutMsg
- type OutMsgQueueInfo
- type ProcessedUpto
- type Ref
- type ShardAccount
- type ShardDesc
- type ShardFeeCreated
- type ShardFees
- type ShardIdent
- type ShardInfoBinTree
- type ShardState
- type ShardStateUnsplit
- type ShardStateUnsplitData
- type ShardStateUnsplitOther
- type SigPubKey
- type SignedSertificate
- type SimpleLib
- type SmcCapabilities
- type SnakeData
- type SplitMergeInfo
- type StateInit
- type StorageInfo
- type StorageUsed
- type StorageUsedShort
- type SumType
- type Tag
- type Text
- type TickTock
- type TrActionPhase
- type TrBouncePhase
- type TrComputePhase
- type TrCreditPhase
- type TrStoragePhase
- type Transaction
- type TransactionDescr
- type Uint1
- type Uint10
- type Uint11
- type Uint12
- type Uint128
- type Uint13
- type Uint14
- type Uint15
- type Uint16
- type Uint17
- type Uint18
- type Uint19
- type Uint2
- type Uint20
- type Uint21
- type Uint22
- type Uint23
- type Uint24
- type Uint25
- type Uint256
- type Uint257
- type Uint26
- type Uint27
- type Uint28
- type Uint29
- type Uint3
- type Uint30
- type Uint31
- type Uint32
- type Uint33
- type Uint34
- type Uint35
- type Uint36
- type Uint37
- type Uint38
- type Uint39
- type Uint4
- type Uint40
- type Uint41
- type Uint42
- type Uint43
- type Uint44
- type Uint45
- type Uint46
- type Uint47
- type Uint48
- type Uint49
- type Uint5
- type Uint50
- type Uint51
- type Uint52
- type Uint53
- type Uint54
- type Uint55
- type Uint56
- type Uint57
- type Uint58
- type Uint59
- type Uint6
- type Uint60
- type Uint61
- type Uint62
- type Uint63
- type Uint64
- type Uint7
- type Uint8
- type Uint9
- type Unary
- type UnmarshalerTLB
- type ValidatorBaseInfo
- type ValidatorDescr
- type ValidatorInfo
- type ValidatorsSet
- type ValueFlow
- type VarUInteger1
- type VarUInteger10
- type VarUInteger11
- type VarUInteger12
- type VarUInteger13
- type VarUInteger14
- type VarUInteger15
- type VarUInteger16
- type VarUInteger17
- type VarUInteger18
- type VarUInteger19
- type VarUInteger2
- type VarUInteger20
- type VarUInteger21
- type VarUInteger22
- type VarUInteger23
- type VarUInteger24
- type VarUInteger25
- type VarUInteger26
- type VarUInteger27
- type VarUInteger28
- type VarUInteger29
- type VarUInteger3
- type VarUInteger30
- type VarUInteger31
- type VarUInteger32
- type VarUInteger4
- type VarUInteger5
- type VarUInteger6
- type VarUInteger7
- type VarUInteger8
- type VarUInteger9
- type VmCellSlice
- type VmCont
- type VmStack
- func (s VmStack) MarshalTL() ([]byte, error)
- func (s VmStack) MarshalTLB(c *boc.Cell, encoder *Encoder) error
- func (s *VmStack) Put(val VmStackValue)
- func (s VmStack) Unmarshal(dest any) error
- func (s *VmStack) UnmarshalTL(r io.Reader) error
- func (s *VmStack) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
- type VmStackValue
- func (v VmStackValue) Cell() *boc.Celldeprecated
- func (v VmStackValue) CellSlice() *boc.Celldeprecated
- func (v VmStackValue) Int257() Int257deprecated
- func (v VmStackValue) Int64() int64deprecated
- func (v VmStackValue) IsCell() booldeprecated
- func (v VmStackValue) IsCellSlice() booldeprecated
- func (v VmStackValue) IsInt() booldeprecated
- func (v VmStackValue) IsNull() booldeprecated
- func (v VmStackValue) IsTuple() booldeprecated
- func (v VmStackValue) Uint64() uint64deprecated
- func (v VmStackValue) Unmarshal(dest any) error
- type VmStkTuple
- type VmTuple
- type VmTupleRef
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidTag = errors.New("invalid tag")
Functions ¶
Types ¶
type AccStatusChange ¶ added in v1.0.1
type AccStatusChange string
AccStatusChange acst_unchanged$0 = AccStatusChange; // x -> x acst_frozen$10 = AccStatusChange; // init -> frozen acst_deleted$11 = AccStatusChange; // frozen -> deleted
const ( AccStatusChangeUnchanged AccStatusChange = "acst_unchanged" AccStatusChangeFrozen AccStatusChange = "acst_frozen" AccStatusChangeDeleted AccStatusChange = "acst_deleted" )
func (AccStatusChange) MarshalTLB ¶ added in v1.0.1
func (a AccStatusChange) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*AccStatusChange) UnmarshalTLB ¶ added in v1.0.1
func (a *AccStatusChange) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type Account ¶ added in v1.0.1
type Account struct { SumType AccountNone struct { } `tlbSumType:"account_none$0"` Account struct { Addr MsgAddress StorageStat StorageInfo Storage AccountStorage } `tlbSumType:"account$1"` }
Account account_none$0 = Account; account$1 addr:MsgAddressInt storage_stat:StorageInfo storage:AccountStorage = Account;
func (Account) Status ¶ added in v1.0.1
func (a Account) Status() AccountStatus
type AccountBlock ¶ added in v1.0.1
type AccountBlock struct { Magic Magic `tlb:"acc_trans#5"` AccountAddr Bits256 Transactions HashmapAug[Uint64, Ref[Transaction], CurrencyCollection] StateUpdate HashUpdate `tlb:"^"` }
acc_trans#5 account_addr:bits256
transactions:(HashmapAug 64 ^Transaction CurrencyCollection) state_update:^(HASH_UPDATE Account) = AccountBlock;
type AccountState ¶ added in v1.0.1
type AccountState struct { SumType AccountUninit struct { } `tlbSumType:"account_uninit$00"` AccountActive struct { StateInit StateInit } `tlbSumType:"account_active$1"` AccountFrozen struct { StateHash Bits256 } `tlbSumType:"account_frozen$01"` }
AccountState account_uninit$00 = AccountState; account_active$1 _:StateInit = AccountState; account_frozen$01 state_hash:bits256 = AccountState;
type AccountStatus ¶ added in v1.0.1
type AccountStatus string
AccountStatus acc_state_uninit$00 = AccountStatus; acc_state_frozen$01 = AccountStatus; acc_state_active$10 = AccountStatus; acc_state_nonexist$11 = AccountStatus;
const ( //AccountEmpty AccountStatus = "empty" // empty state from node AccountNone AccountStatus = "nonexist" AccountUninit AccountStatus = "uninit" AccountActive AccountStatus = "active" AccountFrozen AccountStatus = "frozen" )
func (AccountStatus) MarshalTLB ¶ added in v1.0.1
func (a AccountStatus) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*AccountStatus) UnmarshalTLB ¶ added in v1.0.1
func (a *AccountStatus) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type AccountStorage ¶ added in v1.0.1
type AccountStorage struct { LastTransLt uint64 Balance CurrencyCollection State AccountState }
AccountStorage account_storage$_ last_trans_lt:uint64 balance:CurrencyCollection state:AccountState = AccountStorage;
type AllShardsInfo ¶ added in v1.0.1
type AllShardsInfo struct {
ShardHashes HashmapE[Uint32, Ref[ShardInfoBinTree]]
}
type Anycast ¶ added in v1.0.1
Anycast anycast_info$_ depth:(#<= 30) { depth >= 1 } rewrite_pfx:(bits depth) = Anycast;
func (Anycast) MarshalTLB ¶ added in v1.0.1
type Bits256 ¶ added in v1.0.1
type Bits256 [32]byte
func (Bits256) MarshalJSON ¶ added in v1.0.1
func (*Bits256) UnmarshalJSON ¶ added in v1.0.1
type BlkMasterInfo ¶ added in v1.0.1
type BlkMasterInfo struct {
Master ExtBlkRef
}
BlkMasterInfo master_info$_ master:ExtBlkRef = BlkMasterInfo; ext_blk_ref$_ end_lt:uint64 seq_no:uint32 root_hash:bits256 file_hash:bits256 = ExtBlkRef;
type BlkPrevInfo ¶ added in v1.0.1
type BlkPrevInfo struct { SumType PrevBlkInfo struct { Prev ExtBlkRef } `tlbSumType:"prev_blk_info$_"` PrevBlksInfo struct { Prev1 ExtBlkRef // ^ but decodes manually Prev2 ExtBlkRef // ^ but decodes manually } `tlbSumType:"prev_blks_info$_"` }
BlkPrevInfo prev_blk_info$_ prev:ExtBlkRef = BlkPrevInfo 0; prev_blks_info$_ prev1:^ExtBlkRef prev2:^ExtBlkRef = BlkPrevInfo 1;
func (*BlkPrevInfo) UnmarshalTLB ¶ added in v1.0.1
func (i *BlkPrevInfo) UnmarshalTLB(c *boc.Cell, isBlks bool) error
type Block ¶ added in v1.0.1
type Block struct { Magic Magic `tlb:"block#11ef55aa"` GlobalId int32 Info BlockInfo `tlb:"^"` ValueFlow Any `tlb:"^"` // ValueFlow StateUpdate Any `tlb:"^"` //MerkleUpdate[ShardState] `tlb:"^"` // Extra BlockExtra `tlb:"^"` }
Block block#11ef55aa global_id:int32 info:^BlockInfo value_flow:^ValueFlow state_update:^(MERKLE_UPDATE ShardState) extra:^BlockExtra = Block;
func (Block) AllTransactions ¶ added in v1.0.1
func (b Block) AllTransactions() []Transaction
type BlockCreateStats ¶ added in v1.0.1
type BlockCreateStats struct { SumType BlockCreateStats struct { Counters HashmapE[Bits256, CreatorStats] } `tlbSumType:"block_create_stats#17"` BlockCreateStatsExt struct { Counters HashmapAugE[Bits256, CreatorStats, uint32] } `tlbSumType:"block_create_stats_ext#34"` }
block_create_stats#17 counters:(HashmapE 256 CreatorStats) = BlockCreateStats; block_create_stats_ext#34 counters:(HashmapAugE 256 CreatorStats uint32) = BlockCreateStats;
type BlockExtra ¶ added in v1.0.1
type BlockExtra struct { Magic Magic `tlb:"block_extra#4a33f6fd"` InMsgDescr HashmapAugE[Bits256, InMsg, ImportFees] `tlb:"^"` // tlb.Any `tlb:"^"` OutMsgDescr HashmapAugE[Bits256, OutMsg, CurrencyCollection] `tlb:"^"` // tlb.Any `tlb:"^"` AccountBlocks HashmapAugE[Bits256, AccountBlock, CurrencyCollection] `tlb:"^"` // tlb.Any `tlb:"^"` // RandSeed Bits256 CreatedBy Bits256 Custom Maybe[Ref[McBlockExtra]] }
BlockExtra block_extra in_msg_descr:^InMsgDescr out_msg_descr:^OutMsgDescr account_blocks:^ShardAccountBlocks rand_seed:bits256 created_by:bits256 custom:(Maybe ^McBlockExtra) = BlockExtra;
type BlockHeader ¶ added in v1.0.1
type BlockHeader struct { Magic Magic `tlb:"block#11ef55aa"` GlobalId int32 Info BlockInfo `tlb:"^"` }
TODO: clarify the description of the structure
type BlockIdExt ¶ added in v1.0.1
type BlockIdExt struct { ShardId ShardIdent SeqNo uint32 RootHash Bits256 FileHash Bits256 }
block_id_ext$_ shard_id:ShardIdent seq_no:uint32 root_hash:bits256 file_hash:bits256 = BlockIdExt;
type BlockInfo ¶ added in v1.0.1
type BlockInfo struct { BlockInfoPart GenSoftware *GlobalVersion MasterRef *BlkMasterInfo PrevRef BlkPrevInfo PrevVertRef *BlkPrevInfo }
BlockInfo block_info#9bc7a987 version:uint32 not_master:(## 1) after_merge:(## 1) before_split:(## 1) after_split:(## 1) want_split:Bool want_merge:Bool key_block:Bool vert_seqno_incr:(## 1) flags:(## 8) { flags <= 1 } seq_no:# vert_seq_no:# { vert_seq_no >= vert_seqno_incr } { prev_seq_no:# } { ~prev_seq_no + 1 = seq_no } shard:ShardIdent gen_utime:uint32 start_lt:uint64 end_lt:uint64 gen_validator_list_hash_short:uint32 gen_catchain_seqno:uint32 min_ref_mc_seqno:uint32 prev_key_block_seqno:uint32 gen_software:flags . 0?GlobalVersion master_ref:not_master?^BlkMasterInfo prev_ref:^(BlkPrevInfo after_merge) prev_vert_ref:vert_seqno_incr?^(BlkPrevInfo 0) = BlockInfo;
type BlockInfoPart ¶ added in v1.0.1
type BlockInfoPart struct { Version uint32 NotMaster bool AfterMerge bool BeforeSplit bool AfterSplit bool WantSplit bool WantMerge bool KeyBlock bool VertSeqnoIncr bool Flags uint8 SeqNo uint32 VertSeqNo uint32 Shard ShardIdent GenUtime uint32 StartLt uint64 EndLt uint64 GenValidatorListHashShort uint32 GenCatchainSeqno uint32 MinRefMcSeqno uint32 PrevKeyBlockSeqno uint32 }
type BlockProof ¶ added in v1.0.1
type BlockProof struct { Magic Magic `tlb:"block_proof#c3"` ProofFor BlockIdExt Root boc.Cell `tlb:"^"` Signatures Maybe[Ref[BlockSignatures]] }
block_proof#c3 proof_for:BlockIdExt root:^Cell signatures:(Maybe ^BlockSignatures) = BlockProof;
type BlockSignatures ¶ added in v1.0.1
type BlockSignatures struct { Magic Magic `tlb:"block_signatures#11"` ValidatorInfo ValidatorBaseInfo PureSignatures BlockSignaturesPure }
block_signatures#11 validator_info:ValidatorBaseInfo pure_signatures:BlockSignaturesPure = BlockSignatures;
type BlockSignaturesPure ¶ added in v1.0.1
type BlockSignaturesPure struct { SigCount uint32 SigWeight uint64 Signatures HashmapE[Uint16, CryptoSignaturePair] }
type Certificate ¶ added in v1.0.1
type Certificate struct { Magic Magic `tlb:"certificate#4"` TempKey SigPubKey ValidSince uint32 ValidUntil uint32 }
certificate#4 temp_key:SigPubKey valid_since:uint32 valid_until:uint32 = Certificate; // 356 bits
type ChunkedData ¶ added in v1.0.1
ChunkedData chunked_data#_ data:(HashMapE 32 ^(SnakeData ~0)) = ChunkedData;
func (ChunkedData) MarshalTLB ¶ added in v1.0.1
func (d ChunkedData) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*ChunkedData) UnmarshalTLB ¶ added in v1.0.1
func (d *ChunkedData) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type CommonMsgInfo ¶ added in v1.0.1
type CommonMsgInfo struct { SumType IntMsgInfo struct { IhrDisabled bool Bounce bool Bounced bool Src MsgAddress Dest MsgAddress Value CurrencyCollection IhrFee Grams FwdFee Grams CreatedLt uint64 CreatedAt uint32 } `tlbSumType:"int_msg_info$0"` ExtInMsgInfo struct { Src MsgAddress Dest MsgAddress ImportFee Grams } `tlbSumType:"ext_in_msg_info$10"` ExtOutMsgInfo struct { Src MsgAddress Dest MsgAddress CreatedLt uint64 CreatedAt uint32 } `tlbSumType:"ext_out_msg_info$11"` }
CommonMsgInfo int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool src:MsgAddressInt dest:MsgAddressInt value:CurrencyCollection ihr_fee:Grams fwd_fee:Grams created_lt:uint64 created_at:uint32 = CommonMsgInfo; ext_in_msg_info$10 src:MsgAddressExt dest:MsgAddressInt import_fee:Grams = CommonMsgInfo; ext_out_msg_info$11 src:MsgAddressInt dest:MsgAddressExt created_lt:uint64 created_at:uint32 = CommonMsgInfo;
type ComputeSkipReason ¶ added in v1.0.1
type ComputeSkipReason string
ComputeSkipReason cskip_no_state$00 = ComputeSkipReason; cskip_bad_state$01 = ComputeSkipReason; cskip_no_gas$10 = ComputeSkipReason;
const ( ComputeSkipReasonNoState ComputeSkipReason = "cskip_no_state" ComputeSkipReasonBadState ComputeSkipReason = "cskip_bad_state" ComputeSkipReasonNoGas ComputeSkipReason = "cskip_no_gas" )
func (ComputeSkipReason) MarshalTLB ¶ added in v1.0.1
func (a ComputeSkipReason) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*ComputeSkipReason) UnmarshalTLB ¶ added in v1.0.1
func (a *ComputeSkipReason) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type ConfigParams ¶ added in v1.0.1
ConfigParams _ config_addr:bits256 config:^(Hashmap 32 ^Cell) = ConfigParams;
type ContentData ¶ added in v1.0.1
type ContentData struct { SumType Snake struct { Data SnakeData } `tlbSumType:"snake#00"` Chunks struct { Data ChunkedData } `tlbSumType:"chunks#01"` }
ContentData snake#00 data:(SnakeData ~n) = ContentData; chunks#01 data:ChunkedData = ContentData;
func (ContentData) Bytes ¶ added in v1.0.1
func (c ContentData) Bytes() ([]byte, error)
type CreatorStats ¶ added in v1.0.1
type CreatorStats struct { Magic Magic `tlb:"creator_info#4"` McBlocks Counters ShardBlocks Counters }
creator_info#4 mc_blocks:Counters shard_blocks:Counters = CreatorStats;
type CryptoSignature ¶ added in v1.0.1
type CryptoSignature struct { SumType CryptoSignatureSimple CryptoSignatureSimpleData `tlbSumType:"ed25519_signature#5"` CryptoSignature struct { SignedCert *SignedSertificate `tlb:"^"` TempKeySignature CryptoSignatureSimple } `tlbSumType:"chained_signature#f"` }
func (*CryptoSignature) UnmarshalTLB ¶ added in v1.0.1
func (cr *CryptoSignature) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type CryptoSignaturePair ¶ added in v1.0.1
type CryptoSignaturePair struct { NodeIdShort Bits256 Sign CryptoSignature }
sig_pair$_ node_id_short:bits256 sign:CryptoSignature = CryptoSignaturePair; // 256+x ~ 772 bits
type CryptoSignatureSimple ¶ added in v1.0.1
type CryptoSignatureSimple struct { Magic Magic `tlb:"ed25519_signature#5"` CryptoSignatureSimple CryptoSignatureSimpleData }
ed25519_signature#5 R:bits256 s:bits256 = CryptoSignatureSimple; // 516 bits _ CryptoSignatureSimple = CryptoSignature; chained_signature#f signed_cert:^SignedCertificate temp_key_signature:CryptoSignatureSimple
= CryptoSignature; // 4+(356+516)+516 = 520 bits+ref (1392 bits total)
type CryptoSignatureSimpleData ¶ added in v1.0.1
type CurrencyCollection ¶ added in v1.0.1
type CurrencyCollection struct { Grams Grams Other ExtraCurrencyCollection }
CurrencyCollection currencies$_ grams:Grams other:ExtraCurrencyCollection = CurrencyCollection;
type DNSRecord ¶ added in v1.0.1
type DNSRecord struct { SumType DNSText DNSText `tlbSumType:"dns_text#1eda"` DNSNextResolver MsgAddress `tlbSumType:"dns_next_resolver#ba93"` DNSAdnlAddress struct { Address [32]byte ProtoList []string } `tlbSumType:"dns_adnl_address#ad01"` DNSSmcAddress struct { Address MsgAddress SmcCapability SmcCapabilities } `tlbSumType:"dns_smc_address#9fd3"` DNSStorageAddress Bits256 `tlbSumType:"dns_storage_address#7473"` NotStandard *boc.Cell // only for custom unmarshaling }
DNSRecord dns_text#1eda _:Text = DNSRecord; dns_next_resolver#ba93 resolver:MsgAddressInt = DNSRecord; // usually in record #-1 dns_adnl_address#ad01 adnl_addr:bits256 flags:(## 8) { flags <= 1 } proto_list:flags . 0?ProtoList = DNSRecord; // often in record #2 dns_smc_address#9fd3 smc_addr:MsgAddressInt flags:(## 8) { flags <= 1 } cap_list:flags . 0?SmcCapList = DNSRecord; // often in record #1 dns_storage_address#7473 bag_id:bits256 = DNSRecord;
type DNSRecordSet ¶ added in v1.0.1
DNSRecordSet _ (HashmapE 256 DNSRecord) = DNS_RecordSet;
type DNSText ¶ added in v1.0.1
type DNSText string
DNSText text$_ chunks:(## 8) rest:(TextChunks chunks) = Text;
type DepthBalanceInfo ¶ added in v1.0.1
type DepthBalanceInfo struct { SplitDepth Uint5 Balance CurrencyCollection }
depth_balance$_ split_depth:(#<= 30) balance:CurrencyCollection = DepthBalanceInfo;
type Either ¶
func (Either[_, _]) MarshalTLB ¶
type EitherRef ¶
func (EitherRef[_]) MarshalTLB ¶
type EnqueuedMsg ¶ added in v1.0.1
type EnqueuedMsg struct { EnqueuedLt uint64 OutMsg MsgEnvelope `tlb:"^"` }
_ enqueued_lt:uint64 out_msg:^MsgEnvelope = EnqueuedMsg;
type ExtBlkRef ¶ added in v1.0.1
ExtBlkRef ext_blk_ref$_ end_lt:uint64 seq_no:uint32 root_hash:bits256 file_hash:bits256 = ExtBlkRef;
type ExtraCurrencyCollection ¶ added in v1.0.1
type ExtraCurrencyCollection struct {
Dict HashmapE[Uint32, VarUInteger32]
}
ExtraCurrencyCollection extra_currencies$_ dict:(HashmapE 32 (VarUInteger 32)) = ExtraCurrencyCollection;
type FullContent ¶ added in v1.0.1
type FullContent struct { SumType Onchain struct { Data HashmapE[Bits256, Ref[ContentData]] } `tlbSumType:"onchain#00"` Offchain struct { Uri SnakeData // Text } `tlbSumType:"offchain#01"` }
FullContent onchain#00 data:(HashMapE 256 ^ContentData) = FullContent; offchain#01 uri:Text = FullContent; text#_ {n:#} data:(SnakeData ~n) = Text;
type GlobalVersion ¶ added in v1.0.1
type GlobalVersion struct { Magic Magic `tlb:"capabilities#c4"` Version uint32 Capabilities uint64 }
GlobalVersion capabilities#c4 version:uint32 capabilities:uint64 = GlobalVersion;
type Grams ¶ added in v1.0.1
type Grams uint64 // total value fit to uint64
Grams nanograms$_ amount:(VarUInteger 16) = Grams;
func (Grams) MarshalJSON ¶ added in v1.0.1
func (Grams) MarshalTLB ¶ added in v1.0.1
func (*Grams) UnmarshalJSON ¶ added in v1.0.1
type HashMapAugExtraList ¶
type HashMapAugExtraList[T any] struct { Left *HashMapAugExtraList[T] Right *HashMapAugExtraList[T] Data T }
type HashUpdate ¶ added in v1.0.1
HashUpdate update_hashes#72 {X:Type} old_hash:bits256 new_hash:bits256 = HASH_UPDATE X;
type Hashmap ¶
type Hashmap[keyT fixedSize, T any] struct { // contains filtered or unexported fields }
func (Hashmap[keyT, T]) Items ¶ added in v1.0.1
func (h Hashmap[keyT, T]) Items() []HashmapItem[keyT, T]
func (Hashmap[keyT, T]) MarshalTLB ¶
func (*Hashmap[keyT, T]) UnmarshalTLB ¶
type HashmapAug ¶
type HashmapAug[keyT fixedSize, T1, T2 any] struct { // contains filtered or unexported fields }
func (HashmapAug[keyT, T1, T2]) MarshalTLB ¶ added in v1.0.1
func (h HashmapAug[keyT, T1, T2]) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*HashmapAug[keyT, T1, T2]) UnmarshalTLB ¶
func (h *HashmapAug[keyT, T1, T2]) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
func (HashmapAug[_, T1, _]) Values ¶
func (h HashmapAug[_, T1, _]) Values() []T1
Values returns a list of value of this hashmap.
type HashmapAugE ¶
type HashmapAugE[keyT fixedSize, T1, T2 any] struct { // contains filtered or unexported fields }
func (HashmapAugE[keyT, T1, T2]) Keys ¶
func (h HashmapAugE[keyT, T1, T2]) Keys() []keyT
func (HashmapAugE[keyT, T1, T2]) MarshalTLB ¶ added in v1.0.1
func (h HashmapAugE[keyT, T1, T2]) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*HashmapAugE[keyT, T1, T2]) UnmarshalTLB ¶
func (h *HashmapAugE[keyT, T1, T2]) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
func (HashmapAugE[keyT, T1, T2]) Values ¶
func (h HashmapAugE[keyT, T1, T2]) Values() []T1
type HashmapE ¶
type HashmapE[keyT fixedSize, T any] struct { // contains filtered or unexported fields }
func (HashmapE[keyT, T]) Items ¶
func (h HashmapE[keyT, T]) Items() []HashmapItem[keyT, T]
Items returns key-value pairs of this hashmap.
func (HashmapE[keyT, T]) MarshalTLB ¶
func (*HashmapE[keyT, T]) UnmarshalTLB ¶
type HashmapItem ¶
type HashmapItem[keyT fixedSize, T any] struct { Key keyT Value T }
HashmapItem represents a key-value pair stored in HashmapE[T].
type IhrPendingSince ¶ added in v1.0.1
type IhrPendingSince struct {
ImportLt uint64
}
ihr_pending$_ import_lt:uint64 = IhrPendingSince;
type ImportFees ¶ added in v1.0.1
type ImportFees struct { FeesCollected Grams ValueImported CurrencyCollection }
import_fees$_ fees_collected:Grams
value_imported:CurrencyCollection = ImportFees;
type InMsg ¶ added in v1.0.1
type InMsg struct { SumType MsgImportExt *struct { Msg Message `tlb:"^"` Transaction Transaction `tlb:"^"` } `tlbSumType:"msg_import_ext$000"` MsgImportIhr *struct { Msg Message `tlb:"^"` Transaction Transaction `tlb:"^"` IhrFee Grams ProofCreated boc.Cell `tlb:"^"` } `tlbSumType:"msg_import_ihr$010"` MsgImportImm *struct { InMsg MsgEnvelope `tlb:"^"` Transaction Transaction `tlb:"^"` FwdFee Grams } `tlbSumType:"msg_import_imm$011"` MsgImportFin *struct { InMsg MsgEnvelope `tlb:"^"` Transaction Transaction `tlb:"^"` FwdFee Grams } `tlbSumType:"msg_import_fin$100"` MsgImportTr *struct { InMsg MsgEnvelope `tlb:"^"` OutMsg MsgEnvelope `tlb:"^"` TransitFee Grams } `tlbSumType:"msg_import_tr$101"` MsgDiscardFin *struct { InMsg MsgEnvelope `tlb:"^"` TransactionId uint64 FwdFee Grams } `tlbSumType:"msg_discard_fin$110"` MsgDiscardTr *struct { InMsg MsgEnvelope `tlb:"^"` TransactionId uint64 FwdFee Grams ProofDelivered boc.Cell `tlb:"^"` } `tlbSumType:"msg_discard_tr$111"` }
msg_import_ext$000 msg:^(Message Any) transaction:^Transaction
= InMsg;
msg_import_ihr$010 msg:^(Message Any) transaction:^Transaction
ihr_fee:Grams proof_created:^Cell = InMsg;
msg_import_imm$011 in_msg:^MsgEnvelope
transaction:^Transaction fwd_fee:Grams = InMsg;
msg_import_fin$100 in_msg:^MsgEnvelope
transaction:^Transaction fwd_fee:Grams = InMsg;
msg_import_tr$101 in_msg:^MsgEnvelope out_msg:^MsgEnvelope
transit_fee:Grams = InMsg;
msg_discard_fin$110 in_msg:^MsgEnvelope transaction_id:uint64
fwd_fee:Grams = InMsg;
msg_discard_tr$111 in_msg:^MsgEnvelope transaction_id:uint64
fwd_fee:Grams proof_delivered:^Cell = InMsg;
type Int128 ¶ added in v1.0.1
func (Int128) MarshalJSON ¶ added in v1.0.1
func (Int128) MarshalTLB ¶ added in v1.0.1
func (*Int128) UnmarshalJSON ¶ added in v1.0.1
type Int256 ¶ added in v1.0.1
func (Int256) MarshalJSON ¶ added in v1.0.1
func (Int256) MarshalTLB ¶ added in v1.0.1
func (*Int256) UnmarshalJSON ¶ added in v1.0.1
type Int257 ¶ added in v1.0.1
func (Int257) MarshalJSON ¶ added in v1.0.1
func (Int257) MarshalTLB ¶ added in v1.0.1
func (*Int257) UnmarshalJSON ¶ added in v1.0.1
type IntermediateAddress ¶ added in v1.0.1
type IntermediateAddress struct { SumType IntermediateAddressRegular struct { UseDestBits Uint7 } `tlbSumType:"interm_addr_regular$0"` IntermediateAddressSimple struct { WorkchainId int8 AddressPrefix uint64 } `tlbSumType:"interm_addr_simple$10"` IntermediateAddressExt struct { WorkchainId int32 AddressPrefix uint64 } `tlbSumType:"interm_addr_ext$11"` }
interm_addr_regular$0 use_dest_bits:(#<= 96) = IntermediateAddress; interm_addr_simple$10 workchain_id:int8 addr_pfx:uint64 = IntermediateAddress; interm_addr_ext$11 workchain_id:int32 addr_pfx:uint64 = IntermediateAddress;
type KeyExtBlkRef ¶ added in v1.0.1
_ key:Bool blk_ref:ExtBlkRef = KeyExtBlkRef;
type LibDescr ¶ added in v1.0.1
type LibDescr struct { Magic Magic `tlb:"shared_lib_descr$00"` Lib boc.Cell `tlb:"^"` Publishers Hashmap[Bits256, bool] }
shared_lib_descr$00 lib:^Cell publishers:(Hashmap 256 True)
= LibDescr;
type Maybe ¶
func (Maybe[T]) MarshalJSON ¶ added in v1.0.1
func (*Maybe[T]) UnmarshalJSON ¶ added in v1.0.1
type McBlockExtra ¶ added in v1.0.1
type McBlockExtra struct { Magic Magic `tlb:"masterchain_block_extra#cca5"` KeyBlock bool ShardHashes HashmapE[Uint32, Ref[ShardInfoBinTree]] ShardFees ShardFees McExtraOther struct { PrevBlkSignatures HashmapE[Uint16, CryptoSignaturePair] RecoverCreate Maybe[Ref[InMsg]] MintMsg Maybe[Ref[InMsg]] } `tlb:"^"` Config ConfigParams }
masterchain_block_extra#cca5
key_block:(## 1) shard_hashes:ShardHashes shard_fees:ShardFees ^[ prev_blk_signatures:(HashmapE 16 CryptoSignaturePair) recover_create_msg:(Maybe ^InMsg) mint_msg:(Maybe ^InMsg) ] config:key_block?ConfigParams
= McBlockExtra;
func (*McBlockExtra) UnmarshalTLB ¶ added in v1.0.1
func (m *McBlockExtra) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type McStateExtra ¶ added in v1.0.1
type McStateExtra struct { Magic Magic `tlb:"masterchain_state_extra#cc26"` ShardHashes HashmapE[Uint32, Ref[ShardInfoBinTree]] Config ConfigParams Other McStateExtraOther `tlb:"^"` GlobalBalance CurrencyCollection }
McStateExtra masterchain_state_extra#cc26 shard_hashes:ShardHashes config:ConfigParams ^[ flags:(## 16) { flags <= 1 } validator_info:ValidatorInfo prev_blocks:OldMcBlocksInfo after_key_block:Bool last_key_block:(Maybe ExtBlkRef) block_create_stats:(flags . 0)?BlockCreateStats ] global_balance:CurrencyCollection = McStateExtra;
type McStateExtraOther ¶ added in v1.0.1
type McStateExtraOther struct { Flags uint16 ValidatorInfo ValidatorInfo PrevBlocks HashmapAugE[Uint32, KeyExtBlkRef, KeyMaxLt] AfterKeyBlock bool LastKeyBlock Maybe[ExtBlkRef] BlockCreateStats BlockCreateStats }
^[ flags:(## 16) { flags <= 1 } validator_info:ValidatorInfo prev_blocks:OldMcBlocksInfo after_key_block:Bool last_key_block:(Maybe ExtBlkRef) block_create_stats:(flags . 0)?BlockCreateStats ]
func (*McStateExtraOther) UnmarshalTLB ¶ added in v1.0.1
func (m *McStateExtraOther) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type MerkleProof ¶ added in v1.0.1
type MerkleProof[T any] struct { Magic Magic `tlb:"!merkle_proof#03"` VirtualHash Bits256 Depth uint16 VirtualRoot T `tlb:"^"` }
MerkleProof !merkle_proof#03 {X:Type} virtual_hash:bits256 depth:uint16 virtual_root:^X = MERKLE_PROOF X;
type Message ¶ added in v1.0.1
Message message$_ {X:Type} info:CommonMsgInfo init:(Maybe (Either StateInit ^StateInit)) body:(Either X ^X) = Message X;
type MsgAddress ¶ added in v1.0.1
type MsgAddress struct { SumType AddrNone struct { } `tlbSumType:"addr_none$00"` AddrExtern struct { Len Uint9 ExternalAddress boc.BitString } `tlbSumType:"addr_extern$01"` AddrStd struct { Anycast Maybe[Anycast] WorkchainId int8 Address Bits256 } `tlbSumType:"addr_std$10"` AddrVar struct { Anycast Maybe[Anycast] AddrLen Uint9 WorkchainId int32 Address boc.BitString } `tlbSumType:"addr_var$11"` }
MsgAddress addr_none$00 = MsgAddressExt; addr_extern$01 len:(## 9) external_address:(bits len) = MsgAddressExt; addr_std$10 anycast:(Maybe Anycast) workchain_id:int8 address:bits256 = MsgAddressInt; addr_var$11 anycast:(Maybe Anycast) addr_len:(## 9) workchain_id:int32 address:(bits addr_len) = MsgAddressInt; _ _:MsgAddressInt = MsgAddress; _ _:MsgAddressExt = MsgAddress;
func (MsgAddress) MarshalJSON ¶ added in v1.0.1
func (a MsgAddress) MarshalJSON() ([]byte, error)
func (*MsgAddress) UnmarshalJSON ¶ added in v1.0.1
func (a *MsgAddress) UnmarshalJSON(b []byte) error
func (*MsgAddress) UnmarshalTLB ¶ added in v1.0.1
func (a *MsgAddress) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type MsgEnvelope ¶ added in v1.0.1
type MsgEnvelope struct { Magic Magic `tlb:"msg_envelope#4"` CurrentAddress IntermediateAddress NextAddress IntermediateAddress FwdFeeRemaining Grams Msg Message `tlb:"^"` }
msg_envelope#4 cur_addr:IntermediateAddress next_addr:IntermediateAddress fwd_fee_remaining:Grams msg:^(Message Any) = MsgEnvelope;
type OutMsg ¶ added in v1.0.1
type OutMsg struct { SumType MsgExportExt struct { Msg Message `tlb:"^"` Transaction Transaction `tlb:"^"` } `tlbSumType:"msg_export_ext$000"` MsgExportImm struct { OutMsg MsgEnvelope `tlb:"^"` Transaction Transaction `tlb:"^"` Reimport InMsg `tlb:"^"` } `tlbSumType:"msg_export_imm$010"` MsgExportNew struct { OutMsg MsgEnvelope `tlb:"^"` Transaction Transaction `tlb:"^"` } `tlbSumType:"msg_export_new$001"` MsgExportTr struct { OutMsg MsgEnvelope `tlb:"^"` Imported InMsg `tlb:"^"` } `tlbSumType:"msg_export_tr$011"` MsgExportDeq struct { OutMsg MsgEnvelope `tlb:"^"` ImportBlock Uint63 } `tlbSumType:"msg_export_deq$1100"` MsgExportDeqShort struct { MsgEnvHash Bits256 NextWorkchain uint32 NextAddrPrefix uint64 ImportBlockLt uint64 } `tlbSumType:"msg_export_deq_short$1101"` MsgExportTrReq struct { OutMsg MsgEnvelope `tlb:"^"` Imported InMsg `tlb:"^"` } `tlbSumType:"msg_export_tr_req$111"` MsgExportDeqImm struct { OutMsg MsgEnvelope `tlb:"^"` Reimport InMsg `tlb:"^"` } `tlbSumType:"msg_export_deq_imm$100"` }
msg_export_ext$000 msg:^(Message Any)
transaction:^Transaction = OutMsg;
msg_export_imm$010 out_msg:^MsgEnvelope
transaction:^Transaction reimport:^InMsg = OutMsg;
msg_export_new$001 out_msg:^MsgEnvelope
transaction:^Transaction = OutMsg;
msg_export_tr$011 out_msg:^MsgEnvelope
imported:^InMsg = OutMsg;
msg_export_deq$1100 out_msg:^MsgEnvelope
import_block_lt:uint63 = OutMsg;
msg_export_deq_short$1101 msg_env_hash:bits256
next_workchain:int32 next_addr_pfx:uint64 import_block_lt:uint64 = OutMsg;
msg_export_tr_req$111 out_msg:^MsgEnvelope
imported:^InMsg = OutMsg;
msg_export_deq_imm$100 out_msg:^MsgEnvelope
reimport:^InMsg = OutMsg;
type OutMsgQueueInfo ¶ added in v1.0.1
type OutMsgQueueInfo struct { OutQueue HashmapAugE[Bits352, EnqueuedMsg, uint64] ProcInfo HashmapE[Bits96, ProcessedUpto] IhrPendig HashmapE[Bits320, IhrPendingSince] }
_ out_queue:OutMsgQueue proc_info:ProcessedInfo ihr_pending:IhrPendingInfo = OutMsgQueueInfo;
type ProcessedUpto ¶ added in v1.0.1
processed_upto$_ last_msg_lt:uint64 last_msg_hash:bits256 = ProcessedUpto;
type ShardAccount ¶ added in v1.0.1
ShardAccount account_descr$_ account:^Account last_trans_hash:bits256 last_trans_lt:uint64 = ShardAccount;
type ShardDesc ¶ added in v1.0.1
type ShardDesc struct { SumType Old struct { SeqNo uint32 RegMcSeqno uint32 StartLT uint64 EndLT uint64 RootHash Bits256 FileHash Bits256 BeforeSplit bool BeforeMerge bool WantSplit bool WantMerge bool NXCCUpdated bool Flags Uint3 NextCatchainSeqNo uint32 NextValidatorShard int64 MinRefMcSeqNo uint32 GenUTime uint32 } `tlbSumType:"old#b"` New struct { SeqNo uint32 RegMcSeqno uint32 StartLT uint64 EndLT uint64 RootHash Bits256 FileHash Bits256 BeforeSplit bool BeforeMerge bool WantSplit bool WantMerge bool NXCCUpdated bool Flags Uint3 NextCatchainSeqNo uint32 NextValidatorShard int64 MinRefMcSeqNo uint32 GenUTime uint32 } `tlbSumType:"new#a"` }
type ShardFeeCreated ¶ added in v1.0.1
type ShardFeeCreated struct { Fees CurrencyCollection Create CurrencyCollection }
_ fees:CurrencyCollection create:CurrencyCollection = ShardFeeCreated;
type ShardFees ¶ added in v1.0.1
type ShardFees struct {
Hashmap HashmapAugE[Bits96, ShardFeeCreated, ShardFeeCreated]
}
_ (HashmapAugE 96 ShardFeeCreated ShardFeeCreated) = ShardFees;
type ShardIdent ¶ added in v1.0.1
type ShardIdent struct { Magic Magic `tlb:"shardident$00"` ShardPfxBits Uint6 WorkchainID int32 ShardPrefix uint64 }
ShardIdent shard_ident$00 shard_pfx_bits:(#<= 60) workchain_id:int32 shard_prefix:uint64 = ShardIdent;
type ShardInfoBinTree ¶ added in v1.0.1
type ShardState ¶ added in v1.0.1
type ShardState struct { SumType UnsplitState struct { Value ShardStateUnsplit } `tlbSumType:"_"` SplitState struct { Left ShardStateUnsplit `tlb:"^"` // ^ but decodes manually Right ShardStateUnsplit `tlb:"^"` // ^ but decodes manually } `tlbSumType:"split_state#5f327da5"` }
ShardState _ ShardStateUnsplit = ShardState; split_state#5f327da5 left:^ShardStateUnsplit right:^ShardStateUnsplit = ShardState;
func (*ShardState) UnmarshalTLB ¶ added in v1.0.1
func (s *ShardState) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type ShardStateUnsplit ¶ added in v1.0.1
type ShardStateUnsplit struct { Magic Magic `tlb:"shard_state#9023afe2"` ShardStateUnsplit ShardStateUnsplitData }
ShardStateUnsplit shard_state#9023afe2 global_id:int32 shard_id:ShardIdent seq_no:uint32 vert_seq_no:# gen_utime:uint32 gen_lt:uint64 min_ref_mc_seqno:uint32 out_msg_queue_info:^OutMsgQueueInfo before_split:(## 1) accounts:^ShardAccounts ^[ overload_history:uint64 underload_history:uint64 total_balance:CurrencyCollection total_validator_fees:CurrencyCollection libraries:(HashmapE 256 LibDescr) master_ref:(Maybe BlkMasterInfo) ] custom:(Maybe ^McStateExtra) = ShardStateUnsplit;
type ShardStateUnsplitData ¶ added in v1.0.1
type ShardStateUnsplitData struct { GlobalID int32 ShardID ShardIdent SeqNo uint32 VertSeqNo uint32 GenUtime uint32 GenLt uint64 MinRefMcSeqno uint32 OutMsgQueueInfo OutMsgQueueInfo `tlb:"^"` BeforeSplit bool Accounts HashmapAugE[Bits256, ShardAccount, DepthBalanceInfo] `tlb:"^"` Other ShardStateUnsplitOther `tlb:"^"` Custom Maybe[Ref[McStateExtra]] }
type ShardStateUnsplitOther ¶ added in v1.0.1
type ShardStateUnsplitOther struct { OverloadHistory uint64 UnderloadHistory uint64 TotalBalance CurrencyCollection TotalValidatorFees CurrencyCollection Libraries HashmapE[Bits256, LibDescr] MasterRef Maybe[BlkMasterInfo] }
^[ overload_history:uint64 underload_history:uint64 total_balance:CurrencyCollection total_validator_fees:CurrencyCollection libraries:(HashmapE 256 LibDescr) master_ref:(Maybe BlkMasterInfo) ]
type SignedSertificate ¶ added in v1.0.1
type SignedSertificate struct { Certificate Certificate CertificateSignature CryptoSignature }
signed_certificate$_ certificate:Certificate certificate_signature:CryptoSignature
= SignedCertificate; // 356+516 = 872 bits
type SmcCapabilities ¶ added in v1.0.1
SmcCapabilities Reorganized SmcCapList type cap_list_nil$0 = SmcCapList; cap_list_next$1 head:SmcCapability tail:SmcCapList = SmcCapList; cap_method_seqno#5371 = SmcCapability; cap_method_pubkey#71f4 = SmcCapability; cap_is_wallet#2177 = SmcCapability; cap_name#ff name:Text = SmcCapability;
type SnakeData ¶ added in v1.0.1
SnakeData tail#_ {bn:#} b:(bits bn) = SnakeData ~0; cons#_ {bn:#} {n:#} b:(bits bn) next:^(SnakeData ~n) = SnakeData ~(n + 1);
func (SnakeData) MarshalTLB ¶ added in v1.0.1
type SplitMergeInfo ¶ added in v1.0.1
type SplitMergeInfo struct { CurSHardPfxLen Uint6 AccSplitDepth Uint6 ThisAddr Bits256 SiblingAddr Bits256 }
split_merge_info$_ cur_shard_pfx_len:(## 6)
acc_split_depth:(## 6) this_addr:bits256 sibling_addr:bits256 = SplitMergeInfo;
type StateInit ¶ added in v1.0.1
type StateInit struct { SplitDepth Maybe[Uint5] Special Maybe[TickTock] Code Maybe[Ref[boc.Cell]] Data Maybe[Ref[boc.Cell]] Library HashmapE[Bits256, SimpleLib] }
StateInit _ split_depth:(Maybe (## 5)) special:(Maybe TickTock) code:(Maybe ^Cell) data:(Maybe ^Cell) library:(HashmapE 256 SimpleLib) = StateInit;
type StorageInfo ¶ added in v1.0.1
type StorageInfo struct { Used StorageUsed LastPaid uint32 DuePayment Maybe[Grams] }
StorageInfo storage_info$_ used:StorageUsed last_paid:uint32 due_payment:(Maybe Grams) = StorageInfo;
type StorageUsed ¶ added in v1.0.1
type StorageUsed struct { Cells VarUInteger7 Bits VarUInteger7 PublicCells VarUInteger7 }
StorageUsed storage_used$_ cells:(VarUInteger 7) bits:(VarUInteger 7) public_cells:(VarUInteger 7) = StorageUsed;
type StorageUsedShort ¶ added in v1.0.1
type StorageUsedShort struct { Cells VarUInteger7 Bits VarUInteger7 }
StorageUsedShort storage_used_short$_ cells:(VarUInteger 7) bits:(VarUInteger 7) = StorageUsedShort;
type Text ¶ added in v1.0.1
type Text string
text#_ {n:#} data:(SnakeData ~n) = Text;
func (Text) MarshalTLB ¶ added in v1.0.1
type TrActionPhase ¶ added in v1.0.1
type TrActionPhase struct { Success bool Valid bool NoFunds bool StatusChange AccStatusChange TotalFwdFees Maybe[Grams] TotalActionFees Maybe[Grams] ResultCode int32 ResultArg Maybe[int32] TotActions uint16 SpecActions uint16 SkippedActions uint16 MsgsCreated uint16 ActionListHash Bits256 TotMsgSize StorageUsedShort }
TrActionPhase tr_phase_action$_ success:Bool valid:Bool no_funds:Bool status_change:AccStatusChange total_fwd_fees:(Maybe Grams) total_action_fees:(Maybe Grams) result_code:int32 result_arg:(Maybe int32) tot_actions:uint16 spec_actions:uint16 skipped_actions:uint16 msgs_created:uint16 action_list_hash:bits256 tot_msg_size:StorageUsedShort = TrActionPhase;
type TrBouncePhase ¶ added in v1.0.1
type TrBouncePhase struct { SumType TrPhaseBounceNegfunds struct { } `tlbSumType:"tr_phase_bounce_negfunds$00"` TrPhaseBounceNofunds struct { MsgSize StorageUsedShort ReqFwdFees Grams } `tlbSumType:"tr_phase_bounce_nofunds$01"` TrPhaseBounceOk struct { MsgSize StorageUsedShort MsgFees Grams FwdFees Grams } `tlbSumType:"tr_phase_bounce_ok$1"` }
TrBouncePhase tr_phase_bounce_negfunds$00 = TrBouncePhase; tr_phase_bounce_nofunds$01 msg_size:StorageUsedShort req_fwd_fees:Grams = TrBouncePhase; tr_phase_bounce_ok$1 msg_size:StorageUsedShort msg_fees:Grams fwd_fees:Grams = TrBouncePhase;
type TrComputePhase ¶ added in v1.0.1
type TrComputePhase struct { SumType TrPhaseComputeSkipped struct { Reason ComputeSkipReason } `tlbSumType:"tr_phase_compute_skipped$0"` TrPhaseComputeVm struct { Success bool MsgStateUsed bool AccountActivated bool GasFees Grams Vm struct { GasUsed VarUInteger7 GasLimit VarUInteger7 GasCredit Maybe[VarUInteger3] Mode int8 ExitCode int32 ExitArg Maybe[int32] VmSteps uint32 VmInitStateHash Bits256 VmFinalStateHash Bits256 } `tlb:"^"` } `tlbSumType:"tr_phase_compute_vm$1"` }
TrComputePhase tr_phase_compute_skipped$0 reason:ComputeSkipReason = TrComputePhase; tr_phase_compute_vm$1 success:Bool msg_state_used:Bool account_activated:Bool gas_fees:Grams ^[ gas_used:(VarUInteger 7) gas_limit:(VarUInteger 7) gas_credit:(Maybe (VarUInteger 3)) mode:int8 exit_code:int32 exit_arg:(Maybe int32) vm_steps:uint32 vm_init_state_hash:bits256 vm_final_state_hash:bits256 ] = TrComputePhase;
type TrCreditPhase ¶ added in v1.0.1
type TrCreditPhase struct { DueFeesCollected Maybe[Grams] Credit CurrencyCollection }
TrCreditPhase tr_phase_credit$_ due_fees_collected:(Maybe Grams) credit:CurrencyCollection = TrCreditPhase;
type TrStoragePhase ¶ added in v1.0.1
type TrStoragePhase struct { StorageFeesCollected Grams StorageFeesDue Maybe[Grams] StatusChange AccStatusChange }
TrStoragePhase tr_phase_storage$_ storage_fees_collected:Grams storage_fees_due:(Maybe Grams) status_change:AccStatusChange = TrStoragePhase;
type Transaction ¶ added in v1.0.1
type Transaction struct { Magic Magic `tlb:"transaction$0111"` AccountAddr Bits256 Lt uint64 PrevTransHash Bits256 PrevTransLt uint64 Now uint32 OutMsgCnt Uint15 OrigStatus AccountStatus EndStatus AccountStatus Msgs struct { InMsg Maybe[Ref[Message]] OutMsgs HashmapE[Uint15, Ref[Message]] } `tlb:"^"` TotalFees CurrencyCollection StateUpdate HashUpdate `tlb:"^"` Description TransactionDescr `tlb:"^"` // contains filtered or unexported fields }
Transaction transaction$0111 account_addr:bits256 lt:uint64 prev_trans_hash:bits256 prev_trans_lt:uint64 now:uint32 outmsg_cnt:uint15 orig_status:AccountStatus end_status:AccountStatus ^[ in_msg:(Maybe ^(Message Any)) out_msgs:(HashmapE 15 ^(Message Any)) ] total_fees:CurrencyCollection state_update:^(HASH_UPDATE Account) description:^TransactionDescr = Transaction;
func (*Transaction) Hash ¶ added in v1.0.1
func (tx *Transaction) Hash() Bits256
Hash returns a hash of this transaction.
func (Transaction) IsSuccess ¶ added in v1.0.1
func (tx Transaction) IsSuccess() bool
func (*Transaction) UnmarshalTLB ¶ added in v1.0.1
func (tx *Transaction) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type TransactionDescr ¶ added in v1.0.1
type TransactionDescr struct { SumType TransOrd struct { CreditFirst bool StoragePh Maybe[TrStoragePhase] CreditPh Maybe[TrCreditPhase] ComputePh TrComputePhase Action Maybe[Ref[TrActionPhase]] Aborted bool Bounce Maybe[TrBouncePhase] Destroyed bool } `tlbSumType:"trans_ord$0000"` TransStorage struct { StoragePh TrStoragePhase } `tlbSumType:"trans_storage$0001"` TransTickTock struct { IsTock bool StoragePh TrStoragePhase ComputePh TrComputePhase Action Maybe[Ref[TrActionPhase]] Aborted bool Destroyed bool } `tlbSumType:"trans_tick_tock$001"` TransSplitPrepare *struct { SplitInfo SplitMergeInfo StoragePh Maybe[TrStoragePhase] ComputePh TrComputePhase Action Maybe[Ref[TrActionPhase]] Aborted bool Destroyed bool } `tlbSumType:"trans_split_prepare$0100"` TransSplitInstall *struct { SplitInfo SplitMergeInfo PrepareTransaction Any `tlb:"^"` Installed bool } `tlbSumType:"trans_split_install$0101"` TransMergePrepare *struct { SplitInfo SplitMergeInfo StoragePh TrStoragePhase Aborted bool } `tlbSumType:"trans_merge_prepare$0110"` TransMergeInstall *struct { SplitInfo SplitMergeInfo PrepareTransaction Any `tlb:"^"` //Transaction] StoragePh Maybe[TrStoragePhase] CreditPh Maybe[TrCreditPhase] ComputePh TrComputePhase Action Maybe[Ref[TrActionPhase]] Aborted bool Destroyed bool } `tlbSumType:"trans_merge_install$0111"` }
trans_merge_prepare$0110 split_info:SplitMergeInfo
storage_ph:TrStoragePhase aborted:Bool = TransactionDescr;
trans_merge_install$0111 split_info:SplitMergeInfo
prepare_transaction:^Transaction storage_ph:(Maybe TrStoragePhase) credit_ph:(Maybe TrCreditPhase) compute_ph:TrComputePhase action:(Maybe ^TrActionPhase) aborted:Bool destroyed:Bool = TransactionDescr;
type Uint128 ¶ added in v1.0.1
func (Uint128) MarshalJSON ¶ added in v1.0.1
func (Uint128) MarshalTLB ¶ added in v1.0.1
func (*Uint128) UnmarshalJSON ¶ added in v1.0.1
type Uint256 ¶ added in v1.0.1
func (Uint256) MarshalJSON ¶ added in v1.0.1
func (Uint256) MarshalTLB ¶ added in v1.0.1
func (*Uint256) UnmarshalJSON ¶ added in v1.0.1
type Uint257 ¶ added in v1.0.1
func (Uint257) MarshalJSON ¶ added in v1.0.1
func (Uint257) MarshalTLB ¶ added in v1.0.1
func (*Uint257) UnmarshalJSON ¶ added in v1.0.1
type UnmarshalerTLB ¶
type ValidatorBaseInfo ¶ added in v1.0.1
validator_base_info$_
validator_list_hash_short:uint32 catchain_seqno:uint32
= ValidatorBaseInfo;
type ValidatorDescr ¶ added in v1.0.1
type ValidatorDescr struct { SumType // validator#53 public_key:SigPubKey weight:uint64 = ValidatorDescr; Validator struct { PublicKey SigPubKey Weight uint64 } `tlbSumType:"validator#53"` // validator_addr#73 public_key:SigPubKey weight:uint64 adnl_addr:bits256 = ValidatorDescr; ValidatorAddr struct { PublicKey SigPubKey Weight uint64 AdnlAddr Bits256 } `tlbSumType:"validatoraddr#73"` }
type ValidatorInfo ¶ added in v1.0.1
validator_info$_
validator_list_hash_short:uint32 catchain_seqno:uint32 nx_cc_updated:Bool
= ValidatorInfo;
type ValidatorsSet ¶ added in v1.0.1
type ValidatorsSet struct { SumType // validators#11 utime_since:uint32 utime_until:uint32 // total:(## 16) main:(## 16) { main <= total } { main >= 1 } // list:(Hashmap 16 ValidatorDescr) = ValidatorSet; Validators struct { UtimeSince uint32 UtimeUntil uint32 Total uint16 Main uint16 List Hashmap[Uint16, ValidatorDescr] } `tlbSumType:"validators#11"` // validators_ext#12 utime_since:uint32 utime_until:uint32 // total:(## 16) main:(## 16) { main <= total } { main >= 1 } // total_weight:uint64 list:(HashmapE 16 ValidatorDescr) = ValidatorSet; ValidatorsExt struct { UtimeSince uint32 UtimeUntil uint32 Total uint16 Main uint16 TotalWeight uint64 List HashmapE[Uint16, ValidatorDescr] } `tlbSumType:"validatorsext#12"` }
type ValueFlow ¶ added in v1.0.1
type ValueFlow struct { Magic Magic `tlb:"value_flow#b8e48dfb"` Values1 struct { FromPrevBlk CurrencyCollection ToNextBlk CurrencyCollection Imported CurrencyCollection Exported CurrencyCollection } `tlb:"^"` FeesCollected CurrencyCollection Values2 struct { FeesImported CurrencyCollection Recovered CurrencyCollection Created CurrencyCollection Minted CurrencyCollection } `tlb:"^"` }
ValueFlow value_flow ^[ from_prev_blk:CurrencyCollection to_next_blk:CurrencyCollection imported:CurrencyCollection exported:CurrencyCollection ] fees_collected:CurrencyCollection ^[ fees_imported:CurrencyCollection recovered:CurrencyCollection created:CurrencyCollection minted:CurrencyCollection ] = ValueFlow;
type VarUInteger1 ¶ added in v1.0.1
func (VarUInteger1) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger1) MarshalJSON() ([]byte, error)
func (VarUInteger1) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger1) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger1) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger1) UnmarshalJSON(p []byte) error
func (*VarUInteger1) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger1) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger10 ¶ added in v1.0.1
func (VarUInteger10) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger10) MarshalJSON() ([]byte, error)
func (VarUInteger10) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger10) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger10) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger10) UnmarshalJSON(p []byte) error
func (*VarUInteger10) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger10) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger11 ¶ added in v1.0.1
func (VarUInteger11) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger11) MarshalJSON() ([]byte, error)
func (VarUInteger11) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger11) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger11) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger11) UnmarshalJSON(p []byte) error
func (*VarUInteger11) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger11) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger12 ¶ added in v1.0.1
func (VarUInteger12) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger12) MarshalJSON() ([]byte, error)
func (VarUInteger12) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger12) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger12) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger12) UnmarshalJSON(p []byte) error
func (*VarUInteger12) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger12) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger13 ¶ added in v1.0.1
func (VarUInteger13) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger13) MarshalJSON() ([]byte, error)
func (VarUInteger13) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger13) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger13) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger13) UnmarshalJSON(p []byte) error
func (*VarUInteger13) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger13) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger14 ¶ added in v1.0.1
func (VarUInteger14) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger14) MarshalJSON() ([]byte, error)
func (VarUInteger14) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger14) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger14) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger14) UnmarshalJSON(p []byte) error
func (*VarUInteger14) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger14) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger15 ¶ added in v1.0.1
func (VarUInteger15) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger15) MarshalJSON() ([]byte, error)
func (VarUInteger15) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger15) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger15) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger15) UnmarshalJSON(p []byte) error
func (*VarUInteger15) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger15) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger16 ¶ added in v1.0.1
func (VarUInteger16) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger16) MarshalJSON() ([]byte, error)
func (VarUInteger16) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger16) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger16) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger16) UnmarshalJSON(p []byte) error
func (*VarUInteger16) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger16) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger17 ¶ added in v1.0.1
func (VarUInteger17) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger17) MarshalJSON() ([]byte, error)
func (VarUInteger17) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger17) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger17) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger17) UnmarshalJSON(p []byte) error
func (*VarUInteger17) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger17) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger18 ¶ added in v1.0.1
func (VarUInteger18) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger18) MarshalJSON() ([]byte, error)
func (VarUInteger18) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger18) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger18) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger18) UnmarshalJSON(p []byte) error
func (*VarUInteger18) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger18) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger19 ¶ added in v1.0.1
func (VarUInteger19) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger19) MarshalJSON() ([]byte, error)
func (VarUInteger19) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger19) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger19) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger19) UnmarshalJSON(p []byte) error
func (*VarUInteger19) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger19) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger2 ¶ added in v1.0.1
func (VarUInteger2) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger2) MarshalJSON() ([]byte, error)
func (VarUInteger2) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger2) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger2) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger2) UnmarshalJSON(p []byte) error
func (*VarUInteger2) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger2) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger20 ¶ added in v1.0.1
func (VarUInteger20) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger20) MarshalJSON() ([]byte, error)
func (VarUInteger20) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger20) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger20) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger20) UnmarshalJSON(p []byte) error
func (*VarUInteger20) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger20) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger21 ¶ added in v1.0.1
func (VarUInteger21) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger21) MarshalJSON() ([]byte, error)
func (VarUInteger21) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger21) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger21) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger21) UnmarshalJSON(p []byte) error
func (*VarUInteger21) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger21) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger22 ¶ added in v1.0.1
func (VarUInteger22) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger22) MarshalJSON() ([]byte, error)
func (VarUInteger22) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger22) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger22) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger22) UnmarshalJSON(p []byte) error
func (*VarUInteger22) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger22) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger23 ¶ added in v1.0.1
func (VarUInteger23) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger23) MarshalJSON() ([]byte, error)
func (VarUInteger23) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger23) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger23) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger23) UnmarshalJSON(p []byte) error
func (*VarUInteger23) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger23) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger24 ¶ added in v1.0.1
func (VarUInteger24) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger24) MarshalJSON() ([]byte, error)
func (VarUInteger24) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger24) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger24) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger24) UnmarshalJSON(p []byte) error
func (*VarUInteger24) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger24) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger25 ¶ added in v1.0.1
func (VarUInteger25) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger25) MarshalJSON() ([]byte, error)
func (VarUInteger25) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger25) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger25) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger25) UnmarshalJSON(p []byte) error
func (*VarUInteger25) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger25) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger26 ¶ added in v1.0.1
func (VarUInteger26) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger26) MarshalJSON() ([]byte, error)
func (VarUInteger26) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger26) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger26) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger26) UnmarshalJSON(p []byte) error
func (*VarUInteger26) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger26) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger27 ¶ added in v1.0.1
func (VarUInteger27) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger27) MarshalJSON() ([]byte, error)
func (VarUInteger27) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger27) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger27) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger27) UnmarshalJSON(p []byte) error
func (*VarUInteger27) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger27) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger28 ¶ added in v1.0.1
func (VarUInteger28) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger28) MarshalJSON() ([]byte, error)
func (VarUInteger28) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger28) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger28) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger28) UnmarshalJSON(p []byte) error
func (*VarUInteger28) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger28) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger29 ¶ added in v1.0.1
func (VarUInteger29) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger29) MarshalJSON() ([]byte, error)
func (VarUInteger29) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger29) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger29) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger29) UnmarshalJSON(p []byte) error
func (*VarUInteger29) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger29) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger3 ¶ added in v1.0.1
func (VarUInteger3) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger3) MarshalJSON() ([]byte, error)
func (VarUInteger3) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger3) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger3) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger3) UnmarshalJSON(p []byte) error
func (*VarUInteger3) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger3) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger30 ¶ added in v1.0.1
func (VarUInteger30) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger30) MarshalJSON() ([]byte, error)
func (VarUInteger30) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger30) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger30) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger30) UnmarshalJSON(p []byte) error
func (*VarUInteger30) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger30) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger31 ¶ added in v1.0.1
func (VarUInteger31) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger31) MarshalJSON() ([]byte, error)
func (VarUInteger31) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger31) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger31) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger31) UnmarshalJSON(p []byte) error
func (*VarUInteger31) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger31) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger32 ¶ added in v1.0.1
func (VarUInteger32) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger32) MarshalJSON() ([]byte, error)
func (VarUInteger32) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger32) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger32) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger32) UnmarshalJSON(p []byte) error
func (*VarUInteger32) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger32) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger4 ¶ added in v1.0.1
func (VarUInteger4) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger4) MarshalJSON() ([]byte, error)
func (VarUInteger4) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger4) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger4) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger4) UnmarshalJSON(p []byte) error
func (*VarUInteger4) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger4) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger5 ¶ added in v1.0.1
func (VarUInteger5) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger5) MarshalJSON() ([]byte, error)
func (VarUInteger5) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger5) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger5) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger5) UnmarshalJSON(p []byte) error
func (*VarUInteger5) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger5) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger6 ¶ added in v1.0.1
func (VarUInteger6) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger6) MarshalJSON() ([]byte, error)
func (VarUInteger6) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger6) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger6) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger6) UnmarshalJSON(p []byte) error
func (*VarUInteger6) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger6) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger7 ¶ added in v1.0.1
func (VarUInteger7) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger7) MarshalJSON() ([]byte, error)
func (VarUInteger7) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger7) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger7) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger7) UnmarshalJSON(p []byte) error
func (*VarUInteger7) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger7) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger8 ¶ added in v1.0.1
func (VarUInteger8) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger8) MarshalJSON() ([]byte, error)
func (VarUInteger8) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger8) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger8) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger8) UnmarshalJSON(p []byte) error
func (*VarUInteger8) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger8) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VarUInteger9 ¶ added in v1.0.1
func (VarUInteger9) MarshalJSON ¶ added in v1.0.1
func (u VarUInteger9) MarshalJSON() ([]byte, error)
func (VarUInteger9) MarshalTLB ¶ added in v1.0.1
func (u VarUInteger9) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VarUInteger9) UnmarshalJSON ¶ added in v1.0.1
func (u *VarUInteger9) UnmarshalJSON(p []byte) error
func (*VarUInteger9) UnmarshalTLB ¶ added in v1.0.1
func (u *VarUInteger9) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VmCellSlice ¶ added in v1.0.1
type VmCellSlice struct {
// contains filtered or unexported fields
}
VmCellSlice _ cell:^Cell st_bits:(## 10) end_bits:(## 10) { st_bits <= end_bits } st_ref:(#<= 4) end_ref:(#<= 4) { st_ref <= end_ref } = VmCellSlice;
func (VmCellSlice) Cell ¶ added in v1.0.1
func (s VmCellSlice) Cell() *boc.Cell
func (VmCellSlice) MarshalTLB ¶ added in v1.0.1
func (s VmCellSlice) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VmCellSlice) UnmarshalTLB ¶ added in v1.0.1
func (s *VmCellSlice) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
func (VmCellSlice) UnmarshalToTlbStruct ¶ added in v1.0.1
func (s VmCellSlice) UnmarshalToTlbStruct(res any) error
type VmCont ¶ added in v1.0.1
type VmCont struct { }
VmCont _ cregs:(HashmapE 4 VmStackValue) = VmSaveList; vm_ctl_data$_ nargs:(Maybe uint13) stack:(Maybe VmStack) save:VmSaveList cp:(Maybe int16) = VmControlData; vmc_std$00 cdata:VmControlData code:VmCellSlice = VmCont; vmc_envelope$01 cdata:VmControlData next:^VmCont = VmCont; vmc_quit$1000 exit_code:int32 = VmCont; vmc_quit_exc$1001 = VmCont; vmc_repeat$10100 count:uint63 body:^VmCont after:^VmCont = VmCont; vmc_until$110000 body:^VmCont after:^VmCont = VmCont; vmc_again$110001 body:^VmCont = VmCont; vmc_while_cond$110010 cond:^VmCont body:^VmCont after:^VmCont = VmCont; vmc_while_body$110011 cond:^VmCont body:^VmCont after:^VmCont = VmCont; vmc_pushint$1111 value:int32 next:^VmCont = VmCont;
func (VmCont) MarshalTLB ¶ added in v1.0.1
type VmStack ¶ added in v1.0.1
type VmStack []VmStackValue
VmStack vm_stack#_ depth:(## 24) stack:(VmStackList depth) = VmStack; vm_stk_cons#_ {n:#} rest:^(VmStackList n) tos:VmStackValue = VmStackList (n + 1); vm_stk_nil#_ = VmStackList 0;
func (VmStack) MarshalTLB ¶ added in v1.0.1
func (*VmStack) Put ¶ added in v1.0.1
func (s *VmStack) Put(val VmStackValue)
type VmStackValue ¶ added in v1.0.1
type VmStackValue struct { SumType VmStkNull struct{} `tlbSumType:"vm_stk_null#00"` VmStkTinyInt int64 `tlbSumType:"vm_stk_tinyint#01"` VmStkInt Int257 `tlbSumType:"vm_stk_int$000000100000000"` // vm_stk_int#0201_ VmStkNan struct{} `tlbSumType:"vm_stk_nan#02ff"` VmStkCell Ref[boc.Cell] `tlbSumType:"vm_stk_cell#03"` VmStkSlice VmCellSlice `tlbSumType:"vm_stk_slice#04"` VmStkBuilder Ref[boc.Cell] `tlbSumType:"vm_stk_builder#05"` VmStkCont VmCont `tlbSumType:"vm_stk_cont#06"` VmStkTuple VmStkTuple `tlbSumType:"vm_stk_tuple#07"` }
VmStackValue vm_stk_null#00 = VmStackValue; vm_stk_tinyint#01 value:int64 = VmStackValue; vm_stk_int#0201_ value:int257 = VmStackValue; vm_stk_nan#02ff = VmStackValue; vm_stk_cell#03 cell:^Cell = VmStackValue; vm_stk_slice#04 _:VmCellSlice = VmStackValue; vm_stk_builder#05 cell:^Cell = VmStackValue; vm_stk_cont#06 cont:VmCont = VmStackValue; vm_stk_tuple#07 len:(## 16) data:(VmTuple len) = VmStackValue;
func CellToVmCellSlice ¶ added in v1.0.1
func CellToVmCellSlice(cell *boc.Cell) (VmStackValue, error)
func TlbStructToVmCell ¶ added in v1.0.1
func TlbStructToVmCell(s any) (VmStackValue, error)
func TlbStructToVmCellSlice ¶ added in v1.0.1
func TlbStructToVmCellSlice(s any) (VmStackValue, error)
func (VmStackValue) Cell
deprecated
added in
v1.0.1
func (v VmStackValue) Cell() *boc.Cell
Deprecated: Cell is deprecated.
func (VmStackValue) CellSlice
deprecated
added in
v1.0.1
func (v VmStackValue) CellSlice() *boc.Cell
Deprecated: CellSlice is deprecated.
func (VmStackValue) Int257
deprecated
added in
v1.0.1
func (v VmStackValue) Int257() Int257
Deprecated: Int is deprecated.
func (VmStackValue) Int64
deprecated
added in
v1.0.1
func (v VmStackValue) Int64() int64
Deprecated: Int64 is deprecated.
func (VmStackValue) IsCell
deprecated
added in
v1.0.1
func (v VmStackValue) IsCell() bool
Deprecated: IsCell is deprecated.
func (VmStackValue) IsCellSlice
deprecated
added in
v1.0.1
func (v VmStackValue) IsCellSlice() bool
Deprecated: IsCellSlice is deprecated.
func (VmStackValue) IsInt
deprecated
added in
v1.0.1
func (v VmStackValue) IsInt() bool
Deprecated: IsInt is deprecated.
func (VmStackValue) IsNull
deprecated
added in
v1.0.1
func (v VmStackValue) IsNull() bool
Deprecated: IsNull is deprecated.
func (VmStackValue) IsTuple
deprecated
added in
v1.0.1
func (v VmStackValue) IsTuple() bool
Deprecated: IsTuple is deprecated.
func (VmStackValue) Uint64
deprecated
added in
v1.0.1
func (v VmStackValue) Uint64() uint64
Deprecated: Uint64 is deprecated.
func (VmStackValue) Unmarshal ¶ added in v1.0.1
func (v VmStackValue) Unmarshal(dest any) error
type VmStkTuple ¶ added in v1.0.1
VmStkTuple Custom type: len:(## 16) data:(VmTuple len). Tag excluded. Use with VmStackValue type. vm_tupref_nil$_ = VmTupleRef 0; vm_tupref_single$_ entry:^VmStackValue = VmTupleRef 1; vm_tupref_any$_ {n:#} ref:^(VmTuple (n + 2)) = VmTupleRef (n + 2); vm_tuple_nil$_ = VmTuple 0; vm_tuple_tcons$_ {n:#} head:(VmTupleRef n) tail:^VmStackValue = VmTuple (n + 1); vm_stk_tuple#07 len:(## 16) data:(VmTuple len) = VmStackValue;
func (VmStkTuple) MarshalTLB ¶ added in v1.0.1
func (t VmStkTuple) MarshalTLB(c *boc.Cell, encoder *Encoder) error
func (*VmStkTuple) Unmarshal ¶ added in v1.0.1
func (t *VmStkTuple) Unmarshal(v any) error
func (*VmStkTuple) UnmarshalTLB ¶ added in v1.0.1
func (t *VmStkTuple) UnmarshalTLB(c *boc.Cell, decoder *Decoder) error
type VmTuple ¶ added in v1.0.1
type VmTuple struct { Head VmTupleRef Tail VmStackValue `tlb:"^"` }
type VmTupleRef ¶ added in v1.0.1
type VmTupleRef struct { Entry *VmStackValue `tlb:"^"` Ref *VmTuple `tlb:"^"` }