mocks

package
v0.5.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthTxManagerClientMock

type EthTxManagerClientMock struct {
	mock.Mock
}

EthTxManagerClientMock is an autogenerated mock type for the EthTxManagerClient type

func NewEthTxManagerClientMock

func NewEthTxManagerClientMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthTxManagerClientMock

NewEthTxManagerClientMock creates a new instance of EthTxManagerClientMock. 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 (*EthTxManagerClientMock) Add

func (_m *EthTxManagerClientMock) 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 (*EthTxManagerClientMock) AddWithGas

func (_m *EthTxManagerClientMock) AddWithGas(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error)

AddWithGas provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar, gas

func (*EthTxManagerClientMock) EXPECT

func (*EthTxManagerClientMock) EncodeBlobData

func (_m *EthTxManagerClientMock) EncodeBlobData(data []byte) (kzg4844.Blob, error)

EncodeBlobData provides a mock function with given fields: data

func (*EthTxManagerClientMock) MakeBlobSidecar

func (_m *EthTxManagerClientMock) MakeBlobSidecar(blobs []kzg4844.Blob) *types.BlobTxSidecar

MakeBlobSidecar provides a mock function with given fields: blobs

func (*EthTxManagerClientMock) ProcessPendingMonitoredTxs

func (_m *EthTxManagerClientMock) ProcessPendingMonitoredTxs(ctx context.Context, resultHandler ethtxmanager.ResultHandler)

ProcessPendingMonitoredTxs provides a mock function with given fields: ctx, resultHandler

func (*EthTxManagerClientMock) Remove

func (_m *EthTxManagerClientMock) Remove(ctx context.Context, id common.Hash) error

Remove provides a mock function with given fields: ctx, id

func (*EthTxManagerClientMock) RemoveAll

func (_m *EthTxManagerClientMock) RemoveAll(ctx context.Context) error

RemoveAll provides a mock function with given fields: ctx

func (*EthTxManagerClientMock) Result

Result provides a mock function with given fields: ctx, id

func (*EthTxManagerClientMock) ResultsByStatus

ResultsByStatus provides a mock function with given fields: ctx, statuses

func (*EthTxManagerClientMock) Start

func (_m *EthTxManagerClientMock) Start()

Start provides a mock function with no fields

func (*EthTxManagerClientMock) Stop

func (_m *EthTxManagerClientMock) Stop()

Stop provides a mock function with no fields

type EthTxManagerClientMock_AddWithGas_Call

type EthTxManagerClientMock_AddWithGas_Call struct {
	*mock.Call
}

EthTxManagerClientMock_AddWithGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddWithGas'

func (*EthTxManagerClientMock_AddWithGas_Call) Return

func (*EthTxManagerClientMock_AddWithGas_Call) Run

func (*EthTxManagerClientMock_AddWithGas_Call) RunAndReturn

type EthTxManagerClientMock_Add_Call

type EthTxManagerClientMock_Add_Call struct {
	*mock.Call
}

EthTxManagerClientMock_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*EthTxManagerClientMock_Add_Call) Return

func (*EthTxManagerClientMock_Add_Call) Run

func (_c *EthTxManagerClientMock_Add_Call) Run(run func(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar)) *EthTxManagerClientMock_Add_Call

func (*EthTxManagerClientMock_Add_Call) RunAndReturn

type EthTxManagerClientMock_EncodeBlobData_Call

type EthTxManagerClientMock_EncodeBlobData_Call struct {
	*mock.Call
}

EthTxManagerClientMock_EncodeBlobData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EncodeBlobData'

func (*EthTxManagerClientMock_EncodeBlobData_Call) Return

func (*EthTxManagerClientMock_EncodeBlobData_Call) Run

func (*EthTxManagerClientMock_EncodeBlobData_Call) RunAndReturn

type EthTxManagerClientMock_Expecter

type EthTxManagerClientMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*EthTxManagerClientMock_Expecter) Add

func (_e *EthTxManagerClientMock_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, sidecar interface{}) *EthTxManagerClientMock_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 (*EthTxManagerClientMock_Expecter) AddWithGas

func (_e *EthTxManagerClientMock_Expecter) AddWithGas(ctx interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, sidecar interface{}, gas interface{}) *EthTxManagerClientMock_AddWithGas_Call

AddWithGas 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
  • gas uint64

func (*EthTxManagerClientMock_Expecter) EncodeBlobData

EncodeBlobData is a helper method to define mock.On call

  • data []byte

func (*EthTxManagerClientMock_Expecter) MakeBlobSidecar

func (_e *EthTxManagerClientMock_Expecter) MakeBlobSidecar(blobs interface{}) *EthTxManagerClientMock_MakeBlobSidecar_Call

MakeBlobSidecar is a helper method to define mock.On call

  • blobs []kzg4844.Blob

func (*EthTxManagerClientMock_Expecter) ProcessPendingMonitoredTxs

func (_e *EthTxManagerClientMock_Expecter) ProcessPendingMonitoredTxs(ctx interface{}, resultHandler interface{}) *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call

ProcessPendingMonitoredTxs is a helper method to define mock.On call

  • ctx context.Context
  • resultHandler ethtxmanager.ResultHandler

func (*EthTxManagerClientMock_Expecter) Remove

func (_e *EthTxManagerClientMock_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManagerClientMock_Remove_Call

Remove is a helper method to define mock.On call

  • ctx context.Context
  • id common.Hash

func (*EthTxManagerClientMock_Expecter) RemoveAll

RemoveAll is a helper method to define mock.On call

  • ctx context.Context

func (*EthTxManagerClientMock_Expecter) Result

func (_e *EthTxManagerClientMock_Expecter) Result(ctx interface{}, id interface{}) *EthTxManagerClientMock_Result_Call

Result is a helper method to define mock.On call

  • ctx context.Context
  • id common.Hash

func (*EthTxManagerClientMock_Expecter) ResultsByStatus

func (_e *EthTxManagerClientMock_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManagerClientMock_ResultsByStatus_Call

ResultsByStatus is a helper method to define mock.On call

  • ctx context.Context
  • statuses []zkevm_ethtx_managertypes.MonitoredTxStatus

func (*EthTxManagerClientMock_Expecter) Start

Start is a helper method to define mock.On call

func (*EthTxManagerClientMock_Expecter) Stop

Stop is a helper method to define mock.On call

type EthTxManagerClientMock_MakeBlobSidecar_Call

type EthTxManagerClientMock_MakeBlobSidecar_Call struct {
	*mock.Call
}

EthTxManagerClientMock_MakeBlobSidecar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeBlobSidecar'

func (*EthTxManagerClientMock_MakeBlobSidecar_Call) Return

func (*EthTxManagerClientMock_MakeBlobSidecar_Call) Run

func (*EthTxManagerClientMock_MakeBlobSidecar_Call) RunAndReturn

type EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call

type EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call struct {
	*mock.Call
}

EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessPendingMonitoredTxs'

func (*EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) Return

func (*EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) Run

func (*EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) RunAndReturn

type EthTxManagerClientMock_RemoveAll_Call

type EthTxManagerClientMock_RemoveAll_Call struct {
	*mock.Call
}

EthTxManagerClientMock_RemoveAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAll'

func (*EthTxManagerClientMock_RemoveAll_Call) Return

func (*EthTxManagerClientMock_RemoveAll_Call) Run

func (*EthTxManagerClientMock_RemoveAll_Call) RunAndReturn

type EthTxManagerClientMock_Remove_Call

type EthTxManagerClientMock_Remove_Call struct {
	*mock.Call
}

EthTxManagerClientMock_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*EthTxManagerClientMock_Remove_Call) Return

func (*EthTxManagerClientMock_Remove_Call) Run

func (*EthTxManagerClientMock_Remove_Call) RunAndReturn

type EthTxManagerClientMock_Result_Call

type EthTxManagerClientMock_Result_Call struct {
	*mock.Call
}

EthTxManagerClientMock_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'

func (*EthTxManagerClientMock_Result_Call) Run

type EthTxManagerClientMock_ResultsByStatus_Call

type EthTxManagerClientMock_ResultsByStatus_Call struct {
	*mock.Call
}

EthTxManagerClientMock_ResultsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResultsByStatus'

func (*EthTxManagerClientMock_ResultsByStatus_Call) Run

type EthTxManagerClientMock_Start_Call

type EthTxManagerClientMock_Start_Call struct {
	*mock.Call
}

EthTxManagerClientMock_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*EthTxManagerClientMock_Start_Call) Return

