pub enum HubQueryMsg {
Config {},
ProxyWhitelist {},
AllSources {
start_after: Option<String>,
limit: Option<u32>,
},
Sources {
asset_token: String,
},
SourcesBySymbol {
symbol: String,
},
Price {
asset_token: String,
timeframe: Option<u64>,
},
PriceBySymbol {
symbol: String,
timeframe: Option<u64>,
},
PriceList {
asset_token: String,
},
PriceListBySymbol {
symbol: String,
},
AssetSymbolMap {
start_after: Option<String>,
limit: Option<u32>,
},
CheckSource {
proxy_addr: String,
symbol: String,
},
}
Variants§
Config
Queries contract configuration
ProxyWhitelist
Queries the list of whitelisted proxies
AllSources
Returns the list of all symbols with all the sources
Sources
Queries the information of all registered proxies for the provided asset_token
SourcesBySymbol
Queries the information of all registered proxies for the provided symbol
Price
Queries the highes priority available price within the timeframe If timeframe is not provided, it will ignore the price age
PriceBySymbol
Queries the highes priority available price within the timeframe If timeframe is not provided, it will ignore the price age
PriceList
Queries all registered proxy prices for the provied asset_token
PriceListBySymbol
Queries all registered proxy prices for the provied symbol
AssetSymbolMap
Returns the map of asset_token
to symbol
CheckSource
Query to check if proxy_addr
is whitelisted and has price feed
for the specified symbol
. The purpose of this query is to have a
way of checking if a price feed is valid and available before registering
Returns the PriceResponse or an error
Trait Implementations§
Source§impl Clone for HubQueryMsg
impl Clone for HubQueryMsg
Source§fn clone(&self) -> HubQueryMsg
fn clone(&self) -> HubQueryMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HubQueryMsg
impl Debug for HubQueryMsg
Source§impl<'de> Deserialize<'de> for HubQueryMsg
impl<'de> Deserialize<'de> for HubQueryMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for HubQueryMsg
impl JsonSchema for HubQueryMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more