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) 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 EthermanMock
- func (_m *EthermanMock) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, ...) (*common.Address, []byte, error)
- 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 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) 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 RPCInterfaceMock
- 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) 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 SynchronizerInterfaceMock
- 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 TxerMock
- func (_m *TxerMock) AddCommitCallback(cb func())
- func (_m *TxerMock) AddRollbackCallback(cb func())
- func (_m *TxerMock) Commit() error
- 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
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) 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 given fields:
func (*EthTxManagerClientMock) Stop ¶
func (_m *EthTxManagerClientMock) Stop()
Stop provides a mock function with given fields:
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) 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 given fields:
func (*EthermanMock) GetRollupId ¶
func (_m *EthermanMock) GetRollupId() uint32
GetRollupId provides a mock function with given fields:
func (*EthermanMock) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
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 given 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) 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 given fields:
func (*ProverInterfaceMock) IsIdle ¶
func (_m *ProverInterfaceMock) IsIdle() (bool, error)
IsIdle provides a mock function with given fields:
func (*ProverInterfaceMock) Name ¶
func (_m *ProverInterfaceMock) Name() string
Name provides a mock function with given 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 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) 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 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) 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 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) 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 given 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 given fields:
func (*SynchronizerInterfaceMock) Sync ¶
func (_m *SynchronizerInterfaceMock) Sync(returnOnSync bool) error
Sync provides a mock function with given fields: returnOnSync
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) 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