func (*EthTxManagerClientMock_Start_Call) Run

func (*EthTxManagerClientMock_Start_Call) RunAndReturn

type EthTxManagerClientMock_Stop_Call

type EthTxManagerClientMock_Stop_Call struct {
	*mock.Call
}

EthTxManagerClientMock_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'

func (*EthTxManagerClientMock_Stop_Call) Return

func (*EthTxManagerClientMock_Stop_Call) Run

func (*EthTxManagerClientMock_Stop_Call) RunAndReturn

type EthermanMock

type EthermanMock struct {
	mock.Mock
}

EthermanMock is an autogenerated mock type for the Etherman type

func NewEthermanMock

func NewEthermanMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthermanMock

NewEthermanMock creates a new instance of EthermanMock. 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 (*EthermanMock) BuildTrustedVerifyBatchesTxData

func (_m *EthermanMock) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, inputs *ethmantypes.FinalProofInputs, beneficiary common.Address) (*common.Address, []byte, error)

BuildTrustedVerifyBatchesTxData provides a mock function with given fields: lastVerifiedBatch, newVerifiedBatch, inputs, beneficiary

func (*EthermanMock) EXPECT

func (_m *EthermanMock) EXPECT() *EthermanMock_Expecter

func (*EthermanMock) GetBatchAccInputHash

func (_m *EthermanMock) GetBatchAccInputHash(ctx context.Context, batchNumber uint64) (common.Hash, error)

GetBatchAccInputHash provides a mock function with given fields: ctx, batchNumber

func (*EthermanMock) GetLatestBlockHeader

func (_m *EthermanMock) GetLatestBlockHeader(ctx context.Context) (*types.Header, error)

GetLatestBlockHeader provides a mock function with given fields: ctx

func (*EthermanMock) GetLatestVerifiedBatchNum

func (_m *EthermanMock) GetLatestVerifiedBatchNum() (uint64, error)

GetLatestVerifiedBatchNum provides a mock function with no fields

func (*EthermanMock) GetRollupId

func (_m *EthermanMock) GetRollupId() uint32

GetRollupId provides a mock function with no fields

func (*EthermanMock) HeaderByNumber

func (_m *EthermanMock) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

type EthermanMock_BuildTrustedVerifyBatchesTxData_Call

type EthermanMock_BuildTrustedVerifyBatchesTxData_Call struct {
	*mock.Call
}

EthermanMock_BuildTrustedVerifyBatchesTxData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildTrustedVerifyBatchesTxData'

func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Return

func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run

type EthermanMock_Expecter

type EthermanMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*EthermanMock_Expecter) BuildTrustedVerifyBatchesTxData

func (_e *EthermanMock_Expecter) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch interface{}, newVerifiedBatch interface{}, inputs interface{}, beneficiary interface{}) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call

BuildTrustedVerifyBatchesTxData is a helper method to define mock.On call

  • lastVerifiedBatch uint64
  • newVerifiedBatch uint64
  • inputs *ethmantypes.FinalProofInputs
  • beneficiary common.Address

func (*EthermanMock_Expecter) GetBatchAccInputHash

func (_e *EthermanMock_Expecter) GetBatchAccInputHash(ctx interface{}, batchNumber interface{}) *EthermanMock_GetBatchAccInputHash_Call

GetBatchAccInputHash is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64

func (*EthermanMock_Expecter) GetLatestBlockHeader

func (_e *EthermanMock_Expecter) GetLatestBlockHeader(ctx interface{}) *EthermanMock_GetLatestBlockHeader_Call

GetLatestBlockHeader is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanMock_Expecter) GetLatestVerifiedBatchNum

func (_e *EthermanMock_Expecter) GetLatestVerifiedBatchNum() *EthermanMock_GetLatestVerifiedBatchNum_Call

GetLatestVerifiedBatchNum is a helper method to define mock.On call

func (*EthermanMock_Expecter) GetRollupId

GetRollupId is a helper method to define mock.On call

func (*EthermanMock_Expecter) HeaderByNumber

func (_e *EthermanMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthermanMock_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

type EthermanMock_GetBatchAccInputHash_Call

type EthermanMock_GetBatchAccInputHash_Call struct {
	*mock.Call
}

EthermanMock_GetBatchAccInputHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBatchAccInputHash'

func (*EthermanMock_GetBatchAccInputHash_Call) Return

func (*EthermanMock_GetBatchAccInputHash_Call) Run

func (*EthermanMock_GetBatchAccInputHash_Call) RunAndReturn

type EthermanMock_GetLatestBlockHeader_Call

type EthermanMock_GetLatestBlockHeader_Call struct {
	*mock.Call
}

EthermanMock_GetLatestBlockHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlockHeader'

func (*EthermanMock_GetLatestBlockHeader_Call) Return

func (*EthermanMock_GetLatestBlockHeader_Call) Run

func (*EthermanMock_GetLatestBlockHeader_Call) RunAndReturn

type EthermanMock_GetLatestVerifiedBatchNum_Call

type EthermanMock_GetLatestVerifiedBatchNum_Call struct {
	*mock.Call
}

EthermanMock_GetLatestVerifiedBatchNum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestVerifiedBatchNum'

func (*EthermanMock_GetLatestVerifiedBatchNum_Call) Return

func (*EthermanMock_GetLatestVerifiedBatchNum_Call) Run

func (*EthermanMock_GetLatestVerifiedBatchNum_Call) RunAndReturn

type EthermanMock_GetRollupId_Call

type EthermanMock_GetRollupId_Call struct {
	*mock.Call
}

EthermanMock_GetRollupId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRollupId'

func (*EthermanMock_GetRollupId_Call) Return

func (*EthermanMock_GetRollupId_Call) Run

func (*EthermanMock_GetRollupId_Call) RunAndReturn

type EthermanMock_HeaderByNumber_Call

type EthermanMock_HeaderByNumber_Call struct {
	*mock.Call
}

EthermanMock_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*EthermanMock_HeaderByNumber_Call) Return

