ethereum

package
v0.0.0-...-2c32341 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 NewSimulatedEthereumProvider

func NewSimulatedEthereumProvider(accs []common.Address) *EthereumProvider

func NewWebsocketProvider

func NewWebsocketProvider() *EthereumProvider

func (*EthereumProvider) Allowance

func (e *EthereumProvider) Allowance(owner, spender, token common.Address) (*big.Int, error)

func (*EthereumProvider) BalanceOf

func (e *EthereumProvider) BalanceOf(owner common.Address, token common.Address) (*big.Int, error)

func (*EthereumProvider) Decimals

func (e *EthereumProvider) Decimals(token common.Address) (uint8, error)

func (*EthereumProvider) ExchangeAllowance

func (e *EthereumProvider) ExchangeAllowance(owner, token common.Address) (*big.Int, error)

func (*EthereumProvider) GetBalanceAt

func (e *EthereumProvider) GetBalanceAt(a common.Address) (*big.Int, error)

func (*EthereumProvider) GetPendingNonceAt

func (e *EthereumProvider) GetPendingNonceAt(a common.Address) (uint64, error)

func (*EthereumProvider) Symbol

func (e *EthereumProvider) Symbol(token common.Address) (string, error)

func (*EthereumProvider) WaitMined

func (e *EthereumProvider) WaitMined(hash common.Hash) (*eth.Receipt, error)

type SimulatedClient

type SimulatedClient struct {
	*backends.SimulatedBackend
}

func NewSimulatedClient

func NewSimulatedClient(accs []common.Address) *SimulatedClient

func (*SimulatedClient) PendingBalanceAt

func (b *SimulatedClient) PendingBalanceAt(ctx context.Context, acc common.Address) (*big.Int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL