mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI added in v0.0.13

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface.

func NewMockAPI added in v0.0.13

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) AddRoots added in v0.0.13

func (m *MockAPI) AddRoots(ctx context.Context, proofSetID uint64, roots []types.RootAdd) (common.Hash, error)

AddRoots mocks base method.

func (*MockAPI) AllocatePiece added in v0.0.13

func (m *MockAPI) AllocatePiece(ctx context.Context, allocation types.PieceAllocation) (*types.AllocatedPiece, error)

AllocatePiece mocks base method.

func (*MockAPI) CreateProofSet added in v0.0.13

func (m *MockAPI) CreateProofSet(ctx context.Context, recordKeeper common.Address) (common.Hash, error)

CreateProofSet mocks base method.

func (*MockAPI) EXPECT added in v0.0.13

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) FindPiece added in v0.0.13

func (m *MockAPI) FindPiece(ctx context.Context, piece types.Piece) (cid.Cid, bool, error)

FindPiece mocks base method.

func (*MockAPI) GetProofSet added in v0.0.13

func (m *MockAPI) GetProofSet(ctx context.Context, proofSetID uint64) (*types.ProofSet, error)

GetProofSet mocks base method.

func (*MockAPI) GetProofSetStatus added in v0.0.13

func (m *MockAPI) GetProofSetStatus(ctx context.Context, txHash common.Hash) (*types.ProofSetStatus, error)

GetProofSetStatus mocks base method.

func (*MockAPI) ReadPiece added in v0.0.13

func (m *MockAPI) ReadPiece(ctx context.Context, piece cid.Cid, options ...types.ReadPieceOption) (*types.PieceReader, error)

ReadPiece mocks base method.

func (*MockAPI) RemoveRoot added in v0.0.13

func (m *MockAPI) RemoveRoot(ctx context.Context, proofSetID, rootID uint64) (common.Hash, error)

RemoveRoot mocks base method.

func (*MockAPI) UploadPiece added in v0.0.13

func (m *MockAPI) UploadPiece(ctx context.Context, upload types.PieceUpload) error

UploadPiece mocks base method.

type MockAPIMockRecorder added in v0.0.13

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) AddRoots added in v0.0.13

func (mr *MockAPIMockRecorder) AddRoots(ctx, proofSetID, roots any) *gomock.Call

AddRoots indicates an expected call of AddRoots.

func (*MockAPIMockRecorder) AllocatePiece added in v0.0.13

func (mr *MockAPIMockRecorder) AllocatePiece(ctx, allocation any) *gomock.Call

AllocatePiece indicates an expected call of AllocatePiece.

func (*MockAPIMockRecorder) CreateProofSet added in v0.0.13

func (mr *MockAPIMockRecorder) CreateProofSet(ctx, recordKeeper any) *gomock.Call

CreateProofSet indicates an expected call of CreateProofSet.

func (*MockAPIMockRecorder) FindPiece added in v0.0.13

func (mr *MockAPIMockRecorder) FindPiece(ctx, piece any) *gomock.Call

FindPiece indicates an expected call of FindPiece.

func (*MockAPIMockRecorder) GetProofSet added in v0.0.13

func (mr *MockAPIMockRecorder) GetProofSet(ctx, proofSetID any) *gomock.Call

GetProofSet indicates an expected call of GetProofSet.

func (*MockAPIMockRecorder) GetProofSetStatus added in v0.0.13

func (mr *MockAPIMockRecorder) GetProofSetStatus(ctx, txHash any) *gomock.Call

GetProofSetStatus indicates an expected call of GetProofSetStatus.

func (*MockAPIMockRecorder) ReadPiece added in v0.0.13

func (mr *MockAPIMockRecorder) ReadPiece(ctx, piece any, options ...any) *gomock.Call

ReadPiece indicates an expected call of ReadPiece.

func (*MockAPIMockRecorder) RemoveRoot added in v0.0.13

func (mr *MockAPIMockRecorder) RemoveRoot(ctx, proofSetID, rootID any) *gomock.Call

RemoveRoot indicates an expected call of RemoveRoot.

func (*MockAPIMockRecorder) UploadPiece added in v0.0.13

func (mr *MockAPIMockRecorder) UploadPiece(ctx, upload any) *gomock.Call

UploadPiece indicates an expected call of UploadPiece.

type MockContractBackend

type MockContractBackend struct {
	// contains filtered or unexported fields
}

MockContractBackend is a mock of ContractBackend interface.

func NewMockContractBackend

func NewMockContractBackend(ctrl *gomock.Controller) *MockContractBackend

NewMockContractBackend creates a new mock instance.

func (*MockContractBackend) CallContract

