Documentation ¶
Index ¶
- type EthermanGetLatestBatchNumber
- type EthermanGetLatestBatchNumber_Expecter
- type EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
- func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Return(_a0 uint64, _a1 error) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
- func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Run(run func()) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
- func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) RunAndReturn(run func() (uint64, error)) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
- type EventLogInterface
- type EventLogInterface_Expecter
- type EventLogInterface_LogEvent_Call
- func (_c *EventLogInterface_LogEvent_Call) Return(_a0 error) *EventLogInterface_LogEvent_Call
- func (_c *EventLogInterface_LogEvent_Call) Run(run func(ctx context.Context, _a1 *event.Event)) *EventLogInterface_LogEvent_Call
- func (_c *EventLogInterface_LogEvent_Call) RunAndReturn(run func(context.Context, *event.Event) error) *EventLogInterface_LogEvent_Call
- type StateBeginTransactionInterface
- type StateBeginTransactionInterface_BeginStateTransaction_Call
- func (_c *StateBeginTransactionInterface_BeginStateTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StateBeginTransactionInterface_BeginStateTransaction_Call
- func (_c *StateBeginTransactionInterface_BeginStateTransaction_Call) Run(run func(ctx context.Context)) *StateBeginTransactionInterface_BeginStateTransaction_Call
- func (_c *StateBeginTransactionInterface_BeginStateTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StateBeginTransactionInterface_BeginStateTransaction_Call
- type StateBeginTransactionInterface_Expecter
- type StateGetBatchByNumberInterface
- type StateGetBatchByNumberInterface_Expecter
- type StateGetBatchByNumberInterface_GetBatchByNumber_Call
- func (_c *StateGetBatchByNumberInterface_GetBatchByNumber_Call) Return(_a0 *state.Batch, _a1 error) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
- func (_c *StateGetBatchByNumberInterface_GetBatchByNumber_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
- func (_c *StateGetBatchByNumberInterface_GetBatchByNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Batch, error)) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
- type SyncTrustedStateExecutor
- type SyncTrustedStateExecutor_CleanTrustedState_Call
- func (_c *SyncTrustedStateExecutor_CleanTrustedState_Call) Return() *SyncTrustedStateExecutor_CleanTrustedState_Call
- func (_c *SyncTrustedStateExecutor_CleanTrustedState_Call) Run(run func()) *SyncTrustedStateExecutor_CleanTrustedState_Call
- func (_c *SyncTrustedStateExecutor_CleanTrustedState_Call) RunAndReturn(run func()) *SyncTrustedStateExecutor_CleanTrustedState_Call
- type SyncTrustedStateExecutor_Expecter
- type SyncTrustedStateExecutor_SyncTrustedState_Call
- func (_c *SyncTrustedStateExecutor_SyncTrustedState_Call) Return(_a0 error) *SyncTrustedStateExecutor_SyncTrustedState_Call
- func (_c *SyncTrustedStateExecutor_SyncTrustedState_Call) Run(run func(ctx context.Context, latestSyncedBatch uint64)) *SyncTrustedStateExecutor_SyncTrustedState_Call
- func (_c *SyncTrustedStateExecutor_SyncTrustedState_Call) RunAndReturn(run func(context.Context, uint64) error) *SyncTrustedStateExecutor_SyncTrustedState_Call
- type SynchronizerFlushIDManager
- type SynchronizerFlushIDManager_CheckFlushID_Call
- func (_c *SynchronizerFlushIDManager_CheckFlushID_Call) Return(_a0 error) *SynchronizerFlushIDManager_CheckFlushID_Call
- func (_c *SynchronizerFlushIDManager_CheckFlushID_Call) Run(run func(dbTx pgx.Tx)) *SynchronizerFlushIDManager_CheckFlushID_Call
- func (_c *SynchronizerFlushIDManager_CheckFlushID_Call) RunAndReturn(run func(pgx.Tx) error) *SynchronizerFlushIDManager_CheckFlushID_Call
- type SynchronizerFlushIDManager_Expecter
- type SynchronizerFlushIDManager_PendingFlushID_Call
- func (_c *SynchronizerFlushIDManager_PendingFlushID_Call) Return() *SynchronizerFlushIDManager_PendingFlushID_Call
- func (_c *SynchronizerFlushIDManager_PendingFlushID_Call) Run(run func(flushID uint64, proverID string)) *SynchronizerFlushIDManager_PendingFlushID_Call
- func (_c *SynchronizerFlushIDManager_PendingFlushID_Call) RunAndReturn(run func(uint64, string)) *SynchronizerFlushIDManager_PendingFlushID_Call
- type ZKEVMClientGlobalExitRootGetter
- type ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
- func (_c *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Return(_a0 *types.ExitRoots, _a1 error) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
- func (_c *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Run(run func(ctx context.Context, globalExitRoot common.Hash)) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
- func (_c *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.ExitRoots, error)) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
- type ZKEVMClientGlobalExitRootGetter_Expecter
- type ZKEVMClientInterface
- func (_m *ZKEVMClientInterface) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)
- func (_m *ZKEVMClientInterface) BatchNumber(ctx context.Context) (uint64, error)
- func (_m *ZKEVMClientInterface) EXPECT() *ZKEVMClientInterface_Expecter
- func (_m *ZKEVMClientInterface) ExitRootsByGER(ctx context.Context, globalExitRoot common.Hash) (*types.ExitRoots, error)
- type ZKEVMClientInterface_BatchByNumber_Call
- func (_c *ZKEVMClientInterface_BatchByNumber_Call) Return(_a0 *types.Batch, _a1 error) *ZKEVMClientInterface_BatchByNumber_Call
- func (_c *ZKEVMClientInterface_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZKEVMClientInterface_BatchByNumber_Call
- func (_c *ZKEVMClientInterface_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZKEVMClientInterface_BatchByNumber_Call
- type ZKEVMClientInterface_BatchNumber_Call
- func (_c *ZKEVMClientInterface_BatchNumber_Call) Return(_a0 uint64, _a1 error) *ZKEVMClientInterface_BatchNumber_Call
- func (_c *ZKEVMClientInterface_BatchNumber_Call) Run(run func(ctx context.Context)) *ZKEVMClientInterface_BatchNumber_Call
- func (_c *ZKEVMClientInterface_BatchNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *ZKEVMClientInterface_BatchNumber_Call
- type ZKEVMClientInterface_ExitRootsByGER_Call
- func (_c *ZKEVMClientInterface_ExitRootsByGER_Call) Return(_a0 *types.ExitRoots, _a1 error) *ZKEVMClientInterface_ExitRootsByGER_Call
- func (_c *ZKEVMClientInterface_ExitRootsByGER_Call) Run(run func(ctx context.Context, globalExitRoot common.Hash)) *ZKEVMClientInterface_ExitRootsByGER_Call
- func (_c *ZKEVMClientInterface_ExitRootsByGER_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.ExitRoots, error)) *ZKEVMClientInterface_ExitRootsByGER_Call
- type ZKEVMClientInterface_Expecter
- func (_e *ZKEVMClientInterface_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZKEVMClientInterface_BatchByNumber_Call
- func (_e *ZKEVMClientInterface_Expecter) BatchNumber(ctx interface{}) *ZKEVMClientInterface_BatchNumber_Call
- func (_e *ZKEVMClientInterface_Expecter) ExitRootsByGER(ctx interface{}, globalExitRoot interface{}) *ZKEVMClientInterface_ExitRootsByGER_Call
- type ZKEVMClientTrustedBatchesGetter
- func (_m *ZKEVMClientTrustedBatchesGetter) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)
- func (_m *ZKEVMClientTrustedBatchesGetter) BatchNumber(ctx context.Context) (uint64, error)
- func (_m *ZKEVMClientTrustedBatchesGetter) EXPECT() *ZKEVMClientTrustedBatchesGetter_Expecter
- type ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
- func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Return(_a0 *types.Batch, _a1 error) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
- func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
- func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
- type ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
- func (_c *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Return(_a0 uint64, _a1 error) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
- func (_c *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Run(run func(ctx context.Context)) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
- func (_c *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
- type ZKEVMClientTrustedBatchesGetter_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthermanGetLatestBatchNumber ¶
EthermanGetLatestBatchNumber is an autogenerated mock type for the EthermanGetLatestBatchNumber type
func NewEthermanGetLatestBatchNumber ¶
func NewEthermanGetLatestBatchNumber(t interface { mock.TestingT Cleanup(func()) }) *EthermanGetLatestBatchNumber
NewEthermanGetLatestBatchNumber creates a new instance of EthermanGetLatestBatchNumber. 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 (*EthermanGetLatestBatchNumber) EXPECT ¶
func (_m *EthermanGetLatestBatchNumber) EXPECT() *EthermanGetLatestBatchNumber_Expecter
func (*EthermanGetLatestBatchNumber) GetLatestBatchNumber ¶
func (_m *EthermanGetLatestBatchNumber) GetLatestBatchNumber() (uint64, error)
GetLatestBatchNumber provides a mock function with given fields:
type EthermanGetLatestBatchNumber_Expecter ¶
type EthermanGetLatestBatchNumber_Expecter struct {
// contains filtered or unexported fields
}
func (*EthermanGetLatestBatchNumber_Expecter) GetLatestBatchNumber ¶
func (_e *EthermanGetLatestBatchNumber_Expecter) GetLatestBatchNumber() *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
GetLatestBatchNumber is a helper method to define mock.On call
type EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call ¶
EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBatchNumber'
func (*EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Return ¶
func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Return(_a0 uint64, _a1 error) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
func (*EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Run ¶
func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Run(run func()) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
func (*EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) RunAndReturn ¶
func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) RunAndReturn(run func() (uint64, error)) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call
type EventLogInterface ¶
EventLogInterface is an autogenerated mock type for the EventLogInterface type
func NewEventLogInterface ¶
func NewEventLogInterface(t interface { mock.TestingT Cleanup(func()) }) *EventLogInterface
NewEventLogInterface creates a new instance of EventLogInterface. 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 (*EventLogInterface) EXPECT ¶
func (_m *EventLogInterface) EXPECT() *EventLogInterface_Expecter
type EventLogInterface_Expecter ¶
type EventLogInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*EventLogInterface_Expecter) LogEvent ¶
func (_e *EventLogInterface_Expecter) LogEvent(ctx interface{}, _a1 interface{}) *EventLogInterface_LogEvent_Call
LogEvent is a helper method to define mock.On call
- ctx context.Context
- _a1 *event.Event
type EventLogInterface_LogEvent_Call ¶
EventLogInterface_LogEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogEvent'
func (*EventLogInterface_LogEvent_Call) Return ¶
func (_c *EventLogInterface_LogEvent_Call) Return(_a0 error) *EventLogInterface_LogEvent_Call
func (*EventLogInterface_LogEvent_Call) Run ¶
func (_c *EventLogInterface_LogEvent_Call) Run(run func(ctx context.Context, _a1 *event.Event)) *EventLogInterface_LogEvent_Call
func (*EventLogInterface_LogEvent_Call) RunAndReturn ¶
func (_c *EventLogInterface_LogEvent_Call) RunAndReturn(run func(context.Context, *event.Event) error) *EventLogInterface_LogEvent_Call
type StateBeginTransactionInterface ¶
StateBeginTransactionInterface is an autogenerated mock type for the StateBeginTransactionInterface type
func NewStateBeginTransactionInterface ¶
func NewStateBeginTransactionInterface(t interface { mock.TestingT Cleanup(func()) }) *StateBeginTransactionInterface
NewStateBeginTransactionInterface creates a new instance of StateBeginTransactionInterface. 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 (*StateBeginTransactionInterface) BeginStateTransaction ¶
func (_m *StateBeginTransactionInterface) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)
BeginStateTransaction provides a mock function with given fields: ctx
func (*StateBeginTransactionInterface) EXPECT ¶
func (_m *StateBeginTransactionInterface) EXPECT() *StateBeginTransactionInterface_Expecter
type StateBeginTransactionInterface_BeginStateTransaction_Call ¶
StateBeginTransactionInterface_BeginStateTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginStateTransaction'
func (*StateBeginTransactionInterface_BeginStateTransaction_Call) Return ¶
func (_c *StateBeginTransactionInterface_BeginStateTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StateBeginTransactionInterface_BeginStateTransaction_Call
func (*StateBeginTransactionInterface_BeginStateTransaction_Call) Run ¶
func (_c *StateBeginTransactionInterface_BeginStateTransaction_Call) Run(run func(ctx context.Context)) *StateBeginTransactionInterface_BeginStateTransaction_Call
func (*StateBeginTransactionInterface_BeginStateTransaction_Call) RunAndReturn ¶
func (_c *StateBeginTransactionInterface_BeginStateTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StateBeginTransactionInterface_BeginStateTransaction_Call
type StateBeginTransactionInterface_Expecter ¶
type StateBeginTransactionInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*StateBeginTransactionInterface_Expecter) BeginStateTransaction ¶
func (_e *StateBeginTransactionInterface_Expecter) BeginStateTransaction(ctx interface{}) *StateBeginTransactionInterface_BeginStateTransaction_Call
BeginStateTransaction is a helper method to define mock.On call
- ctx context.Context
type StateGetBatchByNumberInterface ¶
StateGetBatchByNumberInterface is an autogenerated mock type for the StateGetBatchByNumberInterface type
func NewStateGetBatchByNumberInterface ¶
func NewStateGetBatchByNumberInterface(t interface { mock.TestingT Cleanup(func()) }) *StateGetBatchByNumberInterface
NewStateGetBatchByNumberInterface creates a new instance of StateGetBatchByNumberInterface. 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 (*StateGetBatchByNumberInterface) EXPECT ¶
func (_m *StateGetBatchByNumberInterface) EXPECT() *StateGetBatchByNumberInterface_Expecter
type StateGetBatchByNumberInterface_Expecter ¶
type StateGetBatchByNumberInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*StateGetBatchByNumberInterface_Expecter) GetBatchByNumber ¶
func (_e *StateGetBatchByNumberInterface_Expecter) GetBatchByNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
GetBatchByNumber is a helper method to define mock.On call
- ctx context.Context
- batchNumber uint64
- dbTx pgx.Tx
type StateGetBatchByNumberInterface_GetBatchByNumber_Call ¶
StateGetBatchByNumberInterface_GetBatchByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBatchByNumber'
func (*StateGetBatchByNumberInterface_GetBatchByNumber_Call) Return ¶
func (_c *StateGetBatchByNumberInterface_GetBatchByNumber_Call) Return(_a0 *state.Batch, _a1 error) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
func (*StateGetBatchByNumberInterface_GetBatchByNumber_Call) Run ¶
func (_c *StateGetBatchByNumberInterface_GetBatchByNumber_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
func (*StateGetBatchByNumberInterface_GetBatchByNumber_Call) RunAndReturn ¶
func (_c *StateGetBatchByNumberInterface_GetBatchByNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Batch, error)) *StateGetBatchByNumberInterface_GetBatchByNumber_Call
type SyncTrustedStateExecutor ¶
SyncTrustedStateExecutor is an autogenerated mock type for the SyncTrustedStateExecutor type
func NewSyncTrustedStateExecutor ¶
func NewSyncTrustedStateExecutor(t interface { mock.TestingT Cleanup(func()) }) *SyncTrustedStateExecutor
NewSyncTrustedStateExecutor creates a new instance of SyncTrustedStateExecutor. 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 (*SyncTrustedStateExecutor) CleanTrustedState ¶
func (_m *SyncTrustedStateExecutor) CleanTrustedState()
CleanTrustedState provides a mock function with given fields:
func (*SyncTrustedStateExecutor) EXPECT ¶
func (_m *SyncTrustedStateExecutor) EXPECT() *SyncTrustedStateExecutor_Expecter
func (*SyncTrustedStateExecutor) SyncTrustedState ¶
func (_m *SyncTrustedStateExecutor) SyncTrustedState(ctx context.Context, latestSyncedBatch uint64) error
SyncTrustedState provides a mock function with given fields: ctx, latestSyncedBatch
type SyncTrustedStateExecutor_CleanTrustedState_Call ¶
SyncTrustedStateExecutor_CleanTrustedState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanTrustedState'
func (*SyncTrustedStateExecutor_CleanTrustedState_Call) Run ¶
func (_c *SyncTrustedStateExecutor_CleanTrustedState_Call) Run(run func()) *SyncTrustedStateExecutor_CleanTrustedState_Call
func (*SyncTrustedStateExecutor_CleanTrustedState_Call) RunAndReturn ¶
func (_c *SyncTrustedStateExecutor_CleanTrustedState_Call) RunAndReturn(run func()) *SyncTrustedStateExecutor_CleanTrustedState_Call
type SyncTrustedStateExecutor_Expecter ¶
type SyncTrustedStateExecutor_Expecter struct {
// contains filtered or unexported fields
}
func (*SyncTrustedStateExecutor_Expecter) CleanTrustedState ¶
func (_e *SyncTrustedStateExecutor_Expecter) CleanTrustedState() *SyncTrustedStateExecutor_CleanTrustedState_Call
CleanTrustedState is a helper method to define mock.On call
func (*SyncTrustedStateExecutor_Expecter) SyncTrustedState ¶
func (_e *SyncTrustedStateExecutor_Expecter) SyncTrustedState(ctx interface{}, latestSyncedBatch interface{}) *SyncTrustedStateExecutor_SyncTrustedState_Call
SyncTrustedState is a helper method to define mock.On call
- ctx context.Context
- latestSyncedBatch uint64
type SyncTrustedStateExecutor_SyncTrustedState_Call ¶
SyncTrustedStateExecutor_SyncTrustedState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncTrustedState'
func (*SyncTrustedStateExecutor_SyncTrustedState_Call) Return ¶
func (_c *SyncTrustedStateExecutor_SyncTrustedState_Call) Return(_a0 error) *SyncTrustedStateExecutor_SyncTrustedState_Call
func (*SyncTrustedStateExecutor_SyncTrustedState_Call) Run ¶
func (_c *SyncTrustedStateExecutor_SyncTrustedState_Call) Run(run func(ctx context.Context, latestSyncedBatch uint64)) *SyncTrustedStateExecutor_SyncTrustedState_Call
func (*SyncTrustedStateExecutor_SyncTrustedState_Call) RunAndReturn ¶
func (_c *SyncTrustedStateExecutor_SyncTrustedState_Call) RunAndReturn(run func(context.Context, uint64) error) *SyncTrustedStateExecutor_SyncTrustedState_Call
type SynchronizerFlushIDManager ¶
SynchronizerFlushIDManager is an autogenerated mock type for the SynchronizerFlushIDManager type
func NewSynchronizerFlushIDManager ¶
func NewSynchronizerFlushIDManager(t interface { mock.TestingT Cleanup(func()) }) *SynchronizerFlushIDManager
NewSynchronizerFlushIDManager creates a new instance of SynchronizerFlushIDManager. 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 (*SynchronizerFlushIDManager) CheckFlushID ¶
func (_m *SynchronizerFlushIDManager) CheckFlushID(dbTx pgx.Tx) error
CheckFlushID provides a mock function with given fields: dbTx
func (*SynchronizerFlushIDManager) EXPECT ¶
func (_m *SynchronizerFlushIDManager) EXPECT() *SynchronizerFlushIDManager_Expecter
func (*SynchronizerFlushIDManager) PendingFlushID ¶
func (_m *SynchronizerFlushIDManager) PendingFlushID(flushID uint64, proverID string)
PendingFlushID provides a mock function with given fields: flushID, proverID
type SynchronizerFlushIDManager_CheckFlushID_Call ¶
SynchronizerFlushIDManager_CheckFlushID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckFlushID'
func (*SynchronizerFlushIDManager_CheckFlushID_Call) Return ¶
func (_c *SynchronizerFlushIDManager_CheckFlushID_Call) Return(_a0 error) *SynchronizerFlushIDManager_CheckFlushID_Call
func (*SynchronizerFlushIDManager_CheckFlushID_Call) Run ¶
func (_c *SynchronizerFlushIDManager_CheckFlushID_Call) Run(run func(dbTx pgx.Tx)) *SynchronizerFlushIDManager_CheckFlushID_Call
func (*SynchronizerFlushIDManager_CheckFlushID_Call) RunAndReturn ¶
func (_c *SynchronizerFlushIDManager_CheckFlushID_Call) RunAndReturn(run func(pgx.Tx) error) *SynchronizerFlushIDManager_CheckFlushID_Call
type SynchronizerFlushIDManager_Expecter ¶
type SynchronizerFlushIDManager_Expecter struct {
// contains filtered or unexported fields
}
func (*SynchronizerFlushIDManager_Expecter) CheckFlushID ¶
func (_e *SynchronizerFlushIDManager_Expecter) CheckFlushID(dbTx interface{}) *SynchronizerFlushIDManager_CheckFlushID_Call
CheckFlushID is a helper method to define mock.On call
- dbTx pgx.Tx
func (*SynchronizerFlushIDManager_Expecter) PendingFlushID ¶
func (_e *SynchronizerFlushIDManager_Expecter) PendingFlushID(flushID interface{}, proverID interface{}) *SynchronizerFlushIDManager_PendingFlushID_Call
PendingFlushID is a helper method to define mock.On call
- flushID uint64
- proverID string
type SynchronizerFlushIDManager_PendingFlushID_Call ¶
SynchronizerFlushIDManager_PendingFlushID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingFlushID'
func (*SynchronizerFlushIDManager_PendingFlushID_Call) Run ¶
func (_c *SynchronizerFlushIDManager_PendingFlushID_Call) Run(run func(flushID uint64, proverID string)) *SynchronizerFlushIDManager_PendingFlushID_Call
func (*SynchronizerFlushIDManager_PendingFlushID_Call) RunAndReturn ¶
func (_c *SynchronizerFlushIDManager_PendingFlushID_Call) RunAndReturn(run func(uint64, string)) *SynchronizerFlushIDManager_PendingFlushID_Call
type ZKEVMClientGlobalExitRootGetter ¶
ZKEVMClientGlobalExitRootGetter is an autogenerated mock type for the ZKEVMClientGlobalExitRootGetter type
func NewZKEVMClientGlobalExitRootGetter ¶
func NewZKEVMClientGlobalExitRootGetter(t interface { mock.TestingT Cleanup(func()) }) *ZKEVMClientGlobalExitRootGetter
NewZKEVMClientGlobalExitRootGetter creates a new instance of ZKEVMClientGlobalExitRootGetter. 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 (*ZKEVMClientGlobalExitRootGetter) EXPECT ¶
func (_m *ZKEVMClientGlobalExitRootGetter) EXPECT() *ZKEVMClientGlobalExitRootGetter_Expecter
func (*ZKEVMClientGlobalExitRootGetter) ExitRootsByGER ¶
func (_m *ZKEVMClientGlobalExitRootGetter) ExitRootsByGER(ctx context.Context, globalExitRoot common.Hash) (*types.ExitRoots, error)
ExitRootsByGER provides a mock function with given fields: ctx, globalExitRoot
type ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call ¶
ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExitRootsByGER'
func (*ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Return ¶
func (_c *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Return(_a0 *types.ExitRoots, _a1 error) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
func (*ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Run ¶
func (_c *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Run(run func(ctx context.Context, globalExitRoot common.Hash)) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
func (*ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) RunAndReturn ¶
func (_c *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.ExitRoots, error)) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
type ZKEVMClientGlobalExitRootGetter_Expecter ¶
type ZKEVMClientGlobalExitRootGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*ZKEVMClientGlobalExitRootGetter_Expecter) ExitRootsByGER ¶
func (_e *ZKEVMClientGlobalExitRootGetter_Expecter) ExitRootsByGER(ctx interface{}, globalExitRoot interface{}) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call
ExitRootsByGER is a helper method to define mock.On call
- ctx context.Context
- globalExitRoot common.Hash
type ZKEVMClientInterface ¶
ZKEVMClientInterface is an autogenerated mock type for the ZKEVMClientInterface type
func NewZKEVMClientInterface ¶
func NewZKEVMClientInterface(t interface { mock.TestingT Cleanup(func()) }) *ZKEVMClientInterface
NewZKEVMClientInterface creates a new instance of ZKEVMClientInterface. 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 (*ZKEVMClientInterface) BatchByNumber ¶
func (_m *ZKEVMClientInterface) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)
BatchByNumber provides a mock function with given fields: ctx, number
func (*ZKEVMClientInterface) BatchNumber ¶
func (_m *ZKEVMClientInterface) BatchNumber(ctx context.Context) (uint64, error)
BatchNumber provides a mock function with given fields: ctx
func (*ZKEVMClientInterface) EXPECT ¶
func (_m *ZKEVMClientInterface) EXPECT() *ZKEVMClientInterface_Expecter
func (*ZKEVMClientInterface) ExitRootsByGER ¶
func (_m *ZKEVMClientInterface) ExitRootsByGER(ctx context.Context, globalExitRoot common.Hash) (*types.ExitRoots, error)
ExitRootsByGER provides a mock function with given fields: ctx, globalExitRoot
type ZKEVMClientInterface_BatchByNumber_Call ¶
ZKEVMClientInterface_BatchByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchByNumber'
func (*ZKEVMClientInterface_BatchByNumber_Call) Return ¶
func (_c *ZKEVMClientInterface_BatchByNumber_Call) Return(_a0 *types.Batch, _a1 error) *ZKEVMClientInterface_BatchByNumber_Call
func (*ZKEVMClientInterface_BatchByNumber_Call) Run ¶
func (_c *ZKEVMClientInterface_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZKEVMClientInterface_BatchByNumber_Call
func (*ZKEVMClientInterface_BatchByNumber_Call) RunAndReturn ¶
func (_c *ZKEVMClientInterface_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZKEVMClientInterface_BatchByNumber_Call
type ZKEVMClientInterface_BatchNumber_Call ¶
ZKEVMClientInterface_BatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchNumber'
func (*ZKEVMClientInterface_BatchNumber_Call) Return ¶
func (_c *ZKEVMClientInterface_BatchNumber_Call) Return(_a0 uint64, _a1 error) *ZKEVMClientInterface_BatchNumber_Call
func (*ZKEVMClientInterface_BatchNumber_Call) Run ¶
func (_c *ZKEVMClientInterface_BatchNumber_Call) Run(run func(ctx context.Context)) *ZKEVMClientInterface_BatchNumber_Call
func (*ZKEVMClientInterface_BatchNumber_Call) RunAndReturn ¶
func (_c *ZKEVMClientInterface_BatchNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *ZKEVMClientInterface_BatchNumber_Call
type ZKEVMClientInterface_ExitRootsByGER_Call ¶
ZKEVMClientInterface_ExitRootsByGER_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExitRootsByGER'
func (*ZKEVMClientInterface_ExitRootsByGER_Call) Return ¶
func (_c *ZKEVMClientInterface_ExitRootsByGER_Call) Return(_a0 *types.ExitRoots, _a1 error) *ZKEVMClientInterface_ExitRootsByGER_Call
func (*ZKEVMClientInterface_ExitRootsByGER_Call) Run ¶
func (_c *ZKEVMClientInterface_ExitRootsByGER_Call) Run(run func(ctx context.Context, globalExitRoot common.Hash)) *ZKEVMClientInterface_ExitRootsByGER_Call
func (*ZKEVMClientInterface_ExitRootsByGER_Call) RunAndReturn ¶
func (_c *ZKEVMClientInterface_ExitRootsByGER_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.ExitRoots, error)) *ZKEVMClientInterface_ExitRootsByGER_Call
type ZKEVMClientInterface_Expecter ¶
type ZKEVMClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ZKEVMClientInterface_Expecter) BatchByNumber ¶
func (_e *ZKEVMClientInterface_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZKEVMClientInterface_BatchByNumber_Call
BatchByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*ZKEVMClientInterface_Expecter) BatchNumber ¶
func (_e *ZKEVMClientInterface_Expecter) BatchNumber(ctx interface{}) *ZKEVMClientInterface_BatchNumber_Call
BatchNumber is a helper method to define mock.On call
- ctx context.Context
func (*ZKEVMClientInterface_Expecter) ExitRootsByGER ¶
func (_e *ZKEVMClientInterface_Expecter) ExitRootsByGER(ctx interface{}, globalExitRoot interface{}) *ZKEVMClientInterface_ExitRootsByGER_Call
ExitRootsByGER is a helper method to define mock.On call
- ctx context.Context
- globalExitRoot common.Hash
type ZKEVMClientTrustedBatchesGetter ¶
ZKEVMClientTrustedBatchesGetter is an autogenerated mock type for the ZKEVMClientTrustedBatchesGetter type
func NewZKEVMClientTrustedBatchesGetter ¶
func NewZKEVMClientTrustedBatchesGetter(t interface { mock.TestingT Cleanup(func()) }) *ZKEVMClientTrustedBatchesGetter
NewZKEVMClientTrustedBatchesGetter creates a new instance of ZKEVMClientTrustedBatchesGetter. 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 (*ZKEVMClientTrustedBatchesGetter) BatchByNumber ¶
func (_m *ZKEVMClientTrustedBatchesGetter) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)
BatchByNumber provides a mock function with given fields: ctx, number
func (*ZKEVMClientTrustedBatchesGetter) BatchNumber ¶
func (_m *ZKEVMClientTrustedBatchesGetter) BatchNumber(ctx context.Context) (uint64, error)
BatchNumber provides a mock function with given fields: ctx
func (*ZKEVMClientTrustedBatchesGetter) EXPECT ¶
func (_m *ZKEVMClientTrustedBatchesGetter) EXPECT() *ZKEVMClientTrustedBatchesGetter_Expecter
type ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call ¶
ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchByNumber'
func (*ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Return ¶
func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Return(_a0 *types.Batch, _a1 error) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
func (*ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Run ¶
func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
func (*ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) RunAndReturn ¶
func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
type ZKEVMClientTrustedBatchesGetter_BatchNumber_Call ¶
ZKEVMClientTrustedBatchesGetter_BatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchNumber'
func (*ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Return ¶
func (_c *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Return(_a0 uint64, _a1 error) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
func (*ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Run ¶
func (_c *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Run(run func(ctx context.Context)) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
func (*ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) RunAndReturn ¶
func (_c *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
type ZKEVMClientTrustedBatchesGetter_Expecter ¶
type ZKEVMClientTrustedBatchesGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*ZKEVMClientTrustedBatchesGetter_Expecter) BatchByNumber ¶
func (_e *ZKEVMClientTrustedBatchesGetter_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call
BatchByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
func (*ZKEVMClientTrustedBatchesGetter_Expecter) BatchNumber ¶
func (_e *ZKEVMClientTrustedBatchesGetter_Expecter) BatchNumber(ctx interface{}) *ZKEVMClientTrustedBatchesGetter_BatchNumber_Call
BatchNumber is a helper method to define mock.On call
- ctx context.Context
Source Files ¶
- etherman_get_latest_batch_number.go
- event_log_interface.go
- state_begin_transaction_interface.go
- state_get_batch_by_number_interface.go
- sync_trusted_state_executor.go
- synchronizer_flush_id_manager.go
- zkevm_client_global_exit_root_getter.go
- zkevm_client_interface.go
- zkevm_client_trusted_batches_getter.go