Documentation ¶
Index ¶
- func ConvertGenesis(d genesisCobalt.Document) *genesis.Document
- type CobaltConsensusApiLite
- func (c *CobaltConsensusApiLite) Close() error
- func (c *CobaltConsensusApiLite) GetBlock(ctx context.Context, height int64) (*consensus.Block, error)
- func (c *CobaltConsensusApiLite) GetCommittees(ctx context.Context, height int64, runtimeID common.Namespace) ([]nodeapi.Committee, error)
- func (c *CobaltConsensusApiLite) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)
- func (c *CobaltConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*genesis.Document, error)
- func (c *CobaltConsensusApiLite) GetNodes(ctx context.Context, height int64) ([]nodeapi.Node, error)
- func (c *CobaltConsensusApiLite) GetProposal(ctx context.Context, height int64, proposalID uint64) (*nodeapi.Proposal, error)
- func (c *CobaltConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
- func (c *CobaltConsensusApiLite) GetValidators(ctx context.Context, height int64) ([]nodeapi.Validator, error)
- func (c *CobaltConsensusApiLite) GovernanceEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *CobaltConsensusApiLite) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *CobaltConsensusApiLite) RoothashEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *CobaltConsensusApiLite) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *CobaltConsensusApiLite) 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 genesisCobalt.Document) *genesis.Document
ConvertGenesis converts a genesis document from the Cobalt format to the nexus-internal (= current oasis-core) format. WARNING: This is a partial conversion, only the fields that are used by Nexus are filled in the output document.
Types ¶
type CobaltConsensusApiLite ¶
type CobaltConsensusApiLite struct {
// contains filtered or unexported fields
}
CobaltConsensusApiLite provides low-level access to the consensus API of a Cobalt node. To be able to use the old gRPC API, this struct uses gRPC directly, skipping the convenience wrappers provided by oasis-core.
func NewCobaltConsensusApiLite ¶
func NewCobaltConsensusApiLite(grpcConn *grpc.ClientConn) *CobaltConsensusApiLite
func (*CobaltConsensusApiLite) Close ¶
func (c *CobaltConsensusApiLite) Close() error
func (*CobaltConsensusApiLite) GetCommittees ¶
func (*CobaltConsensusApiLite) GetGenesisDocument ¶
func (*CobaltConsensusApiLite) GetProposal ¶
func (*CobaltConsensusApiLite) GetTransactionsWithResults ¶
func (c *CobaltConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
func (*CobaltConsensusApiLite) GetValidators ¶
func (*CobaltConsensusApiLite) GovernanceEvents ¶
func (*CobaltConsensusApiLite) RegistryEvents ¶
func (*CobaltConsensusApiLite) RoothashEvents ¶
func (*CobaltConsensusApiLite) StakingEvents ¶
func (*CobaltConsensusApiLite) StateToGenesis ¶
Click to show internal directories.
Click to hide internal directories.