damask

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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) GetBlock

func (c *DamaskConsensusApiLite) GetBlock(ctx context.Context, height int64) (*consensus.Block, error)

func (*DamaskConsensusApiLite) GetCommittees

func (c *DamaskConsensusApiLite) GetCommittees(ctx context.Context, height int64, runtimeID common.Namespace) ([]nodeapi.Committee, error)

func (*DamaskConsensusApiLite) GetEpoch

func (c *DamaskConsensusApiLite) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)

func (*DamaskConsensusApiLite) GetGenesisDocument

func (c *DamaskConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*genesis.Document, error)

func (*DamaskConsensusApiLite) GetProposal

func (c *DamaskConsensusApiLite) GetProposal(ctx context.Context, height int64, proposalID uint64) (*nodeapi.Proposal, error)

func (*DamaskConsensusApiLite) GetTransactionsWithResults

func (c *DamaskConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)

func (*DamaskConsensusApiLite) GetValidators

func (c *DamaskConsensusApiLite) GetValidators(ctx context.Context, height int64) ([]nodeapi.Validator, error)

func (*DamaskConsensusApiLite) GovernanceEvents

func (c *DamaskConsensusApiLite) GovernanceEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)

func (*DamaskConsensusApiLite) RegistryEvents

func (c *DamaskConsensusApiLite) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)

func (*DamaskConsensusApiLite) RoothashEvents

func (c *DamaskConsensusApiLite) RoothashEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)

func (*DamaskConsensusApiLite) StakingEvents

func (c *DamaskConsensusApiLite) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)

func (*DamaskConsensusApiLite) StateToGenesis

func (c *DamaskConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*genesis.Document, error)

Jump to

Keyboard shortcuts

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