func (*EthermanMock_HeaderByNumber_Call) Run

func (*EthermanMock_HeaderByNumber_Call) RunAndReturn

type ProverInterfaceMock

type ProverInterfaceMock struct {
	mock.Mock
}

ProverInterfaceMock is an autogenerated mock type for the ProverInterface type

func NewProverInterfaceMock

func NewProverInterfaceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProverInterfaceMock

NewProverInterfaceMock creates a new instance of ProverInterfaceMock. 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 (*ProverInterfaceMock) Addr

func (_m *ProverInterfaceMock) Addr() string

Addr provides a mock function with no fields

func (*ProverInterfaceMock) AggregatedProof

func (_m *ProverInterfaceMock) AggregatedProof(inputProof1 string, inputProof2 string) (*string, error)

AggregatedProof provides a mock function with given fields: inputProof1, inputProof2

func (*ProverInterfaceMock) BatchProof

func (_m *ProverInterfaceMock) BatchProof(input *prover.StatelessInputProver) (*string, error)

BatchProof provides a mock function with given fields: input

func (*ProverInterfaceMock) EXPECT

func (*ProverInterfaceMock) FinalProof

func (_m *ProverInterfaceMock) FinalProof(inputProof string, aggregatorAddr string) (*string, error)

FinalProof provides a mock function with given fields: inputProof, aggregatorAddr

func (*ProverInterfaceMock) ID

func (_m *ProverInterfaceMock) ID() string

ID provides a mock function with no fields

func (*ProverInterfaceMock) IsIdle

func (_m *ProverInterfaceMock) IsIdle() (bool, error)

IsIdle provides a mock function with no fields

func (*ProverInterfaceMock) Name

func (_m *ProverInterfaceMock) Name() string

Name provides a mock function with no fields

func (*ProverInterfaceMock) WaitFinalProof

func (_m *ProverInterfaceMock) WaitFinalProof(ctx context.Context, proofID string) (*prover.FinalProof, error)

WaitFinalProof provides a mock function with given fields: ctx, proofID

func (*ProverInterfaceMock) WaitRecursiveProof

func (_m *ProverInterfaceMock) WaitRecursiveProof(ctx context.Context, proofID string) (string, common.Hash, common.Hash, error)

WaitRecursiveProof provides a mock function with given fields: ctx, proofID

type ProverInterfaceMock_Addr_Call

type ProverInterfaceMock_Addr_Call struct {
	*mock.Call
}

ProverInterfaceMock_Addr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Addr'

func (*ProverInterfaceMock_Addr_Call) Return

func (*ProverInterfaceMock_Addr_Call) Run

func (*ProverInterfaceMock_Addr_Call) RunAndReturn

type ProverInterfaceMock_AggregatedProof_Call

type ProverInterfaceMock_AggregatedProof_Call struct {
	*mock.Call
}

ProverInterfaceMock_AggregatedProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AggregatedProof'

func (*ProverInterfaceMock_AggregatedProof_Call) Return

func (*ProverInterfaceMock_AggregatedProof_Call) Run

func (*ProverInterfaceMock_AggregatedProof_Call) RunAndReturn

type ProverInterfaceMock_BatchProof_Call

type ProverInterfaceMock_BatchProof_Call struct {
	*mock.Call
}

ProverInterfaceMock_BatchProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchProof'

func (*ProverInterfaceMock_BatchProof_Call) Return

func (*ProverInterfaceMock_BatchProof_Call) Run

func (*ProverInterfaceMock_BatchProof_Call) RunAndReturn

type ProverInterfaceMock_Expecter

type ProverInterfaceMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProverInterfaceMock_Expecter) Addr

Addr is a helper method to define mock.On call

func (*ProverInterfaceMock_Expecter) AggregatedProof

func (_e *ProverInterfaceMock_Expecter) AggregatedProof(inputProof1 interface{}, inputProof2 interface{}) *ProverInterfaceMock_AggregatedProof_Call

AggregatedProof is a helper method to define mock.On call

  • inputProof1 string
  • inputProof2 string

func (*ProverInterfaceMock_Expecter) BatchProof

func (_e *ProverInterfaceMock_Expecter) BatchProof(input interface{}) *ProverInterfaceMock_BatchProof_Call

BatchProof is a helper method to define mock.On call

  • input *prover.StatelessInputProver

func (*ProverInterfaceMock_Expecter) FinalProof

func (_e *ProverInterfaceMock_Expecter) FinalProof(inputProof interface{}, aggregatorAddr interface{}) *ProverInterfaceMock_FinalProof_Call

FinalProof is a helper method to define mock.On call

  • inputProof string
  • aggregatorAddr string

func (*ProverInterfaceMock_Expecter) ID

ID is a helper method to define mock.On call

func (*ProverInterfaceMock_Expecter) IsIdle

IsIdle is a helper method to define mock.On call

func (*ProverInterfaceMock_Expecter) Name

Name is a helper method to define mock.On call

func (*ProverInterfaceMock_Expecter) WaitFinalProof

func (_e *ProverInterfaceMock_Expecter) WaitFinalProof(ctx interface{}, proofID interface{}) *ProverInterfaceMock_WaitFinalProof_Call

WaitFinalProof is a helper method to define mock.On call

  • ctx context.Context
  • proofID string

func (*ProverInterfaceMock_Expecter) WaitRecursiveProof

func (_e *ProverInterfaceMock_Expecter) WaitRecursiveProof(ctx interface{}, proofID interface{}) *ProverInterfaceMock_WaitRecursiveProof_Call

WaitRecursiveProof is a helper method to define mock.On call

  • ctx context.Context
  • proofID string

type ProverInterfaceMock_FinalProof_Call

type ProverInterfaceMock_FinalProof_Call struct {
	*mock.Call
}

ProverInterfaceMock_FinalProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalProof'

func (*ProverInterfaceMock_FinalProof_Call) Return

func (*ProverInterfaceMock_FinalProof_Call) Run

func (_c *ProverInterfaceMock_FinalProof_Call) Run(run func(inputProof string, aggregatorAddr string)) *ProverInterfaceMock_FinalProof_Call

func (*ProverInterfaceMock_FinalProof_Call) RunAndReturn

type ProverInterfaceMock_ID_Call

type ProverInterfaceMock_ID_Call struct {
	*mock.Call
}

ProverInterfaceMock_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*ProverInterfaceMock_ID_Call) Return

func (*ProverInterfaceMock_ID_Call) Run

func (*ProverInterfaceMock_ID_Call) RunAndReturn

func (_c *ProverInterfaceMock_ID_Call) RunAndReturn(run func() string) *ProverInterfaceMock_ID_Call

