Documentation ¶
Index ¶
- func ConvertGenesis(d genesisEden.Document) (*genesis.Document, error)
- type ConsensusApiLite
- func (c *ConsensusApiLite) Close() 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) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)
- func (c *ConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*genesis.Document, 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) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *ConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*genesis.Document, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGenesis ¶
func ConvertGenesis(d genesisEden.Document) (*genesis.Document, error)
ConvertGenesis converts a genesis document from the Eden format to the nexus-internal format. WARNING: This is a partial conversion, only the fields that are used by Nexus are filled in the output document.
Types ¶
type ConsensusApiLite ¶
type ConsensusApiLite struct {
// contains filtered or unexported fields
}
ConsensusApiLite provides low-level access to the consensus API of a Eden node. To be able to use the old gRPC API, this struct uses gRPC directly, skipping the convenience wrappers provided by oasis-core.
func NewConsensusApiLite ¶
func NewConsensusApiLite(grpcConn connections.GrpcConn) *ConsensusApiLite
func (*ConsensusApiLite) Close ¶
func (c *ConsensusApiLite) Close() error
func (*ConsensusApiLite) GetCommittees ¶
func (*ConsensusApiLite) GetGenesisDocument ¶
func (*ConsensusApiLite) GetProposal ¶
func (*ConsensusApiLite) GetTransactionsWithResults ¶
func (c *ConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
func (*ConsensusApiLite) GetValidators ¶
func (*ConsensusApiLite) GovernanceEvents ¶
func (*ConsensusApiLite) GrpcConn ¶
func (c *ConsensusApiLite) GrpcConn() connections.GrpcConn
func (*ConsensusApiLite) RegistryEvents ¶
func (*ConsensusApiLite) RoothashEvents ¶
func (*ConsensusApiLite) StakingEvents ¶
func (*ConsensusApiLite) StateToGenesis ¶
Click to show internal directories.
Click to hide internal directories.