-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instanciating assets, asset-registry, withdraw-teleport in runtime
- Loading branch information
Showing
6 changed files
with
770 additions
and
2 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
83 changes: 83 additions & 0 deletions
83
polkadot-parachains/integritee-runtime/src/weights/pallet_asset_registry.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,83 @@ | ||
// This file is part of Trappist. | ||
|
||
// Copyright (C) Parity Technologies (UK) Ltd. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
//! Autogenerated weights for `pallet_asset_registry` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2023-10-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `runner-nbnwcyh-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` | ||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("trappist-dev")`, DB CACHE: 1024 | ||
// Executed Command: | ||
// ./target/production/trappist-node | ||
// benchmark | ||
// pallet | ||
// --chain=trappist-dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --no-storage-info | ||
// --no-median-slopes | ||
// --no-min-squares | ||
// --pallet=pallet_asset_registry | ||
// --extrinsic=* | ||
// --wasm-execution=compiled | ||
// --header=./templates/file_header.txt | ||
// --output=./runtime/trappist/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_registry`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_asset_registry::WeightInfo for WeightInfo<T> { | ||
/// Storage: `Assets::Asset` (r:1 w:0) | ||
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) | ||
/// Storage: `AssetRegistry::AssetIdMultiLocation` (r:1 w:1) | ||
/// Proof: `AssetRegistry::AssetIdMultiLocation` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) | ||
/// Storage: `AssetRegistry::AssetMultiLocationId` (r:0 w:1) | ||
/// Proof: `AssetRegistry::AssetMultiLocationId` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) | ||
fn register_reserve_asset() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `123` | ||
// Estimated: `4087` | ||
// Minimum execution time: 19_271_000 picoseconds. | ||
Weight::from_parts(19_590_000, 0) | ||
.saturating_add(Weight::from_parts(0, 4087)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// Storage: `AssetRegistry::AssetIdMultiLocation` (r:1 w:1) | ||
/// Proof: `AssetRegistry::AssetIdMultiLocation` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) | ||
/// Storage: `AssetRegistry::AssetMultiLocationId` (r:0 w:1) | ||
/// Proof: `AssetRegistry::AssetMultiLocationId` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) | ||
fn unregister_reserve_asset() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `107` | ||
// Estimated: `4087` | ||
// Minimum execution time: 15_981_000 picoseconds. | ||
Weight::from_parts(16_448_000, 0) | ||
.saturating_add(Weight::from_parts(0, 4087)) | ||
.saturating_add(T::DbWeight::get().reads(1)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
} |
Oops, something went wrong.