Documentation ¶
Index ¶
- type EthereumConfig
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthereumConfig ¶
type EthereumConfig struct {
// contains filtered or unexported fields
}
func NewEthereumConfig ¶
func NewEthereumConfig(url string, exchange common.Address) *EthereumConfig
func (*EthereumConfig) ExchangeAddress ¶
func (c *EthereumConfig) ExchangeAddress() common.Address
func (*EthereumConfig) GetURL ¶
func (c *EthereumConfig) GetURL() string
type EthereumProvider ¶
type EthereumProvider struct { Client interfaces.EthereumClient Config interfaces.EthereumConfig }
func NewDefaultEthereumProvider ¶
func NewDefaultEthereumProvider() *EthereumProvider
func NewEthereumProvider ¶
func NewEthereumProvider(c interfaces.EthereumClient) *EthereumProvider
func NewSimulatedEthereumProvider ¶
func NewSimulatedEthereumProvider(accs []common.Address) *EthereumProvider
func NewWebsocketProvider ¶
func NewWebsocketProvider() *EthereumProvider
func (*EthereumProvider) Decimals ¶
func (e *EthereumProvider) Decimals(token common.Address) (uint8, error)
func (*EthereumProvider) GetBalanceAt ¶
func (*EthereumProvider) GetPendingNonceAt ¶
func (e *EthereumProvider) GetPendingNonceAt(a common.Address) (uint64, error)
type SimulatedClient ¶
type SimulatedClient struct {
*backends.SimulatedBackend
}
func NewSimulatedClient ¶
func NewSimulatedClient(accs []common.Address) *SimulatedClient
func NewSimulatedClientWithGasLimit ¶
func NewSimulatedClientWithGasLimit(accs []common.Address, gasLimit uint64) *SimulatedClient
func (*SimulatedClient) PendingBalanceAt ¶
Click to show internal directories.
Click to hide internal directories.