Documentation ¶
Index ¶
- Constants
- type ERC20Token
- type EthCall
- type EthClient
- func (c *EthClient) BalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (c *EthClient) BalanceWithoutZerosAt(ctx context.Context, account common.Address) (float64, error)
- func (c *EthClient) Call(ctx context.Context, call *EthCall) (interface{}, error)
- func (c *EthClient) ChainID(ctx context.Context) (string, error)
- func (c *EthClient) GetAssetPoolBalanceForToken(hexTokenAddress, assetPoolAddress string) (*big.Int, error)
- func (c *EthClient) GetERC20(hexTokenAddress string) (*ERC20Token, error)
- func (c *EthClient) Height(ctx context.Context) (uint64, error)
- func (c *EthClient) Ready(ctx context.Context) (bool, error)
- type EventsCounter
Constants ¶
View Source
const ( AllEvents = "*" DefaultInitialCallPastBlocks = 128 DefaultMaxBlocks = 9999 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC20Token ¶
type EthCall ¶ added in v0.11.0
type EthCall struct {
// contains filtered or unexported fields
}
func NewEthCall ¶ added in v0.11.0
func NewEthCallFromConfig ¶ added in v0.11.0
func (EthCall) ContractAddress ¶ added in v0.11.0
func (EthCall) MethodName ¶ added in v0.11.0
type EthClient ¶
type EthClient struct {
// contains filtered or unexported fields
}
func (*EthClient) BalanceWithoutZerosAt ¶ added in v0.11.0
func (*EthClient) GetAssetPoolBalanceForToken ¶
func (*EthClient) GetERC20 ¶
func (c *EthClient) GetERC20(hexTokenAddress string) (*ERC20Token, error)
type EventsCounter ¶ added in v0.12.0
type EventsCounter struct {
// contains filtered or unexported fields
}
func NewEventsCounter ¶ added in v0.12.0
func NewEventsCounterFromConfig ¶ added in v0.12.0
func NewEventsCounterFromConfig(cfg config.EthEvents) (*EventsCounter, error)
func (*EventsCounter) CallFilterLogs ¶ added in v0.12.0
func (e *EventsCounter) CallFilterLogs(ctx context.Context, client *EthClient) error
func (EventsCounter) ContractAddress ¶ added in v0.12.0
func (e EventsCounter) ContractAddress() string
func (EventsCounter) Count ¶ added in v0.12.0
func (e EventsCounter) Count() map[string]uint64
Count returns result
func (EventsCounter) Name ¶ added in v0.12.0
func (e EventsCounter) Name() string
Click to show internal directories.
Click to hide internal directories.