type ProverInterfaceMock_IsIdle_Call

type ProverInterfaceMock_IsIdle_Call struct {
	*mock.Call
}

ProverInterfaceMock_IsIdle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsIdle'

func (*ProverInterfaceMock_IsIdle_Call) Return

func (*ProverInterfaceMock_IsIdle_Call) Run

func (*ProverInterfaceMock_IsIdle_Call) RunAndReturn

type ProverInterfaceMock_Name_Call

type ProverInterfaceMock_Name_Call struct {
	*mock.Call
}

ProverInterfaceMock_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*ProverInterfaceMock_Name_Call) Return

func (*ProverInterfaceMock_Name_Call) Run

func (*ProverInterfaceMock_Name_Call) RunAndReturn

type ProverInterfaceMock_WaitFinalProof_Call

type ProverInterfaceMock_WaitFinalProof_Call struct {
	*mock.Call
}

ProverInterfaceMock_WaitFinalProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitFinalProof'

func (*ProverInterfaceMock_WaitFinalProof_Call) Return

func (*ProverInterfaceMock_WaitFinalProof_Call) Run

func (*ProverInterfaceMock_WaitFinalProof_Call) RunAndReturn

type ProverInterfaceMock_WaitRecursiveProof_Call

type ProverInterfaceMock_WaitRecursiveProof_Call struct {
	*mock.Call
}

ProverInterfaceMock_WaitRecursiveProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitRecursiveProof'

func (*ProverInterfaceMock_WaitRecursiveProof_Call) Return

func (*ProverInterfaceMock_WaitRecursiveProof_Call) Run

func (*ProverInterfaceMock_WaitRecursiveProof_Call) RunAndReturn

type RPCInterfaceMock added in v0.4.0

type RPCInterfaceMock struct {
	mock.Mock
}

RPCInterfaceMock is an autogenerated mock type for the RPCInterface type

func NewRPCInterfaceMock added in v0.4.0

func NewRPCInterfaceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RPCInterfaceMock

NewRPCInterfaceMock creates a new instance of RPCInterfaceMock. 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 (*RPCInterfaceMock) EXPECT

func (*RPCInterfaceMock) GetBatch added in v0.4.0

func (_m *RPCInterfaceMock) GetBatch(batchNumber uint64) (*types.RPCBatch, error)

GetBatch provides a mock function with given fields: batchNumber

func (*RPCInterfaceMock) GetWitness added in v0.4.0

func (_m *RPCInterfaceMock) GetWitness(batchNumber uint64, fullWitness bool) ([]byte, error)

GetWitness provides a mock function with given fields: batchNumber, fullWitness

type RPCInterfaceMock_Expecter

type RPCInterfaceMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*RPCInterfaceMock_Expecter) GetBatch

func (_e *RPCInterfaceMock_Expecter) GetBatch(batchNumber interface{}) *RPCInterfaceMock_GetBatch_Call

GetBatch is a helper method to define mock.On call

  • batchNumber uint64

func (*RPCInterfaceMock_Expecter) GetWitness

func (_e *RPCInterfaceMock_Expecter) GetWitness(batchNumber interface{}, fullWitness interface{}) *RPCInterfaceMock_GetWitness_Call

GetWitness is a helper method to define mock.On call

  • batchNumber uint64
  • fullWitness bool

type RPCInterfaceMock_GetBatch_Call

type RPCInterfaceMock_GetBatch_Call struct {
	*mock.Call
}

RPCInterfaceMock_GetBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBatch'

func (*RPCInterfaceMock_GetBatch_Call) Return

func (*RPCInterfaceMock_GetBatch_Call) Run

func (*RPCInterfaceMock_GetBatch_Call) RunAndReturn

type RPCInterfaceMock_GetWitness_Call

type RPCInterfaceMock_GetWitness_Call struct {
	*mock.Call
}

RPCInterfaceMock_GetWitness_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWitness'

func (*RPCInterfaceMock_GetWitness_Call) Return

func (*RPCInterfaceMock_GetWitness_Call) Run

func (_c *RPCInterfaceMock_GetWitness_Call) Run(run func(batchNumber uint64, fullWitness bool)) *RPCInterfaceMock_GetWitness_Call

func (*RPCInterfaceMock_GetWitness_Call) RunAndReturn

type StorageInterfaceMock added in v0.5.0

type StorageInterfaceMock struct {
	mock.Mock
}

StorageInterfaceMock is an autogenerated mock type for the StorageInterface type

func NewStorageInterfaceMock added in v0.5.0

func NewStorageInterfaceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorageInterfaceMock

NewStorageInterfaceMock creates a new instance of StorageInterfaceMock. 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 (*StorageInterfaceMock) AddGeneratedProof added in v0.5.0

func (_m *StorageInterfaceMock) AddGeneratedProof(ctx context.Context, proof *state.Proof, dbTx db.Txer) error

AddGeneratedProof provides a mock function with given fields: ctx, proof, dbTx

func (*StorageInterfaceMock) AddSequence added in v0.5.0

func (_m *StorageInterfaceMock) AddSequence(ctx context.Context, sequence state.Sequence, dbTx db.Txer) error

AddSequence provides a mock function with given fields: ctx, sequence, dbTx

func (*StorageInterfaceMock) BeginTx added in v0.5.0

func (_m *StorageInterfaceMock) BeginTx(ctx context.Context, options *sql.TxOptions) (db.Txer, error)

BeginTx provides a mock function with given fields: ctx, options

func (*StorageInterfaceMock) CheckProofContainsCompleteSequences added in v0.5.0

func (_m *StorageInterfaceMock) CheckProofContainsCompleteSequences(ctx context.Context, proof *state.Proof, dbTx db.Txer) (bool, error)

CheckProofContainsCompleteSequences provides a mock function with given fields: ctx, proof, dbTx

func (*StorageInterfaceMock) CheckProofExistsForBatch added in v0.5.0

func (_m *StorageInterfaceMock) CheckProofExistsForBatch(ctx context.Context, batchNumber uint64, dbTx db.Txer) (bool, error)

CheckProofExistsForBatch provides a mock function with given fields: ctx, batchNumber, dbTx

func (*StorageInterfaceMock) CleanupGeneratedProofs added in v0.5.0

func (_m *StorageInterfaceMock) CleanupGeneratedProofs(ctx context.Context, batchNumber uint64, dbTx db.Txer) error

CleanupGeneratedProofs provides a mock function with given fields: ctx, batchNumber, dbTx

func (*StorageInterfaceMock) CleanupLockedProofs added in v0.5.0

func (_m *StorageInterfaceMock) CleanupLockedProofs(ctx context.Context, duration string, dbTx db.Txer) (int64, error)

CleanupLockedProofs provides a mock function with given fields: ctx, duration, dbTx

func (*StorageInterfaceMock) DeleteGeneratedProofs added in v0.5.0

func (_m *StorageInterfaceMock) DeleteGeneratedProofs(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx db.Txer) error

DeleteGeneratedProofs provides a mock function with given fields: ctx, batchNumber, batchNumberFinal, dbTx

