Documentation ¶
Index ¶
- type PreviousProcessor
- func (_m *PreviousProcessor) EXPECT() *PreviousProcessor_Expecter
- func (_m *PreviousProcessor) Process(ctx context.Context, order etherman.Order, l1Block *etherman.Block, ...) error
- func (_m *PreviousProcessor) ProcessSequenceBatches(ctx context.Context, sequencedBatches []etherman.SequencedBatch, ...) error
- type PreviousProcessor_Expecter
- func (_e *PreviousProcessor_Expecter) Process(ctx interface{}, order interface{}, l1Block interface{}, dbTx interface{}) *PreviousProcessor_Process_Call
- func (_e *PreviousProcessor_Expecter) ProcessSequenceBatches(ctx interface{}, sequencedBatches interface{}, blockNumber interface{}, ...) *PreviousProcessor_ProcessSequenceBatches_Call
- type PreviousProcessor_ProcessSequenceBatches_Call
- func (_c *PreviousProcessor_ProcessSequenceBatches_Call) Return(_a0 error) *PreviousProcessor_ProcessSequenceBatches_Call
- func (_c *PreviousProcessor_ProcessSequenceBatches_Call) Run(run func(ctx context.Context, sequencedBatches []etherman.SequencedBatch, ...)) *PreviousProcessor_ProcessSequenceBatches_Call
- func (_c *PreviousProcessor_ProcessSequenceBatches_Call) RunAndReturn(...) *PreviousProcessor_ProcessSequenceBatches_Call
- type PreviousProcessor_Process_Call
- func (_c *PreviousProcessor_Process_Call) Return(_a0 error) *PreviousProcessor_Process_Call
- func (_c *PreviousProcessor_Process_Call) Run(...) *PreviousProcessor_Process_Call
- func (_c *PreviousProcessor_Process_Call) RunAndReturn(run func(context.Context, etherman.Order, *etherman.Block, pgx.Tx) error) *PreviousProcessor_Process_Call
- type StateL1SequenceBatchesElderberry
- func (_m *StateL1SequenceBatchesElderberry) EXPECT() *StateL1SequenceBatchesElderberry_Expecter
- func (_m *StateL1SequenceBatchesElderberry) GetLastL2BlockByBatchNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.L2Block, error)
- func (_m *StateL1SequenceBatchesElderberry) GetLastVirtualBatchNum(ctx context.Context, dbTx pgx.Tx) (uint64, error)
- type StateL1SequenceBatchesElderberry_Expecter
- func (_e *StateL1SequenceBatchesElderberry_Expecter) GetLastL2BlockByBatchNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
- func (_e *StateL1SequenceBatchesElderberry_Expecter) GetLastVirtualBatchNum(ctx interface{}, dbTx interface{}) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
- type StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
- func (_c *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) Return(_a0 *state.L2Block, _a1 error) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
- func (_c *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
- func (_c *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.L2Block, error)) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
- type StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
- func (_c *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) Return(_a0 uint64, _a1 error) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
- func (_c *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
- func (_c *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) RunAndReturn(run func(context.Context, pgx.Tx) (uint64, error)) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreviousProcessor ¶
PreviousProcessor is an autogenerated mock type for the PreviousProcessor type
func NewPreviousProcessor ¶
func NewPreviousProcessor(t interface { mock.TestingT Cleanup(func()) }) *PreviousProcessor
NewPreviousProcessor creates a new instance of PreviousProcessor. 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 (*PreviousProcessor) EXPECT ¶
func (_m *PreviousProcessor) EXPECT() *PreviousProcessor_Expecter
func (*PreviousProcessor) Process ¶
func (_m *PreviousProcessor) Process(ctx context.Context, order etherman.Order, l1Block *etherman.Block, dbTx pgx.Tx) error
Process provides a mock function with given fields: ctx, order, l1Block, dbTx
func (*PreviousProcessor) ProcessSequenceBatches ¶
func (_m *PreviousProcessor) ProcessSequenceBatches(ctx context.Context, sequencedBatches []etherman.SequencedBatch, blockNumber uint64, l1BlockTimestamp time.Time, dbTx pgx.Tx) error
ProcessSequenceBatches provides a mock function with given fields: ctx, sequencedBatches, blockNumber, l1BlockTimestamp, dbTx
type PreviousProcessor_Expecter ¶
type PreviousProcessor_Expecter struct {
// contains filtered or unexported fields
}
func (*PreviousProcessor_Expecter) Process ¶
func (_e *PreviousProcessor_Expecter) Process(ctx interface{}, order interface{}, l1Block interface{}, dbTx interface{}) *PreviousProcessor_Process_Call
Process is a helper method to define mock.On call
- ctx context.Context
- order etherman.Order
- l1Block *etherman.Block
- dbTx pgx.Tx
func (*PreviousProcessor_Expecter) ProcessSequenceBatches ¶
func (_e *PreviousProcessor_Expecter) ProcessSequenceBatches(ctx interface{}, sequencedBatches interface{}, blockNumber interface{}, l1BlockTimestamp interface{}, dbTx interface{}) *PreviousProcessor_ProcessSequenceBatches_Call
ProcessSequenceBatches is a helper method to define mock.On call
- ctx context.Context
- sequencedBatches []etherman.SequencedBatch
- blockNumber uint64
- l1BlockTimestamp time.Time
- dbTx pgx.Tx
type PreviousProcessor_ProcessSequenceBatches_Call ¶
PreviousProcessor_ProcessSequenceBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessSequenceBatches'
func (*PreviousProcessor_ProcessSequenceBatches_Call) Return ¶
func (_c *PreviousProcessor_ProcessSequenceBatches_Call) Return(_a0 error) *PreviousProcessor_ProcessSequenceBatches_Call
func (*PreviousProcessor_ProcessSequenceBatches_Call) Run ¶
func (_c *PreviousProcessor_ProcessSequenceBatches_Call) Run(run func(ctx context.Context, sequencedBatches []etherman.SequencedBatch, blockNumber uint64, l1BlockTimestamp time.Time, dbTx pgx.Tx)) *PreviousProcessor_ProcessSequenceBatches_Call
func (*PreviousProcessor_ProcessSequenceBatches_Call) RunAndReturn ¶
func (_c *PreviousProcessor_ProcessSequenceBatches_Call) RunAndReturn(run func(context.Context, []etherman.SequencedBatch, uint64, time.Time, pgx.Tx) error) *PreviousProcessor_ProcessSequenceBatches_Call
type PreviousProcessor_Process_Call ¶
PreviousProcessor_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*PreviousProcessor_Process_Call) Return ¶
func (_c *PreviousProcessor_Process_Call) Return(_a0 error) *PreviousProcessor_Process_Call
func (*PreviousProcessor_Process_Call) Run ¶
func (_c *PreviousProcessor_Process_Call) Run(run func(ctx context.Context, order etherman.Order, l1Block *etherman.Block, dbTx pgx.Tx)) *PreviousProcessor_Process_Call
func (*PreviousProcessor_Process_Call) RunAndReturn ¶
type StateL1SequenceBatchesElderberry ¶
StateL1SequenceBatchesElderberry is an autogenerated mock type for the StateL1SequenceBatchesElderberry type
func NewStateL1SequenceBatchesElderberry ¶
func NewStateL1SequenceBatchesElderberry(t interface { mock.TestingT Cleanup(func()) }) *StateL1SequenceBatchesElderberry
NewStateL1SequenceBatchesElderberry creates a new instance of StateL1SequenceBatchesElderberry. 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 (*StateL1SequenceBatchesElderberry) EXPECT ¶
func (_m *StateL1SequenceBatchesElderberry) EXPECT() *StateL1SequenceBatchesElderberry_Expecter
func (*StateL1SequenceBatchesElderberry) GetLastL2BlockByBatchNumber ¶
func (_m *StateL1SequenceBatchesElderberry) GetLastL2BlockByBatchNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.L2Block, error)
GetLastL2BlockByBatchNumber provides a mock function with given fields: ctx, batchNumber, dbTx
func (*StateL1SequenceBatchesElderberry) GetLastVirtualBatchNum ¶
func (_m *StateL1SequenceBatchesElderberry) GetLastVirtualBatchNum(ctx context.Context, dbTx pgx.Tx) (uint64, error)
GetLastVirtualBatchNum provides a mock function with given fields: ctx, dbTx
type StateL1SequenceBatchesElderberry_Expecter ¶
type StateL1SequenceBatchesElderberry_Expecter struct {
// contains filtered or unexported fields
}
func (*StateL1SequenceBatchesElderberry_Expecter) GetLastL2BlockByBatchNumber ¶
func (_e *StateL1SequenceBatchesElderberry_Expecter) GetLastL2BlockByBatchNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
GetLastL2BlockByBatchNumber is a helper method to define mock.On call
- ctx context.Context
- batchNumber uint64
- dbTx pgx.Tx
func (*StateL1SequenceBatchesElderberry_Expecter) GetLastVirtualBatchNum ¶
func (_e *StateL1SequenceBatchesElderberry_Expecter) GetLastVirtualBatchNum(ctx interface{}, dbTx interface{}) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
GetLastVirtualBatchNum is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
type StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call ¶
StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastL2BlockByBatchNumber'
func (*StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) Run ¶
func (_c *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
func (*StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) RunAndReturn ¶
func (_c *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.L2Block, error)) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call
type StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call ¶
StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastVirtualBatchNum'
func (*StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) Run ¶
func (_c *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call
func (*StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) RunAndReturn ¶
func (_c *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) RunAndReturn(run func(context.Context, pgx.Tx) (uint64, error)) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call