Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationAPI ¶
ActivationAPI is an API for activation module.
type ConservativeState ¶
type ConservativeState interface { GetStateRoot() types.Hash32 GetLayerStateRoot(types.LayerID) (types.Hash32, error) GetLayerApplied(types.TransactionID) *types.LayerID GetAllAccounts() (*types.MultipleAccountsState, error) GetBalance(types.Address) uint64 GetNonce(types.Address) uint64 GetProjection(types.Address) (uint64, uint64, error) GetMeshTransaction(types.TransactionID) (*types.MeshTransaction, error) GetTransactions([]types.TransactionID) ([]*types.Transaction, map[types.TransactionID]struct{}) GetTransactionsByAddress(types.LayerID, types.LayerID, types.Address) ([]*types.MeshTransaction, error) }
ConservativeState is an API for reading state and transaction/mempool data.
type GenesisTimeAPI ¶
GenesisTimeAPI is an API to get genesis time and current layer of the system.
type LoggingAPI ¶
LoggingAPI is an API to system loggers.
type MeshAPI ¶
type MeshAPI interface { GetATXs(context.Context, []types.ATXID) (map[types.ATXID]*types.ActivationTx, []types.ATXID) GetLayer(types.LayerID) (*types.Layer, error) GetRewards(types.Address) ([]types.Reward, error) LatestLayer() types.LayerID LatestLayerInState() types.LayerID ProcessedLayer() types.LayerID GetRewardsBySmesherID(types.NodeID) ([]types.Reward, error) }
MeshAPI is an api for getting mesh status about layers/blocks/rewards.
type PeerCounter ¶
type PeerCounter interface {
PeerCount() uint64
}
PeerCounter is an api to get amount of connected peers.
type PostSetupAPI ¶
type PostSetupAPI = activation.PostSetupProvider
PostSetupAPI is an alias to PostSetupProvider.
type SmeshingAPI ¶
type SmeshingAPI = activation.SmeshingProvider
SmeshingAPI is an alias to SmeshingProvider.
Directories ¶
Path | Synopsis |
---|---|
Package config provides configuration for GRPC and HTTP api servers
|
Package config provides configuration for GRPC and HTTP api servers |
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.