pub trait WeightInfo {
    // Required methods
    fn swap_pair() -> Weight;
    fn can_exchange() -> Weight;
    fn quote() -> Weight;
    fn deposit_liquidity() -> Weight;
    fn withdraw_liquidity() -> Weight;
    fn initialize_pool() -> Weight;
}
Expand description

Weight functions needed for pool_xyk.

Required Methods§

source

fn swap_pair() -> Weight

source

fn can_exchange() -> Weight

source

fn quote() -> Weight

source

fn deposit_liquidity() -> Weight

source

fn withdraw_liquidity() -> Weight

source

fn initialize_pool() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn swap_pair() -> Weight

Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: Technical TechAccounts (r:2 w:0) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:3 w:3) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: PriceTools PriceInfos (r:1 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Reserves (r:0 w:1) Proof Skipped: PoolXYK Reserves (max_values: None, max_size: None, mode: Measured)

source§

fn can_exchange() -> Weight

Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Properties (r:1 w:0) Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured)

source§

fn quote() -> Weight

Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:0) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen)

source§

fn deposit_liquidity() -> Weight

Storage: Assets AssetInfos (r:2 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: Technical TechAccounts (r:1 w:0) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: PoolXYK TotalIssuances (r:1 w:1) Proof Skipped: PoolXYK TotalIssuances (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK PoolProviders (r:1 w:1) Proof Skipped: PoolXYK PoolProviders (max_values: None, max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:1 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Reserves (r:0 w:1) Proof Skipped: PoolXYK Reserves (max_values: None, max_size: None, mode: Measured)

source§

fn withdraw_liquidity() -> Weight

Storage: Assets AssetInfos (r:2 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: Technical TechAccounts (r:1 w:0) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK PoolProviders (r:1 w:1) Proof Skipped: PoolXYK PoolProviders (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: PoolXYK TotalIssuances (r:1 w:1) Proof Skipped: PoolXYK TotalIssuances (max_values: None, max_size: None, mode: Measured) Storage: CeresLiquidityLocker LockerData (r:1 w:0) Proof Skipped: CeresLiquidityLocker LockerData (max_values: None, max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: PoolXYK Properties (r:1 w:0) Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured) Storage: DemeterFarmingPlatform UserInfos (r:1 w:0) Proof Skipped: DemeterFarmingPlatform UserInfos (max_values: None, max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:1 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Reserves (r:0 w:1) Proof Skipped: PoolXYK Reserves (max_values: None, max_size: None, mode: Measured)

source§

fn initialize_pool() -> Weight

Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:2 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: Technical TechAccounts (r:1 w:2) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: TradingPair EnabledSources (r:1 w:1) Proof Skipped: TradingPair EnabledSources (max_values: None, max_size: None, mode: Measured) Storage: PswapDistribution SubscribedAccounts (r:1 w:1) Proof Skipped: PswapDistribution SubscribedAccounts (max_values: None, max_size: None, mode: Measured) Storage: Farming Pools (r:1 w:1) Proof Skipped: Farming Pools (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Properties (r:0 w:1) Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured)

Implementors§

source§

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