Documentation ¶
Index ¶
- type EthTxManagerClientMock
- func (_m *EthTxManagerClientMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManagerClientMock) AddWithGas(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManagerClientMock) EXPECT() *EthTxManagerClientMock_Expecter
- func (_m *EthTxManagerClientMock) EncodeBlobData(data []byte) (kzg4844.Blob, error)
- func (_m *EthTxManagerClientMock) MakeBlobSidecar(blobs []kzg4844.Blob) *types.BlobTxSidecar
- func (_m *EthTxManagerClientMock) ProcessPendingMonitoredTxs(ctx context.Context, resultHandler ethtxmanager.ResultHandler)
- func (_m *EthTxManagerClientMock) Remove(ctx context.Context, id common.Hash) error
- func (_m *EthTxManagerClientMock) RemoveAll(ctx context.Context) error
- func (_m *EthTxManagerClientMock) Result(ctx context.Context, id common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
- func (_m *EthTxManagerClientMock) ResultsByStatus(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
- func (_m *EthTxManagerClientMock) Start()
- func (_m *EthTxManagerClientMock) Stop()
- type EthTxManagerClientMock_AddWithGas_Call
- func (_c *EthTxManagerClientMock_AddWithGas_Call) Return(_a0 common.Hash, _a1 error) *EthTxManagerClientMock_AddWithGas_Call
- func (_c *EthTxManagerClientMock_AddWithGas_Call) Run(...) *EthTxManagerClientMock_AddWithGas_Call
- func (_c *EthTxManagerClientMock_AddWithGas_Call) RunAndReturn(...) *EthTxManagerClientMock_AddWithGas_Call
- type EthTxManagerClientMock_Add_Call
- type EthTxManagerClientMock_EncodeBlobData_Call
- func (_c *EthTxManagerClientMock_EncodeBlobData_Call) Return(_a0 kzg4844.Blob, _a1 error) *EthTxManagerClientMock_EncodeBlobData_Call
- func (_c *EthTxManagerClientMock_EncodeBlobData_Call) Run(run func(data []byte)) *EthTxManagerClientMock_EncodeBlobData_Call
- func (_c *EthTxManagerClientMock_EncodeBlobData_Call) RunAndReturn(run func([]byte) (kzg4844.Blob, error)) *EthTxManagerClientMock_EncodeBlobData_Call
- type EthTxManagerClientMock_Expecter
- func (_e *EthTxManagerClientMock_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, ...) *EthTxManagerClientMock_Add_Call
- func (_e *EthTxManagerClientMock_Expecter) AddWithGas(ctx interface{}, to interface{}, value interface{}, data interface{}, ...) *EthTxManagerClientMock_AddWithGas_Call
- func (_e *EthTxManagerClientMock_Expecter) EncodeBlobData(data interface{}) *EthTxManagerClientMock_EncodeBlobData_Call
- func (_e *EthTxManagerClientMock_Expecter) MakeBlobSidecar(blobs interface{}) *EthTxManagerClientMock_MakeBlobSidecar_Call
- func (_e *EthTxManagerClientMock_Expecter) ProcessPendingMonitoredTxs(ctx interface{}, resultHandler interface{}) *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
- func (_e *EthTxManagerClientMock_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManagerClientMock_Remove_Call
- func (_e *EthTxManagerClientMock_Expecter) RemoveAll(ctx interface{}) *EthTxManagerClientMock_RemoveAll_Call
- func (_e *EthTxManagerClientMock_Expecter) Result(ctx interface{}, id interface{}) *EthTxManagerClientMock_Result_Call
- func (_e *EthTxManagerClientMock_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManagerClientMock_ResultsByStatus_Call
- func (_e *EthTxManagerClientMock_Expecter) Start() *EthTxManagerClientMock_Start_Call
- func (_e *EthTxManagerClientMock_Expecter) Stop() *EthTxManagerClientMock_Stop_Call
- type EthTxManagerClientMock_MakeBlobSidecar_Call
- func (_c *EthTxManagerClientMock_MakeBlobSidecar_Call) Return(_a0 *types.BlobTxSidecar) *EthTxManagerClientMock_MakeBlobSidecar_Call
- func (_c *EthTxManagerClientMock_MakeBlobSidecar_Call) Run(run func(blobs []kzg4844.Blob)) *EthTxManagerClientMock_MakeBlobSidecar_Call
- func (_c *EthTxManagerClientMock_MakeBlobSidecar_Call) RunAndReturn(run func([]kzg4844.Blob) *types.BlobTxSidecar) *EthTxManagerClientMock_MakeBlobSidecar_Call
- type EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
- func (_c *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) Return() *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
- func (_c *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) Run(run func(ctx context.Context, resultHandler ethtxmanager.ResultHandler)) *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
- func (_c *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) RunAndReturn(run func(context.Context, ethtxmanager.ResultHandler)) *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
- type EthTxManagerClientMock_RemoveAll_Call
- func (_c *EthTxManagerClientMock_RemoveAll_Call) Return(_a0 error) *EthTxManagerClientMock_RemoveAll_Call
- func (_c *EthTxManagerClientMock_RemoveAll_Call) Run(run func(ctx context.Context)) *EthTxManagerClientMock_RemoveAll_Call
- func (_c *EthTxManagerClientMock_RemoveAll_Call) RunAndReturn(run func(context.Context) error) *EthTxManagerClientMock_RemoveAll_Call
- type EthTxManagerClientMock_Remove_Call
- func (_c *EthTxManagerClientMock_Remove_Call) Return(_a0 error) *EthTxManagerClientMock_Remove_Call
- func (_c *EthTxManagerClientMock_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerClientMock_Remove_Call
- func (_c *EthTxManagerClientMock_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManagerClientMock_Remove_Call
- type EthTxManagerClientMock_Result_Call
- func (_c *EthTxManagerClientMock_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerClientMock_Result_Call
- func (_c *EthTxManagerClientMock_Result_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerClientMock_Result_Call
- func (_c *EthTxManagerClientMock_Result_Call) RunAndReturn(...) *EthTxManagerClientMock_Result_Call
- type EthTxManagerClientMock_ResultsByStatus_Call
- func (_c *EthTxManagerClientMock_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerClientMock_ResultsByStatus_Call
- func (_c *EthTxManagerClientMock_ResultsByStatus_Call) Run(...) *EthTxManagerClientMock_ResultsByStatus_Call
- func (_c *EthTxManagerClientMock_ResultsByStatus_Call) RunAndReturn(...) *EthTxManagerClientMock_ResultsByStatus_Call
- type EthTxManagerClientMock_Start_Call
- type EthTxManagerClientMock_Stop_Call
- type EthermanMock
- func (_m *EthermanMock) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, ...) (*common.Address, []byte, error)
- func (_m *EthermanMock) EXPECT() *EthermanMock_Expecter
- func (_m *EthermanMock) GetBatchAccInputHash(ctx context.Context, batchNumber uint64) (common.Hash, error)
- func (_m *EthermanMock) GetLatestBlockHeader(ctx context.Context) (*types.Header, error)
- func (_m *EthermanMock) GetLatestVerifiedBatchNum() (uint64, error)
- func (_m *EthermanMock) GetRollupId() uint32
- func (_m *EthermanMock) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- type EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Return(to *common.Address, data []byte, err error) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run(run func(lastVerifiedBatch uint64, newVerifiedBatch uint64, ...)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) RunAndReturn(...) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- type EthermanMock_Expecter
- func (_e *EthermanMock_Expecter) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch interface{}, newVerifiedBatch interface{}, ...) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
- func (_e *EthermanMock_Expecter) GetBatchAccInputHash(ctx interface{}, batchNumber interface{}) *EthermanMock_GetBatchAccInputHash_Call
- func (_e *EthermanMock_Expecter) GetLatestBlockHeader(ctx interface{}) *EthermanMock_GetLatestBlockHeader_Call
- func (_e *EthermanMock_Expecter) GetLatestVerifiedBatchNum() *EthermanMock_GetLatestVerifiedBatchNum_Call
- func (_e *EthermanMock_Expecter) GetRollupId() *EthermanMock_GetRollupId_Call
- func (_e *EthermanMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthermanMock_HeaderByNumber_Call
- type EthermanMock_GetBatchAccInputHash_Call
- func (_c *EthermanMock_GetBatchAccInputHash_Call) Return(_a0 common.Hash, _a1 error) *EthermanMock_GetBatchAccInputHash_Call
- func (_c *EthermanMock_GetBatchAccInputHash_Call) Run(run func(ctx context.Context, batchNumber uint64)) *EthermanMock_GetBatchAccInputHash_Call
- func (_c *EthermanMock_GetBatchAccInputHash_Call) RunAndReturn(run func(context.Context, uint64) (common.Hash, error)) *EthermanMock_GetBatchAccInputHash_Call
- type EthermanMock_GetLatestBlockHeader_Call
- func (_c *EthermanMock_GetLatestBlockHeader_Call) Return(_a0 *types.Header, _a1 error) *EthermanMock_GetLatestBlockHeader_Call
- func (_c *EthermanMock_GetLatestBlockHeader_Call) Run(run func(ctx context.Context)) *EthermanMock_GetLatestBlockHeader_Call
- func (_c *EthermanMock_GetLatestBlockHeader_Call) RunAndReturn(run func(context.Context) (*types.Header, error)) *EthermanMock_GetLatestBlockHeader_Call
- type EthermanMock_GetLatestVerifiedBatchNum_Call
- func (_c *EthermanMock_GetLatestVerifiedBatchNum_Call) Return(_a0 uint64, _a1 error) *EthermanMock_GetLatestVerifiedBatchNum_Call
- func (_c *EthermanMock_GetLatestVerifiedBatchNum_Call) Run(run func()) *EthermanMock_GetLatestVerifiedBatchNum_Call
- func (_c *EthermanMock_GetLatestVerifiedBatchNum_Call) RunAndReturn(run func() (uint64, error)) *EthermanMock_GetLatestVerifiedBatchNum_Call
- type EthermanMock_GetRollupId_Call
- type EthermanMock_HeaderByNumber_Call
- func (_c *EthermanMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthermanMock_HeaderByNumber_Call
- func (_c *EthermanMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthermanMock_HeaderByNumber_Call
- func (_c *EthermanMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthermanMock_HeaderByNumber_Call
- type ProverInterfaceMock
- func (_m *ProverInterfaceMock) Addr() string
- func (_m *ProverInterfaceMock) AggregatedProof(inputProof1 string, inputProof2 string) (*string, error)
- func (_m *ProverInterfaceMock) BatchProof(input *prover.StatelessInputProver) (*string, error)
- func (_m *ProverInterfaceMock) EXPECT() *ProverInterfaceMock_Expecter
- func (_m *ProverInterfaceMock) FinalProof(inputProof string, aggregatorAddr string) (*string, error)
- func (_m *ProverInterfaceMock) ID() string
- func (_m *ProverInterfaceMock) IsIdle() (bool, error)
- func (_m *ProverInterfaceMock) Name() string
- func (_m *ProverInterfaceMock) WaitFinalProof(ctx context.Context, proofID string) (*prover.FinalProof, error)
- func (_m *ProverInterfaceMock) WaitRecursiveProof(ctx context.Context, proofID string) (string, common.Hash, common.Hash, error)
- type ProverInterfaceMock_Addr_Call
- type ProverInterfaceMock_AggregatedProof_Call
- func (_c *ProverInterfaceMock_AggregatedProof_Call) Return(_a0 *string, _a1 error) *ProverInterfaceMock_AggregatedProof_Call
- func (_c *ProverInterfaceMock_AggregatedProof_Call) Run(run func(inputProof1 string, inputProof2 string)) *ProverInterfaceMock_AggregatedProof_Call
- func (_c *ProverInterfaceMock_AggregatedProof_Call) RunAndReturn(run func(string, string) (*string, error)) *ProverInterfaceMock_AggregatedProof_Call
- type ProverInterfaceMock_BatchProof_Call
- func (_c *ProverInterfaceMock_BatchProof_Call) Return(_a0 *string, _a1 error) *ProverInterfaceMock_BatchProof_Call
- func (_c *ProverInterfaceMock_BatchProof_Call) Run(run func(input *prover.StatelessInputProver)) *ProverInterfaceMock_BatchProof_Call
- func (_c *ProverInterfaceMock_BatchProof_Call) RunAndReturn(run func(*prover.StatelessInputProver) (*string, error)) *ProverInterfaceMock_BatchProof_Call
- type ProverInterfaceMock_Expecter
- func (_e *ProverInterfaceMock_Expecter) Addr() *ProverInterfaceMock_Addr_Call
- func (_e *ProverInterfaceMock_Expecter) AggregatedProof(inputProof1 interface{}, inputProof2 interface{}) *ProverInterfaceMock_AggregatedProof_Call
- func (_e *ProverInterfaceMock_Expecter) BatchProof(input interface{}) *ProverInterfaceMock_BatchProof_Call
- func (_e *ProverInterfaceMock_Expecter) FinalProof(inputProof interface{}, aggregatorAddr interface{}) *ProverInterfaceMock_FinalProof_Call
- func (_e *ProverInterfaceMock_Expecter) ID() *ProverInterfaceMock_ID_Call
- func (_e *ProverInterfaceMock_Expecter) IsIdle() *ProverInterfaceMock_IsIdle_Call
- func (_e *ProverInterfaceMock_Expecter) Name() *ProverInterfaceMock_Name_Call
- func (_e *ProverInterfaceMock_Expecter) WaitFinalProof(ctx interface{}, proofID interface{}) *ProverInterfaceMock_WaitFinalProof_Call
- func (_e *ProverInterfaceMock_Expecter) WaitRecursiveProof(ctx interface{}, proofID interface{}) *ProverInterfaceMock_WaitRecursiveProof_Call
- type ProverInterfaceMock_FinalProof_Call
- func (_c *ProverInterfaceMock_FinalProof_Call) Return(_a0 *string, _a1 error) *ProverInterfaceMock_FinalProof_Call
- func (_c *ProverInterfaceMock_FinalProof_Call) Run(run func(inputProof string, aggregatorAddr string)) *ProverInterfaceMock_FinalProof_Call
- func (_c *ProverInterfaceMock_FinalProof_Call) RunAndReturn(run func(string, string) (*string, error)) *ProverInterfaceMock_FinalProof_Call
- type ProverInterfaceMock_ID_Call
- type ProverInterfaceMock_IsIdle_Call
- func (_c *ProverInterfaceMock_IsIdle_Call) Return(_a0 bool, _a1 error) *ProverInterfaceMock_IsIdle_Call
- func (_c *ProverInterfaceMock_IsIdle_Call) Run(run func()) *ProverInterfaceMock_IsIdle_Call
- func (_c *ProverInterfaceMock_IsIdle_Call) RunAndReturn(run func() (bool, error)) *ProverInterfaceMock_IsIdle_Call
- type ProverInterfaceMock_Name_Call
- type ProverInterfaceMock_WaitFinalProof_Call
- func (_c *ProverInterfaceMock_WaitFinalProof_Call) Return(_a0 *prover.FinalProof, _a1 error) *ProverInterfaceMock_WaitFinalProof_Call
- func (_c *ProverInterfaceMock_WaitFinalProof_Call) Run(run func(ctx context.Context, proofID string)) *ProverInterfaceMock_WaitFinalProof_Call
- func (_c *ProverInterfaceMock_WaitFinalProof_Call) RunAndReturn(run func(context.Context, string) (*prover.FinalProof, error)) *ProverInterfaceMock_WaitFinalProof_Call
- type ProverInterfaceMock_WaitRecursiveProof_Call
- func (_c *ProverInterfaceMock_WaitRecursiveProof_Call) Return(_a0 string, _a1 common.Hash, _a2 common.Hash, _a3 error) *ProverInterfaceMock_WaitRecursiveProof_Call
- func (_c *ProverInterfaceMock_WaitRecursiveProof_Call) Run(run func(ctx context.Context, proofID string)) *ProverInterfaceMock_WaitRecursiveProof_Call
- func (_c *ProverInterfaceMock_WaitRecursiveProof_Call) RunAndReturn(run func(context.Context, string) (string, common.Hash, common.Hash, error)) *ProverInterfaceMock_WaitRecursiveProof_Call
- type RPCInterfaceMock
- type RPCInterfaceMock_Expecter
- type RPCInterfaceMock_GetBatch_Call
- func (_c *RPCInterfaceMock_GetBatch_Call) Return(_a0 *types.RPCBatch, _a1 error) *RPCInterfaceMock_GetBatch_Call
- func (_c *RPCInterfaceMock_GetBatch_Call) Run(run func(batchNumber uint64)) *RPCInterfaceMock_GetBatch_Call
- func (_c *RPCInterfaceMock_GetBatch_Call) RunAndReturn(run func(uint64) (*types.RPCBatch, error)) *RPCInterfaceMock_GetBatch_Call
- type RPCInterfaceMock_GetWitness_Call
- func (_c *RPCInterfaceMock_GetWitness_Call) Return(_a0 []byte, _a1 error) *RPCInterfaceMock_GetWitness_Call
- func (_c *RPCInterfaceMock_GetWitness_Call) Run(run func(batchNumber uint64, fullWitness bool)) *RPCInterfaceMock_GetWitness_Call
- func (_c *RPCInterfaceMock_GetWitness_Call) RunAndReturn(run func(uint64, bool) ([]byte, error)) *RPCInterfaceMock_GetWitness_Call
- type StorageInterfaceMock
- func (_m *StorageInterfaceMock) AddGeneratedProof(ctx context.Context, proof *state.Proof, dbTx db.Txer) error
- func (_m *StorageInterfaceMock) AddSequence(ctx context.Context, sequence state.Sequence, dbTx db.Txer) error
- func (_m *StorageInterfaceMock) BeginTx(ctx context.Context, options *sql.TxOptions) (db.Txer, error)
- func (_m *StorageInterfaceMock) CheckProofContainsCompleteSequences(ctx context.Context, proof *state.Proof, dbTx db.Txer) (bool, error)
- func (_m *StorageInterfaceMock) CheckProofExistsForBatch(ctx context.Context, batchNumber uint64, dbTx db.Txer) (bool, error)
- func (_m *StorageInterfaceMock) CleanupGeneratedProofs(ctx context.Context, batchNumber uint64, dbTx db.Txer) error
- func (_m *StorageInterfaceMock) CleanupLockedProofs(ctx context.Context, duration string, dbTx db.Txer) (int64, error)
- func (_m *StorageInterfaceMock) DeleteGeneratedProofs(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx db.Txer) error
- func (_m *StorageInterfaceMock) DeleteUngeneratedProofs(ctx context.Context, dbTx db.Txer) error
- func (_m *StorageInterfaceMock) EXPECT() *StorageInterfaceMock_Expecter
- func (_m *StorageInterfaceMock) GetProofReadyToVerify(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx db.Txer) (*state.Proof, error)
- func (_m *StorageInterfaceMock) GetProofsToAggregate(ctx context.Context, dbTx db.Txer) (*state.Proof, *state.Proof, error)
- func (_m *StorageInterfaceMock) UpdateGeneratedProof(ctx context.Context, proof *state.Proof, dbTx db.Txer) error
- type StorageInterfaceMock_AddGeneratedProof_Call
- func (_c *StorageInterfaceMock_AddGeneratedProof_Call) Return(_a0 error) *StorageInterfaceMock_AddGeneratedProof_Call
- func (_c *StorageInterfaceMock_AddGeneratedProof_Call) Run(run func(ctx context.Context, proof *state.Proof, dbTx db.Txer)) *StorageInterfaceMock_AddGeneratedProof_Call
- func (_c *StorageInterfaceMock_AddGeneratedProof_Call) RunAndReturn(run func(context.Context, *state.Proof, db.Txer) error) *StorageInterfaceMock_AddGeneratedProof_Call
- type StorageInterfaceMock_AddSequence_Call
- func (_c *StorageInterfaceMock_AddSequence_Call) Return(_a0 error) *StorageInterfaceMock_AddSequence_Call
- func (_c *StorageInterfaceMock_AddSequence_Call) Run(run func(ctx context.Context, sequence state.Sequence, dbTx db.Txer)) *StorageInterfaceMock_AddSequence_Call
- func (_c *StorageInterfaceMock_AddSequence_Call) RunAndReturn(run func(context.Context, state.Sequence, db.Txer) error) *StorageInterfaceMock_AddSequence_Call
- type StorageInterfaceMock_BeginTx_Call
- func (_c *StorageInterfaceMock_BeginTx_Call) Return(_a0 db.Txer, _a1 error) *StorageInterfaceMock_BeginTx_Call
- func (_c *StorageInterfaceMock_BeginTx_Call) Run(run func(ctx context.Context, options *sql.TxOptions)) *StorageInterfaceMock_BeginTx_Call
- func (_c *StorageInterfaceMock_BeginTx_Call) RunAndReturn(run func(context.Context, *sql.TxOptions) (db.Txer, error)) *StorageInterfaceMock_BeginTx_Call
- type StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
- func (_c *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) Return(_a0 bool, _a1 error) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
- func (_c *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) Run(run func(ctx context.Context, proof *state.Proof, dbTx db.Txer)) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
- func (_c *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) RunAndReturn(run func(context.Context, *state.Proof, db.Txer) (bool, error)) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
- type StorageInterfaceMock_CheckProofExistsForBatch_Call
- func (_c *StorageInterfaceMock_CheckProofExistsForBatch_Call) Return(_a0 bool, _a1 error) *StorageInterfaceMock_CheckProofExistsForBatch_Call
- func (_c *StorageInterfaceMock_CheckProofExistsForBatch_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx db.Txer)) *StorageInterfaceMock_CheckProofExistsForBatch_Call
- func (_c *StorageInterfaceMock_CheckProofExistsForBatch_Call) RunAndReturn(run func(context.Context, uint64, db.Txer) (bool, error)) *StorageInterfaceMock_CheckProofExistsForBatch_Call
- type StorageInterfaceMock_CleanupGeneratedProofs_Call
- func (_c *StorageInterfaceMock_CleanupGeneratedProofs_Call) Return(_a0 error) *StorageInterfaceMock_CleanupGeneratedProofs_Call
- func (_c *StorageInterfaceMock_CleanupGeneratedProofs_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx db.Txer)) *StorageInterfaceMock_CleanupGeneratedProofs_Call
- func (_c *StorageInterfaceMock_CleanupGeneratedProofs_Call) RunAndReturn(run func(context.Context, uint64, db.Txer) error) *StorageInterfaceMock_CleanupGeneratedProofs_Call
- type StorageInterfaceMock_CleanupLockedProofs_Call
- func (_c *StorageInterfaceMock_CleanupLockedProofs_Call) Return(_a0 int64, _a1 error) *StorageInterfaceMock_CleanupLockedProofs_Call
- func (_c *StorageInterfaceMock_CleanupLockedProofs_Call) Run(run func(ctx context.Context, duration string, dbTx db.Txer)) *StorageInterfaceMock_CleanupLockedProofs_Call
- func (_c *StorageInterfaceMock_CleanupLockedProofs_Call) RunAndReturn(run func(context.Context, string, db.Txer) (int64, error)) *StorageInterfaceMock_CleanupLockedProofs_Call
- type StorageInterfaceMock_DeleteGeneratedProofs_Call
- func (_c *StorageInterfaceMock_DeleteGeneratedProofs_Call) Return(_a0 error) *StorageInterfaceMock_DeleteGeneratedProofs_Call
- func (_c *StorageInterfaceMock_DeleteGeneratedProofs_Call) Run(...) *StorageInterfaceMock_DeleteGeneratedProofs_Call
- func (_c *StorageInterfaceMock_DeleteGeneratedProofs_Call) RunAndReturn(run func(context.Context, uint64, uint64, db.Txer) error) *StorageInterfaceMock_DeleteGeneratedProofs_Call
- type StorageInterfaceMock_DeleteUngeneratedProofs_Call
- func (_c *StorageInterfaceMock_DeleteUngeneratedProofs_Call) Return(_a0 error) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
- func (_c *StorageInterfaceMock_DeleteUngeneratedProofs_Call) Run(run func(ctx context.Context, dbTx db.Txer)) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
- func (_c *StorageInterfaceMock_DeleteUngeneratedProofs_Call) RunAndReturn(run func(context.Context, db.Txer) error) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
- type StorageInterfaceMock_Expecter
- func (_e *StorageInterfaceMock_Expecter) AddGeneratedProof(ctx interface{}, proof interface{}, dbTx interface{}) *StorageInterfaceMock_AddGeneratedProof_Call
- func (_e *StorageInterfaceMock_Expecter) AddSequence(ctx interface{}, sequence interface{}, dbTx interface{}) *StorageInterfaceMock_AddSequence_Call
- func (_e *StorageInterfaceMock_Expecter) BeginTx(ctx interface{}, options interface{}) *StorageInterfaceMock_BeginTx_Call
- func (_e *StorageInterfaceMock_Expecter) CheckProofContainsCompleteSequences(ctx interface{}, proof interface{}, dbTx interface{}) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
- func (_e *StorageInterfaceMock_Expecter) CheckProofExistsForBatch(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StorageInterfaceMock_CheckProofExistsForBatch_Call
- func (_e *StorageInterfaceMock_Expecter) CleanupGeneratedProofs(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StorageInterfaceMock_CleanupGeneratedProofs_Call
- func (_e *StorageInterfaceMock_Expecter) CleanupLockedProofs(ctx interface{}, duration interface{}, dbTx interface{}) *StorageInterfaceMock_CleanupLockedProofs_Call
- func (_e *StorageInterfaceMock_Expecter) DeleteGeneratedProofs(ctx interface{}, batchNumber interface{}, batchNumberFinal interface{}, ...) *StorageInterfaceMock_DeleteGeneratedProofs_Call
- func (_e *StorageInterfaceMock_Expecter) DeleteUngeneratedProofs(ctx interface{}, dbTx interface{}) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
- func (_e *StorageInterfaceMock_Expecter) GetProofReadyToVerify(ctx interface{}, lastVerfiedBatchNumber interface{}, dbTx interface{}) *StorageInterfaceMock_GetProofReadyToVerify_Call
- func (_e *StorageInterfaceMock_Expecter) GetProofsToAggregate(ctx interface{}, dbTx interface{}) *StorageInterfaceMock_GetProofsToAggregate_Call
- func (_e *StorageInterfaceMock_Expecter) UpdateGeneratedProof(ctx interface{}, proof interface{}, dbTx interface{}) *StorageInterfaceMock_UpdateGeneratedProof_Call
- type StorageInterfaceMock_GetProofReadyToVerify_Call
- func (_c *StorageInterfaceMock_GetProofReadyToVerify_Call) Return(_a0 *state.Proof, _a1 error) *StorageInterfaceMock_GetProofReadyToVerify_Call
- func (_c *StorageInterfaceMock_GetProofReadyToVerify_Call) Run(run func(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx db.Txer)) *StorageInterfaceMock_GetProofReadyToVerify_Call
- func (_c *StorageInterfaceMock_GetProofReadyToVerify_Call) RunAndReturn(run func(context.Context, uint64, db.Txer) (*state.Proof, error)) *StorageInterfaceMock_GetProofReadyToVerify_Call
- type StorageInterfaceMock_GetProofsToAggregate_Call
- func (_c *StorageInterfaceMock_GetProofsToAggregate_Call) Return(_a0 *state.Proof, _a1 *state.Proof, _a2 error) *StorageInterfaceMock_GetProofsToAggregate_Call
- func (_c *StorageInterfaceMock_GetProofsToAggregate_Call) Run(run func(ctx context.Context, dbTx db.Txer)) *StorageInterfaceMock_GetProofsToAggregate_Call
- func (_c *StorageInterfaceMock_GetProofsToAggregate_Call) RunAndReturn(run func(context.Context, db.Txer) (*state.Proof, *state.Proof, error)) *StorageInterfaceMock_GetProofsToAggregate_Call
- type StorageInterfaceMock_UpdateGeneratedProof_Call
- func (_c *StorageInterfaceMock_UpdateGeneratedProof_Call) Return(_a0 error) *StorageInterfaceMock_UpdateGeneratedProof_Call
- func (_c *StorageInterfaceMock_UpdateGeneratedProof_Call) Run(run func(ctx context.Context, proof *state.Proof, dbTx db.Txer)) *StorageInterfaceMock_UpdateGeneratedProof_Call
- func (_c *StorageInterfaceMock_UpdateGeneratedProof_Call) RunAndReturn(run func(context.Context, *state.Proof, db.Txer) error) *StorageInterfaceMock_UpdateGeneratedProof_Call
- type SynchronizerInterfaceMock
- func (_m *SynchronizerInterfaceMock) EXPECT() *SynchronizerInterfaceMock_Expecter
- func (_m *SynchronizerInterfaceMock) GetL1BlockByNumber(ctx context.Context, blockNumber uint64) (*synchronizer.L1Block, error)
- func (_m *SynchronizerInterfaceMock) GetL1InfoRootPerIndex(ctx context.Context, L1InfoTreeIndex uint32) (common.Hash, error)
- func (_m *SynchronizerInterfaceMock) GetL1InfoTreeLeaves(ctx context.Context, indexLeaves []uint32) (map[uint32]synchronizer.L1InfoTreeLeaf, error)
- func (_m *SynchronizerInterfaceMock) GetLastL1Block(ctx context.Context) (*synchronizer.L1Block, error)
- func (_m *SynchronizerInterfaceMock) GetLastestVirtualBatchNumber(ctx context.Context) (uint64, error)
- func (_m *SynchronizerInterfaceMock) GetLeafsByL1InfoRoot(ctx context.Context, l1InfoRoot common.Hash) ([]synchronizer.L1InfoTreeLeaf, error)
- func (_m *SynchronizerInterfaceMock) GetSequenceByBatchNumber(ctx context.Context, batchNumber uint64) (*synchronizer.SequencedBatches, error)
- func (_m *SynchronizerInterfaceMock) GetVirtualBatchByBatchNumber(ctx context.Context, batchNumber uint64) (*synchronizer.VirtualBatch, error)
- func (_m *SynchronizerInterfaceMock) IsSynced() bool
- func (_m *SynchronizerInterfaceMock) SetCallbackOnReorgDone(callback func(synchronizer.ReorgExecutionResult))
- func (_m *SynchronizerInterfaceMock) SetCallbackOnRollbackBatches(callback func(synchronizer.RollbackBatchesData))
- func (_m *SynchronizerInterfaceMock) Stop()
- func (_m *SynchronizerInterfaceMock) Sync(returnOnSync bool) error
- type SynchronizerInterfaceMock_Expecter
- func (_e *SynchronizerInterfaceMock_Expecter) GetL1BlockByNumber(ctx interface{}, blockNumber interface{}) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetL1InfoRootPerIndex(ctx interface{}, L1InfoTreeIndex interface{}) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetL1InfoTreeLeaves(ctx interface{}, indexLeaves interface{}) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetLastL1Block(ctx interface{}) *SynchronizerInterfaceMock_GetLastL1Block_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetLastestVirtualBatchNumber(ctx interface{}) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetLeafsByL1InfoRoot(ctx interface{}, l1InfoRoot interface{}) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetSequenceByBatchNumber(ctx interface{}, batchNumber interface{}) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
- func (_e *SynchronizerInterfaceMock_Expecter) GetVirtualBatchByBatchNumber(ctx interface{}, batchNumber interface{}) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
- func (_e *SynchronizerInterfaceMock_Expecter) IsSynced() *SynchronizerInterfaceMock_IsSynced_Call
- func (_e *SynchronizerInterfaceMock_Expecter) SetCallbackOnReorgDone(callback interface{}) *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
- func (_e *SynchronizerInterfaceMock_Expecter) SetCallbackOnRollbackBatches(callback interface{}) *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
- func (_e *SynchronizerInterfaceMock_Expecter) Stop() *SynchronizerInterfaceMock_Stop_Call
- func (_e *SynchronizerInterfaceMock_Expecter) Sync(returnOnSync interface{}) *SynchronizerInterfaceMock_Sync_Call
- type SynchronizerInterfaceMock_GetL1BlockByNumber_Call
- func (_c *SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Return(_a0 *synchronizer.L1Block, _a1 error) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
- func (_c *SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Run(run func(ctx context.Context, blockNumber uint64)) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
- func (_c *SynchronizerInterfaceMock_GetL1BlockByNumber_Call) RunAndReturn(run func(context.Context, uint64) (*synchronizer.L1Block, error)) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
- type SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
- func (_c *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Return(_a0 common.Hash, _a1 error) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
- func (_c *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Run(run func(ctx context.Context, L1InfoTreeIndex uint32)) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
- func (_c *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) RunAndReturn(run func(context.Context, uint32) (common.Hash, error)) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
- type SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
- func (_c *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Return(_a0 map[uint32]synchronizer.L1InfoTreeLeaf, _a1 error) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
- func (_c *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Run(run func(ctx context.Context, indexLeaves []uint32)) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
- func (_c *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) RunAndReturn(...) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
- type SynchronizerInterfaceMock_GetLastL1Block_Call
- func (_c *SynchronizerInterfaceMock_GetLastL1Block_Call) Return(_a0 *synchronizer.L1Block, _a1 error) *SynchronizerInterfaceMock_GetLastL1Block_Call
- func (_c *SynchronizerInterfaceMock_GetLastL1Block_Call) Run(run func(ctx context.Context)) *SynchronizerInterfaceMock_GetLastL1Block_Call
- func (_c *SynchronizerInterfaceMock_GetLastL1Block_Call) RunAndReturn(run func(context.Context) (*synchronizer.L1Block, error)) *SynchronizerInterfaceMock_GetLastL1Block_Call
- type SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) Return(_a0 uint64, _a1 error) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) Run(run func(ctx context.Context)) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
- type SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
- func (_c *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Return(_a0 []synchronizer.L1InfoTreeLeaf, _a1 error) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
- func (_c *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Run(run func(ctx context.Context, l1InfoRoot common.Hash)) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
- func (_c *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) RunAndReturn(run func(context.Context, common.Hash) ([]synchronizer.L1InfoTreeLeaf, error)) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
- type SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) Return(_a0 *synchronizer.SequencedBatches, _a1 error) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) Run(run func(ctx context.Context, batchNumber uint64)) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) RunAndReturn(run func(context.Context, uint64) (*synchronizer.SequencedBatches, error)) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
- type SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) Return(_a0 *synchronizer.VirtualBatch, _a1 error) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) Run(run func(ctx context.Context, batchNumber uint64)) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
- func (_c *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) RunAndReturn(run func(context.Context, uint64) (*synchronizer.VirtualBatch, error)) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
- type SynchronizerInterfaceMock_IsSynced_Call
- func (_c *SynchronizerInterfaceMock_IsSynced_Call) Return(_a0 bool) *SynchronizerInterfaceMock_IsSynced_Call
- func (_c *SynchronizerInterfaceMock_IsSynced_Call) Run(run func()) *SynchronizerInterfaceMock_IsSynced_Call
- func (_c *SynchronizerInterfaceMock_IsSynced_Call) RunAndReturn(run func() bool) *SynchronizerInterfaceMock_IsSynced_Call
- type SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
- func (_c *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) Return() *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
- func (_c *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) Run(run func(callback func(synchronizer.ReorgExecutionResult))) *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
- func (_c *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) RunAndReturn(run func(func(synchronizer.ReorgExecutionResult))) *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
- type SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
- func (_c *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) Return() *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
- func (_c *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) Run(run func(callback func(synchronizer.RollbackBatchesData))) *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
- func (_c *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) RunAndReturn(run func(func(synchronizer.RollbackBatchesData))) *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
- type SynchronizerInterfaceMock_Stop_Call
- func (_c *SynchronizerInterfaceMock_Stop_Call) Return() *SynchronizerInterfaceMock_Stop_Call
- func (_c *SynchronizerInterfaceMock_Stop_Call) Run(run func()) *SynchronizerInterfaceMock_Stop_Call
- func (_c *SynchronizerInterfaceMock_Stop_Call) RunAndReturn(run func()) *SynchronizerInterfaceMock_Stop_Call
- type SynchronizerInterfaceMock_Sync_Call
- func (_c *SynchronizerInterfaceMock_Sync_Call) Return(_a0 error) *SynchronizerInterfaceMock_Sync_Call
- func (_c *SynchronizerInterfaceMock_Sync_Call) Run(run func(returnOnSync bool)) *SynchronizerInterfaceMock_Sync_Call
- func (_c *SynchronizerInterfaceMock_Sync_Call) RunAndReturn(run func(bool) error) *SynchronizerInterfaceMock_Sync_Call
- type TxerMock
- func (_m *TxerMock) AddCommitCallback(cb func())
- func (_m *TxerMock) AddRollbackCallback(cb func())
- func (_m *TxerMock) Commit() error
- func (_m *TxerMock) EXPECT() *TxerMock_Expecter
- func (_m *TxerMock) Exec(query string, args ...interface{}) (sql.Result, error)
- func (_m *TxerMock) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *TxerMock) QueryRow(query string, args ...interface{}) *sql.Row
- func (_m *TxerMock) Rollback() error
- type TxerMock_AddCommitCallback_Call
- type TxerMock_AddRollbackCallback_Call
- func (_c *TxerMock_AddRollbackCallback_Call) Return() *TxerMock_AddRollbackCallback_Call
- func (_c *TxerMock_AddRollbackCallback_Call) Run(run func(cb func())) *TxerMock_AddRollbackCallback_Call
- func (_c *TxerMock_AddRollbackCallback_Call) RunAndReturn(run func(func())) *TxerMock_AddRollbackCallback_Call
- type TxerMock_Commit_Call
- type TxerMock_Exec_Call
- type TxerMock_Expecter
- func (_e *TxerMock_Expecter) AddCommitCallback(cb interface{}) *TxerMock_AddCommitCallback_Call
- func (_e *TxerMock_Expecter) AddRollbackCallback(cb interface{}) *TxerMock_AddRollbackCallback_Call
- func (_e *TxerMock_Expecter) Commit() *TxerMock_Commit_Call
- func (_e *TxerMock_Expecter) Exec(query interface{}, args ...interface{}) *TxerMock_Exec_Call
- func (_e *TxerMock_Expecter) Query(query interface{}, args ...interface{}) *TxerMock_Query_Call
- func (_e *TxerMock_Expecter) QueryRow(query interface{}, args ...interface{}) *TxerMock_QueryRow_Call
- func (_e *TxerMock_Expecter) Rollback() *TxerMock_Rollback_Call
- type TxerMock_QueryRow_Call
- type TxerMock_Query_Call
- func (_c *TxerMock_Query_Call) Return(_a0 *sql.Rows, _a1 error) *TxerMock_Query_Call
- func (_c *TxerMock_Query_Call) Run(run func(query string, args ...interface{})) *TxerMock_Query_Call
- func (_c *TxerMock_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *TxerMock_Query_Call
- type TxerMock_Rollback_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthTxManagerClientMock ¶
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 (_m *EthTxManagerClientMock) EXPECT() *EthTxManagerClientMock_Expecter
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) RemoveAll ¶
func (_m *EthTxManagerClientMock) RemoveAll(ctx context.Context) error
RemoveAll provides a mock function with given fields: ctx
func (*EthTxManagerClientMock) Result ¶
func (_m *EthTxManagerClientMock) Result(ctx context.Context, id common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, id
func (*EthTxManagerClientMock) ResultsByStatus ¶
func (_m *EthTxManagerClientMock) ResultsByStatus(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)
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 ¶
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 (_c *EthTxManagerClientMock_AddWithGas_Call) Return(_a0 common.Hash, _a1 error) *EthTxManagerClientMock_AddWithGas_Call
func (*EthTxManagerClientMock_AddWithGas_Call) Run ¶
func (_c *EthTxManagerClientMock_AddWithGas_Call) Run(run func(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64)) *EthTxManagerClientMock_AddWithGas_Call
func (*EthTxManagerClientMock_AddWithGas_Call) RunAndReturn ¶
type EthTxManagerClientMock_Add_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 (_c *EthTxManagerClientMock_Add_Call) Return(_a0 common.Hash, _a1 error) *EthTxManagerClientMock_Add_Call
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 ¶
func (_c *EthTxManagerClientMock_Add_Call) RunAndReturn(run func(context.Context, *common.Address, *big.Int, []byte, uint64, *types.BlobTxSidecar) (common.Hash, error)) *EthTxManagerClientMock_Add_Call
type EthTxManagerClientMock_EncodeBlobData_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 (_c *EthTxManagerClientMock_EncodeBlobData_Call) Return(_a0 kzg4844.Blob, _a1 error) *EthTxManagerClientMock_EncodeBlobData_Call
func (*EthTxManagerClientMock_EncodeBlobData_Call) Run ¶
func (_c *EthTxManagerClientMock_EncodeBlobData_Call) Run(run func(data []byte)) *EthTxManagerClientMock_EncodeBlobData_Call
func (*EthTxManagerClientMock_EncodeBlobData_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_EncodeBlobData_Call) RunAndReturn(run func([]byte) (kzg4844.Blob, error)) *EthTxManagerClientMock_EncodeBlobData_Call
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 ¶
func (_e *EthTxManagerClientMock_Expecter) EncodeBlobData(data interface{}) *EthTxManagerClientMock_EncodeBlobData_Call
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 ¶
func (_e *EthTxManagerClientMock_Expecter) RemoveAll(ctx interface{}) *EthTxManagerClientMock_RemoveAll_Call
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 ¶
func (_e *EthTxManagerClientMock_Expecter) Start() *EthTxManagerClientMock_Start_Call
Start is a helper method to define mock.On call
func (*EthTxManagerClientMock_Expecter) Stop ¶
func (_e *EthTxManagerClientMock_Expecter) Stop() *EthTxManagerClientMock_Stop_Call
Stop is a helper method to define mock.On call
type EthTxManagerClientMock_MakeBlobSidecar_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 (_c *EthTxManagerClientMock_MakeBlobSidecar_Call) Return(_a0 *types.BlobTxSidecar) *EthTxManagerClientMock_MakeBlobSidecar_Call
func (*EthTxManagerClientMock_MakeBlobSidecar_Call) Run ¶
func (_c *EthTxManagerClientMock_MakeBlobSidecar_Call) Run(run func(blobs []kzg4844.Blob)) *EthTxManagerClientMock_MakeBlobSidecar_Call
func (*EthTxManagerClientMock_MakeBlobSidecar_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_MakeBlobSidecar_Call) RunAndReturn(run func([]kzg4844.Blob) *types.BlobTxSidecar) *EthTxManagerClientMock_MakeBlobSidecar_Call
type EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call ¶
EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessPendingMonitoredTxs'
func (*EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) Run ¶
func (_c *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) Run(run func(ctx context.Context, resultHandler ethtxmanager.ResultHandler)) *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
func (*EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call) RunAndReturn(run func(context.Context, ethtxmanager.ResultHandler)) *EthTxManagerClientMock_ProcessPendingMonitoredTxs_Call
type EthTxManagerClientMock_RemoveAll_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 (_c *EthTxManagerClientMock_RemoveAll_Call) Return(_a0 error) *EthTxManagerClientMock_RemoveAll_Call
func (*EthTxManagerClientMock_RemoveAll_Call) Run ¶
func (_c *EthTxManagerClientMock_RemoveAll_Call) Run(run func(ctx context.Context)) *EthTxManagerClientMock_RemoveAll_Call
func (*EthTxManagerClientMock_RemoveAll_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_RemoveAll_Call) RunAndReturn(run func(context.Context) error) *EthTxManagerClientMock_RemoveAll_Call
type EthTxManagerClientMock_Remove_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 (_c *EthTxManagerClientMock_Remove_Call) Return(_a0 error) *EthTxManagerClientMock_Remove_Call
func (*EthTxManagerClientMock_Remove_Call) Run ¶
func (_c *EthTxManagerClientMock_Remove_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerClientMock_Remove_Call
func (*EthTxManagerClientMock_Remove_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_Remove_Call) RunAndReturn(run func(context.Context, common.Hash) error) *EthTxManagerClientMock_Remove_Call
type EthTxManagerClientMock_Result_Call ¶
EthTxManagerClientMock_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*EthTxManagerClientMock_Result_Call) Return ¶
func (_c *EthTxManagerClientMock_Result_Call) Return(_a0 zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerClientMock_Result_Call
func (*EthTxManagerClientMock_Result_Call) Run ¶
func (_c *EthTxManagerClientMock_Result_Call) Run(run func(ctx context.Context, id common.Hash)) *EthTxManagerClientMock_Result_Call
func (*EthTxManagerClientMock_Result_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_Result_Call) RunAndReturn(run func(context.Context, common.Hash) (zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManagerClientMock_Result_Call
type EthTxManagerClientMock_ResultsByStatus_Call ¶
EthTxManagerClientMock_ResultsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResultsByStatus'
func (*EthTxManagerClientMock_ResultsByStatus_Call) Return ¶
func (_c *EthTxManagerClientMock_ResultsByStatus_Call) Return(_a0 []zkevm_ethtx_managertypes.MonitoredTxResult, _a1 error) *EthTxManagerClientMock_ResultsByStatus_Call
func (*EthTxManagerClientMock_ResultsByStatus_Call) Run ¶
func (_c *EthTxManagerClientMock_ResultsByStatus_Call) Run(run func(ctx context.Context, statuses []zkevm_ethtx_managertypes.MonitoredTxStatus)) *EthTxManagerClientMock_ResultsByStatus_Call
func (*EthTxManagerClientMock_ResultsByStatus_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_ResultsByStatus_Call) RunAndReturn(run func(context.Context, []zkevm_ethtx_managertypes.MonitoredTxStatus) ([]zkevm_ethtx_managertypes.MonitoredTxResult, error)) *EthTxManagerClientMock_ResultsByStatus_Call
type EthTxManagerClientMock_Start_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 (_c *EthTxManagerClientMock_Start_Call) Return() *EthTxManagerClientMock_Start_Call
func (*EthTxManagerClientMock_Start_Call) Run ¶
func (_c *EthTxManagerClientMock_Start_Call) Run(run func()) *EthTxManagerClientMock_Start_Call
func (*EthTxManagerClientMock_Start_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_Start_Call) RunAndReturn(run func()) *EthTxManagerClientMock_Start_Call
type EthTxManagerClientMock_Stop_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 (_c *EthTxManagerClientMock_Stop_Call) Return() *EthTxManagerClientMock_Stop_Call
func (*EthTxManagerClientMock_Stop_Call) Run ¶
func (_c *EthTxManagerClientMock_Stop_Call) Run(run func()) *EthTxManagerClientMock_Stop_Call
func (*EthTxManagerClientMock_Stop_Call) RunAndReturn ¶
func (_c *EthTxManagerClientMock_Stop_Call) RunAndReturn(run func()) *EthTxManagerClientMock_Stop_Call
type EthermanMock ¶
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 ¶
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 ¶
HeaderByNumber provides a mock function with given fields: ctx, number
type EthermanMock_BuildTrustedVerifyBatchesTxData_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 (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Return(to *common.Address, data []byte, err error) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run ¶
func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) Run(run func(lastVerifiedBatch uint64, newVerifiedBatch uint64, inputs *ethmantypes.FinalProofInputs, beneficiary common.Address)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
func (*EthermanMock_BuildTrustedVerifyBatchesTxData_Call) RunAndReturn ¶
func (_c *EthermanMock_BuildTrustedVerifyBatchesTxData_Call) RunAndReturn(run func(uint64, uint64, *ethmantypes.FinalProofInputs, common.Address) (*common.Address, []byte, error)) *EthermanMock_BuildTrustedVerifyBatchesTxData_Call
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 ¶
func (_e *EthermanMock_Expecter) GetRollupId() *EthermanMock_GetRollupId_Call
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 ¶
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 (_c *EthermanMock_GetBatchAccInputHash_Call) Return(_a0 common.Hash, _a1 error) *EthermanMock_GetBatchAccInputHash_Call
func (*EthermanMock_GetBatchAccInputHash_Call) Run ¶
func (_c *EthermanMock_GetBatchAccInputHash_Call) Run(run func(ctx context.Context, batchNumber uint64)) *EthermanMock_GetBatchAccInputHash_Call
func (*EthermanMock_GetBatchAccInputHash_Call) RunAndReturn ¶
func (_c *EthermanMock_GetBatchAccInputHash_Call) RunAndReturn(run func(context.Context, uint64) (common.Hash, error)) *EthermanMock_GetBatchAccInputHash_Call
type EthermanMock_GetLatestBlockHeader_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 (_c *EthermanMock_GetLatestBlockHeader_Call) Return(_a0 *types.Header, _a1 error) *EthermanMock_GetLatestBlockHeader_Call
func (*EthermanMock_GetLatestBlockHeader_Call) Run ¶
func (_c *EthermanMock_GetLatestBlockHeader_Call) Run(run func(ctx context.Context)) *EthermanMock_GetLatestBlockHeader_Call
func (*EthermanMock_GetLatestBlockHeader_Call) RunAndReturn ¶
func (_c *EthermanMock_GetLatestBlockHeader_Call) RunAndReturn(run func(context.Context) (*types.Header, error)) *EthermanMock_GetLatestBlockHeader_Call
type EthermanMock_GetLatestVerifiedBatchNum_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 (_c *EthermanMock_GetLatestVerifiedBatchNum_Call) Return(_a0 uint64, _a1 error) *EthermanMock_GetLatestVerifiedBatchNum_Call
func (*EthermanMock_GetLatestVerifiedBatchNum_Call) Run ¶
func (_c *EthermanMock_GetLatestVerifiedBatchNum_Call) Run(run func()) *EthermanMock_GetLatestVerifiedBatchNum_Call
func (*EthermanMock_GetLatestVerifiedBatchNum_Call) RunAndReturn ¶
func (_c *EthermanMock_GetLatestVerifiedBatchNum_Call) RunAndReturn(run func() (uint64, error)) *EthermanMock_GetLatestVerifiedBatchNum_Call
type EthermanMock_GetRollupId_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 (_c *EthermanMock_GetRollupId_Call) Return(_a0 uint32) *EthermanMock_GetRollupId_Call
func (*EthermanMock_GetRollupId_Call) Run ¶
func (_c *EthermanMock_GetRollupId_Call) Run(run func()) *EthermanMock_GetRollupId_Call
func (*EthermanMock_GetRollupId_Call) RunAndReturn ¶
func (_c *EthermanMock_GetRollupId_Call) RunAndReturn(run func() uint32) *EthermanMock_GetRollupId_Call
type EthermanMock_HeaderByNumber_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 (_c *EthermanMock_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *EthermanMock_HeaderByNumber_Call
func (*EthermanMock_HeaderByNumber_Call) Run ¶
func (_c *EthermanMock_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *EthermanMock_HeaderByNumber_Call
func (*EthermanMock_HeaderByNumber_Call) RunAndReturn ¶
func (_c *EthermanMock_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *EthermanMock_HeaderByNumber_Call
type ProverInterfaceMock ¶
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 (_m *ProverInterfaceMock) EXPECT() *ProverInterfaceMock_Expecter
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
type ProverInterfaceMock_Addr_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 (_c *ProverInterfaceMock_Addr_Call) Return(_a0 string) *ProverInterfaceMock_Addr_Call
func (*ProverInterfaceMock_Addr_Call) Run ¶
func (_c *ProverInterfaceMock_Addr_Call) Run(run func()) *ProverInterfaceMock_Addr_Call
func (*ProverInterfaceMock_Addr_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_Addr_Call) RunAndReturn(run func() string) *ProverInterfaceMock_Addr_Call
type ProverInterfaceMock_AggregatedProof_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 (_c *ProverInterfaceMock_AggregatedProof_Call) Return(_a0 *string, _a1 error) *ProverInterfaceMock_AggregatedProof_Call
func (*ProverInterfaceMock_AggregatedProof_Call) Run ¶
func (_c *ProverInterfaceMock_AggregatedProof_Call) Run(run func(inputProof1 string, inputProof2 string)) *ProverInterfaceMock_AggregatedProof_Call
func (*ProverInterfaceMock_AggregatedProof_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_AggregatedProof_Call) RunAndReturn(run func(string, string) (*string, error)) *ProverInterfaceMock_AggregatedProof_Call
type ProverInterfaceMock_BatchProof_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 (_c *ProverInterfaceMock_BatchProof_Call) Return(_a0 *string, _a1 error) *ProverInterfaceMock_BatchProof_Call
func (*ProverInterfaceMock_BatchProof_Call) Run ¶
func (_c *ProverInterfaceMock_BatchProof_Call) Run(run func(input *prover.StatelessInputProver)) *ProverInterfaceMock_BatchProof_Call
func (*ProverInterfaceMock_BatchProof_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_BatchProof_Call) RunAndReturn(run func(*prover.StatelessInputProver) (*string, error)) *ProverInterfaceMock_BatchProof_Call
type ProverInterfaceMock_Expecter ¶
type ProverInterfaceMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ProverInterfaceMock_Expecter) Addr ¶
func (_e *ProverInterfaceMock_Expecter) Addr() *ProverInterfaceMock_Addr_Call
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 ¶
func (_e *ProverInterfaceMock_Expecter) ID() *ProverInterfaceMock_ID_Call
ID is a helper method to define mock.On call
func (*ProverInterfaceMock_Expecter) IsIdle ¶
func (_e *ProverInterfaceMock_Expecter) IsIdle() *ProverInterfaceMock_IsIdle_Call
IsIdle is a helper method to define mock.On call
func (*ProverInterfaceMock_Expecter) Name ¶
func (_e *ProverInterfaceMock_Expecter) Name() *ProverInterfaceMock_Name_Call
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 ¶
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 (_c *ProverInterfaceMock_FinalProof_Call) Return(_a0 *string, _a1 error) *ProverInterfaceMock_FinalProof_Call
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 ¶
func (_c *ProverInterfaceMock_FinalProof_Call) RunAndReturn(run func(string, string) (*string, error)) *ProverInterfaceMock_FinalProof_Call
type ProverInterfaceMock_ID_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 (_c *ProverInterfaceMock_ID_Call) Return(_a0 string) *ProverInterfaceMock_ID_Call
func (*ProverInterfaceMock_ID_Call) Run ¶
func (_c *ProverInterfaceMock_ID_Call) Run(run func()) *ProverInterfaceMock_ID_Call
func (*ProverInterfaceMock_ID_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_ID_Call) RunAndReturn(run func() string) *ProverInterfaceMock_ID_Call
type ProverInterfaceMock_IsIdle_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 (_c *ProverInterfaceMock_IsIdle_Call) Return(_a0 bool, _a1 error) *ProverInterfaceMock_IsIdle_Call
func (*ProverInterfaceMock_IsIdle_Call) Run ¶
func (_c *ProverInterfaceMock_IsIdle_Call) Run(run func()) *ProverInterfaceMock_IsIdle_Call
func (*ProverInterfaceMock_IsIdle_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_IsIdle_Call) RunAndReturn(run func() (bool, error)) *ProverInterfaceMock_IsIdle_Call
type ProverInterfaceMock_Name_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 (_c *ProverInterfaceMock_Name_Call) Return(_a0 string) *ProverInterfaceMock_Name_Call
func (*ProverInterfaceMock_Name_Call) Run ¶
func (_c *ProverInterfaceMock_Name_Call) Run(run func()) *ProverInterfaceMock_Name_Call
func (*ProverInterfaceMock_Name_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_Name_Call) RunAndReturn(run func() string) *ProverInterfaceMock_Name_Call
type ProverInterfaceMock_WaitFinalProof_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 (_c *ProverInterfaceMock_WaitFinalProof_Call) Return(_a0 *prover.FinalProof, _a1 error) *ProverInterfaceMock_WaitFinalProof_Call
func (*ProverInterfaceMock_WaitFinalProof_Call) Run ¶
func (_c *ProverInterfaceMock_WaitFinalProof_Call) Run(run func(ctx context.Context, proofID string)) *ProverInterfaceMock_WaitFinalProof_Call
func (*ProverInterfaceMock_WaitFinalProof_Call) RunAndReturn ¶
func (_c *ProverInterfaceMock_WaitFinalProof_Call) RunAndReturn(run func(context.Context, string) (*prover.FinalProof, error)) *ProverInterfaceMock_WaitFinalProof_Call
type ProverInterfaceMock_WaitRecursiveProof_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 (_c *ProverInterfaceMock_WaitRecursiveProof_Call) Return(_a0 string, _a1 common.Hash, _a2 common.Hash, _a3 error) *ProverInterfaceMock_WaitRecursiveProof_Call
func (*ProverInterfaceMock_WaitRecursiveProof_Call) Run ¶
func (_c *ProverInterfaceMock_WaitRecursiveProof_Call) Run(run func(ctx context.Context, proofID string)) *ProverInterfaceMock_WaitRecursiveProof_Call
func (*ProverInterfaceMock_WaitRecursiveProof_Call) RunAndReturn ¶
type RPCInterfaceMock ¶ added in v0.4.0
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 (_m *RPCInterfaceMock) EXPECT() *RPCInterfaceMock_Expecter
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 ¶
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 (_c *RPCInterfaceMock_GetBatch_Call) Return(_a0 *types.RPCBatch, _a1 error) *RPCInterfaceMock_GetBatch_Call
func (*RPCInterfaceMock_GetBatch_Call) Run ¶
func (_c *RPCInterfaceMock_GetBatch_Call) Run(run func(batchNumber uint64)) *RPCInterfaceMock_GetBatch_Call
func (*RPCInterfaceMock_GetBatch_Call) RunAndReturn ¶
func (_c *RPCInterfaceMock_GetBatch_Call) RunAndReturn(run func(uint64) (*types.RPCBatch, error)) *RPCInterfaceMock_GetBatch_Call
type RPCInterfaceMock_GetWitness_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 (_c *RPCInterfaceMock_GetWitness_Call) Return(_a0 []byte, _a1 error) *RPCInterfaceMock_GetWitness_Call
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 ¶
func (_c *RPCInterfaceMock_GetWitness_Call) RunAndReturn(run func(uint64, bool) ([]byte, error)) *RPCInterfaceMock_GetWitness_Call
type StorageInterfaceMock ¶ added in v0.5.0
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
DeleteUngeneratedProofs provides a mock function with given fields: ctx, dbTx
func (*StorageInterfaceMock) EXPECT ¶
func (_m *StorageInterfaceMock) EXPECT() *StorageInterfaceMock_Expecter
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 ¶
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 (_c *StorageInterfaceMock_AddGeneratedProof_Call) Return(_a0 error) *StorageInterfaceMock_AddGeneratedProof_Call
func (*StorageInterfaceMock_AddGeneratedProof_Call) Run ¶
func (_c *StorageInterfaceMock_AddGeneratedProof_Call) Run(run func(ctx context.Context, proof *state.Proof, dbTx db.Txer)) *StorageInterfaceMock_AddGeneratedProof_Call
func (*StorageInterfaceMock_AddGeneratedProof_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_AddGeneratedProof_Call) RunAndReturn(run func(context.Context, *state.Proof, db.Txer) error) *StorageInterfaceMock_AddGeneratedProof_Call
type StorageInterfaceMock_AddSequence_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 (_c *StorageInterfaceMock_AddSequence_Call) Return(_a0 error) *StorageInterfaceMock_AddSequence_Call
func (*StorageInterfaceMock_AddSequence_Call) Run ¶
func (_c *StorageInterfaceMock_AddSequence_Call) Run(run func(ctx context.Context, sequence state.Sequence, dbTx db.Txer)) *StorageInterfaceMock_AddSequence_Call
func (*StorageInterfaceMock_AddSequence_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_AddSequence_Call) RunAndReturn(run func(context.Context, state.Sequence, db.Txer) error) *StorageInterfaceMock_AddSequence_Call
type StorageInterfaceMock_BeginTx_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 (_c *StorageInterfaceMock_BeginTx_Call) Return(_a0 db.Txer, _a1 error) *StorageInterfaceMock_BeginTx_Call
func (*StorageInterfaceMock_BeginTx_Call) Run ¶
func (_c *StorageInterfaceMock_BeginTx_Call) Run(run func(ctx context.Context, options *sql.TxOptions)) *StorageInterfaceMock_BeginTx_Call
func (*StorageInterfaceMock_BeginTx_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_BeginTx_Call) RunAndReturn(run func(context.Context, *sql.TxOptions) (db.Txer, error)) *StorageInterfaceMock_BeginTx_Call
type StorageInterfaceMock_CheckProofContainsCompleteSequences_Call ¶
StorageInterfaceMock_CheckProofContainsCompleteSequences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckProofContainsCompleteSequences'
func (*StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) Run ¶
func (_c *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) Run(run func(ctx context.Context, proof *state.Proof, dbTx db.Txer)) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
func (*StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call) RunAndReturn(run func(context.Context, *state.Proof, db.Txer) (bool, error)) *StorageInterfaceMock_CheckProofContainsCompleteSequences_Call
type StorageInterfaceMock_CheckProofExistsForBatch_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 (_c *StorageInterfaceMock_CheckProofExistsForBatch_Call) Return(_a0 bool, _a1 error) *StorageInterfaceMock_CheckProofExistsForBatch_Call
func (*StorageInterfaceMock_CheckProofExistsForBatch_Call) Run ¶
func (_c *StorageInterfaceMock_CheckProofExistsForBatch_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx db.Txer)) *StorageInterfaceMock_CheckProofExistsForBatch_Call
func (*StorageInterfaceMock_CheckProofExistsForBatch_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_CheckProofExistsForBatch_Call) RunAndReturn(run func(context.Context, uint64, db.Txer) (bool, error)) *StorageInterfaceMock_CheckProofExistsForBatch_Call
type StorageInterfaceMock_CleanupGeneratedProofs_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 (_c *StorageInterfaceMock_CleanupGeneratedProofs_Call) Return(_a0 error) *StorageInterfaceMock_CleanupGeneratedProofs_Call
func (*StorageInterfaceMock_CleanupGeneratedProofs_Call) Run ¶
func (_c *StorageInterfaceMock_CleanupGeneratedProofs_Call) Run(run func(ctx context.Context, batchNumber uint64, dbTx db.Txer)) *StorageInterfaceMock_CleanupGeneratedProofs_Call
func (*StorageInterfaceMock_CleanupGeneratedProofs_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_CleanupGeneratedProofs_Call) RunAndReturn(run func(context.Context, uint64, db.Txer) error) *StorageInterfaceMock_CleanupGeneratedProofs_Call
type StorageInterfaceMock_CleanupLockedProofs_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 (_c *StorageInterfaceMock_CleanupLockedProofs_Call) Return(_a0 int64, _a1 error) *StorageInterfaceMock_CleanupLockedProofs_Call
func (*StorageInterfaceMock_CleanupLockedProofs_Call) Run ¶
func (_c *StorageInterfaceMock_CleanupLockedProofs_Call) Run(run func(ctx context.Context, duration string, dbTx db.Txer)) *StorageInterfaceMock_CleanupLockedProofs_Call
func (*StorageInterfaceMock_CleanupLockedProofs_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_CleanupLockedProofs_Call) RunAndReturn(run func(context.Context, string, db.Txer) (int64, error)) *StorageInterfaceMock_CleanupLockedProofs_Call
type StorageInterfaceMock_DeleteGeneratedProofs_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 (_c *StorageInterfaceMock_DeleteGeneratedProofs_Call) Return(_a0 error) *StorageInterfaceMock_DeleteGeneratedProofs_Call
func (*StorageInterfaceMock_DeleteGeneratedProofs_Call) Run ¶
func (_c *StorageInterfaceMock_DeleteGeneratedProofs_Call) Run(run func(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx db.Txer)) *StorageInterfaceMock_DeleteGeneratedProofs_Call
func (*StorageInterfaceMock_DeleteGeneratedProofs_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_DeleteGeneratedProofs_Call) RunAndReturn(run func(context.Context, uint64, uint64, db.Txer) error) *StorageInterfaceMock_DeleteGeneratedProofs_Call
type StorageInterfaceMock_DeleteUngeneratedProofs_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 (_c *StorageInterfaceMock_DeleteUngeneratedProofs_Call) Return(_a0 error) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
func (*StorageInterfaceMock_DeleteUngeneratedProofs_Call) Run ¶
func (_c *StorageInterfaceMock_DeleteUngeneratedProofs_Call) Run(run func(ctx context.Context, dbTx db.Txer)) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
func (*StorageInterfaceMock_DeleteUngeneratedProofs_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_DeleteUngeneratedProofs_Call) RunAndReturn(run func(context.Context, db.Txer) error) *StorageInterfaceMock_DeleteUngeneratedProofs_Call
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 ¶
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 (_c *StorageInterfaceMock_GetProofReadyToVerify_Call) Return(_a0 *state.Proof, _a1 error) *StorageInterfaceMock_GetProofReadyToVerify_Call
func (*StorageInterfaceMock_GetProofReadyToVerify_Call) Run ¶
func (_c *StorageInterfaceMock_GetProofReadyToVerify_Call) Run(run func(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx db.Txer)) *StorageInterfaceMock_GetProofReadyToVerify_Call
func (*StorageInterfaceMock_GetProofReadyToVerify_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_GetProofReadyToVerify_Call) RunAndReturn(run func(context.Context, uint64, db.Txer) (*state.Proof, error)) *StorageInterfaceMock_GetProofReadyToVerify_Call
type StorageInterfaceMock_GetProofsToAggregate_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 (_c *StorageInterfaceMock_GetProofsToAggregate_Call) Return(_a0 *state.Proof, _a1 *state.Proof, _a2 error) *StorageInterfaceMock_GetProofsToAggregate_Call
func (*StorageInterfaceMock_GetProofsToAggregate_Call) Run ¶
func (_c *StorageInterfaceMock_GetProofsToAggregate_Call) Run(run func(ctx context.Context, dbTx db.Txer)) *StorageInterfaceMock_GetProofsToAggregate_Call
func (*StorageInterfaceMock_GetProofsToAggregate_Call) RunAndReturn ¶
type StorageInterfaceMock_UpdateGeneratedProof_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 (_c *StorageInterfaceMock_UpdateGeneratedProof_Call) Return(_a0 error) *StorageInterfaceMock_UpdateGeneratedProof_Call
func (*StorageInterfaceMock_UpdateGeneratedProof_Call) Run ¶
func (_c *StorageInterfaceMock_UpdateGeneratedProof_Call) Run(run func(ctx context.Context, proof *state.Proof, dbTx db.Txer)) *StorageInterfaceMock_UpdateGeneratedProof_Call
func (*StorageInterfaceMock_UpdateGeneratedProof_Call) RunAndReturn ¶
func (_c *StorageInterfaceMock_UpdateGeneratedProof_Call) RunAndReturn(run func(context.Context, *state.Proof, db.Txer) error) *StorageInterfaceMock_UpdateGeneratedProof_Call
type SynchronizerInterfaceMock ¶
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 (_m *SynchronizerInterfaceMock) EXPECT() *SynchronizerInterfaceMock_Expecter
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 ¶
func (_e *SynchronizerInterfaceMock_Expecter) GetLastL1Block(ctx interface{}) *SynchronizerInterfaceMock_GetLastL1Block_Call
GetLastL1Block is a helper method to define mock.On call
- ctx context.Context
func (*SynchronizerInterfaceMock_Expecter) GetLastestVirtualBatchNumber ¶
func (_e *SynchronizerInterfaceMock_Expecter) GetLastestVirtualBatchNumber(ctx interface{}) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
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 ¶
func (_e *SynchronizerInterfaceMock_Expecter) IsSynced() *SynchronizerInterfaceMock_IsSynced_Call
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 ¶
func (_e *SynchronizerInterfaceMock_Expecter) Stop() *SynchronizerInterfaceMock_Stop_Call
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 ¶
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 (_c *SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Return(_a0 *synchronizer.L1Block, _a1 error) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
func (*SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetL1BlockByNumber_Call) Run(run func(ctx context.Context, blockNumber uint64)) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
func (*SynchronizerInterfaceMock_GetL1BlockByNumber_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetL1BlockByNumber_Call) RunAndReturn(run func(context.Context, uint64) (*synchronizer.L1Block, error)) *SynchronizerInterfaceMock_GetL1BlockByNumber_Call
type SynchronizerInterfaceMock_GetL1InfoRootPerIndex_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 (_c *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Return(_a0 common.Hash, _a1 error) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
func (*SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) Run(run func(ctx context.Context, L1InfoTreeIndex uint32)) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
func (*SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call) RunAndReturn(run func(context.Context, uint32) (common.Hash, error)) *SynchronizerInterfaceMock_GetL1InfoRootPerIndex_Call
type SynchronizerInterfaceMock_GetL1InfoTreeLeaves_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 (_c *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Return(_a0 map[uint32]synchronizer.L1InfoTreeLeaf, _a1 error) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
func (*SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) Run(run func(ctx context.Context, indexLeaves []uint32)) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
func (*SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]synchronizer.L1InfoTreeLeaf, error)) *SynchronizerInterfaceMock_GetL1InfoTreeLeaves_Call
type SynchronizerInterfaceMock_GetLastL1Block_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 (_c *SynchronizerInterfaceMock_GetLastL1Block_Call) Return(_a0 *synchronizer.L1Block, _a1 error) *SynchronizerInterfaceMock_GetLastL1Block_Call
func (*SynchronizerInterfaceMock_GetLastL1Block_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetLastL1Block_Call) Run(run func(ctx context.Context)) *SynchronizerInterfaceMock_GetLastL1Block_Call
func (*SynchronizerInterfaceMock_GetLastL1Block_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetLastL1Block_Call) RunAndReturn(run func(context.Context) (*synchronizer.L1Block, error)) *SynchronizerInterfaceMock_GetLastL1Block_Call
type SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call ¶
SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastestVirtualBatchNumber'
func (*SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) Run(run func(ctx context.Context)) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
func (*SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call) RunAndReturn(run func(context.Context) (uint64, error)) *SynchronizerInterfaceMock_GetLastestVirtualBatchNumber_Call
type SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_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 (_c *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Return(_a0 []synchronizer.L1InfoTreeLeaf, _a1 error) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
func (*SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) Run(run func(ctx context.Context, l1InfoRoot common.Hash)) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
func (*SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call) RunAndReturn(run func(context.Context, common.Hash) ([]synchronizer.L1InfoTreeLeaf, error)) *SynchronizerInterfaceMock_GetLeafsByL1InfoRoot_Call
type SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call ¶
SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSequenceByBatchNumber'
func (*SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) Run(run func(ctx context.Context, batchNumber uint64)) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
func (*SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call) RunAndReturn(run func(context.Context, uint64) (*synchronizer.SequencedBatches, error)) *SynchronizerInterfaceMock_GetSequenceByBatchNumber_Call
type SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call ¶
SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVirtualBatchByBatchNumber'
func (*SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) Run ¶
func (_c *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) Run(run func(ctx context.Context, batchNumber uint64)) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
func (*SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call) RunAndReturn(run func(context.Context, uint64) (*synchronizer.VirtualBatch, error)) *SynchronizerInterfaceMock_GetVirtualBatchByBatchNumber_Call
type SynchronizerInterfaceMock_IsSynced_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 (_c *SynchronizerInterfaceMock_IsSynced_Call) Return(_a0 bool) *SynchronizerInterfaceMock_IsSynced_Call
func (*SynchronizerInterfaceMock_IsSynced_Call) Run ¶
func (_c *SynchronizerInterfaceMock_IsSynced_Call) Run(run func()) *SynchronizerInterfaceMock_IsSynced_Call
func (*SynchronizerInterfaceMock_IsSynced_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_IsSynced_Call) RunAndReturn(run func() bool) *SynchronizerInterfaceMock_IsSynced_Call
type SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call ¶
SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbackOnReorgDone'
func (*SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) Run ¶
func (_c *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) Run(run func(callback func(synchronizer.ReorgExecutionResult))) *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
func (*SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call) RunAndReturn(run func(func(synchronizer.ReorgExecutionResult))) *SynchronizerInterfaceMock_SetCallbackOnReorgDone_Call
type SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call ¶
SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbackOnRollbackBatches'
func (*SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) Run ¶
func (_c *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) Run(run func(callback func(synchronizer.RollbackBatchesData))) *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
func (*SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call) RunAndReturn(run func(func(synchronizer.RollbackBatchesData))) *SynchronizerInterfaceMock_SetCallbackOnRollbackBatches_Call
type SynchronizerInterfaceMock_Stop_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 (_c *SynchronizerInterfaceMock_Stop_Call) Return() *SynchronizerInterfaceMock_Stop_Call
func (*SynchronizerInterfaceMock_Stop_Call) Run ¶
func (_c *SynchronizerInterfaceMock_Stop_Call) Run(run func()) *SynchronizerInterfaceMock_Stop_Call
func (*SynchronizerInterfaceMock_Stop_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_Stop_Call) RunAndReturn(run func()) *SynchronizerInterfaceMock_Stop_Call
type SynchronizerInterfaceMock_Sync_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 (_c *SynchronizerInterfaceMock_Sync_Call) Return(_a0 error) *SynchronizerInterfaceMock_Sync_Call
func (*SynchronizerInterfaceMock_Sync_Call) Run ¶
func (_c *SynchronizerInterfaceMock_Sync_Call) Run(run func(returnOnSync bool)) *SynchronizerInterfaceMock_Sync_Call
func (*SynchronizerInterfaceMock_Sync_Call) RunAndReturn ¶
func (_c *SynchronizerInterfaceMock_Sync_Call) RunAndReturn(run func(bool) error) *SynchronizerInterfaceMock_Sync_Call
type TxerMock ¶ added in v0.5.0
TxerMock is an autogenerated mock type for the Txer type
func NewTxerMock ¶ added in v0.5.0
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) EXPECT ¶
func (_m *TxerMock) EXPECT() *TxerMock_Expecter
func (*TxerMock) Exec ¶ added in v0.5.0
Exec provides a mock function with given fields: query, args
func (*TxerMock) Query ¶ added in v0.5.0
Query provides a mock function with given fields: query, args
type TxerMock_AddCommitCallback_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 (_c *TxerMock_AddCommitCallback_Call) Return() *TxerMock_AddCommitCallback_Call
func (*TxerMock_AddCommitCallback_Call) Run ¶
func (_c *TxerMock_AddCommitCallback_Call) Run(run func(cb func())) *TxerMock_AddCommitCallback_Call
func (*TxerMock_AddCommitCallback_Call) RunAndReturn ¶
func (_c *TxerMock_AddCommitCallback_Call) RunAndReturn(run func(func())) *TxerMock_AddCommitCallback_Call
type TxerMock_AddRollbackCallback_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 (_c *TxerMock_AddRollbackCallback_Call) Return() *TxerMock_AddRollbackCallback_Call
func (*TxerMock_AddRollbackCallback_Call) Run ¶
func (_c *TxerMock_AddRollbackCallback_Call) Run(run func(cb func())) *TxerMock_AddRollbackCallback_Call
func (*TxerMock_AddRollbackCallback_Call) RunAndReturn ¶
func (_c *TxerMock_AddRollbackCallback_Call) RunAndReturn(run func(func())) *TxerMock_AddRollbackCallback_Call
type TxerMock_Commit_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 (_c *TxerMock_Commit_Call) Return(_a0 error) *TxerMock_Commit_Call
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 ¶
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 ¶
func (_e *TxerMock_Expecter) Commit() *TxerMock_Commit_Call
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 ¶
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 (_c *TxerMock_QueryRow_Call) Return(_a0 *sql.Row) *TxerMock_QueryRow_Call
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 ¶
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 ¶
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 (_c *TxerMock_Rollback_Call) Return(_a0 error) *TxerMock_Rollback_Call
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