Documentation ¶
Index ¶
- func ConvertGenesis(d genesisDamask.Document) *nodeapi.GenesisDocument
- type ConsensusApiLite
- func (c *ConsensusApiLite) Close() error
- func (c *ConsensusApiLite) DelegationsTo(ctx context.Context, height int64, address nodeapi.Address) (map[nodeapi.Address]*nodeapi.Delegation, error)
- func (c *ConsensusApiLite) GetAccount(ctx context.Context, height int64, address nodeapi.Address) (*nodeapi.Account, error)
- func (c *ConsensusApiLite) GetBlock(ctx context.Context, height int64) (*consensus.Block, error)
- func (c *ConsensusApiLite) GetCommittees(ctx context.Context, height int64, runtimeID common.Namespace) ([]nodeapi.Committee, error)
- func (c *ConsensusApiLite) GetConsensusParameters(ctx context.Context, height int64) (*nodeapi.ConsensusParameters, error)
- func (c *ConsensusApiLite) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)
- func (c *ConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*nodeapi.GenesisDocument, error)
- func (c *ConsensusApiLite) GetNodes(ctx context.Context, height int64) ([]nodeapi.Node, error)
- func (c *ConsensusApiLite) GetProposal(ctx context.Context, height int64, proposalID uint64) (*nodeapi.Proposal, error)
- func (c *ConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
- func (c *ConsensusApiLite) GetValidators(ctx context.Context, height int64) ([]nodeapi.Validator, error)
- func (c *ConsensusApiLite) GovernanceEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *ConsensusApiLite) GrpcConn() connections.GrpcConn
- func (c *ConsensusApiLite) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *ConsensusApiLite) RoothashEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *ConsensusApiLite) RoothashLastRoundResults(ctx context.Context, height int64, runtimeID common.Namespace) (*roothash.RoundResults, error)
- func (c *ConsensusApiLite) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *ConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*nodeapi.GenesisDocument, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGenesis ¶ added in v0.3.2
func ConvertGenesis(d genesisDamask.Document) *nodeapi.GenesisDocument
ConvertGenesis converts a genesis document from the Damask format to the nexus-internal (= current oasis-core) format.
Types ¶
type ConsensusApiLite ¶ added in v0.1.22
type ConsensusApiLite struct {
// contains filtered or unexported fields
}
ConsensusApiLite provides low-level access to the consensus API of a Damask node. Since Nexus is linked against a version of oasis-core that is compatible with Damask gRPC API, this struct just trivially wraps the convenience methods provided by oasis-core.
func NewConsensusApiLite ¶ added in v0.1.22
func NewConsensusApiLite(grpcConn connections.GrpcConn) *ConsensusApiLite
func (*ConsensusApiLite) Close ¶ added in v0.1.22
func (c *ConsensusApiLite) Close() error
func (*ConsensusApiLite) DelegationsTo ¶ added in v0.3.2
func (*ConsensusApiLite) GetAccount ¶ added in v0.3.2
func (*ConsensusApiLite) GetCommittees ¶ added in v0.1.22
func (*ConsensusApiLite) GetConsensusParameters ¶ added in v0.3.2
func (c *ConsensusApiLite) GetConsensusParameters(ctx context.Context, height int64) (*nodeapi.ConsensusParameters, error)
func (*ConsensusApiLite) GetGenesisDocument ¶ added in v0.1.22
func (c *ConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*nodeapi.GenesisDocument, error)
func (*ConsensusApiLite) GetProposal ¶ added in v0.1.22
func (*ConsensusApiLite) GetTransactionsWithResults ¶ added in v0.1.22
func (c *ConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
func (*ConsensusApiLite) GetValidators ¶ added in v0.1.22
func (*ConsensusApiLite) GovernanceEvents ¶ added in v0.1.22
func (*ConsensusApiLite) GrpcConn ¶ added in v0.1.22
func (c *ConsensusApiLite) GrpcConn() connections.GrpcConn
func (*ConsensusApiLite) RegistryEvents ¶ added in v0.1.22
func (*ConsensusApiLite) RoothashEvents ¶ added in v0.1.22
func (*ConsensusApiLite) RoothashLastRoundResults ¶ added in v0.3.0
func (c *ConsensusApiLite) RoothashLastRoundResults(ctx context.Context, height int64, runtimeID common.Namespace) (*roothash.RoundResults, error)
func (*ConsensusApiLite) StakingEvents ¶ added in v0.1.22
func (*ConsensusApiLite) StateToGenesis ¶ added in v0.1.22
func (c *ConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*nodeapi.GenesisDocument, error)
Click to show internal directories.
Click to hide internal directories.