func (*StorageInterfaceMock) DeleteUngeneratedProofs added in v0.5.0

func (_m *StorageInterfaceMock) DeleteUngeneratedProofs(ctx context.Context, dbTx db.Txer) error

DeleteUngeneratedProofs provides a mock function with given fields: ctx, dbTx

func (*StorageInterfaceMock) EXPECT

func (*StorageInterfaceMock) GetProofReadyToVerify added in v0.5.0

func (_m *StorageInterfaceMock) GetProofReadyToVerify(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx db.Txer) (*state.Proof, error)

GetProofReadyToVerify provides a mock function with given fields: ctx, lastVerfiedBatchNumber, dbTx

func (*StorageInterfaceMock) GetProofsToAggregate added in v0.5.0

func (_m *StorageInterfaceMock) GetProofsToAggregate(ctx context.Context, dbTx db.Txer) (*state.Proof, *state.Proof, error)

GetProofsToAggregate provides a mock function with given fields: ctx, dbTx

func (*StorageInterfaceMock) UpdateGeneratedProof added in v0.5.0

func (_m *StorageInterfaceMock) UpdateGeneratedProof(ctx context.Context, proof *state.Proof, dbTx db.Txer) error

UpdateGeneratedProof provides a mock function with given fields: ctx, proof, dbTx

type StorageInterfaceMock_AddGeneratedProof_Call

type StorageInterfaceMock_AddGeneratedProof_Call struct {
	*mock.Call
}

StorageInterfaceMock_AddGeneratedProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddGeneratedProof'

func (*StorageInterfaceMock_AddGeneratedProof_Call) Return

func (*StorageInterfaceMock_AddGeneratedProof_Call) Run

func (*StorageInterfaceMock_AddGeneratedProof_Call) RunAndReturn

type StorageInterfaceMock_AddSequence_Call

type StorageInterfaceMock_AddSequence_Call struct {
	*mock.Call
}

StorageInterfaceMock_AddSequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddSequence'

func (*StorageInterfaceMock_AddSequence_Call) Return

func (*StorageInterfaceMock_AddSequence_Call) Run

func (*StorageInterfaceMock_AddSequence_Call) RunAndReturn

type StorageInterfaceMock_BeginTx_Call

type StorageInterfaceMock_BeginTx_Call struct {
	*mock.Call
}

StorageInterfaceMock_BeginTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTx'

func (*StorageInterfaceMock_BeginTx_Call) Return

func (*StorageInterfaceMock_BeginTx_Call) Run

func (*StorageInterfaceMock_BeginTx_Call) RunAndReturn

type StorageInterfaceMock_CheckProofContainsCompleteSequences_Call

type StorageInterfaceMock_CheckProofContainsCompleteSequences_Call struct {
	*mock.Call
}

StorageInterfaceMock_CheckProofContainsCompleteSequences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckProofContainsCompleteSequences'

func (*StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) Return

func (*StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) Run

func (*StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) RunAndReturn

type StorageInterfaceMock_CheckProofExistsForBatch_Call

type StorageInterfaceMock_CheckProofExistsForBatch_Call struct {
	*mock.Call
}

StorageInterfaceMock_CheckProofExistsForBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckProofExistsForBatch'

func (*StorageInterfaceMock_CheckProofExistsForBatch_Call) Return

func (*StorageInterfaceMock_CheckProofExistsForBatch_Call) Run

func (*StorageInterfaceMock_CheckProofExistsForBatch_Call) RunAndReturn

type StorageInterfaceMock_CleanupGeneratedProofs_Call

type StorageInterfaceMock_CleanupGeneratedProofs_Call struct {
	*mock.Call
}

StorageInterfaceMock_CleanupGeneratedProofs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanupGeneratedProofs'

func (*StorageInterfaceMock_CleanupGeneratedProofs_Call) Return

func (*StorageInterfaceMock_CleanupGeneratedProofs_Call) Run

func (*StorageInterfaceMock_CleanupGeneratedProofs_Call) RunAndReturn

type StorageInterfaceMock_CleanupLockedProofs_Call

type StorageInterfaceMock_CleanupLockedProofs_Call struct {
	*mock.Call
}

StorageInterfaceMock_CleanupLockedProofs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanupLockedProofs'

func (*StorageInterfaceMock_CleanupLockedProofs_Call) Return

func (*StorageInterfaceMock_CleanupLockedProofs_Call) Run

func (*StorageInterfaceMock_CleanupLockedProofs_Call) RunAndReturn

type StorageInterfaceMock_DeleteGeneratedProofs_Call

type StorageInterfaceMock_DeleteGeneratedProofs_Call struct {
	*mock.Call
}

StorageInterfaceMock_DeleteGeneratedProofs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteGeneratedProofs'

func (*StorageInterfaceMock_DeleteGeneratedProofs_Call) Return

func (*StorageInterfaceMock_DeleteGeneratedProofs_Call) Run

func (*StorageInterfaceMock_DeleteGeneratedProofs_Call) RunAndReturn

type StorageInterfaceMock_DeleteUngeneratedProofs_Call

type StorageInterfaceMock_DeleteUngeneratedProofs_Call struct {
	*mock.Call
}

StorageInterfaceMock_DeleteUngeneratedProofs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUngeneratedProofs'

func (*StorageInterfaceMock_DeleteUngeneratedProofs_Call) Return

func (*StorageInterfaceMock_DeleteUngeneratedProofs_Call) Run

func (*StorageInterfaceMock_DeleteUngeneratedProofs_Call) RunAndReturn

type StorageInterfaceMock_Expecter

type StorageInterfaceMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*StorageInterfaceMock_Expecter) AddGeneratedProof

func (_e *StorageInterfaceMock_Expecter) AddGeneratedProof(ctx interface{}, proof interface{}, dbTx interface{}) *StorageInterfaceMock_AddGeneratedProof_Call

AddGeneratedProof is a helper method to define mock.On call

  • ctx context.Context
  • proof *state.Proof
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) AddSequence

func (_e *StorageInterfaceMock_Expecter) AddSequence(ctx interface{}, sequence interface{}, dbTx interface{}) *StorageInterfaceMock_AddSequence_Call

AddSequence is a helper method to define mock.On call

  • ctx context.Context
  • sequence state.Sequence
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) BeginTx

func (_e *StorageInterfaceMock_Expecter) BeginTx(ctx interface{}, options interface{}) *StorageInterfaceMock_BeginTx_Call

BeginTx is a helper method to define mock.On call

  • ctx context.Context
  • options *sql.TxOptions

func (*StorageInterfaceMock_Expecter) CheckProofContainsCompleteSequences

func (_e *StorageInterfaceMock_Expecter) CheckProofContainsCompleteSequences(ctx interface{}, proof interface{}, dbTx interface{}) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call

CheckProofContainsCompleteSequences is a helper method to define mock.On call

  • ctx context.Context
  • proof *state.Proof
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) CheckProofExistsForBatch

