pub enum HubExecuteMsg {
UpdateOwner {
owner: String,
},
UpdateMaxProxies {
max_proxies_per_symbol: u8,
},
RegisterSource {
symbol: String,
proxy_addr: String,
priority: Option<u8>,
},
BulkRegisterSource {
sources: Vec<(String, String, Option<u8>)>,
},
UpdateSourcePriorityList {
symbol: String,
priority_list: Vec<(String, u8)>,
},
RemoveSource {
symbol: String,
proxy_addr: String,
},
WhitelistProxy {
proxy_addr: String,
provider_name: String,
},
RemoveProxy {
proxy_addr: String,
},
InsertAssetSymbolMap {
map: Vec<(String, String)>,
},
}
Variants§
UpdateOwner
Owner operation to update the owner parameter
UpdateMaxProxies
Owner operation to update the max_proxies_per_symbol parameter
RegisterSource
Register a new source for a symbol
BulkRegisterSource
Registers a list of sources
UpdateSourcePriorityList
Updates the priorities for proxies registered
RemoveSource
Removes an already registered proxy
WhitelistProxy
Whitelists a new proxy in hub. After a proxy is whitelisted it can be registered as a source
RemoveProxy
Removes a proxy from the whitelist
InsertAssetSymbolMap
Updates the map of asset_token
to symbol
overwrites storage if already mapped
Trait Implementations§
Source§impl Clone for HubExecuteMsg
impl Clone for HubExecuteMsg
Source§fn clone(&self) -> HubExecuteMsg
fn clone(&self) -> HubExecuteMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HubExecuteMsg
impl Debug for HubExecuteMsg
Source§impl<'de> Deserialize<'de> for HubExecuteMsg
impl<'de> Deserialize<'de> for HubExecuteMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for HubExecuteMsg
impl JsonSchema for HubExecuteMsg
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for HubExecuteMsg
impl PartialEq for HubExecuteMsg
Source§impl Serialize for HubExecuteMsg
impl Serialize for HubExecuteMsg
impl StructuralPartialEq for HubExecuteMsg
Auto Trait Implementations§
impl Freeze for HubExecuteMsg
impl RefUnwindSafe for HubExecuteMsg
impl Send for HubExecuteMsg
impl Sync for HubExecuteMsg
impl Unpin for HubExecuteMsg
impl UnwindSafe for HubExecuteMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more