adapter

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumConnection

type EthereumConnection interface {
	Dial(endpoint string) error
	GetAuth() *bind.TransactOpts // for simulation usage only
	GetClient() (bind.ContractBackend, error)
}

func NewEthereumConnection

func NewEthereumConnection(config ethereumAdapterConfig, logger log.BasicLogger) EthereumConnection

func NewEthereumSimulatorConnection

func NewEthereumSimulatorConnection(config ethereumAdapterConfig, logger log.BasicLogger) EthereumConnection

type EthereumNodeAdapter

type EthereumNodeAdapter struct {
	// contains filtered or unexported fields
}

func (*EthereumNodeAdapter) Dial

func (nc *EthereumNodeAdapter) Dial(endpoint string) error

func (*EthereumNodeAdapter) GetAuth

func (nc *EthereumNodeAdapter) GetAuth() *bind.TransactOpts

func (*EthereumNodeAdapter) GetClient

func (nc *EthereumNodeAdapter) GetClient() (bind.ContractBackend, error)

type EthereumSimulator

type EthereumSimulator struct {
	// contains filtered or unexported fields
}

func (*EthereumSimulator) Dial

func (es *EthereumSimulator) Dial(endpoint string) error

func (*EthereumSimulator) GetAuth

func (es *EthereumSimulator) GetAuth() *bind.TransactOpts

func (*EthereumSimulator) GetClient

func (es *EthereumSimulator) GetClient() (bind.ContractBackend, error)

Jump to

Keyboard shortcuts

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