mocks

package
v0.0.1-RC2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: GPL-3.0 Imports: 8 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.

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:

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

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) 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

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) 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

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) 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

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

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

func (*StateMock) UpdateGeneratedRecursiveProof

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

UpdateGeneratedRecursiveProof 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