Documentation ¶
Index ¶
- Variables
- type APIConstructor
- type HistoryConsensusApiLite
- func (c *HistoryConsensusApiLite) APIForChainContext(chainContext string) (nodeapi.ConsensusApiLite, error)
- func (c *HistoryConsensusApiLite) APIForHeight(height int64) (nodeapi.ConsensusApiLite, error)
- func (c *HistoryConsensusApiLite) Close() error
- func (c *HistoryConsensusApiLite) DelegationsTo(ctx context.Context, height int64, address nodeapi.Address) (map[nodeapi.Address]*nodeapi.Delegation, error)
- func (c *HistoryConsensusApiLite) GetAccount(ctx context.Context, height int64, address nodeapi.Address) (*nodeapi.Account, error)
- func (c *HistoryConsensusApiLite) GetBlock(ctx context.Context, height int64) (*consensus.Block, error)
- func (c *HistoryConsensusApiLite) GetCommittees(ctx context.Context, height int64, runtimeID common.Namespace) ([]nodeapi.Committee, error)
- func (c *HistoryConsensusApiLite) GetConsensusParameters(ctx context.Context, height int64) (*nodeapi.ConsensusParameters, error)
- func (c *HistoryConsensusApiLite) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)
- func (c *HistoryConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*nodeapi.GenesisDocument, error)
- func (c *HistoryConsensusApiLite) GetNodes(ctx context.Context, height int64) ([]nodeapi.Node, error)
- func (c *HistoryConsensusApiLite) GetProposal(ctx context.Context, height int64, proposalID uint64) (*nodeapi.Proposal, error)
- func (c *HistoryConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
- func (c *HistoryConsensusApiLite) GetValidators(ctx context.Context, height int64) ([]nodeapi.Validator, error)
- func (c *HistoryConsensusApiLite) GovernanceEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) GrpcConn() connections.GrpcConn
- func (c *HistoryConsensusApiLite) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) RoothashEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) RoothashLastRoundResults(ctx context.Context, height int64, runtimeID common.Namespace) (*roothash.RoundResults, error)
- func (c *HistoryConsensusApiLite) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*nodeapi.GenesisDocument, error)
- type HistoryRuntimeApiLite
- func (rc *HistoryRuntimeApiLite) APIForRound(round uint64) (nodeapi.RuntimeApiLite, error)
- func (rc *HistoryRuntimeApiLite) Close() error
- func (rc *HistoryRuntimeApiLite) EVMGetCode(ctx context.Context, round uint64, address []byte) ([]byte, error)
- func (rc *HistoryRuntimeApiLite) EVMSimulateCall(ctx context.Context, round uint64, gasPrice []byte, gasLimit uint64, ...) (*nodeapi.FallibleResponse, error)
- func (rc *HistoryRuntimeApiLite) GetBalances(ctx context.Context, round uint64, addr nodeapi.Address) (map[sdkTypes.Denomination]common.BigInt, error)
- func (rc *HistoryRuntimeApiLite) GetBlockHeader(ctx context.Context, round uint64) (*nodeapi.RuntimeBlockHeader, error)
- func (rc *HistoryRuntimeApiLite) GetEventsRaw(ctx context.Context, round uint64) ([]nodeapi.RuntimeEvent, error)
- func (rc *HistoryRuntimeApiLite) GetTransactionsWithResults(ctx context.Context, round uint64) ([]nodeapi.RuntimeTransactionWithResults, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var APIConstructors = map[string]APIConstructor{
"damask": damaskAPIConstructor,
"cobalt": cobaltAPIConstructor,
"eden": edenAPIConstructor,
"2022-03-03": damaskAPIConstructor,
"2023-10-12": edenAPIConstructor,
}
APIConstructors map each (nexus-internal) archive name to the API constructor that can talk to that archive. The namespace of archive names is shared between mainnet and testnet for simplicity. The supported archive names come from `config.DefaultChains`. If you want to use a custom set of archives (`custom_chain` in the yaml config), you must reuse a suitable archive name.
Functions ¶
This section is empty.
Types ¶
type APIConstructor ¶
type APIConstructor func(ctx context.Context, chainContext string, archiveConfig *config.ArchiveConfig, fastStartup bool) (nodeapi.ConsensusApiLite, error)
type HistoryConsensusApiLite ¶
type HistoryConsensusApiLite struct {
// contains filtered or unexported fields
}
func NewHistoryConsensusApiLite ¶
func NewHistoryConsensusApiLite(ctx context.Context, history *config.History, nodes map[string]*config.ArchiveConfig, fastStartup bool) (*HistoryConsensusApiLite, error)
func (*HistoryConsensusApiLite) APIForChainContext ¶
func (c *HistoryConsensusApiLite) APIForChainContext(chainContext string) (nodeapi.ConsensusApiLite, error)
func (*HistoryConsensusApiLite) APIForHeight ¶
func (c *HistoryConsensusApiLite) APIForHeight(height int64) (nodeapi.ConsensusApiLite, error)
func (*HistoryConsensusApiLite) Close ¶
func (c *HistoryConsensusApiLite) Close() error
func (*HistoryConsensusApiLite) DelegationsTo ¶ added in v0.3.2
func (*HistoryConsensusApiLite) GetAccount ¶ added in v0.3.2
func (*HistoryConsensusApiLite) GetCommittees ¶
func (*HistoryConsensusApiLite) GetConsensusParameters ¶ added in v0.3.2
func (c *HistoryConsensusApiLite) GetConsensusParameters(ctx context.Context, height int64) (*nodeapi.ConsensusParameters, error)
func (*HistoryConsensusApiLite) GetGenesisDocument ¶
func (c *HistoryConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*nodeapi.GenesisDocument, error)
func (*HistoryConsensusApiLite) GetProposal ¶
func (*HistoryConsensusApiLite) GetTransactionsWithResults ¶
func (c *HistoryConsensusApiLite) GetTransactionsWithResults(ctx context.Context, height int64) ([]nodeapi.TransactionWithResults, error)
func (*HistoryConsensusApiLite) GetValidators ¶
func (*HistoryConsensusApiLite) GovernanceEvents ¶
func (*HistoryConsensusApiLite) GrpcConn ¶ added in v0.1.22
func (c *HistoryConsensusApiLite) GrpcConn() connections.GrpcConn
func (*HistoryConsensusApiLite) RegistryEvents ¶
func (*HistoryConsensusApiLite) RoothashEvents ¶
func (*HistoryConsensusApiLite) RoothashLastRoundResults ¶ added in v0.3.0
func (c *HistoryConsensusApiLite) RoothashLastRoundResults(ctx context.Context, height int64, runtimeID common.Namespace) (*roothash.RoundResults, error)
func (*HistoryConsensusApiLite) StakingEvents ¶
func (*HistoryConsensusApiLite) StateToGenesis ¶
func (c *HistoryConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*nodeapi.GenesisDocument, error)
type HistoryRuntimeApiLite ¶
type HistoryRuntimeApiLite struct { Runtime common.Runtime History *config.History APIs map[string]nodeapi.RuntimeApiLite }
func (*HistoryRuntimeApiLite) APIForRound ¶
func (rc *HistoryRuntimeApiLite) APIForRound(round uint64) (nodeapi.RuntimeApiLite, error)
func (*HistoryRuntimeApiLite) Close ¶
func (rc *HistoryRuntimeApiLite) Close() error
func (*HistoryRuntimeApiLite) EVMGetCode ¶
func (*HistoryRuntimeApiLite) EVMSimulateCall ¶
func (*HistoryRuntimeApiLite) GetBalances ¶ added in v0.3.0
func (*HistoryRuntimeApiLite) GetBlockHeader ¶
func (rc *HistoryRuntimeApiLite) GetBlockHeader(ctx context.Context, round uint64) (*nodeapi.RuntimeBlockHeader, error)
func (*HistoryRuntimeApiLite) GetEventsRaw ¶
func (rc *HistoryRuntimeApiLite) GetEventsRaw(ctx context.Context, round uint64) ([]nodeapi.RuntimeEvent, error)
func (*HistoryRuntimeApiLite) GetTransactionsWithResults ¶
func (rc *HistoryRuntimeApiLite) GetTransactionsWithResults(ctx context.Context, round uint64) ([]nodeapi.RuntimeTransactionWithResults, error)
Click to show internal directories.
Click to hide internal directories.