mock_l2_sync_etrog

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateGERInteface

type StateGERInteface struct {
	mock.Mock
}

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 (*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

func (_m *StateGERInteface) GetLastBlock(ctx context.Context, dbTx pgx.Tx) (*state.Block, error)

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

type StateGERInteface_GetExitRootByGlobalExitRoot_Call struct {
	*mock.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 (*StateGERInteface_GetExitRootByGlobalExitRoot_Call) Run

func (*StateGERInteface_GetExitRootByGlobalExitRoot_Call) RunAndReturn

type StateGERInteface_GetLastBlock_Call

type StateGERInteface_GetLastBlock_Call struct {
	*mock.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 (*StateGERInteface_GetLastBlock_Call) Run

func (*StateGERInteface_GetLastBlock_Call) RunAndReturn

type StateInterface

type StateInterface struct {
	mock.Mock
}

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

func (_m *StateInterface) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)

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 (*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

func (_m *StateInterface) GetLastVirtualBatchNum(ctx context.Context, dbTx pgx.Tx) (uint64, error)

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) 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

type StateInterface_BeginStateTransaction_Call struct {
	*mock.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 (*StateInterface_BeginStateTransaction_Call) Run

func (*StateInterface_BeginStateTransaction_Call) RunAndReturn

type StateInterface_CloseBatch_Call

type StateInterface_CloseBatch_Call struct {
	*mock.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 (*StateInterface_CloseBatch_Call) Run

func (*StateInterface_CloseBatch_Call) RunAndReturn

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

type StateInterface_GetBatchByNumber_Call struct {
	*mock.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 (*StateInterface_GetBatchByNumber_Call) Run

func (*StateInterface_GetBatchByNumber_Call) RunAndReturn

type StateInterface_GetForkIDByBatchNumber_Call

type StateInterface_GetForkIDByBatchNumber_Call struct {
	*mock.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 (*StateInterface_GetForkIDByBatchNumber_Call) Run

func (*StateInterface_GetForkIDByBatchNumber_Call) RunAndReturn

type StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call

type StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call struct {
	*mock.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 (*StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) Run

func (*StateInterface_GetL1InfoTreeDataFromBatchL2Data_Call) RunAndReturn

type StateInterface_GetLastVirtualBatchNum_Call added in v0.6.1

type StateInterface_GetLastVirtualBatchNum_Call struct {
	*mock.Call
}

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 (*StateInterface_GetLastVirtualBatchNum_Call) Run added in v0.6.1

func (*StateInterface_GetLastVirtualBatchNum_Call) RunAndReturn added in v0.6.1

type StateInterface_OpenBatch_Call

type StateInterface_OpenBatch_Call struct {
	*mock.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 (*StateInterface_OpenBatch_Call) Run

func (*StateInterface_OpenBatch_Call) RunAndReturn

type StateInterface_ProcessBatchV2_Call

type StateInterface_ProcessBatchV2_Call struct {
	*mock.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 (*StateInterface_ProcessBatchV2_Call) Run

type StateInterface_ResetTrustedState_Call

type StateInterface_ResetTrustedState_Call struct {
	*mock.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 (*StateInterface_ResetTrustedState_Call) Run

func (*StateInterface_ResetTrustedState_Call) RunAndReturn

type StateInterface_StoreL2Block_Call

type StateInterface_StoreL2Block_Call struct {
	*mock.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 (*StateInterface_StoreL2Block_Call) Run

type StateInterface_UpdateWIPBatch_Call

type StateInterface_UpdateWIPBatch_Call struct {
	*mock.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 (*StateInterface_UpdateWIPBatch_Call) Run

func (*StateInterface_UpdateWIPBatch_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL