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