enigma

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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

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

func (*EnigmaConsensusApiLite) GetCommittees

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

func (*EnigmaConsensusApiLite) GetEpoch

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

func (*EnigmaConsensusApiLite) GetGenesisDocument

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

func (*EnigmaConsensusApiLite) GetNodes

func (c *EnigmaConsensusApiLite) GetNodes(ctx context.Context, height int64) ([]nodeapi.Node, error)

func (*EnigmaConsensusApiLite) GetProposal

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

func (*EnigmaConsensusApiLite) GetTransactionsWithResults

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

func (*EnigmaConsensusApiLite) GetValidators

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

func (*EnigmaConsensusApiLite) GovernanceEvents

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

func (*EnigmaConsensusApiLite) RegistryEvents

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

func (*EnigmaConsensusApiLite) RoothashEvents

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

func (*EnigmaConsensusApiLite) StakingEvents

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

func (*EnigmaConsensusApiLite) StateToGenesis

func (c *EnigmaConsensusApiLite) 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