Versions in this module Expand all Collapse all v1 v1.10.2 Nov 27, 2024 Changes in this version + const AccountStatusActive + const AccountStatusFrozen + const AccountStatusNonExist + const AccountStatusUninit + const MaxTextChunkSize + var ErrStackEmpty = errors.New("stack is empty") + var ZeroCoins = MustFromTON("0") + func ConvertShardIdentToShard(si ShardIdent) (workchain int32, shard uint64) + func LoadFromCell(v any, loader *cell.Slice, skipMagic ...bool) error + func LoadFromCellAsProof(v any, loader *cell.Slice, skipMagic ...bool) error + func MethodNameHash(name string) uint64 + func ParseStackValue(slice *cell.Slice) (any, error) + func Register(typ any) + func RegisterWithName(name string, typ any) + func SerializeStackValue(b *cell.Builder, val any) error + func ToCell(v any) (*cell.Cell, error) + type AccStatusChange struct + Type AccStatusChangeType + func (a *AccStatusChange) LoadFromCell(loader *cell.Slice) error + func (a AccStatusChange) ToCell() (*cell.Cell, error) + type AccStatusChangeType string + const AccStatusChangeDeleted + const AccStatusChangeFrozen + const AccStatusChangeUnchanged + type Account struct + Code *cell.Cell + Data *cell.Cell + IsActive bool + LastTxHash []byte + LastTxLT uint64 + State *AccountState + func (a *Account) HasGetMethod(name string) bool + type AccountBlock struct + Addr []byte + StateUpdate *cell.Cell + Transactions *cell.Dictionary + type AccountState struct + Address *address.Address + IsValid bool + StorageInfo StorageInfo + func (a *AccountState) LoadFromCell(loader *cell.Slice) error + type AccountStatus string + func (g *AccountStatus) LoadFromCell(loader *cell.Slice) error + func (g AccountStatus) ToCell() (*cell.Cell, error) + type AccountStorage struct + Balance Coins + ExtraCurrencies *cell.Dictionary + LastTransactionLT uint64 + StateHash []byte + StateInit *StateInit + Status AccountStatus + func (s *AccountStorage) LoadFromCell(loader *cell.Slice) error + type ActionPhase struct + ActionListHash []byte + MessagesCreated uint16 + NoFunds bool + ResultArg *int32 + ResultCode int32 + SkippedActions uint16 + SpecActions uint16 + StatusChange AccStatusChange + Success bool + TotalActionFees *Coins + TotalActions uint16 + TotalFwdFees *Coins + TotalMsgSize StorageUsedShort + Valid bool + type AllShardsInfo struct + ShardHashes *cell.Dictionary + type AnyMessage interface + DestAddr func() *address.Address + Payload func() *cell.Cell + SenderAddr func() *address.Address + type BinTree struct + func (b *BinTree) All() []*cell.HashmapKV + func (b *BinTree) Get(key *cell.Cell) *cell.Cell + func (b *BinTree) LoadFromCell(loader *cell.Slice) error + type BlkPrevInfo struct + Prev1 ExtBlkRef + Prev2 *ExtBlkRef + type Block struct + BlockInfo BlockHeader + Extra *BlockExtra + GlobalID int32 + StateUpdate *cell.Cell + ValueFlow *cell.Cell + type BlockExtra struct + CreatedBy []byte + Custom *McBlockExtra + InMsgDesc *cell.Cell + OutMsgDesc *cell.Cell + RandSeed []byte + ShardAccountBlocks *cell.Cell + type BlockHeader struct + GenSoftware *GlobalVersion + MasterRef *ExtBlkRef + PrevRef BlkPrevInfo + PrevVertRef *BlkPrevInfo + func (h *BlockHeader) GetParentBlocks() ([]*BlockInfo, error) + func (h *BlockHeader) LoadFromCell(loader *cell.Slice) error + type BlockInfo struct + FileHash []byte + RootHash []byte + SeqNo uint32 + Shard int64 + Workchain int32 + func (h *BlockInfo) Copy() *BlockInfo + func (h *BlockInfo) Equals(h2 *BlockInfo) bool + type BouncePhase struct + Phase any + type BouncePhaseNegFunds struct + type BouncePhaseNoFunds struct + MsgSize StorageUsedShort + ReqFwdFees Coins + type BouncePhaseOk struct + FwdFees Coins + MsgFees Coins + MsgSize StorageUsedShort + type CatchainConfig struct + Config any + type CatchainConfigV1 struct + McCatchainLifetime uint32 + ShardCatchainLifetime uint32 + ShardValidatorsLifetime uint32 + ShardValidatorsNum uint32 + type CatchainConfigV2 struct + Flags uint8 + McCatchainLifetime uint32 + ShardCatchainLifetime uint32 + ShardValidatorsLifetime uint32 + ShardValidatorsNum uint32 + ShuffleMcValidators bool + type Coins struct + func FromDecimal(val string, decimals int) (Coins, error) + func FromNano(val *big.Int, decimals int) (Coins, error) + func FromNanoTON(val *big.Int) Coins + func FromNanoTONStr(val string) (Coins, error) + func FromNanoTONU(val uint64) Coins + func FromTON(val string) (Coins, error) + func MustFromDecimal(val string, decimals int) Coins + func MustFromNano(val *big.Int, decimals int) Coins + func MustFromTON(val string) Coins + func (g *Coins) Compare(coins *Coins) int + func (g *Coins) Decimals() int + func (g *Coins) LoadFromCell(loader *cell.Slice) error + func (g *Coins) UnmarshalJSON(data []byte) error + func (g Coins) MarshalJSON() ([]byte, error) + func (g Coins) Nano() *big.Int + func (g Coins) NanoTON() *big.Int + func (g Coins) String() string + func (g Coins) TON() string + func (g Coins) ToCell() (*cell.Cell, error) + type ComputePhase struct + Phase any + type ComputePhaseSkipped struct + Reason ComputeSkipReason + type ComputePhaseVM struct + AccountActivated bool + Details struct{ ... } + GasFees Coins + MsgStateUsed bool + Success bool + type ComputeSkipReason struct + Type ComputeSkipReasonType + func (c *ComputeSkipReason) LoadFromCell(loader *cell.Slice) error + func (c ComputeSkipReason) ToCell() (*cell.Cell, error) + type ComputeSkipReasonType string + const ComputeSkipReasonBadState + const ComputeSkipReasonNoGas + const ComputeSkipReasonNoState + const ComputeSkipReasonSuspended + type ConfigParams struct + Config struct{ ... } + ConfigAddr []byte + type ConsensusConfig struct + Config any + type ConsensusConfigV1 struct + AttemptDuration uint32 + CatchainMaxDeps uint32 + ConsensusTimeoutMs uint32 + FastAttempts uint32 + MaxBlockBytes uint32 + MaxCollatedBytes uint32 + NextCandidateDelayMs uint32 + RoundCandidates uint32 + type ConsensusConfigV2 struct + AttemptDuration uint32 + CatchainMaxDeps uint32 + ConsensusTimeoutMs uint32 + FastAttempts uint32 + Flags uint8 + MaxBlockBytes uint32 + MaxCollatedBytes uint32 + NewCatchainIds bool + NextCandidateDelayMs uint32 + RoundCandidates uint8 + type ConsensusConfigV3 struct + AttemptDuration uint32 + CatchainMaxDeps uint32 + ConsensusTimeoutMs uint32 + FastAttempts uint32 + Flags uint8 + MaxBlockBytes uint32 + MaxCollatedBytes uint32 + NewCatchainIds bool + NextCandidateDelayMs uint32 + ProtoVersion uint16 + RoundCandidates uint8 + type ConsensusConfigV4 struct + AttemptDuration uint32 + CatchainMaxBlocksCoff uint32 + CatchainMaxDeps uint32 + ConsensusTimeoutMs uint32 + FastAttempts uint32 + Flags uint8 + MaxBlockBytes uint32 + MaxCollatedBytes uint32 + NewCatchainIds bool + NextCandidateDelayMs uint32 + ProtoVersion uint16 + RoundCandidates uint8 + type CreditPhase struct + Credit CurrencyCollection + DueFeesCollected *Coins + type CurrencyCollection struct + Coins Coins + ExtraCurrencies *cell.Dictionary + type DepthBalanceInfo struct + Currencies CurrencyCollection + Depth uint32 + type ExtBlkRef struct + EndLt uint64 + FileHash []byte + RootHash []byte + SeqNo uint32 + type ExternalMessage struct + Body *cell.Cell + DstAddr *address.Address + ImportFee Coins + SrcAddr *address.Address + StateInit *StateInit + func (m *ExternalMessage) DestAddr() *address.Address + func (m *ExternalMessage) Payload() *cell.Cell + func (m *ExternalMessage) SenderAddr() *address.Address + type ExternalMessageOut struct + Body *cell.Cell + CreatedAt uint32 + CreatedLT uint64 + DstAddr *address.Address + SrcAddr *address.Address + StateInit *StateInit + func (m *ExternalMessageOut) DestAddr() *address.Address + func (m *ExternalMessageOut) Payload() *cell.Cell + func (m *ExternalMessageOut) SenderAddr() *address.Address + type FutureMerge struct + Interval uint32 + MergeUtime uint32 + type FutureSplit struct + Interval uint32 + SplitUtime uint32 + type FutureSplitMergeNone struct + type GlobalVersion struct + Capabilities uint64 + Version uint32 + type HashUpdate struct + NewHash []byte + OldHash []byte + type InternalMessage struct + Amount Coins + Body *cell.Cell + Bounce bool + Bounced bool + CreatedAt uint32 + CreatedLT uint64 + DstAddr *address.Address + ExtraCurrencies *cell.Dictionary + FwdFee Coins + IHRDisabled bool + IHRFee Coins + SrcAddr *address.Address + StateInit *StateInit + func (m *InternalMessage) Comment() string + func (m *InternalMessage) DestAddr() *address.Address + func (m *InternalMessage) Dump() string + func (m *InternalMessage) Payload() *cell.Cell + func (m *InternalMessage) SenderAddr() *address.Address + type KeyExtBlkRef struct + BlkRef ExtBlkRef + IsKey bool + type KeyMaxLt struct + IsKey bool + MaxEndLT uint64 + type Magic struct + type Marshaller interface + ToCell func() (*cell.Cell, error) + type McBlockExtra struct + ConfigParams *ConfigParams + Details struct{ ... } + KeyBlock bool + ShardFees *cell.Dictionary + ShardHashes *cell.Dictionary + type McStateExtra struct + ConfigParams ConfigParams + GlobalBalance CurrencyCollection + Info *cell.Cell + ShardHashes *cell.Dictionary + type McStateExtraBlockInfo struct + BlockCreateStats *cell.Cell + Flags uint16 + LastKeyBlock *ExtBlkRef + PrevBlocks *cell.Dictionary + ValidatorInfo ValidatorInfo + type Message struct + Msg AnyMessage + MsgType MsgType + func (m *Message) AsExternalIn() *ExternalMessage + func (m *Message) AsExternalOut() *ExternalMessageOut + func (m *Message) AsInternal() *InternalMessage + func (m *Message) LoadFromCell(loader *cell.Slice) error + type MessagesList struct + List *cell.Dictionary + func (m *MessagesList) ToSlice() ([]Message, error) + type MsgType string + const MsgTypeExternalIn + const MsgTypeExternalOut + const MsgTypeInternal + type ShardAccount struct + Account *cell.Cell + LastTransHash []byte + LastTransLT uint64 + type ShardAccountBlocks struct + Accounts *cell.Dictionary + type ShardDesc struct + BeforeMerge bool + BeforeSplit bool + Currencies struct{ ... } + EndLT uint64 + FileHash []byte + Flags uint8 + GenUTime uint32 + MinRefMcSeqNo uint32 + NXCCUpdated bool + NextCatchainSeqNo uint32 + NextValidatorShard int64 + RegMcSeqno uint32 + RootHash []byte + SeqNo uint32 + SplitMergeAt any + StartLT uint64 + WantMerge bool + WantSplit bool + type ShardDescB struct + BeforeMerge bool + BeforeSplit bool + EndLT uint64 + FeesCollected CurrencyCollection + FileHash []byte + Flags uint8 + FundsCreated CurrencyCollection + GenUTime uint32 + MinRefMcSeqNo uint32 + NXCCUpdated bool + NextCatchainSeqNo uint32 + NextValidatorShard int64 + RegMcSeqno uint32 + RootHash []byte + SeqNo uint32 + SplitMergeAt any + StartLT uint64 + WantMerge bool + WantSplit bool + type ShardID uint64 + func (s ShardID) ContainsAddress(addr *address.Address) bool + func (s ShardID) GetChild(left bool) ShardID + func (s ShardID) GetParent() ShardID + func (s ShardID) IsAncestor(of ShardID) bool + func (s ShardID) IsParent(of ShardID) bool + func (s ShardID) IsSibling(with ShardID) bool + type ShardIdent struct + PrefixBits int8 + ShardPrefix uint64 + WorkchainID int32 + func (s ShardIdent) GetShardID() ShardID + func (s ShardIdent) IsAncestor(of ShardIdent) bool + func (s ShardIdent) IsParent(of ShardIdent) bool + func (s ShardIdent) IsSibling(with ShardIdent) bool + type ShardStateSplit struct + Left ShardStateUnsplit + Right ShardStateUnsplit + type ShardStateUnsplit struct + Accounts struct{ ... } + BeforeSplit bool + GenLT uint64 + GenUTime uint32 + GlobalID int32 + McStateExtra *cell.Cell + MinRefMCSeqno uint32 + OutMsgQueueInfo *cell.Cell + Seqno uint32 + ShardIdent ShardIdent + Stats *cell.Cell + VertSeqno uint32 + type SigPubKeyED25519 struct + Key []byte + type SplitMergeInfo struct + AccSplitDepth uint8 + CurShardPfxLen uint8 + SiblingAddr []byte + ThisAddr []byte + type Stack struct + func NewStack() *Stack + func (s *Stack) Depth() uint + func (s *Stack) LoadFromCell(loader *cell.Slice) error + func (s *Stack) Pop() (any, error) + func (s *Stack) Push(obj any) + func (s *Stack) ToCell() (*cell.Cell, error) + type StackElement struct + type StackNaN struct + type StateInit struct + Code *cell.Cell + Data *cell.Cell + Depth *uint64 + Lib *cell.Dictionary + TickTock *TickTock + func (s StateInit) CalcAddress(workchain int) *address.Address + type StateUpdate struct + New *cell.Cell + Old any + type StorageInfo struct + DuePayment *Coins + LastPaid uint32 + StorageUsed StorageUsed + type StoragePhase struct + StatusChange AccStatusChange + StorageFeesCollected Coins + StorageFeesDue *Coins + type StorageUsed struct + BitsUsed *big.Int + CellsUsed *big.Int + PublicCellsUsed *big.Int + type StorageUsedShort struct + Bits *big.Int + Cells *big.Int + type Text struct + MaxFirstChunkSize uint8 + Value string + func (t *Text) LoadFromCell(loader *cell.Slice) error + func (t Text) ToCell() (*cell.Cell, error) + type TickTock struct + Tick bool + Tock bool + type Transaction struct + AccountAddr []byte + Description TransactionDescription + EndStatus AccountStatus + Hash []byte + IO struct{ ... } + LT uint64 + Now uint32 + OrigStatus AccountStatus + OutMsgCount uint16 + PrevTxHash []byte + PrevTxLT uint64 + StateUpdate HashUpdate + TotalFees CurrencyCollection + func (t *Transaction) Dump() string + func (t *Transaction) String() string + type TransactionDescription struct + Description any + type TransactionDescriptionMergeInstall struct + Aborted bool + ActionPhase *ActionPhase + ComputePhase ComputePhase + CreditPhase *CreditPhase + Destroyed bool + PrepareTransaction *Transaction + SplitInfo SplitMergeInfo + StoragePhase *StoragePhase + type TransactionDescriptionMergePrepare struct + Aborted bool + SplitInfo SplitMergeInfo + StoragePhase StoragePhase + type TransactionDescriptionOrdinary struct + Aborted bool + ActionPhase *ActionPhase + BouncePhase *BouncePhase + ComputePhase ComputePhase + CreditFirst bool + CreditPhase *CreditPhase + Destroyed bool + StoragePhase *StoragePhase + type TransactionDescriptionSplitInstall struct + Installed bool + PrepareTransaction *Transaction + SplitInfo SplitMergeInfo + type TransactionDescriptionSplitPrepare struct + Aborted bool + ActionPhase *ActionPhase + ComputePhase ComputePhase + Destroyed bool + SplitInfo SplitMergeInfo + StoragePhase *StoragePhase + type TransactionDescriptionStorage struct + StoragePhase StoragePhase + type TransactionDescriptionTickTock struct + Aborted bool + ActionPhase *ActionPhase + ComputePhase ComputePhase + Destroyed bool + IsTock bool + StoragePhase StoragePhase + type Unmarshaler interface + LoadFromCell func(loader *cell.Slice) error + type Validator struct + PublicKey SigPubKeyED25519 + Weight uint64 + type ValidatorAddr struct + ADNLAddr []byte + PublicKey SigPubKeyED25519 + Weight uint64 + type ValidatorInfo struct + CatchainSeqno uint32 + NextCCUpdated bool + ValidatorListHashShort uint32 + type ValidatorSet struct + List *cell.Dictionary + Main uint16 + Total uint16 + UTimeSince uint32 + UTimeUntil uint32 + type ValidatorSetAny struct + Validators any + type ValidatorSetExt struct + List *cell.Dictionary + Main uint16 + Total uint16 + TotalWeight uint64 + UTimeSince uint32 + UTimeUntil uint32