v1

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 48 Imported by: 0

Documentation

Overview

Package v1 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivationService

func NewActivationService(atxProvider atxProvider, goldenAtx types.ATXID) *activationService

Types

type AdminService

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

AdminService exposes endpoints for node administration.

func NewAdminService

func NewAdminService(db sql.StateDatabase, dataDir string, p peers) *AdminService

NewAdminService creates a new admin grpc service.

func (*AdminService) CheckpointStream

func (*AdminService) EventsStream

func (*AdminService) PeerInfoStream

func (a *AdminService) PeerInfoStream(_ *emptypb.Empty, stream pb.AdminService_PeerInfoStreamServer) error

func (*AdminService) Recover

func (a *AdminService) Recover(ctx context.Context, _ *pb.RecoverRequest) (*emptypb.Empty, error)

func (*AdminService) RegisterHandlerService

func (a *AdminService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*AdminService) RegisterService

func (a *AdminService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*AdminService) String

func (a *AdminService) String() string

String returns the name of this service.

type DebugService

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

DebugService exposes global state data, output from the STF.

func NewDebugService

func NewDebugService(db sql.StateDatabase, conState conservativeState, host networkInfo, oracle oracle,
	loggers map[string]*zap.AtomicLevel,
) *DebugService

NewDebugService creates a new grpc service using config data.

func (*DebugService) Accounts

Accounts returns current counter and balance for all accounts.

func (*DebugService) ActiveSet

ActiveSet query provides hare active set for the specified epoch.

func (*DebugService) ChangeLogLevel

func (d *DebugService) ChangeLogLevel(ctx context.Context, req *pb.ChangeLogLevelRequest) (*emptypb.Empty, error)

func (*DebugService) NetworkInfo

func (d *DebugService) NetworkInfo(ctx context.Context, _ *emptypb.Empty) (*pb.NetworkInfoResponse, error)

NetworkInfo query provides NetworkInfoResponse.

func (*DebugService) ProposalsStream

func (d *DebugService) ProposalsStream(_ *emptypb.Empty, stream pb.DebugService_ProposalsStreamServer) error

ProposalsStream streams all proposals confirmed by hare.

func (*DebugService) RegisterHandlerService

func (d *DebugService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*DebugService) RegisterService

func (d *DebugService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*DebugService) String

func (d *DebugService) String() string

String returns the name of this service.

type GlobalStateService

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

GlobalStateService exposes global state data, output from the STF.

func NewGlobalStateService

func NewGlobalStateService(msh meshAPI, conState conservativeState) *GlobalStateService

NewGlobalStateService creates a new grpc service using config data.

func (*GlobalStateService) Account

Account returns current and projected counter and balance for one account.

func (*GlobalStateService) AccountDataQuery

AccountDataQuery returns historical account data such as rewards and receipts.

func (*GlobalStateService) AccountDataStream

AccountDataStream exposes a stream of account-related data.

func (*GlobalStateService) GlobalStateHash

GlobalStateHash returns the latest layer and its computed global state hash.

func (*GlobalStateService) GlobalStateStream

GlobalStateStream exposes a stream of global data data items: rewards, receipts, account info, global state hash.

func (*GlobalStateService) RegisterHandlerService

func (s *GlobalStateService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*GlobalStateService) RegisterService

func (s *GlobalStateService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*GlobalStateService) String

func (s *GlobalStateService) String() string

String returns the name of the service.

type MeshService

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

MeshService exposes mesh data such as accounts, blocks, and transactions.

func NewMeshService

func NewMeshService(
	cdb *datastore.CachedDB,
	msh meshAPI,
	cstate conservativeState,
	genTime genesisTimeAPI,
	layersPerEpoch uint32,
	genesisID types.Hash20,
	layerDuration time.Duration,
	layerAvgSize,
	txsPerProposal uint32,
) *MeshService

NewMeshService creates a new service using config data.

func (*MeshService) AccountMeshDataQuery

AccountMeshDataQuery returns account data.

func (*MeshService) AccountMeshDataStream

AccountMeshDataStream exposes a stream of transactions and activations for an account.

func (*MeshService) CurrentEpoch

CurrentEpoch returns the current epoch number.

func (*MeshService) CurrentLayer

CurrentLayer returns the current layer number.

func (*MeshService) EpochNumLayers

EpochNumLayers returns the number of layers per epoch (a network parameter).

func (*MeshService) EpochStream

func (*MeshService) GenesisID

GenesisID returns the network ID.

func (*MeshService) GenesisTime

GenesisTime returns the network genesis time as UNIX time.

func (*MeshService) LayerDuration

LayerDuration returns the layer duration in seconds (a network parameter).

func (*MeshService) LayerStream

LayerStream exposes a stream of all mesh data per layer.

func (*MeshService) LayersQuery

LayersQuery returns all mesh data, layer by layer.

func (*MeshService) MalfeasanceQuery

func (s *MeshService) MalfeasanceQuery(
	ctx context.Context,
	req *pb.MalfeasanceRequest,
) (*pb.MalfeasanceResponse, error)

func (*MeshService) MalfeasanceStream

func (*MeshService) MaxTransactionsPerSecond

MaxTransactionsPerSecond returns the max number of tx per sec (a network parameter).

func (*MeshService) RegisterHandlerService

func (s *MeshService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*MeshService) RegisterService

func (s *MeshService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*MeshService) String

func (s *MeshService) String() string

String returns the name of this service.

type MockatxProvider

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

MockatxProvider is a mock of atxProvider interface.

func NewMockatxProvider

func NewMockatxProvider(ctrl *gomock.Controller) *MockatxProvider

NewMockatxProvider creates a new mock instance.

func (*MockatxProvider) EXPECT

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

func (*MockatxProvider) GetAtx

func (m *MockatxProvider) GetAtx(id types.ATXID) (*types.ActivationTx, error)

