Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MakeDefaultConfirmFunc = func(c ton.APIClientWrapped) ConfirmFunc { return func(ctx context.Context, tx *tlb.Transaction) error { return tracetracking.WaitForTrace(ctx, c, tx) } }
MakeDefaultConfirmFunc creates a default ConfirmFunc that waits for transaction trace.
Functions ¶
func AddressToBytes ¶ added in v0.44.0
AddressToBytes converts a TON address string to bytes. TON addresses can be in various formats but are normalized to 32 bytes.
Types ¶
type AddressConverter ¶ added in v0.44.0
type AddressConverter struct{}
AddressConverter implements address conversion for TON chains. This struct implements the AddressConverter strategy interface.
func (AddressConverter) ConvertToBytes ¶ added in v0.44.0
func (t AddressConverter) ConvertToBytes(address string) ([]byte, error)
ConvertToBytes converts a TON address string to bytes.
func (AddressConverter) Supports ¶ added in v0.44.0
func (t AddressConverter) Supports(family string) bool
Supports returns true if this converter supports the given chain family.
type Chain ¶
type Chain struct {
ChainMetadata // Contains canonical chain identifier
Client *ton.APIClient // APIClient for Lite Server connection
Wallet *wallet.Wallet // Wallet abstraction (signing, sending)
WalletAddress *address.Address // Address of deployer wallet
URL string // Liteserver URL
Confirm ConfirmFunc // Function to confirm transactions
}
Chain represents a TON chain.
type ChainMetadata ¶ added in v0.5.1
type ChainMetadata = common.ChainMetadata
type ConfirmFunc ¶ added in v0.79.0
type ConfirmFunc func(ctx context.Context, tx *tlb.Transaction) error
ConfirmFunc is a function that waits for the transaction to be confirmed, or returns an error.
Click to show internal directories.
Click to hide internal directories.