Documentation ¶
Index ¶
- type AccountInfo
- type AccountState
- 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) SubmitTx(ctx context.Context, sender 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
- type ZkSync
- func (c *ZkSync) Balance(ctx context.Context, account common.Address) (decimal.Decimal, error)
- func (c *ZkSync) GetAccountInfo(ctx context.Context, account common.Address) (types.Item, error)
- func (c *ZkSync) GetChainID(ctx context.Context) (int64, error)
- func (c *ZkSync) GetChainInfo(ctx context.Context) (types.Item, error)
- func (c *ZkSync) GetTransaction(ctx context.Context, hash common.Hash) (types.Item, error)
- func (c *ZkSync) SendQuery(ctx context.Context, from common.Address, to common.Address, ...) ([]byte, error)
- func (c *ZkSync) SendTransaction(ctx context.Context, from types.Account, to *common.Address, ...) (common.Hash, error)
- func (c *ZkSync) TokenBalance(ctx context.Context, account common.Address, token common.Address) (*big.Int, error)
- func (c *ZkSync) TokenInfo(ctx context.Context, token common.Address) (TokenInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct { ID int64 Address string Committed AccountState Verified AccountState }
type AccountState ¶
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 NewEthFromURL ¶
func (*Eth) FunctionCallData ¶
func (*Eth) GetAccountInfo ¶
func (*Eth) GetTransaction ¶
func (*Eth) SendTransaction ¶
func (*Eth) TokenBalance ¶
type WithGasFeeCap ¶
type WithGasPrice ¶
type WithGasTipCap ¶
type ZkSync ¶
type ZkSync struct {
URL string
}
func NewZkSyncFromURL ¶
func (*ZkSync) GetAccountInfo ¶
func (*ZkSync) GetChainInfo ¶
func (*ZkSync) GetTransaction ¶
func (*ZkSync) SendTransaction ¶
func (*ZkSync) TokenBalance ¶
Click to show internal directories.
Click to hide internal directories.