Documentation ¶
Index ¶
- type EthTxManager
- type Etherman
- type ProfitabilityCheckerMock
- type ProverMock
- func (_m *ProverMock) Addr() string
- func (_m *ProverMock) AggregatedProof(inputProof1 string, inputProof2 string) (*string, error)
- func (_m *ProverMock) BatchProof(input *pb.InputProver) (*string, error)
- func (_m *ProverMock) FinalProof(inputProof string, aggregatorAddr string) (*string, error)
- func (_m *ProverMock) ID() string
- func (_m *ProverMock) IsIdle() bool
- 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) AddGeneratedProof(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) DeleteGeneratedProofs(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx pgx.Tx) error
- func (_m *StateMock) DeleteUngeneratedProofs(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) GetProofReadyToVerify(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx pgx.Tx) (*state.Proof, error)
- func (_m *StateMock) GetProofsToAggregate(ctx context.Context, dbTx pgx.Tx) (*state.Proof, *state.Proof, error)
- func (_m *StateMock) GetVirtualBatchToProve(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)
- func (_m *StateMock) UpdateGeneratedProof(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.
func (*EthTxManager) VerifyBatches ¶
func (_m *EthTxManager) VerifyBatches(ctx context.Context, lastVerifiedBatch uint64, batchNum uint64, inputs *types.FinalProofInputs) (*coretypes.Transaction, error)
VerifyBatches provides a mock function with given fields: ctx, lastVerifiedBatch, batchNum, inputs
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:
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) Addr ¶
func (_m *ProverMock) Addr() string
Addr provides a mock function with given fields:
func (*ProverMock) AggregatedProof ¶
func (_m *ProverMock) AggregatedProof(inputProof1 string, inputProof2 string) (*string, error)
AggregatedProof provides a mock function with given fields: inputProof1, inputProof2
func (*ProverMock) BatchProof ¶
func (_m *ProverMock) BatchProof(input *pb.InputProver) (*string, error)
BatchProof provides a mock function with given fields: input
func (*ProverMock) FinalProof ¶
func (_m *ProverMock) FinalProof(inputProof string, aggregatorAddr string) (*string, error)
FinalProof provides a mock function with given fields: inputProof, aggregatorAddr
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) 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) AddGeneratedProof ¶
AddGeneratedProof 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) DeleteGeneratedProofs ¶
func (_m *StateMock) DeleteGeneratedProofs(ctx context.Context, batchNumber uint64, batchNumberFinal uint64, dbTx pgx.Tx) error
DeleteGeneratedProofs provides a mock function with given fields: ctx, batchNumber, batchNumberFinal, dbTx
func (*StateMock) DeleteUngeneratedProofs ¶
DeleteUngeneratedProofs 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) GetProofReadyToVerify ¶
func (_m *StateMock) GetProofReadyToVerify(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx pgx.Tx) (*state.Proof, error)
GetProofReadyToVerify provides a mock function with given fields: ctx, lastVerfiedBatchNumber, dbTx
func (*StateMock) GetProofsToAggregate ¶
func (_m *StateMock) GetProofsToAggregate(ctx context.Context, dbTx pgx.Tx) (*state.Proof, *state.Proof, error)
GetProofsToAggregate provides a mock function with given fields: ctx, dbTx