Documentation
¶
Index ¶
- Constants
- func Dial(rawurl string) (*ethclient.Client, error)
- func DialContext(ctx context.Context, rawurl string) (c *ethclient.Client, err error)
- type ETHClient
- func (eth *ETHClient) Bind(contract bctypes.Contract, address common.Address) error
- func (eth *ETHClient) Call(contract bctypes.Contract, account bctypes.Account, ...) error
- func (eth *ETHClient) Connect(nodeURL string, nodeWSURL string) (*ETHClient, error)
- func (eth *ETHClient) Deploy(contract bctypes.Contract, account bctypes.Account) (*bctypes.Transaction, error)
- func (eth *ETHClient) DeploySim(contract bctypes.Contract, account bctypes.Account) (*bctypes.Transaction, error)
- func (eth *ETHClient) FetchEvents(address common.Address, fromBlock uint64, channel chan<- bctypes.Event) error
- func (eth *ETHClient) FetchEventsForContract(contract bctypes.Contract, fromBlock uint64, channel chan<- bctypes.Event) error
- func (eth *ETHClient) SetupListener(address common.Address, fromBlock uint64, channel chan<- bctypes.Event, ...) error
- func (eth *ETHClient) SetupListenerForContract(contract bctypes.Contract, fromBlock uint64, channel chan<- bctypes.Event, ...) error
- type NonceManager
- func (n *NonceManager) DebugDecrease()
- func (n *NonceManager) DebugForceIdle()
- func (n *NonceManager) DebugNonceEqualsNetwork() bool
- func (n *NonceManager) DebugPrint()
- func (n *NonceManager) NextNonce() *big.Int
- func (n *NonceManager) OnAccountChange(addr string)
- func (n *NonceManager) OnDial(c *ethclient.Client)
- func (n *NonceManager) OnError(err error)
Constants ¶
View Source
const DefaultContextTimeout = time.Duration(20 * time.Second)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ETHClient ¶
type ETHClient struct {
// contains filtered or unexported fields
}
func NewETHClient ¶
func (*ETHClient) FetchEvents ¶
func (*ETHClient) FetchEventsForContract ¶
func (*ETHClient) SetupListener ¶
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)
Click to show internal directories.
Click to hide internal directories.