Documentation ¶
Index ¶
- Constants
- func CreateExternalMessage(address AccountID, body *boc.Cell, init *tlb.StateInit, importFee tlb.Grams) (tlb.Message, error)
- type AccountID
- func AccountIDFromBase64Url(s string) (AccountID, error)
- func AccountIDFromRaw(s string) (AccountID, error)
- func AccountIDFromTlb(a tlb.MsgAddress) (*AccountID, error)
- func MustParseAccountID(s string) AccountID
- func NewAccountID(id int32, addr [32]byte) *AccountID
- func ParseAccountID(s string) (AccountID, error)
- func (id AccountID) IsZero() bool
- func (id AccountID) MarshalJSON() ([]byte, error)
- func (id AccountID) MarshalTL() ([]byte, error)
- func (id AccountID) String() string
- func (id AccountID) ToHuman(bounce, testnet bool) string
- func (id *AccountID) ToMsgAddress() tlb.MsgAddress
- func (id AccountID) ToRaw() string
- func (id *AccountID) UnmarshalJSON(data []byte) error
- func (id *AccountID) UnmarshalTL(r io.Reader) error
- type Address
- type Bits256
- func (h Bits256) Base64() string
- func (h *Bits256) FromBase64(s string) error
- func (h *Bits256) FromBase64URL(s string) error
- func (h *Bits256) FromBytes(b []byte) error
- func (h *Bits256) FromHex(s string) error
- func (h *Bits256) FromUnknownString(s string) error
- func (h Bits256) Hex() string
- func (b Bits256) MarshalJSON() ([]byte, error)
- func (h *Bits256) Scan(src interface{}) error
- func (b *Bits256) UnmarshalJSON(buf []byte) error
- func (h Bits256) Value() (driver.Value, error)
- type BlockID
- type BlockIDExt
- type ShardID
- type Transaction
Constants ¶
View Source
const OneTON tlb.Grams = 1_000_000_000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountID ¶
func AccountIDFromBase64Url ¶
func AccountIDFromRaw ¶
func AccountIDFromTlb ¶
func AccountIDFromTlb(a tlb.MsgAddress) (*AccountID, error)
TODO: replace pointer with nullable type
func MustParseAccountID ¶
func NewAccountID ¶ added in v1.3.0
func ParseAccountID ¶
func (AccountID) MarshalJSON ¶
func (*AccountID) ToMsgAddress ¶
func (id *AccountID) ToMsgAddress() tlb.MsgAddress
func (*AccountID) UnmarshalJSON ¶
type Address ¶
Address identifies an account in the TON network. Comparing to AccountID which is a low-level identifier of a smart contract, Address is a high-level abstraction containing additional information besides AccountID, which is useful for building more advanced workflows.
type Bits256 ¶
func MustParseHash ¶
func (*Bits256) FromBase64 ¶
func (*Bits256) FromBase64URL ¶
func (*Bits256) FromUnknownString ¶
func (Bits256) MarshalJSON ¶
func (*Bits256) UnmarshalJSON ¶
type BlockID ¶
func MustParseBlockID ¶
func ParseBlockID ¶
ParseBlockID tries to construct BlockID from the given string.
type BlockIDExt ¶
func GetParents ¶
func GetParents(i tlb.BlockInfo) ([]BlockIDExt, error)
func NewTonBlockId ¶
func NewTonBlockId(fileHash, rootHash Bits256, seqno uint32, shard uint64, workchain int32) *BlockIDExt
func ShardIDs ¶
func ShardIDs(blk *tlb.Block) []BlockIDExt
ShardIDs returns a list of IDs of shard blocks this block refers to.
func (BlockIDExt) MarshalTL ¶
func (id BlockIDExt) MarshalTL() ([]byte, error)
func (BlockIDExt) String ¶
func (id BlockIDExt) String() string
func (*BlockIDExt) UnmarshalTL ¶
func (id *BlockIDExt) UnmarshalTL(data []byte) error
type ShardID ¶
type ShardID struct {
// contains filtered or unexported fields
}
func MustParseShardID ¶
func ParseShardID ¶
func (ShardID) MatchAccountID ¶
func (ShardID) MatchBlockID ¶
type Transaction ¶
type Transaction struct { tlb.Transaction BlockID BlockIDExt }
Click to show internal directories.
Click to hide internal directories.