Documentation
¶
Index ¶
- func NewAuth(t *testing.T, key *ecdsa.PrivateKey, chainID *big.Int) *bind.TransactOpts
- func NewBackendWithPrecompile(t *testing.T, precompileCfg precompileconfig.Config, ...) *sim.Backend
- func WaitReceipt(t *testing.T, b *sim.Backend, tx *types.Transaction) *types.Receipt
- func WaitReceiptSuccessful(t *testing.T, b *sim.Backend, tx *types.Transaction) *types.Receipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuth ¶
func NewAuth(t *testing.T, key *ecdsa.PrivateKey, chainID *big.Int) *bind.TransactOpts
NewAuth creates a new transactor with the given private key and chain ID.
func NewBackendWithPrecompile ¶
func NewBackendWithPrecompile( t *testing.T, precompileCfg precompileconfig.Config, fundedAddrs []common.Address, opts ...func(*node.Config, *ethconfig.Config), ) *sim.Backend
NewBackendWithPrecompile creates a simulated backend with the given precompile enabled at genesis and funds the specified addresses with 1 ETH each. Additional options can be passed to configure the backend.
func WaitReceipt ¶
WaitReceipt commits the simulated backend and waits for the transaction receipt.
func WaitReceiptSuccessful ¶
WaitReceiptSuccessful commits the backend, waits for the receipt, and asserts success.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.