1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
//! Autogenerated weights for fee
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-07, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `interlay-rust-runner-2mz2v-kcxvd`, CPU: `AMD EPYC 7502P 32-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024
// Executed Command:
// target/release/interbtc-parachain
// benchmark
// pallet
// --pallet
// *
// --extrinsic
// *
// --chain
// kintsugi-dev
// --execution=wasm
// --wasm-execution=compiled
// --steps
// 50
// --repeat
// 10
// --output
// parachain/runtime/kintsugi/src/weights/
// --template
// .deploy/runtime-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;
/// Weights for fee using the Substrate node and recommended hardware.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> fee::WeightInfo for WeightInfo<T> {
/// Storage: VaultCapacity Stake (r:1 w:0)
/// Proof: VaultCapacity Stake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen)
/// Storage: VaultCapacity RewardPerToken (r:2 w:0)
/// Proof: VaultCapacity RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: VaultCapacity RewardTally (r:2 w:2)
/// Proof: VaultCapacity RewardTally (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
/// Storage: VaultCapacity TotalRewards (r:2 w:2)
/// Proof: VaultCapacity TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen)
/// Storage: VaultRewards TotalStake (r:1 w:0)
/// Proof: VaultRewards TotalStake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen)
/// Storage: VaultRewards RewardCurrencies (r:1 w:1)
/// Proof: VaultRewards RewardCurrencies (max_values: None, max_size: Some(50), added: 2525, mode: MaxEncodedLen)
/// Storage: VaultRewards RewardPerToken (r:2 w:2)
/// Proof: VaultRewards RewardPerToken (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
/// Storage: VaultRewards TotalRewards (r:2 w:2)
/// Proof: VaultRewards TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen)
/// Storage: VaultRewards Stake (r:1 w:0)
/// Proof: VaultRewards Stake (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen)
/// Storage: VaultRewards RewardTally (r:2 w:2)
/// Proof: VaultRewards RewardTally (max_values: None, max_size: Some(124), added: 2599, mode: MaxEncodedLen)
/// Storage: Fee Commission (r:1 w:0)
/// Proof: Fee Commission (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)
/// Storage: VaultStaking Nonce (r:1 w:0)
/// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
/// Storage: VaultStaking TotalCurrentStake (r:1 w:0)
/// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen)
/// Storage: VaultStaking RewardPerToken (r:2 w:2)
/// Proof: VaultStaking RewardPerToken (max_values: None, max_size: Some(117), added: 2592, mode: MaxEncodedLen)
/// Storage: VaultStaking TotalRewards (r:2 w:2)
/// Proof: VaultStaking TotalRewards (max_values: None, max_size: Some(117), added: 2592, mode: MaxEncodedLen)
/// Storage: VaultStaking Stake (r:1 w:1)
/// Proof: VaultStaking Stake (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen)
/// Storage: VaultStaking SlashPerToken (r:1 w:0)
/// Proof: VaultStaking SlashPerToken (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen)
/// Storage: VaultStaking SlashTally (r:1 w:1)
/// Proof: VaultStaking SlashTally (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen)
/// Storage: VaultStaking TotalStake (r:1 w:1)
/// Proof: VaultStaking TotalStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen)
/// Storage: VaultStaking RewardTally (r:2 w:2)
/// Proof: VaultStaking RewardTally (max_values: None, max_size: Some(149), added: 2624, mode: MaxEncodedLen)
/// Storage: Tokens Accounts (r:4 w:4)
/// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn withdraw_rewards () -> Weight {
// Proof Size summary in bytes:
// Measured: `2962`
// Estimated: `11350`
// Minimum execution time: 590_372_000 picoseconds.
Weight::from_parts(594_450_000, 11350)
.saturating_add(T::DbWeight::get().reads(35_u64))
.saturating_add(T::DbWeight::get().writes(25_u64))
}
/// Storage: Fee IssueFee (r:0 w:1)
/// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_issue_fee () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_747_000 picoseconds.
Weight::from_parts(9_008_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Fee IssueGriefingCollateral (r:0 w:1)
/// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_issue_griefing_collateral () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_737_000 picoseconds.
Weight::from_parts(8_998_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Fee RedeemFee (r:0 w:1)
/// Proof: Fee RedeemFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_redeem_fee () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_868_000 picoseconds.
Weight::from_parts(9_038_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Fee PremiumRedeemFee (r:0 w:1)
/// Proof: Fee PremiumRedeemFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_premium_redeem_fee () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_757_000 picoseconds.
Weight::from_parts(8_957_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Fee PunishmentFee (r:0 w:1)
/// Proof: Fee PunishmentFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_punishment_fee () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_948_000 picoseconds.
Weight::from_parts(9_099_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Fee ReplaceGriefingCollateral (r:0 w:1)
/// Proof: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_replace_griefing_collateral () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_858_000 picoseconds.
Weight::from_parts(9_028_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Nomination Vaults (r:1 w:0)
/// Proof: Nomination Vaults (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
/// Storage: Fee Commission (r:0 w:1)
/// Proof: Fee Commission (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)
fn set_commission () -> Weight {
// Proof Size summary in bytes:
// Measured: `167`
// Estimated: `3536`
// Minimum execution time: 19_309_000 picoseconds.
Weight::from_parts(19_509_000, 3536)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}