This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applied changes to forbid batch calls in xcm filters for ksm and wnd,…
… fixed tests typing, cleaned up
- Loading branch information
1 parent
7ae9842
commit 1a26aa9
Showing
7 changed files
with
768 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 157 additions & 0 deletions
157
parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_asset_conversion.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
// Copyright Parity Technologies (UK) Ltd. | ||
// This file is part of Cumulus. | ||
|
||
// Cumulus is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Cumulus is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
//! Autogenerated weights for `pallet_asset_conversion` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2023-07-18, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `bkontur-ThinkPad-P14s-Gen-2i`, CPU: `11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz` | ||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-westend-dev")`, DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// ./target/release/polkadot-parachain | ||
// benchmark | ||
// pallet | ||
// --chain=asset-hub-westend-dev | ||
// --wasm-execution=compiled | ||
// --pallet=pallet_asset_conversion | ||
// --no-storage-info | ||
// --no-median-slopes | ||
// --no-min-squares | ||
// --extrinsic=* | ||
// --steps=2 | ||
// --repeat=1 | ||
// --json | ||
// --header=./file_header.txt | ||
// --output=./parachains/runtimes/assets/asset-hub-westend/src/weights/ | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_asset_conversion`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_asset_conversion::WeightInfo for WeightInfo<T> { | ||
/// Storage: `AssetConversion::Pools` (r:1 w:1) | ||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(1224), added: 3699, mode: `MaxEncodedLen`) | ||
/// Storage: UNKNOWN KEY `0x76a2c49709deec21d9c05f96c1f47351` (r:1 w:0) | ||
/// Proof: UNKNOWN KEY `0x76a2c49709deec21d9c05f96c1f47351` (r:1 w:0) | ||
/// Storage: `System::Account` (r:2 w:1) | ||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Account` (r:1 w:1) | ||
/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Asset` (r:1 w:1) | ||
/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) | ||
/// Storage: `AssetConversion::NextPoolAssetId` (r:1 w:1) | ||
/// Proof: `AssetConversion::NextPoolAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) | ||
/// Storage: `PoolAssets::Asset` (r:1 w:1) | ||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) | ||
/// Storage: `PoolAssets::Account` (r:1 w:1) | ||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) | ||
fn create_pool() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `480` | ||
// Estimated: `6196` | ||
// Minimum execution time: 115_870_000 picoseconds. | ||
Weight::from_parts(115_870_000, 0) | ||
.saturating_add(Weight::from_parts(0, 6196)) | ||
.saturating_add(T::DbWeight::get().reads(9)) | ||
.saturating_add(T::DbWeight::get().writes(7)) | ||
} | ||
/// Storage: `AssetConversion::Pools` (r:1 w:0) | ||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(1224), added: 3699, mode: `MaxEncodedLen`) | ||
/// Storage: `System::Account` (r:1 w:1) | ||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Asset` (r:1 w:1) | ||
/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Account` (r:2 w:2) | ||
/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) | ||
/// Storage: `PoolAssets::Asset` (r:1 w:1) | ||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) | ||
/// Storage: `PoolAssets::Account` (r:2 w:2) | ||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) | ||
fn add_liquidity() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `1117` | ||
// Estimated: `7404` | ||
// Minimum execution time: 183_835_000 picoseconds. | ||
Weight::from_parts(183_835_000, 0) | ||
.saturating_add(Weight::from_parts(0, 7404)) | ||
.saturating_add(T::DbWeight::get().reads(8)) | ||
.saturating_add(T::DbWeight::get().writes(7)) | ||
} | ||
/// Storage: `AssetConversion::Pools` (r:1 w:0) | ||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(1224), added: 3699, mode: `MaxEncodedLen`) | ||
/// Storage: `System::Account` (r:1 w:1) | ||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Asset` (r:1 w:1) | ||
/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Account` (r:2 w:2) | ||
/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) | ||
/// Storage: `PoolAssets::Asset` (r:1 w:1) | ||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) | ||
/// Storage: UNKNOWN KEY `0x2433d831722b1f4aeb1666953f1c0e77` (r:1 w:0) | ||
/// Proof: UNKNOWN KEY `0x2433d831722b1f4aeb1666953f1c0e77` (r:1 w:0) | ||
/// Storage: `PoolAssets::Account` (r:1 w:1) | ||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) | ||
fn remove_liquidity() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `1106` | ||
// Estimated: `7404` | ||
// Minimum execution time: 166_533_000 picoseconds. | ||
Weight::from_parts(166_533_000, 0) | ||
.saturating_add(Weight::from_parts(0, 7404)) | ||
.saturating_add(T::DbWeight::get().reads(8)) | ||
.saturating_add(T::DbWeight::get().writes(6)) | ||
} | ||
/// Storage: `ForeignAssets::Asset` (r:2 w:2) | ||
/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Account` (r:4 w:4) | ||
/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) | ||
/// Storage: `System::Account` (r:2 w:2) | ||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
fn swap_exact_tokens_for_tokens() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `1148` | ||
// Estimated: `13818` | ||
// Minimum execution time: 206_165_000 picoseconds. | ||
Weight::from_parts(206_165_000, 0) | ||
.saturating_add(Weight::from_parts(0, 13818)) | ||
.saturating_add(T::DbWeight::get().reads(8)) | ||
.saturating_add(T::DbWeight::get().writes(8)) | ||
} | ||
/// Storage: `System::Account` (r:2 w:2) | ||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Asset` (r:2 w:2) | ||
/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) | ||
/// Storage: `ForeignAssets::Account` (r:4 w:4) | ||
/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) | ||
fn swap_tokens_for_exact_tokens() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `1148` | ||
// Estimated: `13818` | ||
// Minimum execution time: 208_694_000 picoseconds. | ||
Weight::from_parts(208_694_000, 0) | ||
.saturating_add(Weight::from_parts(0, 13818)) | ||
.saturating_add(T::DbWeight::get().reads(8)) | ||
.saturating_add(T::DbWeight::get().writes(8)) | ||
} | ||
} |
Oops, something went wrong.