Documentation ¶
Index ¶
- type ChainClient
- type Eth
- func (c *Eth) Balance(ctx context.Context, account common.Address) (decimal.Decimal, error)
- func (c *Eth) Call(ctx context.Context, sender types.Account, contract common.Address, ...) (*ethtypes.Receipt, error)
- func (c *Eth) FunctionCallData(function string, argTypes abi.Arguments, args ...interface{}) ([]byte, error)
- func (c *Eth) GetAccountInfo(ctx context.Context, account common.Address) (types.Item, error)
- func (c *Eth) GetChainID(ctx context.Context) (int64, error)
- func (c *Eth) GetChainInfo(ctx context.Context) (types.Item, error)
- func (c *Eth) GetTransaction(ctx context.Context, hash common.Hash) (types.Item, error)
- func (c *Eth) Query(ctx context.Context, resolver types.AddressResolver, sender common.Address, ...) ([]interface{}, error)
- func (c *Eth) SendQuery(ctx context.Context, sender common.Address, to common.Address, ...) ([]byte, error)
- func (c *Eth) SendTransaction(ctx context.Context, from types.Account, to *common.Address, ...) (common.Hash, error)
- func (c *Eth) TokenBalance(ctx context.Context, token common.Address, account common.Address) (*big.Int, error)
- func (c *Eth) TokenInfo(ctx context.Context, token common.Address) (TokenInfo, error)
- type TokenInfo
- type WithData
- type WithGas
- type WithGasFeeCap
- type WithGasPrice
- type WithGasTipCap
- type WithNonce
- type WithValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainClient ¶
type ChainClient interface { Balance(ctx context.Context, account common.Address) (decimal.Decimal, error) TokenBalance(ctx context.Context, token common.Address, account common.Address) (*big.Int, error) TokenInfo(ctx context.Context, token common.Address) (TokenInfo, error) GetTransaction(ctx context.Context, hash common.Hash) (types.Item, error) GetChainID(ctx context.Context) (int64, error) GetChainInfo(ctx context.Context) (types.Item, error) GetAccountInfo(ctx context.Context, account common.Address) (types.Item, error) SendTransaction(ctx context.Context, from types.Account, to *common.Address, options ...interface{}) (common.Hash, error) SendQuery(ctx context.Context, from common.Address, to common.Address, options ...interface{}) ([]byte, error) }
type Eth ¶
func (*Eth) FunctionCallData ¶
func (*Eth) GetAccountInfo ¶
func (*Eth) GetTransaction ¶
func (*Eth) SendTransaction ¶
func (*Eth) TokenBalance ¶
type WithGasFeeCap ¶
type WithGasPrice ¶
type WithGasTipCap ¶
Click to show internal directories.
Click to hide internal directories.