Documentation
¶
Index ¶
- type EthClienter
- func (_m *EthClienter) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EthClienter) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *EthClienter) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *EthClienter) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EthClienter) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EthClienter) EXPECT() *EthClienter_Expecter
- func (_m *EthClienter) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *EthClienter) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *EthClienter) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *EthClienter) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthClienter) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *EthClienter) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EthClienter) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *EthClienter) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *EthClienter) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EthClienter) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EthClienter) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EthClienter) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *EthClienter) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- type EthClienter_BlockByHash_Call
- func (_c *EthClienter_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *EthClienter_BlockByHash_Call
- func (_c *EthClienter_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthClienter_BlockByHash_Call
- func (_c *EthClienter_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *EthClienter_BlockByHash_Call
- type EthClienter_BlockByNumber_Call
- func (_c *EthClienter_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *EthClienter_BlockByNumber_Call
- func (_c *EthClienter_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthClienter_BlockByNumber_Call
- func (_c *EthClienter_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *EthClienter_BlockByNumber_Call
- type EthClienter_BlockNumber_Call
- func (_c *EthClienter_BlockNumber_Call) Return(_a0 uint64, _a1 error) *EthClienter_BlockNumber_Call
- func (_c *EthClienter_BlockNumber_Call) Run(run func(ctx context.Context)) *EthClienter_BlockNumber_Call
- func (_c *EthClienter_BlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *EthClienter_BlockNumber_Call
- type EthClienter_CallContract_Call
- func (_c *EthClienter_CallContract_Call) Return(_a0 []byte, _a1 error) *EthClienter_CallContract_Call
- func (_c *EthClienter_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthClienter_CallContract_Call
- func (_c *EthClienter_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthClienter_CallContract_Call
- type EthClienter_CodeAt_Call
- func (_c *EthClienter_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthClienter_CodeAt_Call
- func (_c *EthClienter_CodeAt_Call) Run(run func(ctx context.Context, contract common.Address, blockNumber *big.Int)) *EthClienter_CodeAt_Call
- func (_c *EthClienter_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthClienter_CodeAt_Call
- type EthClienter_EstimateGas_Call
- func (_c *EthClienter_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthClienter_EstimateGas_Call
- func (_c *EthClienter_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthClienter_EstimateGas_Call
- func (_c *EthClienter_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthClienter_EstimateGas_Call
- type EthClienter_Expecter
- func (_e *EthClienter_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthClienter_BlockByHash_Call
- func (_e *EthClienter_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthClienter_BlockByNumber_Call
- func (_e *EthClienter_Expecter) BlockNumber(ctx interface{}) *EthClienter_BlockNumber_Call
- func (_e *EthClienter_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthClienter_CallContract_Call
- func (_e *EthClienter_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *EthClienter_CodeAt_Call
- func (_e *EthClienter_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthClienter_EstimateGas_Call
- func (_e *EthClienter_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthClienter_FilterLogs_Call
- func (_e *EthClienter_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthClienter_HeaderByHash_Call
- func (_e *EthClienter_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClienter_HeaderByNumber_Call
- func (_e *EthClienter_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthClienter_PendingCodeAt_Call
- func (_e *EthClienter_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthClienter_PendingNonceAt_Call
- func (_e *EthClienter_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthClienter_SendTransaction_Call
- func (_e *EthClienter_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthClienter_SubscribeFilterLogs_Call
- func (_e *EthClienter_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthClienter_SubscribeNewHead_Call
- func (_e *EthClienter_Expecter) SuggestGasPrice(ctx interface{}) *EthClienter_SuggestGasPrice_Call
- func (_e *EthClienter_Expecter) SuggestGasTipCap(ctx interface{}) *EthClienter_SuggestGasTipCap_Call
- func (_e *EthClienter_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthClienter_TransactionCount_Call
- func (_e *EthClienter_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthClienter_TransactionInBlock_Call
- type EthClienter_FilterLogs_Call
- func (_c *EthClienter_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *EthClienter_FilterLogs_Call
- func (_c *EthClienter_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *EthClienter_FilterLogs_Call
- func (_c *EthClienter_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *EthClienter_FilterLogs_Call
- type EthClienter_HeaderByHash_Call
- func (_c *EthClienter_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *EthClienter_HeaderByHash_Call
- func (_c *EthClienter_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthClienter_HeaderByHash_Call
- func (_c *EthClienter_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *EthClienter_HeaderByHash_Call
- type EthClienter_HeaderByNumber_Call
- func (_c *EthClienter_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthClienter_HeaderByNumber_Call
- func (_c *EthClienter_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthClienter_HeaderByNumber_Call
- func (_c *EthClienter_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthClienter_HeaderByNumber_Call
- type EthClienter_PendingCodeAt_Call
- func (_c *EthClienter_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthClienter_PendingCodeAt_Call
- func (_c *EthClienter_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClienter_PendingCodeAt_Call
- func (_c *EthClienter_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthClienter_PendingCodeAt_Call
- type EthClienter_PendingNonceAt_Call
- func (_c *EthClienter_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthClienter_PendingNonceAt_Call
- func (_c *EthClienter_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClienter_PendingNonceAt_Call
- func (_c *EthClienter_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthClienter_PendingNonceAt_Call
- type EthClienter_SendTransaction_Call
- func (_c *EthClienter_SendTransaction_Call) Return(_a0 error) *EthClienter_SendTransaction_Call
- func (_c *EthClienter_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthClienter_SendTransaction_Call
- func (_c *EthClienter_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthClienter_SendTransaction_Call
- type EthClienter_SubscribeFilterLogs_Call
- func (_c *EthClienter_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthClienter_SubscribeFilterLogs_Call
- func (_c *EthClienter_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *EthClienter_SubscribeFilterLogs_Call
- func (_c *EthClienter_SubscribeFilterLogs_Call) RunAndReturn(...) *EthClienter_SubscribeFilterLogs_Call
- type EthClienter_SubscribeNewHead_Call
- func (_c *EthClienter_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthClienter_SubscribeNewHead_Call
- func (_c *EthClienter_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *EthClienter_SubscribeNewHead_Call
- func (_c *EthClienter_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *EthClienter_SubscribeNewHead_Call
- type EthClienter_SuggestGasPrice_Call
- func (_c *EthClienter_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthClienter_SuggestGasPrice_Call
- func (_c *EthClienter_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthClienter_SuggestGasPrice_Call
- func (_c *EthClienter_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClienter_SuggestGasPrice_Call
- type EthClienter_SuggestGasTipCap_Call
- func (_c *EthClienter_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthClienter_SuggestGasTipCap_Call
- func (_c *EthClienter_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthClienter_SuggestGasTipCap_Call
- func (_c *EthClienter_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClienter_SuggestGasTipCap_Call
- type EthClienter_TransactionCount_Call
- func (_c *EthClienter_TransactionCount_Call) Return(_a0 uint, _a1 error) *EthClienter_TransactionCount_Call
- func (_c *EthClienter_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *EthClienter_TransactionCount_Call
- func (_c *EthClienter_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *EthClienter_TransactionCount_Call
- type EthClienter_TransactionInBlock_Call
- func (_c *EthClienter_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *EthClienter_TransactionInBlock_Call
- func (_c *EthClienter_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *EthClienter_TransactionInBlock_Call
- func (_c *EthClienter_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *EthClienter_TransactionInBlock_Call
- type EthTxManager
- func (_m *EthTxManager) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManager) EXPECT() *EthTxManager_Expecter
- func (_m *EthTxManager) Remove(ctx context.Context, id common.Hash) error
- func (_m *EthTxManager) Result(ctx context.Context, id common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
- func (_m *EthTxManager) ResultsByStatus(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
- type EthTxManager_Add_Call
- type EthTxManager_Expecter
- func (_e *EthTxManager_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, ...) *EthTxManager_Add_Call
- func (_e *EthTxManager_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManager_Remove_Call
- func (_e *EthTxManager_Expecter) Result(ctx interface{}, id interface{}) *EthTxManager_Result_Call
- func (_e *EthTxManager_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManager_ResultsByStatus_Call
- type EthTxManager_Remove_Call
- func (_c *EthTxManager_Remove_Call) Return(_a0 error) *EthTxManager_Remove_Call
- func (_c *EthTxManager_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManager_Remove_Call
- func (_c *EthTxManager_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManager_Remove_Call
- type EthTxManager_Result_Call
- func (_c *EthTxManager_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManager_Result_Call
- func (_c *EthTxManager_Result_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManager_Result_Call
- func (_c *EthTxManager_Result_Call) RunAndReturn(...) *EthTxManager_Result_Call
- type EthTxManager_ResultsByStatus_Call
- func (_c *EthTxManager_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManager_ResultsByStatus_Call
- func (_c *EthTxManager_ResultsByStatus_Call) Run(...) *EthTxManager_ResultsByStatus_Call
- func (_c *EthTxManager_ResultsByStatus_Call) RunAndReturn(...) *EthTxManager_ResultsByStatus_Call
- type L2GERManagerContract
- func (_m *L2GERManagerContract) BridgeAddress(_a0 *bind.CallOpts) (common.Address, error)
- func (_m *L2GERManagerContract) EXPECT() *L2GERManagerContract_Expecter
- func (_m *L2GERManagerContract) FilterUpdateHashChainValue(opts *bind.FilterOpts, newGlobalExitRoot [][32]byte, ...) (...)
- func (_m *L2GERManagerContract) FilterUpdateRemovalHashChainValue(opts *bind.FilterOpts, removedGlobalExitRoot [][32]byte, ...) (...)
- func (_m *L2GERManagerContract) GlobalExitRootMap(opts *bind.CallOpts, ger [32]byte) (*big.Int, error)
- type L2GERManagerContract_BridgeAddress_Call
- func (_c *L2GERManagerContract_BridgeAddress_Call) Return(_a0 common.Address, _a1 error) *L2GERManagerContract_BridgeAddress_Call
- func (_c *L2GERManagerContract_BridgeAddress_Call) Run(run func(_a0 *bind.CallOpts)) *L2GERManagerContract_BridgeAddress_Call
- func (_c *L2GERManagerContract_BridgeAddress_Call) RunAndReturn(run func(*bind.CallOpts) (common.Address, error)) *L2GERManagerContract_BridgeAddress_Call
- type L2GERManagerContract_Expecter
- func (_e *L2GERManagerContract_Expecter) BridgeAddress(_a0 interface{}) *L2GERManagerContract_BridgeAddress_Call
- func (_e *L2GERManagerContract_Expecter) FilterUpdateHashChainValue(opts interface{}, newGlobalExitRoot interface{}, newHashChainValue interface{}) *L2GERManagerContract_FilterUpdateHashChainValue_Call
- func (_e *L2GERManagerContract_Expecter) FilterUpdateRemovalHashChainValue(opts interface{}, removedGlobalExitRoot interface{}, ...) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
- func (_e *L2GERManagerContract_Expecter) GlobalExitRootMap(opts interface{}, ger interface{}) *L2GERManagerContract_GlobalExitRootMap_Call
- type L2GERManagerContract_FilterUpdateHashChainValue_Call
- func (_c *L2GERManagerContract_FilterUpdateHashChainValue_Call) Return(...) *L2GERManagerContract_FilterUpdateHashChainValue_Call
- func (_c *L2GERManagerContract_FilterUpdateHashChainValue_Call) Run(run func(opts *bind.FilterOpts, newGlobalExitRoot [][32]byte, ...)) *L2GERManagerContract_FilterUpdateHashChainValue_Call
- func (_c *L2GERManagerContract_FilterUpdateHashChainValue_Call) RunAndReturn(run func(*bind.FilterOpts, [][32]byte, [][32]byte) (...)) *L2GERManagerContract_FilterUpdateHashChainValue_Call
- type L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
- func (_c *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) Return(...) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
- func (_c *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) Run(run func(opts *bind.FilterOpts, removedGlobalExitRoot [][32]byte, ...)) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
- func (_c *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) RunAndReturn(run func(*bind.FilterOpts, [][32]byte, [][32]byte) (...)) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
- type L2GERManagerContract_GlobalExitRootMap_Call
- func (_c *L2GERManagerContract_GlobalExitRootMap_Call) Return(_a0 *big.Int, _a1 error) *L2GERManagerContract_GlobalExitRootMap_Call
- func (_c *L2GERManagerContract_GlobalExitRootMap_Call) Run(run func(opts *bind.CallOpts, ger [32]byte)) *L2GERManagerContract_GlobalExitRootMap_Call
- func (_c *L2GERManagerContract_GlobalExitRootMap_Call) RunAndReturn(run func(*bind.CallOpts, [32]byte) (*big.Int, error)) *L2GERManagerContract_GlobalExitRootMap_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClienter ¶ added in v0.3.0
EthClienter is an autogenerated mock type for the EthClienter type
func NewEthClienter ¶ added in v0.3.0
func NewEthClienter(t interface {
mock.TestingT
Cleanup(func())
}) *EthClienter
NewEthClienter creates a new instance of EthClienter. 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 (*EthClienter) BlockByHash ¶ added in v0.3.0
BlockByHash provides a mock function with given fields: ctx, hash
func (*EthClienter) BlockByNumber ¶ added in v0.3.0
BlockByNumber provides a mock function with given fields: ctx, number
func (*EthClienter) BlockNumber ¶ added in v0.3.0
func (_m *EthClienter) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber provides a mock function with given fields: ctx
func (*EthClienter) CallContract ¶ added in v0.3.0
func (_m *EthClienter) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*EthClienter) CodeAt ¶ added in v0.3.0
func (_m *EthClienter) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*EthClienter) EXPECT ¶ added in v0.3.0
func (_m *EthClienter) EXPECT() *EthClienter_Expecter
func (*EthClienter) EstimateGas ¶ added in v0.3.0
EstimateGas provides a mock function with given fields: ctx, call
func (*EthClienter) FilterLogs ¶ added in v0.3.0
func (_m *EthClienter) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, q
func (*EthClienter) HeaderByHash ¶ added in v0.3.0
HeaderByHash provides a mock function with given fields: ctx, hash
func (*EthClienter) HeaderByNumber ¶ added in v0.3.0
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EthClienter) PendingCodeAt ¶ added in v0.3.0
PendingCodeAt provides a mock function with given fields: ctx, account
func (*EthClienter) PendingNonceAt ¶ added in v0.3.0
PendingNonceAt provides a mock function with given fields: ctx, account
func (*EthClienter) SendTransaction ¶ added in v0.3.0
func (_m *EthClienter) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*EthClienter) SubscribeFilterLogs ¶ added in v0.3.0
func (_m *EthClienter) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch
func (*EthClienter) SubscribeNewHead ¶ added in v0.3.0
func (_m *EthClienter) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*EthClienter) SuggestGasPrice ¶ added in v0.3.0
SuggestGasPrice provides a mock function with given fields: ctx
func (*EthClienter) SuggestGasTipCap ¶ added in v0.3.0
SuggestGasTipCap provides a mock function with given fields: ctx
func (*EthClienter) TransactionCount ¶ added in v0.3.0
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*EthClienter) TransactionInBlock ¶ added in v0.3.0
func (_m *EthClienter) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
type EthClienter_BlockByHash_Call ¶ added in v0.3.0
EthClienter_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'
func (*EthClienter_BlockByHash_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_BlockByHash_Call) Return(_a0 *types.Block, _a1 error) *EthClienter_BlockByHash_Call
func (*EthClienter_BlockByHash_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_BlockByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthClienter_BlockByHash_Call
func (*EthClienter_BlockByHash_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_BlockByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Block, error)) *EthClienter_BlockByHash_Call
type EthClienter_BlockByNumber_Call ¶ added in v0.3.0
EthClienter_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'
func (*EthClienter_BlockByNumber_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_BlockByNumber_Call) Return(_a0 *types.Block, _a1 error) *EthClienter_BlockByNumber_Call
func (*EthClienter_BlockByNumber_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthClienter_BlockByNumber_Call
func (*EthClienter_BlockByNumber_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_BlockByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Block, error)) *EthClienter_BlockByNumber_Call
type EthClienter_BlockNumber_Call ¶ added in v0.3.0
EthClienter_BlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNumber'
func (*EthClienter_BlockNumber_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_BlockNumber_Call) Return(_a0 uint64, _a1 error) *EthClienter_BlockNumber_Call
func (*EthClienter_BlockNumber_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_BlockNumber_Call) Run(run func(ctx context.Context)) *EthClienter_BlockNumber_Call
func (*EthClienter_BlockNumber_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_BlockNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *EthClienter_BlockNumber_Call
type EthClienter_CallContract_Call ¶ added in v0.3.0
EthClienter_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*EthClienter_CallContract_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_CallContract_Call) Return(_a0 []byte, _a1 error) *EthClienter_CallContract_Call
func (*EthClienter_CallContract_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_CallContract_Call) Run(run func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int)) *EthClienter_CallContract_Call
func (*EthClienter_CallContract_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *EthClienter_CallContract_Call
type EthClienter_CodeAt_Call ¶ added in v0.3.0
EthClienter_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'
func (*EthClienter_CodeAt_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthClienter_CodeAt_Call
func (*EthClienter_CodeAt_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_CodeAt_Call) Run(run func(ctx context.Context, contract common.Address, blockNumber *big.Int)) *EthClienter_CodeAt_Call
func (*EthClienter_CodeAt_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *EthClienter_CodeAt_Call
type EthClienter_EstimateGas_Call ¶ added in v0.3.0
EthClienter_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'
func (*EthClienter_EstimateGas_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_EstimateGas_Call) Return(_a0 uint64, _a1 error) *EthClienter_EstimateGas_Call
func (*EthClienter_EstimateGas_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_EstimateGas_Call) Run(run func(ctx context.Context, call ethereum.CallMsg)) *EthClienter_EstimateGas_Call
func (*EthClienter_EstimateGas_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_EstimateGas_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg) (uint64, error)) *EthClienter_EstimateGas_Call
type EthClienter_Expecter ¶ added in v0.3.0
type EthClienter_Expecter struct {
// contains filtered or unexported fields
}
func (*EthClienter_Expecter) BlockByHash ¶ added in v0.3.0
func (_e *EthClienter_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthClienter_BlockByHash_Call
BlockByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthClienter_Expecter) BlockByNumber ¶ added in v0.3.0
func (_e *EthClienter_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthClienter_BlockByNumber_Call
BlockByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthClienter_Expecter) BlockNumber ¶ added in v0.3.0
func (_e *EthClienter_Expecter) BlockNumber(ctx interface{}) *EthClienter_BlockNumber_Call
BlockNumber is a helper method to define mock.On call
- ctx context.Context
func (*EthClienter_Expecter) CallContract ¶ added in v0.3.0
func (_e *EthClienter_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthClienter_CallContract_Call
CallContract is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
- blockNumber *big.Int
func (*EthClienter_Expecter) CodeAt ¶ added in v0.3.0
func (_e *EthClienter_Expecter) CodeAt(ctx interface{}, contract interface{}, blockNumber interface{}) *EthClienter_CodeAt_Call
CodeAt is a helper method to define mock.On call
- ctx context.Context
- contract common.Address
- blockNumber *big.Int
func (*EthClienter_Expecter) EstimateGas ¶ added in v0.3.0
func (_e *EthClienter_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthClienter_EstimateGas_Call
EstimateGas is a helper method to define mock.On call
- ctx context.Context
- call ethereum.CallMsg
func (*EthClienter_Expecter) FilterLogs ¶ added in v0.3.0
func (_e *EthClienter_Expecter) FilterLogs(ctx interface{}, q interface{}) *EthClienter_FilterLogs_Call
FilterLogs is a helper method to define mock.On call
- ctx context.Context
- q ethereum.FilterQuery
func (*EthClienter_Expecter) HeaderByHash ¶ added in v0.3.0
func (_e *EthClienter_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthClienter_HeaderByHash_Call
HeaderByHash is a helper method to define mock.On call
- ctx context.Context
- hash common.Hash
func (*EthClienter_Expecter) HeaderByNumber ¶ added in v0.3.0
func (_e *EthClienter_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClienter_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*EthClienter_Expecter) PendingCodeAt ¶ added in v0.3.0
func (_e *EthClienter_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthClienter_PendingCodeAt_Call
PendingCodeAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthClienter_Expecter) PendingNonceAt ¶ added in v0.3.0
func (_e *EthClienter_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthClienter_PendingNonceAt_Call
PendingNonceAt is a helper method to define mock.On call
- ctx context.Context
- account common.Address
func (*EthClienter_Expecter) SendTransaction ¶ added in v0.3.0
func (_e *EthClienter_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthClienter_SendTransaction_Call
SendTransaction is a helper method to define mock.On call
- ctx context.Context
- tx *types.Transaction
func (*EthClienter_Expecter) SubscribeFilterLogs ¶ added in v0.3.0
func (_e *EthClienter_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *EthClienter_SubscribeFilterLogs_Call
SubscribeFilterLogs is a helper method to define mock.On call
- ctx context.Context
- q ethereum.FilterQuery
- ch chan<- types.Log
func (*EthClienter_Expecter) SubscribeNewHead ¶ added in v0.3.0
func (_e *EthClienter_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthClienter_SubscribeNewHead_Call
SubscribeNewHead is a helper method to define mock.On call
- ctx context.Context
- ch chan<- *types.Header
func (*EthClienter_Expecter) SuggestGasPrice ¶ added in v0.3.0
func (_e *EthClienter_Expecter) SuggestGasPrice(ctx interface{}) *EthClienter_SuggestGasPrice_Call
SuggestGasPrice is a helper method to define mock.On call
- ctx context.Context
func (*EthClienter_Expecter) SuggestGasTipCap ¶ added in v0.3.0
func (_e *EthClienter_Expecter) SuggestGasTipCap(ctx interface{}) *EthClienter_SuggestGasTipCap_Call
SuggestGasTipCap is a helper method to define mock.On call
- ctx context.Context
func (*EthClienter_Expecter) TransactionCount ¶ added in v0.3.0
func (_e *EthClienter_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthClienter_TransactionCount_Call
TransactionCount is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
func (*EthClienter_Expecter) TransactionInBlock ¶ added in v0.3.0
func (_e *EthClienter_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthClienter_TransactionInBlock_Call
TransactionInBlock is a helper method to define mock.On call
- ctx context.Context
- blockHash common.Hash
- index uint
type EthClienter_FilterLogs_Call ¶ added in v0.3.0
EthClienter_FilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterLogs'
func (*EthClienter_FilterLogs_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_FilterLogs_Call) Return(_a0 []types.Log, _a1 error) *EthClienter_FilterLogs_Call
func (*EthClienter_FilterLogs_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_FilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery)) *EthClienter_FilterLogs_Call
func (*EthClienter_FilterLogs_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_FilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery) ([]types.Log, error)) *EthClienter_FilterLogs_Call
type EthClienter_HeaderByHash_Call ¶ added in v0.3.0
EthClienter_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'
func (*EthClienter_HeaderByHash_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_HeaderByHash_Call) Return(_a0 *types.Header, _a1 error) *EthClienter_HeaderByHash_Call
func (*EthClienter_HeaderByHash_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_HeaderByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *EthClienter_HeaderByHash_Call
func (*EthClienter_HeaderByHash_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_HeaderByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.Header, error)) *EthClienter_HeaderByHash_Call
type EthClienter_HeaderByNumber_Call ¶ added in v0.3.0
EthClienter_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*EthClienter_HeaderByNumber_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthClienter_HeaderByNumber_Call
func (*EthClienter_HeaderByNumber_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthClienter_HeaderByNumber_Call
func (*EthClienter_HeaderByNumber_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthClienter_HeaderByNumber_Call
type EthClienter_PendingCodeAt_Call ¶ added in v0.3.0
EthClienter_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'
func (*EthClienter_PendingCodeAt_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_PendingCodeAt_Call) Return(_a0 []byte, _a1 error) *EthClienter_PendingCodeAt_Call
func (*EthClienter_PendingCodeAt_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_PendingCodeAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClienter_PendingCodeAt_Call
func (*EthClienter_PendingCodeAt_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_PendingCodeAt_Call) RunAndReturn(run func(context.Context, common.Address) ([]byte, error)) *EthClienter_PendingCodeAt_Call
type EthClienter_PendingNonceAt_Call ¶ added in v0.3.0
EthClienter_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'
func (*EthClienter_PendingNonceAt_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_PendingNonceAt_Call) Return(_a0 uint64, _a1 error) *EthClienter_PendingNonceAt_Call
func (*EthClienter_PendingNonceAt_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_PendingNonceAt_Call) Run(run func(ctx context.Context, account common.Address)) *EthClienter_PendingNonceAt_Call
func (*EthClienter_PendingNonceAt_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_PendingNonceAt_Call) RunAndReturn(run func(context.Context, common.Address) (uint64, error)) *EthClienter_PendingNonceAt_Call
type EthClienter_SendTransaction_Call ¶ added in v0.3.0
EthClienter_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'
func (*EthClienter_SendTransaction_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_SendTransaction_Call) Return(_a0 error) *EthClienter_SendTransaction_Call
func (*EthClienter_SendTransaction_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_SendTransaction_Call) Run(run func(ctx context.Context, tx *types.Transaction)) *EthClienter_SendTransaction_Call
func (*EthClienter_SendTransaction_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_SendTransaction_Call) RunAndReturn(run func(context.Context, *types.Transaction) error) *EthClienter_SendTransaction_Call
type EthClienter_SubscribeFilterLogs_Call ¶ added in v0.3.0
EthClienter_SubscribeFilterLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeFilterLogs'
func (*EthClienter_SubscribeFilterLogs_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_SubscribeFilterLogs_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthClienter_SubscribeFilterLogs_Call
func (*EthClienter_SubscribeFilterLogs_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_SubscribeFilterLogs_Call) Run(run func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log)) *EthClienter_SubscribeFilterLogs_Call
func (*EthClienter_SubscribeFilterLogs_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_SubscribeFilterLogs_Call) RunAndReturn(run func(context.Context, ethereum.FilterQuery, chan<- types.Log) (ethereum.Subscription, error)) *EthClienter_SubscribeFilterLogs_Call
type EthClienter_SubscribeNewHead_Call ¶ added in v0.3.0
EthClienter_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'
func (*EthClienter_SubscribeNewHead_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_SubscribeNewHead_Call) Return(_a0 ethereum.Subscription, _a1 error) *EthClienter_SubscribeNewHead_Call
func (*EthClienter_SubscribeNewHead_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_SubscribeNewHead_Call) Run(run func(ctx context.Context, ch chan<- *types.Header)) *EthClienter_SubscribeNewHead_Call
func (*EthClienter_SubscribeNewHead_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_SubscribeNewHead_Call) RunAndReturn(run func(context.Context, chan<- *types.Header) (ethereum.Subscription, error)) *EthClienter_SubscribeNewHead_Call
type EthClienter_SuggestGasPrice_Call ¶ added in v0.3.0
EthClienter_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'
func (*EthClienter_SuggestGasPrice_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_SuggestGasPrice_Call) Return(_a0 *big.Int, _a1 error) *EthClienter_SuggestGasPrice_Call
func (*EthClienter_SuggestGasPrice_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_SuggestGasPrice_Call) Run(run func(ctx context.Context)) *EthClienter_SuggestGasPrice_Call
func (*EthClienter_SuggestGasPrice_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_SuggestGasPrice_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClienter_SuggestGasPrice_Call
type EthClienter_SuggestGasTipCap_Call ¶ added in v0.3.0
EthClienter_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'
func (*EthClienter_SuggestGasTipCap_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_SuggestGasTipCap_Call) Return(_a0 *big.Int, _a1 error) *EthClienter_SuggestGasTipCap_Call
func (*EthClienter_SuggestGasTipCap_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_SuggestGasTipCap_Call) Run(run func(ctx context.Context)) *EthClienter_SuggestGasTipCap_Call
func (*EthClienter_SuggestGasTipCap_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_SuggestGasTipCap_Call) RunAndReturn(run func(context.Context) (*big.Int, error)) *EthClienter_SuggestGasTipCap_Call
type EthClienter_TransactionCount_Call ¶ added in v0.3.0
EthClienter_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'
func (*EthClienter_TransactionCount_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_TransactionCount_Call) Return(_a0 uint, _a1 error) *EthClienter_TransactionCount_Call
func (*EthClienter_TransactionCount_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_TransactionCount_Call) Run(run func(ctx context.Context, blockHash common.Hash)) *EthClienter_TransactionCount_Call
func (*EthClienter_TransactionCount_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_TransactionCount_Call) RunAndReturn(run func(context.Context, common.Hash) (uint, error)) *EthClienter_TransactionCount_Call
type EthClienter_TransactionInBlock_Call ¶ added in v0.3.0
EthClienter_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'
func (*EthClienter_TransactionInBlock_Call) Return ¶ added in v0.3.0
func (_c *EthClienter_TransactionInBlock_Call) Return(_a0 *types.Transaction, _a1 error) *EthClienter_TransactionInBlock_Call
func (*EthClienter_TransactionInBlock_Call) Run ¶ added in v0.3.0
func (_c *EthClienter_TransactionInBlock_Call) Run(run func(ctx context.Context, blockHash common.Hash, index uint)) *EthClienter_TransactionInBlock_Call
func (*EthClienter_TransactionInBlock_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthClienter_TransactionInBlock_Call) RunAndReturn(run func(context.Context, common.Hash, uint) (*types.Transaction, error)) *EthClienter_TransactionInBlock_Call
type EthTxManager ¶ added in v0.3.0
EthTxManager is an autogenerated mock type for the EthTxManager type
func NewEthTxManager ¶ added in v0.3.0
func NewEthTxManager(t interface {
mock.TestingT
Cleanup(func())
}) *EthTxManager
NewEthTxManager creates a new instance of EthTxManager. 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 (*EthTxManager) Add ¶ added in v0.3.0
func (_m *EthTxManager) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error)
Add provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar
func (*EthTxManager) EXPECT ¶ added in v0.3.0
func (_m *EthTxManager) EXPECT() *EthTxManager_Expecter
func (*EthTxManager) Remove ¶ added in v0.3.0
Remove provides a mock function with given fields: ctx, id
func (*EthTxManager) Result ¶ added in v0.3.0
func (_m *EthTxManager) Result(ctx context.Context, id common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, id
func (*EthTxManager) ResultsByStatus ¶ added in v0.3.0
func (_m *EthTxManager) ResultsByStatus(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
ResultsByStatus provides a mock function with given fields: ctx, statuses
type EthTxManager_Add_Call ¶ added in v0.3.0
EthTxManager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*EthTxManager_Add_Call) Return ¶ added in v0.3.0
func (_c *EthTxManager_Add_Call) Return(_a0 common.Hash, _a1 error) *EthTxManager_Add_Call
func (*EthTxManager_Add_Call) Run ¶ added in v0.3.0
func (_c *EthTxManager_Add_Call) Run(run func(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar)) *EthTxManager_Add_Call
func (*EthTxManager_Add_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthTxManager_Add_Call) RunAndReturn(run func(context.Context, *common.Address, *big.Int, []byte, uint64, *types.BlobTxSidecar) (common.Hash, error)) *EthTxManager_Add_Call
type EthTxManager_Expecter ¶ added in v0.3.0
type EthTxManager_Expecter struct {
// contains filtered or unexported fields
}
func (*EthTxManager_Expecter) Add ¶ added in v0.3.0
func (_e *EthTxManager_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, sidecar interface{}) *EthTxManager_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- to *common.Address
- value *big.Int
- data []byte
- gasOffset uint64
- sidecar *types.BlobTxSidecar
func (*EthTxManager_Expecter) Remove ¶ added in v0.3.0
func (_e *EthTxManager_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManager_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- id common.Hash
func (*EthTxManager_Expecter) Result ¶ added in v0.3.0
func (_e *EthTxManager_Expecter) Result(ctx interface{}, id interface{}) *EthTxManager_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
- id common.Hash
func (*EthTxManager_Expecter) ResultsByStatus ¶ added in v0.3.0
func (_e *EthTxManager_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManager_ResultsByStatus_Call
ResultsByStatus is a helper method to define mock.On call
- ctx context.Context
- statuses []zkevm_ethtx_managertypes.MonitoredTxStatus
type EthTxManager_Remove_Call ¶ added in v0.3.0
EthTxManager_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*EthTxManager_Remove_Call) Return ¶ added in v0.3.0
func (_c *EthTxManager_Remove_Call) Return(_a0 error) *EthTxManager_Remove_Call
func (*EthTxManager_Remove_Call) Run ¶ added in v0.3.0
func (_c *EthTxManager_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManager_Remove_Call
func (*EthTxManager_Remove_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthTxManager_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManager_Remove_Call
type EthTxManager_Result_Call ¶ added in v0.3.0
EthTxManager_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*EthTxManager_Result_Call) Return ¶ added in v0.3.0
func (_c *EthTxManager_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManager_Result_Call
func (*EthTxManager_Result_Call) Run ¶ added in v0.3.0
func (_c *EthTxManager_Result_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManager_Result_Call
func (*EthTxManager_Result_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthTxManager_Result_Call) RunAndReturn(run func(context.Context, common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManager_Result_Call
type EthTxManager_ResultsByStatus_Call ¶ added in v0.3.0
EthTxManager_ResultsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResultsByStatus'
func (*EthTxManager_ResultsByStatus_Call) Return ¶ added in v0.3.0
func (_c *EthTxManager_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManager_ResultsByStatus_Call
func (*EthTxManager_ResultsByStatus_Call) Run ¶ added in v0.3.0
func (_c *EthTxManager_ResultsByStatus_Call) Run(run func(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus)) *EthTxManager_ResultsByStatus_Call
func (*EthTxManager_ResultsByStatus_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EthTxManager_ResultsByStatus_Call) RunAndReturn(run func(context.Context, []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManager_ResultsByStatus_Call
type L2GERManagerContract ¶ added in v0.3.0
L2GERManagerContract is an autogenerated mock type for the L2GERManagerContract type
func NewL2GERManagerContract ¶ added in v0.3.0
func NewL2GERManagerContract(t interface {
mock.TestingT
Cleanup(func())
}) *L2GERManagerContract
NewL2GERManagerContract creates a new instance of L2GERManagerContract. 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 (*L2GERManagerContract) BridgeAddress ¶ added in v0.3.0
BridgeAddress provides a mock function with given fields: _a0
func (*L2GERManagerContract) EXPECT ¶ added in v0.3.0
func (_m *L2GERManagerContract) EXPECT() *L2GERManagerContract_Expecter
func (*L2GERManagerContract) FilterUpdateHashChainValue ¶ added in v0.3.0
func (_m *L2GERManagerContract) FilterUpdateHashChainValue(opts *bind.FilterOpts, newGlobalExitRoot [][32]byte, newHashChainValue [][32]byte) (*globalexitrootmanagerl2sovereignchain.Globalexitrootmanagerl2sovereignchainUpdateHashChainValueIterator, error)
FilterUpdateHashChainValue provides a mock function with given fields: opts, newGlobalExitRoot, newHashChainValue
func (*L2GERManagerContract) FilterUpdateRemovalHashChainValue ¶ added in v0.3.0
func (_m *L2GERManagerContract) FilterUpdateRemovalHashChainValue(opts *bind.FilterOpts, removedGlobalExitRoot [][32]byte, newRemovalHashChainValue [][32]byte) (*globalexitrootmanagerl2sovereignchain.Globalexitrootmanagerl2sovereignchainUpdateRemovalHashChainValueIterator, error)
FilterUpdateRemovalHashChainValue provides a mock function with given fields: opts, removedGlobalExitRoot, newRemovalHashChainValue
func (*L2GERManagerContract) GlobalExitRootMap ¶ added in v0.3.0
func (_m *L2GERManagerContract) GlobalExitRootMap(opts *bind.CallOpts, ger [32]byte) (*big.Int, error)
GlobalExitRootMap provides a mock function with given fields: opts, ger
type L2GERManagerContract_BridgeAddress_Call ¶ added in v0.3.0
L2GERManagerContract_BridgeAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BridgeAddress'
func (*L2GERManagerContract_BridgeAddress_Call) Return ¶ added in v0.3.0
func (_c *L2GERManagerContract_BridgeAddress_Call) Return(_a0 common.Address, _a1 error) *L2GERManagerContract_BridgeAddress_Call
func (*L2GERManagerContract_BridgeAddress_Call) Run ¶ added in v0.3.0
func (_c *L2GERManagerContract_BridgeAddress_Call) Run(run func(_a0 *bind.CallOpts)) *L2GERManagerContract_BridgeAddress_Call
func (*L2GERManagerContract_BridgeAddress_Call) RunAndReturn ¶ added in v0.3.0
func (_c *L2GERManagerContract_BridgeAddress_Call) RunAndReturn(run func(*bind.CallOpts) (common.Address, error)) *L2GERManagerContract_BridgeAddress_Call
type L2GERManagerContract_Expecter ¶ added in v0.3.0
type L2GERManagerContract_Expecter struct {
// contains filtered or unexported fields
}
func (*L2GERManagerContract_Expecter) BridgeAddress ¶ added in v0.3.0
func (_e *L2GERManagerContract_Expecter) BridgeAddress(_a0 interface{}) *L2GERManagerContract_BridgeAddress_Call
BridgeAddress is a helper method to define mock.On call
- _a0 *bind.CallOpts
func (*L2GERManagerContract_Expecter) FilterUpdateHashChainValue ¶ added in v0.3.0
func (_e *L2GERManagerContract_Expecter) FilterUpdateHashChainValue(opts interface{}, newGlobalExitRoot interface{}, newHashChainValue interface{}) *L2GERManagerContract_FilterUpdateHashChainValue_Call
FilterUpdateHashChainValue is a helper method to define mock.On call
- opts *bind.FilterOpts
- newGlobalExitRoot [][32]byte
- newHashChainValue [][32]byte
func (*L2GERManagerContract_Expecter) FilterUpdateRemovalHashChainValue ¶ added in v0.3.0
func (_e *L2GERManagerContract_Expecter) FilterUpdateRemovalHashChainValue(opts interface{}, removedGlobalExitRoot interface{}, newRemovalHashChainValue interface{}) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
FilterUpdateRemovalHashChainValue is a helper method to define mock.On call
- opts *bind.FilterOpts
- removedGlobalExitRoot [][32]byte
- newRemovalHashChainValue [][32]byte
func (*L2GERManagerContract_Expecter) GlobalExitRootMap ¶ added in v0.3.0
func (_e *L2GERManagerContract_Expecter) GlobalExitRootMap(opts interface{}, ger interface{}) *L2GERManagerContract_GlobalExitRootMap_Call
GlobalExitRootMap is a helper method to define mock.On call
- opts *bind.CallOpts
- ger [32]byte
type L2GERManagerContract_FilterUpdateHashChainValue_Call ¶ added in v0.3.0
L2GERManagerContract_FilterUpdateHashChainValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterUpdateHashChainValue'
func (*L2GERManagerContract_FilterUpdateHashChainValue_Call) Run ¶ added in v0.3.0
func (_c *L2GERManagerContract_FilterUpdateHashChainValue_Call) Run(run func(opts *bind.FilterOpts, newGlobalExitRoot [][32]byte, newHashChainValue [][32]byte)) *L2GERManagerContract_FilterUpdateHashChainValue_Call
func (*L2GERManagerContract_FilterUpdateHashChainValue_Call) RunAndReturn ¶ added in v0.3.0
func (_c *L2GERManagerContract_FilterUpdateHashChainValue_Call) RunAndReturn(run func(*bind.FilterOpts, [][32]byte, [][32]byte) (*globalexitrootmanagerl2sovereignchain.Globalexitrootmanagerl2sovereignchainUpdateHashChainValueIterator, error)) *L2GERManagerContract_FilterUpdateHashChainValue_Call
type L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call ¶ added in v0.3.0
L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterUpdateRemovalHashChainValue'
func (*L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) Run ¶ added in v0.3.0
func (_c *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) Run(run func(opts *bind.FilterOpts, removedGlobalExitRoot [][32]byte, newRemovalHashChainValue [][32]byte)) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
func (*L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) RunAndReturn ¶ added in v0.3.0
func (_c *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call) RunAndReturn(run func(*bind.FilterOpts, [][32]byte, [][32]byte) (*globalexitrootmanagerl2sovereignchain.Globalexitrootmanagerl2sovereignchainUpdateRemovalHashChainValueIterator, error)) *L2GERManagerContract_FilterUpdateRemovalHashChainValue_Call
type L2GERManagerContract_GlobalExitRootMap_Call ¶ added in v0.3.0
L2GERManagerContract_GlobalExitRootMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobalExitRootMap'
func (*L2GERManagerContract_GlobalExitRootMap_Call) Return ¶ added in v0.3.0
func (_c *L2GERManagerContract_GlobalExitRootMap_Call) Return(_a0 *big.Int, _a1 error) *L2GERManagerContract_GlobalExitRootMap_Call
func (*L2GERManagerContract_GlobalExitRootMap_Call) Run ¶ added in v0.3.0
func (_c *L2GERManagerContract_GlobalExitRootMap_Call) Run(run func(opts *bind.CallOpts, ger [32]byte)) *L2GERManagerContract_GlobalExitRootMap_Call
func (*L2GERManagerContract_GlobalExitRootMap_Call) RunAndReturn ¶ added in v0.3.0
func (_c *L2GERManagerContract_GlobalExitRootMap_Call) RunAndReturn(run func(*bind.CallOpts, [32]byte) (*big.Int, error)) *L2GERManagerContract_GlobalExitRootMap_Call