Documentation ¶
Index ¶
- type DbTxMock
- func (_m *DbTxMock) Begin(ctx context.Context) (pgx.Tx, error)
- func (_m *DbTxMock) BeginFunc(ctx context.Context, f func(pgx.Tx) error) error
- func (_m *DbTxMock) Commit(ctx context.Context) error
- func (_m *DbTxMock) Conn() *pgx.Conn
- func (_m *DbTxMock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (_m *DbTxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
- func (_m *DbTxMock) LargeObjects() pgx.LargeObjects
- func (_m *DbTxMock) Prepare(ctx context.Context, name string, sql string) (*pgconn.StatementDescription, error)
- func (_m *DbTxMock) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (_m *DbTxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, ...) (pgconn.CommandTag, error)
- func (_m *DbTxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- func (_m *DbTxMock) Rollback(ctx context.Context) error
- func (_m *DbTxMock) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type EthTxManager
- func (_m *EthTxManager) Add(ctx context.Context, owner string, id string, from common.Address, ...) error
- func (_m *EthTxManager) ProcessPendingMonitoredTxs(ctx context.Context, owner string, ...)
- func (_m *EthTxManager) Result(ctx context.Context, owner string, id string, dbTx pgx.Tx) (ethtxmanager.MonitoredTxResult, error)
- func (_m *EthTxManager) ResultsByStatus(ctx context.Context, owner string, statuses []ethtxmanager.MonitoredTxStatus, ...) ([]ethtxmanager.MonitoredTxResult, error)
- 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 *prover.InputProver) (*string, error)
- func (_m *ProverMock) FinalProof(inputProof string, aggregatorAddr string) (*string, error)
- func (_m *ProverMock) ID() string
- func (_m *ProverMock) IsIdle() (bool, error)
- func (_m *ProverMock) Name() string
- func (_m *ProverMock) WaitFinalProof(ctx context.Context, proofID string) (*prover.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) CleanupGeneratedProofs(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) error
- func (_m *StateMock) CleanupLockedProofs(ctx context.Context, duration string, dbTx pgx.Tx) (int64, 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 DbTxMock ¶
DbTxMock is an autogenerated mock type for the Tx type
func NewDbTxMock ¶
NewDbTxMock creates a new instance of DbTxMock. 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 (*DbTxMock) CopyFrom ¶
func (_m *DbTxMock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
CopyFrom provides a mock function with given fields: ctx, tableName, columnNames, rowSrc
func (*DbTxMock) Exec ¶
func (_m *DbTxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: ctx, sql, arguments
func (*DbTxMock) LargeObjects ¶
func (_m *DbTxMock) LargeObjects() pgx.LargeObjects
LargeObjects provides a mock function with given fields:
func (*DbTxMock) Prepare ¶
func (_m *DbTxMock) Prepare(ctx context.Context, name string, sql string) (*pgconn.StatementDescription, error)
Prepare provides a mock function with given fields: ctx, name, sql
func (*DbTxMock) QueryFunc ¶
func (_m *DbTxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(pgx.QueryFuncRow) error) (pgconn.CommandTag, error)
QueryFunc provides a mock function with given fields: ctx, sql, args, scans, f
type EthTxManager ¶
EthTxManager is an autogenerated mock type for the ethTxManager type
func NewEthTxManager ¶
func NewEthTxManager(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*EthTxManager) Add ¶
func (_m *EthTxManager) Add(ctx context.Context, owner string, id string, from common.Address, to *common.Address, value *big.Int, data []byte, gasOffset uint64, dbTx pgx.Tx) error
Add provides a mock function with given fields: ctx, owner, id, from, to, value, data, gasOffset, dbTx
func (*EthTxManager) ProcessPendingMonitoredTxs ¶
func (_m *EthTxManager) ProcessPendingMonitoredTxs(ctx context.Context, owner string, failedResultHandler ethtxmanager.ResultHandler, dbTx pgx.Tx)
ProcessPendingMonitoredTxs provides a mock function with given fields: ctx, owner, failedResultHandler, dbTx
func (*EthTxManager) Result ¶
func (_m *EthTxManager) Result(ctx context.Context, owner string, id string, dbTx pgx.Tx) (ethtxmanager.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, owner, id, dbTx
func (*EthTxManager) ResultsByStatus ¶
func (_m *EthTxManager) ResultsByStatus(ctx context.Context, owner string, statuses []ethtxmanager.MonitoredTxStatus, dbTx pgx.Tx) ([]ethtxmanager.MonitoredTxResult, error)
ResultsByStatus provides a mock function with given fields: ctx, owner, statuses, dbTx
type Etherman ¶
Etherman is an autogenerated mock type for the etherman type
func NewEtherman ¶
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. The first argument is typically a *testing.T value.
func (*Etherman) BuildTrustedVerifyBatchesTxData ¶
func (_m *Etherman) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, inputs *types.FinalProofInputs) (*common.Address, []byte, error)
BuildTrustedVerifyBatchesTxData provides a mock function with given fields: lastVerifiedBatch, newVerifiedBatch, inputs
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 *prover.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, error)
IsIdle provides a mock function with given fields:
func (*ProverMock) Name ¶
func (_m *ProverMock) Name() string
Name provides a mock function with given fields:
func (*ProverMock) WaitFinalProof ¶
func (_m *ProverMock) WaitFinalProof(ctx context.Context, proofID string) (*prover.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 ¶
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. The first argument is typically a *testing.T value.
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) CleanupGeneratedProofs ¶
func (_m *StateMock) CleanupGeneratedProofs(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) error
CleanupGeneratedProofs provides a mock function with given fields: ctx, batchNumber, dbTx
func (*StateMock) CleanupLockedProofs ¶
func (_m *StateMock) CleanupLockedProofs(ctx context.Context, duration string, dbTx pgx.Tx) (int64, error)
CleanupLockedProofs provides a mock function with given fields: ctx, duration, 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