Trait xst::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn set_reference_asset() -> Weight;
    fn enable_synthetic_asset() -> Weight;
    fn disable_synthetic_asset() -> Weight;
    fn remove_synthetic_asset() -> Weight;
    fn register_synthetic_asset() -> Weight;
    fn set_synthetic_asset_fee() -> Weight;
    fn set_synthetic_base_asset_floor_price() -> Weight;
    fn quote() -> Weight;
    fn exchange() -> Weight;
}
Expand description

Weight functions needed for xst.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn set_reference_asset() -> Weight

Storage: Assets AssetOwners (r:1 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: XSTPool ReferenceAssetId (r:0 w:1) Proof Skipped: XSTPool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured)

source§

fn enable_synthetic_asset() -> Weight

Storage: XSTPool EnabledSymbols (r:1 w:1) Proof Skipped: XSTPool EnabledSymbols (max_values: None, max_size: None, mode: Measured) Storage: OracleProxy EnabledOracles (r:1 w:0) Proof Skipped: OracleProxy EnabledOracles (max_values: Some(1), max_size: None, mode: Measured) Storage: Band SymbolRates (r:2 w:0) Proof Skipped: Band SymbolRates (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetOwners (r:1 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: TradingPair EnabledSources (r:1 w:0) Proof Skipped: TradingPair EnabledSources (max_values: None, max_size: None, mode: Measured) Storage: XSTPool EnabledSynthetics (r:0 w:1) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured)

source§

fn disable_synthetic_asset() -> Weight

Storage: XSTPool EnabledSynthetics (r:1 w:1) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured)

source§

fn remove_synthetic_asset() -> Weight

Storage: XSTPool EnabledSynthetics (r:1 w:1) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured) Storage: XSTPool EnabledSymbols (r:0 w:1) Proof Skipped: XSTPool EnabledSymbols (max_values: None, max_size: None, mode: Measured)

source§

fn register_synthetic_asset() -> Weight

Storage: Assets AssetOwners (r:2 w:1) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Permissions Owners (r:2 w:2) Proof Skipped: Permissions Owners (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:3 w:1) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: XSTPool EnabledSymbols (r:1 w:1) Proof Skipped: XSTPool EnabledSymbols (max_values: None, max_size: None, mode: Measured) Storage: OracleProxy EnabledOracles (r:1 w:0) Proof Skipped: OracleProxy EnabledOracles (max_values: Some(1), max_size: None, mode: Measured) Storage: Band SymbolRates (r:2 w:0) Proof Skipped: Band SymbolRates (max_values: None, max_size: None, mode: Measured) Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: TradingPair EnabledSources (r:1 w:1) Proof Skipped: TradingPair EnabledSources (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:0 w:1) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: XSTPool EnabledSynthetics (r:0 w:1) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured)

source§

fn set_synthetic_asset_fee() -> Weight

Storage: XSTPool EnabledSynthetics (r:1 w:1) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured)

source§

fn set_synthetic_base_asset_floor_price() -> Weight

Storage: XSTPool SyntheticBaseAssetFloorPrice (r:0 w:1) Proof Skipped: XSTPool SyntheticBaseAssetFloorPrice (max_values: Some(1), max_size: None, mode: Measured)

source§

fn quote() -> Weight

Storage: XSTPool EnabledSynthetics (r:1 w:0) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured) Storage: OracleProxy EnabledOracles (r:1 w:0) Proof Skipped: OracleProxy EnabledOracles (max_values: Some(1), max_size: None, mode: Measured) Storage: OracleProxy SymbolProviders (r:1 w:0) Proof Skipped: OracleProxy SymbolProviders (max_values: None, max_size: None, mode: Measured) Storage: Band SymbolRates (r:1 w:0) Proof Skipped: Band SymbolRates (max_values: None, max_size: None, mode: Measured) Storage: XSTPool ReferenceAssetId (r:1 w:0) Proof Skipped: XSTPool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:2 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: XSTPool SyntheticBaseAssetFloorPrice (r:1 w:0) Proof Skipped: XSTPool SyntheticBaseAssetFloorPrice (max_values: Some(1), max_size: None, mode: Measured)

source§

fn exchange() -> Weight

Storage: XSTPool EnabledSynthetics (r:1 w:0) Proof Skipped: XSTPool EnabledSynthetics (max_values: None, max_size: None, mode: Measured) Storage: OracleProxy EnabledOracles (r:1 w:0) Proof Skipped: OracleProxy EnabledOracles (max_values: Some(1), max_size: None, mode: Measured) Storage: OracleProxy SymbolProviders (r:1 w:0) Proof Skipped: OracleProxy SymbolProviders (max_values: None, max_size: None, mode: Measured) Storage: Band SymbolRates (r:1 w:0) Proof Skipped: Band SymbolRates (max_values: None, max_size: None, mode: Measured) Storage: XSTPool ReferenceAssetId (r:1 w:0) Proof Skipped: XSTPool ReferenceAssetId (max_values: Some(1), max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:2 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: XSTPool SyntheticBaseAssetFloorPrice (r:1 w:0) Proof Skipped: XSTPool SyntheticBaseAssetFloorPrice (max_values: Some(1), max_size: None, mode: Measured) Storage: Permissions Permissions (r:3 w:0) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:2 w:2) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>