file

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileConsensusApiLite

type FileConsensusApiLite struct {
	// contains filtered or unexported fields
}

FileConsensusApiLite provides access to the consensus API of an Oasis node. Since FileConsensusApiLite is backed by a file containing the cached responses to `ConsensusApiLite` calls, this data is inherently compatible with the current Nexus and can thus handle heights from both Cobalt/Damask.

func NewFileConsensusApiLite

func NewFileConsensusApiLite(cacheDir string, consensusApi nodeapi.ConsensusApiLite) (*FileConsensusApiLite, error)

func (*FileConsensusApiLite) Close

func (c *FileConsensusApiLite) Close() error

func (*FileConsensusApiLite) DelegationsTo added in v0.3.2

func (c *FileConsensusApiLite) DelegationsTo(ctx context.Context, height int64, address nodeapi.Address) (map[nodeapi.Address]*nodeapi.Delegation, error)

func (*FileConsensusApiLite) GetAccount added in v0.3.2

func (c *FileConsensusApiLite) GetAccount(ctx context.Context, height int64, address nodeapi.Address) (*nodeapi.Account, error)

func (*FileConsensusApiLite) GetBlock

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

func (*FileConsensusApiLite) GetCommittees

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

func (*FileConsensusApiLite) GetConsensusParameters added in v0.3.2

func (c *FileConsensusApiLite) GetConsensusParameters(ctx context.Context, height int64) (*nodeapi.ConsensusParameters, error)

func (*FileConsensusApiLite) GetEpoch

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

func (*FileConsensusApiLite) GetGenesisDocument

func (c *FileConsensusApiLite) GetGenesisDocument(ctx context.Context, chainContext string) (*nodeapi.GenesisDocument, error)

func (*FileConsensusApiLite) GetNodes added in v0.1.16

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

func (*FileConsensusApiLite) GetProposal

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

func (*FileConsensusApiLite) GetTransactionsWithResults

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

func (*FileConsensusApiLite) GetValidators

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

func (*FileConsensusApiLite) GovernanceEvents

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

func (*FileConsensusApiLite) GrpcConn added in v0.1.22

func (*FileConsensusApiLite) RegistryEvents

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

func (*FileConsensusApiLite) RoothashEvents

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

func (*FileConsensusApiLite) RoothashLastRoundResults added in v0.3.0

func (c *FileConsensusApiLite) RoothashLastRoundResults(ctx context.Context, height int64, runtimeID coreCommon.Namespace) (*roothash.RoundResults, error)

func (*FileConsensusApiLite) StakingEvents

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

func (*FileConsensusApiLite) StakingTotalSupply added in v0.6.0

func (c *FileConsensusApiLite) StakingTotalSupply(ctx context.Context, height int64) (*quantity.Quantity, error)

func (*FileConsensusApiLite) StateToGenesis

func (c *FileConsensusApiLite) StateToGenesis(ctx context.Context, height int64) (*nodeapi.GenesisDocument, error)

type FileRuntimeApiLite

type FileRuntimeApiLite struct {
	// contains filtered or unexported fields
}

func NewFileRuntimeApiLite

func NewFileRuntimeApiLite(runtime common.Runtime, cacheDir string, runtimeApi nodeapi.RuntimeApiLite) (*FileRuntimeApiLite, error)

func (*FileRuntimeApiLite) Close

func (r *FileRuntimeApiLite) Close() error

func (*FileRuntimeApiLite) EVMGetCode

func (r *FileRuntimeApiLite) EVMGetCode(ctx context.Context, round uint64, address []byte) ([]byte, error)

func (*FileRuntimeApiLite) EVMSimulateCall

func (r *FileRuntimeApiLite) EVMSimulateCall(ctx context.Context, round uint64, gasPrice []byte, gasLimit uint64, caller []byte, address []byte, value []byte, data []byte) (*nodeapi.FallibleResponse, error)

func (*FileRuntimeApiLite) GetBalances added in v0.3.0

func (*FileRuntimeApiLite) GetBlockHeader

func (r *FileRuntimeApiLite) GetBlockHeader(ctx context.Context, round uint64) (*nodeapi.RuntimeBlockHeader, error)

func (*FileRuntimeApiLite) GetEventsRaw

func (r *FileRuntimeApiLite) GetEventsRaw(ctx context.Context, round uint64) ([]nodeapi.RuntimeEvent, error)

func (*FileRuntimeApiLite) GetMinGasPrice added in v0.6.16

func (r *FileRuntimeApiLite) GetMinGasPrice(ctx context.Context, round uint64) (map[sdkTypes.Denomination]common.BigInt, error)

func (*FileRuntimeApiLite) GetTransactionsWithResults

func (r *FileRuntimeApiLite) GetTransactionsWithResults(ctx context.Context, round uint64) ([]nodeapi.RuntimeTransactionWithResults, error)

func (*FileRuntimeApiLite) RoflApp added in v0.6.3

func (r *FileRuntimeApiLite) RoflApp(ctx context.Context, round uint64, id nodeapi.AppID) (*nodeapi.AppConfig, error)

func (*FileRuntimeApiLite) RoflAppInstance added in v0.6.3

func (r *FileRuntimeApiLite) RoflAppInstance(ctx context.Context, round uint64, id nodeapi.AppID, rak nodeapi.PublicKey) (*nodeapi.Registration, error)

func (*FileRuntimeApiLite) RoflAppInstances added in v0.6.3

func (r *FileRuntimeApiLite) RoflAppInstances(ctx context.Context, round uint64, id nodeapi.AppID) ([]*nodeapi.Registration, error)

func (*FileRuntimeApiLite) RoflApps added in v0.6.3

func (r *FileRuntimeApiLite) RoflApps(ctx context.Context, round uint64) ([]*nodeapi.AppConfig, error)

func (*FileRuntimeApiLite) RoflMarketInstance added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketInstance(ctx context.Context, round uint64, providerAddress sdkTypes.Address, instanceID nodeapi.InstanceID) (*nodeapi.Instance, error)

func (*FileRuntimeApiLite) RoflMarketInstanceCommands added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketInstanceCommands(ctx context.Context, round uint64, providerAddress sdkTypes.Address, instanceID nodeapi.InstanceID) ([]*nodeapi.QueuedCommand, error)

func (*FileRuntimeApiLite) RoflMarketInstances added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketInstances(ctx context.Context, round uint64, providerAddress sdkTypes.Address) ([]*nodeapi.Instance, error)

func (*FileRuntimeApiLite) RoflMarketOffer added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketOffer(ctx context.Context, round uint64, providerAddress sdkTypes.Address, offerID nodeapi.OfferID) (*nodeapi.Offer, error)

func (*FileRuntimeApiLite) RoflMarketOffers added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketOffers(ctx context.Context, round uint64, providerAddress sdkTypes.Address) ([]*nodeapi.Offer, error)

func (*FileRuntimeApiLite) RoflMarketProvider added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketProvider(ctx context.Context, round uint64, providerAddress sdkTypes.Address) (*nodeapi.Provider, error)

func (*FileRuntimeApiLite) RoflMarketProviders added in v0.6.13

func (r *FileRuntimeApiLite) RoflMarketProviders(ctx context.Context, round uint64) ([]*nodeapi.Provider, error)

type RuntimeApiMethod

type RuntimeApiMethod func() (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL