Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToBytes ¶ added in v0.44.0
AddressToBytes converts an Aptos address string to bytes. Aptos addresses can be in various formats (short, long, with/without 0x prefix) but are normalized to 32 bytes.
Types ¶
type AddressConverter ¶ added in v0.44.0
type AddressConverter struct{}
AddressConverter implements address conversion for Aptos chains. This struct implements the AddressConverter interface.
func (AddressConverter) ConvertToBytes ¶ added in v0.44.0
func (a AddressConverter) ConvertToBytes(address string) ([]byte, error)
ConvertToBytes converts an Aptos address string to bytes.
func (AddressConverter) Supports ¶ added in v0.44.0
func (a AddressConverter) Supports(family string) bool
Supports returns true if this converter supports the given chain family.
type Chain ¶
type Chain struct {
Selector uint64
Client aptoslib.AptosRpcClient
DeployerSigner aptoslib.TransactionSigner
URL string
Confirm func(txHash string, opts ...any) error
}
Chain represents an Aptos chain.
func (Chain) ChainSelector ¶
ChainSelector returns the chain selector of the chain
Click to show internal directories.
Click to hide internal directories.