Documentation
¶
Index ¶
- type EthTxManager
- type Etherman
- type ProfitabilityCheckerMock
- type ProverMock
- func (_m *ProverMock) FinalProof(inputProof string) (string, error)
- func (_m *ProverMock) ID() string
- func (_m *ProverMock) IsIdle() bool
- func (_m *ProverMock) ProveBatch(input *pb.InputProver) (string, error)
- func (_m *ProverMock) WaitFinalProof(ctx context.Context, proofID string) (*pb.FinalProof, error)
- func (_m *ProverMock) WaitRecursiveProof(ctx context.Context, proofID string) (string, error)
- type StateMock
- func (_m *StateMock) AddGeneratedRecursiveProof(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) error
- func (_m *StateMock) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)
- func (_m *StateMock) CheckProofContainsCompleteSequences(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) (bool, error)
- func (_m *StateMock) DeleteGeneratedRecursiveProof(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx pgx.Tx) error
- func (_m *StateMock) DeleteUngeneratedRecursiveProofs(ctx context.Context, dbTx pgx.Tx) error
- func (_m *StateMock) GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
- func (_m *StateMock) GetLastVerifiedBatch(ctx context.Context, dbTx pgx.Tx) (*state.VerifiedBatch, error)
- func (_m *StateMock) GetRecursiveProofsToAggregate(ctx context.Context, dbTx pgx.Tx) (*state.Proof, *state.Proof, error)
- func (_m *StateMock) GetVirtualBatchToRecursiveProve(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
- func (_m *StateMock) UpdateGeneratedRecursiveProof(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthTxManager ¶
EthTxManager is an autogenerated mock type for the ethTxManager type
func NewEthTxManager ¶
func NewEthTxManager(t mockConstructorTestingTNewEthTxManager) *EthTxManager
NewEthTxManager creates a new instance of EthTxManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Etherman ¶
Etherman is an autogenerated mock type for the etherman type
func NewEtherman ¶
func NewEtherman(t mockConstructorTestingTNewEtherman) *Etherman
NewEtherman creates a new instance of Etherman. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Etherman) GetLatestVerifiedBatchNum ¶
GetLatestVerifiedBatchNum provides a mock function with given fields:
func (*Etherman) GetPublicAddress ¶
GetPublicAddress provides a mock function with given fields:
func (*Etherman) VerifyBatches2 ¶
func (_m *Etherman) VerifyBatches2(ctx context.Context, lastVerifiedBatch uint64, newVerifiedBatch uint64, resGetProof *pb.GetProofResponse_FinalProof, gasLimit uint64, gasPrice *big.Int, nonce *big.Int) (*types.Transaction, error)
VerifyBatches2 provides a mock function with given fields: ctx, lastVerifiedBatch, newVerifiedBatch, resGetProof, gasLimit, gasPrice, nonce
type ProfitabilityCheckerMock ¶
ProfitabilityCheckerMock is an autogenerated mock type for the aggregatorTxProfitabilityChecker type
func NewProfitabilityCheckerMock ¶
func NewProfitabilityCheckerMock(t mockConstructorTestingTNewProfitabilityCheckerMock) *ProfitabilityCheckerMock
NewProfitabilityCheckerMock creates a new instance of ProfitabilityCheckerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProfitabilityCheckerMock) IsProfitable ¶
IsProfitable provides a mock function with given fields: _a0, _a1
type ProverMock ¶
ProverMock is an autogenerated mock type for the proverInterface type
func NewProverMock ¶
func NewProverMock(t mockConstructorTestingTNewProverMock) *ProverMock
NewProverMock creates a new instance of ProverMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProverMock) FinalProof ¶
func (_m *ProverMock) FinalProof(inputProof string) (string, error)
FinalProof provides a mock function with given fields: inputProof
func (*ProverMock) ID ¶
func (_m *ProverMock) ID() string
ID provides a mock function with given fields:
func (*ProverMock) IsIdle ¶
func (_m *ProverMock) IsIdle() bool
IsIdle provides a mock function with given fields:
func (*ProverMock) ProveBatch ¶
func (_m *ProverMock) ProveBatch(input *pb.InputProver) (string, error)
ProveBatch provides a mock function with given fields: input
func (*ProverMock) WaitFinalProof ¶
func (_m *ProverMock) WaitFinalProof(ctx context.Context, proofID string) (*pb.FinalProof, error)
WaitFinalProof provides a mock function with given fields: ctx, proofID
func (*ProverMock) WaitRecursiveProof ¶
WaitRecursiveProof provides a mock function with given fields: ctx, proofID
type StateMock ¶
StateMock is an autogenerated mock type for the stateInterface type
func NewStateMock ¶
func NewStateMock(t mockConstructorTestingTNewStateMock) *StateMock
NewStateMock creates a new instance of StateMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StateMock) AddGeneratedRecursiveProof ¶
func (_m *StateMock) AddGeneratedRecursiveProof(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) error
AddGeneratedRecursiveProof provides a mock function with given fields: ctx, proof, dbTx
func (*StateMock) BeginStateTransaction ¶
BeginStateTransaction provides a mock function with given fields: ctx
func (*StateMock) CheckProofContainsCompleteSequences ¶
func (_m *StateMock) CheckProofContainsCompleteSequences(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) (bool, error)
CheckProofContainsCompleteSequences provides a mock function with given fields: ctx, proof, dbTx
func (*StateMock) DeleteGeneratedRecursiveProof ¶
func (_m *StateMock) DeleteGeneratedRecursiveProof(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx pgx.Tx) error
DeleteGeneratedRecursiveProof provides a mock function with given fields: ctx, batchNumber, batchNumberFinal, dbTx
func (*StateMock) DeleteUngeneratedRecursiveProofs ¶
DeleteUngeneratedRecursiveProofs provides a mock function with given fields: ctx, dbTx
func (*StateMock) GetBatchByNumber ¶
func (_m *StateMock) GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
GetBatchByNumber provides a mock function with given fields: ctx, batchNumber, dbTx
func (*StateMock) GetLastVerifiedBatch ¶
func (_m *StateMock) GetLastVerifiedBatch(ctx context.Context, dbTx pgx.Tx) (*state.VerifiedBatch, error)
GetLastVerifiedBatch provides a mock function with given fields: ctx, dbTx
func (*StateMock) GetRecursiveProofsToAggregate ¶
func (_m *StateMock) GetRecursiveProofsToAggregate(ctx context.Context, dbTx pgx.Tx) (*state.Proof, *state.Proof, error)
GetRecursiveProofsToAggregate provides a mock function with given fields: ctx, dbTx
func (*StateMock) GetVirtualBatchToRecursiveProve ¶
func (_m *StateMock) GetVirtualBatchToRecursiveProve(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
GetVirtualBatchToRecursiveProve provides a mock function with given fields: ctx, lastVerfiedBatchNumber, dbTx