func (_e *StorageInterfaceMock_Expecter) CheckProofExistsForBatch(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StorageInterfaceMock_CheckProofExistsForBatch_Call

CheckProofExistsForBatch is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) CleanupGeneratedProofs

func (_e *StorageInterfaceMock_Expecter) CleanupGeneratedProofs(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StorageInterfaceMock_CleanupGeneratedProofs_Call

CleanupGeneratedProofs is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) CleanupLockedProofs

func (_e *StorageInterfaceMock_Expecter) CleanupLockedProofs(ctx interface{}, duration interface{}, dbTx interface{}) *StorageInterfaceMock_CleanupLockedProofs_Call

CleanupLockedProofs is a helper method to define mock.On call

  • ctx context.Context
  • duration string
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) DeleteGeneratedProofs

func (_e *StorageInterfaceMock_Expecter) DeleteGeneratedProofs(ctx interface{}, batchNumber interface{}, batchNumberFinal interface{}, dbTx interface{}) *StorageInterfaceMock_DeleteGeneratedProofs_Call

DeleteGeneratedProofs is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64
  • batchNumberFinal uint64
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) DeleteUngeneratedProofs

func (_e *StorageInterfaceMock_Expecter) DeleteUngeneratedProofs(ctx interface{}, dbTx interface{}) *StorageInterfaceMock_DeleteUngeneratedProofs_Call

DeleteUngeneratedProofs is a helper method to define mock.On call

  • ctx context.Context
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) GetProofReadyToVerify

func (_e *StorageInterfaceMock_Expecter) GetProofReadyToVerify(ctx interface{}, lastVerfiedBatchNumber interface{}, dbTx interface{}) *StorageInterfaceMock_GetProofReadyToVerify_Call

GetProofReadyToVerify is a helper method to define mock.On call

  • ctx context.Context
  • lastVerfiedBatchNumber uint64
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) GetProofsToAggregate

func (_e *StorageInterfaceMock_Expecter) GetProofsToAggregate(ctx interface{}, dbTx interface{}) *StorageInterfaceMock_GetProofsToAggregate_Call

GetProofsToAggregate is a helper method to define mock.On call

  • ctx context.Context
  • dbTx db.Txer

func (*StorageInterfaceMock_Expecter) UpdateGeneratedProof

func (_e *StorageInterfaceMock_Expecter) UpdateGeneratedProof(ctx interface{}, proof interface{}, dbTx interface{}) *StorageInterfaceMock_UpdateGeneratedProof_Call

UpdateGeneratedProof is a helper method to define mock.On call

  • ctx context.Context
  • proof *state.Proof
  • dbTx db.Txer

type StorageInterfaceMock_GetProofReadyToVerify_Call

type StorageInterfaceMock_GetProofReadyToVerify_Call struct {
	*mock.Call
}

StorageInterfaceMock_GetProofReadyToVerify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProofReadyToVerify'

func (*StorageInterfaceMock_GetProofReadyToVerify_Call) Return

func (*StorageInterfaceMock_GetProofReadyToVerify_Call) Run

func (*StorageInterfaceMock_GetProofReadyToVerify_Call) RunAndReturn

type StorageInterfaceMock_GetProofsToAggregate_Call

type StorageInterfaceMock_GetProofsToAggregate_Call struct {
	*mock.Call
}

StorageInterfaceMock_GetProofsToAggregate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProofsToAggregate'

func (*StorageInterfaceMock_GetProofsToAggregate_Call) Return

func (*StorageInterfaceMock_GetProofsToAggregate_Call) Run

func (*StorageInterfaceMock_GetProofsToAggregate_Call) RunAndReturn

type StorageInterfaceMock_UpdateGeneratedProof_Call

type StorageInterfaceMock_UpdateGeneratedProof_Call struct {
	*mock.Call
}

StorageInterfaceMock_UpdateGeneratedProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateGeneratedProof'

func (*StorageInterfaceMock_UpdateGeneratedProof_Call) Return

func (*StorageInterfaceMock_UpdateGeneratedProof_Call) Run

func (*StorageInterfaceMock_UpdateGeneratedProof_Call) RunAndReturn

type SynchronizerInterfaceMock

type SynchronizerInterfaceMock struct {
	mock.Mock
}

SynchronizerInterfaceMock is an autogenerated mock type for the Synchronizer type

func NewSynchronizerInterfaceMock

func NewSynchronizerInterfaceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *SynchronizerInterfaceMock

NewSynchronizerInterfaceMock creates a new instance of SynchronizerInterfaceMock. 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 (*SynchronizerInterfaceMock) EXPECT

func (*SynchronizerInterfaceMock) GetL1BlockByNumber

func (_m *SynchronizerInterfaceMock) GetL1BlockByNumber(ctx context.Context, blockNumber uint64) (*synchronizer.L1Block, error)

GetL1BlockByNumber provides a mock function with given fields: ctx, blockNumber

func (*SynchronizerInterfaceMock) GetL1InfoRootPerIndex

func (_m *SynchronizerInterfaceMock) GetL1InfoRootPerIndex(ctx context.Context, L1InfoTreeIndex uint32) (common.Hash, error)

GetL1InfoRootPerIndex provides a mock function with given fields: ctx, L1InfoTreeIndex

func (*SynchronizerInterfaceMock) GetL1InfoTreeLeaves

func (_m *SynchronizerInterfaceMock) GetL1InfoTreeLeaves(ctx context.Context, indexLeaves []uint32) (map[uint32]synchronizer.L1InfoTreeLeaf, error)

GetL1InfoTreeLeaves provides a mock function with given fields: ctx, indexLeaves

func (*SynchronizerInterfaceMock) GetLastL1Block

func (_m *SynchronizerInterfaceMock) GetLastL1Block(ctx context.Context) (*synchronizer.L1Block, error)

GetLastL1Block provides a mock function with given fields: ctx

func (*SynchronizerInterfaceMock) GetLastestVirtualBatchNumber

func (_m *SynchronizerInterfaceMock) GetLastestVirtualBatchNumber(ctx context.Context) (uint64, error)

GetLastestVirtualBatchNumber provides a mock function with given fields: ctx

func (*SynchronizerInterfaceMock) GetLeafsByL1InfoRoot

func (_m *SynchronizerInterfaceMock) GetLeafsByL1InfoRoot(ctx context.Context, l1InfoRoot common.Hash) ([]synchronizer.L1InfoTreeLeaf, error)

GetLeafsByL1InfoRoot provides a mock function with given fields: ctx, l1InfoRoot

func (*SynchronizerInterfaceMock) GetSequenceByBatchNumber

func (_m *SynchronizerInterfaceMock) GetSequenceByBatchNumber(ctx context.Context, batchNumber uint64) (*synchronizer.SequencedBatches, error)

GetSequenceByBatchNumber provides a mock function with given fields: ctx, batchNumber

func (*SynchronizerInterfaceMock) GetVirtualBatchByBatchNumber

func (_m *SynchronizerInterfaceMock) GetVirtualBatchByBatchNumber(ctx context.Context, batchNumber uint64) (*synchronizer.VirtualBatch, error)

