Documentation ¶
Index ¶
- type ContractBackend
- func (_m *ContractBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *ContractBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *ContractBackend) EXPECT() *ContractBackend_Expecter
- func (_m *ContractBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *ContractBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (_m *ContractBackend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *ContractBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *ContractBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *ContractBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *ContractBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *ContractBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *ContractBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- type ContractBackend_CallContract_Call
- func (_c *ContractBackend_CallContract_Call) Return(_a0 []byte, _a1 error) *ContractBackend_CallContract_Call
- func (_c *ContractBackend_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *ContractBackend_CallContract_Call
- func (_c *ContractBackend_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *ContractBackend_CallContract_Call
- type ContractBackend_CodeAt_Call
- func (_c *ContractBackend_CodeAt_Call) Return(_a0 []byte, _a1 error) *ContractBackend_CodeAt_Call
- func (_c *ContractBackend_CodeAt_Call) Run(run func(ctx context.Context, contract common.Address, blockNumber *big.Int)) *ContractBackend_CodeAt_Call
- func (_c *ContractBackend_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *ContractBackend_CodeAt_Call
- type ContractBackend_EstimateGas_Call
- func (_c *ContractBackend_EstimateGas_Call) Return(gas uint64, err error) *ContractBackend_EstimateGas_Call
- func (_c *ContractBackend_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *ContractBackend_EstimateGas_Call
- func (_c *ContractBackend_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *ContractBackend_EstimateGas_Call
- type ContractBackend_Expecter
- func (_e *ContractBackend_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *ContractBackend_CallContract_Call
- func (_e *ContractBackend_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *ContractBackend_CodeAt_Call
- func (_e *ContractBackend_Expecter) EstimateGas(ctx interface{}, call interface{}) *ContractBackend_EstimateGas_Call
- func (_e *ContractBackend_Expecter) FilterLogs(ctx interface{}, query interface{}) *ContractBackend_FilterLogs_Call
- func (_e *ContractBackend_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *ContractBackend_HeaderByNumber_Call
- func (_e *ContractBackend_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *ContractBackend_PendingCodeAt_Call
- func (_e *ContractBackend_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *ContractBackend_PendingNonceAt_Call
- func (_e *ContractBackend_Expecter) SendTransaction(ctx interface{}, tx interface{}) *ContractBackend_SendTransaction_Call
- func (_e *ContractBackend_Expecter) SubscribeFilterLogs(ctx interface{}, query interface{}, ch interface{}) *ContractBackend_SubscribeFilterLogs_Call
- func (_e *ContractBackend_Expecter) SuggestGasPrice(ctx interface{}) *ContractBackend_SuggestGasPrice_Call
- func (_e *ContractBackend_Expecter) SuggestGasTipCap(ctx interface{}) *ContractBackend_SuggestGasTipCap_Call
- type ContractBackend_FilterLogs_Call
- func (_c *ContractBackend_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *ContractBackend_FilterLogs_Call
- func (_c *ContractBackend_FilterLogs_Call) Run(run func(ctx context.Context, query ethereum.FilterQuery)) *ContractBackend_FilterLogs_Call
- func (_c *ContractBackend_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *ContractBackend_FilterLogs_Call
- type ContractBackend_HeaderByNumber_Call
- func (_c *ContractBackend_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *ContractBackend_HeaderByNumber_Call
- func (_c *ContractBackend_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ContractBackend_HeaderByNumber_Call
- func (_c *ContractBackend_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *ContractBackend_HeaderByNumber_Call
- type ContractBackend_PendingCodeAt_Call
- func (_c *ContractBackend_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *ContractBackend_PendingCodeAt_Call
- func (_c *ContractBackend_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *ContractBackend_PendingCodeAt_Call
- func (_c *ContractBackend_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *ContractBackend_PendingCodeAt_Call
- type ContractBackend_PendingNonceAt_Call
- func (_c *ContractBackend_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *ContractBackend_PendingNonceAt_Call
- func (_c *ContractBackend_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *ContractBackend_PendingNonceAt_Call
- func (_c *ContractBackend_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *ContractBackend_PendingNonceAt_Call
- type ContractBackend_SendTransaction_Call
- func (_c *ContractBackend_SendTransaction_Call) Return(_a0 error) *ContractBackend_SendTransaction_Call
- func (_c *ContractBackend_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *ContractBackend_SendTransaction_Call
- func (_c *ContractBackend_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *ContractBackend_SendTransaction_Call
- type ContractBackend_SubscribeFilterLogs_Call
- func (_c *ContractBackend_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *ContractBackend_SubscribeFilterLogs_Call
- func (_c *ContractBackend_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log)) *ContractBackend_SubscribeFilterLogs_Call
- func (_c *ContractBackend_SubscribeFilterLogs_Call) RunAndReturn(...) *ContractBackend_SubscribeFilterLogs_Call
- type ContractBackend_SuggestGasPrice_Call
- func (_c *ContractBackend_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *ContractBackend_SuggestGasPrice_Call
- func (_c *ContractBackend_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *ContractBackend_SuggestGasPrice_Call
- func (_c *ContractBackend_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *ContractBackend_SuggestGasPrice_Call
- type ContractBackend_SuggestGasTipCap_Call
- func (_c *ContractBackend_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *ContractBackend_SuggestGasTipCap_Call
- func (_c *ContractBackend_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *ContractBackend_SuggestGasTipCap_Call
- func (_c *ContractBackend_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *ContractBackend_SuggestGasTipCap_Call
- type DeployBackend
- type DeployBackend_CodeAt_Call
- func (_c *DeployBackend_CodeAt_Call) Return(_a0 []byte, _a1 error) *DeployBackend_CodeAt_Call
- func (_c *DeployBackend_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *DeployBackend_CodeAt_Call
- func (_c *DeployBackend_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *DeployBackend_CodeAt_Call
- type DeployBackend_Expecter
- type DeployBackend_TransactionReceipt_Call
- func (_c *DeployBackend_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *DeployBackend_TransactionReceipt_Call
- func (_c *DeployBackend_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *DeployBackend_TransactionReceipt_Call
- func (_c *DeployBackend_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *DeployBackend_TransactionReceipt_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractBackend ¶
ContractBackend is an autogenerated mock type for the ContractBackend type
func NewContractBackend ¶
func NewContractBackend(t interface { mock.TestingT Cleanup(func()) }) *ContractBackend
NewContractBackend creates a new instance of ContractBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ContractBackend) CallContract ¶
func (_m *ContractBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*ContractBackend) CodeAt ¶
func (_m *ContractBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*ContractBackend) EXPECT ¶
func (_m *ContractBackend) EXPECT() *ContractBackend_Expecter
func (*ContractBackend) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*ContractBackend) FilterLogs ¶
func (_m *ContractBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, query
func (*ContractBackend) HeaderByNumber ¶
func (_m *ContractBackend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*ContractBackend) PendingCodeAt ¶
func (_m *ContractBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
PendingCodeAt provides a mock function with given fields: ctx, account
func (*ContractBackend) PendingNonceAt ¶
func (_m *ContractBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
PendingNonceAt provides a mock function with given fields: ctx, account
func (*ContractBackend) SendTransaction ¶
func (_m *ContractBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*ContractBackend) SubscribeFilterLogs ¶
func (_m *ContractBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch
func (*ContractBackend) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*ContractBackend) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
type ContractBackend_CallContract_Call ¶
ContractBackend_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*ContractBackend_CallContract_Call) Return ¶
func (_c *ContractBackend_CallContract_Call) Return(_a0 []byte, _a1 error) *ContractBackend_CallContract_Call
func (*ContractBackend_CallContract_Call) Run ¶
func (_c *ContractBackend_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *ContractBackend_CallContract_Call
func (*ContractBackend_CallContract_Call) RunAndReturn ¶
func (_c *ContractBackend_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *ContractBackend_CallContract_Call
type ContractBackend_CodeAt_Call ¶
ContractBackend_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'
func (*ContractBackend_CodeAt_Call) Return ¶
func (_c *ContractBackend_CodeAt_Call) Return(_a0 []byte, _a1 error) *ContractBackend_CodeAt_Call
func (*ContractBackend_CodeAt_Call) Run ¶
func (_c *ContractBackend_CodeAt_Call) Run(run func(ctx context.Context, contract common.Address, blockNumber *big.Int)) *ContractBackend_CodeAt_Call
func (*ContractBackend_CodeAt_Call) RunAndReturn ¶
func (_c *ContractBackend_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *ContractBackend_CodeAt_Call
type ContractBackend_EstimateGas_Call ¶
ContractBackend_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'
func (*ContractBackend_EstimateGas_Call) Return ¶
func (_c *ContractBackend_EstimateGas_Call) Return(gas uint64, err error) *ContractBackend_EstimateGas_Call
func (*ContractBackend_EstimateGas_Call) Run ¶
func (_c *ContractBackend_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *ContractBackend_EstimateGas_Call
func (*ContractBackend_EstimateGas_Call) RunAndReturn ¶
func (_c *ContractBackend_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *ContractBackend_EstimateGas_Call
type ContractBackend_Expecter ¶
type ContractBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*ContractBackend_Expecter) CallContract ¶
func (_e *ContractBackend_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *ContractBackend_CallContract_Call
CallContract is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
- blockNumber *big.Int
func (*ContractBackend_Expecter) CodeAt ¶
func (_e *ContractBackend_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *ContractBackend_CodeAt_Call
CodeAt is a helper method to define mock.On call
- ctx context.Context
- contract common.Address
- blockNumber *big.Int
func (*ContractBackend_Expecter) EstimateGas ¶
func (_e *ContractBackend_Expecter) EstimateGas(ctx interface{}, call interface{}) *ContractBackend_EstimateGas_Call
EstimateGas is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
func (*ContractBackend_Expecter) FilterLogs ¶
func (_e *ContractBackend_Expecter) FilterLogs(ctx interface{}, query interface{}) *ContractBackend_FilterLogs_Call
FilterLogs is a helper method to define mock.On call
- ctx context.Context
- query ethereum.FilterQuery
func (*ContractBackend_Expecter) HeaderByNumber ¶
func (_e *ContractBackend_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *ContractBackend_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*ContractBackend_Expecter) PendingCodeAt ¶
func (_e *ContractBackend_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *ContractBackend_PendingCodeAt_Call
PendingCodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*ContractBackend_Expecter) PendingNonceAt ¶
func (_e *ContractBackend_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *ContractBackend_PendingNonceAt_Call
PendingNonceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*ContractBackend_Expecter) SendTransaction ¶
func (_e *ContractBackend_Expecter) SendTransaction(ctx interface{}, tx interface{}) *ContractBackend_SendTransaction_Call
SendTransaction is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
func (*ContractBackend_Expecter) SubscribeFilterLogs ¶
func (_e *ContractBackend_Expecter) SubscribeFilterLogs(ctx interface{}, query interface{}, ch interface{}) *ContractBackend_SubscribeFilterLogs_Call
SubscribeFilterLogs is a helper method to define mock.On call
- ctx context.Context
- query ethereum.FilterQuery
- ch chan<- types.Log
func (*ContractBackend_Expecter) SuggestGasPrice ¶
func (_e *ContractBackend_Expecter) SuggestGasPrice(ctx interface{}) *ContractBackend_SuggestGasPrice_Call
SuggestGasPrice is a helper method to define mock.On call
- ctx context.Context
func (*ContractBackend_Expecter) SuggestGasTipCap ¶
func (_e *ContractBackend_Expecter) SuggestGasTipCap(ctx interface{}) *ContractBackend_SuggestGasTipCap_Call
SuggestGasTipCap is a helper method to define mock.On call
- ctx context.Context
type ContractBackend_FilterLogs_Call ¶
ContractBackend_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'
func (*ContractBackend_FilterLogs_Call) Return ¶
func (_c *ContractBackend_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *ContractBackend_FilterLogs_Call
func (*ContractBackend_FilterLogs_Call) Run ¶
func (_c *ContractBackend_FilterLogs_Call) Run(run func(ctx context.Context, query ethereum.FilterQuery)) *ContractBackend_FilterLogs_Call
func (*ContractBackend_FilterLogs_Call) RunAndReturn ¶
func (_c *ContractBackend_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *ContractBackend_FilterLogs_Call
type ContractBackend_HeaderByNumber_Call ¶
ContractBackend_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*ContractBackend_HeaderByNumber_Call) Return ¶
func (_c *ContractBackend_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *ContractBackend_HeaderByNumber_Call
func (*ContractBackend_HeaderByNumber_Call) Run ¶
func (_c *ContractBackend_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ContractBackend_HeaderByNumber_Call
func (*ContractBackend_HeaderByNumber_Call) RunAndReturn ¶
func (_c *ContractBackend_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *ContractBackend_HeaderByNumber_Call
type ContractBackend_PendingCodeAt_Call ¶
ContractBackend_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'
func (*ContractBackend_PendingCodeAt_Call) Return ¶
func (_c *ContractBackend_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *ContractBackend_PendingCodeAt_Call
func (*ContractBackend_PendingCodeAt_Call) Run ¶
func (_c *ContractBackend_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *ContractBackend_PendingCodeAt_Call
func (*ContractBackend_PendingCodeAt_Call) RunAndReturn ¶
func (_c *ContractBackend_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *ContractBackend_PendingCodeAt_Call
type ContractBackend_PendingNonceAt_Call ¶
ContractBackend_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'
func (*ContractBackend_PendingNonceAt_Call) Return ¶
func (_c *ContractBackend_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *ContractBackend_PendingNonceAt_Call
func (*ContractBackend_PendingNonceAt_Call) Run ¶
func (_c *ContractBackend_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *ContractBackend_PendingNonceAt_Call
func (*ContractBackend_PendingNonceAt_Call) RunAndReturn ¶
func (_c *ContractBackend_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *ContractBackend_PendingNonceAt_Call
type ContractBackend_SendTransaction_Call ¶
ContractBackend_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'
func (*ContractBackend_SendTransaction_Call) Return ¶
func (_c *ContractBackend_SendTransaction_Call) Return(_a0 error) *ContractBackend_SendTransaction_Call
func (*ContractBackend_SendTransaction_Call) Run ¶
func (_c *ContractBackend_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *ContractBackend_SendTransaction_Call
func (*ContractBackend_SendTransaction_Call) RunAndReturn ¶
func (_c *ContractBackend_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *ContractBackend_SendTransaction_Call
type ContractBackend_SubscribeFilterLogs_Call ¶
ContractBackend_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'
func (*ContractBackend_SubscribeFilterLogs_Call) Return ¶
func (_c *ContractBackend_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *ContractBackend_SubscribeFilterLogs_Call
func (*ContractBackend_SubscribeFilterLogs_Call) Run ¶
func (_c *ContractBackend_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log)) *ContractBackend_SubscribeFilterLogs_Call
func (*ContractBackend_SubscribeFilterLogs_Call) RunAndReturn ¶
func (_c *ContractBackend_SubscribeFilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery, chan<- types.Log) (ethereum.Subscription, error)) *ContractBackend_SubscribeFilterLogs_Call
type ContractBackend_SuggestGasPrice_Call ¶
ContractBackend_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'
func (*ContractBackend_SuggestGasPrice_Call) Return ¶
func (_c *ContractBackend_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *ContractBackend_SuggestGasPrice_Call
func (*ContractBackend_SuggestGasPrice_Call) Run ¶
func (_c *ContractBackend_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *ContractBackend_SuggestGasPrice_Call
func (*ContractBackend_SuggestGasPrice_Call) RunAndReturn ¶
func (_c *ContractBackend_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *ContractBackend_SuggestGasPrice_Call
type ContractBackend_SuggestGasTipCap_Call ¶
ContractBackend_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'
func (*ContractBackend_SuggestGasTipCap_Call) Return ¶
func (_c *ContractBackend_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *ContractBackend_SuggestGasTipCap_Call
func (*ContractBackend_SuggestGasTipCap_Call) Run ¶
func (_c *ContractBackend_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *ContractBackend_SuggestGasTipCap_Call
func (*ContractBackend_SuggestGasTipCap_Call) RunAndReturn ¶
func (_c *ContractBackend_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *ContractBackend_SuggestGasTipCap_Call
type DeployBackend ¶
DeployBackend is an autogenerated mock type for the DeployBackend type
func NewDeployBackend ¶
func NewDeployBackend(t interface { mock.TestingT Cleanup(func()) }) *DeployBackend
NewDeployBackend creates a new instance of DeployBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DeployBackend) CodeAt ¶
func (_m *DeployBackend) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*DeployBackend) EXPECT ¶
func (_m *DeployBackend) EXPECT() *DeployBackend_Expecter
func (*DeployBackend) TransactionReceipt ¶
func (_m *DeployBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
type DeployBackend_CodeAt_Call ¶
DeployBackend_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'
func (*DeployBackend_CodeAt_Call) Return ¶
func (_c *DeployBackend_CodeAt_Call) Return(_a0 []byte, _a1 error) *DeployBackend_CodeAt_Call
func (*DeployBackend_CodeAt_Call) Run ¶
func (_c *DeployBackend_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *DeployBackend_CodeAt_Call
func (*DeployBackend_CodeAt_Call) RunAndReturn ¶
func (_c *DeployBackend_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *DeployBackend_CodeAt_Call
type DeployBackend_Expecter ¶
type DeployBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*DeployBackend_Expecter) CodeAt ¶
func (_e *DeployBackend_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *DeployBackend_CodeAt_Call
CodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
- blockNumber *big.Int
func (*DeployBackend_Expecter) TransactionReceipt ¶
func (_e *DeployBackend_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *DeployBackend_TransactionReceipt_Call
TransactionReceipt is a helper method to define mock.On call
- ctx context.Context
- txHash common.Hash
type DeployBackend_TransactionReceipt_Call ¶
DeployBackend_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'
func (*DeployBackend_TransactionReceipt_Call) Return ¶
func (_c *DeployBackend_TransactionReceipt_Call) Return(_a0 *types.Receipt, _a1 error) *DeployBackend_TransactionReceipt_Call
func (*DeployBackend_TransactionReceipt_Call) Run ¶
func (_c *DeployBackend_TransactionReceipt_Call) Run(run func(ctx context.Context, txHash common.Hash)) *DeployBackend_TransactionReceipt_Call
func (*DeployBackend_TransactionReceipt_Call) RunAndReturn ¶
func (_c *DeployBackend_TransactionReceipt_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Receipt, error)) *DeployBackend_TransactionReceipt_Call