mocks

package
v0.0.1-RC4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthTxManager

type EthTxManager struct {
	mock.Mock
}

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

type Etherman struct {
	mock.Mock
}

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

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

GetLatestVerifiedBatchNum provides a mock function with given fields:

func (*Etherman) GetPublicAddress

func (_m *Etherman) GetPublicAddress() (common.Address, error)

GetPublicAddress provides a mock function with given fields:

type ProfitabilityCheckerMock

type ProfitabilityCheckerMock struct {
	mock.Mock
}

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

func (_m *ProfitabilityCheckerMock) IsProfitable(_a0 context.Context, _a1 *big.Int) (bool, error)

IsProfitable provides a mock function with given fields: _a0, _a1

type ProverMock

type ProverMock struct {
	mock.Mock
}

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

func (_m *ProverMock) WaitRecursiveProof(ctx context.Context, proofID string) (string, error)

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

type StateMock

type StateMock struct {
	mock.Mock
}

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

func (_m *StateMock) AddGeneratedProof(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) error

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

func (*StateMock) BeginStateTransaction

func (_m *StateMock) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)

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

func (_m *StateMock) DeleteUngeneratedProofs(ctx context.Context, dbTx pgx.Tx) error

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

func (*StateMock) GetVirtualBatchToProve

func (_m *StateMock) GetVirtualBatchToProve(ctx context.Context, lastVerfiedBatchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)

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

func (*StateMock) UpdateGeneratedProof

func (_m *StateMock) UpdateGeneratedProof(ctx context.Context, proof *state.Proof, dbTx pgx.Tx) error

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

Jump to

Keyboard shortcuts

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