Documentation ¶
Index ¶
- Constants
- func DeployERC20(auth *bind.TransactOpts, client *ethclient.Client) (*bindings.SolmateERC20, common.Address)
- func ExpectFailedReceipt(client *ethclient.Client, tx *ethtypes.Transaction) *ethtypes.Receipt
- func ExpectMined(client *ethclient.Client, tx *ethtypes.Transaction)
- func ExpectSuccessReceipt(client *ethclient.Client, tx *ethtypes.Transaction) *ethtypes.Receipt
Constants ¶
View Source
const ( DefaultTimeout = 15 * time.Second TxTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func DeployERC20 ¶
func DeployERC20( auth *bind.TransactOpts, client *ethclient.Client, ) (*bindings.SolmateERC20, common.Address)
DeployERC20 deploys a new ERC20 contract and waits for the transaction to be mined. Upon success, it returns a binding to the contract and the address of the contract.
func ExpectFailedReceipt ¶
ExpectFailedReceipt waits for the transaction to be mined and returns the receipt. It also checks that the transaction was failed.
func ExpectMined ¶
func ExpectMined(client *ethclient.Client, tx *ethtypes.Transaction)
ExpectedMined waits for a transaction to be mined.
func ExpectSuccessReceipt ¶
ExpectSuccessReceipt waits for the transaction to be mined and returns the receipt. It also checks that the transaction was successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.