Documentation ¶
Index ¶
- type StateGERInteface
- type StateGERInteface_Expecter
- type StateGERInteface_GetExitRootByGlobalExitRoot_Call
- func (_c *StateGERInteface_GetExitRootByGlobalExitRoot_Call) Return(_a0 *state.GlobalExitRoot, _a1 error) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
- func (_c *StateGERInteface_GetExitRootByGlobalExitRoot_Call) Run(run func(ctx context.Context, ger common.Hash, dbTx pgx.Tx)) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
- func (_c *StateGERInteface_GetExitRootByGlobalExitRoot_Call) RunAndReturn(run func(context.Context, common.Hash, pgx.Tx) (*state.GlobalExitRoot, error)) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
- type StateGERInteface_GetLastBlock_Call
- func (_c *StateGERInteface_GetLastBlock_Call) Return(_a0 *state.Block, _a1 error) *StateGERInteface_GetLastBlock_Call
- func (_c *StateGERInteface_GetLastBlock_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StateGERInteface_GetLastBlock_Call
- func (_c *StateGERInteface_GetLastBlock_Call) RunAndReturn(run func(context.Context, pgx.Tx) (*state.Block, error)) *StateGERInteface_GetLastBlock_Call
- type StateInterface
- func (_m *StateInterface) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)
- func (_m *StateInterface) CloseBatch(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx) error
- func (_m *StateInterface) EXPECT() *StateInterface_Expecter
- func (_m *StateInterface) GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
- func (_m *StateInterface) GetForkIDByBatchNumber(batchNumber uint64) uint64
- func (_m *StateInterface) GetL1InfoTreeDataFromBatchL2Data(ctx context.Context, batchL2Data []byte, dbTx pgx.Tx) (map[uint32]state.L1DataV2, common.Hash, common.Hash, error)
- func (_m *StateInterface) GetLastVirtualBatchNum(ctx context.Context, dbTx pgx.Tx) (uint64, error)
- func (_m *StateInterface) OpenBatch(ctx context.Context, processingContext state.ProcessingContext, dbTx pgx.Tx) error
- func (_m *StateInterface) ProcessBatchV2(ctx context.Context, request state.ProcessRequest, updateMerkleTree bool) (*state.ProcessBatchResponse, string, error)
- func (_m *StateInterface) ResetTrustedState(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) error
- func (_m *StateInterface) StoreL2Block(ctx context.Context, batchNumber uint64, l2Block *state.ProcessBlockResponse, ...) (common.Hash, error)
- func (_m *StateInterface) UpdateWIPBatch(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx) error
- type StateInterface_BeginStateTransaction_Call
- func (_c *StateInterface_BeginStateTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StateInterface_BeginStateTransaction_Call
- func (_c *StateInterface_BeginStateTransaction_Call) Run(run func(ctx context.Context)) *StateInterface_BeginStateTransaction_Call
- func (_c *StateInterface_BeginStateTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StateInterface_BeginStateTransaction_Call
- type StateInterface_CloseBatch_Call
- func (_c *StateInterface_CloseBatch_Call) Return(_a0 error) *StateInterface_CloseBatch_Call
- func (_c *StateInterface_CloseBatch_Call) Run(run func(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx)) *StateInterface_CloseBatch_Call
- func (_c *StateInterface_CloseBatch_Call) RunAndReturn(run func(context.Context, state.ProcessingReceipt, pgx.Tx) error) *StateInterface_CloseBatch_Call
- type StateInterface_Expecter
- func (_e *StateInterface_Expecter) BeginStateTransaction(ctx interface{}) *StateInterface_BeginStateTransaction_Call
- func (_e *StateInterface_Expecter) CloseBatch(ctx interface{}, receipt interface{}, dbTx interface{}) *StateInterface_CloseBatch_Call
- func (_e *StateInterface_Expecter) GetBatchByNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateInterface_GetBatchByNumber_Call
- func (_e *StateInterface_Expecter) GetForkIDByBatchNumber(batchNumber interface{}) *StateInterface_GetForkIDByBatchNumber_Call
- func (_e *StateInterface_Expecter) GetL1InfoTreeDataFromBatchL2Data(ctx interface{}, batchL2Data interface{}, dbTx interface{}) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
- func (_e *StateInterface_Expecter) GetLastVirtualBatchNum(ctx interface{}, dbTx interface{}) *StateInterface_GetLastVirtualBatchNum_Call
- func (_e *StateInterface_Expecter) OpenBatch(ctx interface{}, processingContext interface{}, dbTx interface{}) *StateInterface_OpenBatch_Call
- func (_e *StateInterface_Expecter) ProcessBatchV2(ctx interface{}, request interface{}, updateMerkleTree interface{}) *StateInterface_ProcessBatchV2_Call
- func (_e *StateInterface_Expecter) ResetTrustedState(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateInterface_ResetTrustedState_Call
- func (_e *StateInterface_Expecter) StoreL2Block(ctx interface{}, batchNumber interface{}, l2Block interface{}, ...) *StateInterface_StoreL2Block_Call
- func (_e *StateInterface_Expecter) UpdateWIPBatch(ctx interface{}, receipt interface{}, dbTx interface{}) *StateInterface_UpdateWIPBatch_Call
- type StateInterface_GetBatchByNumber_Call
- func (_c *StateInterface_GetBatchByNumber_Call) Return(_a0 *state.Batch, _a1 error) *StateInterface_GetBatchByNumber_Call
- func (_c *StateInterface_GetBatchByNumber_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateInterface_GetBatchByNumber_Call
- func (_c *StateInterface_GetBatchByNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Batch, error)) *StateInterface_GetBatchByNumber_Call
- type StateInterface_GetForkIDByBatchNumber_Call
- func (_c *StateInterface_GetForkIDByBatchNumber_Call) Return(_a0 uint64) *StateInterface_GetForkIDByBatchNumber_Call
- func (_c *StateInterface_GetForkIDByBatchNumber_Call) Run(run func(batchNumber uint64)) *StateInterface_GetForkIDByBatchNumber_Call
- func (_c *StateInterface_GetForkIDByBatchNumber_Call) RunAndReturn(run func(uint64) uint64) *StateInterface_GetForkIDByBatchNumber_Call
- type StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
- func (_c *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Return(_a0 map[uint32]state.L1DataV2, _a1 common.Hash, _a2 common.Hash, _a3 error) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
- func (_c *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Run(run func(ctx context.Context, batchL2Data []byte, dbTx pgx.Tx)) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
- func (_c *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) RunAndReturn(...) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
- type StateInterface_GetLastVirtualBatchNum_Call
- func (_c *StateInterface_GetLastVirtualBatchNum_Call) Return(_a0 uint64, _a1 error) *StateInterface_GetLastVirtualBatchNum_Call
- func (_c *StateInterface_GetLastVirtualBatchNum_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StateInterface_GetLastVirtualBatchNum_Call
- func (_c *StateInterface_GetLastVirtualBatchNum_Call) RunAndReturn(run func(context.Context, pgx.Tx) (uint64, error)) *StateInterface_GetLastVirtualBatchNum_Call
- type StateInterface_OpenBatch_Call
- func (_c *StateInterface_OpenBatch_Call) Return(_a0 error) *StateInterface_OpenBatch_Call
- func (_c *StateInterface_OpenBatch_Call) Run(...) *StateInterface_OpenBatch_Call
- func (_c *StateInterface_OpenBatch_Call) RunAndReturn(run func(context.Context, state.ProcessingContext, pgx.Tx) error) *StateInterface_OpenBatch_Call
- type StateInterface_ProcessBatchV2_Call
- func (_c *StateInterface_ProcessBatchV2_Call) Return(_a0 *state.ProcessBatchResponse, _a1 string, _a2 error) *StateInterface_ProcessBatchV2_Call
- func (_c *StateInterface_ProcessBatchV2_Call) Run(...) *StateInterface_ProcessBatchV2_Call
- func (_c *StateInterface_ProcessBatchV2_Call) RunAndReturn(...) *StateInterface_ProcessBatchV2_Call
- type StateInterface_ResetTrustedState_Call
- func (_c *StateInterface_ResetTrustedState_Call) Return(_a0 error) *StateInterface_ResetTrustedState_Call
- func (_c *StateInterface_ResetTrustedState_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateInterface_ResetTrustedState_Call
- func (_c *StateInterface_ResetTrustedState_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) error) *StateInterface_ResetTrustedState_Call
- type StateInterface_StoreL2Block_Call
- type StateInterface_UpdateWIPBatch_Call
- func (_c *StateInterface_UpdateWIPBatch_Call) Return(_a0 error) *StateInterface_UpdateWIPBatch_Call
- func (_c *StateInterface_UpdateWIPBatch_Call) Run(run func(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx)) *StateInterface_UpdateWIPBatch_Call
- func (_c *StateInterface_UpdateWIPBatch_Call) RunAndReturn(run func(context.Context, state.ProcessingReceipt, pgx.Tx) error) *StateInterface_UpdateWIPBatch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateGERInteface ¶
StateGERInteface is an autogenerated mock type for the StateGERInteface type
func NewStateGERInteface ¶
func NewStateGERInteface(t interface { mock.TestingT Cleanup(func()) }) *StateGERInteface
NewStateGERInteface creates a new instance of StateGERInteface. 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 (*StateGERInteface) EXPECT ¶
func (_m *StateGERInteface) EXPECT() *StateGERInteface_Expecter
func (*StateGERInteface) GetExitRootByGlobalExitRoot ¶
func (_m *StateGERInteface) GetExitRootByGlobalExitRoot(ctx context.Context, ger common.Hash, dbTx pgx.Tx) (*state.GlobalExitRoot, error)
GetExitRootByGlobalExitRoot provides a mock function with given fields: ctx, ger, dbTx
func (*StateGERInteface) GetLastBlock ¶
GetLastBlock provides a mock function with given fields: ctx, dbTx
type StateGERInteface_Expecter ¶
type StateGERInteface_Expecter struct {
// contains filtered or unexported fields
}
func (*StateGERInteface_Expecter) GetExitRootByGlobalExitRoot ¶
func (_e *StateGERInteface_Expecter) GetExitRootByGlobalExitRoot(ctx interface{}, ger interface{}, dbTx interface{}) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
GetExitRootByGlobalExitRoot is a helper method to define mock.On call
- ctx context.Context
- ger common.Hash
- dbTx pgx.Tx
func (*StateGERInteface_Expecter) GetLastBlock ¶
func (_e *StateGERInteface_Expecter) GetLastBlock(ctx interface{}, dbTx interface{}) *StateGERInteface_GetLastBlock_Call
GetLastBlock is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
type StateGERInteface_GetExitRootByGlobalExitRoot_Call ¶
StateGERInteface_GetExitRootByGlobalExitRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExitRootByGlobalExitRoot'
func (*StateGERInteface_GetExitRootByGlobalExitRoot_Call) Return ¶
func (_c *StateGERInteface_GetExitRootByGlobalExitRoot_Call) Return(_a0 *state.GlobalExitRoot, _a1 error) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
func (*StateGERInteface_GetExitRootByGlobalExitRoot_Call) Run ¶
func (_c *StateGERInteface_GetExitRootByGlobalExitRoot_Call) Run(run func(ctx context.Context, ger common.Hash, dbTx pgx.Tx)) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
func (*StateGERInteface_GetExitRootByGlobalExitRoot_Call) RunAndReturn ¶
func (_c *StateGERInteface_GetExitRootByGlobalExitRoot_Call) RunAndReturn(run func(context.Context, common.Hash, pgx.Tx) (*state.GlobalExitRoot, error)) *StateGERInteface_GetExitRootByGlobalExitRoot_Call
type StateGERInteface_GetLastBlock_Call ¶
StateGERInteface_GetLastBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastBlock'
func (*StateGERInteface_GetLastBlock_Call) Return ¶
func (_c *StateGERInteface_GetLastBlock_Call) Return(_a0 *state.Block, _a1 error) *StateGERInteface_GetLastBlock_Call
func (*StateGERInteface_GetLastBlock_Call) Run ¶
func (_c *StateGERInteface_GetLastBlock_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StateGERInteface_GetLastBlock_Call
func (*StateGERInteface_GetLastBlock_Call) RunAndReturn ¶
func (_c *StateGERInteface_GetLastBlock_Call) RunAndReturn(run func(context.Context, pgx.Tx) (*state.Block, error)) *StateGERInteface_GetLastBlock_Call
type StateInterface ¶
StateInterface is an autogenerated mock type for the StateInterface type
func NewStateInterface ¶
func NewStateInterface(t interface { mock.TestingT Cleanup(func()) }) *StateInterface
NewStateInterface creates a new instance of StateInterface. 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 (*StateInterface) BeginStateTransaction ¶
BeginStateTransaction provides a mock function with given fields: ctx
func (*StateInterface) CloseBatch ¶
func (_m *StateInterface) CloseBatch(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx) error
CloseBatch provides a mock function with given fields: ctx, receipt, dbTx
func (*StateInterface) EXPECT ¶
func (_m *StateInterface) EXPECT() *StateInterface_Expecter
func (*StateInterface) GetBatchByNumber ¶
func (_m *StateInterface) GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
GetBatchByNumber provides a mock function with given fields: ctx, batchNumber, dbTx
func (*StateInterface) GetForkIDByBatchNumber ¶
func (_m *StateInterface) GetForkIDByBatchNumber(batchNumber uint64) uint64
GetForkIDByBatchNumber provides a mock function with given fields: batchNumber
func (*StateInterface) GetL1InfoTreeDataFromBatchL2Data ¶
func (_m *StateInterface) GetL1InfoTreeDataFromBatchL2Data(ctx context.Context, batchL2Data []byte, dbTx pgx.Tx) (map[uint32]state.L1DataV2, common.Hash, common.Hash, error)
GetL1InfoTreeDataFromBatchL2Data provides a mock function with given fields: ctx, batchL2Data, dbTx
func (*StateInterface) GetLastVirtualBatchNum ¶ added in v0.6.1
GetLastVirtualBatchNum provides a mock function with given fields: ctx, dbTx
func (*StateInterface) OpenBatch ¶
func (_m *StateInterface) OpenBatch(ctx context.Context, processingContext state.ProcessingContext, dbTx pgx.Tx) error
OpenBatch provides a mock function with given fields: ctx, processingContext, dbTx
func (*StateInterface) ProcessBatchV2 ¶
func (_m *StateInterface) ProcessBatchV2(ctx context.Context, request state.ProcessRequest, updateMerkleTree bool) (*state.ProcessBatchResponse, string, error)
ProcessBatchV2 provides a mock function with given fields: ctx, request, updateMerkleTree
func (*StateInterface) ResetTrustedState ¶
func (_m *StateInterface) ResetTrustedState(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) error
ResetTrustedState provides a mock function with given fields: ctx, batchNumber, dbTx
func (*StateInterface) StoreL2Block ¶
func (_m *StateInterface) StoreL2Block(ctx context.Context, batchNumber uint64, l2Block *state.ProcessBlockResponse, txsEGPLog []*state.EffectiveGasPriceLog, dbTx pgx.Tx) (common.Hash, error)
StoreL2Block provides a mock function with given fields: ctx, batchNumber, l2Block, txsEGPLog, dbTx
func (*StateInterface) UpdateWIPBatch ¶
func (_m *StateInterface) UpdateWIPBatch(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx) error
UpdateWIPBatch provides a mock function with given fields: ctx, receipt, dbTx
type StateInterface_BeginStateTransaction_Call ¶
StateInterface_BeginStateTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginStateTransaction'
func (*StateInterface_BeginStateTransaction_Call) Return ¶
func (_c *StateInterface_BeginStateTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StateInterface_BeginStateTransaction_Call
func (*StateInterface_BeginStateTransaction_Call) Run ¶
func (_c *StateInterface_BeginStateTransaction_Call) Run(run func(ctx context.Context)) *StateInterface_BeginStateTransaction_Call
func (*StateInterface_BeginStateTransaction_Call) RunAndReturn ¶
func (_c *StateInterface_BeginStateTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StateInterface_BeginStateTransaction_Call
type StateInterface_CloseBatch_Call ¶
StateInterface_CloseBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseBatch'
func (*StateInterface_CloseBatch_Call) Return ¶
func (_c *StateInterface_CloseBatch_Call) Return(_a0 error) *StateInterface_CloseBatch_Call
func (*StateInterface_CloseBatch_Call) Run ¶
func (_c *StateInterface_CloseBatch_Call) Run(run func(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx)) *StateInterface_CloseBatch_Call
func (*StateInterface_CloseBatch_Call) RunAndReturn ¶
func (_c *StateInterface_CloseBatch_Call) RunAndReturn(run func(context.Context, state.ProcessingReceipt, pgx.Tx) error) *StateInterface_CloseBatch_Call
type StateInterface_Expecter ¶
type StateInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*StateInterface_Expecter) BeginStateTransaction ¶
func (_e *StateInterface_Expecter) BeginStateTransaction(ctx interface{}) *StateInterface_BeginStateTransaction_Call
BeginStateTransaction is a helper method to define mock.On call
- ctx context.Context
func (*StateInterface_Expecter) CloseBatch ¶
func (_e *StateInterface_Expecter) CloseBatch(ctx interface{}, receipt interface{}, dbTx interface{}) *StateInterface_CloseBatch_Call
CloseBatch is a helper method to define mock.On call
- ctx context.Context
- receipt state.ProcessingReceipt
- dbTx pgx.Tx
func (*StateInterface_Expecter) GetBatchByNumber ¶
func (_e *StateInterface_Expecter) GetBatchByNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateInterface_GetBatchByNumber_Call
GetBatchByNumber is a helper method to define mock.On call
- ctx context.Context
- batchNumber uint64
- dbTx pgx.Tx
func (*StateInterface_Expecter) GetForkIDByBatchNumber ¶
func (_e *StateInterface_Expecter) GetForkIDByBatchNumber(batchNumber interface{}) *StateInterface_GetForkIDByBatchNumber_Call
GetForkIDByBatchNumber is a helper method to define mock.On call
- batchNumber uint64
func (*StateInterface_Expecter) GetL1InfoTreeDataFromBatchL2Data ¶
func (_e *StateInterface_Expecter) GetL1InfoTreeDataFromBatchL2Data(ctx interface{}, batchL2Data interface{}, dbTx interface{}) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
GetL1InfoTreeDataFromBatchL2Data is a helper method to define mock.On call
- ctx context.Context
- batchL2Data []byte
- dbTx pgx.Tx
func (*StateInterface_Expecter) GetLastVirtualBatchNum ¶ added in v0.6.1
func (_e *StateInterface_Expecter) GetLastVirtualBatchNum(ctx interface{}, dbTx interface{}) *StateInterface_GetLastVirtualBatchNum_Call
GetLastVirtualBatchNum is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
func (*StateInterface_Expecter) OpenBatch ¶
func (_e *StateInterface_Expecter) OpenBatch(ctx interface{}, processingContext interface{}, dbTx interface{}) *StateInterface_OpenBatch_Call
OpenBatch is a helper method to define mock.On call
- ctx context.Context
- processingContext state.ProcessingContext
- dbTx pgx.Tx
func (*StateInterface_Expecter) ProcessBatchV2 ¶
func (_e *StateInterface_Expecter) ProcessBatchV2(ctx interface{}, request interface{}, updateMerkleTree interface{}) *StateInterface_ProcessBatchV2_Call
ProcessBatchV2 is a helper method to define mock.On call
- ctx context.Context
- request state.ProcessRequest
- updateMerkleTree bool
func (*StateInterface_Expecter) ResetTrustedState ¶
func (_e *StateInterface_Expecter) ResetTrustedState(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateInterface_ResetTrustedState_Call
ResetTrustedState is a helper method to define mock.On call
- ctx context.Context
- batchNumber uint64
- dbTx pgx.Tx
func (*StateInterface_Expecter) StoreL2Block ¶
func (_e *StateInterface_Expecter) StoreL2Block(ctx interface{}, batchNumber interface{}, l2Block interface{}, txsEGPLog interface{}, dbTx interface{}) *StateInterface_StoreL2Block_Call
StoreL2Block is a helper method to define mock.On call
- ctx context.Context
- batchNumber uint64
- l2Block *state.ProcessBlockResponse
- txsEGPLog []*state.EffectiveGasPriceLog
- dbTx pgx.Tx
func (*StateInterface_Expecter) UpdateWIPBatch ¶
func (_e *StateInterface_Expecter) UpdateWIPBatch(ctx interface{}, receipt interface{}, dbTx interface{}) *StateInterface_UpdateWIPBatch_Call
UpdateWIPBatch is a helper method to define mock.On call
- ctx context.Context
- receipt state.ProcessingReceipt
- dbTx pgx.Tx
type StateInterface_GetBatchByNumber_Call ¶
StateInterface_GetBatchByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBatchByNumber'
func (*StateInterface_GetBatchByNumber_Call) Return ¶
func (_c *StateInterface_GetBatchByNumber_Call) Return(_a0 *state.Batch, _a1 error) *StateInterface_GetBatchByNumber_Call
func (*StateInterface_GetBatchByNumber_Call) Run ¶
func (_c *StateInterface_GetBatchByNumber_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateInterface_GetBatchByNumber_Call
func (*StateInterface_GetBatchByNumber_Call) RunAndReturn ¶
func (_c *StateInterface_GetBatchByNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Batch, error)) *StateInterface_GetBatchByNumber_Call
type StateInterface_GetForkIDByBatchNumber_Call ¶
StateInterface_GetForkIDByBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetForkIDByBatchNumber'
func (*StateInterface_GetForkIDByBatchNumber_Call) Return ¶
func (_c *StateInterface_GetForkIDByBatchNumber_Call) Return(_a0 uint64) *StateInterface_GetForkIDByBatchNumber_Call
func (*StateInterface_GetForkIDByBatchNumber_Call) Run ¶
func (_c *StateInterface_GetForkIDByBatchNumber_Call) Run(run func(batchNumber uint64)) *StateInterface_GetForkIDByBatchNumber_Call
func (*StateInterface_GetForkIDByBatchNumber_Call) RunAndReturn ¶
func (_c *StateInterface_GetForkIDByBatchNumber_Call) RunAndReturn(run func(uint64) uint64) *StateInterface_GetForkIDByBatchNumber_Call
type StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call ¶
StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetL1InfoTreeDataFromBatchL2Data'
func (*StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Return ¶
func (_c *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Return(_a0 map[uint32]state.L1DataV2, _a1 common.Hash, _a2 common.Hash, _a3 error) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
func (*StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Run ¶
func (_c *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Run(run func(ctx context.Context, batchL2Data []byte, dbTx pgx.Tx)) *StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call
func (*StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) RunAndReturn ¶
type StateInterface_GetLastVirtualBatchNum_Call ¶ added in v0.6.1
StateInterface_GetLastVirtualBatchNum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastVirtualBatchNum'
func (*StateInterface_GetLastVirtualBatchNum_Call) Return ¶ added in v0.6.1
func (_c *StateInterface_GetLastVirtualBatchNum_Call) Return(_a0 uint64, _a1 error) *StateInterface_GetLastVirtualBatchNum_Call
func (*StateInterface_GetLastVirtualBatchNum_Call) Run ¶ added in v0.6.1
func (_c *StateInterface_GetLastVirtualBatchNum_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StateInterface_GetLastVirtualBatchNum_Call
func (*StateInterface_GetLastVirtualBatchNum_Call) RunAndReturn ¶ added in v0.6.1
func (_c *StateInterface_GetLastVirtualBatchNum_Call) RunAndReturn(run func(context.Context, pgx.Tx) (uint64, error)) *StateInterface_GetLastVirtualBatchNum_Call
type StateInterface_OpenBatch_Call ¶
StateInterface_OpenBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenBatch'
func (*StateInterface_OpenBatch_Call) Return ¶
func (_c *StateInterface_OpenBatch_Call) Return(_a0 error) *StateInterface_OpenBatch_Call
func (*StateInterface_OpenBatch_Call) Run ¶
func (_c *StateInterface_OpenBatch_Call) Run(run func(ctx context.Context, processingContext state.ProcessingContext, dbTx pgx.Tx)) *StateInterface_OpenBatch_Call
func (*StateInterface_OpenBatch_Call) RunAndReturn ¶
func (_c *StateInterface_OpenBatch_Call) RunAndReturn(run func(context.Context, state.ProcessingContext, pgx.Tx) error) *StateInterface_OpenBatch_Call
type StateInterface_ProcessBatchV2_Call ¶
StateInterface_ProcessBatchV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessBatchV2'
func (*StateInterface_ProcessBatchV2_Call) Return ¶
func (_c *StateInterface_ProcessBatchV2_Call) Return(_a0 *state.ProcessBatchResponse, _a1 string, _a2 error) *StateInterface_ProcessBatchV2_Call
func (*StateInterface_ProcessBatchV2_Call) Run ¶
func (_c *StateInterface_ProcessBatchV2_Call) Run(run func(ctx context.Context, request state.ProcessRequest, updateMerkleTree bool)) *StateInterface_ProcessBatchV2_Call
func (*StateInterface_ProcessBatchV2_Call) RunAndReturn ¶
func (_c *StateInterface_ProcessBatchV2_Call) RunAndReturn(run func(context.Context, state.ProcessRequest, bool) (*state.ProcessBatchResponse, string, error)) *StateInterface_ProcessBatchV2_Call
type StateInterface_ResetTrustedState_Call ¶
StateInterface_ResetTrustedState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetTrustedState'
func (*StateInterface_ResetTrustedState_Call) Return ¶
func (_c *StateInterface_ResetTrustedState_Call) Return(_a0 error) *StateInterface_ResetTrustedState_Call
func (*StateInterface_ResetTrustedState_Call) Run ¶
func (_c *StateInterface_ResetTrustedState_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx pgx.Tx)) *StateInterface_ResetTrustedState_Call
func (*StateInterface_ResetTrustedState_Call) RunAndReturn ¶
func (_c *StateInterface_ResetTrustedState_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) error) *StateInterface_ResetTrustedState_Call
type StateInterface_StoreL2Block_Call ¶
StateInterface_StoreL2Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreL2Block'
func (*StateInterface_StoreL2Block_Call) Return ¶
func (_c *StateInterface_StoreL2Block_Call) Return(_a0 common.Hash, _a1 error) *StateInterface_StoreL2Block_Call
func (*StateInterface_StoreL2Block_Call) Run ¶
func (_c *StateInterface_StoreL2Block_Call) Run(run func(ctx context.Context, batchNumber uint64, l2Block *state.ProcessBlockResponse, txsEGPLog []*state.EffectiveGasPriceLog, dbTx pgx.Tx)) *StateInterface_StoreL2Block_Call
func (*StateInterface_StoreL2Block_Call) RunAndReturn ¶
func (_c *StateInterface_StoreL2Block_Call) RunAndReturn(run func(context.Context, uint64, *state.ProcessBlockResponse, []*state.EffectiveGasPriceLog, pgx.Tx) (common.Hash, error)) *StateInterface_StoreL2Block_Call
type StateInterface_UpdateWIPBatch_Call ¶
StateInterface_UpdateWIPBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWIPBatch'
func (*StateInterface_UpdateWIPBatch_Call) Return ¶
func (_c *StateInterface_UpdateWIPBatch_Call) Return(_a0 error) *StateInterface_UpdateWIPBatch_Call
func (*StateInterface_UpdateWIPBatch_Call) Run ¶
func (_c *StateInterface_UpdateWIPBatch_Call) Run(run func(ctx context.Context, receipt state.ProcessingReceipt, dbTx pgx.Tx)) *StateInterface_UpdateWIPBatch_Call
func (*StateInterface_UpdateWIPBatch_Call) RunAndReturn ¶
func (_c *StateInterface_UpdateWIPBatch_Call) RunAndReturn(run func(context.Context, state.ProcessingReceipt, pgx.Tx) error) *StateInterface_UpdateWIPBatch_Call