From f2a20ee3e965cb8897d7561c0dba0bf033924b31 Mon Sep 17 00:00:00 2001 From: Erwan Renaut <73958772+renauter@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:10:40 -0300 Subject: [PATCH] chore(pallets): update benchmark `weights.rs` file for all pallets (#959) --- .../060_generate_benchmark_weights.yml | 8 +- .../pallets/pallet-burning/src/weights.rs | 42 +- .../pallets/pallet-dao/src/weights.rs | 214 +-- .../pallets/pallet-kvstore/src/weights.rs | 50 +- .../pallet-smart-contract/src/weights.rs | 1332 +++++++++-------- .../pallets/pallet-tfgrid/src/weights.rs | 1068 ++++++------- .../pallets/pallet-tft-bridge/src/weights.rs | 360 ++--- .../pallets/pallet-tft-price/src/weights.rs | 138 +- .../pallets/pallet-validator/src/weights.rs | 226 +-- .../substrate-validator-set/src/weights.rs | 96 +- 10 files changed, 1793 insertions(+), 1741 deletions(-) diff --git a/.github/workflows/060_generate_benchmark_weights.yml b/.github/workflows/060_generate_benchmark_weights.yml index 872ae8712..3d60c0b08 100644 --- a/.github/workflows/060_generate_benchmark_weights.yml +++ b/.github/workflows/060_generate_benchmark_weights.yml @@ -48,6 +48,7 @@ jobs: cargo build --profile=production --features runtime-benchmarks - name: Run benchmarking + shell: bash run: | cd substrate-node for weights_rs_file in ./pallets/*/src/weights.rs @@ -65,10 +66,15 @@ jobs: --output ./pallets/"$pal_name"/src/weights.rs \ --template ./.maintain/frame-weight-template.hbs done + + - name: Git config + run: | + git config --global --add safe.directory /__w/tfchain/tfchain + git status - name: Commit & Push changes uses: actions-js/push@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - message: 'chore(pallets): update benchmark `weights.rs` files ${date}' + message: 'chore: update benchmark `weights.rs` file for all pallets' branch: ${{ github.ref_name }} diff --git a/substrate-node/pallets/pallet-burning/src/weights.rs b/substrate-node/pallets/pallet-burning/src/weights.rs index 9d39aecf7..d98c3e26b 100644 --- a/substrate-node/pallets/pallet-burning/src/weights.rs +++ b/substrate-node/pallets/pallet-burning/src/weights.rs @@ -2,26 +2,26 @@ //! Autogenerated weights for pallet_burning //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ragnar`, CPU: `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ../target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_burning +// --wasm-execution=compiled +// --pallet=pallet-burning // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output -// ../pallets/pallet-burning/src/weights.rs +// ./pallets/pallet-burning/src/weights.rs // --template -// ./frame-weight-template.hbs +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -39,14 +39,14 @@ pub trait WeightInfo { /// Weights for pallet_burning using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: BurningModule Burns (r:1 w:1) - /// Proof Skipped: BurningModule Burns (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `BurningModule::Burns` (r:1 w:1) + /// Proof: `BurningModule::Burns` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn burn_tft() -> Weight { // Proof Size summary in bytes: - // Measured: `142` - // Estimated: `1627` - // Minimum execution time: 48_921_000 picoseconds. - Weight::from_parts(49_647_000, 1627) + // Measured: `109` + // Estimated: `1594` + // Minimum execution time: 42_280_000 picoseconds. + Weight::from_parts(42_982_000, 1594) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -54,15 +54,15 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: BurningModule Burns (r:1 w:1) - /// Proof Skipped: BurningModule Burns (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `BurningModule::Burns` (r:1 w:1) + /// Proof: `BurningModule::Burns` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn burn_tft() -> Weight { // Proof Size summary in bytes: - // Measured: `142` - // Estimated: `1627` - // Minimum execution time: 48_921_000 picoseconds. - Weight::from_parts(49_647_000, 1627) + // Measured: `109` + // Estimated: `1594` + // Minimum execution time: 42_280_000 picoseconds. + Weight::from_parts(42_982_000, 1594) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } -} \ No newline at end of file +} diff --git a/substrate-node/pallets/pallet-dao/src/weights.rs b/substrate-node/pallets/pallet-dao/src/weights.rs index f97d29ba3..0adb7f7bc 100644 --- a/substrate-node/pallets/pallet-dao/src/weights.rs +++ b/substrate-node/pallets/pallet-dao/src/weights.rs @@ -2,26 +2,26 @@ //! Autogenerated weights for pallet_dao //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ragnar`, CPU: `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ../target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_dao +// --wasm-execution=compiled +// --pallet=pallet-dao // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output -// ../pallets/pallet-dao/src/weights.rs +// ./pallets/pallet-dao/src/weights.rs // --template -// ./frame-weight-template.hbs +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -42,77 +42,77 @@ pub trait WeightInfo { /// Weights for pallet_dao using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: CouncilMembership Members (r:1 w:0) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Dao ProposalOf (r:1 w:1) - /// Proof Skipped: Dao ProposalOf (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao ProposalCount (r:1 w:1) - /// Proof Skipped: Dao ProposalCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Dao ProposalList (r:1 w:1) - /// Proof Skipped: Dao ProposalList (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Dao Voting (r:0 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Proposals (r:0 w:1) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:0) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Dao::ProposalOf` (r:1 w:1) + /// Proof: `Dao::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalCount` (r:1 w:1) + /// Proof: `Dao::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalList` (r:1 w:1) + /// Proof: `Dao::ProposalList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Voting` (r:0 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Proposals` (r:0 w:1) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose() -> Weight { // Proof Size summary in bytes: - // Measured: `240` + // Measured: `208` // Estimated: `4687` - // Minimum execution time: 36_618_000 picoseconds. - Weight::from_parts(37_170_000, 4687) + // Minimum execution time: 60_124_000 picoseconds. + Weight::from_parts(61_897_000, 4687) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Proposals (r:1 w:0) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Voting (r:1 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:0) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Proposals` (r:1 w:0) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Voting` (r:1 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:0) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) fn vote() -> Weight { // Proof Size summary in bytes: // Measured: `979` // Estimated: `4444` - // Minimum execution time: 43_016_000 picoseconds. - Weight::from_parts(43_672_000, 4444) + // Minimum execution time: 35_097_000 picoseconds. + Weight::from_parts(35_647_000, 4444) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: CouncilMembership Members (r:1 w:0) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Dao Proposals (r:1 w:0) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Voting (r:1 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:0) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Dao::Proposals` (r:1 w:0) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Voting` (r:1 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) fn veto() -> Weight { // Proof Size summary in bytes: - // Measured: `519` + // Measured: `487` // Estimated: `4687` - // Minimum execution time: 31_000_000 picoseconds. - Weight::from_parts(31_599_000, 4687) + // Minimum execution time: 25_068_000 picoseconds. + Weight::from_parts(25_618_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: CouncilMembership Members (r:1 w:0) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Dao Voting (r:1 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao ProposalList (r:1 w:1) - /// Proof Skipped: Dao ProposalList (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Dao Proposals (r:0 w:1) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao ProposalOf (r:0 w:1) - /// Proof Skipped: Dao ProposalOf (max_values: None, max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:0) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Dao::Voting` (r:1 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalList` (r:1 w:1) + /// Proof: `Dao::ProposalList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Proposals` (r:0 w:1) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalOf` (r:0 w:1) + /// Proof: `Dao::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close() -> Weight { // Proof Size summary in bytes: - // Measured: `501` + // Measured: `469` // Estimated: `4687` - // Minimum execution time: 40_325_000 picoseconds. - Weight::from_parts(43_227_000, 4687) + // Minimum execution time: 34_275_000 picoseconds. + Weight::from_parts(34_786_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -120,78 +120,78 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: CouncilMembership Members (r:1 w:0) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Dao ProposalOf (r:1 w:1) - /// Proof Skipped: Dao ProposalOf (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao ProposalCount (r:1 w:1) - /// Proof Skipped: Dao ProposalCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Dao ProposalList (r:1 w:1) - /// Proof Skipped: Dao ProposalList (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Dao Voting (r:0 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Proposals (r:0 w:1) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:0) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Dao::ProposalOf` (r:1 w:1) + /// Proof: `Dao::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalCount` (r:1 w:1) + /// Proof: `Dao::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalList` (r:1 w:1) + /// Proof: `Dao::ProposalList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Voting` (r:0 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Proposals` (r:0 w:1) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose() -> Weight { // Proof Size summary in bytes: - // Measured: `240` + // Measured: `208` // Estimated: `4687` - // Minimum execution time: 36_618_000 picoseconds. - Weight::from_parts(37_170_000, 4687) + // Minimum execution time: 60_124_000 picoseconds. + Weight::from_parts(61_897_000, 4687) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Proposals (r:1 w:0) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Voting (r:1 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:0) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Proposals` (r:1 w:0) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Voting` (r:1 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:0) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) fn vote() -> Weight { // Proof Size summary in bytes: // Measured: `979` // Estimated: `4444` - // Minimum execution time: 43_016_000 picoseconds. - Weight::from_parts(43_672_000, 4444) + // Minimum execution time: 35_097_000 picoseconds. + Weight::from_parts(35_647_000, 4444) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: CouncilMembership Members (r:1 w:0) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Dao Proposals (r:1 w:0) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao Voting (r:1 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:0) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Dao::Proposals` (r:1 w:0) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Voting` (r:1 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) fn veto() -> Weight { // Proof Size summary in bytes: - // Measured: `519` + // Measured: `487` // Estimated: `4687` - // Minimum execution time: 31_000_000 picoseconds. - Weight::from_parts(31_599_000, 4687) + // Minimum execution time: 25_068_000 picoseconds. + Weight::from_parts(25_618_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: CouncilMembership Members (r:1 w:0) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Dao Voting (r:1 w:1) - /// Proof Skipped: Dao Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao ProposalList (r:1 w:1) - /// Proof Skipped: Dao ProposalList (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Dao Proposals (r:0 w:1) - /// Proof Skipped: Dao Proposals (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao ProposalOf (r:0 w:1) - /// Proof Skipped: Dao ProposalOf (max_values: None, max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:0) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Dao::Voting` (r:1 w:1) + /// Proof: `Dao::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalList` (r:1 w:1) + /// Proof: `Dao::ProposalList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Dao::Proposals` (r:0 w:1) + /// Proof: `Dao::Proposals` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::ProposalOf` (r:0 w:1) + /// Proof: `Dao::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close() -> Weight { // Proof Size summary in bytes: - // Measured: `501` + // Measured: `469` // Estimated: `4687` - // Minimum execution time: 40_325_000 picoseconds. - Weight::from_parts(43_227_000, 4687) + // Minimum execution time: 34_275_000 picoseconds. + Weight::from_parts(34_786_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } -} \ No newline at end of file +} diff --git a/substrate-node/pallets/pallet-kvstore/src/weights.rs b/substrate-node/pallets/pallet-kvstore/src/weights.rs index 664d718a7..2508659b7 100644 --- a/substrate-node/pallets/pallet-kvstore/src/weights.rs +++ b/substrate-node/pallets/pallet-kvstore/src/weights.rs @@ -2,26 +2,26 @@ //! Autogenerated weights for pallet_kvstore //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ragnar`, CPU: `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ../target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_kvstore +// --wasm-execution=compiled +// --pallet=pallet-kvstore // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output -// ../pallets/pallet-kvstore/src/weights.rs +// ./pallets/pallet-kvstore/src/weights.rs // --template -// ./frame-weight-template.hbs +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -40,24 +40,24 @@ pub trait WeightInfo { /// Weights for pallet_kvstore using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: TFKVStore TFKVStore (r:0 w:1) - /// Proof Skipped: TFKVStore TFKVStore (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFKVStore::TFKVStore` (r:0 w:1) + /// Proof: `TFKVStore::TFKVStore` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 15_031_000 picoseconds. - Weight::from_parts(15_410_000, 0) + // Minimum execution time: 8_647_000 picoseconds. + Weight::from_parts(11_722_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFKVStore TFKVStore (r:1 w:1) - /// Proof Skipped: TFKVStore TFKVStore (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFKVStore::TFKVStore` (r:1 w:1) + /// Proof: `TFKVStore::TFKVStore` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delete() -> Weight { // Proof Size summary in bytes: // Measured: `146` // Estimated: `3611` - // Minimum execution time: 23_038_000 picoseconds. - Weight::from_parts(23_587_000, 3611) + // Minimum execution time: 20_228_000 picoseconds. + Weight::from_parts(21_210_000, 3611) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -65,25 +65,25 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: TFKVStore TFKVStore (r:0 w:1) - /// Proof Skipped: TFKVStore TFKVStore (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFKVStore::TFKVStore` (r:0 w:1) + /// Proof: `TFKVStore::TFKVStore` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 15_031_000 picoseconds. - Weight::from_parts(15_410_000, 0) + // Minimum execution time: 8_647_000 picoseconds. + Weight::from_parts(11_722_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFKVStore TFKVStore (r:1 w:1) - /// Proof Skipped: TFKVStore TFKVStore (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFKVStore::TFKVStore` (r:1 w:1) + /// Proof: `TFKVStore::TFKVStore` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delete() -> Weight { // Proof Size summary in bytes: // Measured: `146` // Estimated: `3611` - // Minimum execution time: 23_038_000 picoseconds. - Weight::from_parts(23_587_000, 3611) + // Minimum execution time: 20_228_000 picoseconds. + Weight::from_parts(21_210_000, 3611) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } -} \ No newline at end of file +} diff --git a/substrate-node/pallets/pallet-smart-contract/src/weights.rs b/substrate-node/pallets/pallet-smart-contract/src/weights.rs index cb4119f02..efdc05598 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/weights.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/weights.rs @@ -2,21 +2,21 @@ //! Autogenerated weights for pallet_smart_contract //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `R1-HP-ProBook-630-G8`, CPU: `11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_smart_contract +// --wasm-execution=compiled +// --pallet=pallet-smart-contract // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output // ./pallets/pallet-smart-contract/src/weights.rs @@ -61,473 +61,494 @@ pub trait WeightInfo { /// Weights for pallet_smart_contract using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:0) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule DedicatedNodesExtraFee (r:1 w:0) - /// Proof Skipped: SmartContractModule DedicatedNodesExtraFee (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (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: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:0 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractLock (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:0) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::DedicatedNodesExtraFee` (r:1 w:0) + /// Proof: `SmartContractModule::DedicatedNodesExtraFee` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:1 w:1) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`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: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:0 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:0 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractLock` (r:0 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_node_contract() -> Weight { // Proof Size summary in bytes: // Measured: `868` // Estimated: `4333` - // Minimum execution time: 119_629_000 picoseconds. - Weight::from_parts(124_124_000, 4333) + // Minimum execution time: 102_203_000 picoseconds. + Weight::from_parts(104_197_000, 4333) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:0 w:2) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:0 w:2) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_node_contract() -> Weight { // Proof Size summary in bytes: // Measured: `892` // Estimated: `4357` - // Minimum execution time: 64_128_000 picoseconds. - Weight::from_parts(67_016_000, 4357) + // Minimum execution time: 26_891_000 picoseconds. + Weight::from_parts(27_472_000, 4357) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule NodeContractResources (r:0 w:1) - /// Proof Skipped: SmartContractModule NodeContractResources (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:0 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:0 w:1) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:0 w:1) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_contract() -> Weight { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 134_164_000 picoseconds. - Weight::from_parts(138_183_000, 4668) + // Minimum execution time: 60_284_000 picoseconds. + Weight::from_parts(61_346_000, 4668) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNameRegistration (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNameRegistration (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (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: SmartContractModule Contracts (r:0 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractLock (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNameRegistration` (r:1 w:1) + /// Proof: `SmartContractModule::ContractIDByNameRegistration` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`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: `SmartContractModule::Contracts` (r:0 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractLock` (r:0 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_name_contract() -> Weight { // Proof Size summary in bytes: // Measured: `340` // Estimated: `3805` - // Minimum execution time: 54_724_000 picoseconds. - Weight::from_parts(57_496_000, 3805) + // Minimum execution time: 24_977_000 picoseconds. + Weight::from_parts(25_658_000, 3805) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNameRegistration (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNameRegistration (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNameRegistration` (r:0 w:1) + /// Proof: `SmartContractModule::ContractIDByNameRegistration` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_name_contract() -> Weight { // Proof Size summary in bytes: // Measured: `919` // Estimated: `4384` - // Minimum execution time: 101_753_000 picoseconds. - Weight::from_parts(105_128_000, 4384) + // Minimum execution time: 46_538_000 picoseconds. + Weight::from_parts(47_230_000, 4384) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:1 w:0) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:1 w:0) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_nru_reports() -> Weight { // Proof Size summary in bytes: // Measured: `1292` // Estimated: `4757` - // Minimum execution time: 77_126_000 picoseconds. - Weight::from_parts(79_222_000, 4757) + // Minimum execution time: 38_072_000 picoseconds. + Weight::from_parts(38_763_000, 4757) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:1 w:0) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule NodeContractResources (r:0 w:1) - /// Proof Skipped: SmartContractModule NodeContractResources (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:1 w:0) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:0 w:1) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_contract_resources() -> Weight { // Proof Size summary in bytes: // Measured: `771` // Estimated: `4236` - // Minimum execution time: 47_460_000 picoseconds. - Weight::from_parts(48_914_000, 4236) + // Minimum execution time: 23_194_000 picoseconds. + Weight::from_parts(23_485_000, 4236) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:0) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (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: SmartContractModule Contracts (r:0 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractLock (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`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: `SmartContractModule::Contracts` (r:0 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractLock` (r:0 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_rent_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `868` - // Estimated: `4333` - // Minimum execution time: 78_140_000 picoseconds. - Weight::from_parts(81_100_000, 4333) - .saturating_add(T::DbWeight::get().reads(10_u64)) + // Measured: `776` + // Estimated: `4241` + // Minimum execution time: 34_876_000 picoseconds. + Weight::from_parts(35_417_000, 4241) + .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule DedicatedNodesExtraFee (r:1 w:0) - /// Proof Skipped: SmartContractModule DedicatedNodesExtraFee (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:0 w:1) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:0) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::DedicatedNodesExtraFee` (r:1 w:0) + /// Proof: `SmartContractModule::DedicatedNodesExtraFee` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:0 w:1) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_rent_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `1071` - // Estimated: `4536` - // Minimum execution time: 114_334_000 picoseconds. - Weight::from_parts(118_126_000, 4536) - .saturating_add(T::DbWeight::get().reads(10_u64)) + // Measured: `1284` + // Estimated: `4749` + // Minimum execution time: 60_275_000 picoseconds. + Weight::from_parts(60_955_000, 4749) + .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: SmartContractModule SolutionProviderID (r:1 w:1) - /// Proof Skipped: SmartContractModule SolutionProviderID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule SolutionProviders (r:0 w:1) - /// Proof Skipped: SmartContractModule SolutionProviders (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::SolutionProviderID` (r:1 w:1) + /// Proof: `SmartContractModule::SolutionProviderID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::SolutionProviders` (r:0 w:1) + /// Proof: `SmartContractModule::SolutionProviders` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_solution_provider() -> Weight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 24_361_000 picoseconds. - Weight::from_parts(25_532_000, 1522) + // Minimum execution time: 10_290_000 picoseconds. + Weight::from_parts(10_560_000, 1522) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: SmartContractModule SolutionProviders (r:1 w:1) - /// Proof Skipped: SmartContractModule SolutionProviders (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::SolutionProviders` (r:1 w:1) + /// Proof: `SmartContractModule::SolutionProviders` (`max_values`: None, `max_size`: None, mode: `Measured`) fn approve_solution_provider() -> Weight { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 28_651_000 picoseconds. - Weight::from_parts(29_486_000, 3680) + // Minimum execution time: 13_215_000 picoseconds. + Weight::from_parts(13_535_000, 3680) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:0) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (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: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:0) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:0) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`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: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:1 w:0) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::AverageTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::AverageTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MinTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn bill_contract_for_block() -> Weight { // Proof Size summary in bytes: - // Measured: `1216` - // Estimated: `4681` - // Minimum execution time: 56_839_000 picoseconds. - Weight::from_parts(58_569_000, 4681) - .saturating_add(T::DbWeight::get().reads(7_u64)) + // Measured: `1608` + // Estimated: `5073` + // Minimum execution time: 80_642_000 picoseconds. + Weight::from_parts(81_735_000, 5073) + .saturating_add(T::DbWeight::get().reads(16_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:2 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:0 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:2 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:0 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_create() -> Weight { // Proof Size summary in bytes: // Measured: `395` // Estimated: `6335` - // Minimum execution time: 40_172_000 picoseconds. - Weight::from_parts(41_719_000, 6335) + // Minimum execution time: 18_926_000 picoseconds. + Weight::from_parts(19_386_000, 6335) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_set_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 35_442_000 picoseconds. - Weight::from_parts(36_518_000, 3954) + // Minimum execution time: 16_892_000 picoseconds. + Weight::from_parts(17_293_000, 3954) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_set_fees() -> Weight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 34_663_000 picoseconds. - Weight::from_parts(35_371_000, 3954) + // Minimum execution time: 16_562_000 picoseconds. + Weight::from_parts(16_732_000, 3954) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_approve() -> Weight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 34_967_000 picoseconds. - Weight::from_parts(36_503_000, 3967) + // Minimum execution time: 16_821_000 picoseconds. + Weight::from_parts(17_292_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_reject() -> Weight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 36_210_000 picoseconds. - Weight::from_parts(37_826_000, 3967) + // Minimum execution time: 17_693_000 picoseconds. + Weight::from_parts(18_014_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_cancel() -> Weight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 33_426_000 picoseconds. - Weight::from_parts(34_600_000, 3967) + // Minimum execution time: 16_401_000 picoseconds. + Weight::from_parts(16_662_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (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: TfgridModule Twins (r:2 w:0) - /// Proof Skipped: TfgridModule Twins (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: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`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: `TfgridModule::Twins` (r:2 w:0) + /// Proof: `TfgridModule::Twins` (`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`) fn service_contract_bill() -> Weight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `6781` - // Minimum execution time: 61_064_000 picoseconds. - Weight::from_parts(64_267_000, 6781) + // Minimum execution time: 30_327_000 picoseconds. + Weight::from_parts(31_189_000, 6781) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule BillingFrequency (r:1 w:1) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:1) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn change_billing_frequency() -> Weight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 17_066_000 picoseconds. - Weight::from_parts(17_649_000, 1522) + // Minimum execution time: 7_855_000 picoseconds. + Weight::from_parts(8_076_000, 1522) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule SolutionProviders (r:1 w:0) - /// Proof Skipped: SmartContractModule SolutionProviders (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::SolutionProviders` (r:1 w:0) + /// Proof: `SmartContractModule::SolutionProviders` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn attach_solution_provider_id() -> Weight { // Proof Size summary in bytes: // Measured: `971` // Estimated: `4436` - // Minimum execution time: 44_207_000 picoseconds. - Weight::from_parts(46_180_000, 4436) + // Minimum execution time: 22_222_000 picoseconds. + Weight::from_parts(22_462_000, 4436) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule DedicatedNodesExtraFee (r:0 w:1) - /// Proof Skipped: SmartContractModule DedicatedNodesExtraFee (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::DedicatedNodesExtraFee` (r:0 w:1) + /// Proof: `SmartContractModule::DedicatedNodesExtraFee` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_dedicated_node_extra_fee() -> Weight { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 46_778_000 picoseconds. - Weight::from_parts(48_978_000, 4198) + // Minimum execution time: 23_424_000 picoseconds. + Weight::from_parts(23_775_000, 4198) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule NodeContractResources (r:0 w:1) - /// Proof Skipped: SmartContractModule NodeContractResources (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:0 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:0 w:1) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:0 w:1) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_contract_collective() -> Weight { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 90_735_000 picoseconds. - Weight::from_parts(92_827_000, 4668) + // Minimum execution time: 58_861_000 picoseconds. + Weight::from_parts(59_413_000, 4668) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -535,474 +556,495 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:0) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule DedicatedNodesExtraFee (r:1 w:0) - /// Proof Skipped: SmartContractModule DedicatedNodesExtraFee (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (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: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:0 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractLock (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:0) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::DedicatedNodesExtraFee` (r:1 w:0) + /// Proof: `SmartContractModule::DedicatedNodesExtraFee` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:1 w:1) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`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: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:0 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:0 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractLock` (r:0 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_node_contract() -> Weight { // Proof Size summary in bytes: // Measured: `868` // Estimated: `4333` - // Minimum execution time: 119_629_000 picoseconds. - Weight::from_parts(124_124_000, 4333) + // Minimum execution time: 102_203_000 picoseconds. + Weight::from_parts(104_197_000, 4333) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:0 w:2) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:0 w:2) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_node_contract() -> Weight { // Proof Size summary in bytes: // Measured: `892` // Estimated: `4357` - // Minimum execution time: 64_128_000 picoseconds. - Weight::from_parts(67_016_000, 4357) + // Minimum execution time: 26_891_000 picoseconds. + Weight::from_parts(27_472_000, 4357) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule NodeContractResources (r:0 w:1) - /// Proof Skipped: SmartContractModule NodeContractResources (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:0 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:0 w:1) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:0 w:1) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_contract() -> Weight { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 134_164_000 picoseconds. - Weight::from_parts(138_183_000, 4668) + // Minimum execution time: 60_284_000 picoseconds. + Weight::from_parts(61_346_000, 4668) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNameRegistration (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNameRegistration (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (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: SmartContractModule Contracts (r:0 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractLock (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNameRegistration` (r:1 w:1) + /// Proof: `SmartContractModule::ContractIDByNameRegistration` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`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: `SmartContractModule::Contracts` (r:0 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractLock` (r:0 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_name_contract() -> Weight { // Proof Size summary in bytes: // Measured: `340` // Estimated: `3805` - // Minimum execution time: 54_724_000 picoseconds. - Weight::from_parts(57_496_000, 3805) + // Minimum execution time: 24_977_000 picoseconds. + Weight::from_parts(25_658_000, 3805) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNameRegistration (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNameRegistration (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNameRegistration` (r:0 w:1) + /// Proof: `SmartContractModule::ContractIDByNameRegistration` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_name_contract() -> Weight { // Proof Size summary in bytes: // Measured: `919` // Estimated: `4384` - // Minimum execution time: 101_753_000 picoseconds. - Weight::from_parts(105_128_000, 4384) + // Minimum execution time: 46_538_000 picoseconds. + Weight::from_parts(47_230_000, 4384) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:1 w:0) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:1 w:0) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_nru_reports() -> Weight { // Proof Size summary in bytes: // Measured: `1292` // Estimated: `4757` - // Minimum execution time: 77_126_000 picoseconds. - Weight::from_parts(79_222_000, 4757) + // Minimum execution time: 38_072_000 picoseconds. + Weight::from_parts(38_763_000, 4757) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:1 w:0) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule NodeContractResources (r:0 w:1) - /// Proof Skipped: SmartContractModule NodeContractResources (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:1 w:0) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:0 w:1) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_contract_resources() -> Weight { // Proof Size summary in bytes: // Measured: `771` // Estimated: `4236` - // Minimum execution time: 47_460_000 picoseconds. - Weight::from_parts(48_914_000, 4236) + // Minimum execution time: 23_194_000 picoseconds. + Weight::from_parts(23_485_000, 4236) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:0) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (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: SmartContractModule Contracts (r:0 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractLock (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`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: `SmartContractModule::Contracts` (r:0 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractLock` (r:0 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_rent_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `868` - // Estimated: `4333` - // Minimum execution time: 78_140_000 picoseconds. - Weight::from_parts(81_100_000, 4333) - .saturating_add(RocksDbWeight::get().reads(10_u64)) + // Measured: `776` + // Estimated: `4241` + // Minimum execution time: 34_876_000 picoseconds. + Weight::from_parts(35_417_000, 4241) + .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule DedicatedNodesExtraFee (r:1 w:0) - /// Proof Skipped: SmartContractModule DedicatedNodesExtraFee (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:0 w:1) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:0) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::DedicatedNodesExtraFee` (r:1 w:0) + /// Proof: `SmartContractModule::DedicatedNodesExtraFee` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:0 w:1) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_rent_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `1071` - // Estimated: `4536` - // Minimum execution time: 114_334_000 picoseconds. - Weight::from_parts(118_126_000, 4536) - .saturating_add(RocksDbWeight::get().reads(10_u64)) + // Measured: `1284` + // Estimated: `4749` + // Minimum execution time: 60_275_000 picoseconds. + Weight::from_parts(60_955_000, 4749) + .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: SmartContractModule SolutionProviderID (r:1 w:1) - /// Proof Skipped: SmartContractModule SolutionProviderID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule SolutionProviders (r:0 w:1) - /// Proof Skipped: SmartContractModule SolutionProviders (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::SolutionProviderID` (r:1 w:1) + /// Proof: `SmartContractModule::SolutionProviderID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::SolutionProviders` (r:0 w:1) + /// Proof: `SmartContractModule::SolutionProviders` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_solution_provider() -> Weight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 24_361_000 picoseconds. - Weight::from_parts(25_532_000, 1522) + // Minimum execution time: 10_290_000 picoseconds. + Weight::from_parts(10_560_000, 1522) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: SmartContractModule SolutionProviders (r:1 w:1) - /// Proof Skipped: SmartContractModule SolutionProviders (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::SolutionProviders` (r:1 w:1) + /// Proof: `SmartContractModule::SolutionProviders` (`max_values`: None, `max_size`: None, mode: `Measured`) fn approve_solution_provider() -> Weight { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 28_651_000 picoseconds. - Weight::from_parts(29_486_000, 3680) + // Minimum execution time: 13_215_000 picoseconds. + Weight::from_parts(13_535_000, 3680) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:0) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (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: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:0) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:0) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`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: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:1 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:1 w:0) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::AverageTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::AverageTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MinTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Balances::Locks` (r:1 w:1) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:0) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn bill_contract_for_block() -> Weight { // Proof Size summary in bytes: - // Measured: `1216` - // Estimated: `4681` - // Minimum execution time: 56_839_000 picoseconds. - Weight::from_parts(58_569_000, 4681) - .saturating_add(RocksDbWeight::get().reads(7_u64)) + // Measured: `1608` + // Estimated: `5073` + // Minimum execution time: 80_642_000 picoseconds. + Weight::from_parts(81_735_000, 5073) + .saturating_add(RocksDbWeight::get().reads(16_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:2 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContractID (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContractID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:0 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:2 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContractID` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContractID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:0 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_create() -> Weight { // Proof Size summary in bytes: // Measured: `395` // Estimated: `6335` - // Minimum execution time: 40_172_000 picoseconds. - Weight::from_parts(41_719_000, 6335) + // Minimum execution time: 18_926_000 picoseconds. + Weight::from_parts(19_386_000, 6335) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_set_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 35_442_000 picoseconds. - Weight::from_parts(36_518_000, 3954) + // Minimum execution time: 16_892_000 picoseconds. + Weight::from_parts(17_293_000, 3954) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_set_fees() -> Weight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 34_663_000 picoseconds. - Weight::from_parts(35_371_000, 3954) + // Minimum execution time: 16_562_000 picoseconds. + Weight::from_parts(16_732_000, 3954) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_approve() -> Weight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 34_967_000 picoseconds. - Weight::from_parts(36_503_000, 3967) + // Minimum execution time: 16_821_000 picoseconds. + Weight::from_parts(17_292_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_reject() -> Weight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 36_210_000 picoseconds. - Weight::from_parts(37_826_000, 3967) + // Minimum execution time: 17_693_000 picoseconds. + Weight::from_parts(18_014_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn service_contract_cancel() -> Weight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 33_426_000 picoseconds. - Weight::from_parts(34_600_000, 3967) + // Minimum execution time: 16_401_000 picoseconds. + Weight::from_parts(16_662_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ServiceContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ServiceContracts (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: TfgridModule Twins (r:2 w:0) - /// Proof Skipped: TfgridModule Twins (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: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ServiceContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ServiceContracts` (`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: `TfgridModule::Twins` (r:2 w:0) + /// Proof: `TfgridModule::Twins` (`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`) fn service_contract_bill() -> Weight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `6781` - // Minimum execution time: 61_064_000 picoseconds. - Weight::from_parts(64_267_000, 6781) + // Minimum execution time: 30_327_000 picoseconds. + Weight::from_parts(31_189_000, 6781) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule BillingFrequency (r:1 w:1) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:1) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn change_billing_frequency() -> Weight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 17_066_000 picoseconds. - Weight::from_parts(17_649_000, 1522) + // Minimum execution time: 7_855_000 picoseconds. + Weight::from_parts(8_076_000, 1522) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule SolutionProviders (r:1 w:0) - /// Proof Skipped: SmartContractModule SolutionProviders (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::SolutionProviders` (r:1 w:0) + /// Proof: `SmartContractModule::SolutionProviders` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn attach_solution_provider_id() -> Weight { // Proof Size summary in bytes: // Measured: `971` // Estimated: `4436` - // Minimum execution time: 44_207_000 picoseconds. - Weight::from_parts(46_180_000, 4436) + // Minimum execution time: 22_222_000 picoseconds. + Weight::from_parts(22_462_000, 4436) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule DedicatedNodesExtraFee (r:0 w:1) - /// Proof Skipped: SmartContractModule DedicatedNodesExtraFee (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::DedicatedNodesExtraFee` (r:0 w:1) + /// Proof: `SmartContractModule::DedicatedNodesExtraFee` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_dedicated_node_extra_fee() -> Weight { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 46_778_000 picoseconds. - Weight::from_parts(48_978_000, 4198) + // Minimum execution time: 23_424_000 picoseconds. + Weight::from_parts(23_775_000, 4198) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: SmartContractModule Contracts (r:1 w:1) - /// Proof Skipped: SmartContractModule Contracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:1) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (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: SmartContractModule ContractLock (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractLock (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:1 w:0) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule BillingFrequency (r:1 w:0) - /// Proof Skipped: SmartContractModule BillingFrequency (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractsToBillAt (r:1 w:1) - /// Proof Skipped: SmartContractModule ContractsToBillAt (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractBillingInformationByID (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractBillingInformationByID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule NodeContractResources (r:0 w:1) - /// Proof Skipped: SmartContractModule NodeContractResources (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ContractIDByNodeIDAndHash (r:0 w:1) - /// Proof Skipped: SmartContractModule ContractIDByNodeIDAndHash (max_values: None, max_size: None, mode: Measured) + /// Storage: `SmartContractModule::Contracts` (r:1 w:1) + /// Proof: `SmartContractModule::Contracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:1) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`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: `SmartContractModule::ContractLock` (r:1 w:1) + /// Proof: `SmartContractModule::ContractLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:0) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::BillingFrequency` (r:1 w:0) + /// Proof: `SmartContractModule::BillingFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractsToBillAt` (r:1 w:1) + /// Proof: `SmartContractModule::ContractsToBillAt` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractBillingInformationByID` (r:0 w:1) + /// Proof: `SmartContractModule::ContractBillingInformationByID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::NodeContractResources` (r:0 w:1) + /// Proof: `SmartContractModule::NodeContractResources` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ContractIDByNodeIDAndHash` (r:0 w:1) + /// Proof: `SmartContractModule::ContractIDByNodeIDAndHash` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_contract_collective() -> Weight { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 90_735_000 picoseconds. - Weight::from_parts(92_827_000, 4668) + // Minimum execution time: 58_861_000 picoseconds. + Weight::from_parts(59_413_000, 4668) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } -} \ No newline at end of file +} diff --git a/substrate-node/pallets/pallet-tfgrid/src/weights.rs b/substrate-node/pallets/pallet-tfgrid/src/weights.rs index f01cfff92..1e883699a 100644 --- a/substrate-node/pallets/pallet-tfgrid/src/weights.rs +++ b/substrate-node/pallets/pallet-tfgrid/src/weights.rs @@ -2,21 +2,21 @@ //! Autogenerated weights for pallet_tfgrid //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `R1-HP-ProBook-630-G8`, CPU: `11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_tfgrid +// --wasm-execution=compiled +// --pallet=pallet-tfgrid // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output // ./pallets/pallet-tfgrid/src/weights.rs @@ -70,960 +70,964 @@ pub trait WeightInfo { /// Weights for pallet_tfgrid using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: TfgridModule PalletVersion (r:0 w:1) - /// Proof Skipped: TfgridModule PalletVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::PalletVersion` (r:0 w:1) + /// Proof: `TfgridModule::PalletVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_storage_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_385_000 picoseconds. - Weight::from_parts(5_643_000, 0) + // Minimum execution time: 3_857_000 picoseconds. + Weight::from_parts(4_047_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule FarmID (r:1 w:1) - /// Proof Skipped: TfgridModule FarmID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule FarmIdByName (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:0 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmIdByName` (r:1 w:1) + /// Proof: `TfgridModule::FarmIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmID` (r:1 w:1) + /// Proof: `TfgridModule::FarmID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:0 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_farm() -> Weight { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3961` - // Minimum execution time: 31_394_000 picoseconds. - Weight::from_parts(32_172_000, 3961) + // Minimum execution time: 32_251_000 picoseconds. + Weight::from_parts(32_712_000, 3961) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule FarmIdByName (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmIdByName` (r:1 w:2) + /// Proof: `TfgridModule::FarmIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_farm() -> Weight { // Proof Size summary in bytes: // Measured: `507` // Estimated: `3972` - // Minimum execution time: 33_504_000 picoseconds. - Weight::from_parts(34_515_000, 3972) + // Minimum execution time: 34_135_000 picoseconds. + Weight::from_parts(35_327_000, 3972) .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmPayoutV2AddressByFarmID (r:0 w:1) - /// Proof Skipped: TfgridModule FarmPayoutV2AddressByFarmID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmPayoutV2AddressByFarmID` (r:0 w:1) + /// Proof: `TfgridModule::FarmPayoutV2AddressByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stellar_payout_v2address() -> Weight { // Proof Size summary in bytes: // Measured: `453` // Estimated: `3918` - // Minimum execution time: 24_636_000 picoseconds. - Weight::from_parts(25_319_000, 3918) + // Minimum execution time: 18_865_000 picoseconds. + Weight::from_parts(25_378_000, 3918) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_farm_certification() -> Weight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 20_870_000 picoseconds. - Weight::from_parts(21_177_000, 3877) + // Minimum execution time: 13_105_000 picoseconds. + Weight::from_parts(13_406_000, 3877) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_farm_ip() -> Weight { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 27_994_000 picoseconds. - Weight::from_parts(31_496_000, 4034) + // Minimum execution time: 17_734_000 picoseconds. + Weight::from_parts(18_165_000, 4034) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_farm_ip() -> Weight { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 26_365_000 picoseconds. - Weight::from_parts(27_079_000, 4034) + // Minimum execution time: 16_922_000 picoseconds. + Weight::from_parts(17_473_000, 4034) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:1) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeID (r:1 w:1) - /// Proof Skipped: TfgridModule NodeID (max_values: Some(1), 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: TfgridModule ConnectionPrice (r:1 w:0) - /// Proof Skipped: TfgridModule ConnectionPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule FarmingPoliciesMap (r:4 w:0) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:1) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:0 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:1) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeID` (r:1 w:1) + /// Proof: `TfgridModule::NodeID` (`max_values`: Some(1), `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: `TfgridModule::ConnectionPrice` (r:1 w:0) + /// Proof: `TfgridModule::ConnectionPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:4 w:0) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:1) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:0 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_node() -> Weight { // Proof Size summary in bytes: // Measured: `905` // Estimated: `11795` - // Minimum execution time: 71_884_000 picoseconds. - Weight::from_parts(74_159_000, 11795) + // Minimum execution time: 47_360_000 picoseconds. + Weight::from_parts(48_562_000, 11795) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_node() -> Weight { // Proof Size summary in bytes: // Measured: `661` // Estimated: `4126` - // Minimum execution time: 41_641_000 picoseconds. - Weight::from_parts(42_797_000, 4126) + // Minimum execution time: 27_062_000 picoseconds. + Weight::from_parts(27_723_000, 4126) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmingPoliciesMap (r:4 w:0) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:4 w:0) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_node_certification() -> Weight { // Proof Size summary in bytes: // Measured: `956` // Estimated: `11846` - // Minimum execution time: 53_080_000 picoseconds. - Weight::from_parts(54_350_000, 11846) + // Minimum execution time: 34_295_000 picoseconds. + Weight::from_parts(35_096_000, 11846) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (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: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_uptime() -> Weight { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 28_159_000 picoseconds. - Weight::from_parts(28_543_000, 3919) + // Minimum execution time: 18_635_000 picoseconds. + Weight::from_parts(19_006_000, 3919) .saturating_add(T::DbWeight::get().reads(4_u64)) } - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_node_public_config() -> Weight { // Proof Size summary in bytes: // Measured: `779` // Estimated: `4244` - // Minimum execution time: 37_090_000 picoseconds. - Weight::from_parts(38_269_000, 4244) + // Minimum execution time: 24_637_000 picoseconds. + Weight::from_parts(25_277_000, 4244) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:1) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:1) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delete_node() -> Weight { // Proof Size summary in bytes: // Measured: `682` // Estimated: `4147` - // Minimum execution time: 40_802_000 picoseconds. - Weight::from_parts(41_890_000, 4147) + // Minimum execution time: 27_362_000 picoseconds. + Weight::from_parts(27_943_000, 4147) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule UsersTermsAndConditions (r:1 w:0) - /// Proof Skipped: TfgridModule UsersTermsAndConditions (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:1) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinID (r:1 w:1) - /// Proof Skipped: TfgridModule TwinID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:0 w:1) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::UsersTermsAndConditions` (r:1 w:0) + /// Proof: `TfgridModule::UsersTermsAndConditions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:1) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinID` (r:1 w:1) + /// Proof: `TfgridModule::TwinID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:0 w:1) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_twin() -> Weight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3700` - // Minimum execution time: 23_943_000 picoseconds. - Weight::from_parts(24_477_000, 3700) + // Minimum execution time: 14_568_000 picoseconds. + Weight::from_parts(14_808_000, 3700) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:1) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:1) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_twin() -> Weight { // Proof Size summary in bytes: // Measured: `428` // Estimated: `3893` - // Minimum execution time: 23_757_000 picoseconds. - Weight::from_parts(24_337_000, 3893) + // Minimum execution time: 15_088_000 picoseconds. + Weight::from_parts(15_479_000, 3893) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule PricingPolicyIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicyIdByName (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicyID (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicyID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:0 w:1) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::PricingPolicyIdByName` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicyIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicyID` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicyID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:0 w:1) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_pricing_policy() -> Weight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `3599` - // Minimum execution time: 20_931_000 picoseconds. - Weight::from_parts(21_633_000, 3599) + // Minimum execution time: 12_373_000 picoseconds. + Weight::from_parts(12_624_000, 3599) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule PricingPolicies (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicyIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicyIdByName (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicyID (r:0 w:1) - /// Proof Skipped: TfgridModule PricingPolicyID (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicyIdByName` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicyIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicyID` (r:0 w:1) + /// Proof: `TfgridModule::PricingPolicyID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_pricing_policy() -> Weight { // Proof Size summary in bytes: // Measured: `382` // Estimated: `3847` - // Minimum execution time: 26_466_000 picoseconds. - Weight::from_parts(27_478_000, 3847) + // Minimum execution time: 16_632_000 picoseconds. + Weight::from_parts(17_143_000, 3847) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule FarmingPolicyID (r:1 w:1) - /// Proof Skipped: TfgridModule FarmingPolicyID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule FarmingPoliciesMap (r:0 w:1) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::FarmingPolicyID` (r:1 w:1) + /// Proof: `TfgridModule::FarmingPolicyID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:0 w:1) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_farming_policy() -> Weight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 17_653_000 picoseconds. - Weight::from_parts(18_085_000, 1619) + // Minimum execution time: 10_439_000 picoseconds. + Weight::from_parts(10_610_000, 1619) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: TfgridModule UsersTermsAndConditions (r:1 w:1) - /// Proof Skipped: TfgridModule UsersTermsAndConditions (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: `TfgridModule::UsersTermsAndConditions` (r:1 w:1) + /// Proof: `TfgridModule::UsersTermsAndConditions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn user_accept_tc() -> Weight { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3605` - // Minimum execution time: 12_183_000 picoseconds. - Weight::from_parts(12_508_000, 3605) + // Minimum execution time: 7_514_000 picoseconds. + Weight::from_parts(7_644_000, 3605) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:1) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:0 w:1) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:1) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:0 w:1) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delete_node_farm() -> Weight { // Proof Size summary in bytes: - // Measured: `985` - // Estimated: `4450` - // Minimum execution time: 55_311_000 picoseconds. - Weight::from_parts(56_386_000, 4450) - .saturating_add(T::DbWeight::get().reads(8_u64)) + // Measured: `828` + // Estimated: `4293` + // Minimum execution time: 32_582_000 picoseconds. + Weight::from_parts(33_443_000, 4293) + .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_farm_dedicated() -> Weight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 21_411_000 picoseconds. - Weight::from_parts(21_921_000, 3877) + // Minimum execution time: 13_716_000 picoseconds. + Weight::from_parts(14_277_000, 3877) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_reset_farm_ip() -> Weight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 23_493_000 picoseconds. - Weight::from_parts(24_448_000, 3877) + // Minimum execution time: 13_846_000 picoseconds. + Weight::from_parts(14_117_000, 3877) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule ConnectionPrice (r:0 w:1) - /// Proof Skipped: TfgridModule ConnectionPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::ConnectionPrice` (r:0 w:1) + /// Proof: `TfgridModule::ConnectionPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_connection_price() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_801_000 picoseconds. - Weight::from_parts(10_091_000, 0) + // Minimum execution time: 5_721_000 picoseconds. + Weight::from_parts(5_861_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule AllowedNodeCertifiers (r:1 w:1) - /// Proof Skipped: TfgridModule AllowedNodeCertifiers (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::AllowedNodeCertifiers` (r:1 w:1) + /// Proof: `TfgridModule::AllowedNodeCertifiers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_node_certifier() -> Weight { // Proof Size summary in bytes: // Measured: `355` // Estimated: `1840` - // Minimum execution time: 15_518_000 picoseconds. - Weight::from_parts(16_227_000, 1840) + // Minimum execution time: 9_819_000 picoseconds. + Weight::from_parts(10_039_000, 1840) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule AllowedNodeCertifiers (r:1 w:1) - /// Proof Skipped: TfgridModule AllowedNodeCertifiers (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::AllowedNodeCertifiers` (r:1 w:1) + /// Proof: `TfgridModule::AllowedNodeCertifiers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_node_certifier() -> Weight { // Proof Size summary in bytes: // Measured: `413` // Estimated: `1898` - // Minimum execution time: 18_573_000 picoseconds. - Weight::from_parts(19_049_000, 1898) + // Minimum execution time: 11_982_000 picoseconds. + Weight::from_parts(12_323_000, 1898) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule FarmingPoliciesMap (r:1 w:1) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:1 w:1) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_farming_policy() -> Weight { // Proof Size summary in bytes: // Measured: `294` // Estimated: `3759` - // Minimum execution time: 21_450_000 picoseconds. - Weight::from_parts(22_654_000, 3759) + // Minimum execution time: 13_335_000 picoseconds. + Weight::from_parts(13_675_000, 3759) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule FarmingPoliciesMap (r:1 w:0) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:0) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:1 w:0) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:0) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn attach_policy_to_farm() -> Weight { // Proof Size summary in bytes: // Measured: `572` // Estimated: `4037` - // Minimum execution time: 35_866_000 picoseconds. - Weight::from_parts(36_635_000, 4037) + // Minimum execution time: 22_172_000 picoseconds. + Weight::from_parts(22_693_000, 4037) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule ZosVersion (r:1 w:1) - /// Proof Skipped: TfgridModule ZosVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::ZosVersion` (r:1 w:1) + /// Proof: `TfgridModule::ZosVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_zos_version() -> Weight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 13_431_000 picoseconds. - Weight::from_parts(14_115_000, 1619) + // Minimum execution time: 8_055_000 picoseconds. + Weight::from_parts(8_216_000, 1619) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:1) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:1) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) fn change_power_state() -> Weight { // Proof Size summary in bytes: // Measured: `621` // Estimated: `4086` - // Minimum execution time: 33_189_000 picoseconds. - Weight::from_parts(34_120_000, 4086) + // Minimum execution time: 22_723_000 picoseconds. + Weight::from_parts(23_154_000, 4086) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:1) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:1) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) fn change_power_target() -> Weight { // Proof Size summary in bytes: - // Measured: `755` - // Estimated: `4220` - // Minimum execution time: 32_593_000 picoseconds. - Weight::from_parts(33_063_000, 4220) - .saturating_add(T::DbWeight::get().reads(4_u64)) + // Measured: `792` + // Estimated: `4257` + // Minimum execution time: 26_440_000 picoseconds. + Weight::from_parts(27_042_000, 4257) + .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:0 w:1) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:0 w:1) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn bond_twin_account() -> Weight { // Proof Size summary in bytes: // Measured: `387` // Estimated: `3852` - // Minimum execution time: 19_181_000 picoseconds. - Weight::from_parts(19_630_000, 3852) + // Minimum execution time: 11_832_000 picoseconds. + Weight::from_parts(12_083_000, 3852) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (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: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`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`) fn report_uptime_v2() -> Weight { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 26_974_000 picoseconds. - Weight::from_parts(28_212_000, 3919) + // Minimum execution time: 18_144_000 picoseconds. + Weight::from_parts(18_385_000, 3919) .saturating_add(T::DbWeight::get().reads(4_u64)) } } // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: TfgridModule PalletVersion (r:0 w:1) - /// Proof Skipped: TfgridModule PalletVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::PalletVersion` (r:0 w:1) + /// Proof: `TfgridModule::PalletVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_storage_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_385_000 picoseconds. - Weight::from_parts(5_643_000, 0) + // Minimum execution time: 3_857_000 picoseconds. + Weight::from_parts(4_047_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule FarmID (r:1 w:1) - /// Proof Skipped: TfgridModule FarmID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule FarmIdByName (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:0 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmIdByName` (r:1 w:1) + /// Proof: `TfgridModule::FarmIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmID` (r:1 w:1) + /// Proof: `TfgridModule::FarmID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:0 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_farm() -> Weight { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3961` - // Minimum execution time: 31_394_000 picoseconds. - Weight::from_parts(32_172_000, 3961) + // Minimum execution time: 32_251_000 picoseconds. + Weight::from_parts(32_712_000, 3961) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule FarmIdByName (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmIdByName` (r:1 w:2) + /// Proof: `TfgridModule::FarmIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_farm() -> Weight { // Proof Size summary in bytes: // Measured: `507` // Estimated: `3972` - // Minimum execution time: 33_504_000 picoseconds. - Weight::from_parts(34_515_000, 3972) + // Minimum execution time: 34_135_000 picoseconds. + Weight::from_parts(35_327_000, 3972) .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmPayoutV2AddressByFarmID (r:0 w:1) - /// Proof Skipped: TfgridModule FarmPayoutV2AddressByFarmID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmPayoutV2AddressByFarmID` (r:0 w:1) + /// Proof: `TfgridModule::FarmPayoutV2AddressByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stellar_payout_v2address() -> Weight { // Proof Size summary in bytes: // Measured: `453` // Estimated: `3918` - // Minimum execution time: 24_636_000 picoseconds. - Weight::from_parts(25_319_000, 3918) + // Minimum execution time: 18_865_000 picoseconds. + Weight::from_parts(25_378_000, 3918) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_farm_certification() -> Weight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 20_870_000 picoseconds. - Weight::from_parts(21_177_000, 3877) + // Minimum execution time: 13_105_000 picoseconds. + Weight::from_parts(13_406_000, 3877) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_farm_ip() -> Weight { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 27_994_000 picoseconds. - Weight::from_parts(31_496_000, 4034) + // Minimum execution time: 17_734_000 picoseconds. + Weight::from_parts(18_165_000, 4034) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_farm_ip() -> Weight { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 26_365_000 picoseconds. - Weight::from_parts(27_079_000, 4034) + // Minimum execution time: 16_922_000 picoseconds. + Weight::from_parts(17_473_000, 4034) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:1) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeID (r:1 w:1) - /// Proof Skipped: TfgridModule NodeID (max_values: Some(1), 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: TfgridModule ConnectionPrice (r:1 w:0) - /// Proof Skipped: TfgridModule ConnectionPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule FarmingPoliciesMap (r:4 w:0) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:1) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:0 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:1) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeID` (r:1 w:1) + /// Proof: `TfgridModule::NodeID` (`max_values`: Some(1), `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: `TfgridModule::ConnectionPrice` (r:1 w:0) + /// Proof: `TfgridModule::ConnectionPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:4 w:0) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:1) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:0 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_node() -> Weight { // Proof Size summary in bytes: // Measured: `905` // Estimated: `11795` - // Minimum execution time: 71_884_000 picoseconds. - Weight::from_parts(74_159_000, 11795) + // Minimum execution time: 47_360_000 picoseconds. + Weight::from_parts(48_562_000, 11795) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_node() -> Weight { // Proof Size summary in bytes: // Measured: `661` // Estimated: `4126` - // Minimum execution time: 41_641_000 picoseconds. - Weight::from_parts(42_797_000, 4126) + // Minimum execution time: 27_062_000 picoseconds. + Weight::from_parts(27_723_000, 4126) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule FarmingPoliciesMap (r:4 w:0) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:4 w:0) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_node_certification() -> Weight { // Proof Size summary in bytes: // Measured: `956` // Estimated: `11846` - // Minimum execution time: 53_080_000 picoseconds. - Weight::from_parts(54_350_000, 11846) + // Minimum execution time: 34_295_000 picoseconds. + Weight::from_parts(35_096_000, 11846) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (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: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn report_uptime() -> Weight { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 28_159_000 picoseconds. - Weight::from_parts(28_543_000, 3919) + // Minimum execution time: 18_635_000 picoseconds. + Weight::from_parts(19_006_000, 3919) .saturating_add(RocksDbWeight::get().reads(4_u64)) } - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_node_public_config() -> Weight { // Proof Size summary in bytes: // Measured: `779` // Estimated: `4244` - // Minimum execution time: 37_090_000 picoseconds. - Weight::from_parts(38_269_000, 4244) + // Minimum execution time: 24_637_000 picoseconds. + Weight::from_parts(25_277_000, 4244) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:1) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:1) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delete_node() -> Weight { // Proof Size summary in bytes: // Measured: `682` // Estimated: `4147` - // Minimum execution time: 40_802_000 picoseconds. - Weight::from_parts(41_890_000, 4147) + // Minimum execution time: 27_362_000 picoseconds. + Weight::from_parts(27_943_000, 4147) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule UsersTermsAndConditions (r:1 w:0) - /// Proof Skipped: TfgridModule UsersTermsAndConditions (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:1) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinID (r:1 w:1) - /// Proof Skipped: TfgridModule TwinID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:0 w:1) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::UsersTermsAndConditions` (r:1 w:0) + /// Proof: `TfgridModule::UsersTermsAndConditions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:1) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinID` (r:1 w:1) + /// Proof: `TfgridModule::TwinID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:0 w:1) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_twin() -> Weight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3700` - // Minimum execution time: 23_943_000 picoseconds. - Weight::from_parts(24_477_000, 3700) + // Minimum execution time: 14_568_000 picoseconds. + Weight::from_parts(14_808_000, 3700) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:1) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Twins` (r:1 w:1) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_twin() -> Weight { // Proof Size summary in bytes: // Measured: `428` // Estimated: `3893` - // Minimum execution time: 23_757_000 picoseconds. - Weight::from_parts(24_337_000, 3893) + // Minimum execution time: 15_088_000 picoseconds. + Weight::from_parts(15_479_000, 3893) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule PricingPolicyIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicyIdByName (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicyID (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicyID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicies (r:0 w:1) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::PricingPolicyIdByName` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicyIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicyID` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicyID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicies` (r:0 w:1) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_pricing_policy() -> Weight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `3599` - // Minimum execution time: 20_931_000 picoseconds. - Weight::from_parts(21_633_000, 3599) + // Minimum execution time: 12_373_000 picoseconds. + Weight::from_parts(12_624_000, 3599) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule PricingPolicies (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicies (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicyIdByName (r:1 w:1) - /// Proof Skipped: TfgridModule PricingPolicyIdByName (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule PricingPolicyID (r:0 w:1) - /// Proof Skipped: TfgridModule PricingPolicyID (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::PricingPolicies` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicies` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicyIdByName` (r:1 w:1) + /// Proof: `TfgridModule::PricingPolicyIdByName` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::PricingPolicyID` (r:0 w:1) + /// Proof: `TfgridModule::PricingPolicyID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_pricing_policy() -> Weight { // Proof Size summary in bytes: // Measured: `382` // Estimated: `3847` - // Minimum execution time: 26_466_000 picoseconds. - Weight::from_parts(27_478_000, 3847) + // Minimum execution time: 16_632_000 picoseconds. + Weight::from_parts(17_143_000, 3847) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TfgridModule FarmingPolicyID (r:1 w:1) - /// Proof Skipped: TfgridModule FarmingPolicyID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TfgridModule FarmingPoliciesMap (r:0 w:1) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::FarmingPolicyID` (r:1 w:1) + /// Proof: `TfgridModule::FarmingPolicyID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:0 w:1) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_farming_policy() -> Weight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 17_653_000 picoseconds. - Weight::from_parts(18_085_000, 1619) + // Minimum execution time: 10_439_000 picoseconds. + Weight::from_parts(10_610_000, 1619) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: Timestamp Now (r:1 w:0) - /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: TfgridModule UsersTermsAndConditions (r:1 w:1) - /// Proof Skipped: TfgridModule UsersTermsAndConditions (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: `TfgridModule::UsersTermsAndConditions` (r:1 w:1) + /// Proof: `TfgridModule::UsersTermsAndConditions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn user_accept_tc() -> Weight { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3605` - // Minimum execution time: 12_183_000 picoseconds. - Weight::from_parts(12_508_000, 3605) + // Minimum execution time: 7_514_000 picoseconds. + Weight::from_parts(7_644_000, 3605) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:1) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:1) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveNodeContracts (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveNodeContracts (max_values: None, max_size: None, mode: Measured) - /// Storage: SmartContractModule ActiveRentContractForNode (r:1 w:0) - /// Proof Skipped: SmartContractModule ActiveRentContractForNode (max_values: None, max_size: None, mode: Measured) - /// Storage: Dao FarmWeight (r:1 w:1) - /// Proof Skipped: Dao FarmWeight (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:0 w:1) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:1) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:1) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dao::FarmWeight` (r:1 w:1) + /// Proof: `Dao::FarmWeight` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:0 w:1) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delete_node_farm() -> Weight { // Proof Size summary in bytes: - // Measured: `985` - // Estimated: `4450` - // Minimum execution time: 55_311_000 picoseconds. - Weight::from_parts(56_386_000, 4450) - .saturating_add(RocksDbWeight::get().reads(8_u64)) + // Measured: `828` + // Estimated: `4293` + // Minimum execution time: 32_582_000 picoseconds. + Weight::from_parts(33_443_000, 4293) + .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_farm_dedicated() -> Weight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 21_411_000 picoseconds. - Weight::from_parts(21_921_000, 3877) + // Minimum execution time: 13_716_000 picoseconds. + Weight::from_parts(14_277_000, 3877) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_reset_farm_ip() -> Weight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 23_493_000 picoseconds. - Weight::from_parts(24_448_000, 3877) + // Minimum execution time: 13_846_000 picoseconds. + Weight::from_parts(14_117_000, 3877) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule ConnectionPrice (r:0 w:1) - /// Proof Skipped: TfgridModule ConnectionPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::ConnectionPrice` (r:0 w:1) + /// Proof: `TfgridModule::ConnectionPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_connection_price() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_801_000 picoseconds. - Weight::from_parts(10_091_000, 0) + // Minimum execution time: 5_721_000 picoseconds. + Weight::from_parts(5_861_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule AllowedNodeCertifiers (r:1 w:1) - /// Proof Skipped: TfgridModule AllowedNodeCertifiers (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::AllowedNodeCertifiers` (r:1 w:1) + /// Proof: `TfgridModule::AllowedNodeCertifiers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_node_certifier() -> Weight { // Proof Size summary in bytes: // Measured: `355` // Estimated: `1840` - // Minimum execution time: 15_518_000 picoseconds. - Weight::from_parts(16_227_000, 1840) + // Minimum execution time: 9_819_000 picoseconds. + Weight::from_parts(10_039_000, 1840) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule AllowedNodeCertifiers (r:1 w:1) - /// Proof Skipped: TfgridModule AllowedNodeCertifiers (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::AllowedNodeCertifiers` (r:1 w:1) + /// Proof: `TfgridModule::AllowedNodeCertifiers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_node_certifier() -> Weight { // Proof Size summary in bytes: // Measured: `413` // Estimated: `1898` - // Minimum execution time: 18_573_000 picoseconds. - Weight::from_parts(19_049_000, 1898) + // Minimum execution time: 11_982_000 picoseconds. + Weight::from_parts(12_323_000, 1898) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule FarmingPoliciesMap (r:1 w:1) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:1 w:1) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_farming_policy() -> Weight { // Proof Size summary in bytes: // Measured: `294` // Estimated: `3759` - // Minimum execution time: 21_450_000 picoseconds. - Weight::from_parts(22_654_000, 3759) + // Minimum execution time: 13_335_000 picoseconds. + Weight::from_parts(13_675_000, 3759) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule FarmingPoliciesMap (r:1 w:0) - /// Proof Skipped: TfgridModule FarmingPoliciesMap (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:1) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodesByFarmID (r:1 w:0) - /// Proof Skipped: TfgridModule NodesByFarmID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::FarmingPoliciesMap` (r:1 w:0) + /// Proof: `TfgridModule::FarmingPoliciesMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:1) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodesByFarmID` (r:1 w:0) + /// Proof: `TfgridModule::NodesByFarmID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn attach_policy_to_farm() -> Weight { // Proof Size summary in bytes: // Measured: `572` // Estimated: `4037` - // Minimum execution time: 35_866_000 picoseconds. - Weight::from_parts(36_635_000, 4037) + // Minimum execution time: 22_172_000 picoseconds. + Weight::from_parts(22_693_000, 4037) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule ZosVersion (r:1 w:1) - /// Proof Skipped: TfgridModule ZosVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TfgridModule::ZosVersion` (r:1 w:1) + /// Proof: `TfgridModule::ZosVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_zos_version() -> Weight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 13_431_000 picoseconds. - Weight::from_parts(14_115_000, 1619) + // Minimum execution time: 8_055_000 picoseconds. + Weight::from_parts(8_216_000, 1619) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:1) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:1) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) fn change_power_state() -> Weight { // Proof Size summary in bytes: // Measured: `621` // Estimated: `4086` - // Minimum execution time: 33_189_000 picoseconds. - Weight::from_parts(34_120_000, 4086) + // Minimum execution time: 22_723_000 picoseconds. + Weight::from_parts(23_154_000, 4086) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Farms (r:1 w:0) - /// Proof Skipped: TfgridModule Farms (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodePower (r:1 w:1) - /// Proof Skipped: TfgridModule NodePower (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Farms` (r:1 w:0) + /// Proof: `TfgridModule::Farms` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveNodeContracts` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveNodeContracts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SmartContractModule::ActiveRentContractForNode` (r:1 w:0) + /// Proof: `SmartContractModule::ActiveRentContractForNode` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodePower` (r:1 w:1) + /// Proof: `TfgridModule::NodePower` (`max_values`: None, `max_size`: None, mode: `Measured`) fn change_power_target() -> Weight { // Proof Size summary in bytes: - // Measured: `755` - // Estimated: `4220` - // Minimum execution time: 32_593_000 picoseconds. - Weight::from_parts(33_063_000, 4220) - .saturating_add(RocksDbWeight::get().reads(4_u64)) + // Measured: `792` + // Estimated: `4257` + // Minimum execution time: 26_440_000 picoseconds. + Weight::from_parts(27_042_000, 4257) + .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule Twins (r:1 w:0) - /// Proof Skipped: TfgridModule Twins (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule TwinBoundedAccountID (r:0 w:1) - /// Proof Skipped: TfgridModule TwinBoundedAccountID (max_values: None, max_size: None, mode: Measured) + /// Storage: `TfgridModule::Twins` (r:1 w:0) + /// Proof: `TfgridModule::Twins` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::TwinBoundedAccountID` (r:0 w:1) + /// Proof: `TfgridModule::TwinBoundedAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) fn bond_twin_account() -> Weight { // Proof Size summary in bytes: // Measured: `387` // Estimated: `3852` - // Minimum execution time: 19_181_000 picoseconds. - Weight::from_parts(19_630_000, 3852) + // Minimum execution time: 11_832_000 picoseconds. + Weight::from_parts(12_083_000, 3852) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TfgridModule TwinIdByAccountID (r:1 w:0) - /// Proof Skipped: TfgridModule TwinIdByAccountID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule NodeIdByTwinID (r:1 w:0) - /// Proof Skipped: TfgridModule NodeIdByTwinID (max_values: None, max_size: None, mode: Measured) - /// Storage: TfgridModule Nodes (r:1 w:0) - /// Proof Skipped: TfgridModule Nodes (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: `TfgridModule::TwinIdByAccountID` (r:1 w:0) + /// Proof: `TfgridModule::TwinIdByAccountID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::NodeIdByTwinID` (r:1 w:0) + /// Proof: `TfgridModule::NodeIdByTwinID` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TfgridModule::Nodes` (r:1 w:0) + /// Proof: `TfgridModule::Nodes` (`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`) fn report_uptime_v2() -> Weight { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 26_974_000 picoseconds. - Weight::from_parts(28_212_000, 3919) + // Minimum execution time: 18_144_000 picoseconds. + Weight::from_parts(18_385_000, 3919) .saturating_add(RocksDbWeight::get().reads(4_u64)) } } diff --git a/substrate-node/pallets/pallet-tft-bridge/src/weights.rs b/substrate-node/pallets/pallet-tft-bridge/src/weights.rs index a0e511b88..a1284a98e 100644 --- a/substrate-node/pallets/pallet-tft-bridge/src/weights.rs +++ b/substrate-node/pallets/pallet-tft-bridge/src/weights.rs @@ -2,21 +2,21 @@ //! Autogenerated weights for pallet_tft_bridge //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `R1-HP-ProBook-630-G8`, CPU: `11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_tft_bridge +// --wasm-execution=compiled +// --pallet=pallet-tft-bridge // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output // ./pallets/pallet-tft-bridge/src/weights.rs @@ -49,153 +49,153 @@ pub trait WeightInfo { /// Weights for pallet_tft_bridge using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: TFTBridgeModule Validators (r:1 w:1) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:1) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_bridge_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `289` - // Estimated: `1774` - // Minimum execution time: 18_778_000 picoseconds. - Weight::from_parts(20_233_000, 1774) + // Measured: `256` + // Estimated: `1741` + // Minimum execution time: 15_099_000 picoseconds. + Weight::from_parts(16_281_000, 1741) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:1) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:1) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_bridge_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `322` - // Estimated: `1807` - // Minimum execution time: 12_346_000 picoseconds. - Weight::from_parts(17_998_000, 1807) + // Measured: `289` + // Estimated: `1774` + // Minimum execution time: 15_049_000 picoseconds. + Weight::from_parts(15_810_000, 1774) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule FeeAccount (r:0 w:1) - /// Proof Skipped: TFTBridgeModule FeeAccount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::FeeAccount` (r:0 w:1) + /// Proof: `TFTBridgeModule::FeeAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_fee_account() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_548_000 picoseconds. - Weight::from_parts(5_051_000, 0) + // Minimum execution time: 4_939_000 picoseconds. + Weight::from_parts(5_350_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule WithdrawFee (r:0 w:1) - /// Proof Skipped: TFTBridgeModule WithdrawFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::WithdrawFee` (r:0 w:1) + /// Proof: `TFTBridgeModule::WithdrawFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_withdraw_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_279_000 picoseconds. - Weight::from_parts(4_493_000, 0) + // Minimum execution time: 4_729_000 picoseconds. + Weight::from_parts(4_939_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule DepositFee (r:0 w:1) - /// Proof Skipped: TFTBridgeModule DepositFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::DepositFee` (r:0 w:1) + /// Proof: `TFTBridgeModule::DepositFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_deposit_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_584_000 picoseconds. - Weight::from_parts(4_876_000, 0) + // Minimum execution time: 4_739_000 picoseconds. + Weight::from_parts(4_980_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule WithdrawFee (r:1 w:0) - /// Proof Skipped: TFTBridgeModule WithdrawFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule FeeAccount (r:1 w:0) - /// Proof Skipped: TFTBridgeModule FeeAccount (max_values: Some(1), 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: TFTBridgeModule BurnTransactionID (r:1 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactionID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule BurnTransactions (r:0 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::WithdrawFee` (r:1 w:0) + /// Proof: `TFTBridgeModule::WithdrawFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::FeeAccount` (r:1 w:0) + /// Proof: `TFTBridgeModule::FeeAccount` (`max_values`: Some(1), `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: `TFTBridgeModule::BurnTransactionID` (r:1 w:1) + /// Proof: `TFTBridgeModule::BurnTransactionID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::BurnTransactions` (r:0 w:1) + /// Proof: `TFTBridgeModule::BurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn swap_to_stellar() -> Weight { // Proof Size summary in bytes: - // Measured: `286` + // Measured: `253` // Estimated: `3593` - // Minimum execution time: 74_554_000 picoseconds. - Weight::from_parts(76_009_000, 3593) + // Minimum execution time: 43_242_000 picoseconds. + Weight::from_parts(43_893_000, 3593) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedMintTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule ExecutedMintTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule MintTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule MintTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule DepositFee (r:1 w:0) - /// Proof Skipped: TFTBridgeModule DepositFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule FeeAccount (r:1 w:0) - /// Proof Skipped: TFTBridgeModule FeeAccount (max_values: Some(1), 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: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedMintTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::ExecutedMintTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::MintTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::MintTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::DepositFee` (r:1 w:0) + /// Proof: `TFTBridgeModule::DepositFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::FeeAccount` (r:1 w:0) + /// Proof: `TFTBridgeModule::FeeAccount` (`max_values`: Some(1), `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`) fn propose_or_vote_mint_transaction() -> Weight { // Proof Size summary in bytes: - // Measured: `532` - // Estimated: `3997` - // Minimum execution time: 102_293_000 picoseconds. - Weight::from_parts(113_671_000, 3997) + // Measured: `499` + // Estimated: `3964` + // Minimum execution time: 60_305_000 picoseconds. + Weight::from_parts(61_196_000, 3964) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedBurnTransactions (r:1 w:0) - /// Proof Skipped: TFTBridgeModule ExecutedBurnTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule BurnTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedBurnTransactions` (r:1 w:0) + /// Proof: `TFTBridgeModule::ExecutedBurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::BurnTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::BurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose_burn_transaction_or_add_sig() -> Weight { // Proof Size summary in bytes: // Measured: `631` // Estimated: `4096` - // Minimum execution time: 41_613_000 picoseconds. - Weight::from_parts(42_948_000, 4096) + // Minimum execution time: 25_719_000 picoseconds. + Weight::from_parts(26_300_000, 4096) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedBurnTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule ExecutedBurnTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule BurnTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedBurnTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::ExecutedBurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::BurnTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::BurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_burn_transaction_executed() -> Weight { // Proof Size summary in bytes: // Measured: `571` // Estimated: `4036` - // Minimum execution time: 28_712_000 picoseconds. - Weight::from_parts(29_777_000, 4036) + // Minimum execution time: 18_425_000 picoseconds. + Weight::from_parts(18_805_000, 4036) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule RefundTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule RefundTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::RefundTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::RefundTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_refund_transaction_or_add_sig() -> Weight { // Proof Size summary in bytes: - // Measured: `418` - // Estimated: `3883` - // Minimum execution time: 36_551_000 picoseconds. - Weight::from_parts(37_525_000, 3883) + // Measured: `385` + // Estimated: `3850` + // Minimum execution time: 21_671_000 picoseconds. + Weight::from_parts(22_232_000, 3850) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedRefundTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule ExecutedRefundTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule RefundTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule RefundTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedRefundTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::ExecutedRefundTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::RefundTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::RefundTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_refund_transaction_executed() -> Weight { // Proof Size summary in bytes: - // Measured: `593` - // Estimated: `4058` - // Minimum execution time: 34_047_000 picoseconds. - Weight::from_parts(35_316_000, 4058) + // Measured: `560` + // Estimated: `4025` + // Minimum execution time: 18_926_000 picoseconds. + Weight::from_parts(19_217_000, 4025) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -203,153 +203,153 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: TFTBridgeModule Validators (r:1 w:1) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:1) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_bridge_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `289` - // Estimated: `1774` - // Minimum execution time: 18_778_000 picoseconds. - Weight::from_parts(20_233_000, 1774) + // Measured: `256` + // Estimated: `1741` + // Minimum execution time: 15_099_000 picoseconds. + Weight::from_parts(16_281_000, 1741) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:1) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:1) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_bridge_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `322` - // Estimated: `1807` - // Minimum execution time: 12_346_000 picoseconds. - Weight::from_parts(17_998_000, 1807) + // Measured: `289` + // Estimated: `1774` + // Minimum execution time: 15_049_000 picoseconds. + Weight::from_parts(15_810_000, 1774) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule FeeAccount (r:0 w:1) - /// Proof Skipped: TFTBridgeModule FeeAccount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::FeeAccount` (r:0 w:1) + /// Proof: `TFTBridgeModule::FeeAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_fee_account() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_548_000 picoseconds. - Weight::from_parts(5_051_000, 0) + // Minimum execution time: 4_939_000 picoseconds. + Weight::from_parts(5_350_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule WithdrawFee (r:0 w:1) - /// Proof Skipped: TFTBridgeModule WithdrawFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::WithdrawFee` (r:0 w:1) + /// Proof: `TFTBridgeModule::WithdrawFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_withdraw_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_279_000 picoseconds. - Weight::from_parts(4_493_000, 0) + // Minimum execution time: 4_729_000 picoseconds. + Weight::from_parts(4_939_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule DepositFee (r:0 w:1) - /// Proof Skipped: TFTBridgeModule DepositFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::DepositFee` (r:0 w:1) + /// Proof: `TFTBridgeModule::DepositFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_deposit_fee() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_584_000 picoseconds. - Weight::from_parts(4_876_000, 0) + // Minimum execution time: 4_739_000 picoseconds. + Weight::from_parts(4_980_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule WithdrawFee (r:1 w:0) - /// Proof Skipped: TFTBridgeModule WithdrawFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule FeeAccount (r:1 w:0) - /// Proof Skipped: TFTBridgeModule FeeAccount (max_values: Some(1), 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: TFTBridgeModule BurnTransactionID (r:1 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactionID (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule BurnTransactions (r:0 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::WithdrawFee` (r:1 w:0) + /// Proof: `TFTBridgeModule::WithdrawFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::FeeAccount` (r:1 w:0) + /// Proof: `TFTBridgeModule::FeeAccount` (`max_values`: Some(1), `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: `TFTBridgeModule::BurnTransactionID` (r:1 w:1) + /// Proof: `TFTBridgeModule::BurnTransactionID` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::BurnTransactions` (r:0 w:1) + /// Proof: `TFTBridgeModule::BurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn swap_to_stellar() -> Weight { // Proof Size summary in bytes: - // Measured: `286` + // Measured: `253` // Estimated: `3593` - // Minimum execution time: 74_554_000 picoseconds. - Weight::from_parts(76_009_000, 3593) + // Minimum execution time: 43_242_000 picoseconds. + Weight::from_parts(43_893_000, 3593) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedMintTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule ExecutedMintTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule MintTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule MintTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule DepositFee (r:1 w:0) - /// Proof Skipped: TFTBridgeModule DepositFee (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule FeeAccount (r:1 w:0) - /// Proof Skipped: TFTBridgeModule FeeAccount (max_values: Some(1), 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: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedMintTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::ExecutedMintTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::MintTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::MintTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::DepositFee` (r:1 w:0) + /// Proof: `TFTBridgeModule::DepositFee` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::FeeAccount` (r:1 w:0) + /// Proof: `TFTBridgeModule::FeeAccount` (`max_values`: Some(1), `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`) fn propose_or_vote_mint_transaction() -> Weight { // Proof Size summary in bytes: - // Measured: `532` - // Estimated: `3997` - // Minimum execution time: 102_293_000 picoseconds. - Weight::from_parts(113_671_000, 3997) + // Measured: `499` + // Estimated: `3964` + // Minimum execution time: 60_305_000 picoseconds. + Weight::from_parts(61_196_000, 3964) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedBurnTransactions (r:1 w:0) - /// Proof Skipped: TFTBridgeModule ExecutedBurnTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule BurnTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedBurnTransactions` (r:1 w:0) + /// Proof: `TFTBridgeModule::ExecutedBurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::BurnTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::BurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose_burn_transaction_or_add_sig() -> Weight { // Proof Size summary in bytes: // Measured: `631` // Estimated: `4096` - // Minimum execution time: 41_613_000 picoseconds. - Weight::from_parts(42_948_000, 4096) + // Minimum execution time: 25_719_000 picoseconds. + Weight::from_parts(26_300_000, 4096) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedBurnTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule ExecutedBurnTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule BurnTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule BurnTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedBurnTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::ExecutedBurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::BurnTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::BurnTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_burn_transaction_executed() -> Weight { // Proof Size summary in bytes: // Measured: `571` // Estimated: `4036` - // Minimum execution time: 28_712_000 picoseconds. - Weight::from_parts(29_777_000, 4036) + // Minimum execution time: 18_425_000 picoseconds. + Weight::from_parts(18_805_000, 4036) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule RefundTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule RefundTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::RefundTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::RefundTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_refund_transaction_or_add_sig() -> Weight { // Proof Size summary in bytes: - // Measured: `418` - // Estimated: `3883` - // Minimum execution time: 36_551_000 picoseconds. - Weight::from_parts(37_525_000, 3883) + // Measured: `385` + // Estimated: `3850` + // Minimum execution time: 21_671_000 picoseconds. + Weight::from_parts(22_232_000, 3850) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTBridgeModule Validators (r:1 w:0) - /// Proof Skipped: TFTBridgeModule Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTBridgeModule ExecutedRefundTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule ExecutedRefundTransactions (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTBridgeModule RefundTransactions (r:1 w:1) - /// Proof Skipped: TFTBridgeModule RefundTransactions (max_values: None, max_size: None, mode: Measured) + /// Storage: `TFTBridgeModule::Validators` (r:1 w:0) + /// Proof: `TFTBridgeModule::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::ExecutedRefundTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::ExecutedRefundTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTBridgeModule::RefundTransactions` (r:1 w:1) + /// Proof: `TFTBridgeModule::RefundTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_refund_transaction_executed() -> Weight { // Proof Size summary in bytes: - // Measured: `593` - // Estimated: `4058` - // Minimum execution time: 34_047_000 picoseconds. - Weight::from_parts(35_316_000, 4058) + // Measured: `560` + // Estimated: `4025` + // Minimum execution time: 18_926_000 picoseconds. + Weight::from_parts(19_217_000, 4025) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/substrate-node/pallets/pallet-tft-price/src/weights.rs b/substrate-node/pallets/pallet-tft-price/src/weights.rs index 60d9de22e..ec8658215 100644 --- a/substrate-node/pallets/pallet-tft-price/src/weights.rs +++ b/substrate-node/pallets/pallet-tft-price/src/weights.rs @@ -2,26 +2,26 @@ //! Autogenerated weights for pallet_tft_price //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ragnar`, CPU: `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ../target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_tft_price +// --wasm-execution=compiled +// --pallet=pallet-tft-price // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output -// ../pallets/pallet-tft-price/src/weights.rs +// ./pallets/pallet-tft-price/src/weights.rs // --template -// ./frame-weight-template.hbs +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -41,54 +41,54 @@ pub trait WeightInfo { /// Weights for pallet_tft_price using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: Session Validators (r:1 w:0) - /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule BufferRange (r:1 w:1) - /// Proof Skipped: TFTPriceModule BufferRange (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule TftPriceHistory (r:2 w:1) - /// Proof Skipped: TFTPriceModule TftPriceHistory (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTPriceModule MinTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MinTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule MaxTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MaxTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule TftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule TftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule LastBlockSet (r:0 w:1) - /// Proof Skipped: TFTPriceModule LastBlockSet (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule AverageTftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule AverageTftPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Session::Validators` (r:1 w:0) + /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::BufferRange` (r:1 w:1) + /// Proof: `TFTPriceModule::BufferRange` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::TftPriceHistory` (r:2 w:1) + /// Proof: `TFTPriceModule::TftPriceHistory` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MinTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::TftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::TftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::LastBlockSet` (r:0 w:1) + /// Proof: `TFTPriceModule::LastBlockSet` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::AverageTftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::AverageTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_prices() -> Weight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `6175` - // Minimum execution time: 56_848_000 picoseconds. - Weight::from_parts(57_630_000, 6175) + // Minimum execution time: 47_901_000 picoseconds. + Weight::from_parts(48_943_000, 6175) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } - /// Storage: TFTPriceModule MaxTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MaxTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule MinTftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule MinTftPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MinTftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_min_tft_price() -> Weight { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 8_993_000 picoseconds. - Weight::from_parts(9_197_000, 1578) + // Minimum execution time: 8_166_000 picoseconds. + Weight::from_parts(8_315_000, 1578) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: TFTPriceModule MinTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MinTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule MaxTftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule MaxTftPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTPriceModule::MinTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_max_tft_price() -> Weight { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 8_902_000 picoseconds. - Weight::from_parts(9_147_000, 1578) + // Minimum execution time: 7_975_000 picoseconds. + Weight::from_parts(8_235_000, 1578) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -96,55 +96,55 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: Session Validators (r:1 w:0) - /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule BufferRange (r:1 w:1) - /// Proof Skipped: TFTPriceModule BufferRange (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule TftPriceHistory (r:2 w:1) - /// Proof Skipped: TFTPriceModule TftPriceHistory (max_values: None, max_size: None, mode: Measured) - /// Storage: TFTPriceModule MinTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MinTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule MaxTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MaxTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule TftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule TftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule LastBlockSet (r:0 w:1) - /// Proof Skipped: TFTPriceModule LastBlockSet (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule AverageTftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule AverageTftPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Session::Validators` (r:1 w:0) + /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::BufferRange` (r:1 w:1) + /// Proof: `TFTPriceModule::BufferRange` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::TftPriceHistory` (r:2 w:1) + /// Proof: `TFTPriceModule::TftPriceHistory` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MinTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::TftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::TftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::LastBlockSet` (r:0 w:1) + /// Proof: `TFTPriceModule::LastBlockSet` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::AverageTftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::AverageTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_prices() -> Weight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `6175` - // Minimum execution time: 56_848_000 picoseconds. - Weight::from_parts(57_630_000, 6175) + // Minimum execution time: 47_901_000 picoseconds. + Weight::from_parts(48_943_000, 6175) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } - /// Storage: TFTPriceModule MaxTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MaxTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule MinTftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule MinTftPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MinTftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_min_tft_price() -> Weight { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 8_993_000 picoseconds. - Weight::from_parts(9_197_000, 1578) + // Minimum execution time: 8_166_000 picoseconds. + Weight::from_parts(8_315_000, 1578) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: TFTPriceModule MinTftPrice (r:1 w:0) - /// Proof Skipped: TFTPriceModule MinTftPrice (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TFTPriceModule MaxTftPrice (r:0 w:1) - /// Proof Skipped: TFTPriceModule MaxTftPrice (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TFTPriceModule::MinTftPrice` (r:1 w:0) + /// Proof: `TFTPriceModule::MinTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TFTPriceModule::MaxTftPrice` (r:0 w:1) + /// Proof: `TFTPriceModule::MaxTftPrice` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_max_tft_price() -> Weight { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 8_902_000 picoseconds. - Weight::from_parts(9_147_000, 1578) + // Minimum execution time: 7_975_000 picoseconds. + Weight::from_parts(8_235_000, 1578) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } -} \ No newline at end of file +} diff --git a/substrate-node/pallets/pallet-validator/src/weights.rs b/substrate-node/pallets/pallet-validator/src/weights.rs index b38d6fb12..75627294f 100644 --- a/substrate-node/pallets/pallet-validator/src/weights.rs +++ b/substrate-node/pallets/pallet-validator/src/weights.rs @@ -2,26 +2,26 @@ //! Autogenerated weights for pallet_validator //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ragnar`, CPU: `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ../target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=pallet_validator +// --wasm-execution=compiled +// --pallet=pallet-validator // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output -// ../pallets/pallet-validator/src/weights.rs +// ./pallets/pallet-validator/src/weights.rs // --template -// ./frame-weight-template.hbs +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -44,95 +44,95 @@ pub trait WeightInfo { /// Weights for pallet_validator using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_validator_request() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 20_271_000 picoseconds. - Weight::from_parts(20_728_000, 3507) + // Minimum execution time: 19_757_000 picoseconds. + Weight::from_parts(20_619_000, 3507) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:1) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:1) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn activate_validator_node() -> Weight { // Proof Size summary in bytes: // Measured: `365` // Estimated: `3830` - // Minimum execution time: 45_601_000 picoseconds. - Weight::from_parts(46_151_000, 3830) + // Minimum execution time: 51_608_000 picoseconds. + Weight::from_parts(52_960_000, 3830) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:1) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:1) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn change_validator_node_account() -> Weight { // Proof Size summary in bytes: // Measured: `431` // Estimated: `3896` - // Minimum execution time: 61_641_000 picoseconds. - Weight::from_parts(62_171_000, 3896) + // Minimum execution time: 32_050_000 picoseconds. + Weight::from_parts(33_082_000, 3896) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - /// Storage: Validator Bonded (r:1 w:1) - /// Proof Skipped: Validator Bonded (max_values: None, max_size: None, mode: Measured) + /// Storage: `Validator::Bonded` (r:1 w:1) + /// Proof: `Validator::Bonded` (`max_values`: None, `max_size`: None, mode: `Measured`) fn bond() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 17_991_000 picoseconds. - Weight::from_parts(18_269_000, 3507) + // Minimum execution time: 8_316_000 picoseconds. + Weight::from_parts(8_536_000, 3507) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: CouncilMembership Members (r:1 w:1) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: Council Proposals (r:1 w:0) - /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Council Members (r:0 w:1) - /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Council Prime (r:0 w:1) - /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:1) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:0 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn approve_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `558` + // Measured: `494` // Estimated: `4687` - // Minimum execution time: 46_008_000 picoseconds. - Weight::from_parts(46_565_000, 4687) + // Minimum execution time: 24_236_000 picoseconds. + Weight::from_parts(24_727_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: CouncilMembership Members (r:1 w:1) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: Council Proposals (r:1 w:0) - /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: CouncilMembership Prime (r:1 w:0) - /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: Council Members (r:0 w:1) - /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Council Prime (r:0 w:1) - /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:1) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `CouncilMembership::Prime` (r:1 w:0) + /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:0 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `622` + // Measured: `558` // Estimated: `4687` - // Minimum execution time: 39_718_000 picoseconds. - Weight::from_parts(40_453_000, 4687) + // Minimum execution time: 21_611_000 picoseconds. + Weight::from_parts(22_112_000, 4687) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -140,96 +140,96 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_validator_request() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 20_271_000 picoseconds. - Weight::from_parts(20_728_000, 3507) + // Minimum execution time: 19_757_000 picoseconds. + Weight::from_parts(20_619_000, 3507) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:1) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:1) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn activate_validator_node() -> Weight { // Proof Size summary in bytes: // Measured: `365` // Estimated: `3830` - // Minimum execution time: 45_601_000 picoseconds. - Weight::from_parts(46_151_000, 3830) + // Minimum execution time: 51_608_000 picoseconds. + Weight::from_parts(52_960_000, 3830) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:1) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:1) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn change_validator_node_account() -> Weight { // Proof Size summary in bytes: // Measured: `431` // Estimated: `3896` - // Minimum execution time: 61_641_000 picoseconds. - Weight::from_parts(62_171_000, 3896) + // Minimum execution time: 32_050_000 picoseconds. + Weight::from_parts(33_082_000, 3896) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - /// Storage: Validator Bonded (r:1 w:1) - /// Proof Skipped: Validator Bonded (max_values: None, max_size: None, mode: Measured) + /// Storage: `Validator::Bonded` (r:1 w:1) + /// Proof: `Validator::Bonded` (`max_values`: None, `max_size`: None, mode: `Measured`) fn bond() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 17_991_000 picoseconds. - Weight::from_parts(18_269_000, 3507) + // Minimum execution time: 8_316_000 picoseconds. + Weight::from_parts(8_536_000, 3507) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: CouncilMembership Members (r:1 w:1) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: Council Proposals (r:1 w:0) - /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Council Members (r:0 w:1) - /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Council Prime (r:0 w:1) - /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:1) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:0 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn approve_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `558` + // Measured: `494` // Estimated: `4687` - // Minimum execution time: 46_008_000 picoseconds. - Weight::from_parts(46_565_000, 4687) + // Minimum execution time: 24_236_000 picoseconds. + Weight::from_parts(24_727_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: CouncilMembership Members (r:1 w:1) - /// Proof: CouncilMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Validator Validator (r:1 w:1) - /// Proof Skipped: Validator Validator (max_values: None, max_size: None, mode: Measured) - /// Storage: Council Proposals (r:1 w:0) - /// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: CouncilMembership Prime (r:1 w:0) - /// Proof: CouncilMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: Council Members (r:0 w:1) - /// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: Council Prime (r:0 w:1) - /// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `CouncilMembership::Members` (r:1 w:1) + /// Proof: `CouncilMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Validator::Validator` (r:1 w:1) + /// Proof: `Validator::Validator` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Council::Proposals` (r:1 w:0) + /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `CouncilMembership::Prime` (r:1 w:0) + /// Proof: `CouncilMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Council::Members` (r:0 w:1) + /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Council::Prime` (r:0 w:1) + /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_validator() -> Weight { // Proof Size summary in bytes: - // Measured: `622` + // Measured: `558` // Estimated: `4687` - // Minimum execution time: 39_718_000 picoseconds. - Weight::from_parts(40_453_000, 4687) + // Minimum execution time: 21_611_000 picoseconds. + Weight::from_parts(22_112_000, 4687) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } -} \ No newline at end of file +} diff --git a/substrate-node/pallets/substrate-validator-set/src/weights.rs b/substrate-node/pallets/substrate-validator-set/src/weights.rs index 86375fd8a..3c337f315 100644 --- a/substrate-node/pallets/substrate-validator-set/src/weights.rs +++ b/substrate-node/pallets/substrate-validator-set/src/weights.rs @@ -1,27 +1,27 @@ -//! Autogenerated weights for validatorset +//! Autogenerated weights for substrate_validator_set //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `ragnar`, CPU: `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `3144932f6af7`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ../target/release/tfchain +// ./target/production/tfchain // benchmark // pallet // --chain=dev -// --pallet=validatorset +// --wasm-execution=compiled +// --pallet=substrate-validator-set // --extrinsic=* // --steps=50 // --repeat=20 -// --execution=wasm // --heap-pages=409 // --output -// ../pallets/substrate-validator-set/src/weights.rs +// ./pallets/substrate-validator-set/src/weights.rs // --template -// ./frame-weight-template.hbs +// ./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -31,52 +31,52 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; -/// Weight functions needed for validatorset. +/// Weight functions needed for substrate_validator_set. pub trait WeightInfo { fn add_validator() -> Weight; fn remove_validator() -> Weight; fn add_validator_again() -> Weight; } -/// Weights for validatorset using the Substrate node and recommended hardware. +/// Weights for substrate_validator_set using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:1) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:1) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_validator() -> Weight { // Proof Size summary in bytes: // Measured: `139` // Estimated: `1624` - // Minimum execution time: 24_614_000 picoseconds. - Weight::from_parts(25_225_000, 1624) + // Minimum execution time: 29_295_000 picoseconds. + Weight::from_parts(30_498_000, 1624) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:0) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:0) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_validator() -> Weight { // Proof Size summary in bytes: // Measured: `205` // Estimated: `1690` - // Minimum execution time: 20_152_000 picoseconds. - Weight::from_parts(20_484_000, 1690) + // Minimum execution time: 23_144_000 picoseconds. + Weight::from_parts(23_956_000, 1690) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: ValidatorSet ApprovedValidators (r:1 w:0) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:0) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_validator_again() -> Weight { // Proof Size summary in bytes: // Measured: `172` // Estimated: `1657` - // Minimum execution time: 21_948_000 picoseconds. - Weight::from_parts(22_780_000, 1657) + // Minimum execution time: 26_600_000 picoseconds. + Weight::from_parts(27_993_000, 1657) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -84,43 +84,43 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:1) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:1) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_validator() -> Weight { // Proof Size summary in bytes: // Measured: `139` // Estimated: `1624` - // Minimum execution time: 24_614_000 picoseconds. - Weight::from_parts(25_225_000, 1624) + // Minimum execution time: 29_295_000 picoseconds. + Weight::from_parts(30_498_000, 1624) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet ApprovedValidators (r:1 w:0) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:0) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_validator() -> Weight { // Proof Size summary in bytes: // Measured: `205` // Estimated: `1690` - // Minimum execution time: 20_152_000 picoseconds. - Weight::from_parts(20_484_000, 1690) + // Minimum execution time: 23_144_000 picoseconds. + Weight::from_parts(23_956_000, 1690) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: ValidatorSet ApprovedValidators (r:1 w:0) - /// Proof Skipped: ValidatorSet ApprovedValidators (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ValidatorSet Validators (r:1 w:1) - /// Proof Skipped: ValidatorSet Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `ValidatorSet::ApprovedValidators` (r:1 w:0) + /// Proof: `ValidatorSet::ApprovedValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ValidatorSet::Validators` (r:1 w:1) + /// Proof: `ValidatorSet::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_validator_again() -> Weight { // Proof Size summary in bytes: // Measured: `172` // Estimated: `1657` - // Minimum execution time: 21_948_000 picoseconds. - Weight::from_parts(22_780_000, 1657) + // Minimum execution time: 26_600_000 picoseconds. + Weight::from_parts(27_993_000, 1657) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } -} \ No newline at end of file +}