ethereum

package
v0.0.0-...-b84eec1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultContextTimeout = time.Duration(20 * time.Second)

Variables

This section is empty.

Functions

func Dial

func Dial(rawurl string) (*ethclient.Client, error)

func DialContext

func DialContext(ctx context.Context, rawurl string) (c *ethclient.Client, err error)

Types

type ETHClient

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

func NewETHClient

func NewETHClient(nodeURL string, nodeWSURL string) *ETHClient

func (*ETHClient) Bind

func (eth *ETHClient) Bind(contract bctypes.Contract, address common.Address) error

func (*ETHClient) Call

func (eth *ETHClient) Call(contract bctypes.Contract, account bctypes.Account, transaction *bctypes.Transaction) error

func (*ETHClient) Connect

func (eth *ETHClient) Connect(nodeURL string, nodeWSURL string) (*ETHClient, error)

func (*ETHClient) Deploy

func (eth *ETHClient) Deploy(contract bctypes.Contract, account bctypes.Account) (*bctypes.Transaction, error)

func (*ETHClient) DeploySim

func (eth *ETHClient) DeploySim(contract bctypes.Contract, account bctypes.Account) (*bctypes.Transaction, error)

func (*ETHClient) FetchEvents

func (eth *ETHClient) FetchEvents(address common.Address, fromBlock uint64, channel chan<- bctypes.Event) error

func (*ETHClient) FetchEventsForContract

func (eth *ETHClient) FetchEventsForContract(contract bctypes.Contract, fromBlock uint64, channel chan<- bctypes.Event) error

func (*ETHClient) SetupListener

func (eth *ETHClient) SetupListener(address common.Address, fromBlock uint64, channel chan<- bctypes.Event, stop chan bool) error

func (*ETHClient) SetupListenerForContract

func (eth *ETHClient) SetupListenerForContract(contract bctypes.Contract, fromBlock uint64, channel chan<- bctypes.Event, stop chan bool) error

type NonceManager

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

func (*NonceManager) DebugDecrease

func (n *NonceManager) DebugDecrease()

func (*NonceManager) DebugForceIdle

func (n *NonceManager) DebugForceIdle()

func (*NonceManager) DebugNonceEqualsNetwork

func (n *NonceManager) DebugNonceEqualsNetwork() bool

false doesn't mean we are incorrect!

func (*NonceManager) DebugPrint

func (n *NonceManager) DebugPrint()

func (*NonceManager) NextNonce

func (n *NonceManager) NextNonce() *big.Int

func (*NonceManager) OnAccountChange

func (n *NonceManager) OnAccountChange(addr string)

func (*NonceManager) OnDial

func (n *NonceManager) OnDial(c *ethclient.Client)

func (*NonceManager) OnError

func (n *NonceManager) OnError(err error)

Jump to

Keyboard shortcuts

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