Documentation ¶
Index ¶
- type Client
- func (ec *Client) ChainID() *big.Int
- func (ec *Client) GetClient() *ethclient.Client
- func (ec *Client) ValidateContractDeployedAt(contractAddress string) (*common.Address, error)
- func (ec *Client) WaitForConfirmations(raw types.Log) error
- func (ec *Client) WaitForTransaction(hex string, onSuccess, onRevert func(), onError func(err error))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client Ethereum JSON RPC Client
func (*Client) GetClient ¶
GetClients returns the instance of a ethclient already established connection to a JSON RPC Ethereum Node
func (*Client) ValidateContractDeployedAt ¶
ValidateContractDeployedAt performs validation that a smart contract is deployed at the provided address
func (*Client) WaitForTransaction ¶
func (ec *Client) WaitForTransaction(hex string, onSuccess, onRevert func(), onError func(err error))
WaitForTransaction waits for transaction receipt and depending on receipt status calls one of the provided functions onSuccess is called once the TX is successfully mined onRevert is called once the TX is mined but it reverted onError is called if an error occurs while waiting for TX to go into one of the other 2 states
Click to show internal directories.
Click to hide internal directories.