Documentation ¶
Index ¶
- Constants
- Variables
- func CreateExternalMessage(address AccountID, body *boc.Cell, init *tlb.StateInit, ...) (tlb.Message, error)
- func DefaultAddressParser() *addressParser
- func MustParseAddress(a string) ton.Address
- func NewAccountAddressParser(resolver dnsResolver) *addressParser
- func ParseAddress(a string) (ton.Address, error)
- func SetDefaultExecutor(executor abi.Executor, opts ...ParserOption)
- type AccountID
- type Bits256
- type BlockID
- type BlockIDExt
- type JettonMetadata
- type ParserOption
- type ParserOptions
- type ShardID
- type Transaction
Constants ¶
const (
// DefaultRoot is the default DNS root address used by the addressParser.
DefaultRoot = "-1:e56754f83426f69b09267bd876ac97c44821345b7e266bd956a7bfbfb98df35c"
)
Variables ¶
var AccountIDFromTlb = ton.AccountIDFromTlb
var BlockchainInterfaceIsNil = errors.New("blockchain interface is nil")
var MustParseAccountID = ton.MustParseAccountID
Deprecated: use MustParseAddress instead.
var NewAccountId = ton.NewAccountID
Deprecated use ton.NewAccountID instead
var ParseAccountID = ton.ParseAccountID
Deprecated: use ParseAddress instead.
Functions ¶
func CreateExternalMessage ¶
func DefaultAddressParser ¶ added in v1.2.1
func DefaultAddressParser() *addressParser
DefaultAddressParser returns a default address parser that works in the mainnet. For other networks, use SetDefaultExecutor(testnetLiteapiClient). Take a look at NewAccountAddressParser to create a parser for a different network or with a different root address.
func MustParseAddress ¶ added in v1.3.0
func NewAccountAddressParser ¶ added in v1.2.1
func NewAccountAddressParser(resolver dnsResolver) *addressParser
func ParseAddress ¶ added in v1.2.1
ParseAddress parses a string of different formats to a ton.Address.
func SetDefaultExecutor ¶ added in v1.3.0
func SetDefaultExecutor(executor abi.Executor, opts ...ParserOption)
SetDefaultExecutor sets the default executor for the default address parser. The executor is used to resolve DNS records.
Types ¶
type Bits256 ¶ added in v1.0.1
func MustParseHash ¶
type BlockID ¶ added in v1.0.1
func MustParseBlockID ¶ added in v1.1.2
func ParseBlockID ¶ added in v1.1.2
ParseBlockID tries to construct BlockID from the given string.
type BlockIDExt ¶ added in v1.0.1
type BlockIDExt = ton.BlockIDExt
func GetParents ¶ added in v1.0.1
func GetParents(i tlb.BlockInfo) ([]BlockIDExt, error)
func NewTonBlockId ¶
func NewTonBlockId(fileHash, rootHash Bits256, seqno uint32, shard uint64, workchain int32) *BlockIDExt
func ShardIDs ¶ added in v1.0.1
func ShardIDs(blk *tlb.Block) []BlockIDExt
ShardIDs returns a list of IDs of shard blocks this block refers to.
type JettonMetadata ¶
type ParserOption ¶ added in v1.9.2
type ParserOption func(options *ParserOptions)
func WithRootDNS ¶ added in v1.9.2
func WithRootDNS(root AccountID) ParserOption
type ParserOptions ¶ added in v1.9.2
type Transaction ¶
type Transaction = ton.Transaction