package
0.7.6
Repository: https://github.com/dfinance/dnode.git
Documentation: pkg.go.dev

# Functions

DefaultGenesisState defines default GenesisState for oracle.
DefaultParams default params for oracle.
GetAssetCodePath returns vm_grpc.VMAccessPath for storing price DVM resource.
GetCurrentPriceKey Get a key to store CurrentPrice for specific assetCode.
GetCurrentPricePrefix Get a prefix for store CurrentPrice.
GetRawPricesKey Get a key to store PostedPrices for specific assetCode and blockHeight.
NewAsset creates a new asset.
NewAssetAddedEvent creates an Event on asset creation.
No description provided by the author
NewMsgAddAsset creates a new AddAsset message.
MsgAddOracle creates a new AddOracle message.
NewMsgPostPrice creates a new PostPrice message.
NewMsgSetAsset creates a new SetAsset message.
MsgAddOracle creates a new SetOracle message.
NewOracle creates a new Oracle.
NewParams creates a new AssetParams object.
NewPriceEvent creates an Event on price update.
NewResPriceStorageValuesPanic returns VM storage key/value for current oracle price DVM resource, panics on error.
ParamKeyTable Key declaration for parameters.
RegisterCodec registers concrete types on the Amino codec.
RequestVMStoragePerms returns module perms used by this module.

# Constants

No description provided by the author
.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Init genesis.
Read validators and counters.
Add/update validators.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Asset struct that represents an asset in the oracle.
CurrentAssetPrice contains meta of the current price for the particular asset.
CurrentPrice contains meta of the current price for the particular asset with ask and bid prices.
GenesisState oracle state that must be provided at genesis.
Client message to add a new asset.
Client message to add oracle source to an existing asset.
Client message to post rawPrice from oracle.
Client message to update an existing asset.
Client message to set oracle source for an existing asset.
Oracle struct contains oracle source meta.
Params defines keeper params.
PendingPriceAsset contains info about the asset which price is still to be determined.
PostedPrice contains price for an asset posted by a specific oracle.
PostPriceParams Posting rawPrices from oracles configuration params.
ResCurrentPrice is a DVM resource, containing current asset price.

# Type aliases

Assets slice type for oracle.
No description provided by the author
Oracles slice type for oracle.
Client response for all assets request.
Client response for rawPrices request.