func (m *MockContractBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract mocks base method.

func (*MockContractBackend) CodeAt

func (m *MockContractBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt mocks base method.

func (*MockContractBackend) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContractBackend) EstimateGas

func (m *MockContractBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas mocks base method.

func (*MockContractBackend) FilterLogs

FilterLogs mocks base method.

func (*MockContractBackend) HeaderByNumber

func (m *MockContractBackend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber mocks base method.

func (*MockContractBackend) PendingCodeAt

func (m *MockContractBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt mocks base method.

func (*MockContractBackend) PendingNonceAt

func (m *MockContractBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt mocks base method.

func (*MockContractBackend) SendTransaction

func (m *MockContractBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error

SendTransaction mocks base method.

func (*MockContractBackend) SubscribeFilterLogs

func (m *MockContractBackend) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

SubscribeFilterLogs mocks base method.

func (*MockContractBackend) SuggestGasPrice

func (m *MockContractBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice mocks base method.

func (*MockContractBackend) SuggestGasTipCap

func (m *MockContractBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap mocks base method.

type MockContractBackendMockRecorder

type MockContractBackendMockRecorder struct {
	// contains filtered or unexported fields
}

MockContractBackendMockRecorder is the mock recorder for MockContractBackend.

func (*MockContractBackendMockRecorder) CallContract

func (mr *MockContractBackendMockRecorder) CallContract(ctx, call, blockNumber any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockContractBackendMockRecorder) CodeAt

func (mr *MockContractBackendMockRecorder) CodeAt(ctx, contract, blockNumber any) *gomock.Call

CodeAt indicates an expected call of CodeAt.

func (*MockContractBackendMockRecorder) EstimateGas

func (mr *MockContractBackendMockRecorder) EstimateGas(ctx, call any) *gomock.Call

EstimateGas indicates an expected call of EstimateGas.

func (*MockContractBackendMockRecorder) FilterLogs

func (mr *MockContractBackendMockRecorder) FilterLogs(ctx, q any) *gomock.Call

FilterLogs indicates an expected call of FilterLogs.

func (*MockContractBackendMockRecorder) HeaderByNumber

func (mr *MockContractBackendMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockContractBackendMockRecorder) PendingCodeAt

func (mr *MockContractBackendMockRecorder) PendingCodeAt(ctx, account any) *gomock.Call

PendingCodeAt indicates an expected call of PendingCodeAt.

func (*MockContractBackendMockRecorder) PendingNonceAt

func (mr *MockContractBackendMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call

PendingNonceAt indicates an expected call of PendingNonceAt.

func (*MockContractBackendMockRecorder) SendTransaction

func (mr *MockContractBackendMockRecorder) SendTransaction(ctx, tx any) *gomock.Call

SendTransaction indicates an expected call of SendTransaction.

func (*MockContractBackendMockRecorder) SubscribeFilterLogs

func (mr *MockContractBackendMockRecorder) SubscribeFilterLogs(ctx, q, ch any) *gomock.Call

SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.

func (*MockContractBackendMockRecorder) SuggestGasPrice

func (mr *MockContractBackendMockRecorder) SuggestGasPrice(ctx any) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice.

func (*MockContractBackendMockRecorder) SuggestGasTipCap

func (mr *MockContractBackendMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call

SuggestGasTipCap indicates an expected call of SuggestGasTipCap.

type MockKVStore

type MockKVStore[K any, V any] struct {
	// contains filtered or unexported fields
}

MockKVStore is a mock of KVStore interface.

func NewMockKVStore

func NewMockKVStore[K any, V any](ctrl *gomock.Controller) *MockKVStore[K, V]

NewMockKVStore creates a new mock instance.

func (*MockKVStore[K, V]) EXPECT

func (m *MockKVStore[K, V]) EXPECT() *MockKVStoreMockRecorder[K, V]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKVStore[K, V]) Get

func (m *MockKVStore[K, V]) Get(ctx context.Context, key K) (V, error)

Get mocks base method.

func (*MockKVStore[K, V]) Put

func (m *MockKVStore[K, V]) Put(ctx context.Context, key K, value V) error

Put mocks base method.

type MockKVStoreMockRecorder

type MockKVStoreMockRecorder[K any, V any] struct {
	// contains filtered or unexported fields
}

MockKVStoreMockRecorder is the mock recorder for MockKVStore.

func (*MockKVStoreMockRecorder[K, V]) Get

func (mr *MockKVStoreMockRecorder[K, V]) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockKVStoreMockRecorder[K, V]) Put

func (mr *MockKVStoreMockRecorder[K, V]) Put(ctx, key, value any) *gomock.Call

Put indicates an expected call of Put.

type MockMessageWatcherEthClient

type MockMessageWatcherEthClient struct {
	// contains filtered or unexported fields
}

MockMessageWatcherEthClient is a mock of MessageWatcherEthClient interface.

func NewMockMessageWatcherEthClient

func NewMockMessageWatcherEthClient(ctrl *gomock.Controller) *MockMessageWatcherEthClient

NewMockMessageWatcherEthClient creates a new mock instance.

func (*MockMessageWatcherEthClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMessageWatcherEthClient) TransactionByHash

func (m *MockMessageWatcherEthClient) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)

TransactionByHash mocks base method.

func (*MockMessageWatcherEthClient) TransactionReceipt

func (m *MockMessageWatcherEthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt mocks base method.

type MockMessageWatcherEthClientMockRecorder

type MockMessageWatcherEthClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockMessageWatcherEthClientMockRecorder is the mock recorder for MockMessageWatcherEthClient.

func (*MockMessageWatcherEthClientMockRecorder) TransactionByHash

func (mr *MockMessageWatcherEthClientMockRecorder) TransactionByHash(ctx, hash any) *gomock.Call

TransactionByHash indicates an expected call of TransactionByHash.

func (*MockMessageWatcherEthClientMockRecorder) TransactionReceipt

func (mr *MockMessageWatcherEthClientMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt.

type MockPieceAPI added in v0.0.13

type MockPieceAPI struct {
	// contains filtered or unexported fields
}

MockPieceAPI is a mock of PieceAPI interface.

func NewMockPieceAPI added in v0.0.13

func NewMockPieceAPI(ctrl *gomock.Controller) *MockPieceAPI

NewMockPieceAPI creates a new mock instance.

func (*MockPieceAPI) AllocatePiece added in v0.0.13

func (m *MockPieceAPI) AllocatePiece(ctx context.Context, allocation types.PieceAllocation) (*types.AllocatedPiece, error)

AllocatePiece mocks base method.

func (*MockPieceAPI) EXPECT added in v0.0.13

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPieceAPI) FindPiece added in v0.0.13

func (m *MockPieceAPI) FindPiece(ctx context.Context, piece types.Piece) (cid.Cid, bool, error)

FindPiece mocks base method.

func (*MockPieceAPI) ReadPiece added in v0.0.13

func (m *MockPieceAPI) ReadPiece(ctx context.Context, piece cid.Cid, options ...types.ReadPieceOption) (*types.PieceReader, error)

ReadPiece mocks base method.

func (*MockPieceAPI) UploadPiece added in v0.0.13

func (m *MockPieceAPI) UploadPiece(ctx context.Context, upload types.PieceUpload) error

UploadPiece mocks base method.

type MockPieceAPIMockRecorder added in v0.0.13

type MockPieceAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockPieceAPIMockRecorder is the mock recorder for MockPieceAPI.

func (*MockPieceAPIMockRecorder) AllocatePiece added in v0.0.13

func (mr *MockPieceAPIMockRecorder) AllocatePiece(ctx, allocation any) *gomock.Call

AllocatePiece indicates an expected call of AllocatePiece.

func (*MockPieceAPIMockRecorder) FindPiece added in v0.0.13

func (mr *MockPieceAPIMockRecorder) FindPiece(ctx, piece any) *gomock.Call

FindPiece indicates an expected call of FindPiece.

func (*MockPieceAPIMockRecorder) ReadPiece added in v0.0.13

func (mr *MockPieceAPIMockRecorder) ReadPiece(ctx, piece any, options ...any) *gomock.Call

ReadPiece indicates an expected call of ReadPiece.

func (*MockPieceAPIMockRecorder) UploadPiece added in v0.0.13

func (mr *MockPieceAPIMockRecorder) UploadPiece(ctx, upload any) *gomock.Call

UploadPiece indicates an expected call of UploadPiece.

type MockProofSetAPI added in v0.0.13

type MockProofSetAPI struct {
	// contains filtered or unexported fields
}

MockProofSetAPI is a mock of ProofSetAPI interface.

func NewMockProofSetAPI added in v0.0.13

func NewMockProofSetAPI(ctrl *gomock.Controller) *MockProofSetAPI

NewMockProofSetAPI creates a new mock instance.

func (*MockProofSetAPI) AddRoots added in v0.0.13

func (m *MockProofSetAPI) AddRoots(ctx context.Context, proofSetID uint64, roots []types.RootAdd) (common.Hash, error)

AddRoots mocks base method.

func (*MockProofSetAPI) CreateProofSet added in v0.0.13

func (m *MockProofSetAPI) CreateProofSet(ctx context.Context, recordKeeper common.Address) (common.Hash, error)

CreateProofSet mocks base method.

func (*MockProofSetAPI) EXPECT added in v0.0.13

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProofSetAPI) GetProofSet added in v0.0.13

func (m *MockProofSetAPI) GetProofSet(ctx context.Context, proofSetID uint64) (*types.ProofSet, error)

GetProofSet mocks base method.

func (*MockProofSetAPI) GetProofSetStatus added in v0.0.13

func (m *MockProofSetAPI) GetProofSetStatus(ctx context.Context, txHash common.Hash) (*types.ProofSetStatus, error)

GetProofSetStatus mocks base method.

func (*MockProofSetAPI) RemoveRoot added in v0.0.13

func (m *MockProofSetAPI) RemoveRoot(ctx context.Context, proofSetID, rootID uint64) (common.Hash, error)

RemoveRoot mocks base method.

type MockProofSetAPIMockRecorder added in v0.0.13

type MockProofSetAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockProofSetAPIMockRecorder is the mock recorder for MockProofSetAPI.

func (*MockProofSetAPIMockRecorder) AddRoots added in v0.0.13

func (mr *MockProofSetAPIMockRecorder) AddRoots(ctx, proofSetID, roots any) *gomock.Call

AddRoots indicates an expected call of AddRoots.

func (*MockProofSetAPIMockRecorder) CreateProofSet added in v0.0.13

func (mr *MockProofSetAPIMockRecorder) CreateProofSet(ctx, recordKeeper any) *gomock.Call

CreateProofSet indicates an expected call of CreateProofSet.

func (*MockProofSetAPIMockRecorder) GetProofSet added in v0.0.13

func (mr *MockProofSetAPIMockRecorder) GetProofSet(ctx, proofSetID any) *gomock.Call

GetProofSet indicates an expected call of GetProofSet.

func (*MockProofSetAPIMockRecorder) GetProofSetStatus added in v0.0.13

func (mr *MockProofSetAPIMockRecorder) GetProofSetStatus(ctx, txHash any) *gomock.Call

GetProofSetStatus indicates an expected call of GetProofSetStatus.

func (*MockProofSetAPIMockRecorder) RemoveRoot added in v0.0.13

func (mr *MockProofSetAPIMockRecorder) RemoveRoot(ctx, proofSetID, rootID any) *gomock.Call

RemoveRoot indicates an expected call of RemoveRoot.

type MockSenderETHClient

type MockSenderETHClient struct {
	// contains filtered or unexported fields
}

MockSenderETHClient is a mock of SenderETHClient interface.

func NewMockSenderETHClient

func NewMockSenderETHClient(ctrl *gomock.Controller) *MockSenderETHClient

NewMockSenderETHClient creates a new mock instance.

func (*MockSenderETHClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSenderETHClient) EstimateGas

func (m *MockSenderETHClient) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)

EstimateGas mocks base method.

func (*MockSenderETHClient) HeaderByNumber

func (m *MockSenderETHClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber mocks base method.

func (*MockSenderETHClient) NetworkID

func (m *MockSenderETHClient) NetworkID(ctx context.Context) (*big.Int, error)

NetworkID mocks base method.

func (*MockSenderETHClient) PendingNonceAt

func (m *MockSenderETHClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt mocks base method.

func (*MockSenderETHClient) SendTransaction

func (m *MockSenderETHClient) SendTransaction(ctx context.Context, transaction *types.Transaction) error

SendTransaction mocks base method.

func (*MockSenderETHClient) SuggestGasTipCap

func (m *MockSenderETHClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap mocks base method.

type MockSenderETHClientMockRecorder

type MockSenderETHClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockSenderETHClientMockRecorder is the mock recorder for MockSenderETHClient.

func (*MockSenderETHClientMockRecorder) EstimateGas

func (mr *MockSenderETHClientMockRecorder) EstimateGas(ctx, msg any) *gomock.Call

EstimateGas indicates an expected call of EstimateGas.

func (*MockSenderETHClientMockRecorder) HeaderByNumber

func (mr *MockSenderETHClientMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockSenderETHClientMockRecorder) NetworkID

func (mr *MockSenderETHClientMockRecorder) NetworkID(ctx any) *gomock.Call

NetworkID indicates an expected call of NetworkID.

func (*MockSenderETHClientMockRecorder) PendingNonceAt

func (mr *MockSenderETHClientMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call

PendingNonceAt indicates an expected call of PendingNonceAt.

func (*MockSenderETHClientMockRecorder) SendTransaction

func (mr *MockSenderETHClientMockRecorder) SendTransaction(ctx, transaction any) *gomock.Call

SendTransaction indicates an expected call of SendTransaction.

func (*MockSenderETHClientMockRecorder) SuggestGasTipCap

func (mr *MockSenderETHClientMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call

SuggestGasTipCap indicates an expected call of SuggestGasTipCap.

Jump to

Keyboard shortcuts

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