Documentation ¶
Index ¶
- type DamaskConsensusApiLite
- func (c *DamaskConsensusApiLite) Close() error
- func (c *DamaskConsensusApiLite) GetBlock(ctx context.Context, height int64) (*consensus.Block, error)
- func (c *DamaskConsensusApiLite) GetCommittees(ctx context.Context, height int64, runtimeID common.Namespace) ([]nodeapi.Committee, error)
- func (c *DamaskConsensusApiLite) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)
- func (c *DamaskConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*genesis.Document, error)
- func (c *DamaskConsensusApiLite) GetProposal(ctx context.Context, height int64, proposalID uint64) (*nodeapi.Proposal, error)
- func (c *DamaskConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
- func (c *DamaskConsensusApiLite) GetValidators(ctx context.Context, height int64) ([]nodeapi.Validator, error)
- func (c *DamaskConsensusApiLite) GovernanceEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *DamaskConsensusApiLite) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *DamaskConsensusApiLite) RoothashEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *DamaskConsensusApiLite) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *DamaskConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*genesis.Document, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DamaskConsensusApiLite ¶
type DamaskConsensusApiLite struct {
// contains filtered or unexported fields
}
DamaskConsensusApiLite 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 NewDamaskConsensusApiLite ¶
func NewDamaskConsensusApiLite(client consensus.ClientBackend) *DamaskConsensusApiLite
func (*DamaskConsensusApiLite) Close ¶
func (c *DamaskConsensusApiLite) Close() error
func (*DamaskConsensusApiLite) GetCommittees ¶
func (*DamaskConsensusApiLite) GetGenesisDocument ¶
func (*DamaskConsensusApiLite) GetProposal ¶
func (*DamaskConsensusApiLite) GetTransactionsWithResults ¶
func (c *DamaskConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
func (*DamaskConsensusApiLite) GetValidators ¶
func (*DamaskConsensusApiLite) GovernanceEvents ¶
func (*DamaskConsensusApiLite) RegistryEvents ¶
func (*DamaskConsensusApiLite) RoothashEvents ¶
func (*DamaskConsensusApiLite) StakingEvents ¶
func (*DamaskConsensusApiLite) StateToGenesis ¶
Click to show internal directories.
Click to hide internal directories.