Versions in this module Expand all Collapse all v0 v0.4.0 Apr 25, 2019 Changes in this version + type EthereumConfig struct + func NewEthereumConfig(url string, exchange common.Address) *EthereumConfig + func (c *EthereumConfig) ExchangeAddress() common.Address + func (c *EthereumConfig) GetURL() string + type EthereumProvider struct + Client interfaces.EthereumClient + Config interfaces.EthereumConfig + func NewDefaultEthereumProvider() *EthereumProvider + func NewEthereumProvider(c interfaces.EthereumClient) *EthereumProvider + func NewSimulatedEthereumProvider(accs []common.Address) *EthereumProvider + func NewWebsocketProvider() *EthereumProvider + func (e *EthereumProvider) BalanceOf(owner common.Address, token common.Address) (*big.Int, error) + func (e *EthereumProvider) Decimals(token common.Address) (uint8, error) + func (e *EthereumProvider) GetBalanceAt(a common.Address) (*big.Int, error) + func (e *EthereumProvider) GetPendingNonceAt(a common.Address) (uint64, error) + func (e *EthereumProvider) Symbol(token common.Address) (string, error) + func (e *EthereumProvider) WaitMined(hash common.Hash) (*eth.Receipt, error) + type SimulatedClient struct + func NewSimulatedClient(accs []common.Address) *SimulatedClient + func NewSimulatedClientWithGasLimit(accs []common.Address, gasLimit uint64) *SimulatedClient + func (b *SimulatedClient) PendingBalanceAt(ctx context.Context, acc common.Address) (*big.Int, error)