GetVirtualBatchByBatchNumber provides a mock function with given fields: ctx, batchNumber

func (*SynchronizerInterfaceMock) IsSynced

func (_m *SynchronizerInterfaceMock) IsSynced() bool

IsSynced provides a mock function with no fields

func (*SynchronizerInterfaceMock) SetCallbackOnReorgDone

func (_m *SynchronizerInterfaceMock) SetCallbackOnReorgDone(callback func(synchronizer.ReorgExecutionResult))

SetCallbackOnReorgDone provides a mock function with given fields: callback

func (*SynchronizerInterfaceMock) SetCallbackOnRollbackBatches

func (_m *SynchronizerInterfaceMock) SetCallbackOnRollbackBatches(callback func(synchronizer.RollbackBatchesData))

SetCallbackOnRollbackBatches provides a mock function with given fields: callback

func (*SynchronizerInterfaceMock) Stop

func (_m *SynchronizerInterfaceMock) Stop()

Stop provides a mock function with no fields

func (*SynchronizerInterfaceMock) Sync

func (_m *SynchronizerInterfaceMock) Sync(returnOnSync bool) error

Sync provides a mock function with given fields: returnOnSync

type SynchronizerInterfaceMock_Expecter

type SynchronizerInterfaceMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*SynchronizerInterfaceMock_Expecter) GetL1BlockByNumber

func (_e *SynchronizerInterfaceMock_Expecter) GetL1BlockByNumber(ctx interface{}, blockNumber interface{}) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call

GetL1BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • blockNumber uint64

func (*SynchronizerInterfaceMock_Expecter) GetL1InfoRootPerIndex

func (_e *SynchronizerInterfaceMock_Expecter) GetL1InfoRootPerIndex(ctx interface{}, L1InfoTreeIndex interface{}) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call

GetL1InfoRootPerIndex is a helper method to define mock.On call

  • ctx context.Context
  • L1InfoTreeIndex uint32

func (*SynchronizerInterfaceMock_Expecter) GetL1InfoTreeLeaves

func (_e *SynchronizerInterfaceMock_Expecter) GetL1InfoTreeLeaves(ctx interface{}, indexLeaves interface{}) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call

GetL1InfoTreeLeaves is a helper method to define mock.On call

  • ctx context.Context
  • indexLeaves []uint32

func (*SynchronizerInterfaceMock_Expecter) GetLastL1Block

GetLastL1Block is a helper method to define mock.On call

  • ctx context.Context

func (*SynchronizerInterfaceMock_Expecter) GetLastestVirtualBatchNumber

GetLastestVirtualBatchNumber is a helper method to define mock.On call

  • ctx context.Context

func (*SynchronizerInterfaceMock_Expecter) GetLeafsByL1InfoRoot

func (_e *SynchronizerInterfaceMock_Expecter) GetLeafsByL1InfoRoot(ctx interface{}, l1InfoRoot interface{}) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call

GetLeafsByL1InfoRoot is a helper method to define mock.On call

  • ctx context.Context
  • l1InfoRoot common.Hash

func (*SynchronizerInterfaceMock_Expecter) GetSequenceByBatchNumber

func (_e *SynchronizerInterfaceMock_Expecter) GetSequenceByBatchNumber(ctx interface{}, batchNumber interface{}) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call

GetSequenceByBatchNumber is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64

func (*SynchronizerInterfaceMock_Expecter) GetVirtualBatchByBatchNumber

func (_e *SynchronizerInterfaceMock_Expecter) GetVirtualBatchByBatchNumber(ctx interface{}, batchNumber interface{}) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call

GetVirtualBatchByBatchNumber is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64

func (*SynchronizerInterfaceMock_Expecter) IsSynced

IsSynced is a helper method to define mock.On call

func (*SynchronizerInterfaceMock_Expecter) SetCallbackOnReorgDone

func (_e *SynchronizerInterfaceMock_Expecter) SetCallbackOnReorgDone(callback interface{}) *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call

SetCallbackOnReorgDone is a helper method to define mock.On call

  • callback func(synchronizer.ReorgExecutionResult)

func (*SynchronizerInterfaceMock_Expecter) SetCallbackOnRollbackBatches

func (_e *SynchronizerInterfaceMock_Expecter) SetCallbackOnRollbackBatches(callback interface{}) *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call

SetCallbackOnRollbackBatches is a helper method to define mock.On call

  • callback func(synchronizer.RollbackBatchesData)

func (*SynchronizerInterfaceMock_Expecter) Stop

Stop is a helper method to define mock.On call

func (*SynchronizerInterfaceMock_Expecter) Sync

func (_e *SynchronizerInterfaceMock_Expecter) Sync(returnOnSync interface{}) *SynchronizerInterfaceMock_Sync_Call

Sync is a helper method to define mock.On call

  • returnOnSync bool

type SynchronizerInterfaceMock_GetL1BlockByNumber_Call

type SynchronizerInterfaceMock_GetL1BlockByNumber_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetL1BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetL1BlockByNumber'

