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) 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) GetEpoch(ctx context.Context, height int64) (beacon.EpochTime, error)
- func (c *HistoryConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*genesis.Document, 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) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) RoothashEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) StakingEvents(ctx context.Context, height int64) ([]nodeapi.Event, error)
- func (c *HistoryConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*genesis.Document, 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) GetBlockHeader(ctx context.Context, round uint64) (*nodeapi.RuntimeBlockHeader, error)
- func (rc *HistoryRuntimeApiLite) GetEventsRaw(ctx context.Context, round uint64) ([]nodeapi.RuntimeEvent, error)
- func (rc *HistoryRuntimeApiLite) GetNativeBalance(ctx context.Context, round uint64, addr nodeapi.Address) (*common.BigInt, 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,
"2022-03-03": damaskAPIConstructor,
}
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) GetCommittees ¶
func (*HistoryConsensusApiLite) GetGenesisDocument ¶
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) RegistryEvents ¶
func (*HistoryConsensusApiLite) RoothashEvents ¶
func (*HistoryConsensusApiLite) StakingEvents ¶
func (*HistoryConsensusApiLite) StateToGenesis ¶
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) 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) GetNativeBalance ¶
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.