Documentation ¶
Index ¶
- type EthTxManagerMock
- func (_m *EthTxManagerMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManagerMock) EXPECT() *EthTxManagerMock_Expecter
- func (_m *EthTxManagerMock) Remove(ctx context.Context, id common.Hash) error
- func (_m *EthTxManagerMock) Result(ctx context.Context, id common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
- func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
- type EthTxManagerMock_Add_Call
- type EthTxManagerMock_Expecter
- func (_e *EthTxManagerMock_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, ...) *EthTxManagerMock_Add_Call
- func (_e *EthTxManagerMock_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManagerMock_Remove_Call
- func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, id interface{}) *EthTxManagerMock_Result_Call
- func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManagerMock_ResultsByStatus_Call
- type EthTxManagerMock_Remove_Call
- func (_c *EthTxManagerMock_Remove_Call) Return(_a0 error) *EthTxManagerMock_Remove_Call
- func (_c *EthTxManagerMock_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerMock_Remove_Call
- func (_c *EthTxManagerMock_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManagerMock_Remove_Call
- type EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerMock_Result_Call
- func (_c *EthTxManagerMock_Result_Call) RunAndReturn(...) *EthTxManagerMock_Result_Call
- type EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) Run(...) *EthTxManagerMock_ResultsByStatus_Call
- func (_c *EthTxManagerMock_ResultsByStatus_Call) RunAndReturn(...) *EthTxManagerMock_ResultsByStatus_Call
- type L2GERManagerMock
- type L2GERManagerMock_Expecter
- type L2GERManagerMock_GlobalExitRootMap_Call
- func (_c *L2GERManagerMock_GlobalExitRootMap_Call) Return(_a0 *big.Int, _a1 error) *L2GERManagerMock_GlobalExitRootMap_Call
- func (_c *L2GERManagerMock_GlobalExitRootMap_Call) Run(run func(opts *bind.CallOpts, ger [32]byte)) *L2GERManagerMock_GlobalExitRootMap_Call
- func (_c *L2GERManagerMock_GlobalExitRootMap_Call) RunAndReturn(run func(*bind.CallOpts, [32]byte) (*big.Int, error)) *L2GERManagerMock_GlobalExitRootMap_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthTxManagerMock ¶
EthTxManagerMock is an autogenerated mock type for the EthTxManager type
func NewEthTxManagerMock ¶
func NewEthTxManagerMock(t interface { mock.TestingT Cleanup(func()) }) *EthTxManagerMock
NewEthTxManagerMock creates a new instance of EthTxManagerMock. 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 (*EthTxManagerMock) Add ¶
func (_m *EthTxManagerMock) 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 (*EthTxManagerMock) EXPECT ¶
func (_m *EthTxManagerMock) EXPECT() *EthTxManagerMock_Expecter
func (*EthTxManagerMock) Result ¶
func (_m *EthTxManagerMock) Result(ctx context.Context, id common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, id
func (*EthTxManagerMock) ResultsByStatus ¶
func (_m *EthTxManagerMock) 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 EthTxManagerMock_Add_Call ¶
EthTxManagerMock_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*EthTxManagerMock_Add_Call) Return ¶
func (_c *EthTxManagerMock_Add_Call) Return(_a0 common.Hash, _a1 error) *EthTxManagerMock_Add_Call
func (*EthTxManagerMock_Add_Call) Run ¶
func (_c *EthTxManagerMock_Add_Call) Run(run func(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar)) *EthTxManagerMock_Add_Call
func (*EthTxManagerMock_Add_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_Add_Call) RunAndReturn(run func(context.Context, *common.Address, *big.Int, []byte, uint64, *types.BlobTxSidecar) (common.Hash, error)) *EthTxManagerMock_Add_Call
type EthTxManagerMock_Expecter ¶
type EthTxManagerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*EthTxManagerMock_Expecter) Add ¶
func (_e *EthTxManagerMock_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, sidecar interface{}) *EthTxManagerMock_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 (*EthTxManagerMock_Expecter) Remove ¶
func (_e *EthTxManagerMock_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManagerMock_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- id common.Hash
func (*EthTxManagerMock_Expecter) Result ¶
func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, id interface{}) *EthTxManagerMock_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
- id common.Hash
func (*EthTxManagerMock_Expecter) ResultsByStatus ¶
func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManagerMock_ResultsByStatus_Call
ResultsByStatus is a helper method to define mock.On call
- ctx context.Context
- statuses []zkevm_ethtx_managertypes.MonitoredTxStatus
type EthTxManagerMock_Remove_Call ¶
EthTxManagerMock_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*EthTxManagerMock_Remove_Call) Return ¶
func (_c *EthTxManagerMock_Remove_Call) Return(_a0 error) *EthTxManagerMock_Remove_Call
func (*EthTxManagerMock_Remove_Call) Run ¶
func (_c *EthTxManagerMock_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerMock_Remove_Call
func (*EthTxManagerMock_Remove_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManagerMock_Remove_Call
type EthTxManagerMock_Result_Call ¶
EthTxManagerMock_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*EthTxManagerMock_Result_Call) Return ¶
func (_c *EthTxManagerMock_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_Result_Call
func (*EthTxManagerMock_Result_Call) Run ¶
func (_c *EthTxManagerMock_Result_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerMock_Result_Call
func (*EthTxManagerMock_Result_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_Result_Call) RunAndReturn(run func(context.Context, common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManagerMock_Result_Call
type EthTxManagerMock_ResultsByStatus_Call ¶
EthTxManagerMock_ResultsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResultsByStatus'
func (*EthTxManagerMock_ResultsByStatus_Call) Return ¶
func (_c *EthTxManagerMock_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerMock_ResultsByStatus_Call
func (*EthTxManagerMock_ResultsByStatus_Call) Run ¶
func (_c *EthTxManagerMock_ResultsByStatus_Call) Run(run func(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus)) *EthTxManagerMock_ResultsByStatus_Call
func (*EthTxManagerMock_ResultsByStatus_Call) RunAndReturn ¶
func (_c *EthTxManagerMock_ResultsByStatus_Call) RunAndReturn(run func(context.Context, []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManagerMock_ResultsByStatus_Call
type L2GERManagerMock ¶
L2GERManagerMock is an autogenerated mock type for the L2GERManagerContract type
func NewL2GERManagerMock ¶
func NewL2GERManagerMock(t interface { mock.TestingT Cleanup(func()) }) *L2GERManagerMock
NewL2GERManagerMock creates a new instance of L2GERManagerMock. 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 (*L2GERManagerMock) EXPECT ¶
func (_m *L2GERManagerMock) EXPECT() *L2GERManagerMock_Expecter
func (*L2GERManagerMock) GlobalExitRootMap ¶
GlobalExitRootMap provides a mock function with given fields: opts, ger
type L2GERManagerMock_Expecter ¶
type L2GERManagerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*L2GERManagerMock_Expecter) GlobalExitRootMap ¶
func (_e *L2GERManagerMock_Expecter) GlobalExitRootMap(opts interface{}, ger interface{}) *L2GERManagerMock_GlobalExitRootMap_Call
GlobalExitRootMap is a helper method to define mock.On call
- opts *bind.CallOpts
- ger [32]byte
type L2GERManagerMock_GlobalExitRootMap_Call ¶
L2GERManagerMock_GlobalExitRootMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobalExitRootMap'
func (*L2GERManagerMock_GlobalExitRootMap_Call) Return ¶
func (_c *L2GERManagerMock_GlobalExitRootMap_Call) Return(_a0 *big.Int, _a1 error) *L2GERManagerMock_GlobalExitRootMap_Call
func (*L2GERManagerMock_GlobalExitRootMap_Call) Run ¶
func (_c *L2GERManagerMock_GlobalExitRootMap_Call) Run(run func(opts *bind.CallOpts, ger [32]byte)) *L2GERManagerMock_GlobalExitRootMap_Call
func (*L2GERManagerMock_GlobalExitRootMap_Call) RunAndReturn ¶
func (_c *L2GERManagerMock_GlobalExitRootMap_Call) RunAndReturn(run func(*bind.CallOpts, [32]byte) (*big.Int, error)) *L2GERManagerMock_GlobalExitRootMap_Call