GetAtx mocks base method.

func (*MockatxProvider) MalfeasanceProof

func (m *MockatxProvider) MalfeasanceProof(id types.NodeID) ([]byte, error)

MalfeasanceProof mocks base method.

func (*MockatxProvider) MaxHeightAtx

func (m *MockatxProvider) MaxHeightAtx() (types.ATXID, error)

MaxHeightAtx mocks base method.

func (*MockatxProvider) Previous

func (m *MockatxProvider) Previous(id types.ATXID) ([]types.ATXID, error)

Previous mocks base method.

type MockatxProviderGetAtxCall

type MockatxProviderGetAtxCall struct {
	*gomock.Call
}

MockatxProviderGetAtxCall wrap *gomock.Call

func (*MockatxProviderGetAtxCall) Do

Do rewrite *gomock.Call.Do

func (*MockatxProviderGetAtxCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockatxProviderGetAtxCall) Return

Return rewrite *gomock.Call.Return

type MockatxProviderMalfeasanceProofCall

type MockatxProviderMalfeasanceProofCall struct {
	*gomock.Call
}

MockatxProviderMalfeasanceProofCall wrap *gomock.Call

func (*MockatxProviderMalfeasanceProofCall) Do

Do rewrite *gomock.Call.Do

func (*MockatxProviderMalfeasanceProofCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockatxProviderMalfeasanceProofCall) Return

Return rewrite *gomock.Call.Return

type MockatxProviderMaxHeightAtxCall

type MockatxProviderMaxHeightAtxCall struct {
	*gomock.Call
}

MockatxProviderMaxHeightAtxCall wrap *gomock.Call

func (*MockatxProviderMaxHeightAtxCall) Do

Do rewrite *gomock.Call.Do

func (*MockatxProviderMaxHeightAtxCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockatxProviderMaxHeightAtxCall) Return

Return rewrite *gomock.Call.Return

type MockatxProviderMockRecorder

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

MockatxProviderMockRecorder is the mock recorder for MockatxProvider.

func (*MockatxProviderMockRecorder) GetAtx

GetAtx indicates an expected call of GetAtx.

func (*MockatxProviderMockRecorder) MalfeasanceProof

MalfeasanceProof indicates an expected call of MalfeasanceProof.

func (*MockatxProviderMockRecorder) MaxHeightAtx

MaxHeightAtx indicates an expected call of MaxHeightAtx.

func (*MockatxProviderMockRecorder) Previous

Previous indicates an expected call of Previous.

type MockatxProviderPreviousCall

type MockatxProviderPreviousCall struct {
	*gomock.Call
}

MockatxProviderPreviousCall wrap *gomock.Call

func (*MockatxProviderPreviousCall) Do

Do rewrite *gomock.Call.Do

