Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 // RPC client via Lite Server
Wallet *wallet.Wallet // Wallet abstraction (signing, sending)
WalletAddress *address.Address // Address of deployer wallet
URL string // Liteserver URL
}
Chain represents a TON chain.
type ChainMetadata ¶ added in v0.5.1
type ChainMetadata = common.ChainMetadata
Click to show internal directories.
Click to hide internal directories.