func (*SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Return

func (*SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Run

func (*SynchronizerInterfaceMock_GetL1BlockByNumber_Call) RunAndReturn

type SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call

type SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetL1InfoRootPerIndex'

func (*SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Return

func (*SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Run

func (*SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) RunAndReturn

type SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call

type SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetL1InfoTreeLeaves'

func (*SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Return

func (*SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Run

func (*SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) RunAndReturn

type SynchronizerInterfaceMock_GetLastL1Block_Call

type SynchronizerInterfaceMock_GetLastL1Block_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetLastL1Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastL1Block'

func (*SynchronizerInterfaceMock_GetLastL1Block_Call) Return

func (*SynchronizerInterfaceMock_GetLastL1Block_Call) Run

func (*SynchronizerInterfaceMock_GetLastL1Block_Call) RunAndReturn

type SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call

type SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastestVirtualBatchNumber'

func (*SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) Return

func (*SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) Run

func (*SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) RunAndReturn

type SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call

type SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLeafsByL1InfoRoot'

func (*SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Return

func (*SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Run

func (*SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) RunAndReturn

type SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call

type SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSequenceByBatchNumber'

func (*SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) Return

func (*SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) Run

type SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call

type SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVirtualBatchByBatchNumber'

func (*SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) Return

func (*SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) Run

type SynchronizerInterfaceMock_IsSynced_Call

type SynchronizerInterfaceMock_IsSynced_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_IsSynced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSynced'

func (*SynchronizerInterfaceMock_IsSynced_Call) Return

func (*SynchronizerInterfaceMock_IsSynced_Call) Run

func (*SynchronizerInterfaceMock_IsSynced_Call) RunAndReturn

type SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call

type SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbackOnReorgDone'

func (*SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) Return

func (*SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) Run

func (*SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) RunAndReturn

type SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call

type SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbackOnRollbackBatches'

func (*SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) Return

func (*SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) Run

func (*SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) RunAndReturn

type SynchronizerInterfaceMock_Stop_Call

type SynchronizerInterfaceMock_Stop_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'

func (*SynchronizerInterfaceMock_Stop_Call) Return

func (*SynchronizerInterfaceMock_Stop_Call) Run

func (*SynchronizerInterfaceMock_Stop_Call) RunAndReturn

type SynchronizerInterfaceMock_Sync_Call

type SynchronizerInterfaceMock_Sync_Call struct {
	*mock.Call
}

SynchronizerInterfaceMock_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'

func (*SynchronizerInterfaceMock_Sync_Call) Return

func (*SynchronizerInterfaceMock_Sync_Call) Run

func (*SynchronizerInterfaceMock_Sync_Call) RunAndReturn

type TxerMock added in v0.5.0

type TxerMock struct {
	mock.Mock
}

TxerMock is an autogenerated mock type for the Txer type

func NewTxerMock added in v0.5.0

func NewTxerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxerMock

NewTxerMock creates a new instance of TxerMock. 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 (*TxerMock) AddCommitCallback added in v0.5.0

func (_m *TxerMock) AddCommitCallback(cb func())

AddCommitCallback provides a mock function with given fields: cb

func (*TxerMock) AddRollbackCallback added in v0.5.0

func (_m *TxerMock) AddRollbackCallback(cb func())

AddRollbackCallback provides a mock function with given fields: cb

func (*TxerMock) Commit added in v0.5.0

func (_m *TxerMock) Commit() error

Commit provides a mock function with no fields

func (*TxerMock) EXPECT

func (_m *TxerMock) EXPECT() *TxerMock_Expecter

func (*TxerMock) Exec added in v0.5.0

func (_m *TxerMock) Exec(query string, args ...interface{}) (sql.Result, error)

Exec provides a mock function with given fields: query, args

func (*TxerMock) Query added in v0.5.0

func (_m *TxerMock) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

func (*TxerMock) QueryRow added in v0.5.0

func (_m *TxerMock) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: query, args

func (*TxerMock) Rollback added in v0.5.0

func (_m *TxerMock) Rollback() error

Rollback provides a mock function with no fields

type TxerMock_AddCommitCallback_Call

type TxerMock_AddCommitCallback_Call struct {
	*mock.Call
}

TxerMock_AddCommitCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCommitCallback'

func (*TxerMock_AddCommitCallback_Call) Return

func (*TxerMock_AddCommitCallback_Call) Run

func (*TxerMock_AddCommitCallback_Call) RunAndReturn

func (_c *TxerMock_AddCommitCallback_Call) RunAndReturn(run func(func())) *TxerMock_AddCommitCallback_Call

type TxerMock_AddRollbackCallback_Call

type TxerMock_AddRollbackCallback_Call struct {
	*mock.Call
}

TxerMock_AddRollbackCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRollbackCallback'

func (*TxerMock_AddRollbackCallback_Call) Return

func (*TxerMock_AddRollbackCallback_Call) Run

func (*TxerMock_AddRollbackCallback_Call) RunAndReturn

func (_c *TxerMock_AddRollbackCallback_Call) RunAndReturn(run func(func())) *TxerMock_AddRollbackCallback_Call

type TxerMock_Commit_Call

type TxerMock_Commit_Call struct {
	*mock.Call
}

TxerMock_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*TxerMock_Commit_Call) Return

func (*TxerMock_Commit_Call) Run

func (_c *TxerMock_Commit_Call) Run(run func()) *TxerMock_Commit_Call

func (*TxerMock_Commit_Call) RunAndReturn

func (_c *TxerMock_Commit_Call) RunAndReturn(run func() error) *TxerMock_Commit_Call

type TxerMock_Exec_Call

type TxerMock_Exec_Call struct {
	*mock.Call
}

TxerMock_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*TxerMock_Exec_Call) Return

func (_c *TxerMock_Exec_Call) Return(_a0 sql.Result, _a1 error) *TxerMock_Exec_Call

func (*TxerMock_Exec_Call) Run

func (_c *TxerMock_Exec_Call) Run(run func(query string, args ...interface{})) *TxerMock_Exec_Call

func (*TxerMock_Exec_Call) RunAndReturn

func (_c *TxerMock_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *TxerMock_Exec_Call

type TxerMock_Expecter

type TxerMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*TxerMock_Expecter) AddCommitCallback

func (_e *TxerMock_Expecter) AddCommitCallback(cb interface{}) *TxerMock_AddCommitCallback_Call

AddCommitCallback is a helper method to define mock.On call

  • cb func()

func (*TxerMock_Expecter) AddRollbackCallback

func (_e *TxerMock_Expecter) AddRollbackCallback(cb interface{}) *TxerMock_AddRollbackCallback_Call

AddRollbackCallback is a helper method to define mock.On call

  • cb func()

func (*TxerMock_Expecter) Commit

Commit is a helper method to define mock.On call

func (*TxerMock_Expecter) Exec

func (_e *TxerMock_Expecter) Exec(query interface{}, args ...interface{}) *TxerMock_Exec_Call

Exec is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*TxerMock_Expecter) Query

func (_e *TxerMock_Expecter) Query(query interface{}, args ...interface{}) *TxerMock_Query_Call

Query is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*TxerMock_Expecter) QueryRow

func (_e *TxerMock_Expecter) QueryRow(query interface{}, args ...interface{}) *TxerMock_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*TxerMock_Expecter) Rollback

func (_e *TxerMock_Expecter) Rollback() *TxerMock_Rollback_Call

Rollback is a helper method to define mock.On call

type TxerMock_QueryRow_Call

type TxerMock_QueryRow_Call struct {
	*mock.Call
}

TxerMock_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'

func (*TxerMock_QueryRow_Call) Return

func (*TxerMock_QueryRow_Call) Run

func (_c *TxerMock_QueryRow_Call) Run(run func(query string, args ...interface{})) *TxerMock_QueryRow_Call

func (*TxerMock_QueryRow_Call) RunAndReturn

func (_c *TxerMock_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) *sql.Row) *TxerMock_QueryRow_Call

type TxerMock_Query_Call

type TxerMock_Query_Call struct {
	*mock.Call
}

TxerMock_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*TxerMock_Query_Call) Return

func (_c *TxerMock_Query_Call) Return(_a0 *sql.Rows, _a1 error) *TxerMock_Query_Call

func (*TxerMock_Query_Call) Run

func (_c *TxerMock_Query_Call) Run(run func(query string, args ...interface{})) *TxerMock_Query_Call

func (*TxerMock_Query_Call) RunAndReturn

func (_c *TxerMock_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *TxerMock_Query_Call

type TxerMock_Rollback_Call

type TxerMock_Rollback_Call struct {
	*mock.Call
}

TxerMock_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*TxerMock_Rollback_Call) Return

func (*TxerMock_Rollback_Call) Run

func (_c *TxerMock_Rollback_Call) Run(run func()) *TxerMock_Rollback_Call

func (*TxerMock_Rollback_Call) RunAndReturn

func (_c *TxerMock_Rollback_Call) RunAndReturn(run func() error) *TxerMock_Rollback_Call

Jump to

Keyboard shortcuts

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