func (*MockatxProviderPreviousCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockatxProviderPreviousCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeState

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

MockconservativeState is a mock of conservativeState interface.

func NewMockconservativeState

func NewMockconservativeState(ctrl *gomock.Controller) *MockconservativeState

NewMockconservativeState creates a new mock instance.

func (*MockconservativeState) EXPECT

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

func (*MockconservativeState) GetAllAccounts

func (m *MockconservativeState) GetAllAccounts() ([]*types.Account, error)

GetAllAccounts mocks base method.

func (*MockconservativeState) GetBalance

func (m *MockconservativeState) GetBalance(arg0 types.Address) (uint64, error)

GetBalance mocks base method.

func (*MockconservativeState) GetLayerStateRoot

func (m *MockconservativeState) GetLayerStateRoot(arg0 types.LayerID) (types.Hash32, error)

GetLayerStateRoot mocks base method.

func (*MockconservativeState) GetMeshTransaction

func (m *MockconservativeState) GetMeshTransaction(arg0 types.TransactionID) (*types.MeshTransaction, error)

GetMeshTransaction mocks base method.

func (*MockconservativeState) GetMeshTransactions

func (m *MockconservativeState) GetMeshTransactions(arg0 []types.TransactionID) ([]*types.MeshTransaction, map[types.TransactionID]struct{})

GetMeshTransactions mocks base method.

func (*MockconservativeState) GetNonce

func (m *MockconservativeState) GetNonce(arg0 types.Address) (types.Nonce, error)

GetNonce mocks base method.

func (*MockconservativeState) GetProjection

func (m *MockconservativeState) GetProjection(arg0 types.Address) (uint64, uint64)

GetProjection mocks base method.

func (*MockconservativeState) GetStateRoot

func (m *MockconservativeState) GetStateRoot() (types.Hash32, error)

GetStateRoot mocks base method.

func (*MockconservativeState) GetTransactionsByAddress

func (m *MockconservativeState) GetTransactionsByAddress(arg0, arg1 types.LayerID, arg2 types.Address) ([]*types.MeshTransaction, error)

GetTransactionsByAddress mocks base method.

func (*MockconservativeState) HasEvicted

func (m *MockconservativeState) HasEvicted(tid types.TransactionID) (bool, error)

HasEvicted mocks base method.

func (*MockconservativeState) Validation

Validation mocks base method.

type MockconservativeStateGetAllAccountsCall

type MockconservativeStateGetAllAccountsCall struct {
	*gomock.Call
}

MockconservativeStateGetAllAccountsCall wrap *gomock.Call

func (*MockconservativeStateGetAllAccountsCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetAllAccountsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetAllAccountsCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetBalanceCall

type MockconservativeStateGetBalanceCall struct {
	*gomock.Call
}

MockconservativeStateGetBalanceCall wrap *gomock.Call

func (*MockconservativeStateGetBalanceCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetBalanceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetBalanceCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetLayerStateRootCall

type MockconservativeStateGetLayerStateRootCall struct {
	*gomock.Call
}

MockconservativeStateGetLayerStateRootCall wrap *gomock.Call

func (*MockconservativeStateGetLayerStateRootCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetLayerStateRootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetLayerStateRootCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetMeshTransactionCall

type MockconservativeStateGetMeshTransactionCall struct {
	*gomock.Call
}

MockconservativeStateGetMeshTransactionCall wrap *gomock.Call

func (*MockconservativeStateGetMeshTransactionCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetMeshTransactionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetMeshTransactionCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetMeshTransactionsCall

type MockconservativeStateGetMeshTransactionsCall struct {
	*gomock.Call
}

MockconservativeStateGetMeshTransactionsCall wrap *gomock.Call

func (*MockconservativeStateGetMeshTransactionsCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetMeshTransactionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetMeshTransactionsCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetNonceCall

type MockconservativeStateGetNonceCall struct {
	*gomock.Call
}

MockconservativeStateGetNonceCall wrap *gomock.Call

func (*MockconservativeStateGetNonceCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetNonceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetNonceCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetProjectionCall

type MockconservativeStateGetProjectionCall struct {
	*gomock.Call
}

MockconservativeStateGetProjectionCall wrap *gomock.Call

func (*MockconservativeStateGetProjectionCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetProjectionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetProjectionCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetStateRootCall

type MockconservativeStateGetStateRootCall struct {
	*gomock.Call
}

MockconservativeStateGetStateRootCall wrap *gomock.Call

func (*MockconservativeStateGetStateRootCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetStateRootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetStateRootCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateGetTransactionsByAddressCall

type MockconservativeStateGetTransactionsByAddressCall struct {
	*gomock.Call
}

MockconservativeStateGetTransactionsByAddressCall wrap *gomock.Call

func (*MockconservativeStateGetTransactionsByAddressCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateGetTransactionsByAddressCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateGetTransactionsByAddressCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateHasEvictedCall

type MockconservativeStateHasEvictedCall struct {
	*gomock.Call
}

MockconservativeStateHasEvictedCall wrap *gomock.Call

func (*MockconservativeStateHasEvictedCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateHasEvictedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateHasEvictedCall) Return

Return rewrite *gomock.Call.Return

type MockconservativeStateMockRecorder

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

MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.

func (*MockconservativeStateMockRecorder) GetAllAccounts

GetAllAccounts indicates an expected call of GetAllAccounts.

func (*MockconservativeStateMockRecorder) GetBalance

GetBalance indicates an expected call of GetBalance.

func (*MockconservativeStateMockRecorder) GetLayerStateRoot

GetLayerStateRoot indicates an expected call of GetLayerStateRoot.

func (*MockconservativeStateMockRecorder) GetMeshTransaction

GetMeshTransaction indicates an expected call of GetMeshTransaction.

func (*MockconservativeStateMockRecorder) GetMeshTransactions

GetMeshTransactions indicates an expected call of GetMeshTransactions.

func (*MockconservativeStateMockRecorder) GetNonce

GetNonce indicates an expected call of GetNonce.

func (*MockconservativeStateMockRecorder) GetProjection

GetProjection indicates an expected call of GetProjection.

func (*MockconservativeStateMockRecorder) GetStateRoot

GetStateRoot indicates an expected call of GetStateRoot.

func (*MockconservativeStateMockRecorder) GetTransactionsByAddress

func (mr *MockconservativeStateMockRecorder) GetTransactionsByAddress(arg0, arg1, arg2 any) *MockconservativeStateGetTransactionsByAddressCall

GetTransactionsByAddress indicates an expected call of GetTransactionsByAddress.

func (*MockconservativeStateMockRecorder) HasEvicted

HasEvicted indicates an expected call of HasEvicted.

func (*MockconservativeStateMockRecorder) Validation

Validation indicates an expected call of Validation.

type MockconservativeStateValidationCall

type MockconservativeStateValidationCall struct {
	*gomock.Call
}

MockconservativeStateValidationCall wrap *gomock.Call

func (*MockconservativeStateValidationCall) Do

Do rewrite *gomock.Call.Do

func (*MockconservativeStateValidationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateValidationCall) Return

Return rewrite *gomock.Call.Return

type MockgenesisTimeAPI

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

MockgenesisTimeAPI is a mock of genesisTimeAPI interface.

func NewMockgenesisTimeAPI

func NewMockgenesisTimeAPI(ctrl *gomock.Controller) *MockgenesisTimeAPI

NewMockgenesisTimeAPI creates a new mock instance.

func (*MockgenesisTimeAPI) CurrentLayer

func (m *MockgenesisTimeAPI) CurrentLayer() types.LayerID

CurrentLayer mocks base method.

func (*MockgenesisTimeAPI) EXPECT

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

func (*MockgenesisTimeAPI) GenesisTime

func (m *MockgenesisTimeAPI) GenesisTime() time.Time

GenesisTime mocks base method.

type MockgenesisTimeAPICurrentLayerCall

type MockgenesisTimeAPICurrentLayerCall struct {
	*gomock.Call
}

MockgenesisTimeAPICurrentLayerCall wrap *gomock.Call

func (*MockgenesisTimeAPICurrentLayerCall) Do

Do rewrite *gomock.Call.Do

func (*MockgenesisTimeAPICurrentLayerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgenesisTimeAPICurrentLayerCall) Return

Return rewrite *gomock.Call.Return

type MockgenesisTimeAPIGenesisTimeCall

type MockgenesisTimeAPIGenesisTimeCall struct {
	*gomock.Call
}

MockgenesisTimeAPIGenesisTimeCall wrap *gomock.Call

func (*MockgenesisTimeAPIGenesisTimeCall) Do

Do rewrite *gomock.Call.Do

func (*MockgenesisTimeAPIGenesisTimeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgenesisTimeAPIGenesisTimeCall) Return

Return rewrite *gomock.Call.Return

type MockgenesisTimeAPIMockRecorder

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

MockgenesisTimeAPIMockRecorder is the mock recorder for MockgenesisTimeAPI.

func (*MockgenesisTimeAPIMockRecorder) CurrentLayer

CurrentLayer indicates an expected call of CurrentLayer.

func (*MockgenesisTimeAPIMockRecorder) GenesisTime

GenesisTime indicates an expected call of GenesisTime.

type MockgrpcPostService

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

MockgrpcPostService is a mock of grpcPostService interface.

func NewMockgrpcPostService

func NewMockgrpcPostService(ctrl *gomock.Controller) *MockgrpcPostService

NewMockgrpcPostService creates a new mock instance.

func (*MockgrpcPostService) AllowConnections

func (m *MockgrpcPostService) AllowConnections(allow bool)

AllowConnections mocks base method.

func (*MockgrpcPostService) EXPECT

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

type MockgrpcPostServiceAllowConnectionsCall

type MockgrpcPostServiceAllowConnectionsCall struct {
	*gomock.Call
}

MockgrpcPostServiceAllowConnectionsCall wrap *gomock.Call

func (*MockgrpcPostServiceAllowConnectionsCall) Do

Do rewrite *gomock.Call.Do

func (*MockgrpcPostServiceAllowConnectionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgrpcPostServiceAllowConnectionsCall) Return

Return rewrite *gomock.Call.Return

type MockgrpcPostServiceMockRecorder

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

MockgrpcPostServiceMockRecorder is the mock recorder for MockgrpcPostService.

func (*MockgrpcPostServiceMockRecorder) AllowConnections

AllowConnections indicates an expected call of AllowConnections.

type MockmeshAPI

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

MockmeshAPI is a mock of meshAPI interface.

func NewMockmeshAPI

func NewMockmeshAPI(ctrl *gomock.Controller) *MockmeshAPI

NewMockmeshAPI creates a new mock instance.

func (*MockmeshAPI) EXPECT

func (m *MockmeshAPI) EXPECT() *MockmeshAPIMockRecorder

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

func (*MockmeshAPI) GetLayer

func (m *MockmeshAPI) GetLayer(arg0 types.LayerID) (*types.Layer, error)

GetLayer mocks base method.

func (*MockmeshAPI) GetLayerVerified

func (m *MockmeshAPI) GetLayerVerified(arg0 types.LayerID) (*types.Block, error)

GetLayerVerified mocks base method.

func (*MockmeshAPI) GetRewardsByCoinbase

func (m *MockmeshAPI) GetRewardsByCoinbase(arg0 types.Address) ([]*types.Reward, error)

GetRewardsByCoinbase mocks base method.

func (*MockmeshAPI) LatestLayer

func (m *MockmeshAPI) LatestLayer() types.LayerID

LatestLayer mocks base method.

func (*MockmeshAPI) LatestLayerInState

func (m *MockmeshAPI) LatestLayerInState() types.LayerID

LatestLayerInState mocks base method.

func (*MockmeshAPI) MeshHash

func (m *MockmeshAPI) MeshHash(arg0 types.LayerID) (types.Hash32, error)

MeshHash mocks base method.

func (*MockmeshAPI) ProcessedLayer

func (m *MockmeshAPI) ProcessedLayer() types.LayerID

ProcessedLayer mocks base method.

type MockmeshAPIGetLayerCall

type MockmeshAPIGetLayerCall struct {
	*gomock.Call
}

MockmeshAPIGetLayerCall wrap *gomock.Call

func (*MockmeshAPIGetLayerCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPIGetLayerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPIGetLayerCall) Return

Return rewrite *gomock.Call.Return

type MockmeshAPIGetLayerVerifiedCall

type MockmeshAPIGetLayerVerifiedCall struct {
	*gomock.Call
}

MockmeshAPIGetLayerVerifiedCall wrap *gomock.Call

func (*MockmeshAPIGetLayerVerifiedCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPIGetLayerVerifiedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPIGetLayerVerifiedCall) Return

Return rewrite *gomock.Call.Return

type MockmeshAPIGetRewardsByCoinbaseCall

type MockmeshAPIGetRewardsByCoinbaseCall struct {
	*gomock.Call
}

MockmeshAPIGetRewardsByCoinbaseCall wrap *gomock.Call

func (*MockmeshAPIGetRewardsByCoinbaseCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPIGetRewardsByCoinbaseCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPIGetRewardsByCoinbaseCall) Return

Return rewrite *gomock.Call.Return

type MockmeshAPILatestLayerCall

type MockmeshAPILatestLayerCall struct {
	*gomock.Call
}

MockmeshAPILatestLayerCall wrap *gomock.Call

func (*MockmeshAPILatestLayerCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPILatestLayerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPILatestLayerCall) Return

Return rewrite *gomock.Call.Return

type MockmeshAPILatestLayerInStateCall

type MockmeshAPILatestLayerInStateCall struct {
	*gomock.Call
}

MockmeshAPILatestLayerInStateCall wrap *gomock.Call

func (*MockmeshAPILatestLayerInStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPILatestLayerInStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPILatestLayerInStateCall) Return

Return rewrite *gomock.Call.Return

type MockmeshAPIMeshHashCall

type MockmeshAPIMeshHashCall struct {
	*gomock.Call
}

MockmeshAPIMeshHashCall wrap *gomock.Call

func (*MockmeshAPIMeshHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPIMeshHashCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPIMeshHashCall) Return

Return rewrite *gomock.Call.Return

type MockmeshAPIMockRecorder

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

MockmeshAPIMockRecorder is the mock recorder for MockmeshAPI.

func (*MockmeshAPIMockRecorder) GetLayer

GetLayer indicates an expected call of GetLayer.

func (*MockmeshAPIMockRecorder) GetLayerVerified

func (mr *MockmeshAPIMockRecorder) GetLayerVerified(arg0 any) *MockmeshAPIGetLayerVerifiedCall

GetLayerVerified indicates an expected call of GetLayerVerified.

func (*MockmeshAPIMockRecorder) GetRewardsByCoinbase

func (mr *MockmeshAPIMockRecorder) GetRewardsByCoinbase(arg0 any) *MockmeshAPIGetRewardsByCoinbaseCall

GetRewardsByCoinbase indicates an expected call of GetRewardsByCoinbase.

func (*MockmeshAPIMockRecorder) LatestLayer

LatestLayer indicates an expected call of LatestLayer.

func (*MockmeshAPIMockRecorder) LatestLayerInState

LatestLayerInState indicates an expected call of LatestLayerInState.

func (*MockmeshAPIMockRecorder) MeshHash

MeshHash indicates an expected call of MeshHash.

func (*MockmeshAPIMockRecorder) ProcessedLayer

ProcessedLayer indicates an expected call of ProcessedLayer.

type MockmeshAPIProcessedLayerCall

type MockmeshAPIProcessedLayerCall struct {
	*gomock.Call
}

MockmeshAPIProcessedLayerCall wrap *gomock.Call

func (*MockmeshAPIProcessedLayerCall) Do

Do rewrite *gomock.Call.Do

func (*MockmeshAPIProcessedLayerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshAPIProcessedLayerCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfo

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

MocknetworkInfo is a mock of networkInfo interface.

func NewMocknetworkInfo

func NewMocknetworkInfo(ctrl *gomock.Controller) *MocknetworkInfo

NewMocknetworkInfo creates a new mock instance.

func (*MocknetworkInfo) DHTServerEnabled

func (m *MocknetworkInfo) DHTServerEnabled() bool

DHTServerEnabled mocks base method.

func (*MocknetworkInfo) EXPECT

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

func (*MocknetworkInfo) ID

func (m *MocknetworkInfo) ID() p2p.Peer

ID mocks base method.

func (*MocknetworkInfo) KnownAddresses

func (m *MocknetworkInfo) KnownAddresses() []multiaddr.Multiaddr

KnownAddresses mocks base method.

func (*MocknetworkInfo) ListenAddresses

func (m *MocknetworkInfo) ListenAddresses() []multiaddr.Multiaddr

ListenAddresses mocks base method.

func (*MocknetworkInfo) NATDeviceType

NATDeviceType mocks base method.

func (*MocknetworkInfo) PeerInfo

func (m *MocknetworkInfo) PeerInfo() peerinfo.PeerInfo

PeerInfo mocks base method.

func (*MocknetworkInfo) Reachability

func (m *MocknetworkInfo) Reachability() network.Reachability

Reachability mocks base method.

type MocknetworkInfoDHTServerEnabledCall

type MocknetworkInfoDHTServerEnabledCall struct {
	*gomock.Call
}

MocknetworkInfoDHTServerEnabledCall wrap *gomock.Call

func (*MocknetworkInfoDHTServerEnabledCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoDHTServerEnabledCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoDHTServerEnabledCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfoIDCall

type MocknetworkInfoIDCall struct {
	*gomock.Call
}

MocknetworkInfoIDCall wrap *gomock.Call

func (*MocknetworkInfoIDCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoIDCall) DoAndReturn

func (c *MocknetworkInfoIDCall) DoAndReturn(f func() p2p.Peer) *MocknetworkInfoIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoIDCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfoKnownAddressesCall

type MocknetworkInfoKnownAddressesCall struct {
	*gomock.Call
}

MocknetworkInfoKnownAddressesCall wrap *gomock.Call

func (*MocknetworkInfoKnownAddressesCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoKnownAddressesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoKnownAddressesCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfoListenAddressesCall

type MocknetworkInfoListenAddressesCall struct {
	*gomock.Call
}

MocknetworkInfoListenAddressesCall wrap *gomock.Call

func (*MocknetworkInfoListenAddressesCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoListenAddressesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoListenAddressesCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfoMockRecorder

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

MocknetworkInfoMockRecorder is the mock recorder for MocknetworkInfo.

func (*MocknetworkInfoMockRecorder) DHTServerEnabled

DHTServerEnabled indicates an expected call of DHTServerEnabled.

func (*MocknetworkInfoMockRecorder) ID

ID indicates an expected call of ID.

func (*MocknetworkInfoMockRecorder) KnownAddresses

KnownAddresses indicates an expected call of KnownAddresses.

func (*MocknetworkInfoMockRecorder) ListenAddresses

ListenAddresses indicates an expected call of ListenAddresses.

func (*MocknetworkInfoMockRecorder) NATDeviceType

NATDeviceType indicates an expected call of NATDeviceType.

func (*MocknetworkInfoMockRecorder) PeerInfo

PeerInfo indicates an expected call of PeerInfo.

func (*MocknetworkInfoMockRecorder) Reachability

Reachability indicates an expected call of Reachability.

type MocknetworkInfoNATDeviceTypeCall

type MocknetworkInfoNATDeviceTypeCall struct {
	*gomock.Call
}

MocknetworkInfoNATDeviceTypeCall wrap *gomock.Call

func (*MocknetworkInfoNATDeviceTypeCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoNATDeviceTypeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoNATDeviceTypeCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfoPeerInfoCall

type MocknetworkInfoPeerInfoCall struct {
	*gomock.Call
}

MocknetworkInfoPeerInfoCall wrap *gomock.Call

func (*MocknetworkInfoPeerInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoPeerInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoPeerInfoCall) Return

Return rewrite *gomock.Call.Return

type MocknetworkInfoReachabilityCall

type MocknetworkInfoReachabilityCall struct {
	*gomock.Call
}

MocknetworkInfoReachabilityCall wrap *gomock.Call

func (*MocknetworkInfoReachabilityCall) Do

Do rewrite *gomock.Call.Do

func (*MocknetworkInfoReachabilityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocknetworkInfoReachabilityCall) Return

Return rewrite *gomock.Call.Return

type Mockoracle

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

Mockoracle is a mock of oracle interface.

func NewMockoracle

func NewMockoracle(ctrl *gomock.Controller) *Mockoracle

NewMockoracle creates a new mock instance.

func (*Mockoracle) ActiveSet

func (m *Mockoracle) ActiveSet(arg0 context.Context, arg1 types.EpochID) ([]types.ATXID, error)

ActiveSet mocks base method.

func (*Mockoracle) EXPECT

func (m *Mockoracle) EXPECT() *MockoracleMockRecorder

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

type MockoracleActiveSetCall

type MockoracleActiveSetCall struct {
	*gomock.Call
}

MockoracleActiveSetCall wrap *gomock.Call

func (*MockoracleActiveSetCall) Do

Do rewrite *gomock.Call.Do

func (*MockoracleActiveSetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockoracleActiveSetCall) Return

Return rewrite *gomock.Call.Return

type MockoracleMockRecorder

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

MockoracleMockRecorder is the mock recorder for Mockoracle.

func (*MockoracleMockRecorder) ActiveSet

func (mr *MockoracleMockRecorder) ActiveSet(arg0, arg1 any) *MockoracleActiveSetCall

ActiveSet indicates an expected call of ActiveSet.

type MockpeerCounter

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

MockpeerCounter is a mock of peerCounter interface.

func NewMockpeerCounter

func NewMockpeerCounter(ctrl *gomock.Controller) *MockpeerCounter

NewMockpeerCounter creates a new mock instance.

func (*MockpeerCounter) EXPECT

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

func (*MockpeerCounter) PeerCount

func (m *MockpeerCounter) PeerCount() uint64

PeerCount mocks base method.

type MockpeerCounterMockRecorder

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

MockpeerCounterMockRecorder is the mock recorder for MockpeerCounter.

func (*MockpeerCounterMockRecorder) PeerCount

PeerCount indicates an expected call of PeerCount.

type MockpeerCounterPeerCountCall

type MockpeerCounterPeerCountCall struct {
	*gomock.Call
}

MockpeerCounterPeerCountCall wrap *gomock.Call

func (*MockpeerCounterPeerCountCall) Do

Do rewrite *gomock.Call.Do

func (*MockpeerCounterPeerCountCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeerCounterPeerCountCall) Return

Return rewrite *gomock.Call.Return

type Mockpeers

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

Mockpeers is a mock of peers interface.

func NewMockpeers

func NewMockpeers(ctrl *gomock.Controller) *Mockpeers

NewMockpeers creates a new mock instance.

func (*Mockpeers) ConnectedPeerInfo

func (m *Mockpeers) ConnectedPeerInfo(arg0 p2p.Peer) *p2p.PeerInfo

ConnectedPeerInfo mocks base method.

func (*Mockpeers) EXPECT

func (m *Mockpeers) EXPECT() *MockpeersMockRecorder

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

func (*Mockpeers) GetPeers

func (m *Mockpeers) GetPeers() []p2p.Peer

GetPeers mocks base method.

type MockpeersConnectedPeerInfoCall

type MockpeersConnectedPeerInfoCall struct {
	*gomock.Call
}

MockpeersConnectedPeerInfoCall wrap *gomock.Call

func (*MockpeersConnectedPeerInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockpeersConnectedPeerInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeersConnectedPeerInfoCall) Return

Return rewrite *gomock.Call.Return

type MockpeersGetPeersCall

type MockpeersGetPeersCall struct {
	*gomock.Call
}

MockpeersGetPeersCall wrap *gomock.Call

func (*MockpeersGetPeersCall) Do

Do rewrite *gomock.Call.Do

func (*MockpeersGetPeersCall) DoAndReturn

func (c *MockpeersGetPeersCall) DoAndReturn(f func() []p2p.Peer) *MockpeersGetPeersCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeersGetPeersCall) Return

Return rewrite *gomock.Call.Return

type MockpeersMockRecorder

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

MockpeersMockRecorder is the mock recorder for Mockpeers.

func (*MockpeersMockRecorder) ConnectedPeerInfo

func (mr *MockpeersMockRecorder) ConnectedPeerInfo(arg0 any) *MockpeersConnectedPeerInfoCall

ConnectedPeerInfo indicates an expected call of ConnectedPeerInfo.

func (*MockpeersMockRecorder) GetPeers

GetPeers indicates an expected call of GetPeers.

type MockpostState

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

MockpostState is a mock of postState interface.

func NewMockpostState

func NewMockpostState(ctrl *gomock.Controller) *MockpostState

NewMockpostState creates a new mock instance.

func (*MockpostState) EXPECT

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

func (*MockpostState) PostStates

PostStates mocks base method.

type MockpostStateMockRecorder

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

MockpostStateMockRecorder is the mock recorder for MockpostState.

func (*MockpostStateMockRecorder) PostStates

PostStates indicates an expected call of PostStates.

type MockpostStatePostStatesCall

type MockpostStatePostStatesCall struct {
	*gomock.Call
}

MockpostStatePostStatesCall wrap *gomock.Call

func (*MockpostStatePostStatesCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostStatePostStatesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostStatePostStatesCall) Return

Return rewrite *gomock.Call.Return

type MockpostSupervisor

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

MockpostSupervisor is a mock of postSupervisor interface.

func NewMockpostSupervisor

func NewMockpostSupervisor(ctrl *gomock.Controller) *MockpostSupervisor

NewMockpostSupervisor creates a new mock instance.

func (*MockpostSupervisor) Benchmark

Benchmark mocks base method.

func (*MockpostSupervisor) Config

Config mocks base method.

func (*MockpostSupervisor) EXPECT

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

func (*MockpostSupervisor) Providers

Providers mocks base method.

func (*MockpostSupervisor) Start

Start mocks base method.

func (*MockpostSupervisor) Status

Status mocks base method.

func (*MockpostSupervisor) Stop

func (m *MockpostSupervisor) Stop(deleteFiles bool) error

Stop mocks base method.

type MockpostSupervisorBenchmarkCall

type MockpostSupervisorBenchmarkCall struct {
	*gomock.Call
}

MockpostSupervisorBenchmarkCall wrap *gomock.Call

func (*MockpostSupervisorBenchmarkCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostSupervisorBenchmarkCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostSupervisorBenchmarkCall) Return

Return rewrite *gomock.Call.Return

type MockpostSupervisorConfigCall

type MockpostSupervisorConfigCall struct {
	*gomock.Call
}

MockpostSupervisorConfigCall wrap *gomock.Call

func (*MockpostSupervisorConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostSupervisorConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostSupervisorConfigCall) Return

Return rewrite *gomock.Call.Return

type MockpostSupervisorMockRecorder

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

MockpostSupervisorMockRecorder is the mock recorder for MockpostSupervisor.

func (*MockpostSupervisorMockRecorder) Benchmark

Benchmark indicates an expected call of Benchmark.

func (*MockpostSupervisorMockRecorder) Config

Config indicates an expected call of Config.

func (*MockpostSupervisorMockRecorder) Providers

Providers indicates an expected call of Providers.

func (*MockpostSupervisorMockRecorder) Start

func (mr *MockpostSupervisorMockRecorder) Start(cmdCfg, opts, sig any) *MockpostSupervisorStartCall

Start indicates an expected call of Start.

func (*MockpostSupervisorMockRecorder) Status

Status indicates an expected call of Status.

func (*MockpostSupervisorMockRecorder) Stop

Stop indicates an expected call of Stop.

type MockpostSupervisorProvidersCall

type MockpostSupervisorProvidersCall struct {
	*gomock.Call
}

MockpostSupervisorProvidersCall wrap *gomock.Call

func (*MockpostSupervisorProvidersCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostSupervisorProvidersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostSupervisorProvidersCall) Return

Return rewrite *gomock.Call.Return

type MockpostSupervisorStartCall

type MockpostSupervisorStartCall struct {
	*gomock.Call
}

MockpostSupervisorStartCall wrap *gomock.Call

func (*MockpostSupervisorStartCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostSupervisorStartCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostSupervisorStartCall) Return

Return rewrite *gomock.Call.Return

type MockpostSupervisorStatusCall

type MockpostSupervisorStatusCall struct {
	*gomock.Call
}

MockpostSupervisorStatusCall wrap *gomock.Call

func (*MockpostSupervisorStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostSupervisorStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostSupervisorStatusCall) Return

Return rewrite *gomock.Call.Return

type MockpostSupervisorStopCall

type MockpostSupervisorStopCall struct {
	*gomock.Call
}

MockpostSupervisorStopCall wrap *gomock.Call

func (*MockpostSupervisorStopCall) Do

Do rewrite *gomock.Call.Do

func (*MockpostSupervisorStopCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpostSupervisorStopCall) Return

Return rewrite *gomock.Call.Return

type Mocksyncer

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

Mocksyncer is a mock of syncer interface.

func NewMocksyncer

func NewMocksyncer(ctrl *gomock.Controller) *Mocksyncer

NewMocksyncer creates a new mock instance.

func (*Mocksyncer) EXPECT

func (m *Mocksyncer) EXPECT() *MocksyncerMockRecorder

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

func (*Mocksyncer) IsSynced

func (m *Mocksyncer) IsSynced(arg0 context.Context) bool

IsSynced mocks base method.

type MocksyncerIsSyncedCall

type MocksyncerIsSyncedCall struct {
	*gomock.Call
}

MocksyncerIsSyncedCall wrap *gomock.Call

func (*MocksyncerIsSyncedCall) Do

Do rewrite *gomock.Call.Do

func (*MocksyncerIsSyncedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocksyncerIsSyncedCall) Return

Return rewrite *gomock.Call.Return

type MocksyncerMockRecorder

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

MocksyncerMockRecorder is the mock recorder for Mocksyncer.

func (*MocksyncerMockRecorder) IsSynced

IsSynced indicates an expected call of IsSynced.

type MocktxValidator

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

MocktxValidator is a mock of txValidator interface.

func NewMocktxValidator

func NewMocktxValidator(ctrl *gomock.Controller) *MocktxValidator

NewMocktxValidator creates a new mock instance.

func (*MocktxValidator) EXPECT

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

func (*MocktxValidator) VerifyAndCacheTx

func (m *MocktxValidator) VerifyAndCacheTx(arg0 context.Context, arg1 []byte) error

VerifyAndCacheTx mocks base method.

type MocktxValidatorMockRecorder

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

MocktxValidatorMockRecorder is the mock recorder for MocktxValidator.

func (*MocktxValidatorMockRecorder) VerifyAndCacheTx

func (mr *MocktxValidatorMockRecorder) VerifyAndCacheTx(arg0, arg1 any) *MocktxValidatorVerifyAndCacheTxCall

VerifyAndCacheTx indicates an expected call of VerifyAndCacheTx.

type MocktxValidatorVerifyAndCacheTxCall

type MocktxValidatorVerifyAndCacheTxCall struct {
	*gomock.Call
}

MocktxValidatorVerifyAndCacheTxCall wrap *gomock.Call

func (*MocktxValidatorVerifyAndCacheTxCall) Do

Do rewrite *gomock.Call.Do

func (*MocktxValidatorVerifyAndCacheTxCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocktxValidatorVerifyAndCacheTxCall) Return

Return rewrite *gomock.Call.Return

type NodeService

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

NodeService is a grpc server that provides the NodeService, which exposes node-related data such as node status, software version, errors, etc. It can also be used to start the sync process, or to shut down the node.

func NewNodeService

func NewNodeService(
	peers peerCounter,
	msh meshAPI,
	genTime genesisTimeAPI,
	syncer syncer,
	appVersion string,
	appCommit string,
) *NodeService

NewNodeService creates a new grpc service using config data.

func (*NodeService) Build

Build returns the build of the node software.

func (*NodeService) Echo

Echo returns the response for an echo api request. It's used for E2E tests.

func (*NodeService) ErrorStream

ErrorStream exposes a stream of node errors.

func (*NodeService) NodeInfo

func (*NodeService) RegisterHandlerService

func (s *NodeService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*NodeService) RegisterService

func (s *NodeService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*NodeService) Status

Status returns a status object providing information about the connected peers, sync status, current and verified layer.

func (*NodeService) StatusStream

StatusStream exposes a stream of node status updates.

func (*NodeService) String

func (s *NodeService) String() string

String returns the name of this service.

func (*NodeService) Version

Version returns the version of the node software as a semver string.

type PostInfoService

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

PostInfoService provides information about connected PostServices.

func NewPostInfoService

func NewPostInfoService(states postState) *PostInfoService

NewPostInfoService creates a new instance of the post info grpc service.

func (*PostInfoService) PostStates

func (*PostInfoService) RegisterHandlerService

func (s *PostInfoService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*PostInfoService) RegisterService

func (s *PostInfoService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*PostInfoService) String

func (s *PostInfoService) String() string

String returns the name of this service.

type PostService

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

PostService is a grpc server that PoST nodes can connect to in order to register. The bidirectional stream established between the node and the PoST node can be used to send challenges and receive proofs.

func NewPostService

func NewPostService(log *zap.Logger, opts ...PostServiceOpt) *PostService

NewPostService creates a new instance of the post grpc service.

func (*PostService) AllowConnections

func (s *PostService) AllowConnections(allow bool)

AllowConnections sets if the grpc service accepts new incoming connections from post services.

func (*PostService) Client

func (s *PostService) Client(nodeId types.NodeID) (activation.PostClient, error)

func (*PostService) Register

func (s *PostService) Register(stream pb.PostService_RegisterServer) error

Register is called by the PoST service to connect with the node. It creates a bidirectional stream that is kept open until either side closes it. The other functions on this service are called by services of the node to send requests to the PoST node and receive responses.

func (*PostService) RegisterHandlerService

func (s *PostService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*PostService) RegisterService

func (s *PostService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*PostService) String

func (s *PostService) String() string

String returns the name of this service.

type PostServiceOpt

type PostServiceOpt func(*PostService)

func PostServiceQueryInterval

func PostServiceQueryInterval(interval time.Duration) PostServiceOpt

type SmesherService

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

SmesherService exposes endpoints to manage smeshing.

func NewSmesherService

func NewSmesherService(
	smeshing activation.SmeshingProvider,
	postSupervisor postSupervisor,
	grpcPostService grpcPostService,
	streamInterval time.Duration,
	postOpts activation.PostSetupOpts,
	sig *signing.EdSigner,
) *SmesherService

NewSmesherService creates a new grpc service using config data.

func (*SmesherService) Coinbase

Coinbase returns the current coinbase setting of this node.

func (*SmesherService) IsSmeshing

IsSmeshing reports whether the node is smeshing.

func (*SmesherService) PostConfig

PostConfig returns the Post protocol config.

func (*SmesherService) PostSetupProviders

PostSetupProviders returns a list of available Post setup compute providers.

func (*SmesherService) PostSetupStatus

func (s *SmesherService) PostSetupStatus(ctx context.Context, _ *emptypb.Empty) (*pb.PostSetupStatusResponse, error)

PostSetupStatus returns post data status.

func (*SmesherService) PostSetupStatusStream

func (s *SmesherService) PostSetupStatusStream(
	_ *emptypb.Empty,
	stream pb.SmesherService_PostSetupStatusStreamServer,
) error

PostSetupStatusStream exposes a stream of status updates during post setup.

func (*SmesherService) RegisterHandlerService

func (s *SmesherService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*SmesherService) RegisterService

func (s *SmesherService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*SmesherService) SetCoinbase

SetCoinbase sets the current coinbase setting of this node.

func (*SmesherService) SetPostServiceConfig

func (s *SmesherService) SetPostServiceConfig(cfg activation.PostSupervisorConfig)

SetPostServiceConfig sets the post supervisor config.

func (*SmesherService) SmesherIDs

func (*SmesherService) StartSmeshing

StartSmeshing requests that the node begin smeshing.

func (*SmesherService) StopSmeshing

StopSmeshing requests that the node stop smeshing.

func (*SmesherService) String

func (s *SmesherService) String() string

String returns the name of this service.

type TransactionService

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

TransactionService exposes transaction data, and a submit tx endpoint.

func NewTransactionService

func NewTransactionService(
	db sql.StateDatabase,
	publisher pubsub.Publisher,
	msh meshAPI,
	conState conservativeState,
	syncer syncer,
	txHandler txValidator,
) *TransactionService

NewTransactionService creates a new grpc service using config data.

func (*TransactionService) ParseTransaction

func (*TransactionService) RegisterHandlerService

func (s *TransactionService) RegisterHandlerService(mux *runtime.ServeMux) error

func (*TransactionService) RegisterService

func (s *TransactionService) RegisterService(server *grpc.Server)

RegisterService registers this service with a grpc server instance.

func (*TransactionService) StreamResults

StreamResults allows to query historical results and subscribe to live data using the same filter.

func (*TransactionService) String

func (s *TransactionService) String() string

String returns the name of this service.

func (*TransactionService) SubmitTransaction

SubmitTransaction allows a new tx to be submitted.

func (*TransactionService) TransactionsState

TransactionsState returns current tx data for one or more txs.

func (*TransactionService) TransactionsStateStream

TransactionsStateStream exposes a stream of tx data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