From 7de9c5b436028e1244abc5fdddf94ce0db158705 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Mon, 10 Feb 2025 18:54:23 +0100 Subject: [PATCH 01/14] [WIP] relay 1.4.0 --- Cargo.lock | 6043 ++++++++++++----- Cargo.toml | 325 +- .../collectives/collectives-paseo/Cargo.toml | 22 + .../collectives-paseo/src/genesis.rs | 68 + .../collectives/collectives-paseo/src/lib.rs | 52 + relay/common/src/lib.rs | 1 + relay/paseo/Cargo.toml | 7 +- relay/paseo/src/coretime_migration.rs | 2 +- relay/paseo/src/genesis_config_presets.rs | 6 +- relay/paseo/src/lib.rs | 367 +- .../weights/frame_benchmarking_baseline.rs | 30 +- .../frame_election_provider_support.rs | 26 +- relay/paseo/src/weights/frame_system.rs | 54 +- relay/paseo/src/weights/mod.rs | 5 +- relay/paseo/src/weights/pallet_asset_rate.rs | 14 +- relay/paseo/src/weights/pallet_bags_list.rs | 20 +- relay/paseo/src/weights/pallet_balances.rs | 50 +- relay/paseo/src/weights/pallet_beefy_mmr.rs | 88 + relay/paseo/src/weights/pallet_bounties.rs | 54 +- .../src/weights/pallet_child_bounties.rs | 36 +- .../src/weights/pallet_conviction_voting.rs | 38 +- .../pallet_election_provider_multi_phase.rs | 76 +- .../paseo/src/weights/pallet_fast_unstake.rs | 50 +- relay/paseo/src/weights/pallet_indices.rs | 22 +- .../paseo/src/weights/pallet_message_queue.rs | 61 +- relay/paseo/src/weights/pallet_multisig.rs | 64 +- .../src/weights/pallet_nomination_pools.rs | 613 +- relay/paseo/src/weights/pallet_offences.rs | 30 +- relay/paseo/src/weights/pallet_parameters.rs | 51 - relay/paseo/src/weights/pallet_preimage.rs | 84 +- relay/paseo/src/weights/pallet_proxy.rs | 98 +- relay/paseo/src/weights/pallet_referenda.rs | 122 +- relay/paseo/src/weights/pallet_scheduler.rs | 105 +- relay/paseo/src/weights/pallet_session.rs | 22 +- relay/paseo/src/weights/pallet_staking.rs | 254 +- relay/paseo/src/weights/pallet_timestamp.rs | 10 +- relay/paseo/src/weights/pallet_treasury.rs | 34 +- relay/paseo/src/weights/pallet_utility.rs | 34 +- relay/paseo/src/weights/pallet_vesting.rs | 128 +- relay/paseo/src/weights/pallet_whitelist.rs | 24 +- relay/paseo/src/weights/pallet_xcm.rs | 82 +- .../polkadot_runtime_common_auctions.rs | 18 +- .../weights/polkadot_runtime_common_claims.rs | 28 +- .../polkadot_runtime_common_crowdloan.rs | 46 +- ...polkadot_runtime_common_paras_registrar.rs | 36 +- .../weights/polkadot_runtime_common_slots.rs | 26 +- .../runtime_parachains_configuration.rs | 34 +- .../weights/runtime_parachains_coretime.rs | 18 +- .../weights/runtime_parachains_disputes.rs | 6 +- .../runtime_parachains_disputes_slashing.rs | 16 +- .../src/weights/runtime_parachains_hrmp.rs | 78 +- .../weights/runtime_parachains_inclusion.rs | 90 +- .../weights/runtime_parachains_initializer.rs | 10 +- ...and.rs => runtime_parachains_on_demand.rs} | 34 +- .../src/weights/runtime_parachains_paras.rs | 68 +- .../runtime_parachains_paras_inherent.rs | 96 +- relay/paseo/src/weights/xcm/mod.rs | 30 +- .../xcm/pallet_xcm_benchmarks_fungible.rs | 34 +- .../xcm/pallet_xcm_benchmarks_generic.rs | 114 +- relay/paseo/src/xcm_config.rs | 9 +- relay/paseo/tests/location_conversion.rs | 99 + scripts/create_runtime_patch.sh | 1 + .../collectives-paseo/Cargo.toml | 251 + system-parachains/collectives-paseo/build.rs | 29 + .../collectives-paseo/constants/Cargo.toml | 7 + .../collectives-paseo/constants/src/lib.rs | 29 + .../src/ambassador/migrations.rs | 104 + .../collectives-paseo/src/ambassador/mod.rs | 375 + .../src/ambassador/origins.rs | 112 + .../src/ambassador/tracks.rs | 138 + .../collectives-paseo/src/fellowship/mod.rs | 351 + .../src/fellowship/origins.rs | 269 + .../src/fellowship/tracks.rs | 606 ++ .../src/genesis_config_presets.rs | 94 + .../collectives-paseo/src/impls.rs | 251 + .../collectives-paseo/src/lib.rs | 1327 ++++ .../src/weights/block_weights.rs | 53 + .../cumulus_pallet_parachain_system.rs | 74 + .../src/weights/cumulus_pallet_xcmp_queue.rs | 152 + .../src/weights/extrinsic_weights.rs | 53 + .../src/weights/frame_system.rs | 187 + .../collectives-paseo/src/weights/mod.rs | 52 + .../src/weights/pallet_alliance.rs | 494 ++ .../src/weights/pallet_asset_rate.rs | 86 + .../src/weights/pallet_balances.rs | 174 + .../src/weights/pallet_collator_selection.rs | 277 + .../src/weights/pallet_collective.rs | 298 + .../pallet_core_fellowship_ambassador_core.rs | 268 + .../pallet_core_fellowship_fellowship_core.rs | 268 + .../src/weights/pallet_message_queue.rs | 183 + .../src/weights/pallet_multisig.rs | 162 + .../src/weights/pallet_preimage.rs | 265 + .../src/weights/pallet_proxy.rs | 223 + ...ranked_collective_ambassador_collective.rs | 203 + ...ranked_collective_fellowship_collective.rs | 203 + .../pallet_referenda_ambassador_referenda.rs | 550 ++ .../pallet_referenda_fellowship_referenda.rs | 550 ++ .../pallet_salary_ambassador_salary.rs | 186 + .../pallet_salary_fellowship_salary.rs | 186 + .../src/weights/pallet_scheduler.rs | 286 + .../src/weights/pallet_session.rs | 78 + .../src/weights/pallet_timestamp.rs | 72 + .../pallet_treasury_ambassador_treasury.rs | 175 + .../pallet_treasury_fellowship_treasury.rs | 175 + .../src/weights/pallet_utility.rs | 99 + .../src/weights/pallet_xcm.rs | 342 + .../src/weights/paritydb_weights.rs | 63 + .../src/weights/rocksdb_weights.rs | 63 + .../collectives-paseo/src/weights/xcm/mod.rs | 234 + .../xcm/pallet_xcm_benchmarks_fungible.rs | 190 + .../xcm/pallet_xcm_benchmarks_generic.rs | 352 + .../collectives-paseo/src/xcm_config.rs | 307 + .../collectives-paseo/tests/asset_rate.rs | 96 + .../tests/location_conversion.rs | 123 + .../tests/xcm_payment_api.rs | 26 + 115 files changed, 18352 insertions(+), 3582 deletions(-) create mode 100644 integration-tests/emulated/chains/parachains/collectives/collectives-paseo/Cargo.toml create mode 100644 integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs create mode 100644 integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs create mode 100644 relay/paseo/src/weights/pallet_beefy_mmr.rs delete mode 100644 relay/paseo/src/weights/pallet_parameters.rs rename relay/paseo/src/weights/{runtime_parachains_assigner_on_demand.rs => runtime_parachains_on_demand.rs} (80%) create mode 100644 relay/paseo/tests/location_conversion.rs create mode 100644 system-parachains/collectives-paseo/Cargo.toml create mode 100644 system-parachains/collectives-paseo/build.rs create mode 100644 system-parachains/collectives-paseo/constants/Cargo.toml create mode 100644 system-parachains/collectives-paseo/constants/src/lib.rs create mode 100644 system-parachains/collectives-paseo/src/ambassador/migrations.rs create mode 100644 system-parachains/collectives-paseo/src/ambassador/mod.rs create mode 100644 system-parachains/collectives-paseo/src/ambassador/origins.rs create mode 100644 system-parachains/collectives-paseo/src/ambassador/tracks.rs create mode 100644 system-parachains/collectives-paseo/src/fellowship/mod.rs create mode 100644 system-parachains/collectives-paseo/src/fellowship/origins.rs create mode 100644 system-parachains/collectives-paseo/src/fellowship/tracks.rs create mode 100644 system-parachains/collectives-paseo/src/genesis_config_presets.rs create mode 100644 system-parachains/collectives-paseo/src/impls.rs create mode 100644 system-parachains/collectives-paseo/src/lib.rs create mode 100644 system-parachains/collectives-paseo/src/weights/block_weights.rs create mode 100644 system-parachains/collectives-paseo/src/weights/cumulus_pallet_parachain_system.rs create mode 100644 system-parachains/collectives-paseo/src/weights/cumulus_pallet_xcmp_queue.rs create mode 100644 system-parachains/collectives-paseo/src/weights/extrinsic_weights.rs create mode 100644 system-parachains/collectives-paseo/src/weights/frame_system.rs create mode 100644 system-parachains/collectives-paseo/src/weights/mod.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_alliance.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_asset_rate.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_balances.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_collator_selection.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_collective.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_ambassador_core.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_fellowship_core.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_message_queue.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_multisig.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_preimage.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_proxy.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_ambassador_collective.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_fellowship_collective.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_referenda_ambassador_referenda.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_referenda_fellowship_referenda.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_salary_ambassador_salary.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_salary_fellowship_salary.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_scheduler.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_session.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_timestamp.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_treasury_ambassador_treasury.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_treasury_fellowship_treasury.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_utility.rs create mode 100644 system-parachains/collectives-paseo/src/weights/pallet_xcm.rs create mode 100644 system-parachains/collectives-paseo/src/weights/paritydb_weights.rs create mode 100644 system-parachains/collectives-paseo/src/weights/rocksdb_weights.rs create mode 100644 system-parachains/collectives-paseo/src/weights/xcm/mod.rs create mode 100644 system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs create mode 100644 system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs create mode 100644 system-parachains/collectives-paseo/src/xcm_config.rs create mode 100644 system-parachains/collectives-paseo/tests/asset_rate.rs create mode 100644 system-parachains/collectives-paseo/tests/location_conversion.rs create mode 100644 system-parachains/collectives-paseo/tests/xcm_payment_api.rs diff --git a/Cargo.lock b/Cargo.lock index f20af5112..f952299c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,7 +152,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", "syn-solidity", "tiny-keccak", ] @@ -184,15 +184,6 @@ dependencies = [ "libc", ] -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anstream" version = "0.6.11" @@ -267,7 +258,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -529,7 +520,7 @@ checksum = "7378575ff571966e99a744addeff0bff98b8ada0dedf1956d59e634db95eaac1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", "synstructure 0.13.1", ] @@ -552,7 +543,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -566,103 +557,103 @@ name = "asset-hub-paseo-emulated-chain" version = "1.0.0" dependencies = [ "asset-hub-paseo-runtime", - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "emulated-integration-tests-common", - "frame-support", - "parachains-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", "paseo-emulated-chain", "penpal-emulated-chain", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 14.0.0", "sp-core", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", ] [[package]] name = "asset-hub-paseo-runtime" version = "1.0.0" dependencies = [ - "asset-test-utils", + "asset-test-utils 20.0.0", "assets-common", "bp-asset-hub-paseo", "bp-bridge-hub-kusama", "bp-bridge-hub-paseo", "bp-bridge-hub-polkadot", - "collectives-polkadot-runtime-constants", - "cumulus-pallet-aura-ext", - "cumulus-pallet-parachain-system", - "cumulus-pallet-session-benchmarking", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", + "collectives-polkadot-runtime-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", + "cumulus-pallet-aura-ext 0.15.0", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-session-benchmarking 17.0.0", + "cumulus-pallet-xcm 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", "cumulus-primitives-aura", - "cumulus-primitives-core", - "cumulus-primitives-utility", - "frame-benchmarking", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-utility 0.15.0", + "frame-benchmarking 38.0.0", "frame-executive", "frame-metadata-hash-extension", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-asset-conversion", + "pallet-asset-conversion 20.0.0", "pallet-asset-conversion-tx-payment", - "pallet-assets", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-message-queue", + "pallet-assets 40.0.0", + "pallet-aura 37.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-message-queue 41.0.2", "pallet-multisig", "pallet-nfts", "pallet-nfts-runtime-api", "pallet-proxy", - "pallet-session", + "pallet-session 38.0.0", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", - "pallet-utility", - "pallet-vesting", - "pallet-xcm", + "pallet-utility 38.0.0", + "pallet-vesting 38.0.0", + "pallet-xcm 17.0.1", "pallet-xcm-benchmarks", - "pallet-xcm-bridge-hub-router", - "parachains-common", - "parachains-runtimes-test-utils", + "pallet-xcm-bridge-hub-router 0.15.3", + "parachains-common 18.0.0", + "parachains-runtimes-test-utils 19.0.0", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "polkadot-runtime-common 17.0.0", "primitive-types", "scale-info", "serde_json", "snowbridge-router-primitives", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", + "sp-api 34.0.0", + "sp-block-builder 34.0.0", + "sp-consensus-aura 0.40.0", "sp-core", "sp-debug-derive", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", + "sp-io 38.0.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 39.0.5", + "sp-session 36.0.0", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version", + "sp-version 37.0.0", "sp-weights 31.0.0", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", "system-parachains-constants 1.0.0", - "xcm-runtime-apis", + "xcm-runtime-apis 0.4.2", ] [[package]] @@ -671,53 +662,85 @@ version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ccc232efa79f7f180856e9bc8535dbb2d813b62418cda7bf154a713adb9ea36" dependencies = [ - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "frame-support", - "frame-system", - "pallet-assets", - "pallet-balances", - "pallet-collator-selection", - "pallet-session", - "pallet-timestamp", - "pallet-xcm", - "pallet-xcm-bridge-hub-router", - "parachains-common", - "parachains-runtimes-test-utils", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-primitives-core 0.14.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "pallet-assets 37.0.0", + "pallet-balances 37.0.0", + "pallet-collator-selection 17.0.0", + "pallet-session 36.0.0", + "pallet-timestamp 35.0.0", + "pallet-xcm 15.0.0", + "pallet-xcm-bridge-hub-router 0.13.0", + "parachains-common 15.0.0", + "parachains-runtimes-test-utils 15.0.0", "parity-scale-codec", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "staging-parachain-info 0.15.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "staging-xcm-executor 15.0.0", + "substrate-wasm-builder 23.0.0", +] + +[[package]] +name = "asset-test-utils" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b0a99a8fa37a58ad868fca25530dde06b6582cb46b64bfae808f5b9b87e42ce" +dependencies = [ + "cumulus-pallet-parachain-system 0.17.1", + "cumulus-pallet-xcmp-queue 0.17.0", + "cumulus-primitives-core 0.16.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-asset-conversion 20.0.0", + "pallet-assets 40.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-session 38.0.0", + "pallet-timestamp 37.0.0", + "pallet-xcm 17.0.1", + "pallet-xcm-bridge-hub-router 0.15.3", + "parachains-common 18.0.0", + "parachains-runtimes-test-utils 19.0.0", + "parity-scale-codec", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", + "xcm-runtime-apis 0.4.2", ] [[package]] name = "assets-common" -version = "0.15.0" +version = "0.18.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4e2360c96927aa33b3fef7190eabf2aa4129fe3505c11dfa860ada0f27fd1b1" +checksum = "c540587f89a03003946b14decef4fcadb083edc4e62f968de245b82e5402e923" dependencies = [ - "cumulus-primitives-core", - "frame-support", + "cumulus-primitives-core 0.16.0", + "frame-support 38.2.0", "impl-trait-for-tuples", "log", - "pallet-asset-conversion", - "pallet-xcm", - "parachains-common", + "pallet-asset-conversion 20.0.0", + "pallet-assets 40.0.0", + "pallet-xcm 17.0.1", + "parachains-common 18.0.0", "parity-scale-codec", "scale-info", - "sp-api", - "sp-runtime", - "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "sp-api 34.0.0", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", ] [[package]] @@ -769,7 +792,7 @@ checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -810,7 +833,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -870,20 +893,11 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" -[[package]] -name = "beef" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" -dependencies = [ - "serde", -] - [[package]] name = "binary-merkle-tree" -version = "15.0.0" +version = "15.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b5c0fd4282c30c05647e1052d71bf1a0c8067ab1e9a8fc6d0c292dce0ecb237" +checksum = "336bf780dd7526a9a4bc1521720b25c1994dc132cccd59553431923fa4d1a693" dependencies = [ "hash-db", "log", @@ -1043,61 +1057,61 @@ dependencies = [ [[package]] name = "bp-asset-hub-kusama" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "bp-xcm-bridge-hub-router", - "frame-support", + "bp-xcm-bridge-hub-router 0.14.1", + "frame-support 38.2.0", "parity-scale-codec", "scale-info", - "sp-std", - "staging-xcm 14.1.0", - "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4)", + "sp-core", + "staging-xcm 14.2.0", + "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", ] [[package]] name = "bp-asset-hub-paseo" version = "1.0.0" dependencies = [ - "bp-xcm-bridge-hub-router", - "frame-support", + "bp-xcm-bridge-hub-router 0.14.1", + "frame-support 38.2.0", "parity-scale-codec", "scale-info", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", "system-parachains-constants 1.0.0", ] [[package]] name = "bp-bridge-hub-cumulus" -version = "0.15.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d48cca10dce1c6d2914e48594f13add2da4a5b7c3ed54fd0fa324054dfb8569a" +checksum = "3832b3362711b0c186f046d248407aec14b89812d39d996b914634a72b2bc2ce" dependencies = [ - "bp-messages", - "bp-polkadot-core", - "bp-runtime", - "frame-support", - "frame-system", - "polkadot-primitives", - "sp-api", + "bp-messages 0.18.0", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "polkadot-primitives 16.0.0", + "sp-api 34.0.0", "sp-std", ] [[package]] name = "bp-bridge-hub-kusama" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ "bp-bridge-hub-cumulus", - "bp-messages", - "bp-runtime", - "frame-support", + "bp-messages 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", "kusama-runtime-constants", "polkadot-runtime-constants", - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", "sp-std", - "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4)", + "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", ] [[package]] @@ -1105,38 +1119,38 @@ name = "bp-bridge-hub-paseo" version = "1.0.0" dependencies = [ "bp-bridge-hub-cumulus", - "bp-messages", + "bp-messages 0.18.0", "bp-polkadot-bulletin", - "bp-runtime", - "frame-support", + "bp-runtime 0.18.0", + "frame-support 38.2.0", "kusama-runtime-constants", "paseo-runtime-constants", "snowbridge-core", - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", "system-parachains-constants 1.0.0", ] [[package]] name = "bp-bridge-hub-polkadot" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ "bp-bridge-hub-cumulus", - "bp-messages", + "bp-messages 0.18.0", "bp-polkadot-bulletin", - "bp-runtime", - "frame-support", + "bp-runtime 0.18.0", + "frame-support 38.2.0", "kusama-runtime-constants", "polkadot-runtime-constants", "snowbridge-core", - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4)", + "staging-xcm 14.2.0", + "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", ] [[package]] @@ -1145,29 +1159,47 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57cac4b71008e46d43e346476ed1be85cf7b505efacee17dad84d687344bf1b1" dependencies = [ - "bp-runtime", + "bp-runtime 0.15.0", + "finality-grandpa", + "frame-support 36.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-consensus-grandpa 20.0.0", + "sp-core", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "bp-header-chain" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "890df97cea17ee61ff982466bb9e90cb6b1462adb45380999019388d05e4b92d" +dependencies = [ + "bp-runtime 0.18.0", "finality-grandpa", - "frame-support", + "frame-support 38.2.0", "parity-scale-codec", "scale-info", "serde", - "sp-consensus-grandpa", + "sp-consensus-grandpa 21.0.0", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", ] [[package]] name = "bp-kusama" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00615c1d380587c2e211a2d4d1c1ee490a743e32f478b1bba8deda76958d68ff" +checksum = "ad2076b1e50cfcdf07d04e5d395b0b57983bb73eb2791fbafe5348852a89381f" dependencies = [ - "bp-header-chain", - "bp-polkadot-core", - "bp-runtime", - "frame-support", - "sp-api", + "bp-header-chain 0.18.1", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "sp-api 34.0.0", "sp-std", ] @@ -1177,13 +1209,30 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f97eec00a98efeb052ac9fc9676d9fccf5acd19e3b18530f3d72af1a1faf21ec" dependencies = [ - "bp-header-chain", - "bp-runtime", - "frame-support", + "bp-header-chain 0.15.0", + "bp-runtime 0.15.0", + "frame-support 36.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-std", +] + +[[package]] +name = "bp-messages" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7efabf94339950b914ba87249497f1a0e35a73849934d164fecae4b275928cf6" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-runtime 0.18.0", + "frame-support 38.2.0", "parity-scale-codec", "scale-info", "serde", "sp-core", + "sp-io 38.0.0", "sp-std", ] @@ -1193,48 +1242,66 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60c0bde723a5daf39f4f02816483c9ac049818990b06858dff751736636a4ea2" dependencies = [ - "bp-header-chain", - "bp-polkadot-core", - "bp-runtime", - "frame-support", + "bp-header-chain 0.15.0", + "bp-polkadot-core 0.15.0", + "bp-runtime 0.15.0", + "frame-support 36.0.0", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "bp-parachains" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9011e5c12c15caf3c4129a98f4f4916ea9165db8daf6ed85867c3106075f40df" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", ] [[package]] name = "bp-polkadot" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7612420844a580cb268ea1846fe82fb4bd1825b53e9b6dcd56904b3d7f7ea7c" +checksum = "fa6277dd4333917ecfbcc35e9332a9f11682e0a506e76b617c336224660fce33" dependencies = [ - "bp-header-chain", - "bp-polkadot-core", - "bp-runtime", - "frame-support", - "sp-api", + "bp-header-chain 0.18.1", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "sp-api 34.0.0", "sp-std", ] [[package]] name = "bp-polkadot-bulletin" -version = "0.12.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb5b3cd885b40b52bf96e52ffbec92d0c435f7303fc11374ccfcfa5bebfbc4f" +checksum = "16ed3a8bcfb14fe0ff32102d0699df1afd1fd4bb94d4ed4bb84a09f76f9ca8f6" dependencies = [ - "bp-header-chain", - "bp-messages", - "bp-polkadot-core", - "bp-runtime", - "frame-support", - "frame-system", + "bp-header-chain 0.18.1", + "bp-messages 0.18.0", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", "sp-std", ] @@ -1244,16 +1311,35 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ef2272823ecfee580c00f6542dfcab3ec7abdb00857af853429736847c3a2d9" dependencies = [ - "bp-messages", - "bp-runtime", - "frame-support", - "frame-system", + "bp-messages 0.15.0", + "bp-runtime 0.15.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "parity-scale-codec", + "parity-util-mem", + "scale-info", + "serde", + "sp-core", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "bp-polkadot-core" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "345cf472bac11ef79d403e4846a666b7d22a13cd16d9c85b62cd6b5e16c4a042" +dependencies = [ + "bp-messages 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "parity-util-mem", "scale-info", "serde", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", ] @@ -1263,12 +1349,31 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a589f5bb70baa4377a798823be752042aa6c220d51afc559716667e29b0203d" dependencies = [ - "bp-messages", - "bp-runtime", - "frame-support", + "bp-messages 0.15.0", + "bp-runtime 0.15.0", + "frame-support 36.0.0", + "parity-scale-codec", + "scale-info", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "bp-relayers" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9465ad727e466d67d64244a1aa7bb19933a297913fdde34b8e9bda0a341bdeb" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-messages 0.18.0", + "bp-parachains 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-utility 38.0.0", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", ] @@ -1278,8 +1383,32 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904644c23b437dde65741f3148067624ed0b4d8360f68adf9e92273aeb970814" dependencies = [ - "frame-support", - "frame-system", + "frame-support 36.0.0", + "frame-system 36.1.0", + "hash-db", + "impl-trait-for-tuples", + "log", + "num-traits", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "sp-std", + "sp-trie 36.0.0", + "trie-db", +] + +[[package]] +name = "bp-runtime" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "746d9464f912b278f8a5e2400f10541f95da7fc6c7d688a2788b9a46296146ee" +dependencies = [ + "frame-support 38.2.0", + "frame-system 38.0.0", "hash-db", "impl-trait-for-tuples", "log", @@ -1288,11 +1417,11 @@ dependencies = [ "scale-info", "serde", "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", "sp-std", - "sp-trie", + "sp-trie 37.0.0", "trie-db", ] @@ -1302,19 +1431,40 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85062410c8f85ba074f04d843c59f39c7fcb64b83f2ece5bd4379f8c34a4bf15" dependencies = [ - "bp-header-chain", - "bp-parachains", - "bp-polkadot-core", - "bp-runtime", + "bp-header-chain 0.15.0", + "bp-parachains 0.15.0", + "bp-polkadot-core 0.15.0", + "bp-runtime 0.15.0", + "ed25519-dalek", + "finality-grandpa", + "parity-scale-codec", + "sp-application-crypto 37.0.0", + "sp-consensus-grandpa 20.0.0", + "sp-core", + "sp-runtime 38.0.0", + "sp-std", + "sp-trie 36.0.0", +] + +[[package]] +name = "bp-test-utils" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e659078b54c0b6bd79896738212a305842ad37168976363233516754337826" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-parachains 0.18.0", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", "ed25519-dalek", "finality-grandpa", "parity-scale-codec", - "sp-application-crypto", - "sp-consensus-grandpa", + "sp-application-crypto 38.0.0", + "sp-consensus-grandpa 21.0.0", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "sp-trie", + "sp-trie 37.0.0", ] [[package]] @@ -1326,6 +1476,24 @@ dependencies = [ "sp-std", ] +[[package]] +name = "bp-xcm-bridge-hub" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0873c54562b3d492541cbc8a7974c6854a5157d07880a2a71f8ba888a69e17e9" +dependencies = [ + "bp-messages 0.18.0", + "bp-runtime 0.18.0", + "frame-support 38.2.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io 38.0.0", + "sp-std", + "staging-xcm 14.2.0", +] + [[package]] name = "bp-xcm-bridge-hub-router" version = "0.13.0" @@ -1335,25 +1503,38 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", +] + +[[package]] +name = "bp-xcm-bridge-hub-router" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9284820ca704f5c065563cad77d2e3d069a23cc9cb3a29db9c0de8dd3b173a87" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", ] [[package]] name = "bridge-hub-common" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd1e0c182cdd2ce204425d011965d2c6344360b48dd9aa3f4c470713cfaae9ba" +checksum = "c31b53c53d627e2da38f8910807944bf3121e154b5c0ac9e122995af9dfb13ed" dependencies = [ - "cumulus-primitives-core", - "frame-support", - "pallet-message-queue", + "cumulus-primitives-core 0.16.0", + "frame-support 38.2.0", + "pallet-message-queue 41.0.2", "parity-scale-codec", "scale-info", "snowbridge-core", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", ] [[package]] @@ -1363,8 +1544,8 @@ dependencies = [ "bridge-hub-common", "bridge-hub-paseo-runtime", "emulated-integration-tests-common", - "frame-support", - "parachains-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", "sp-core", ] @@ -1374,20 +1555,20 @@ version = "1.0.0" dependencies = [ "asset-hub-paseo-runtime", "bp-bridge-hub-paseo", - "bp-messages", + "bp-messages 0.18.0", "bridge-hub-paseo-runtime", - "cumulus-pallet-xcmp-queue", + "cumulus-pallet-xcmp-queue 0.15.0", "emulated-integration-tests-common", - "frame-support", + "frame-support 38.2.0", "hex-literal", "integration-tests-helpers", - "pallet-asset-conversion", - "pallet-assets", - "pallet-balances", - "pallet-bridge-messages", - "pallet-message-queue", - "pallet-xcm", - "parachains-common", + "pallet-asset-conversion 20.0.0", + "pallet-assets 40.0.0", + "pallet-balances 39.0.0", + "pallet-bridge-messages 0.18.0", + "pallet-message-queue 41.0.2", + "pallet-xcm 17.0.1", + "parachains-common 18.0.0", "parity-scale-codec", "paseo-system-emulated-network", "scale-info", @@ -1398,11 +1579,11 @@ dependencies = [ "snowbridge-pallet-system", "snowbridge-router-primitives", "sp-core", - "sp-runtime", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", "system-parachains-constants 1.0.0", - "xcm-runtime-apis", + "xcm-runtime-apis 0.4.2", ] [[package]] @@ -1414,62 +1595,62 @@ dependencies = [ "bp-bridge-hub-kusama", "bp-bridge-hub-paseo", "bp-bridge-hub-polkadot", - "bp-header-chain", + "bp-header-chain 0.18.1", "bp-kusama", - "bp-messages", - "bp-parachains", + "bp-messages 0.18.0", + "bp-parachains 0.18.0", "bp-polkadot", - "bp-polkadot-core", - "bp-relayers", - "bp-runtime", + "bp-polkadot-core 0.18.0", + "bp-relayers 0.18.0", + "bp-runtime 0.18.0", "bridge-hub-common", "bridge-hub-test-utils", - "bridge-runtime-common", - "cumulus-pallet-aura-ext", - "cumulus-pallet-parachain-system", - "cumulus-pallet-session-benchmarking", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", + "bridge-runtime-common 0.18.2", + "cumulus-pallet-aura-ext 0.15.0", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-session-benchmarking 17.0.0", + "cumulus-pallet-xcm 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", "cumulus-primitives-aura", - "cumulus-primitives-core", - "cumulus-primitives-utility", - "frame-benchmarking", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-utility 0.15.0", + "frame-benchmarking 38.0.0", "frame-executive", "frame-metadata-hash-extension", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "kusama-runtime-constants", "log", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-bridge-grandpa", - "pallet-bridge-messages", - "pallet-bridge-parachains", - "pallet-bridge-relayers", - "pallet-collator-selection", - "pallet-message-queue", + "pallet-aura 37.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-bridge-grandpa 0.18.0", + "pallet-bridge-messages 0.18.0", + "pallet-bridge-parachains 0.18.0", + "pallet-bridge-relayers 0.18.2", + "pallet-collator-selection 19.0.0", + "pallet-message-queue 41.0.2", "pallet-multisig", - "pallet-session", + "pallet-session 38.0.0", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", + "pallet-utility 38.0.0", + "pallet-xcm 17.0.1", "pallet-xcm-benchmarks", "pallet-xcm-bridge-hub", - "parachains-common", - "parachains-runtimes-test-utils", + "parachains-common 18.0.0", + "parachains-runtimes-test-utils 19.0.0", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "polkadot-runtime-common 17.0.0", "scale-info", "serde", "serde_json", @@ -1484,72 +1665,75 @@ dependencies = [ "snowbridge-runtime-common", "snowbridge-runtime-test-common", "snowbridge-system-runtime-api", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", + "sp-api 34.0.0", + "sp-block-builder 34.0.0", + "sp-consensus-aura 0.40.0", "sp-core", "sp-debug-derive", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", + "sp-io 38.0.0", "sp-keyring", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 39.0.5", + "sp-session 36.0.0", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "sp-version 37.0.0", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", "static_assertions", - "substrate-wasm-builder", + "substrate-wasm-builder 24.0.1", "system-parachains-constants 1.0.0", "tuplex", - "xcm-runtime-apis", + "xcm-runtime-apis 0.4.2", ] [[package]] name = "bridge-hub-test-utils" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf6c88899f02bc16e383de957a17e01ad7c29d7e51e9c35fa4b70de3fa521f57" -dependencies = [ - "asset-test-utils", - "bp-header-chain", - "bp-messages", - "bp-polkadot-core", - "bp-relayers", - "bp-runtime", - "bp-test-utils", - "bridge-runtime-common", - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcmp-queue", - "frame-support", - "frame-system", +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "329b98c9cfa8a36beb65eebe197460e06dc3b041baf84d16c2c9862b99d1e7d2" +dependencies = [ + "asset-test-utils 20.0.0", + "bp-header-chain 0.18.1", + "bp-messages 0.18.0", + "bp-parachains 0.18.0", + "bp-polkadot-core 0.18.0", + "bp-relayers 0.18.0", + "bp-runtime 0.18.0", + "bp-test-utils 0.18.0", + "bp-xcm-bridge-hub 0.4.2", + "bridge-runtime-common 0.18.2", + "cumulus-pallet-parachain-system 0.17.1", + "cumulus-pallet-xcmp-queue 0.17.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "impl-trait-for-tuples", "log", - "pallet-balances", - "pallet-bridge-grandpa", - "pallet-bridge-messages", - "pallet-bridge-parachains", - "pallet-bridge-relayers", - "pallet-timestamp", - "pallet-utility", - "parachains-common", - "parachains-runtimes-test-utils", + "pallet-balances 39.0.0", + "pallet-bridge-grandpa 0.18.0", + "pallet-bridge-messages 0.18.0", + "pallet-bridge-parachains 0.18.0", + "pallet-bridge-relayers 0.18.2", + "pallet-timestamp 37.0.0", + "pallet-utility 38.0.0", + "pallet-xcm 17.0.1", + "pallet-xcm-bridge-hub", + "parachains-common 18.0.0", + "parachains-runtimes-test-utils 19.0.0", "parity-scale-codec", "sp-core", - "sp-io", + "sp-io 38.0.0", "sp-keyring", - "sp-runtime", - "sp-std", + "sp-runtime 39.0.5", "sp-tracing", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", ] [[package]] @@ -1558,34 +1742,66 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "639591635551f94b6e310852430b669495bd99cfd2af20b00a00f6cc7169e70d" dependencies = [ - "bp-header-chain", - "bp-messages", - "bp-parachains", - "bp-polkadot-core", - "bp-relayers", - "bp-runtime", - "bp-xcm-bridge-hub", - "bp-xcm-bridge-hub-router", - "frame-support", - "frame-system", + "bp-header-chain 0.15.0", + "bp-messages 0.15.0", + "bp-parachains 0.15.0", + "bp-polkadot-core 0.15.0", + "bp-relayers 0.15.0", + "bp-runtime 0.15.0", + "bp-xcm-bridge-hub 0.3.0", + "bp-xcm-bridge-hub-router 0.13.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "hash-db", "log", - "pallet-bridge-grandpa", - "pallet-bridge-messages", - "pallet-bridge-parachains", - "pallet-bridge-relayers", - "pallet-transaction-payment", - "pallet-utility", + "pallet-bridge-grandpa 0.15.0", + "pallet-bridge-messages 0.15.0", + "pallet-bridge-parachains 0.15.0", + "pallet-bridge-relayers 0.15.0", + "pallet-transaction-payment 36.0.0", + "pallet-utility 36.0.0", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 33.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-std", + "sp-trie 36.0.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "tuplex", +] + +[[package]] +name = "bridge-runtime-common" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86cf718057e18ce3e5f2c8e3fc318c38ad71d47ada91dc4b841c0f69c214ef04" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-messages 0.18.0", + "bp-parachains 0.18.0", + "bp-polkadot-core 0.18.0", + "bp-relayers 0.18.0", + "bp-runtime 0.18.0", + "bp-xcm-bridge-hub 0.4.2", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-bridge-grandpa 0.18.0", + "pallet-bridge-messages 0.18.0", + "pallet-bridge-parachains 0.18.0", + "pallet-bridge-relayers 0.18.2", + "pallet-transaction-payment 38.0.2", + "pallet-utility 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", - "sp-trie", - "staging-xcm 14.1.0", - "staging-xcm-builder", + "sp-trie 37.0.0", + "staging-xcm 14.2.0", "static_assertions", "tuplex", ] @@ -1598,9 +1814,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bs58" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5353f36341f7451062466f0b755b96ac3a9547e4d7f6b70d603fc721a7d7896" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" dependencies = [ "tinyvec", ] @@ -1765,25 +1981,25 @@ dependencies = [ "bridge-hub-paseo-runtime", "clap", "coretime-paseo-runtime", - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "hex-literal", - "pallet-staking", - "parachains-common", + "pallet-staking 38.0.0", + "parachains-common 18.0.0", "paseo-runtime", "paseo-runtime-constants", "people-paseo-runtime", - "polkadot-primitives", - "polkadot-runtime-parachains", - "sc-chain-spec", - "sc-consensus-grandpa", - "sc-network", + "polkadot-primitives 16.0.0", + "polkadot-runtime-parachains 17.0.2", + "sc-chain-spec 38.0.0", + "sc-consensus-grandpa 0.30.0", + "sc-network 0.45.6", "serde", "serde_json", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-consensus-beefy", + "sp-authority-discovery 34.0.0", + "sp-consensus-babe 0.40.0", + "sp-consensus-beefy 22.1.0", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "staging-xcm 8.0.1", "system-parachains-constants 1.0.0", ] @@ -1879,7 +2095,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -1898,10 +2114,106 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "collectives-paseo-emulated-chain" +version = "0.0.0" +dependencies = [ + "collectives-paseo-runtime", + "cumulus-primitives-core 0.14.0", + "emulated-integration-tests-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", + "sp-core", +] + +[[package]] +name = "collectives-paseo-runtime" +version = "1.0.0" +dependencies = [ + "collectives-polkadot-runtime-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", + "cumulus-pallet-aura-ext 0.15.0", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-session-benchmarking 17.0.0", + "cumulus-pallet-xcm 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-primitives-aura", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-utility 0.15.0", + "frame-benchmarking 38.0.0", + "frame-executive", + "frame-metadata-hash-extension", + "frame-support 38.2.0", + "frame-system 38.0.0", + "frame-system-benchmarking", + "frame-system-rpc-runtime-api", + "frame-try-runtime", + "hex-literal", + "log", + "pallet-alliance", + "pallet-asset-rate 17.0.0", + "pallet-aura 37.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-collective", + "pallet-core-fellowship", + "pallet-message-queue 41.0.2", + "pallet-multisig", + "pallet-preimage", + "pallet-proxy", + "pallet-ranked-collective", + "pallet-referenda", + "pallet-salary", + "pallet-scheduler", + "pallet-session 38.0.0", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury 37.0.0", + "pallet-utility 38.0.0", + "pallet-xcm 17.0.1", + "pallet-xcm-benchmarks", + "parachains-common 18.0.0", + "parachains-runtimes-test-utils 19.0.0", + "parity-scale-codec", + "paseo-runtime-constants", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "polkadot-runtime-common 17.0.0", + "scale-info", + "serde_json", + "sp-api 34.0.0", + "sp-arithmetic 26.0.0", + "sp-block-builder 34.0.0", + "sp-consensus-aura 0.40.0", + "sp-core", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", + "sp-io 38.0.0", + "sp-offchain", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-std", + "sp-storage", + "sp-transaction-pool", + "sp-version 37.0.0", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", + "system-parachains-constants 1.0.0", + "xcm-runtime-apis 0.4.2", +] + [[package]] name = "collectives-polkadot-runtime-constants" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" + +[[package]] +name = "collectives-polkadot-runtime-constants" +version = "1.0.0" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" [[package]] name = "colorchoice" @@ -2034,10 +2346,10 @@ name = "coretime-paseo-emulated-chain" version = "1.0.0" dependencies = [ "coretime-paseo-runtime", - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "emulated-integration-tests-common", - "frame-support", - "parachains-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", "sp-core", ] @@ -2045,98 +2357,98 @@ dependencies = [ name = "coretime-paseo-integration-tests" version = "1.0.0" dependencies = [ - "asset-test-utils", + "asset-test-utils 20.0.0", "coretime-paseo-runtime", - "cumulus-pallet-parachain-system", + "cumulus-pallet-parachain-system 0.15.0", "emulated-integration-tests-common", - "frame-support", + "frame-support 38.2.0", "integration-tests-helpers", - "pallet-balances", - "pallet-broker", - "pallet-message-queue", - "pallet-xcm", - "parachains-common", + "pallet-balances 39.0.0", + "pallet-broker 0.17.2", + "pallet-message-queue 41.0.2", + "pallet-xcm 17.0.1", + "parachains-common 18.0.0", "parity-scale-codec", "paseo-runtime", "paseo-runtime-constants", "paseo-system-emulated-network", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "sp-runtime", - "staging-xcm 14.1.0", - "staging-xcm-executor", - "xcm-runtime-apis", + "polkadot-runtime-common 17.0.0", + "polkadot-runtime-parachains 17.0.2", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", + "xcm-runtime-apis 0.4.2", ] [[package]] name = "coretime-paseo-runtime" version = "1.0.0" dependencies = [ - "cumulus-pallet-aura-ext", - "cumulus-pallet-parachain-system", - "cumulus-pallet-session-benchmarking", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", + "cumulus-pallet-aura-ext 0.15.0", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-session-benchmarking 17.0.0", + "cumulus-pallet-xcm 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", "cumulus-primitives-aura", - "cumulus-primitives-core", - "cumulus-primitives-utility", - "frame-benchmarking", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-utility 0.15.0", + "frame-benchmarking 38.0.0", "frame-executive", "frame-metadata-hash-extension", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-broker", - "pallet-collator-selection", - "pallet-message-queue", + "pallet-aura 37.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-broker 0.17.2", + "pallet-collator-selection 19.0.0", + "pallet-message-queue 41.0.2", "pallet-multisig", "pallet-proxy", - "pallet-session", + "pallet-session 38.0.0", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", + "pallet-utility 38.0.0", + "pallet-xcm 17.0.1", "pallet-xcm-benchmarks", - "parachains-common", - "parachains-runtimes-test-utils", + "parachains-common 18.0.0", + "parachains-runtimes-test-utils 19.0.0", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "polkadot-runtime-common 17.0.0", "scale-info", "serde", "serde_json", - "sp-api", + "sp-api 34.0.0", "sp-arithmetic 26.0.0", - "sp-block-builder", - "sp-consensus-aura", + "sp-block-builder 34.0.0", + "sp-consensus-aura 0.40.0", "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 39.0.5", + "sp-session 36.0.0", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "sp-version 37.0.0", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", "system-parachains-constants 1.0.0", - "xcm-runtime-apis", + "xcm-runtime-apis 0.4.2", ] [[package]] @@ -2368,19 +2680,37 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5e8af48090936c45483d489ee681acb54277763586b53fa3dbd17173aa474fc" dependencies = [ - "cumulus-pallet-parachain-system", - "frame-support", - "frame-system", - "pallet-aura", - "pallet-timestamp", + "cumulus-pallet-parachain-system 0.15.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "pallet-aura 35.0.0", + "pallet-timestamp 35.0.0", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-consensus-aura", - "sp-runtime", + "sp-application-crypto 37.0.0", + "sp-consensus-aura 0.39.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "cumulus-pallet-aura-ext" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cbe2735fc7cf2b6521eab00cb1a1ab025abc1575cc36887b36dc8c5cb1c9434" +dependencies = [ + "cumulus-pallet-parachain-system 0.17.1", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-aura 37.0.0", + "pallet-timestamp 37.0.0", + "parity-scale-codec", + "scale-info", + "sp-application-crypto 38.0.0", + "sp-consensus-aura 0.40.0", + "sp-runtime 39.0.5", +] + [[package]] name = "cumulus-pallet-parachain-system" version = "0.15.0" @@ -2389,32 +2719,69 @@ checksum = "300d5509bd8ac95bafe158fa475278315175a4eb0422c2cd82e08e8b9dde035c" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", - "cumulus-primitives-core", - "cumulus-primitives-parachain-inherent", - "cumulus-primitives-proof-size-hostfunction", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-parachain-inherent 0.14.0", + "cumulus-primitives-proof-size-hostfunction 0.9.0", + "environmental", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "impl-trait-for-tuples", + "log", + "pallet-message-queue 39.0.1", + "parity-scale-codec", + "polkadot-parachain-primitives 13.0.0", + "polkadot-runtime-common 15.0.0", + "polkadot-runtime-parachains 15.0.2", + "scale-info", + "sp-core", + "sp-externalities", + "sp-inherents 33.0.0", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "sp-std", + "sp-trie 36.0.0", + "sp-version 36.0.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "trie-db", +] + +[[package]] +name = "cumulus-pallet-parachain-system" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "546403ee1185f4051a74cc9c9d76e82c63cac3fb68e1bf29f61efb5604c96488" +dependencies = [ + "bytes", + "cumulus-pallet-parachain-system-proc-macro", + "cumulus-primitives-core 0.16.0", + "cumulus-primitives-parachain-inherent 0.16.0", + "cumulus-primitives-proof-size-hostfunction 0.10.0", "environmental", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "impl-trait-for-tuples", "log", - "pallet-message-queue", + "pallet-message-queue 41.0.2", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 14.0.0", + "polkadot-runtime-common 17.0.0", + "polkadot-runtime-parachains 17.0.2", "scale-info", "sp-core", "sp-externalities", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-trie", - "sp-version", - "staging-xcm 14.1.0", - "staging-xcm-builder", + "sp-inherents 34.0.0", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", + "sp-std", + "sp-trie 37.0.0", + "sp-version 37.0.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", "trie-db", ] @@ -2427,7 +2794,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -2436,30 +2803,60 @@ version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "506daacefa861aa2909b64f26e76495ce029227fd8355b97e074cc1d5dc54ab2" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-session", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "pallet-session 36.0.0", "parity-scale-codec", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "cumulus-pallet-session-benchmarking" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18168570689417abfb514ac8812fca7e6429764d01942750e395d7d8ce0716ef" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-session 38.0.0", + "parity-scale-codec", + "sp-runtime 39.0.5", +] + [[package]] name = "cumulus-pallet-xcm" version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d5224285f60e5159bab549f458079d606a7f95ef779def8b89f1a244dc7cf81" dependencies = [ - "cumulus-primitives-core", - "frame-support", - "frame-system", + "cumulus-primitives-core 0.14.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", +] + +[[package]] +name = "cumulus-pallet-xcm" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e49231f6cd8274438b078305dc8ce44c54c0d3f4a28e902589bcbaa53d954608" +dependencies = [ + "cumulus-primitives-core 0.16.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", ] [[package]] @@ -2469,39 +2866,65 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0adf5409618b21e754fef0ac70f257878d22d61c48fdeefcab666835dcb8e0f0" dependencies = [ "bounded-collections", - "bp-xcm-bridge-hub-router", - "cumulus-primitives-core", - "frame-benchmarking", - "frame-support", - "frame-system", + "bp-xcm-bridge-hub-router 0.13.0", + "cumulus-primitives-core 0.14.0", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-message-queue", + "pallet-message-queue 39.0.1", "parity-scale-codec", - "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-runtime-common 15.0.0", + "polkadot-runtime-parachains 15.0.2", "scale-info", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "staging-xcm-executor 15.0.0", ] [[package]] -name = "cumulus-primitives-aura" -version = "0.14.0" +name = "cumulus-pallet-xcmp-queue" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e7977947ad43a4cbc532ca33abcde136ae3deffdc7168b2ae253d73ccd371e4" +checksum = "6f788bdac9474795ea13ba791b55798fb664b2e3da8c3a7385b480c9af4e6539" dependencies = [ + "bounded-collections", + "bp-xcm-bridge-hub-router 0.14.1", + "cumulus-primitives-core 0.16.0", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-message-queue 41.0.2", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-primitives", - "sp-api", - "sp-consensus-aura", - "sp-runtime", - "sp-std", + "polkadot-runtime-common 17.0.0", + "polkadot-runtime-parachains 17.0.2", + "scale-info", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", +] + +[[package]] +name = "cumulus-primitives-aura" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e7977947ad43a4cbc532ca33abcde136ae3deffdc7168b2ae253d73ccd371e4" +dependencies = [ + "parity-scale-codec", + "polkadot-core-primitives 14.0.0", + "polkadot-primitives 14.0.0", + "sp-api 33.0.0", + "sp-consensus-aura 0.39.0", + "sp-runtime 38.0.0", + "sp-std", ] [[package]] @@ -2511,15 +2934,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "751e64b89a839d5cfabebc1c797936e5eee791d0fa2322d91e86f8440a743ddb" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-core-primitives 14.0.0", + "polkadot-parachain-primitives 13.0.0", + "polkadot-primitives 14.0.0", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 33.0.0", + "sp-runtime 38.0.0", "sp-std", - "sp-trie", - "staging-xcm 14.1.0", + "sp-trie 36.0.0", + "staging-xcm 14.2.0", +] + +[[package]] +name = "cumulus-primitives-core" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c6b5221a4a3097f2ebef66c84c1e6d7a0b8ec7e63f2bd5ae04c1e6d3fc7514e" +dependencies = [ + "parity-scale-codec", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "polkadot-primitives 16.0.0", + "scale-info", + "sp-api 34.0.0", + "sp-runtime 39.0.5", + "sp-trie 37.0.0", + "staging-xcm 14.2.0", ] [[package]] @@ -2529,15 +2969,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df521e13b48278b86d02c61d6e44036d6d263deb5aaec4838b1751da8988d3d2" dependencies = [ "async-trait", - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", "sp-std", - "sp-trie", + "sp-trie 36.0.0", +] + +[[package]] +name = "cumulus-primitives-parachain-inherent" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "842a694901e04a62d88995418dec35c22f7dba2b34d32d2b8de37d6b92f973ff" +dependencies = [ + "async-trait", + "cumulus-primitives-core 0.16.0", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-inherents 34.0.0", + "sp-trie 37.0.0", ] [[package]] @@ -2548,7 +3003,18 @@ checksum = "9f973d2a7262c90e48dcd42062bcb1e0fbf48bbcdac4ea6df3d85212d8d8be5d" dependencies = [ "sp-externalities", "sp-runtime-interface", - "sp-trie", + "sp-trie 36.0.0", +] + +[[package]] +name = "cumulus-primitives-proof-size-hostfunction" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "421f03af054aac7c89e87a49e47964886e53a8d7395990eab27b6f201d42524f" +dependencies = [ + "sp-externalities", + "sp-runtime-interface", + "sp-trie 37.0.0", ] [[package]] @@ -2557,19 +3023,37 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05742c520065e3870d419683113ed7f6d35de66f0c80af6828e7878d1bb0ea94" dependencies = [ - "cumulus-primitives-core", - "frame-support", + "cumulus-primitives-core 0.14.0", + "frame-support 36.0.0", "log", - "pallet-asset-conversion", + "pallet-asset-conversion 18.0.0", "parity-scale-codec", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "sp-io", - "sp-runtime", + "polkadot-runtime-common 15.0.0", + "polkadot-runtime-parachains 15.0.2", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "staging-xcm-executor 15.0.0", +] + +[[package]] +name = "cumulus-primitives-utility" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bdcf4d46dd93f1e6d5dd6d379133566a44042ba6476d04bdcbdb4981c622ae4" +dependencies = [ + "cumulus-primitives-core 0.16.0", + "frame-support 38.2.0", + "log", + "pallet-asset-conversion 20.0.0", + "parity-scale-codec", + "polkadot-runtime-common 17.0.0", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", ] [[package]] @@ -2578,27 +3062,40 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1f4ab9d64a581d4a5431f2554f4602a4208c5e28b30be01af386e24d8447599" dependencies = [ - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "parity-scale-codec", - "polkadot-primitives", - "sp-runtime", - "sp-state-machine", + "polkadot-primitives 14.0.0", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", "sp-std", - "sp-trie", + "sp-trie 36.0.0", +] + +[[package]] +name = "cumulus-test-relay-sproof-builder" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e570e41c3f05a8143ebff967bbb0c7dcaaa6f0bebd8639b9418b8005b13eda03" +dependencies = [ + "cumulus-primitives-core 0.16.0", + "parity-scale-codec", + "polkadot-primitives 16.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", + "sp-trie 37.0.0", ] [[package]] name = "curve25519-dalek" -version = "4.1.2" +version = "4.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest 0.10.7", "fiat-crypto", - "platforms", "rustc_version 0.4.0", "subtle 2.5.0", "zeroize", @@ -2612,7 +3109,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -2639,7 +3136,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -2656,7 +3153,7 @@ checksum = "587663dd5fb3d10932c8aecfe7c844db1bcf0aee93eeab08fac13dc1212c2e7f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -2751,7 +3248,7 @@ checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -2832,7 +3329,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -2856,9 +3353,9 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.65", + "syn 2.0.98", "termcolor", - "toml 0.8.10", + "toml 0.8.12", "walkdir", ] @@ -2994,32 +3491,32 @@ version = "11.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aef7c980b99bb2e4edfc9535d4096c1d0b5c8e3b52aab38a497a79563e6005f7" dependencies = [ - "asset-test-utils", - "bp-messages", - "bridge-runtime-common", - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "frame-support", - "pallet-assets", - "pallet-balances", - "pallet-bridge-messages", - "pallet-message-queue", - "pallet-xcm", - "parachains-common", + "asset-test-utils 15.0.0", + "bp-messages 0.15.0", + "bridge-runtime-common 0.15.0", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-primitives-core 0.14.0", + "frame-support 36.0.0", + "pallet-assets 37.0.0", + "pallet-balances 37.0.0", + "pallet-bridge-messages 0.15.0", + "pallet-message-queue 39.0.1", + "pallet-xcm 15.0.0", + "parachains-common 15.0.0", "parity-scale-codec", "paste", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-parachains", - "sc-consensus-grandpa", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-consensus-beefy", + "polkadot-parachain-primitives 13.0.0", + "polkadot-primitives 14.0.0", + "polkadot-runtime-parachains 15.0.2", + "sc-consensus-grandpa 0.27.0", + "sp-authority-discovery 33.0.0", + "sp-consensus-babe 0.39.0", + "sp-consensus-beefy 20.0.0", "sp-core", - "sp-runtime", - "staging-xcm 14.1.0", - "xcm-emulator", + "sp-runtime 38.0.0", + "staging-xcm 14.2.0", + "xcm-emulator 0.13.0", ] [[package]] @@ -3049,7 +3546,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3069,7 +3566,7 @@ checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3080,7 +3577,7 @@ checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3196,7 +3693,7 @@ dependencies = [ "fs-err", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3360,36 +3857,61 @@ version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "709b26657ebbba53dc7bb616577375ca462b20fef1b00e8d9b20d2435e87f7bc" dependencies = [ - "frame-support", + "frame-support 36.0.0", "frame-support-procedural", - "frame-system", + "frame-system 36.1.0", "linregress", "log", "parity-scale-codec", "paste", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-runtime-interface", "sp-std", "sp-storage", "static_assertions", ] +[[package]] +name = "frame-benchmarking" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a01bdd47c2d541b38bd892da647d1e972c9d85b4ecd7094ad64f7600175da54d" +dependencies = [ + "frame-support 38.2.0", + "frame-support-procedural", + "frame-system 38.0.0", + "linregress", + "log", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-runtime-interface", + "sp-storage", + "static_assertions", +] + [[package]] name = "frame-election-provider-solution-type" -version = "14.0.0" +version = "14.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1388eb632484a1208a5b51d7d822a7df995f37bb10878b2a88f4ec89cbe5e6b2" +checksum = "8156f209055d352994ecd49e19658c6b469d7c6de923bd79868957d0dcfb6f71" dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3399,34 +3921,50 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1ec289ebad5e601bb165cf7eb6ec2179ae34280ee310d0710a3111d4f8f8f94" dependencies = [ "frame-election-provider-solution-type", - "frame-support", - "frame-system", + "frame-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-npos-elections", - "sp-runtime", + "sp-npos-elections 33.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "frame-election-provider-support" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c36f5116192c63d39f1b4556fa30ac7db5a6a52575fa241b045f7dfa82ecc2be" +dependencies = [ + "frame-election-provider-solution-type", + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-npos-elections 34.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "frame-executive" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d878830330eaa9e8b886279c338556b05702d0059989cb51cfb226b70bf3fa4" +checksum = "c365bf3879de25bbee28e9584096955a02fbe8d7e7624e10675800317f1cee5b" dependencies = [ "aquamarine", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-try-runtime", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-tracing", ] @@ -3444,25 +3982,25 @@ dependencies = [ [[package]] name = "frame-metadata-hash-extension" -version = "0.4.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf37fc730bf4b51e82a34c6357eebe32c04dbacf6525e0a7b9726f6a17ec9427" +checksum = "56ac71dbd97039c49fdd69f416a4dd5d8da3652fdcafc3738b45772ad79eb4ec" dependencies = [ "array-bytes", "docify", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 39.0.5", ] [[package]] name = "frame-remote-externalities" -version = "0.43.0" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff3f2bb3fcc79232818b2d6dd516301b5906cf9e49da77ccd803f19c3d060119" +checksum = "b2a946c33c9bd653f464bb158e020a9e85bd9d6746f39d702a84973bd6a4cde0" dependencies = [ "futures", "indicatif", @@ -3472,9 +4010,9 @@ dependencies = [ "serde", "sp-core", "sp-crypto-hashing", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", "spinners", "substrate-rpc-client", "tokio", @@ -3504,18 +4042,60 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-api", + "sp-api 33.0.0", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-crypto-hashing-proc-macro", + "sp-debug-derive", + "sp-genesis-builder 0.14.0", + "sp-inherents 33.0.0", + "sp-io 37.0.0", + "sp-metadata-ir", + "sp-runtime 38.0.0", + "sp-staking 33.0.0", + "sp-state-machine 0.42.0", + "sp-std", + "sp-tracing", + "sp-weights 31.0.0", + "static_assertions", + "tt-call", +] + +[[package]] +name = "frame-support" +version = "38.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7dd8b9f161a8289e3b9fe6c1068519358dbff2270d38097a923d3d1b4459dca" +dependencies = [ + "aquamarine", + "array-bytes", + "bitflags 1.3.2", + "docify", + "environmental", + "frame-metadata", + "frame-support-procedural", + "impl-trait-for-tuples", + "k256", + "log", + "macro_magic", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "serde_json", + "smallvec", + "sp-api 34.0.0", "sp-arithmetic 26.0.0", "sp-core", "sp-crypto-hashing-proc-macro", "sp-debug-derive", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", + "sp-io 38.0.0", "sp-metadata-ir", - "sp-runtime", - "sp-staking", - "sp-state-machine", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", + "sp-state-machine 0.43.0", "sp-std", "sp-tracing", "sp-weights 31.0.0", @@ -3525,13 +4105,14 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "30.0.1" +version = "30.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd94af68373e179c32c360b3c280497a9cf0f45a4f47f0ee6539a6c6c9cf2343" +checksum = "8da784d943f2a945be923ab081a7c0837355b38045c50945d7ec1a138e2f3c52" dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse", + "docify", "expander", "frame-support-procedural-tools", "itertools 0.11.0", @@ -3540,7 +4121,7 @@ dependencies = [ "proc-macro2", "quote", "sp-crypto-hashing", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3553,7 +4134,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3564,7 +4145,7 @@ checksum = "ed971c6435503a099bdac99fe4c5bea08981709e5b5a0a8535a1856f48561191" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3575,56 +4156,76 @@ checksum = "64d6a0e7bb6503facdcc6f8e19c83cd0bfc8bbbd268522b1a50e107dfc6b972d" dependencies = [ "cfg-if", "docify", - "frame-support", + "frame-support 36.0.0", "log", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "sp-version", + "sp-version 36.0.0", "sp-weights 31.0.0", ] [[package]] -name = "frame-system-benchmarking" -version = "36.0.0" +name = "frame-system" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15afc91c7780e18274dcea58ed1edb700c48d10e086a9785e3f6708099cd3250" +checksum = "e3c7fa02f8c305496d2ae52edaecdb9d165f11afa965e05686d7d7dd1ce93611" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "cfg-if", + "docify", + "frame-support 38.2.0", + "log", "parity-scale-codec", "scale-info", + "serde", "sp-core", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", + "sp-version 37.0.0", + "sp-weights 31.0.0", +] + +[[package]] +name = "frame-system-benchmarking" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9693b2a736beb076e673520e1e8dee4fc128b8d35b020ef3e8a4b1b5ad63d9f2" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 39.0.5", ] [[package]] name = "frame-system-rpc-runtime-api" -version = "33.0.0" +version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e9e2b7b85e451e367f4fb85ff3295bd039e17f64de1906154d3976e2638ee8" +checksum = "475c4f8604ba7e4f05cd2c881ba71105093e638b9591ec71a8db14a64b3b4ec3" dependencies = [ + "docify", "parity-scale-codec", - "sp-api", + "sp-api 34.0.0", ] [[package]] name = "frame-try-runtime" -version = "0.42.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae6ba8b36a52775ad39ccfb45ff4ad814c3cb45ec74d0a4271889e00bd791c6c" +checksum = "83c811a5a1f5429c7fb5ebbf6cf9502d8f9b673fd395c12cf46c44a30a7daf0e" dependencies = [ - "frame-support", + "frame-support 38.2.0", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-std", + "sp-api 34.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -3719,7 +4320,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -3988,9 +4589,9 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" [[package]] name = "hkdf" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ "hmac 0.12.1", ] @@ -4436,14 +5037,14 @@ dependencies = [ name = "integration-tests-helpers" version = "1.0.0" dependencies = [ - "asset-test-utils", - "cumulus-pallet-xcmp-queue", - "pallet-balances", - "pallet-message-queue", - "pallet-xcm", + "asset-test-utils 20.0.0", + "cumulus-pallet-xcmp-queue 0.15.0", + "pallet-balances 39.0.0", + "pallet-message-queue 41.0.2", + "pallet-xcm 17.0.1", "paste", - "staging-xcm 14.1.0", - "xcm-emulator", + "staging-xcm 14.2.0", + "xcm-emulator 0.16.0", ] [[package]] @@ -4565,9 +5166,9 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b089779ad7f80768693755a031cc14a7766aba707cbe886674e3f79e9b7e47" +checksum = "834af00800e962dee8f7bfc0f60601de215e73e78e5497d733a2919da837d3c8" dependencies = [ "jsonrpsee-core", "jsonrpsee-http-client", @@ -4579,9 +5180,9 @@ dependencies = [ [[package]] name = "jsonrpsee-client-transport" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08163edd8bcc466c33d79e10f695cdc98c00d1e6ddfb95cec41b6b0279dd5432" +checksum = "def0fd41e2f53118bd1620478d12305b2c75feef57ea1f93ef70568c98081b7e" dependencies = [ "base64 0.22.1", "futures-util", @@ -4602,13 +5203,11 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79712302e737d23ca0daa178e752c9334846b08321d439fd89af9a384f8c830b" +checksum = "76637f6294b04e747d68e69336ef839a3493ca62b35bf488ead525f7da75c5bb" dependencies = [ - "anyhow", "async-trait", - "beef", "bytes", "futures-timer", "futures-util", @@ -4619,7 +5218,7 @@ dependencies = [ "parking_lot 0.12.3", "pin-project", "rand", - "rustc-hash", + "rustc-hash 2.1.1", "serde", "serde_json", "thiserror", @@ -4630,9 +5229,9 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d90064e04fb9d7282b1c71044ea94d0bbc6eff5621c66f1a0bce9e9de7cf3ac" +checksum = "87c24e981ad17798bbca852b0738bfb7b94816ed687bd0d5da60bfa35fa0fdc3" dependencies = [ "async-trait", "base64 0.22.1", @@ -4655,24 +5254,23 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7895f186d5921065d96e16bd795e5ca89ac8356ec423fafc6e3d7cf8ec11aee4" +checksum = "6fcae0c6c159e11541080f1f829873d8f374f81eda0abc67695a13fc8dc1a580" dependencies = [ "heck 0.5.0", "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] name = "jsonrpsee-types" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9c465fbe385238e861fdc4d1c85e04ada6c1fd246161d26385c1b311724d2af" +checksum = "ddb81adb1a5ae9182df379e374a79e24e992334e7346af4d065ae5b2acb8d4c6" dependencies = [ - "beef", "http 1.1.0", "serde", "serde_json", @@ -4681,9 +5279,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.23.2" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c28759775f5cb2f1ea9667672d3fe2b0e701d1f4b7b67954e60afe7fd058b5e" +checksum = "6f4f3642a292f5b76d8a16af5c88c16a0860f2ccc778104e5c848b28183d9538" dependencies = [ "http 1.1.0", "jsonrpsee-client-transport", @@ -4724,16 +5322,16 @@ checksum = "c33070833c9ee02266356de0c43f723152bd38bd96ddf52c82b3af10c9138b28" [[package]] name = "kusama-runtime-constants" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "frame-support", - "polkadot-primitives", - "polkadot-runtime-common", + "frame-support 38.2.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-common 17.0.0", "smallvec", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-weights 31.0.0", - "staging-xcm-builder", + "staging-xcm-builder 17.0.3", ] [[package]] @@ -4893,11 +5491,11 @@ dependencies = [ [[package]] name = "libp2p-identity" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "999ec70441b2fb35355076726a6bc466c932e9bdc66f6a11c6c0aa17c7ab9be0" +checksum = "257b5621d159b32282eac446bed6670c39c7dc68a200a992d8f056afa0066f6d" dependencies = [ - "bs58 0.5.0", + "bs58 0.5.1", "ed25519-dalek", "hkdf", "multihash 0.19.1", @@ -5094,7 +5692,7 @@ dependencies = [ "proc-macro-warning 0.4.2", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -5379,9 +5977,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.21" +version = "0.4.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" [[package]] name = "lru" @@ -5428,7 +6026,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -5442,7 +6040,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -5453,7 +6051,7 @@ checksum = "b02abfe41815b5bd98dbd4260173db2c116dda171dc0fe7838cb206333b83308" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -5464,7 +6062,7 @@ checksum = "73ea28ee64b88876bf45277ed9a5817c1817df061a74f2b988971a12570e5869" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -5481,9 +6079,9 @@ checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" [[package]] name = "matchers" -version = "0.0.1" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" +checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" dependencies = [ "regex-automata 0.1.10", ] @@ -5674,7 +6272,7 @@ dependencies = [ "cfg-if", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -5942,6 +6540,16 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" +[[package]] +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +dependencies = [ + "overload", + "winapi", +] + [[package]] name = "num-bigint" version = "0.4.4" @@ -6105,7 +6713,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -6136,40 +6744,85 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + +[[package]] +name = "pallet-alliance" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59378a648a0aa279a4b10650366c3389cd0a1239b1876f74bfecd268eecb086b" +dependencies = [ + "array-bytes", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-collective", + "pallet-identity 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-crypto-hashing", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-asset-conversion" version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f726ebb59401c1844a4a8703047bdafcd99a1827cd5d8b2c82abeb8948a7f25b" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 33.0.0", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-asset-conversion" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f0078659ae95efe6a1bf138ab5250bc41ab98f22ff3651d0208684f08ae797" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-api 34.0.0", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-asset-conversion-tx-payment" -version = "18.0.0" +version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0fde03a96382f4dbe37ef95cb4ef7aade7c0be410cb6c888eda911c94af3eaf" +checksum = "1ab66c4c22ac0f20e620a954ce7ba050118d6d8011e2d02df599309502064e98" dependencies = [ - "frame-support", - "frame-system", - "pallet-asset-conversion", - "pallet-transaction-payment", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-asset-conversion 20.0.0", + "pallet-transaction-payment 38.0.2", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-std", + "sp-runtime 39.0.5", ] [[package]] @@ -6178,148 +6831,268 @@ version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e806842bec955190ec64f8b2179f74f5355137c4cadf04f3269e6196cd19caf9" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-asset-rate" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71b2149aa741bc39466bbcc92d9d0ab6e9adcf39d2790443a735ad573b3191e7" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-asset-tx-payment" version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "100a180dfbf30a1c872100ec2dae8a61c0f5e8b3f2d3a5cbb34093826293e2ab" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-transaction-payment", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "pallet-transaction-payment 36.0.0", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-asset-tx-payment" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406a486466d15acc48c99420191f96f1af018f3381fde829c467aba489030f18" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-transaction-payment 38.0.2", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-assets" version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f79ef6a7763fc08177f014052469ee12aefcdad0d99a747372360c2f648d2cc4" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-assets" +version = "40.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f45f4eb6027fc34c4650e0ed6a7e57ed3335cc364be74b4531f714237676bcee" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-aura" version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0861b2a1ad6526948567bb59a3fdc4c7f02ee79b07be8b931a544350ec35ab0c" dependencies = [ - "frame-support", - "frame-system", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-timestamp", + "pallet-timestamp 35.0.0", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-consensus-aura", - "sp-runtime", + "sp-application-crypto 37.0.0", + "sp-consensus-aura 0.39.0", + "sp-runtime 38.0.0", "sp-std", ] [[package]] -name = "pallet-authority-discovery" -version = "36.0.0" +name = "pallet-aura" +version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2c3666a476132f5846fe4d5e1961a923a58a0f54d873d84566f24ffaa3684f" +checksum = "b31da6e794d655d1f9c4da6557a57399538d75905a7862a2ed3f7e5fb711d7e4" dependencies = [ - "frame-support", - "frame-system", - "pallet-session", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-timestamp 37.0.0", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-authority-discovery", - "sp-runtime", - "sp-std", + "sp-application-crypto 38.0.0", + "sp-consensus-aura 0.40.0", + "sp-runtime 39.0.5", ] [[package]] -name = "pallet-authorship" +name = "pallet-authority-discovery" version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38885846dbcf03b025fdbd7edb3649046dbc68fa0b419ffe8837ef853a10d31f" +checksum = "ed2c3666a476132f5846fe4d5e1961a923a58a0f54d873d84566f24ffaa3684f" dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", + "frame-support 36.0.0", + "frame-system 36.1.0", + "pallet-session 36.0.0", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-application-crypto 37.0.0", + "sp-authority-discovery 33.0.0", + "sp-runtime 38.0.0", "sp-std", ] [[package]] -name = "pallet-babe" -version = "36.0.0" +name = "pallet-authority-discovery" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b23d2d814e3cb793659fcf84533f66fdf0ed9cccb66cb2225851f482843ed096" +checksum = "ffb0208f0538d58dcb78ce1ff5e6e8641c5f37b23b20b05587e51da30ab13541" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "pallet-authorship", - "pallet-session", - "pallet-timestamp", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-session 38.0.0", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-consensus-babe", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", + "sp-application-crypto 38.0.0", + "sp-authority-discovery 34.0.0", + "sp-runtime 39.0.5", ] [[package]] -name = "pallet-bags-list" -version = "35.0.0" +name = "pallet-authorship" +version = "36.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38885846dbcf03b025fdbd7edb3649046dbc68fa0b419ffe8837ef853a10d31f" +dependencies = [ + "frame-support 36.0.0", + "frame-system 36.1.0", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "pallet-authorship" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625d47577cabbe1318ccec5d612e2379002d1b6af1ab6edcef3243c66ec246df" +dependencies = [ + "frame-support 38.2.0", + "frame-system 38.0.0", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime 39.0.5", +] + +[[package]] +name = "pallet-babe" +version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af34fa3fb6a0abe3577e435988039a9e441f6705ae2d3ad627a23e3f705baa2d" +checksum = "b23d2d814e3cb793659fcf84533f66fdf0ed9cccb66cb2225851f482843ed096" +dependencies = [ + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "log", + "pallet-authorship 36.0.0", + "pallet-session 36.0.0", + "pallet-timestamp 35.0.0", + "parity-scale-codec", + "scale-info", + "sp-application-crypto 37.0.0", + "sp-consensus-babe 0.39.0", + "sp-core", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-session 34.0.0", + "sp-staking 33.0.0", + "sp-std", +] + +[[package]] +name = "pallet-babe" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee096c0def13832475b340d00121025e0225de29604d44bc6dfcaa294c995b4" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-authorship 38.0.0", + "pallet-session 38.0.0", + "pallet-timestamp 37.0.0", + "parity-scale-codec", + "scale-info", + "sp-application-crypto 38.0.0", + "sp-consensus-babe 0.40.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", +] + +[[package]] +name = "pallet-bags-list" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fd23a6f94ba9c1e57c8a7f8a41327d132903a79c55c0c83f36cbae19946cf10" dependencies = [ "aquamarine", "docify", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-balances", + "pallet-balances 39.0.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-tracing", ] @@ -6330,80 +7103,94 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6878e240962d3887f0e0654ac343a18845adb95ad493c9d4d5e803c015d4a4c3" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-balances" +version = "39.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c6945b078919acb14d126490e4b0973a688568b30142476ca69c6df2bed27ad" +dependencies = [ + "docify", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-beefy" -version = "36.0.0" +version = "39.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "715dfcd1bf3f1f37af6335d4eb3cef921e746ac54721e2258c4fd968b61eb009" +checksum = "014d177a3aba19ac144fc6b2b5eb94930b9874734b91fd014902b6706288bb5f" dependencies = [ - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-authorship", - "pallet-session", + "pallet-authorship 38.0.0", + "pallet-session 38.0.0", "parity-scale-codec", "scale-info", "serde", - "sp-consensus-beefy", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", + "sp-consensus-beefy 22.1.0", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", ] [[package]] name = "pallet-beefy-mmr" -version = "36.0.0" +version = "39.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01d70c6f872eb3f2635355ccbea944a4f9ea411c0aa25f6f1a15219e8da11ad2" +checksum = "9c64f536e7f04cf3a0a17fdf20870ddb3d63a7690419c40f75cfd2f72b6e6d22" dependencies = [ "array-bytes", "binary-merkle-tree", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "pallet-beefy", "pallet-mmr", - "pallet-session", + "pallet-session 38.0.0", "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-consensus-beefy", + "sp-api 34.0.0", + "sp-consensus-beefy 22.1.0", "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", ] [[package]] name = "pallet-bounties" -version = "35.0.0" +version = "37.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0566499e74ba4b7ccbd1b667eef0dab76ca28402a8d501e22b73a363717b05a9" +checksum = "59f3d032f78624b12238a31b6e80ab3e112381a7bc222df152650e33bb2ce190" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-treasury", + "pallet-treasury 37.0.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -6412,20 +7199,40 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61d30a4860bb12559dc28b2d46dd865e2066bce83239230f748e2c569a3cadf4" dependencies = [ - "bp-header-chain", - "bp-runtime", - "bp-test-utils", + "bp-header-chain 0.15.0", + "bp-runtime 0.15.0", + "bp-test-utils 0.15.0", "finality-grandpa", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-consensus-grandpa 20.0.0", + "sp-runtime 38.0.0", + "sp-std", + "sp-trie 36.0.0", +] + +[[package]] +name = "pallet-bridge-grandpa" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d825fbed9fb68bc5d344311653dc0f69caeabe647365abf79a539310b2245f6" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-runtime 0.18.0", + "bp-test-utils 0.18.0", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", - "sp-consensus-grandpa", - "sp-runtime", + "sp-consensus-grandpa 21.0.0", + "sp-runtime 39.0.5", "sp-std", - "sp-trie", ] [[package]] @@ -6434,17 +7241,37 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3c0fcb1b9ae50ece73cbe36b72c2778f5d4637e4fb0cfac30cb16f7d4b61d5e" dependencies = [ - "bp-messages", - "bp-runtime", - "frame-benchmarking", - "frame-support", - "frame-system", + "bp-messages 0.15.0", + "bp-runtime 0.15.0", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "num-traits", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "pallet-bridge-messages" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1decdc9fb885e46eb17f850aa14f8cf39e17f31574aa6a5fa1a9e603cc526a2" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-messages 0.18.0", + "bp-runtime 0.18.0", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime 39.0.5", "sp-std", + "sp-trie 37.0.0", ] [[package]] @@ -6453,20 +7280,41 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3974fb658cf1b9ca8c2d3c77bf080b2f94c054c2b466b709ef29f6d3726f2231" dependencies = [ - "bp-header-chain", - "bp-parachains", - "bp-polkadot-core", - "bp-runtime", - "frame-benchmarking", - "frame-support", - "frame-system", + "bp-header-chain 0.15.0", + "bp-parachains 0.15.0", + "bp-polkadot-core 0.15.0", + "bp-runtime 0.15.0", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "log", + "pallet-bridge-grandpa 0.15.0", + "parity-scale-codec", + "scale-info", + "sp-runtime 38.0.0", + "sp-std", + "sp-trie 36.0.0", +] + +[[package]] +name = "pallet-bridge-parachains" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41450a8d214f20eaff57aeca8e647b20c0df7d66871ee2262609b90824bd4cca" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-parachains 0.18.0", + "bp-polkadot-core 0.18.0", + "bp-runtime 0.18.0", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-bridge-grandpa", + "pallet-bridge-grandpa 0.18.0", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "sp-trie", ] [[package]] @@ -6475,18 +7323,43 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c92383f4c7d1eaced8413e39b948227a527a0136f705660580c57753dc11568" dependencies = [ - "bp-messages", - "bp-relayers", - "bp-runtime", - "frame-benchmarking", - "frame-support", - "frame-system", + "bp-messages 0.15.0", + "bp-relayers 0.15.0", + "bp-runtime 0.15.0", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-bridge-messages", + "pallet-bridge-messages 0.15.0", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", - "sp-runtime", + "sp-runtime 38.0.0", + "sp-std", +] + +[[package]] +name = "pallet-bridge-relayers" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fe3be7077b7ddee7178b1b12e9171435da73778d093788e10b1bdfad1e10962" +dependencies = [ + "bp-header-chain 0.18.1", + "bp-messages 0.18.0", + "bp-relayers 0.18.0", + "bp-runtime 0.18.0", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-bridge-grandpa 0.18.0", + "pallet-bridge-messages 0.18.0", + "pallet-bridge-parachains 0.18.0", + "pallet-transaction-payment 38.0.2", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-runtime 39.0.5", "sp-std", ] @@ -6497,37 +7370,55 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd0d652c399b6ed776ee3322e60f40e323f86b413719d7696eddb8f64c368ac0" dependencies = [ "bitvec", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 33.0.0", "sp-arithmetic 26.0.0", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-broker" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "018b477d7d464c451b1d09a4ce9e792c3c65b15fd764b23da38ff9980e786065" +dependencies = [ + "bitvec", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-api 34.0.0", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-child-bounties" -version = "35.0.0" +version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38e351f103ebbdd1eb095da8c2379caccc82ebc59a740c2731693d2204286b83" +checksum = "c7f3bc38ae6584b5f57e4de3e49e5184bfc0f20692829530ae1465ffe04e09e7" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "pallet-bounties", - "pallet-treasury", + "pallet-treasury 37.0.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -6536,52 +7427,108 @@ version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f660cc09f2f277a3976da2eef856b5c725ab7ad1192902ef7f4e4bafd992f04f" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-authorship", - "pallet-balances", - "pallet-session", + "pallet-authorship 36.0.0", + "pallet-balances 37.0.0", + "pallet-session 36.0.0", "parity-scale-codec", "rand", "scale-info", - "sp-runtime", - "sp-staking", + "sp-runtime 38.0.0", + "sp-staking 33.0.0", "sp-std", ] +[[package]] +name = "pallet-collator-selection" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "658798d70c9054165169f6a6a96cfa9d6a5e7d24a524bc19825bf17fcbc5cc5a" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-session 38.0.0", + "parity-scale-codec", + "rand", + "scale-info", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", +] + +[[package]] +name = "pallet-collective" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e149f1aefd444c9a1da6ec5a94bc8a7671d7a33078f85dd19ae5b06e3438e60" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-conviction-voting" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9033f0d23500bbc39298fd50c07b89a2f2d9f07300139b4df8005995ef683875" +checksum = "999c242491b74395b8c5409ef644e782fe426d87ae36ad92240ffbf21ff0a76e" dependencies = [ "assert_matches", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + +[[package]] +name = "pallet-core-fellowship" +version = "22.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93052dd8d5910e1b939441541cec416e629b2c0ab92680124c2e5a137e12c285" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-ranked-collective", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-delegated-staking" -version = "3.0.0" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0596ec5ab55e02b1b5637b3ec2b99027d036fe97a1ab4733ae105474dfa727cf" +checksum = "117f003a97f980514c6db25a50c22aaec2a9ccb5664b3cb32f52fb990e0b0c12" dependencies = [ - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", ] [[package]] @@ -6590,39 +7537,76 @@ version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd1090fdc6ccdd8ff08c60000c970428baaaf0b33e7a6b01a91ec8b697a650a3" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-election-provider-support 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-election-provider-support-benchmarking", + "pallet-election-provider-support-benchmarking 35.0.0", "parity-scale-codec", "rand", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", + "sp-io 37.0.0", + "sp-npos-elections 33.0.0", + "sp-runtime 38.0.0", "sp-std", "strum 0.26.3", ] +[[package]] +name = "pallet-election-provider-multi-phase" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62f9ad5ae0c13ba3727183dadf1825b6b7b0b0598ed5c366f8697e13fd540f7d" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-election-provider-support-benchmarking 37.0.0", + "parity-scale-codec", + "rand", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-npos-elections 34.0.0", + "sp-runtime 39.0.5", + "strum 0.26.3", +] + [[package]] name = "pallet-election-provider-support-benchmarking" version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93475989d2f6900caf8f1c847a55d909295c156525a7510c5f1dde176ec7c714" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-election-provider-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", - "sp-npos-elections", - "sp-runtime", + "sp-npos-elections 33.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-election-provider-support-benchmarking" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4111d0d27545c260c9dd0d6fc504961db59c1ec4b42e1bcdc28ebd478895c22" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-system 38.0.0", + "parity-scale-codec", + "sp-npos-elections 34.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-fast-unstake" version = "35.0.0" @@ -6630,41 +7614,59 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9155f4f762513e0287320411415c76a647152799ad33db1785c9b71c36a14575" dependencies = [ "docify", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-election-provider-support 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-staking 33.0.0", "sp-std", ] +[[package]] +name = "pallet-fast-unstake" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0ee60e8ef10b3936f2700bd61fa45dcc190c61124becc63bed787addcfa0d20" +dependencies = [ + "docify", + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", +] + [[package]] name = "pallet-grandpa" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8244b686d5cae6a8af1557ed0f49db08f812f0e7942a8d2da554b4da8a69daf0" +checksum = "6d3a570a4aac3173ea46b600408183ca2bcfdaadc077f802f11e6055963e2449" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-authorship", - "pallet-session", + "pallet-authorship 38.0.0", + "pallet-session 38.0.0", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-consensus-grandpa", + "sp-application-crypto 38.0.0", + "sp-consensus-grandpa 21.0.0", "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", ] [[package]] @@ -6674,54 +7676,69 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4555795a3e0e3aa49ea432b7afecb9c71a7db8793a99c68bd8dd3a52a12571f3" dependencies = [ "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-identity" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a4288548de9a755e39fcb82ffb9024b6bb1ba0f582464a44423038dd7a892e" +dependencies = [ + "enumflags2", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-im-online" -version = "35.0.0" +version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa761292e95020304b58b50e5187f8bb82f557c8c2d013e3c96ab41d611873b0" +checksum = "c6fd95270cf029d16cb40fe6bd9f8ab9c78cd966666dccbca4d8bfec35c5bba5" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-authorship", + "pallet-authorship 38.0.0", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 38.0.0", "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", ] [[package]] name = "pallet-indices" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b183880ad5efae06afe6066e76f2bac5acf67f34b3cfab7352ceec46accf4b45" +checksum = "c5e4b97de630427a39d50c01c9e81ab8f029a00e56321823958b39b438f7b940" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", + "sp-io 38.0.0", "sp-keyring", - "sp-runtime", - "sp-std", + "sp-runtime 39.0.5", ] [[package]] @@ -6731,273 +7748,317 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8bb779dbfd58b3a4e6a84245392fe9d8c31a746ff7c6db414e91c012663859c3" dependencies = [ "environmental", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", "sp-weights 31.0.0", ] +[[package]] +name = "pallet-message-queue" +version = "41.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "983f7d1be18e9a089a3e23670918f5085705b4403acd3fdde31878d57b76a1a8" +dependencies = [ + "environmental", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-weights 31.0.0", +] + [[package]] name = "pallet-mmr" -version = "35.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf8ccec82827413f031689fef4c714fdb0213d58c7a6e208d33f5eab80483770" +checksum = "f6932dfb85f77a57c2d1fdc28a7b3a59ffe23efd8d5bb02dc3039d91347e4a3b" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-mmr-primitives", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-mmr-primitives 34.1.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-multisig" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be58483d827602eb8353ecf36aed65c857f0974db5d27981831e5ebf853040bd" +checksum = "0e5099c9a4442efcc1568d88ca1d22d624e81ab96358f99f616c67fbd82532d2" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-nfts" -version = "30.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e1cd476809de3840e19091a083d5a79178af1f108ad489706e1f9e04c8836a4" +checksum = "59e2aad461a0849d7f0471576eeb1fe3151795bcf2ec9e15eca5cca5b9d743b2" dependencies = [ "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-nfts-runtime-api" -version = "22.0.0" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0ca7a0446d2d3c27f726a016c6366218df2e0bfef9ed35886b252cfa9757f6c" +checksum = "a7a1f50c217e19dc50ff586a71eb5915df6a05bc0b25564ea20674c8cd182c1f" dependencies = [ "pallet-nfts", "parity-scale-codec", - "sp-api", - "sp-std", + "sp-api 34.0.0", ] [[package]] name = "pallet-nomination-pools" -version = "33.0.0" +version = "35.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36f8c994eb7298a394b58f98afd520b521b5d46f6f39eade4657eeaac9962471" +checksum = "50d04f050ab02af6cbe058e101abb8706be7f8ea7958e5bf1d4cd8caa6b66c71" dependencies = [ - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-balances", + "pallet-balances 39.0.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", "sp-tracing", ] [[package]] name = "pallet-nomination-pools-benchmarking" -version = "34.0.0" +version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39ee599f2861e55fc6113c01e9b14d6e85fda46bac36a906b5dd5a951fa0455c" +checksum = "38d2eaca0349bcda923343226b8b64d25a80b67e0a1ebaaa5b0ab1e1b3b225bc" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "pallet-bags-list", "pallet-delegated-staking", "pallet-nomination-pools", - "pallet-staking", + "pallet-staking 38.0.0", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 39.0.5", "sp-runtime-interface", - "sp-staking", - "sp-std", + "sp-staking 36.0.0", ] [[package]] name = "pallet-nomination-pools-runtime-api" -version = "31.0.0" +version = "33.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2906899d8f029780f0d9da77b90ae86f42bcfda5ac402c931406cd84852012ed" +checksum = "03eea431eba0658ca763a078bd849e0622c37c85eddd011b8e886460b50c0827" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", - "sp-api", - "sp-std", + "sp-api 34.0.0", ] [[package]] name = "pallet-offences" -version = "35.0.0" +version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4859e7bb2af46d2e0f137c2f777adf39f0e5d4d188226158d599f1cfcfb76b9e" +checksum = "6c4379cf853465696c1c5c03e7e8ce80aeaca0a6139d698abe9ecb3223fd732a" dependencies = [ - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-balances", + "pallet-balances 39.0.0", "parity-scale-codec", "scale-info", "serde", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", ] [[package]] name = "pallet-offences-benchmarking" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4351b0edafcdf3240f0471c638b39d2c981bde9d17c0172536a0aa3b7c3097ef" +checksum = "69aa1b24cdffc3fa8c89cdea32c83f1bf9c1c82a87fa00e57ae4be8e85f5e24f" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-babe", - "pallet-balances", + "pallet-babe 38.0.0", + "pallet-balances 39.0.0", "pallet-grandpa", "pallet-im-online", "pallet-offences", - "pallet-session", - "pallet-staking", + "pallet-session 38.0.0", + "pallet-staking 38.0.0", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", ] [[package]] name = "pallet-parameters" -version = "0.7.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58d9a81a93202105a660e6aa3d3f81638bdd109ca0497f3e528529cd52d034db" +checksum = "b9aba424d55e17b2a2bec766a41586eab878137704d4803c04bebd6a4743db7b" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "paste", "scale-info", "serde", "sp-core", - "sp-runtime", - "sp-std", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-preimage" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ac726abc5b1bcd6c8f783514b8e1a48be32c7d15e0b263e4bc28cc1e4e7763" +checksum = "407828bc48c6193ac076fdf909b2fadcaaecd65f42b0b0a04afe22fe8e563834" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-proxy" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4e12680e176607815a78a0cd10a52af50790292cb950404f30a885e2a7229e9" +checksum = "d39df395f0dbcf07dafe842916adea3266a87ce36ed87b5132184b6bcd746393" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + +[[package]] +name = "pallet-ranked-collective" +version = "38.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15a640e732164203eb5298823cc8c29cfc563763c43c9114e76153b3166b8b9d" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-referenda" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2c906a9c4573eb58de4134ec7180bf12c6769df2b9859dae8adcbc5fce78add" +checksum = "c3008c20531d1730c9b457ae77ecf0e3c9b07aaf8c4f5d798d61ef6f0b9e2d4b" dependencies = [ "assert_matches", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "serde", "sp-arithmetic 26.0.0", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + +[[package]] +name = "pallet-salary" +version = "23.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3af2d92b1fef1c379c0692113b505c108c186e09c25c72b38e879b6e0f172ebe" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-ranked-collective", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-scheduler" -version = "37.0.0" +version = "39.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b170d6aa191197d3f50b1193925546972ffc394376ead4d2739eb40909b73c85" +checksum = "26899a331e7ab5f7d5966cbf203e1cf5bd99cd110356d7ddcaa7597087cdc0b5" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-weights 31.0.0", ] @@ -7007,39 +8068,60 @@ version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c92b24c911c2cfa5351616edc7f2f93427ea6f4f95efdb13f0f5d51997939c3" dependencies = [ - "frame-support", - "frame-system", + "frame-support 36.0.0", + "frame-system 36.1.0", "impl-trait-for-tuples", "log", - "pallet-timestamp", + "pallet-timestamp 35.0.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-state-machine", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-session 34.0.0", + "sp-staking 33.0.0", + "sp-state-machine 0.42.0", "sp-std", - "sp-trie", + "sp-trie 36.0.0", +] + +[[package]] +name = "pallet-session" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8474b62b6b7622f891e83d922a589e2ad5be5471f5ca47d45831a797dba0b3f4" +dependencies = [ + "frame-support 38.2.0", + "frame-system 38.0.0", + "impl-trait-for-tuples", + "log", + "pallet-timestamp 37.0.0", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", + "sp-state-machine 0.43.0", + "sp-trie 37.0.0", ] [[package]] name = "pallet-session-benchmarking" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd02aaf5f10734670346677042ece94fae20dcd5436eafeb9b429d8d6d5b6385" +checksum = "8aadce7df0fee981721983795919642648b846dab5ab9096f82c2cea781007d0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-session", - "pallet-staking", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-session 38.0.0", + "pallet-staking 38.0.0", "parity-scale-codec", "rand", - "sp-runtime", - "sp-session", - "sp-std", + "sp-runtime 39.0.5", + "sp-session 36.0.0", ] [[package]] @@ -7048,24 +8130,47 @@ version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fbebdb060417654f215fc6f03675e5f44cfc83837d9e523e1b8fd9a4a2e1bdc2" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-election-provider-support 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-authorship", - "pallet-session", + "pallet-authorship 36.0.0", + "pallet-session 36.0.0", "parity-scale-codec", "rand_chacha", "scale-info", "serde", - "sp-application-crypto", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-application-crypto 37.0.0", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-staking 33.0.0", "sp-std", ] +[[package]] +name = "pallet-staking" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c870d123f4f053b56af808a4beae1ffc4309a696e829796c26837936c926db3b" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-authorship 38.0.0", + "pallet-session 38.0.0", + "parity-scale-codec", + "rand_chacha", + "scale-info", + "serde", + "sp-application-crypto 38.0.0", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", +] + [[package]] name = "pallet-staking-reward-curve" version = "12.0.0" @@ -7075,7 +8180,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -7090,48 +8195,46 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" -version = "21.0.0" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3350ef1795b832f4adc464e88fb6d44827bd3f98701b0b0bbee495267b444a92" +checksum = "e7298559ef3a6b2f5dfbe9a3b8f3d22f2ff9b073c97f4c4853d2b316d973e72d" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-staking", + "sp-api 34.0.0", + "sp-staking 36.0.0", ] [[package]] name = "pallet-state-trie-migration" -version = "37.0.0" +version = "40.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e07f8626f4ff62ac79d6ad0bd01fab7645897ce35706ddb95fa084e75be9306d" +checksum = "138c15b4200b9dc4c3e031def6a865a235cdc76ff91ee96fba19ca1787c9dda6" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] name = "pallet-sudo" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bd2a8797c1bb3d3897b4f87a7716111da5eeb8561345277b6e6d70349ec8b35" +checksum = "1574fe2aed3d52db4a389b77b53d8c9758257b121e3e7bbe24c4904e11681e0e" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 38.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -7141,18 +8244,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae789d344be857679b0b98b28a67c747119724847f81d704d3fd03ee13fb6841" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-inherents", - "sp-io", - "sp-runtime", + "sp-inherents 33.0.0", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", "sp-storage", - "sp-timestamp", + "sp-timestamp 33.0.0", +] + +[[package]] +name = "pallet-timestamp" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9ba9b71bbfd33ae672f23ba7efaeed2755fdac37b8f946cb7474fc37841b7e1" +dependencies = [ + "docify", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-inherents 34.0.0", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-storage", + "sp-timestamp 34.0.0", ] [[package]] @@ -7161,27 +8284,43 @@ version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74fb6114223c8d967c3c2f21cbc845e8ea604ff7e21a8e59d119d5a9257ba886" dependencies = [ - "frame-support", - "frame-system", + "frame-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-transaction-payment" +version = "38.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cdb86580c72b58145f9cddba21a0c1814742ca56abc9caac3c1ac72f6bde649" +dependencies = [ + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4bad1700ad7eb5ab254189e1df894d1d16b3626a3c4b9c45259ec4d9efc262c" +checksum = "49fdf5ab71e9dbcadcf7139736b6ea6bac8ec4a83985d46cbd130e1eec770e41" dependencies = [ - "pallet-transaction-payment", + "pallet-transaction-payment 38.0.2", "parity-scale-codec", - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", "sp-weights 31.0.0", ] @@ -7192,33 +8331,51 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c502615bb4fdd02856a131cb2a612ad40c26435ec938f65f11cae4ff230812b" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "impl-trait-for-tuples", - "pallet-balances", + "pallet-balances 37.0.0", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-treasury" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98bfdd3bb9b58fb010bcd419ff5bf940817a8e404cdbf7886a53ac730f5dda2b" +dependencies = [ + "docify", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "impl-trait-for-tuples", + "pallet-balances 39.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-uniques" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a59e8599a8c19908e934645f845b5cb546cef1f08745319db7e5b9c24f9e0e4" +checksum = "c2b13cdaedf2d5bd913a5f6e637cb52b5973d8ed4b8d45e56d921bc4d627006f" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-std", + "sp-runtime 39.0.5", ] [[package]] @@ -7227,47 +8384,77 @@ version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3238fe6ad00da6a137be115904c39cab97eb5c7f03da0bb1a20de1bef03f0c71" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-utility" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fdcade6efc0b66fc7fc4138964802c02d0ffb7380d894e26b9dd5073727d2b3" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-vesting" version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78f7f0f4fe5e1d851e85d81e5e73b6f929f0c35af786ce8be9c9e3363717c136" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "pallet-vesting" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "807df2ef13ab6bf940879352c3013bfa00b670458b4c125c2f60e5753f68e3d5" +dependencies = [ + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime 39.0.5", +] + [[package]] name = "pallet-whitelist" -version = "35.0.0" +version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e4f27640279229eb73fde0cb06e98b799305e6b0bc724f4dfbef2001ab4ad00" +checksum = "1ef17df925290865cf37096dd0cb76f787df11805bba01b1d0ca3e106d06280b" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", - "sp-api", - "sp-runtime", - "sp-std", + "sp-api 34.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -7277,66 +8464,89 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe7409458b7fedc5c7d46459da154ccc2dc22a843ce08e8ab6c1743ef5cf972c" dependencies = [ "bounded-collections", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-balances", + "pallet-balances 37.0.0", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "xcm-runtime-apis", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "staging-xcm-executor 15.0.0", + "xcm-runtime-apis 0.2.0", +] + +[[package]] +name = "pallet-xcm" +version = "17.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "989676964dbda5f5275650fbdcd3894fe7fac626d113abf89d572b4952adcc36" +dependencies = [ + "bounded-collections", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-balances 39.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "tracing", + "xcm-runtime-apis 0.4.2", ] [[package]] name = "pallet-xcm-benchmarks" -version = "15.0.0" +version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f177a171203cc0bec3cff1bdd5d3b926abfbd0ecf347e044b147194e664f717" +checksum = "2da423463933b42f4a4c74175f9e9295a439de26719579b894ce533926665e4a" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", ] [[package]] name = "pallet-xcm-bridge-hub" -version = "0.10.0" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b663d0aca0364d576464bd3c976c72ebfe51b3d5f5367686eb7da72c6cb71f23" +checksum = "f336403f9e9bf22a0e1fdb90aa5093c52599c9a0639591fbcc1e979b58862d1b" dependencies = [ - "bp-messages", - "bp-runtime", - "bp-xcm-bridge-hub", - "bridge-runtime-common", - "frame-support", - "frame-system", + "bp-messages 0.18.0", + "bp-runtime 0.18.0", + "bp-xcm-bridge-hub 0.4.2", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", - "pallet-bridge-messages", + "pallet-bridge-messages 0.18.0", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", ] [[package]] @@ -7345,18 +8555,38 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f48bd38d4061a51f263f4c08021e66100e16cbda9978fba163d2544637b31dab" dependencies = [ - "bp-xcm-bridge-hub-router", - "frame-benchmarking", - "frame-support", - "frame-system", + "bp-xcm-bridge-hub-router 0.13.0", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 38.0.0", + "sp-std", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", +] + +[[package]] +name = "pallet-xcm-bridge-hub-router" +version = "0.15.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabf1fdcf451ac79995f11cb9b6a0761924c57bb79442c2d91b3bbefe4dfa081" +dependencies = [ + "bp-xcm-bridge-hub-router 0.14.1", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", ] [[package]] @@ -7365,30 +8595,61 @@ version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9319e656eebdf161666e54a4d8e24f73137f702f01600247f7be650bc4d46167" dependencies = [ - "cumulus-primitives-core", - "cumulus-primitives-utility", - "frame-support", - "frame-system", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-utility 0.15.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "log", - "pallet-asset-tx-payment", - "pallet-assets", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-message-queue", - "pallet-xcm", + "pallet-asset-tx-payment 36.0.0", + "pallet-assets 37.0.0", + "pallet-authorship 36.0.0", + "pallet-balances 37.0.0", + "pallet-collator-selection 17.0.0", + "pallet-message-queue 39.0.1", + "pallet-xcm 15.0.0", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 14.0.0", "scale-info", - "sp-consensus-aura", + "sp-consensus-aura 0.39.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-executor", - "substrate-wasm-builder", + "staging-parachain-info 0.15.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 15.0.0", + "substrate-wasm-builder 23.0.0", +] + +[[package]] +name = "parachains-common" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9460a69f409be27c62161d8b4d36ffc32735d09a4f9097f9c789db0cca7196c" +dependencies = [ + "cumulus-primitives-core 0.16.0", + "cumulus-primitives-utility 0.17.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "log", + "pallet-asset-tx-payment 38.0.0", + "pallet-assets 40.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-message-queue 41.0.2", + "pallet-xcm 17.0.1", + "parity-scale-codec", + "polkadot-primitives 16.0.0", + "scale-info", + "sp-consensus-aura 0.40.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", ] [[package]] @@ -7397,30 +8658,63 @@ version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c778447d2e71a418b083c0458579d0f8d13872f43c63142d9e5157edea000bdd" dependencies = [ - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "cumulus-primitives-parachain-inherent", - "cumulus-test-relay-sproof-builder", - "frame-support", - "frame-system", - "pallet-balances", - "pallet-collator-selection", - "pallet-session", - "pallet-timestamp", - "pallet-xcm", - "parity-scale-codec", - "polkadot-parachain-primitives", - "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-parachain-inherent 0.14.0", + "cumulus-test-relay-sproof-builder 0.14.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "pallet-balances 37.0.0", + "pallet-collator-selection 17.0.0", + "pallet-session 36.0.0", + "pallet-timestamp 35.0.0", + "pallet-xcm 15.0.0", + "parity-scale-codec", + "polkadot-parachain-primitives 13.0.0", + "sp-consensus-aura 0.39.0", + "sp-core", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", "sp-tracing", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-executor", - "substrate-wasm-builder", + "staging-parachain-info 0.15.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 15.0.0", + "substrate-wasm-builder 23.0.0", +] + +[[package]] +name = "parachains-runtimes-test-utils" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d37c6a0fe791b244282e445c7ae2534217b05781a7e47ef9e391860cf3412210" +dependencies = [ + "cumulus-pallet-parachain-system 0.17.1", + "cumulus-pallet-xcmp-queue 0.17.0", + "cumulus-primitives-core 0.16.0", + "cumulus-primitives-parachain-inherent 0.16.0", + "cumulus-test-relay-sproof-builder 0.16.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-session 38.0.0", + "pallet-timestamp 37.0.0", + "pallet-xcm 17.0.1", + "parachains-common 18.0.0", + "parity-scale-codec", + "polkadot-parachain-primitives 14.0.0", + "sp-consensus-aura 0.40.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-tracing", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", + "xcm-runtime-apis 0.4.2", ] [[package]] @@ -7569,55 +8863,56 @@ name = "paseo-emulated-chain" version = "1.0.0" dependencies = [ "emulated-integration-tests-common", - "pallet-staking", - "parachains-common", + "pallet-staking 38.0.0", + "parachains-common 18.0.0", "paseo-runtime", "paseo-runtime-constants", - "polkadot-primitives", - "sc-consensus-grandpa", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-consensus-beefy", + "polkadot-primitives 16.0.0", + "sc-consensus-grandpa 0.30.0", + "sp-authority-discovery 34.0.0", + "sp-consensus-babe 0.40.0", + "sp-consensus-beefy 22.1.0", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", ] [[package]] name = "paseo-runtime" -version = "1.3.4" +version = "1.4.0" dependencies = [ "approx", "binary-merkle-tree", - "frame-benchmarking", - "frame-election-provider-support", + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", "frame-executive", "frame-metadata-hash-extension", "frame-remote-externalities", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-asset-rate", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", + "pallet-asset-rate 17.0.0", + "pallet-authority-discovery 38.0.0", + "pallet-authorship 38.0.0", + "pallet-babe 38.0.0", "pallet-bags-list", - "pallet-balances", + "pallet-balances 39.0.0", "pallet-beefy", "pallet-beefy-mmr", "pallet-bounties", - "pallet-broker", + "pallet-broker 0.17.2", "pallet-child-bounties", "pallet-conviction-voting", - "pallet-election-provider-multi-phase", - "pallet-election-provider-support-benchmarking", - "pallet-fast-unstake", + "pallet-delegated-staking", + "pallet-election-provider-multi-phase 37.0.0", + "pallet-election-provider-support-benchmarking 37.0.0", + "pallet-fast-unstake 37.0.0", "pallet-grandpa", "pallet-indices", - "pallet-message-queue", + "pallet-message-queue 41.0.2", "pallet-mmr", "pallet-multisig", "pallet-nomination-pools", @@ -7630,78 +8925,78 @@ dependencies = [ "pallet-proxy", "pallet-referenda", "pallet-scheduler", - "pallet-session", + "pallet-session 38.0.0", "pallet-session-benchmarking", - "pallet-staking", + "pallet-staking 38.0.0", "pallet-staking-reward-curve", "pallet-staking-reward-fn", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", + "pallet-treasury 37.0.0", + "pallet-utility 38.0.0", + "pallet-vesting 38.0.0", "pallet-whitelist", - "pallet-xcm", + "pallet-xcm 17.0.1", "pallet-xcm-benchmarks", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 14.0.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-common 17.0.0", + "polkadot-runtime-parachains 17.0.2", "relay-common", "scale-info", "separator", "serde_json", - "sp-api", - "sp-application-crypto", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", "sp-arithmetic 26.0.0", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-consensus-beefy", + "sp-authority-discovery 34.0.0", + "sp-block-builder 34.0.0", + "sp-consensus-babe 0.40.0", + "sp-consensus-beefy 22.1.0", "sp-core", "sp-debug-derive", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", + "sp-io 38.0.0", "sp-keyring", - "sp-npos-elections", + "sp-npos-elections 34.0.0", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", "sp-std", "sp-storage", "sp-tracing", "sp-transaction-pool", - "sp-trie", - "sp-version", + "sp-trie 37.0.0", + "sp-version 37.0.0", "ss58-registry", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", "tokio", - "xcm-runtime-apis", + "xcm-runtime-apis 0.4.2", ] [[package]] name = "paseo-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support", - "polkadot-primitives", - "polkadot-runtime-common", + "frame-support 38.2.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-common 17.0.0", "smallvec", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-weights 31.0.0", - "staging-xcm-builder", + "staging-xcm-builder 17.0.3", ] [[package]] @@ -7730,9 +9025,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pbkdf2" @@ -7757,87 +9052,88 @@ dependencies = [ name = "penpal-emulated-chain" version = "1.0.0" dependencies = [ - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "emulated-integration-tests-common", - "frame-support", - "parachains-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", "paseo-emulated-chain", "penpal-runtime", "sp-core", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", ] [[package]] name = "penpal-runtime" -version = "0.22.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35e9e9644360684706e3f4abcc85ccec611d142d5f7c2b72c12e7c0d28c49de1" +checksum = "20094cbee22c7e6099653d69ca9a36678be58d6a1739adceb0c98a7b20df53c7" dependencies = [ "assets-common", - "cumulus-pallet-aura-ext", - "cumulus-pallet-parachain-system", - "cumulus-pallet-session-benchmarking", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "cumulus-primitives-utility", - "frame-benchmarking", + "cumulus-pallet-aura-ext 0.17.0", + "cumulus-pallet-parachain-system 0.17.1", + "cumulus-pallet-session-benchmarking 19.0.0", + "cumulus-pallet-xcm 0.17.0", + "cumulus-pallet-xcmp-queue 0.17.0", + "cumulus-primitives-core 0.16.0", + "cumulus-primitives-utility 0.17.0", + "frame-benchmarking 38.0.0", "frame-executive", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "log", - "pallet-asset-tx-payment", - "pallet-assets", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-message-queue", - "pallet-session", + "pallet-asset-conversion 20.0.0", + "pallet-asset-tx-payment 38.0.0", + "pallet-assets 40.0.0", + "pallet-aura 37.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-message-queue 41.0.2", + "pallet-session 38.0.0", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", "pallet-transaction-payment-rpc-runtime-api", - "pallet-xcm", - "parachains-common", + "pallet-xcm 17.0.1", + "parachains-common 18.0.0", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-common", + "polkadot-parachain-primitives 14.0.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-common 17.0.0", + "primitive-types", "scale-info", "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", + "sp-api 34.0.0", + "sp-block-builder 34.0.0", + "sp-consensus-aura 0.40.0", "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", + "sp-runtime 39.0.5", + "sp-session 36.0.0", "sp-storage", "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", - "xcm-runtime-apis", + "sp-version 37.0.0", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", + "xcm-runtime-apis 0.4.2", ] [[package]] name = "people-paseo-emulated-chain" version = "1.0.0" dependencies = [ - "cumulus-primitives-core", + "cumulus-primitives-core 0.14.0", "emulated-integration-tests-common", - "frame-support", - "parachains-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", "paseo-emulated-chain", "people-paseo-runtime", "sp-core", @@ -7847,69 +9143,69 @@ dependencies = [ name = "people-paseo-runtime" version = "1.0.0" dependencies = [ - "cumulus-pallet-aura-ext", - "cumulus-pallet-parachain-system", - "cumulus-pallet-session-benchmarking", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", + "cumulus-pallet-aura-ext 0.15.0", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-session-benchmarking 17.0.0", + "cumulus-pallet-xcm 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", "cumulus-primitives-aura", - "cumulus-primitives-core", - "cumulus-primitives-utility", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-utility 0.15.0", "enumflags2", - "frame-benchmarking", + "frame-benchmarking 38.0.0", "frame-executive", "frame-metadata-hash-extension", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-identity", - "pallet-message-queue", + "pallet-aura 37.0.0", + "pallet-authorship 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-identity 38.0.0", + "pallet-message-queue 41.0.2", "pallet-multisig", "pallet-proxy", - "pallet-session", + "pallet-session 38.0.0", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", + "pallet-utility 38.0.0", + "pallet-xcm 17.0.1", "pallet-xcm-benchmarks", - "parachains-common", + "parachains-common 18.0.0", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-parachain-primitives", - "polkadot-runtime-common", + "polkadot-parachain-primitives 14.0.0", + "polkadot-runtime-common 17.0.0", "scale-info", "serde", "serde_json", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", + "sp-api 34.0.0", + "sp-block-builder 34.0.0", + "sp-consensus-aura 0.40.0", "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-genesis-builder 0.15.1", + "sp-inherents 34.0.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 39.0.5", + "sp-session 36.0.0", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "sp-version 37.0.0", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", + "substrate-wasm-builder 24.0.1", "system-parachains-constants 1.0.0", - "xcm-runtime-apis", + "xcm-runtime-apis 0.4.2", ] [[package]] @@ -7956,7 +9252,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -7993,12 +9289,6 @@ version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a" -[[package]] -name = "platforms" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14e6ab3f592e6fb464fc9712d8d6e6912de6473954635fd76a589d832cffcbb0" - [[package]] name = "polkadot-ckb-merkle-mountain-range" version = "0.7.0" @@ -8018,10 +9308,22 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "polkadot-core-primitives" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2900d3b857e34c480101618a950c3a4fbcddc8c0d50573d48553376185908b8" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime 39.0.5", +] + [[package]] name = "polkadot-parachain-primitives" version = "13.0.0" @@ -8031,15 +9333,32 @@ dependencies = [ "bounded-collections", "derive_more", "parity-scale-codec", - "polkadot-core-primitives", + "polkadot-core-primitives 14.0.0", "scale-info", "serde", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", "sp-weights 31.0.0", ] +[[package]] +name = "polkadot-parachain-primitives" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5648a2e8ce1f9a0f8c41c38def670cefd91932cd793468e1a5b0b0b4e4af1" +dependencies = [ + "bounded-collections", + "derive_more", + "parity-scale-codec", + "polkadot-core-primitives 15.0.0", + "scale-info", + "serde", + "sp-core", + "sp-runtime 39.0.5", + "sp-weights 31.0.0", +] + [[package]] name = "polkadot-primitives" version = "14.0.0" @@ -8050,24 +9369,51 @@ dependencies = [ "hex-literal", "log", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 14.0.0", + "polkadot-parachain-primitives 13.0.0", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", "sp-arithmetic 26.0.0", - "sp-authority-discovery", - "sp-consensus-slots", + "sp-authority-discovery 33.0.0", + "sp-consensus-slots 0.39.0", "sp-core", - "sp-inherents", - "sp-io", + "sp-inherents 33.0.0", + "sp-io 37.0.0", "sp-keystore", - "sp-runtime", - "sp-staking", + "sp-runtime 38.0.0", + "sp-staking 33.0.0", "sp-std", ] +[[package]] +name = "polkadot-primitives" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bb20b75d33212150242d39890d7ededab55f1084160c337f15d0eb8ca8c3ad4" +dependencies = [ + "bitvec", + "hex-literal", + "log", + "parity-scale-codec", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "scale-info", + "serde", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", + "sp-arithmetic 26.0.0", + "sp-authority-discovery 34.0.0", + "sp-consensus-slots 0.40.1", + "sp-core", + "sp-inherents 34.0.0", + "sp-io 38.0.0", + "sp-keystore", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", +] + [[package]] name = "polkadot-runtime-common" version = "15.0.0" @@ -8075,127 +9421,241 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28fdcb41bb21c7b14d0341a9a17364ccc04ad34de05d41e7938cb03acbc11066" dependencies = [ "bitvec", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 36.0.0", + "frame-election-provider-support 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "impl-trait-for-tuples", + "libsecp256k1", + "log", + "pallet-asset-rate 15.0.0", + "pallet-authorship 36.0.0", + "pallet-babe 36.0.0", + "pallet-balances 37.0.0", + "pallet-broker 0.15.0", + "pallet-election-provider-multi-phase 35.0.0", + "pallet-fast-unstake 35.0.0", + "pallet-identity 36.0.0", + "pallet-session 36.0.0", + "pallet-staking 36.0.0", + "pallet-staking-reward-fn", + "pallet-timestamp 35.0.0", + "pallet-transaction-payment 36.0.0", + "pallet-treasury 35.0.0", + "pallet-vesting 36.0.0", + "parity-scale-codec", + "polkadot-primitives 14.0.0", + "polkadot-runtime-parachains 15.0.2", + "rustc-hex", + "scale-info", + "serde", + "serde_derive", + "slot-range-helper 14.0.0", + "sp-api 33.0.0", + "sp-core", + "sp-inherents 33.0.0", + "sp-io 37.0.0", + "sp-npos-elections 33.0.0", + "sp-runtime 38.0.0", + "sp-session 34.0.0", + "sp-staking 33.0.0", + "sp-std", + "staging-xcm 14.2.0", + "staging-xcm-builder 15.0.0", + "staging-xcm-executor 15.0.0", + "static_assertions", +] + +[[package]] +name = "polkadot-runtime-common" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc15154ba5ca55d323fcf7af0f5dcd39d58dcb4dfac3d9b30404840a6d8bbde4" +dependencies = [ + "bitvec", + "frame-benchmarking 38.0.0", + "frame-election-provider-support 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "impl-trait-for-tuples", "libsecp256k1", "log", - "pallet-asset-rate", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-broker", - "pallet-election-provider-multi-phase", - "pallet-fast-unstake", - "pallet-identity", - "pallet-session", - "pallet-staking", + "pallet-asset-rate 17.0.0", + "pallet-authorship 38.0.0", + "pallet-babe 38.0.0", + "pallet-balances 39.0.0", + "pallet-broker 0.17.2", + "pallet-election-provider-multi-phase 37.0.0", + "pallet-fast-unstake 37.0.0", + "pallet-identity 38.0.0", + "pallet-session 38.0.0", + "pallet-staking 38.0.0", "pallet-staking-reward-fn", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-treasury", - "pallet-vesting", + "pallet-timestamp 37.0.0", + "pallet-transaction-payment 38.0.2", + "pallet-treasury 37.0.0", + "pallet-vesting 38.0.0", "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-parachains", + "polkadot-primitives 16.0.0", + "polkadot-runtime-parachains 17.0.2", "rustc-hex", "scale-info", "serde", "serde_derive", - "slot-range-helper", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "slot-range-helper 15.0.0", + "sp-api 34.0.0", + "sp-core", + "sp-inherents 34.0.0", + "sp-io 38.0.0", + "sp-npos-elections 34.0.0", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", "static_assertions", ] [[package]] name = "polkadot-runtime-constants" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "frame-support", - "polkadot-primitives", - "polkadot-runtime-common", + "frame-support 38.2.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-common 17.0.0", "smallvec", "sp-core", - "sp-runtime", - "sp-weights 31.0.0", - "staging-xcm-builder", -] - -[[package]] -name = "polkadot-runtime-metrics" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac75b3fea8464e5681b44733ed11cf09e22ff1e956f6703b918b637bd40e7427" -dependencies = [ - "bs58 0.5.0", - "frame-benchmarking", - "parity-scale-codec", - "polkadot-primitives", + "sp-runtime 39.0.5", + "sp-weights 31.0.0", + "staging-xcm-builder 17.0.3", +] + +[[package]] +name = "polkadot-runtime-metrics" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac75b3fea8464e5681b44733ed11cf09e22ff1e956f6703b918b637bd40e7427" +dependencies = [ + "bs58 0.5.1", + "frame-benchmarking 36.0.0", + "parity-scale-codec", + "polkadot-primitives 14.0.0", + "sp-std", + "sp-tracing", +] + +[[package]] +name = "polkadot-runtime-metrics" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c306f1ace7644a24de860479f92cf8d6467393bb0c9b0777c57e2d42c9d452a" +dependencies = [ + "bs58 0.5.1", + "frame-benchmarking 38.0.0", + "parity-scale-codec", + "polkadot-primitives 16.0.0", + "sp-tracing", +] + +[[package]] +name = "polkadot-runtime-parachains" +version = "15.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb1cf1fa41c64b0b515a33d7bd388c3af0de31e5f93bd4c2b220e408f7f968" +dependencies = [ + "bitflags 1.3.2", + "bitvec", + "derive_more", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "impl-trait-for-tuples", + "log", + "pallet-authority-discovery 36.0.0", + "pallet-authorship 36.0.0", + "pallet-babe 36.0.0", + "pallet-balances 37.0.0", + "pallet-broker 0.15.0", + "pallet-message-queue 39.0.1", + "pallet-session 36.0.0", + "pallet-staking 36.0.0", + "pallet-timestamp 35.0.0", + "pallet-vesting 36.0.0", + "parity-scale-codec", + "polkadot-core-primitives 14.0.0", + "polkadot-parachain-primitives 13.0.0", + "polkadot-primitives 14.0.0", + "polkadot-runtime-metrics 15.0.0", + "rand", + "rand_chacha", + "scale-info", + "serde", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-inherents 33.0.0", + "sp-io 37.0.0", + "sp-keystore", + "sp-runtime 38.0.0", + "sp-session 34.0.0", + "sp-staking 33.0.0", "sp-std", - "sp-tracing", + "staging-xcm 14.2.0", + "staging-xcm-executor 15.0.0", + "static_assertions", ] [[package]] name = "polkadot-runtime-parachains" -version = "15.0.2" +version = "17.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6cb1cf1fa41c64b0b515a33d7bd388c3af0de31e5f93bd4c2b220e408f7f968" +checksum = "1d4cdf181c2419b35c2cbde813da2d8ee777b69b4a6fa346b962d144e3521976" dependencies = [ "bitflags 1.3.2", "bitvec", "derive_more", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "impl-trait-for-tuples", "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-broker", - "pallet-message-queue", - "pallet-session", - "pallet-staking", - "pallet-timestamp", - "pallet-vesting", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-metrics", + "pallet-authority-discovery 38.0.0", + "pallet-authorship 38.0.0", + "pallet-babe 38.0.0", + "pallet-balances 39.0.0", + "pallet-broker 0.17.2", + "pallet-message-queue 41.0.2", + "pallet-mmr", + "pallet-session 38.0.0", + "pallet-staking 38.0.0", + "pallet-timestamp 37.0.0", + "pallet-vesting 38.0.0", + "parity-scale-codec", + "polkadot-core-primitives 15.0.0", + "polkadot-parachain-primitives 14.0.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-metrics 17.0.0", "rand", "rand_chacha", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", "sp-arithmetic 26.0.0", "sp-core", - "sp-inherents", - "sp-io", + "sp-inherents 34.0.0", + "sp-io 38.0.0", "sp-keystore", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 39.0.5", + "sp-session 36.0.0", + "sp-staking 36.0.0", "sp-std", "sp-tracing", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", "static_assertions", ] @@ -8248,7 +9708,7 @@ dependencies = [ "polkavm-common", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8258,7 +9718,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" dependencies = [ "polkavm-derive-impl", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8394,7 +9854,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5" dependencies = [ "proc-macro2", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8463,7 +9923,7 @@ checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8474,14 +9934,14 @@ checksum = "9b698b0b09d40e9b7c1a47b132d66a8b54bcd20583d9b6d06e4535e383b4405c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] name = "proc-macro2" -version = "1.0.82" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b" +checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" dependencies = [ "unicode-ident", ] @@ -8520,7 +9980,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8602,7 +10062,7 @@ dependencies = [ "prost 0.12.6", "prost-types 0.12.6", "regex", - "syn 2.0.65", + "syn 2.0.98", "tempfile", ] @@ -8629,7 +10089,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8708,7 +10168,7 @@ dependencies = [ "pin-project-lite 0.2.13", "quinn-proto 0.9.6", "quinn-udp 0.3.2", - "rustc-hash", + "rustc-hash 1.1.0", "rustls 0.20.9", "thiserror", "tokio", @@ -8727,7 +10187,7 @@ dependencies = [ "pin-project-lite 0.2.13", "quinn-proto 0.10.6", "quinn-udp 0.4.1", - "rustc-hash", + "rustc-hash 1.1.0", "rustls 0.21.10", "thiserror", "tokio", @@ -8743,7 +10203,7 @@ dependencies = [ "bytes", "rand", "ring 0.16.20", - "rustc-hash", + "rustc-hash 1.1.0", "rustls 0.20.9", "slab", "thiserror", @@ -8761,7 +10221,7 @@ dependencies = [ "bytes", "rand", "ring 0.16.20", - "rustc-hash", + "rustc-hash 1.1.0", "rustls 0.21.10", "slab", "thiserror", @@ -8797,9 +10257,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" dependencies = [ "proc-macro2", ] @@ -8943,7 +10403,7 @@ checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -8966,7 +10426,7 @@ checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" dependencies = [ "hashbrown 0.13.2", "log", - "rustc-hash", + "rustc-hash 1.1.0", "slice-group-by", "smallvec", ] @@ -9021,10 +10481,10 @@ version = "1.0.0" dependencies = [ "pallet-staking-reward-fn", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 16.0.0", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -9143,6 +10603,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + [[package]] name = "rustc-hex" version = "2.1.0" @@ -9411,13 +10877,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6345fb862e10aaa7d88d6689a7c247448c40ae465253c83566dc76a17ec1426" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-block-builder", - "sp-blockchain", + "sp-api 33.0.0", + "sp-block-builder 33.0.0", + "sp-blockchain 35.1.0", + "sp-core", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", + "sp-trie 36.0.0", +] + +[[package]] +name = "sc-block-builder" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f666f8ff11f96bf6d90676739eb7ccb6a156a4507634b7af83b94f0aa8195a50" +dependencies = [ + "parity-scale-codec", + "sp-api 34.0.0", + "sp-block-builder 34.0.0", + "sp-blockchain 37.0.1", "sp-core", - "sp-inherents", - "sp-runtime", - "sp-trie", + "sp-inherents 34.0.0", + "sp-runtime 39.0.5", + "sp-trie 37.0.0", ] [[package]] @@ -9432,19 +10914,47 @@ dependencies = [ "memmap2", "parity-scale-codec", "sc-chain-spec-derive", - "sc-client-api", - "sc-executor", - "sc-network", - "sc-telemetry", + "sc-client-api 35.1.0", + "sc-executor 0.39.0", + "sc-network 0.42.0", + "sc-telemetry 22.0.0", + "serde", + "serde_json", + "sp-blockchain 35.1.0", + "sp-core", + "sp-crypto-hashing", + "sp-genesis-builder 0.14.0", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "sp-tracing", +] + +[[package]] +name = "sc-chain-spec" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3534c5dc910e6c9e0f25871948e7bb683852d1aef44b8b7753062feef4235e7c" +dependencies = [ + "array-bytes", + "docify", + "log", + "memmap2", + "parity-scale-codec", + "sc-chain-spec-derive", + "sc-client-api 37.0.0", + "sc-executor 0.40.1", + "sc-network 0.45.6", + "sc-telemetry 25.0.0", "serde", "serde_json", - "sp-blockchain", + "sp-blockchain 37.0.1", "sp-core", "sp-crypto-hashing", - "sp-genesis-builder", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-genesis-builder 0.15.1", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", "sp-tracing", ] @@ -9457,7 +10967,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -9471,20 +10981,48 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.3", - "sc-executor", - "sc-transaction-pool-api", + "sc-executor 0.39.0", + "sc-transaction-pool-api 35.0.0", + "sc-utils", + "sp-api 33.0.0", + "sp-blockchain 35.1.0", + "sp-consensus 0.39.1", + "sp-core", + "sp-database", + "sp-externalities", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "sp-statement-store 17.0.0", + "sp-storage", + "sp-trie 36.0.0", + "substrate-prometheus-endpoint", +] + +[[package]] +name = "sc-client-api" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e73f1673cdfe658c4be6ffd5113b71c0de74616717e604455dcfd29e15781729" +dependencies = [ + "fnv", + "futures", + "log", + "parity-scale-codec", + "parking_lot 0.12.3", + "sc-executor 0.40.1", + "sc-transaction-pool-api 37.0.0", "sc-utils", - "sp-api", - "sp-blockchain", - "sp-consensus", + "sp-api 34.0.0", + "sp-blockchain 37.0.1", + "sp-consensus 0.40.0", "sp-core", "sp-database", "sp-externalities", - "sp-runtime", - "sp-state-machine", - "sp-statement-store", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", + "sp-statement-store 18.0.0", "sp-storage", - "sp-trie", + "sp-trie 37.0.0", "substrate-prometheus-endpoint", ] @@ -9499,16 +11037,41 @@ dependencies = [ "log", "mockall 0.11.4", "parking_lot 0.12.3", - "sc-client-api", + "sc-client-api 35.1.0", + "sc-network-types", + "sc-utils", + "serde", + "sp-api 33.0.0", + "sp-blockchain 35.1.0", + "sp-consensus 0.39.1", + "sp-core", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "substrate-prometheus-endpoint", + "thiserror", +] + +[[package]] +name = "sc-consensus" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f64e538ab9edefbf0ddc105ff5b088344c88bc86f21650a2d2020be04a957730" +dependencies = [ + "async-trait", + "futures", + "log", + "mockall 0.11.4", + "parking_lot 0.12.3", + "sc-client-api 37.0.0", "sc-network-types", "sc-utils", "serde", - "sp-api", - "sp-blockchain", - "sp-consensus", + "sp-api 34.0.0", + "sp-blockchain 37.0.1", + "sp-consensus 0.40.0", "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", "substrate-prometheus-endpoint", "thiserror", ] @@ -9531,29 +11094,74 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "rand", - "sc-block-builder", - "sc-chain-spec", - "sc-client-api", - "sc-consensus", - "sc-network", - "sc-network-common", - "sc-network-gossip", - "sc-network-sync", + "sc-block-builder 0.40.0", + "sc-chain-spec 35.0.0", + "sc-client-api 35.1.0", + "sc-consensus 0.41.0", + "sc-network 0.42.0", + "sc-network-common 0.41.0", + "sc-network-gossip 0.42.0", + "sc-network-sync 0.41.0", + "sc-network-types", + "sc-telemetry 22.0.0", + "sc-transaction-pool-api 35.0.0", + "sc-utils", + "serde_json", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-arithmetic 26.0.0", + "sp-blockchain 35.1.0", + "sp-consensus 0.39.1", + "sp-consensus-grandpa 20.0.0", + "sp-core", + "sp-crypto-hashing", + "sp-keystore", + "sp-runtime 38.0.0", + "substrate-prometheus-endpoint", + "thiserror", +] + +[[package]] +name = "sc-consensus-grandpa" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3aaab70cf6f93ceea829ef0a4980ce95d84d5c7f4b5419b29bbed17fa04e1a6" +dependencies = [ + "ahash 0.8.8", + "array-bytes", + "async-trait", + "dyn-clone", + "finality-grandpa", + "fork-tree", + "futures", + "futures-timer", + "log", + "parity-scale-codec", + "parking_lot 0.12.3", + "rand", + "sc-block-builder 0.42.0", + "sc-chain-spec 38.0.0", + "sc-client-api 37.0.0", + "sc-consensus 0.44.0", + "sc-network 0.45.6", + "sc-network-common 0.44.0", + "sc-network-gossip 0.45.0", + "sc-network-sync 0.44.1", "sc-network-types", - "sc-telemetry", - "sc-transaction-pool-api", + "sc-telemetry 25.0.0", + "sc-transaction-pool-api 37.0.0", "sc-utils", "serde_json", - "sp-api", - "sp-application-crypto", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", "sp-arithmetic 26.0.0", - "sp-blockchain", - "sp-consensus", - "sp-consensus-grandpa", + "sp-blockchain 37.0.1", + "sp-consensus 0.40.0", + "sp-consensus-grandpa 21.0.0", "sp-core", "sp-crypto-hashing", "sp-keystore", - "sp-runtime", + "sp-runtime 39.0.5", "substrate-prometheus-endpoint", "thiserror", ] @@ -9570,14 +11178,38 @@ dependencies = [ "sc-executor-polkavm", "sc-executor-wasmtime", "schnellru", - "sp-api", + "sp-api 33.0.0", + "sp-core", + "sp-externalities", + "sp-io 37.0.0", + "sp-panic-handler", + "sp-runtime-interface", + "sp-trie 36.0.0", + "sp-version 36.0.0", + "sp-wasm-interface", + "tracing", +] + +[[package]] +name = "sc-executor" +version = "0.40.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f0cc0a3728fd033589183460c5a49b2e7545d09dc89a098216ef9e9aadcd9dc" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.12.3", + "sc-executor-common", + "sc-executor-polkavm", + "sc-executor-wasmtime", + "schnellru", + "sp-api 34.0.0", "sp-core", "sp-externalities", - "sp-io", + "sp-io 38.0.0", "sp-panic-handler", "sp-runtime-interface", - "sp-trie", - "sp-version", + "sp-trie 37.0.0", + "sp-version 37.0.0", "sp-wasm-interface", "tracing", ] @@ -9629,9 +11261,9 @@ dependencies = [ [[package]] name = "sc-mixnet" -version = "0.12.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5a72a92dc72572a0facd73b410855d7f6edf38b32aef46c4798c74f25e595d5" +checksum = "781a1ffd953074e060a5f9e253f7a029bedd935fe9621bb7483cc2d442a6b1d1" dependencies = [ "array-bytes", "arrayvec", @@ -9644,16 +11276,16 @@ dependencies = [ "multiaddr 0.18.1", "parity-scale-codec", "parking_lot 0.12.3", - "sc-client-api", - "sc-network", + "sc-client-api 37.0.0", + "sc-network 0.45.6", "sc-network-types", - "sc-transaction-pool-api", - "sp-api", - "sp-consensus", + "sc-transaction-pool-api 37.0.0", + "sp-api 34.0.0", + "sp-consensus 0.40.0", "sp-core", "sp-keystore", "sp-mixnet", - "sp-runtime", + "sp-runtime 39.0.5", "thiserror", ] @@ -9687,8 +11319,60 @@ dependencies = [ "prost 0.12.6", "prost-build 0.12.6", "rand", - "sc-client-api", - "sc-network-common", + "sc-client-api 35.1.0", + "sc-network-common 0.41.0", + "sc-network-types", + "sc-utils", + "schnellru", + "serde", + "serde_json", + "smallvec", + "sp-arithmetic 26.0.0", + "sp-blockchain 35.1.0", + "sp-core", + "sp-runtime 38.0.0", + "substrate-prometheus-endpoint", + "thiserror", + "tokio", + "tokio-stream", + "unsigned-varint 0.7.2", + "void", + "wasm-timer", + "zeroize", +] + +[[package]] +name = "sc-network" +version = "0.45.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51392c871f3c8867481e2b1d3426fa997fe14d3c739ae20e48c676aa92b9af08" +dependencies = [ + "array-bytes", + "async-channel", + "async-trait", + "asynchronous-codec", + "bytes", + "cid 0.9.0", + "either", + "fnv", + "futures", + "futures-timer", + "ip_network", + "libp2p", + "linked_hash_set", + "litep2p", + "log", + "mockall 0.11.4", + "once_cell", + "parity-scale-codec", + "parking_lot 0.12.3", + "partial_sort", + "pin-project", + "prost 0.12.6", + "prost-build 0.12.6", + "rand", + "sc-client-api 37.0.0", + "sc-network-common 0.44.0", "sc-network-types", "sc-utils", "schnellru", @@ -9696,9 +11380,9 @@ dependencies = [ "serde_json", "smallvec", "sp-arithmetic 26.0.0", - "sp-blockchain", + "sp-blockchain 37.0.1", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "substrate-prometheus-endpoint", "thiserror", "tokio", @@ -9721,11 +11405,30 @@ dependencies = [ "libp2p-identity", "parity-scale-codec", "prost-build 0.12.6", - "sc-consensus", + "sc-consensus 0.41.0", + "sc-network-types", + "sp-consensus 0.39.1", + "sp-consensus-grandpa 20.0.0", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sc-network-common" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbff059c0ca497757f633cfa13625fbaa3028f23a77a9696e94e700008f8dd5a" +dependencies = [ + "async-trait", + "bitflags 1.3.2", + "futures", + "libp2p-identity", + "parity-scale-codec", + "prost-build 0.12.6", + "sc-consensus 0.44.0", "sc-network-types", - "sp-consensus", - "sp-consensus-grandpa", - "sp-runtime", + "sp-consensus 0.40.0", + "sp-consensus-grandpa 21.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -9738,12 +11441,32 @@ dependencies = [ "futures", "futures-timer", "log", - "sc-network", - "sc-network-common", - "sc-network-sync", + "sc-network 0.42.0", + "sc-network-common 0.41.0", + "sc-network-sync 0.41.0", "sc-network-types", "schnellru", - "sp-runtime", + "sp-runtime 38.0.0", + "substrate-prometheus-endpoint", + "tracing", +] + +[[package]] +name = "sc-network-gossip" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4086f4ac6b94ff2efd24f1776280c580454c5990b8665aa9f293fcd33c80630" +dependencies = [ + "ahash 0.8.8", + "futures", + "futures-timer", + "log", + "sc-network 0.45.6", + "sc-network-common 0.44.0", + "sc-network-sync 0.44.1", + "sc-network-types", + "schnellru", + "sp-runtime 39.0.5", "substrate-prometheus-endpoint", "tracing", ] @@ -9766,20 +11489,58 @@ dependencies = [ "parity-scale-codec", "prost 0.12.6", "prost-build 0.12.6", - "sc-client-api", - "sc-consensus", - "sc-network", - "sc-network-common", + "sc-client-api 35.1.0", + "sc-consensus 0.41.0", + "sc-network 0.42.0", + "sc-network-common 0.41.0", + "sc-network-types", + "sc-utils", + "schnellru", + "smallvec", + "sp-arithmetic 26.0.0", + "sp-blockchain 35.1.0", + "sp-consensus 0.39.1", + "sp-consensus-grandpa 20.0.0", + "sp-core", + "sp-runtime 38.0.0", + "substrate-prometheus-endpoint", + "thiserror", + "tokio", + "tokio-stream", +] + +[[package]] +name = "sc-network-sync" +version = "0.44.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82cb3b9939d57083495b3ed1304094b939c99ebdc651fb779ab6d2c83428679e" +dependencies = [ + "array-bytes", + "async-channel", + "async-trait", + "fork-tree", + "futures", + "futures-timer", + "libp2p", + "log", + "mockall 0.11.4", + "parity-scale-codec", + "prost 0.12.6", + "prost-build 0.12.6", + "sc-client-api 37.0.0", + "sc-consensus 0.44.0", + "sc-network 0.45.6", + "sc-network-common 0.44.0", "sc-network-types", "sc-utils", "schnellru", "smallvec", "sp-arithmetic 26.0.0", - "sp-blockchain", - "sp-consensus", - "sp-consensus-grandpa", + "sp-blockchain 37.0.1", + "sp-consensus 0.40.0", + "sp-consensus-grandpa 21.0.0", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "substrate-prometheus-endpoint", "thiserror", "tokio", @@ -9792,7 +11553,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c372dbda66644a1df0daa8c0d99c36b6f74db7dca213d2416cd84f507125224" dependencies = [ - "bs58 0.5.0", + "bs58 0.5.1", "ed25519-dalek", "libp2p-identity", "litep2p", @@ -9806,30 +11567,51 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.41.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b8adf62a207985cf7534abf0d940b335fda0a68eb902da05b7270ee30a6293" +checksum = "147274633577e55db73dbdc64168c25b54cca6cac4fcde118bd9946cf7b24838" dependencies = [ "jsonrpsee", "parity-scale-codec", - "sc-chain-spec", + "sc-chain-spec 38.0.0", "sc-mixnet", - "sc-transaction-pool-api", + "sc-transaction-pool-api 37.0.0", "scale-info", "serde", "serde_json", "sp-core", "sp-rpc", - "sp-runtime", - "sp-version", + "sp-runtime 39.0.5", + "sp-version 37.0.0", + "thiserror", +] + +[[package]] +name = "sc-telemetry" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1fc8e8ad7f84f2ca864ee361b6207fe21e18c8182c60f209732b2a7c0dcbd31" +dependencies = [ + "chrono", + "futures", + "libp2p", + "log", + "parking_lot 0.12.3", + "pin-project", + "rand", + "sc-network 0.42.0", + "sc-utils", + "serde", + "serde_json", "thiserror", + "wasm-timer", ] [[package]] name = "sc-telemetry" -version = "22.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1fc8e8ad7f84f2ca864ee361b6207fe21e18c8182c60f209732b2a7c0dcbd31" +checksum = "e9e28cab12625bcdb8828f9a1177b8d061972f90fda89a70c10763da50e0aaa5" dependencies = [ "chrono", "futures", @@ -9838,7 +11620,7 @@ dependencies = [ "parking_lot 0.12.3", "pin-project", "rand", - "sc-network", + "sc-network 0.45.6", "sc-utils", "serde", "serde_json", @@ -9857,9 +11639,26 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-blockchain", + "sp-blockchain 35.1.0", + "sp-core", + "sp-runtime 38.0.0", + "thiserror", +] + +[[package]] +name = "sc-transaction-pool-api" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f02936289a079360935685eee5400311994b25e9edb2420a3c4247d419a77f46" +dependencies = [ + "async-trait", + "futures", + "log", + "parity-scale-codec", + "serde", + "sp-blockchain 37.0.1", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "thiserror", ] @@ -9945,9 +11744,9 @@ dependencies = [ [[package]] name = "schnellru" -version = "0.2.1" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" +checksum = "356285bbf17bea63d9e52e96bd18f039672ac92b55b8cb997d6162a2a37d1649" dependencies = [ "ahash 0.8.8", "cfg-if", @@ -10132,9 +11931,9 @@ checksum = "f97841a747eef040fcd2e7b3b9a220a7205926e60488e673d9e4926d27772ce5" [[package]] name = "serde" -version = "1.0.197" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" dependencies = [ "serde_derive", ] @@ -10159,22 +11958,23 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.197" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] name = "serde_json" -version = "1.0.114" +version = "1.0.138" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" +checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] @@ -10348,10 +12148,22 @@ dependencies = [ "enumn", "parity-scale-codec", "paste", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "slot-range-helper" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e34f1146a457a5c554dedeae6c7273aa54c3b031f3e9eb0abd037b5511e2ce9" +dependencies = [ + "enumn", + "parity-scale-codec", + "paste", + "sp-runtime 39.0.5", +] + [[package]] name = "smallvec" version = "1.13.2" @@ -10387,12 +12199,12 @@ dependencies = [ [[package]] name = "snowbridge-beacon-primitives" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0ad61e3ab1c48d4c8060c7ef8571c5b6007df26687e8dbfdb6c857d840cfd2c" +checksum = "10bd720997e558beb556d354238fa90781deb38241cf31c1b6368738ef21c279" dependencies = [ "byte-slice-cast", - "frame-support", + "frame-support 38.2.0", "hex", "parity-scale-codec", "rlp", @@ -10401,8 +12213,8 @@ dependencies = [ "snowbridge-ethereum", "snowbridge-milagro-bls", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", "ssz_rs", "ssz_rs_derive", @@ -10410,33 +12222,33 @@ dependencies = [ [[package]] name = "snowbridge-core" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "668cd71582305168ed51cb0357a4b4ea814c68c7db3898a9ba4d492f712c54e1" +checksum = "6be61e4db95d1e253a1d5e722953b2d2f6605e5f9761f0a919e5d3fbdbff9da9" dependencies = [ "ethabi-decode", - "frame-support", - "frame-system", + "frame-support 38.2.0", + "frame-system 38.0.0", "hex-literal", "parity-scale-codec", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 14.0.0", "scale-info", "serde", "snowbridge-beacon-primitives", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", ] [[package]] name = "snowbridge-ethereum" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ef1f6f60f6c8cc3cdb2a829d7452de946d8707f63f70c6f714d1c52cbc0fc17" +checksum = "dc3d6d549c57df27cf89ec852f932fa4008eea877a6911a87e03e8002104eabd" dependencies = [ "ethabi-decode", "ethbloom", @@ -10448,8 +12260,8 @@ dependencies = [ "scale-info", "serde", "serde-big-array", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", ] @@ -10470,42 +12282,42 @@ dependencies = [ [[package]] name = "snowbridge-outbound-queue-merkle-tree" -version = "0.8.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eece0e4a868674b3e48cfd7574c1e68a9f5bfd74fb67683f094dacee9abecf5b" +checksum = "74c6a9b65fa61711b704f0c6afb3663c6288288e8822ddae5cc1146fe3ad9ce8" dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", ] [[package]] name = "snowbridge-outbound-queue-runtime-api" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab6b34950a2abce198fe008ac6a199598053fedcbde2c40fedf981bc55f85dc7" +checksum = "38d27b8d9cb8022637a5ce4f52692520fa75874f393e04ef5cd75bd8795087f6" dependencies = [ - "frame-support", + "frame-support 38.2.0", "parity-scale-codec", "snowbridge-core", "snowbridge-outbound-queue-merkle-tree", - "sp-api", + "sp-api 34.0.0", "sp-std", ] [[package]] name = "snowbridge-pallet-ethereum-client" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0040c2f5a66bcef85e125968af172200cd01d8558c8b3cb9c2e3f1b72abf7dc1" +checksum = "7d53d32d8470c643f9f8c1f508e1e34263f76297e4c9150e10e8f2e0b63992e1" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "hex-literal", "log", - "pallet-timestamp", + "pallet-timestamp 37.0.0", "parity-scale-codec", "scale-info", "serde", @@ -10514,17 +12326,17 @@ dependencies = [ "snowbridge-ethereum", "snowbridge-pallet-ethereum-client-fixtures", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", "static_assertions", ] [[package]] name = "snowbridge-pallet-ethereum-client-fixtures" -version = "0.16.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f00da83ce6214f76212ed70190cf0c8845d514132d3f9c6bab2ab2f914356f0c" +checksum = "3984b98465af1d862d4e87ba783e1731f2a3f851b148d6cb98d526cebd351185" dependencies = [ "hex-literal", "snowbridge-beacon-primitives", @@ -10535,18 +12347,18 @@ dependencies = [ [[package]] name = "snowbridge-pallet-inbound-queue" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bd92623ca85fe55e317654254acac72e5a324676c52f0993b0980c90a3544f8" +checksum = "f2e6a9d00e60e3744e6b6f0c21fea6694b9c6401ac40e41340a96e561dcf1935" dependencies = [ "alloy-primitives", "alloy-sol-types", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "hex-literal", "log", - "pallet-balances", + "pallet-balances 39.0.0", "parity-scale-codec", "scale-info", "serde", @@ -10555,18 +12367,18 @@ dependencies = [ "snowbridge-pallet-inbound-queue-fixtures", "snowbridge-router-primitives", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] name = "snowbridge-pallet-inbound-queue-fixtures" -version = "0.16.0" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b0fd4aebc8d5c244d9e658e911d1a84a06676fd05d9c15fb350bc2e653423ec" +checksum = "b1f251e579b3d3d93cf833c8e503122808742dee33e7ea53b0f292a76c024d66" dependencies = [ "hex-literal", "snowbridge-beacon-primitives", @@ -10577,15 +12389,15 @@ dependencies = [ [[package]] name = "snowbridge-pallet-outbound-queue" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cfbea7729bcbea661b323c6090d971afcb2ff14a88d9861aab384705415f9d6" +checksum = "c7d49478041b6512c710d0d4655675d146fe00a8e0c1624e5d8a1d6c161d490f" dependencies = [ "bridge-hub-common", "ethabi-decode", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "parity-scale-codec", "scale-info", "serde", @@ -10593,86 +12405,86 @@ dependencies = [ "snowbridge-outbound-queue-merkle-tree", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", ] [[package]] name = "snowbridge-pallet-system" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f726d9d2bc15b2683995e6f6ae707d2db20085742860acd32d8fb246251681f2" +checksum = "674db59b3c8013382e5c07243ad9439b64d81d2e8b3c4f08d752b55aa5de697e" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "log", "parity-scale-codec", "scale-info", "snowbridge-core", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] name = "snowbridge-router-primitives" -version = "0.14.0" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e8e6707ced1308d763117bfe68f85e3f22fcdca7987b32e438c0485570f6ac7" +checksum = "aefe74eafeac92e1d9e46b7bb76ec297f6182b4a023f7e7eb7eb8be193f93bef" dependencies = [ - "frame-support", + "frame-support 38.2.0", "hex-literal", "log", "parity-scale-codec", "scale-info", "snowbridge-core", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] name = "snowbridge-runtime-common" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c033e7905056434638a068dca713ec9d15708af6c7590396fc95a216ec64b40b" +checksum = "6093f0e73d6cfdd2eea8712155d1d75b5063fc9b1d854d2665b097b4bb29570d" dependencies = [ - "frame-support", + "frame-support 38.2.0", "log", "parity-scale-codec", "snowbridge-core", "sp-arithmetic 26.0.0", "sp-std", - "staging-xcm 14.1.0", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-builder 17.0.3", + "staging-xcm-executor 17.0.1", ] [[package]] name = "snowbridge-runtime-test-common" -version = "0.8.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bbae06a0abb1ba5ffad59b929263c68cc47b8a286794a7389e781eba20f3481" +checksum = "242ad550a31ebd8e29a17beb89f1e5ddf4e657ebdf667fb9e4c0660428de4e9b" dependencies = [ - "cumulus-pallet-parachain-system", - "frame-support", - "frame-system", - "pallet-balances", - "pallet-collator-selection", - "pallet-message-queue", - "pallet-session", - "pallet-timestamp", - "pallet-utility", - "pallet-xcm", - "parachains-runtimes-test-utils", + "cumulus-pallet-parachain-system 0.17.1", + "frame-support 38.2.0", + "frame-system 38.0.0", + "pallet-balances 39.0.0", + "pallet-collator-selection 19.0.0", + "pallet-message-queue 41.0.2", + "pallet-session 38.0.0", + "pallet-timestamp 37.0.0", + "pallet-utility 38.0.0", + "pallet-xcm 17.0.1", + "parachains-runtimes-test-utils 19.0.0", "parity-scale-codec", "snowbridge-core", "snowbridge-pallet-ethereum-client", @@ -10680,25 +12492,25 @@ dependencies = [ "snowbridge-pallet-outbound-queue", "snowbridge-pallet-system", "sp-core", - "sp-io", + "sp-io 38.0.0", "sp-keyring", - "sp-runtime", - "staging-parachain-info", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "sp-runtime 39.0.5", + "staging-parachain-info 0.17.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] name = "snowbridge-system-runtime-api" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca4900b139bfb1c052358b6084aa61658b261900d117aa8996e833a1b344399" +checksum = "68b8b83b3db781c49844312a23965073e4d93341739a35eafe526c53b578d3b7" dependencies = [ "parity-scale-codec", "snowbridge-core", - "sp-api", + "sp-api 34.0.0", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", ] [[package]] @@ -10765,12 +12577,35 @@ dependencies = [ "sp-core", "sp-externalities", "sp-metadata-ir", - "sp-runtime", + "sp-runtime 38.0.0", "sp-runtime-interface", - "sp-state-machine", + "sp-state-machine 0.42.0", "sp-std", - "sp-trie", - "sp-version", + "sp-trie 36.0.0", + "sp-version 36.0.0", + "thiserror", +] + +[[package]] +name = "sp-api" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbce492e0482134128b7729ea36f5ef1a9f9b4de2d48ff8dde7b5e464e28ce75" +dependencies = [ + "docify", + "hash-db", + "log", + "parity-scale-codec", + "scale-info", + "sp-api-proc-macro", + "sp-core", + "sp-externalities", + "sp-metadata-ir", + "sp-runtime 39.0.5", + "sp-runtime-interface", + "sp-state-machine 0.43.0", + "sp-trie 37.0.0", + "sp-version 37.0.0", "thiserror", ] @@ -10786,7 +12621,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -10799,10 +12634,23 @@ dependencies = [ "scale-info", "serde", "sp-core", - "sp-io", + "sp-io 37.0.0", "sp-std", ] +[[package]] +name = "sp-application-crypto" +version = "38.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8133012faa5f75b2f0b1619d9f720c1424ac477152c143e5f7dbde2fe1a958" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io 38.0.0", +] + [[package]] name = "sp-arithmetic" version = "24.0.0" @@ -10842,9 +12690,22 @@ checksum = "6a4a1e45abc3277f18484ee0b0f9808e4206eb696ad38500c892c72f33480d69" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-runtime", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sp-authority-discovery" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "519c33af0e25ba2dd2eb3790dc404d634b6e4ce0801bcc8fa3574e07c365e734" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -10853,9 +12714,20 @@ version = "33.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2cf199dc4f9f77abd3fd91c409759118159ce6ffcd8bc90b229b684ccc8c981f" dependencies = [ - "sp-api", - "sp-inherents", - "sp-runtime", + "sp-api 33.0.0", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sp-block-builder" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74738809461e3d4bd707b5b94e0e0c064a623a74a6a8fe5c98514417a02858dd" +dependencies = [ + "sp-api 34.0.0", + "sp-inherents 34.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -10869,12 +12741,32 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "schnellru", - "sp-api", - "sp-consensus", + "sp-api 33.0.0", + "sp-consensus 0.39.1", + "sp-database", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "thiserror", +] + +[[package]] +name = "sp-blockchain" +version = "37.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a309eecd6b5689f57e67181deaa628d9c8951db1ba0d26f07c69e14dffdc4765" +dependencies = [ + "futures", + "parity-scale-codec", + "parking_lot 0.12.3", + "schnellru", + "sp-api 34.0.0", + "sp-consensus 0.40.0", + "sp-core", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", "thiserror", + "tracing", ] [[package]] @@ -10887,9 +12779,25 @@ dependencies = [ "futures", "log", "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", + "sp-state-machine 0.42.0", + "thiserror", +] + +[[package]] +name = "sp-consensus" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce75efd1e164be667a53c20182c45b4c2abe325abcbd21fc292b82be5b9240f7" +dependencies = [ + "async-trait", + "futures", + "log", + "sp-core", + "sp-inherents 34.0.0", + "sp-runtime 39.0.5", + "sp-state-machine 0.43.0", "thiserror", ] @@ -10902,12 +12810,29 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-consensus-slots", - "sp-inherents", - "sp-runtime", - "sp-timestamp", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-consensus-slots 0.39.0", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", + "sp-timestamp 33.0.0", +] + +[[package]] +name = "sp-consensus-aura" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a8faaa05bbcb9c41f0cc535c4c1315abf6df472b53eae018678d1b4d811ac47" +dependencies = [ + "async-trait", + "parity-scale-codec", + "scale-info", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", + "sp-consensus-slots 0.40.1", + "sp-inherents 34.0.0", + "sp-runtime 39.0.5", + "sp-timestamp 34.0.0", ] [[package]] @@ -10920,13 +12845,32 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-consensus-slots", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-consensus-slots 0.39.0", + "sp-core", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", + "sp-timestamp 33.0.0", +] + +[[package]] +name = "sp-consensus-babe" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36ee95e17ee8dcd14db7d584b899a426565ca9abe5a266ab82277977fc547f86" +dependencies = [ + "async-trait", + "parity-scale-codec", + "scale-info", + "serde", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", + "sp-consensus-slots 0.40.1", "sp-core", - "sp-inherents", - "sp-runtime", - "sp-timestamp", + "sp-inherents 34.0.0", + "sp-runtime 39.0.5", + "sp-timestamp 34.0.0", ] [[package]] @@ -10939,14 +12883,36 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-core", + "sp-crypto-hashing", + "sp-io 37.0.0", + "sp-keystore", + "sp-mmr-primitives 33.0.0", + "sp-runtime 38.0.0", + "strum 0.26.3", +] + +[[package]] +name = "sp-consensus-beefy" +version = "22.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d97e8cd75d85d15cda6f1923cf3834e848f80d5a6de1cf4edbbc5f0ad607eb" +dependencies = [ + "lazy_static", + "parity-scale-codec", + "scale-info", + "serde", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", "sp-core", "sp-crypto-hashing", - "sp-io", + "sp-io 38.0.0", "sp-keystore", - "sp-mmr-primitives", - "sp-runtime", + "sp-mmr-primitives 34.1.0", + "sp-runtime 39.0.5", + "sp-weights 31.0.0", "strum 0.26.3", ] @@ -10961,11 +12927,29 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-core", + "sp-keystore", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sp-consensus-grandpa" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "587b791efe6c5f18e09dbbaf1ece0ee7b5fe51602c233e7151a3676b0de0260b" +dependencies = [ + "finality-grandpa", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", "sp-core", "sp-keystore", - "sp-runtime", + "sp-runtime 39.0.5", ] [[package]] @@ -10977,7 +12961,19 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-timestamp", + "sp-timestamp 33.0.0", +] + +[[package]] +name = "sp-consensus-slots" +version = "0.40.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbafb7ed44f51c22fa277fb39b33dc601fa426133a8e2b53f3f46b10f07fba43" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-timestamp 34.0.0", ] [[package]] @@ -10990,7 +12986,7 @@ dependencies = [ "bitflags 1.3.2", "blake2 0.10.6", "bounded-collections", - "bs58 0.5.0", + "bs58 0.5.1", "dyn-clonable", "ed25519-zebra", "futures", @@ -11049,7 +13045,7 @@ checksum = "b85d0f1f1e44bd8617eb2a48203ee854981229e3e79e6f468c7175d5fd37489b" dependencies = [ "quote", "sp-crypto-hashing", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -11070,7 +13066,7 @@ checksum = "48d09fa0a5f7299fb81ee25ae3853d26200f7a348148aed6de76be905c007dbe" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -11093,8 +13089,21 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde_json", - "sp-api", - "sp-runtime", + "sp-api 33.0.0", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sp-genesis-builder" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a646ed222fd86d5680faa4a8967980eb32f644cae6c8523e1c689a6deda3e8" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde_json", + "sp-api 34.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -11107,7 +13116,21 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 38.0.0", + "thiserror", +] + +[[package]] +name = "sp-inherents" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afffbddc380d99a90c459ba1554bbbc01d62e892de9f1485af6940b89c4c0d57" +dependencies = [ + "async-trait", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime 39.0.5", "thiserror", ] @@ -11130,22 +13153,49 @@ dependencies = [ "sp-externalities", "sp-keystore", "sp-runtime-interface", - "sp-state-machine", + "sp-state-machine 0.42.0", "sp-std", "sp-tracing", - "sp-trie", + "sp-trie 36.0.0", "tracing", "tracing-core", ] [[package]] -name = "sp-keyring" +name = "sp-io" version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b03536e1ff3ec2bd8181eeaa26c0d682ebdcbd01548a055cf591077188b8c3f0" +checksum = "59ef7eb561bb4839cc8424ce58c5ea236cbcca83f26fcc0426d8decfe8aa97d4" +dependencies = [ + "bytes", + "docify", + "ed25519-dalek", + "libsecp256k1", + "log", + "parity-scale-codec", + "polkavm-derive", + "rustversion", + "secp256k1", + "sp-core", + "sp-crypto-hashing", + "sp-externalities", + "sp-keystore", + "sp-runtime-interface", + "sp-state-machine 0.43.0", + "sp-tracing", + "sp-trie 37.0.0", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-keyring" +version = "39.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c0e20624277f578b27f44ecfbe2ebc2e908488511ee2c900c5281599f700ab3" dependencies = [ "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "strum 0.26.3", ] @@ -11184,31 +13234,49 @@ dependencies = [ [[package]] name = "sp-mixnet" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f65a570519da820ce3dc35053497a65f9fbd3f5a7dc81fa03078ca263e9311e" +checksum = "3b0b017dd54823b6e62f9f7171a1df350972e5c6d0bf17e0c2f78680b5c31942" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", ] [[package]] name = "sp-mmr-primitives" version = "33.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47412a2d2e988430d5f59d7fec1473f229e1ef5ce24c1ea4f601b4b3679cac52" +checksum = "47412a2d2e988430d5f59d7fec1473f229e1ef5ce24c1ea4f601b4b3679cac52" +dependencies = [ + "log", + "parity-scale-codec", + "polkadot-ckb-merkle-mountain-range", + "scale-info", + "serde", + "sp-api 33.0.0", + "sp-core", + "sp-debug-derive", + "sp-runtime 38.0.0", + "thiserror", +] + +[[package]] +name = "sp-mmr-primitives" +version = "34.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a12dd76e368f1e48144a84b4735218b712f84b3f976970e2f25a29b30440e10" dependencies = [ "log", "parity-scale-codec", "polkadot-ckb-merkle-mountain-range", "scale-info", "serde", - "sp-api", + "sp-api 34.0.0", "sp-core", "sp-debug-derive", - "sp-runtime", + "sp-runtime 39.0.5", "thiserror", ] @@ -11223,18 +13291,32 @@ dependencies = [ "serde", "sp-arithmetic 26.0.0", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sp-npos-elections" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af922f112c7c1ed199eabe14f12a82ceb75e1adf0804870eccfbcf3399492847" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-runtime 39.0.5", ] [[package]] name = "sp-offchain" -version = "33.0.0" +version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbe721c367760bddf10fcfa24fb48edd64c442f71db971f043c8ac73f51aa6e9" +checksum = "2d9de237d72ecffd07f90826eef18360208b16d8de939d54e61591fac0fcbf99" dependencies = [ - "sp-api", + "sp-api 34.0.0", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", ] [[package]] @@ -11254,7 +13336,7 @@ version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45458f0955870a92b3969098d4f1f4e9b55b4282d9f1dc112a51bb5bb6584900" dependencies = [ - "rustc-hash", + "rustc-hash 1.1.0", "serde", "sp-core", ] @@ -11277,12 +13359,39 @@ dependencies = [ "scale-info", "serde", "simple-mermaid", - "sp-application-crypto", + "sp-application-crypto 37.0.0", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 37.0.0", + "sp-std", + "sp-weights 31.0.0", +] + +[[package]] +name = "sp-runtime" +version = "39.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e00503b83cf48fffe48746b91b9b832d6785d4e2eeb0941558371eac6baac6" +dependencies = [ + "docify", + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "num-traits", + "parity-scale-codec", + "paste", + "rand", + "scale-info", + "serde", + "simple-mermaid", + "sp-application-crypto 38.0.0", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", + "sp-io 38.0.0", "sp-std", "sp-weights 31.0.0", + "tracing", ] [[package]] @@ -11316,7 +13425,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -11327,11 +13436,26 @@ checksum = "4daf2e40ffc7e7e8de08efb860eb9534faf614a49c53dc282f430faedb4aed13" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 33.0.0", + "sp-core", + "sp-keystore", + "sp-runtime 38.0.0", + "sp-staking 33.0.0", +] + +[[package]] +name = "sp-session" +version = "36.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00a3a307fedc423fb8cd2a7726a3bbb99014f1b4b52f26153993e2aae3338fe6" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api 34.0.0", "sp-core", "sp-keystore", - "sp-runtime", - "sp-staking", + "sp-runtime 39.0.5", + "sp-staking 36.0.0", ] [[package]] @@ -11345,7 +13469,21 @@ dependencies = [ "scale-info", "serde", "sp-core", - "sp-runtime", + "sp-runtime 38.0.0", +] + +[[package]] +name = "sp-staking" +version = "36.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a73eedb4b85f4cd420d31764827546aa22f82ce1646d0fd258993d051de7a90" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-runtime 39.0.5", ] [[package]] @@ -11363,7 +13501,28 @@ dependencies = [ "sp-core", "sp-externalities", "sp-panic-handler", - "sp-trie", + "sp-trie 36.0.0", + "thiserror", + "tracing", + "trie-db", +] + +[[package]] +name = "sp-state-machine" +version = "0.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "930104d6ae882626e8880d9b1578da9300655d337a3ffb45e130c608b6c89660" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "parking_lot 0.12.3", + "rand", + "smallvec", + "sp-core", + "sp-externalities", + "sp-panic-handler", + "sp-trie 37.0.0", "thiserror", "tracing", "trie-db", @@ -11383,12 +13542,37 @@ dependencies = [ "rand", "scale-info", "sha2 0.10.8", - "sp-api", - "sp-application-crypto", + "sp-api 33.0.0", + "sp-application-crypto 37.0.0", + "sp-core", + "sp-crypto-hashing", + "sp-externalities", + "sp-runtime 38.0.0", + "sp-runtime-interface", + "thiserror", + "x25519-dalek", +] + +[[package]] +name = "sp-statement-store" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c219bc34ef4d1f9835f3ed881f965643c32034fcc030eb33b759dadbc802c1c2" +dependencies = [ + "aes-gcm", + "curve25519-dalek", + "ed25519-dalek", + "hkdf", + "parity-scale-codec", + "rand", + "scale-info", + "sha2 0.10.8", + "sp-api 34.0.0", + "sp-application-crypto 38.0.0", "sp-core", "sp-crypto-hashing", "sp-externalities", - "sp-runtime", + "sp-runtime 39.0.5", "sp-runtime-interface", "thiserror", "x25519-dalek", @@ -11421,16 +13605,29 @@ checksum = "78becf144a76f6fd108dfe94a90e20a185b38c0b310dc5482328196143c8266b" dependencies = [ "async-trait", "parity-scale-codec", - "sp-inherents", - "sp-runtime", + "sp-inherents 33.0.0", + "sp-runtime 38.0.0", + "thiserror", +] + +[[package]] +name = "sp-timestamp" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a1cb4df653d62ccc0dbce1db45d1c9443ec60247ee9576962d24da4c9c6f07" +dependencies = [ + "async-trait", + "parity-scale-codec", + "sp-inherents 34.0.0", + "sp-runtime 39.0.5", "thiserror", ] [[package]] name = "sp-tracing" -version = "17.0.0" +version = "17.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90b3decf116db9f1dfaf1f1597096b043d0e12c952d3bcdc018c6d6b77deec7e" +checksum = "cf641a1d17268c8fcfdb8e0fa51a79c2d4222f4cfda5f3944dbdbc384dced8d5" dependencies = [ "parity-scale-codec", "tracing", @@ -11440,12 +13637,12 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "33.0.0" +version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3c9d1604aadc15b70e95f4388d0b1aa380215520b7ddfd372531a6d8262269c" +checksum = "fc4bf251059485a7dd38fe4afeda8792983511cc47f342ff4695e2dcae6b5247" dependencies = [ - "sp-api", - "sp-runtime", + "sp-api 34.0.0", + "sp-runtime 39.0.5", ] [[package]] @@ -11472,6 +13669,30 @@ dependencies = [ "trie-root", ] +[[package]] +name = "sp-trie" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6282aef9f4b6ecd95a67a45bcdb67a71f4a4155c09a53c10add4ffe823db18cd" +dependencies = [ + "ahash 0.8.8", + "hash-db", + "lazy_static", + "memory-db", + "nohash-hasher", + "parity-scale-codec", + "parking_lot 0.12.3", + "rand", + "scale-info", + "schnellru", + "sp-core", + "sp-externalities", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + [[package]] name = "sp-version" version = "36.0.0" @@ -11484,7 +13705,25 @@ dependencies = [ "scale-info", "serde", "sp-crypto-hashing-proc-macro", - "sp-runtime", + "sp-runtime 38.0.0", + "sp-std", + "sp-version-proc-macro", + "thiserror", +] + +[[package]] +name = "sp-version" +version = "37.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d521a405707b5be561367cd3d442ff67588993de24062ce3adefcf8437ee9fe1" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "parity-wasm", + "scale-info", + "serde", + "sp-crypto-hashing-proc-macro", + "sp-runtime 39.0.5", "sp-std", "sp-version-proc-macro", "thiserror", @@ -11499,14 +13738,14 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] name = "sp-wasm-interface" -version = "21.0.0" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b04b919e150b4736d85089d49327eab65507deb1485eec929af69daa2278eb3" +checksum = "b066baa6d57951600b14ffe1243f54c47f9c23dd89c262e17ca00ae8dca58be9" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -11629,15 +13868,29 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd00d586b0dac4f42736bdd0ad52213a891b240e011ea82b38938263dd821c25" dependencies = [ - "cumulus-primitives-core", - "frame-support", - "frame-system", + "cumulus-primitives-core 0.14.0", + "frame-support 36.0.0", + "frame-system 36.1.0", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 38.0.0", "sp-std", ] +[[package]] +name = "staging-parachain-info" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d28266dfddbfff721d70ad2f873380845b569adfab32f257cf97d9cedd894b68" +dependencies = [ + "cumulus-primitives-core 0.16.0", + "frame-support 38.2.0", + "frame-system 38.0.0", + "parity-scale-codec", + "scale-info", + "sp-runtime 39.0.5", +] + [[package]] name = "staging-xcm" version = "8.0.1" @@ -11659,9 +13912,9 @@ dependencies = [ [[package]] name = "staging-xcm" -version = "14.1.0" +version = "14.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2b7b5f531c6bf9629514ef8e5fda0e9e80dd84516957f710940d0e01d3fb36c" +checksum = "96bee7cd999e9cdf10f8db72342070d456e21e82a0f5962ff3b87edbd5f2b20e" dependencies = [ "array-bytes", "bounded-collections", @@ -11672,6 +13925,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", + "sp-runtime 39.0.5", "sp-weights 31.0.0", "xcm-procedural 10.1.0", ] @@ -11682,21 +13936,44 @@ version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "847fa2afe1bed2751eaabf7b91fa4043037947f17653d7cc59ea202cc44c6bb8" dependencies = [ - "frame-support", - "frame-system", + "frame-support 36.0.0", + "frame-system 36.1.0", "impl-trait-for-tuples", "log", - "pallet-transaction-payment", + "pallet-transaction-payment 36.0.0", "parity-scale-codec", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 13.0.0", "scale-info", "sp-arithmetic 26.0.0", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", "sp-weights 31.0.0", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 15.0.0", +] + +[[package]] +name = "staging-xcm-builder" +version = "17.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f7a92cfaec55a5ed0f9cbbb9076aa8ec0aff1ba90b9804cc5c8f2369fde59c" +dependencies = [ + "frame-support 38.2.0", + "frame-system 38.0.0", + "impl-trait-for-tuples", + "log", + "pallet-asset-conversion 20.0.0", + "pallet-transaction-payment 38.0.2", + "parity-scale-codec", + "polkadot-parachain-primitives 14.0.0", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-weights 31.0.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] @@ -11706,19 +13983,40 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26b98d8219449eaf02e71a7edf1a14b14d4c713dd01d9df66fde1ce30dba4d6d" dependencies = [ "environmental", - "frame-benchmarking", - "frame-support", + "frame-benchmarking 36.0.0", + "frame-support 36.0.0", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io", - "sp-runtime", + "sp-io 37.0.0", + "sp-runtime 38.0.0", "sp-std", "sp-weights 31.0.0", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", +] + +[[package]] +name = "staging-xcm-executor" +version = "17.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c89045f495097293ce29df1f3f459e9ccc991ff2ee88a4a91e8110a6886d2c8" +dependencies = [ + "environmental", + "frame-benchmarking 38.0.0", + "frame-support 38.2.0", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-io 38.0.0", + "sp-runtime 39.0.5", + "sp-weights 31.0.0", + "staging-xcm 14.2.0", + "tracing", ] [[package]] @@ -11794,7 +14092,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -11825,16 +14123,16 @@ dependencies = [ [[package]] name = "substrate-rpc-client" -version = "0.41.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68e021c03690bfce8dc67913e0edcb12bf07aea84bbbc61bcd24e6f790c8161a" +checksum = "5939d2b2a0b556714512dffb08ae3df3fc245039d9b08ee5b0df4e403007ee3a" dependencies = [ "async-trait", "jsonrpsee", "log", "sc-rpc-api", "serde", - "sp-runtime", + "sp-runtime 39.0.5", ] [[package]] @@ -11842,6 +14140,26 @@ name = "substrate-wasm-builder" version = "23.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7dc993ad871b63fbba60362f3ea86583f5e7e1256e8fdcb3b5b249c9ead354bf" +dependencies = [ + "build-helper", + "cargo_metadata", + "console", + "filetime", + "parity-wasm", + "polkavm-linker", + "sp-maybe-compressed-blob", + "strum 0.26.3", + "tempfile", + "toml 0.8.12", + "walkdir", + "wasm-opt", +] + +[[package]] +name = "substrate-wasm-builder" +version = "24.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf035ffe7335fb24053edfe4d0a5780250eda772082a1b80ae25835dd4c09265" dependencies = [ "array-bytes", "build-helper", @@ -11849,19 +14167,20 @@ dependencies = [ "console", "filetime", "frame-metadata", + "jobserver", "merkleized-metadata", "parity-scale-codec", "parity-wasm", "polkavm-linker", - "sc-executor", + "sc-executor 0.40.1", "sp-core", - "sp-io", + "sp-io 38.0.0", "sp-maybe-compressed-blob", "sp-tracing", - "sp-version", + "sp-version 37.0.0", "strum 0.26.3", "tempfile", - "toml 0.8.10", + "toml 0.8.12", "walkdir", "wasm-opt", ] @@ -11891,9 +14210,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.65" +version = "2.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2863d96a84c6439701d7a38f9de935ec562c8832cc55d1dde0f513b52fad106" +checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" dependencies = [ "proc-macro2", "quote", @@ -11909,7 +14228,7 @@ dependencies = [ "paste", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -11932,7 +14251,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -11960,34 +14279,34 @@ dependencies = [ name = "system-parachains-constants" version = "1.0.0" dependencies = [ - "frame-support", - "parachains-common", + "frame-support 38.2.0", + "parachains-common 18.0.0", "paseo-runtime-constants", - "polkadot-core-primitives", - "polkadot-primitives", + "polkadot-core-primitives 15.0.0", + "polkadot-primitives 16.0.0", "smallvec", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", ] [[package]] name = "system-parachains-constants" version = "1.0.0" -source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.3.4#3b18d942c766c7f358da50608b44edbe218284a4" +source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "frame-support", + "frame-support 38.2.0", "kusama-runtime-constants", - "parachains-common", - "polkadot-core-primitives", - "polkadot-primitives", + "parachains-common 18.0.0", + "polkadot-core-primitives 15.0.0", + "polkadot-primitives 16.0.0", "polkadot-runtime-constants", "smallvec", "sp-core", - "sp-runtime", + "sp-runtime 39.0.5", "sp-std", - "staging-xcm 14.1.0", + "staging-xcm 14.2.0", ] [[package]] @@ -12047,7 +14366,7 @@ checksum = "d20468752b09f49e909e55a5d338caa8bedf615594e9d80bc4c565d30faf798c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -12141,7 +14460,7 @@ checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -12227,14 +14546,14 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.10" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290" +checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.5", + "toml_edit 0.22.12", ] [[package]] @@ -12270,9 +14589,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.5" +version = "0.22.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e68c159e8f5ba8a28c4eb7b0c0c190d77bb479047ca713270048145a9ad28a" +checksum = "d3328d4f68a705b2a4498da1d580585d39a6510f98318a2cec3018a7ec61ddef" dependencies = [ "indexmap 2.2.6", "serde", @@ -12329,7 +14648,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -12344,45 +14663,32 @@ dependencies = [ [[package]] name = "tracing-log" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" dependencies = [ "log", "once_cell", "tracing-core", ] -[[package]] -name = "tracing-serde" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" -dependencies = [ - "serde", - "tracing-core", -] - [[package]] name = "tracing-subscriber" -version = "0.2.25" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" dependencies = [ - "ansi_term", - "chrono", - "lazy_static", "matchers", + "nu-ansi-term", + "once_cell", "regex", - "serde", - "serde_json", "sharded-slab", "smallvec", "thread_local", + "time", "tracing", "tracing-core", "tracing-log", - "tracing-serde", ] [[package]] @@ -12717,9 +15023,9 @@ dependencies = [ [[package]] name = "walkdir" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ "same-file", "winapi-util", @@ -12761,7 +15067,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", "wasm-bindgen-shared", ] @@ -12795,7 +15101,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -13490,33 +15796,69 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be630e9b41c5d19d227162afe4cf642be24058b179fb1edbfe132f6328c7bde8" dependencies = [ - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "cumulus-primitives-parachain-inherent", - "cumulus-test-relay-sproof-builder", - "frame-support", - "frame-system", + "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-primitives-core 0.14.0", + "cumulus-primitives-parachain-inherent 0.14.0", + "cumulus-test-relay-sproof-builder 0.14.0", + "frame-support 36.0.0", + "frame-system 36.1.0", + "impl-trait-for-tuples", + "lazy_static", + "log", + "pallet-balances 37.0.0", + "pallet-message-queue 39.0.1", + "parachains-common 15.0.0", + "parity-scale-codec", + "paste", + "polkadot-parachain-primitives 13.0.0", + "polkadot-primitives 14.0.0", + "polkadot-runtime-parachains 15.0.2", + "sp-arithmetic 26.0.0", + "sp-core", + "sp-crypto-hashing", + "sp-io 37.0.0", + "sp-runtime 38.0.0", + "sp-std", + "sp-tracing", + "staging-xcm 14.2.0", + "staging-xcm-executor 15.0.0", +] + +[[package]] +name = "xcm-emulator" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9ca0239660dd0303f2aa492e297d0be5051fc39e792c840580e05c522fecaa" +dependencies = [ + "array-bytes", + "cumulus-pallet-parachain-system 0.17.1", + "cumulus-pallet-xcmp-queue 0.17.0", + "cumulus-primitives-core 0.16.0", + "cumulus-primitives-parachain-inherent 0.16.0", + "cumulus-test-relay-sproof-builder 0.16.0", + "frame-support 38.2.0", + "frame-system 38.0.0", "impl-trait-for-tuples", "lazy_static", "log", - "pallet-balances", - "pallet-message-queue", - "parachains-common", + "pallet-balances 39.0.0", + "pallet-message-queue 41.0.2", + "parachains-common 18.0.0", "parity-scale-codec", "paste", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 14.0.0", + "polkadot-primitives 16.0.0", + "polkadot-runtime-parachains 17.0.2", "sp-arithmetic 26.0.0", "sp-core", "sp-crypto-hashing", - "sp-io", - "sp-runtime", + "sp-io 38.0.0", + "sp-runtime 39.0.5", "sp-std", "sp-tracing", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] @@ -13528,7 +15870,7 @@ dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -13540,7 +15882,7 @@ dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -13549,14 +15891,29 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "30fffcd9128a46abd836c37dd001c2cbe122aeb8904cd7b9bac8358564fb7b56" dependencies = [ - "frame-support", + "frame-support 36.0.0", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 33.0.0", "sp-std", "sp-weights 31.0.0", - "staging-xcm 14.1.0", - "staging-xcm-executor", + "staging-xcm 14.2.0", + "staging-xcm-executor 15.0.0", +] + +[[package]] +name = "xcm-runtime-apis" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3d96bd7362d9e6884ef6762f08737d89205a358d059a0451353f3e91985ca5" +dependencies = [ + "frame-support 38.2.0", + "parity-scale-codec", + "scale-info", + "sp-api 34.0.0", + "sp-weights 31.0.0", + "staging-xcm 14.2.0", + "staging-xcm-executor 17.0.1", ] [[package]] @@ -13615,7 +15972,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] @@ -13635,7 +15992,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.65", + "syn 2.0.98", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index fbb73a49d..9c4c560e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,14 +3,14 @@ version = "1.0.0" authors = ["Paseo Core Team"] edition = "2021" repository = "https://github.com/paseo-network/runtimes.git" -license = "GPL-3.0-only" +license = "GPL-3.0-only" # TODO [workspace.dependencies] -kusama-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.4", package = "kusama-runtime-constants", default-features = false } -bp-bridge-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.4", package = "bp-bridge-hub-kusama", default-features = false } -bp-bridge-hub-polkadot = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.4", package = "bp-bridge-hub-polkadot", default-features = false } -bp-asset-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.4", package = "bp-asset-hub-kusama", default-features = false } -collectives-polkadot-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.4", package = "collectives-polkadot-runtime-constants", default-features = false } +kusama-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.4.0", package = "kusama-runtime-constants", default-features = false } +bp-bridge-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.4.0", package = "bp-bridge-hub-kusama", default-features = false } +bp-bridge-hub-polkadot = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.4.0", package = "bp-bridge-hub-polkadot", default-features = false } +bp-asset-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.4.0", package = "bp-asset-hub-kusama", default-features = false } +collectives-polkadot-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.4.0", package = "collectives-polkadot-runtime-constants", default-features = false } # Local dependencies @@ -20,6 +20,8 @@ asset-hub-paseo-runtime = { path = "system-parachains/asset-hub-paseo", default- bridge-hub-paseo-runtime = { path = "system-parachains/bridge-hub-paseo", default-features = false } people-paseo-runtime = { path = "system-parachains/people-paseo", default-features = false } coretime-paseo-runtime = { path = "system-parachains/coretime-paseo", default-features = false } +collectives-paseo-runtime = { path = "system-parachains/collectives-paseo" } +collectives-paseo-runtime-constants = { path = "system-parachains/collectives/collectives-paseo/constants" } # Polkadot SDK bp-bridge-hub-paseo = { path = "system-parachains/bridge-hub-paseo/primitives", default-features = false} @@ -34,28 +36,30 @@ people-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parach paseo-emulated-chain = { path = "integration-tests/emulated/chains/relays/paseo"} assert_matches = { version = "1.5.0" } approx = { version = "0.5.1" } -asset-test-utils = { version = "15.0.0" } -assets-common = { version = "0.15.0", default-features = false } -authority-discovery-primitives = { version = "33.0.0", default-features = false, package = "sp-authority-discovery" } -babe-primitives = { version = "0.39.0", default-features = false, package = "sp-consensus-babe" } -beefy-primitives = { version = "20.0.0", default-features = false, package = "sp-consensus-beefy" } -binary-merkle-tree = { version = "15.0.0", default-features = false } -bp-bridge-hub-cumulus = { version = "0.15.0", default-features = false } -bp-header-chain = { version = "0.15.0", default-features = false } -bp-kusama = { version = "0.13.0", default-features = false } -bp-messages = { version = "0.15.0", default-features = false } -bp-parachains = { version = "0.15.0", default-features = false } -bp-polkadot = { version = "0.13.0", default-features = false } -bp-polkadot-bulletin = { version = "0.12.0", default-features = false } -bp-polkadot-core = { version = "0.15.0", default-features = false } -bp-relayers = { version = "0.15.0", default-features = false } -bp-runtime = { version = "0.15.0", default-features = false } -bp-xcm-bridge-hub-router = { version = "0.13.0", default-features = false } -bridge-hub-common = { version = "0.8.0", default-features = false } -bridge-hub-test-utils = { version = "0.15.0" } -bridge-runtime-common = { version = "0.15.0", default-features = false } +asset-test-utils = { version = "20.0.0" } +assets-common = { version = "0.18.3", default-features = false } +authority-discovery-primitives = { version = "34.0.0", default-features = false, package = "sp-authority-discovery" } +babe-primitives = { version = "0.40.0", default-features = false, package = "sp-consensus-babe" } +beefy-primitives = { version = "22.1.0", default-features = false, package = "sp-consensus-beefy" } +binary-merkle-tree = { version = "15.0.1", default-features = false } +bp-bridge-hub-cumulus = { version = "0.18.0", default-features = false } +bp-header-chain = { version = "0.18.1", default-features = false } +bp-kusama = { version = "0.16.0", default-features = false } +bp-messages = { version = "0.18.0", default-features = false } +bp-parachains = { version = "0.18.0", default-features = false } +bp-polkadot = { version = "0.16.0", default-features = false } +bp-polkadot-bulletin = { version = "0.15.0", default-features = false } +bp-polkadot-core = { version = "0.18.0", default-features = false } +bp-relayers = { version = "0.18.0", default-features = false } +bp-runtime = { version = "0.18.0", default-features = false } +bp-xcm-bridge-hub = { version = "0.4.2", default-features = false } +bp-xcm-bridge-hub-router = { version = "0.14.1", default-features = false } +bridge-hub-common = { version = "0.10.0", default-features = false } +bridge-hub-test-utils = { version = "0.20.0" } +bridge-runtime-common = { version = "0.18.2", default-features = false } clap = { version = "4.5.0" } codec = { package = "parity-scale-codec", version = "3.6.9", default-features = false } +collectives-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/collectives-paseo" } coretime-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/coretime/coretime-paseo" } cumulus-pallet-aura-ext = { version = "0.15.0", default-features = false } cumulus-pallet-parachain-system = { version = "0.15.0", default-features = false } @@ -67,156 +71,162 @@ cumulus-primitives-core = { version = "0.14.0", default-features = false } cumulus-primitives-utility = { version = "0.15.0", default-features = false } emulated-integration-tests-common = { version = "11.0.0" } enumflags2 = { version = "0.7.7" } -frame-benchmarking = { version = "36.0.0", default-features = false } -frame-election-provider-support = { version = "36.0.0", default-features = false } -frame-executive = { version = "36.0.0", default-features = false } -frame-support = { version = "36.0.0", default-features = false } -frame-system = { version = "36.0.0", default-features = false } -frame-system-benchmarking = { version = "36.0.0", default-features = false } -frame-system-rpc-runtime-api = { version = "33.0.0", default-features = false } -frame-try-runtime = { version = "0.42.0", default-features = false } -grandpa = { version = "0.27.0", package = "sc-consensus-grandpa" } +frame-benchmarking = { version = "38.0.0", default-features = false } +frame-election-provider-support = { version = "38.0.0", default-features = false } +frame-executive = { version = "38.0.0", default-features = false } +frame-support = { version = "38.2.0", default-features = false } +frame-system = { version = "38.0.0", default-features = false } +frame-system-benchmarking = { version = "38.0.0", default-features = false } +frame-system-rpc-runtime-api = { version = "34.0.0", default-features = false } +frame-try-runtime = { version = "0.44.0", default-features = false } +grandpa = { version = "0.30.0", package = "sc-consensus-grandpa" } hex-literal = { version = "0.4.1" } log = { version = "0.4.21", default-features = false } -pallet-alliance = { version = "35.0.0", default-features = false } -pallet-asset-conversion = { version = "18.0.0", default-features = false } -pallet-asset-conversion-tx-payment = { version = "18.0.0", default-features = false } -pallet-asset-rate = { version = "15.0.0", default-features = false } -pallet-asset-tx-payment = { version = "36.0.0", default-features = false } -pallet-assets = { version = "37.0.0", default-features = false } -pallet-aura = { version = "35.0.0", default-features = false } -pallet-authority-discovery = { version = "36.0.0", default-features = false } -pallet-authorship = { version = "36.0.0", default-features = false } -pallet-babe = { version = "36.0.0", default-features = false } -pallet-bags-list = { version = "35.0.0", default-features = false } -pallet-balances = { version = "37.0.0", default-features = false } -pallet-beefy = { version = "36.0.0", default-features = false } -pallet-beefy-mmr = { version = "36.0.0", default-features = false } -pallet-bounties = { version = "35.0.0", default-features = false } -pallet-bridge-grandpa = { version = "0.15.0", default-features = false } -pallet-bridge-messages = { version = "0.15.0", default-features = false } -pallet-bridge-parachains = { version = "0.15.0", default-features = false } -pallet-bridge-relayers = { version = "0.15.0", default-features = false } -pallet-broker = { version = "0.15.0", default-features = false } -pallet-child-bounties = { version = "35.0.0", default-features = false } -pallet-collator-selection = { version = "17.0.0", default-features = false } -pallet-collective = { version = "36.0.0", default-features = false } -pallet-conviction-voting = { version = "36.0.0", default-features = false } -pallet-core-fellowship = { version = "20.0.0", default-features = false } -pallet-election-provider-multi-phase = { version = "35.0.0", default-features = false } -pallet-election-provider-support-benchmarking = { version = "35.0.0", default-features = false } -pallet-fast-unstake = { version = "35.0.0", default-features = false } -pallet-glutton = { version = "22.0.0", default-features = false } -pallet-grandpa = { version = "36.0.0", default-features = false } -pallet-identity = { version = "36.0.0", default-features = false } -pallet-indices = { version = "36.0.0", default-features = false } -pallet-insecure-randomness-collective-flip = { version = "24.0.0", default-features = false } -pallet-membership = { version = "36.0.0", default-features = false } -pallet-message-queue = { version = "39.0.0", default-features = false } -pallet-mmr = { version = "35.0.0", default-features = false } -pallet-multisig = { version = "36.0.0", default-features = false } -pallet-nft-fractionalization = { version = "18.0.0", default-features = false } -pallet-nfts = { version = "30.0.0", default-features = false } -pallet-nfts-runtime-api = { version = "22.0.0", default-features = false } -pallet-nis = { version = "36.0.0", default-features = false } -pallet-nomination-pools = { version = "33.0.0", default-features = false } -pallet-nomination-pools-benchmarking = { version = "34.0.0", default-features = false } -pallet-nomination-pools-runtime-api = { version = "31.0.0", default-features = false } -pallet-offences = { version = "35.0.0", default-features = false } -pallet-offences-benchmarking = { version = "36.0.0", default-features = false } -pallet-parameters = { version = "0.7.0", default-features = false } -pallet-preimage = { version = "36.0.0", default-features = false } -pallet-proxy = { version = "36.0.0", default-features = false } -pallet-ranked-collective = { version = "36.0.0", default-features = false } -pallet-recovery = { version = "36.0.0", default-features = false } -pallet-referenda = { version = "36.0.0", default-features = false } -pallet-salary = { version = "21.0.0", default-features = false } -pallet-scheduler = { version = "37.0.0", default-features = false } -pallet-session = { version = "36.0.0", default-features = false } -pallet-session-benchmarking = { version = "36.0.0", default-features = false } -pallet-society = { version = "36.0.0", default-features = false } -pallet-staking = { version = "36.0.0", default-features = false } +pallet-alliance = { version = "37.0.0", default-features = false } +pallet-asset-conversion = { version = "20.0.0", default-features = false } +pallet-asset-conversion-tx-payment = { version = "20.0.0", default-features = false } +pallet-asset-rate = { version = "17.0.0", default-features = false } +pallet-asset-tx-payment = { version = "38.0.0", default-features = false } +pallet-assets = { version = "40.0.0", default-features = false } +pallet-aura = { version = "37.0.0", default-features = false } +pallet-authority-discovery = { version = "38.0.0", default-features = false } +pallet-authorship = { version = "38.0.0", default-features = false } +pallet-babe = { version = "38.0.0", default-features = false } +pallet-bags-list = { version = "37.0.0", default-features = false } +pallet-balances = { version = "39.0.0", default-features = false } +pallet-beefy = { version = "39.0.0", default-features = false } +pallet-beefy-mmr = { version = "39.0.0", default-features = false } +pallet-bounties = { version = "37.0.2", default-features = false } +pallet-bridge-grandpa = { version = "0.18.0", default-features = false } +pallet-bridge-messages = { version = "0.18.0", default-features = false } +pallet-bridge-parachains = { version = "0.18.0", default-features = false } +pallet-bridge-relayers = { version = "0.18.2", default-features = false } +pallet-broker = { version = "0.17.2", default-features = false } +pallet-child-bounties = { version = "37.0.0", default-features = false } +pallet-collator-selection = { version = "19.0.0", default-features = false } +pallet-collective = { version = "38.0.0", default-features = false } +pallet-conviction-voting = { version = "38.0.0", default-features = false } +pallet-core-fellowship = { version = "22.2.0", default-features = false } +pallet-election-provider-multi-phase = { version = "37.0.0", default-features = false } +pallet-election-provider-support-benchmarking = { version = "37.0.0", default-features = false } +pallet-fast-unstake = { version = "37.0.0", default-features = false } +pallet-glutton = { version = "24.0.0", default-features = false } +pallet-grandpa = { version = "38.0.0", default-features = false } +pallet-identity = { version = "38.0.0", default-features = false } +pallet-indices = { version = "38.0.0", default-features = false } +pallet-insecure-randomness-collective-flip = { version = "26.0.0", default-features = false } +pallet-membership = { version = "38.0.0", default-features = false } +pallet-message-queue = { version = "41.0.2", default-features = false } +pallet-mmr = { version = "38.0.0", default-features = false } +pallet-multisig = { version = "38.0.0", default-features = false } +pallet-nft-fractionalization = { version = "21.0.0", default-features = false } +pallet-nfts = { version = "32.0.0", default-features = false } +pallet-nfts-runtime-api = { version = "24.0.0", default-features = false } +pallet-nis = { version = "38.0.0", default-features = false } +pallet-nomination-pools = { version = "35.0.2", default-features = false } +pallet-nomination-pools-benchmarking = { version = "36.0.0", default-features = false } +pallet-nomination-pools-runtime-api = { version = "33.0.2", default-features = false } +pallet-offences = { version = "37.0.0", default-features = false } +pallet-offences-benchmarking = { version = "38.0.0", default-features = false } +pallet-parameters = { version = "0.9.0", default-features = false } +pallet-preimage = { version = "38.0.0", default-features = false } +pallet-proxy = { version = "38.0.0", default-features = false } +pallet-ranked-collective = { version = "38.2.0", default-features = false } +pallet-recovery = { version = "38.0.0", default-features = false } +pallet-referenda = { version = "38.0.0", default-features = false } +pallet-salary = { version = "23.2.0", default-features = false } +pallet-scheduler = { version = "39.0.0", default-features = false } +pallet-session = { version = "38.0.0", default-features = false } +pallet-session-benchmarking = { version = "38.0.0", default-features = false } +pallet-society = { version = "38.0.0", default-features = false } +pallet-staking = { version = "38.0.0", default-features = false } +pallet-delegated-staking = { version = "5.0.0", default-features = false } pallet-staking-reward-curve = { version = "12.0.0" } pallet-staking-reward-fn = { version = "22.0.0", default-features = false } -pallet-staking-runtime-api = { version = "21.0.0", default-features = false } -pallet-state-trie-migration = { version = "37.0.0", default-features = false } -pallet-sudo = { version = "36.0.0", default-features = false } -pallet-timestamp = { version = "35.0.0", default-features = false } -pallet-transaction-payment = { version = "36.0.0", default-features = false } -pallet-transaction-payment-rpc-runtime-api = { version = "36.0.0", default-features = false } -pallet-treasury = { version = "35.0.0", default-features = false } -pallet-uniques = { version = "36.0.0", default-features = false } -pallet-utility = { version = "36.0.0", default-features = false } -pallet-vesting = { version = "36.0.0", default-features = false } -pallet-whitelist = { version = "35.0.0", default-features = false } -pallet-xcm = { version = "15.0.0", default-features = false } -pallet-xcm-benchmarks = { version = "15.0.0", default-features = false } -pallet-xcm-bridge-hub = { version = "0.10.0", default-features = false } -pallet-xcm-bridge-hub-router = { version = "0.13.0", default-features = false } -parachain-info = { version = "0.15.0", default-features = false, package = "staging-parachain-info" } -parachains-common = { version = "15.0.0", default-features = false } -parachains-runtimes-test-utils = { version = "15.0.0" } +pallet-staking-runtime-api = { version = "24.0.0", default-features = false } +pallet-state-trie-migration = { version = "40.0.0", default-features = false } +pallet-sudo = { version = "38.0.0", default-features = false } +pallet-timestamp = { version = "37.0.0", default-features = false } +pallet-transaction-payment = { version = "38.0.2", default-features = false } +pallet-transaction-payment-rpc-runtime-api = { version = "38.0.0", default-features = false } +pallet-treasury = { version = "37.0.0", default-features = false } +pallet-uniques = { version = "38.0.0", default-features = false } +pallet-utility = { version = "38.0.0", default-features = false } +pallet-vesting = { version = "38.0.0", default-features = false } +pallet-whitelist = { version = "37.0.0", default-features = false } +pallet-xcm = { version = "17.0.1", default-features = false } +pallet-xcm-benchmarks = { version = "17.0.0", default-features = false } +pallet-xcm-bridge-hub = { version = "0.13.2", default-features = false } +pallet-xcm-bridge-hub-router = { version = "0.15.3", default-features = false } +parachain-info = { version = "0.17.0", default-features = false, package = "staging-parachain-info" } +parachains-common = { version = "18.0.0", default-features = false } +parachains-runtimes-test-utils = { version = "19.0.0" } paste = { version = "1.0.14" } -penpal-runtime = { version = "0.22.0" } -polkadot-core-primitives = { version = "14.0.0", default-features = false } -polkadot-parachain-primitives = { version = "13.0.0", default-features = false } -polkadot-primitives = { version = "14.0.0", default-features = false } -polkadot-runtime-common = { version = "15.0.0", default-features = false } +penpal-runtime = { version = "0.25.0" } +people-kusama-emulated-chain = { path = "integration-tests/emulated/chains/parachains/people/people-kusama" } +people-kusama-runtime = { path = "system-parachains/people/people-kusama" } +polkadot-core-primitives = { version = "15.0.0", default-features = false } +polkadot-parachain-primitives = { version = "14.0.0", default-features = false } +polkadot-primitives = { version = "16.0.0", default-features = false } +polkadot-runtime = { path = "relay/paseo" } +polkadot-runtime-common = { version = "17.0.0", default-features = false } +paseo-runtime-common = { version = "17.0.0", default-features = false } primitive-types = { version = "0.12.2", default-features = false } -frame-metadata-hash-extension = { version = "0.4.0", default-features = false } -remote-externalities = { version = "0.43.0", package = "frame-remote-externalities" } -runtime-parachains = { version = "15.0.2", default-features = false, package = "polkadot-runtime-parachains" } -sc-chain-spec = { version = "35.0.0" } -sc-network = { version = "0.42.0" } +frame-metadata-hash-extension = { version = "0.6.0", default-features = false } +remote-externalities = { version = "0.46.0", package = "frame-remote-externalities" } +runtime-parachains = { version = "17.0.2", default-features = false, package = "polkadot-runtime-parachains" } +sc-chain-spec = { version = "38.0.0" } +sc-network = { version = "0.45.5" } scale-info = { version = "2.10.0", default-features = false } separator = { version = "0.4.1" } serde = { version = "1.0.196" } serde_json = { version = "1.0.113", default-features = false } smallvec = { version = "1.13.1" } -snowbridge-beacon-primitives = { version = "0.8.0", default-features = false } -snowbridge-core = { version = "0.8.0", default-features = false } -snowbridge-outbound-queue-runtime-api = { version = "0.8.0", default-features = false } -snowbridge-pallet-ethereum-client = { version = "0.8.0", default-features = false } -snowbridge-pallet-inbound-queue = { version = "0.8.0", default-features = false } -snowbridge-pallet-inbound-queue-fixtures = { version = "0.16.0" } -snowbridge-pallet-outbound-queue = { version = "0.8.0", default-features = false } -snowbridge-pallet-system = { version = "0.8.0", default-features = false } -snowbridge-router-primitives = { version = "0.14.0", default-features = false } -snowbridge-runtime-common = { version = "0.8.0", default-features = false } -snowbridge-runtime-test-common = { version = "0.8.0" } -snowbridge-system-runtime-api = { version = "0.8.0", default-features = false } -sp-api = { version = "33.0.0", default-features = false } -sp-application-crypto = { version = "37.0.0", default-features = false } +snowbridge-beacon-primitives = { version = "0.10.0", default-features = false } +snowbridge-core = { version = "0.10.0", default-features = false } +snowbridge-outbound-queue-runtime-api = { version = "0.10.0", default-features = false } +snowbridge-pallet-ethereum-client = { version = "0.10.0", default-features = false } +snowbridge-pallet-inbound-queue = { version = "0.10.0", default-features = false } +snowbridge-pallet-inbound-queue-fixtures = { version = "0.18.1" } +snowbridge-pallet-ethereum-client-fixtures = { version = "0.18.0" } +snowbridge-pallet-outbound-queue = { version = "0.10.0", default-features = false } +snowbridge-pallet-system = { version = "0.10.0", default-features = false } +snowbridge-router-primitives = { version = "0.16.1", default-features = false } +snowbridge-runtime-common = { version = "0.10.0", default-features = false } +snowbridge-runtime-test-common = { version = "0.12.0" } +snowbridge-system-runtime-api = { version = "0.10.0", default-features = false } +sp-api = { version = "34.0.0", default-features = false } +sp-application-crypto = { version = "38.0.0", default-features = false } sp-arithmetic = { version = "26.0.0", default-features = false } -sp-block-builder = { version = "33.0.0", default-features = false } -sp-consensus-aura = { version = "0.39.0", default-features = false } +sp-block-builder = { version = "34.0.0", default-features = false } +sp-consensus-aura = { version = "0.40.0", default-features = false } sp-core = { version = "34.0.0", default-features = false } sp-debug-derive = { version = "14.0.0", default-features = false } -sp-genesis-builder = { version = "0.14.0", default-features = false } -sp-inherents = { version = "33.0.0", default-features = false } -sp-io = { version = "37.0.0", default-features = false } -sp-keyring = { version = "38.0.0" } -sp-npos-elections = { version = "33.0.0", default-features = false } -sp-offchain = { version = "33.0.0", default-features = false } -sp-runtime = { version = "38.0.0", default-features = false } -sp-session = { version = "34.0.0", default-features = false } -sp-staking = { version = "33.0.0", default-features = false } +sp-genesis-builder = { version = "0.15.1", default-features = false } +sp-inherents = { version = "34.0.0", default-features = false } +sp-io = { version = "38.0.0", default-features = false } +sp-keyring = { version = "39.0.0" } +sp-npos-elections = { version = "34.0.0", default-features = false } +sp-offchain = { version = "34.0.0", default-features = false } +sp-runtime = { version = "39.0.5", default-features = false } +sp-session = { version = "36.0.0", default-features = false } +sp-staking = { version = "36.0.0", default-features = false } sp-std = { version = "14.0.0", default-features = false } sp-storage = { version = "21.0.0", default-features = false } -sp-tracing = { version = "17.0.0", default-features = false } -sp-transaction-pool = { version = "33.0.0", default-features = false } -sp-trie = { version = "36.0.0" } -sp-version = { version = "36.0.0", default-features = false } +sp-tracing = { version = "17.0.1", default-features = false } +sp-transaction-pool = { version = "34.0.0", default-features = false } +sp-trie = { version = "37.0.0" } +sp-version = { version = "37.0.0", default-features = false } sp-weights = { version = "31.0.0", default-features = false } static_assertions = { version = "1.1.0" } -substrate-wasm-builder = { version = "23.0.0" } +substrate-wasm-builder = { version = "24.0.1" } system-parachains-constants = { path = "system-parachains/constants", default-features = false } tokio = { version = "1.36.0" } -xcm = { version = "14.0.1", default-features = false, package = "staging-xcm" } -xcm-builder = { version = "15.0.0", default-features = false, package = "staging-xcm-builder" } -xcm-emulator = { version = "0.13.0" } -xcm-executor = { version = "15.0.0", default-features = false, package = "staging-xcm-executor" } -xcm-runtime-apis = { version = "0.2.0", default-features = false } +xcm = { version = "14.2.0", default-features = false, package = "staging-xcm" } +xcm-builder = { version = "17.0.3", default-features = false, package = "staging-xcm-builder" } +xcm-emulator = { version = "0.16.0" } +xcm-executor = { version = "17.0.1", default-features = false, package = "staging-xcm-executor" } +xcm-runtime-apis = { version = "0.4.2", default-features = false } anyhow = { version = "1.0.82" } subxt = { version = "0.35.0", default-features = false } tracing-subscriber = { version = "0.3.18" } @@ -232,6 +242,7 @@ members = [ "chain-spec-generator", "integration-tests/emulated/chains/parachains/assets/asset-hub-paseo", "integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo", + "integration-tests/emulated/chains/parachains/collectives/collectives-paseo", "integration-tests/emulated/chains/parachains/coretime/coretime-paseo", "integration-tests/emulated/chains/parachains/testing/penpal", "integration-tests/emulated/chains/relays/paseo", @@ -246,6 +257,8 @@ members = [ "system-parachains/bridge-hub-paseo", "system-parachains/bridge-hub-paseo/primitives", "system-parachains/people-paseo", + "system-parachains/collectives-paseo", + "system-parachains/collectives-paseo/constants", "system-parachains/constants", "system-parachains/coretime-paseo", ] diff --git a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/Cargo.toml b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/Cargo.toml new file mode 100644 index 000000000..6421129c7 --- /dev/null +++ b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "collectives-paseo-emulated-chain" +version = "0.0.0" +authors.workspace = true +edition.workspace = true +license = "Apache-2.0" +description = "Collectives Paseo emulated chain used for integration tests" +publish = false + +[dependencies] + +# Substrate +sp-core = { workspace = true, default-features = true } +frame-support = { workspace = true, default-features = true } + +# Cumulus +parachains-common = { workspace = true, default-features = true } +cumulus-primitives-core = { workspace = true, default-features = true } +emulated-integration-tests-common = { workspace = true } + +# Runtimes +collectives-paseo-runtime = { workspace = true } diff --git a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs new file mode 100644 index 000000000..7becb87c8 --- /dev/null +++ b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs @@ -0,0 +1,68 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Substrate +use sp_core::storage::Storage; + +// Cumulus +use emulated_integration_tests_common::{ + accounts, build_genesis_storage, collators, SAFE_XCM_VERSION, +}; +use parachains_common::Balance; + +pub const PARA_ID: u32 = 1001; +pub const ED: Balance = collectives_polkadot_runtime::ExistentialDeposit::get(); + +pub fn genesis() -> Storage { + let genesis_config = collectives_polkadot_runtime::RuntimeGenesisConfig { + system: collectives_polkadot_runtime::SystemConfig::default(), + balances: collectives_polkadot_runtime::BalancesConfig { + balances: accounts::init_balances().iter().cloned().map(|k| (k, ED * 4096)).collect(), + }, + parachain_info: collectives_polkadot_runtime::ParachainInfoConfig { + parachain_id: PARA_ID.into(), + ..Default::default() + }, + collator_selection: collectives_polkadot_runtime::CollatorSelectionConfig { + invulnerables: collators::invulnerables().iter().cloned().map(|(acc, _)| acc).collect(), + candidacy_bond: ED * 16, + ..Default::default() + }, + session: collectives_polkadot_runtime::SessionConfig { + keys: collators::invulnerables() + .into_iter() + .map(|(acc, aura)| { + ( + acc.clone(), // account id + acc, // validator id + collectives_polkadot_runtime::SessionKeys { aura }, // session keys + ) + }) + .collect(), + ..Default::default() + }, + polkadot_xcm: collectives_polkadot_runtime::PolkadotXcmConfig { + safe_xcm_version: Some(SAFE_XCM_VERSION), + ..Default::default() + }, + ..Default::default() + }; + + build_genesis_storage( + &genesis_config, + collectives_polkadot_runtime::WASM_BINARY + .expect("WASM binary was not built, please build it!"), + ) +} diff --git a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs new file mode 100644 index 000000000..d8ffbdcaf --- /dev/null +++ b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs @@ -0,0 +1,52 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +pub mod genesis; + +// Substrate +use frame_support::traits::OnInitialize; + +// Cumulus +use emulated_integration_tests_common::{ + impl_accounts_helpers_for_parachain, impl_assert_events_helpers_for_parachain, + impls::Parachain, xcm_emulator::decl_test_parachains, +}; + +// CollectivesPolkadot Parachain declaration +decl_test_parachains! { + pub struct CollectivesPolkadot { + genesis = genesis::genesis(), + on_init = { + collectives_polkadot_runtime::AuraExt::on_initialize(1); + }, + runtime = collectives_polkadot_runtime, + core = { + XcmpMessageHandler: collectives_polkadot_runtime::XcmpQueue, + LocationToAccountId: collectives_polkadot_runtime::xcm_config::LocationToAccountId, + ParachainInfo: collectives_polkadot_runtime::ParachainInfo, + MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin, + }, + pallets = { + PolkadotXcm: collectives_polkadot_runtime::PolkadotXcm, + Balances: collectives_polkadot_runtime::Balances, + FellowshipTreasury: collectives_polkadot_runtime::FellowshipTreasury, + AssetRate: collectives_polkadot_runtime::AssetRate, + } + }, +} + +// CollectivesPolkadot implementation +impl_accounts_helpers_for_parachain!(CollectivesPolkadot); +impl_assert_events_helpers_for_parachain!(CollectivesPolkadot); diff --git a/relay/common/src/lib.rs b/relay/common/src/lib.rs index 0f0e119f2..e38d99408 100644 --- a/relay/common/src/lib.rs +++ b/relay/common/src/lib.rs @@ -27,6 +27,7 @@ pub mod apis { /// Both fields should be treated as best-effort, given that the inflation rate might not be /// fully predict-able. #[derive(scale_info::TypeInfo, codec::Encode, codec::Decode)] + #[cfg_attr(feature = "std", derive(Debug))] pub struct InflationInfo { /// The rate of inflation estimated per annum. pub inflation: sp_runtime::Perquintill, diff --git a/relay/paseo/Cargo.toml b/relay/paseo/Cargo.toml index 54682599a..57b167d50 100644 --- a/relay/paseo/Cargo.toml +++ b/relay/paseo/Cargo.toml @@ -2,7 +2,7 @@ name = "paseo-runtime" build = "build.rs" repository.workspace = true -version = "1.3.4" +version = "1.4.0" authors.workspace = true edition.workspace = true license.workspace = true @@ -46,6 +46,7 @@ pallet-beefy-mmr = { workspace = true } pallet-bounties = { workspace = true } pallet-broker = { workspace = true } pallet-child-bounties = { workspace = true } +pallet-delegated-staking = { workspace = true } pallet-transaction-payment = { workspace = true } pallet-transaction-payment-rpc-runtime-api = { workspace = true } pallet-conviction-voting = { workspace = true } @@ -156,6 +157,7 @@ std = [ "pallet-broker/std", "pallet-child-bounties/std", "pallet-conviction-voting/std", + "pallet-delegated-staking/std", "pallet-election-provider-multi-phase/std", "pallet-election-provider-support-benchmarking?/std", "pallet-fast-unstake/std", @@ -233,10 +235,12 @@ runtime-benchmarks = [ "pallet-babe/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-beefy-mmr/runtime-benchmarks", "pallet-bounties/runtime-benchmarks", "pallet-broker/runtime-benchmarks", "pallet-child-bounties/runtime-benchmarks", "pallet-conviction-voting/runtime-benchmarks", + "pallet-delegated-staking/runtime-benchmarks", "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-election-provider-support-benchmarking/runtime-benchmarks", "pallet-fast-unstake/runtime-benchmarks", @@ -294,6 +298,7 @@ try-runtime = [ "pallet-broker/try-runtime", "pallet-child-bounties/try-runtime", "pallet-conviction-voting/try-runtime", + "pallet-delegated-staking/try-runtime", "pallet-election-provider-multi-phase/try-runtime", "pallet-fast-unstake/try-runtime", "pallet-grandpa/try-runtime", diff --git a/relay/paseo/src/coretime_migration.rs b/relay/paseo/src/coretime_migration.rs index b95db33ee..c25d0593b 100644 --- a/relay/paseo/src/coretime_migration.rs +++ b/relay/paseo/src/coretime_migration.rs @@ -244,7 +244,7 @@ fn migrate_send_assignments_to_coretime_chain< }, }; - let time_slice = (valid_until + TIMESLICE_PERIOD - 1) / TIMESLICE_PERIOD; + let time_slice = (valid_until + TIMESLICE_PERIOD - 1).div_ceil(TIMESLICE_PERIOD); log::trace!(target: "coretime-migration", "Sending of lease holding para {:?}, valid_until: {:?}, time_slice: {:?}", p, valid_until, time_slice); Some(mk_coretime_call::(CoretimeCalls::SetLease(p.into(), time_slice))) }); diff --git a/relay/paseo/src/genesis_config_presets.rs b/relay/paseo/src/genesis_config_presets.rs index 5335d0755..78d31acf3 100644 --- a/relay/paseo/src/genesis_config_presets.rs +++ b/relay/paseo/src/genesis_config_presets.rs @@ -19,8 +19,8 @@ use crate::*; use babe_primitives::AuthorityId as BabeId; use pallet_staking::{Forcing, StakerStatus}; +use paseo_primitives::{AccountPublic, AssignmentId, AsyncBackingParams}; use paseo_runtime_constants::currency::UNITS as PAS; -use polkadot_primitives::{AccountPublic, AssignmentId, AsyncBackingParams, ExecutorParam::{MaxMemoryPages, PvfExecTimeout}, PvfExecKind}; use runtime_parachains::configuration::HostConfiguration; use sp_core::{sr25519, Pair, Public}; use sp_genesis_builder::PresetId; @@ -134,7 +134,7 @@ fn default_parachains_host_configuration() -> HostConfiguration, - root_key: AccountId, + _root_key: AccountId, endowed_accounts: Option>, ) -> serde_json::Value { let endowed_accounts: Vec = endowed_accounts.unwrap_or_else(testnet_accounts); diff --git a/relay/paseo/src/lib.rs b/relay/paseo/src/lib.rs index 89195c15a..a631f7eb2 100644 --- a/relay/paseo/src/lib.rs +++ b/relay/paseo/src/lib.rs @@ -31,6 +31,7 @@ use polkadot_runtime_common::{ traits::OnSwap, BlockHashCount, BlockLength, CurrencyToVote, SlowAdjustingFeeUpdate, }; +use relay_common::apis::InflationInfo; use runtime_parachains::{ assigner_coretime as parachains_assigner_coretime, @@ -53,6 +54,7 @@ use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId; use beefy_primitives::{ ecdsa_crypto::{AuthorityId as BeefyId, Signature as BeefySignature}, mmr::{BeefyDataProvider, MmrLeafVersion}, + OpaqueKeyOwnershipProof, }; use codec::{Decode, Encode, MaxEncodedLen}; use frame_election_provider_support::{ @@ -60,14 +62,14 @@ use frame_election_provider_support::{ }; use frame_support::{ construct_runtime, - dynamic_params::{dynamic_pallet_params, dynamic_params}, genesis_builder_helper::{build_state, get_preset}, parameter_types, traits::{ - fungible::HoldConsideration, tokens::UnityOrOuterConversion, ConstU32, ConstU8, EitherOf, - EitherOfDiverse, Everything, FromContains, Get, InstanceFilter, KeyOwnerProofSystem, - LinearStoragePrice, PrivilegeCmp, ProcessMessage, ProcessMessageError, - WithdrawReasons, + fungible::HoldConsideration, + tokens::{imbalance::ResolveTo, UnityOrOuterConversion}, + ConstU32, ConstU8, EitherOf, EitherOfDiverse, Everything, FromContains, Get, + InstanceFilter, KeyOwnerProofSystem, LinearStoragePrice, OnRuntimeUpgrade, PrivilegeCmp, + ProcessMessage, ProcessMessageError, WithdrawReasons, }, weights::{ constants::{WEIGHT_PROOF_SIZE_PER_KB, WEIGHT_REF_TIME_PER_MICROS}, @@ -85,7 +87,7 @@ use polkadot_primitives::{ GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, Moment, NodeFeatures, Nonce, OccupiedCoreAssumption, PersistedValidationData, ScrapedOnChainVotes, SessionInfo, Signature, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, - LOWEST_PUBLIC_ID, PARACHAIN_KEY_TYPE_ID, + PARACHAIN_KEY_TYPE_ID, }; use sp_core::{OpaqueMetadata, H256}; use sp_runtime::{ @@ -93,10 +95,11 @@ use sp_runtime::{ traits::{ AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, ConvertInto, Extrinsic as ExtrinsicT, IdentityLookup, Keccak256, OpaqueKeys, SaturatedConversion, - Saturating, Verify, + Verify, }, transaction_validity::{TransactionPriority, TransactionSource, TransactionValidity}, - ApplyExtrinsicResult, FixedU128, KeyTypeId, Perbill, Percent, Permill, RuntimeDebug, + ApplyExtrinsicResult, FixedU128, KeyTypeId, OpaqueValue, Perbill, Percent, Permill, + RuntimeDebug, }; use sp_staking::SessionIndex; use sp_std::{ @@ -119,6 +122,7 @@ pub use pallet_balances::Call as BalancesCall; pub use pallet_election_provider_multi_phase::{Call as EPMCall, GeometricDepositBase}; use pallet_staking::UseValidatorsMap; pub use pallet_timestamp::Call as TimestampCall; +use pallet_treasury::TreasuryAccountId; #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; @@ -160,7 +164,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("paseo"), impl_name: create_runtime_str!("paseo-testnet"), authoring_version: 0, - spec_version: 1_003_004, + spec_version: 1_004_000, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 26, @@ -350,6 +354,7 @@ impl pallet_beefy::Config for Runtime { type MaxNominators = MaxNominators; type MaxSetIdSessionEntries = BeefySetIdSessionEntries; type OnNewValidatorSet = BeefyMmrLeaf; + type AncestryHelper = BeefyMmrLeaf; type WeightInfo = (); type KeyOwnerProof = >::Proof; type EquivocationReportSystem = @@ -363,6 +368,8 @@ impl pallet_mmr::Config for Runtime { type WeightInfo = (); type LeafData = pallet_beefy_mmr::Pallet; type BlockHashProvider = pallet_mmr::DefaultBlockHashProvider; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = parachains_paras::benchmarking::mmr_setup::MmrSetup; } /// MMR helper types. @@ -415,6 +422,7 @@ impl pallet_beefy_mmr::Config for Runtime { type BeefyAuthorityToMerkleLeaf = pallet_beefy_mmr::BeefyEcdsaToEthereum; type LeafExtra = H256; type BeefyDataProvider = ParaHeadsRootProvider; + type WeightInfo = weights::pallet_beefy_mmr::WeightInfo; } parameter_types! { @@ -615,88 +623,6 @@ impl pallet_bags_list::Config for Runtime { type Score = sp_npos_elections::VoteWeight; } -/// Dynamic params that can be adjusted at runtime. -#[dynamic_params(RuntimeParameters, pallet_parameters::Parameters::)] -pub mod dynamic_params { - use super::*; - - /// Parameters used to calculate era payouts, see - /// [`paseo_runtime_common::impls::EraPayoutParams`]. - #[dynamic_pallet_params] - #[codec(index = 0)] - pub mod inflation { - /// Minimum inflation rate used to calculate era payouts. - #[codec(index = 0)] - pub static MinInflation: Perquintill = Perquintill::from_rational(25u64, 1000); - - /// Maximum inflation rate used to calculate era payouts. - #[codec(index = 1)] - pub static MaxInflation: Perquintill = Perquintill::from_percent(10); - - /// Ideal stake ratio used to calculate era payouts. - #[codec(index = 2)] - pub static IdealStake: Perquintill = Perquintill::from_percent(75); - - /// Falloff used to calculate era payouts. - #[codec(index = 3)] - pub static Falloff: Perquintill = Perquintill::from_percent(5); - - /// Whether to use auction slots or not in the calculation of era payouts, then we subtract - /// `num_auctioned_slots.min(60) / 300` from `ideal_stake`. - /// - /// That is, we assume up to 60 parachains that are leased can reduce the ideal stake by a - /// maximum of 20%. - /// - /// With the move to agile-coretime, this parameter does not make much sense and should - /// generally be set to false. - #[codec(index = 4)] - pub static UseAuctionSlots: bool = true; - } -} - -#[cfg(feature = "runtime-benchmarks")] -impl Default for RuntimeParameters { - fn default() -> Self { - RuntimeParameters::Inflation(dynamic_params::inflation::Parameters::MinInflation( - dynamic_params::inflation::MinInflation, - Some(Perquintill::from_rational(25u64, 1000u64)), - )) - } -} - -/// Defines what origin can modify which dynamic parameters. -pub struct DynamicParameterOrigin; -impl frame_support::traits::EnsureOriginWithArg - for DynamicParameterOrigin -{ - type Success = (); - - fn try_origin( - origin: RuntimeOrigin, - key: &RuntimeParametersKey, - ) -> Result { - use crate::RuntimeParametersKey::*; - - match key { - Inflation(_) => frame_system::ensure_root(origin.clone()), - } - .map_err(|_| origin) - } - - #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin(_key: &RuntimeParametersKey) -> Result { - // Provide the origin for the parameter returned by `Default`: - Ok(RuntimeOrigin::root()) - } -} - -impl pallet_parameters::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type RuntimeParameters = RuntimeParameters; - type AdminOrigin = DynamicParameterOrigin; - type WeightInfo = weights::pallet_parameters::WeightInfo; -} - /// Defines how much should the inflation be for an era given its duration. pub struct EraPayout; impl pallet_staking::EraPayout for EraPayout { @@ -775,7 +701,7 @@ impl pallet_staking::Config for Runtime { type HistoryDepth = frame_support::traits::ConstU32<84>; type MaxControllersInDeprecationBatch = ConstU32<5314>; type BenchmarkingConfig = polkadot_runtime_common::StakingBenchmarkingConfig; - type EventListeners = NominationPools; + type EventListeners = (NominationPools, DelegatedStaking); type DisablingStrategy = pallet_staking::UpToLimitDisablingStrategy; type WeightInfo = weights::pallet_staking::WeightInfo; } @@ -1077,6 +1003,7 @@ pub enum ProxyType { CancelProxy = 6, Auction = 7, NominationPools = 8, + ParaRegistration = 9, } #[cfg(test)] @@ -1191,6 +1118,15 @@ impl InstanceFilter for ProxyType { RuntimeCall::Registrar(..) | RuntimeCall::Slots(..) ), + ProxyType::ParaRegistration => matches!( + c, + RuntimeCall::Registrar(paras_registrar::Call::reserve { .. }) | + RuntimeCall::Registrar(paras_registrar::Call::register { .. }) | + RuntimeCall::Utility(pallet_utility::Call::batch { .. }) | + RuntimeCall::Utility(pallet_utility::Call::batch_all { .. }) | + RuntimeCall::Utility(pallet_utility::Call::force_batch { .. }) | + RuntimeCall::Proxy(pallet_proxy::Call::remove_proxy { .. }) + ), } } fn is_superset(&self, o: &Self) -> bool { @@ -1377,11 +1313,11 @@ parameter_types! { pub const OnDemandPalletId: PalletId = PalletId(*b"py/ondmd"); } -impl parachains_assigner_on_demand::Config for Runtime { +impl parachains_on_demand::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Currency = Balances; type TrafficDefaultValue = OnDemandTrafficDefaultValue; - type WeightInfo = weights::runtime_parachains_assigner_on_demand::WeightInfo; + type WeightInfo = weights::runtime_parachains_on_demand::WeightInfo; type MaxHistoricalRevenue = MaxHistoricalRevenue; type PalletId = OnDemandPalletId; } @@ -1507,7 +1443,8 @@ impl pallet_nomination_pools::Config for Runtime { type RewardCounter = FixedU128; type BalanceToU256 = polkadot_runtime_common::BalanceToU256; type U256ToBalance = polkadot_runtime_common::U256ToBalance; - type StakeAdapter = pallet_nomination_pools::adapter::TransferStake; + type StakeAdapter = + pallet_nomination_pools::adapter::DelegateStake; type PostUnbondingPoolsWindow = frame_support::traits::ConstU32<4>; type MaxMetadataLen = frame_support::traits::ConstU32<256>; // we use the same number of allowed unlocking chunks as with staking. @@ -1518,28 +1455,20 @@ impl pallet_nomination_pools::Config for Runtime { type AdminOrigin = EitherOf, StakingAdmin>; } -pub struct InitiateNominationPools; -impl frame_support::traits::OnRuntimeUpgrade for InitiateNominationPools { - fn on_runtime_upgrade() -> frame_support::weights::Weight { - // we use one as an indicator if this has already been set. - if pallet_nomination_pools::MaxPools::::get().is_none() { - // 5 PAS to join a pool. - pallet_nomination_pools::MinJoinBond::::put(5 * UNITS); - // 100 PAS to create a pool. - pallet_nomination_pools::MinCreateBond::::put(100 * UNITS); - - // Initialize with limits for now. - pallet_nomination_pools::MaxPools::::put(0); - pallet_nomination_pools::MaxPoolMembersPerPool::::put(0); - pallet_nomination_pools::MaxPoolMembers::::put(0); +parameter_types! { + pub const DelegatedStakingPalletId: PalletId = PalletId(*b"py/dlstk"); + pub const SlashRewardFraction: Perbill = Perbill::from_percent(1); +} - log::info!(target: LOG_TARGET, "pools config initiated 🎉"); - ::DbWeight::get().reads_writes(1, 5) - } else { - log::info!(target: LOG_TARGET, "pools config already initiated 😏"); - ::DbWeight::get().reads(1) - } - } +impl pallet_delegated_staking::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type PalletId = DelegatedStakingPalletId; + type Currency = Balances; + // slashes are sent to the treasury. + type OnSlash = ResolveTo, Balances>; + type SlashRewardFraction = SlashRewardFraction; + type RuntimeHoldReason = RuntimeHoldReason; + type CoreStaking = Staking; } parameter_types! { @@ -1672,6 +1601,9 @@ construct_runtime! { // Fast unstake pallet: extension to staking. FastUnstake: pallet_fast_unstake = 40, + // Staking extension for delegation + DelegatedStaking: pallet_delegated_staking = 41, + // Parachains pallets. Start indices at 50 to leave room. ParachainsOrigin: parachains_origin = 50, Configuration: parachains_configuration = 51, @@ -1687,7 +1619,7 @@ construct_runtime! { ParaSessionInfo: parachains_session_info = 61, ParasDisputes: parachains_disputes = 62, ParasSlashing: parachains_slashing = 63, - OnDemand: parachains_assigner_on_demand = 64, + OnDemand: parachains_on_demand = 64, CoretimeAssignmentProvider: parachains_assigner_coretime = 65, // Parachain Onboarding Pallets. Start indices at 70 to leave room. @@ -1995,6 +1927,50 @@ pub mod migrations { } } + /// Cancel all ongoing auctions. + /// + /// Any leases that come into existence after coretime was launched will not be served. Yet, + /// any ongoing auctions must be cancelled. + /// + /// Safety: + /// + /// - After coretime is launched, there are no auctions anymore. So if this forgotten to be + /// removed after the runtime upgrade, running this again on the next one is harmless. + /// - I am assuming scheduler `TaskName`s are unique, so removal of the scheduled entry multiple + /// times should also be fine. + pub struct CancelAuctions; + impl OnRuntimeUpgrade for CancelAuctions { + fn on_runtime_upgrade() -> Weight { + if let Err(err) = Auctions::cancel_auction(frame_system::RawOrigin::Root.into()) { + log::debug!(target: "runtime", "Cancelling auctions failed: {:?}", err); + } + // Cancel scheduled auction as well: + if let Err(err) = Scheduler::cancel_named( + pallet_custom_origins::Origin::AuctionAdmin.into(), + [ + 0x87, 0xa8, 0x71, 0xb4, 0xd6, 0x21, 0xf0, 0xb9, 0x73, 0x47, 0x5a, 0xaf, 0xcc, + 0x32, 0x61, 0x0b, 0xd7, 0x68, 0x8f, 0x15, 0x02, 0x33, 0x8a, 0xcd, 0x00, 0xee, + 0x48, 0x8a, 0xc3, 0x62, 0x0f, 0x4c, + ], + ) { + log::debug!(target: "runtime", "Cancelling scheduled auctions failed: {:?}", err); + } + use pallet_scheduler::WeightInfo as _; + use paseo_runtime_common::auctions::WeightInfo as _; + weights::paseo_runtime_common_auctions::WeightInfo::::cancel_auction() + .saturating_add(weights::pallet_scheduler::WeightInfo::::cancel_named( + ::MaxScheduledPerBlock::get(), + )) + } + } + + parameter_types! { + // This is used to bound number of pools migrating in the runtime upgrade. This is set to + // ~existing_pool_count * 2 to also account for any new pools getting created before the + // migration is actually executed. + pub const MaxPoolsToMigrate: u32 = 500; + } + /// Unreleased migrations. Add new ones here: pub type Unreleased = ( parachains_configuration::migration::v12::MigrateToV12, @@ -2015,12 +1991,71 @@ pub mod migrations { crate::xcm_config::XcmRouter, GetLegacyLeaseImpl, >, + CancelAuctions, + // Migrate NominationPools to `DelegateStake` adapter. + pallet_nomination_pools::migration::unversioned::DelegationStakeMigration< + Runtime, + MaxPoolsToMigrate, + >, + restore_corrupt_ledger_2::Migrate, ); /// Migrations/checks that do not need to be versioned and can run on every update. pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion,); } +pub mod restore_corrupt_ledger_2 { + use super::*; + use frame_system::RawOrigin; + use pallet_staking::WeightInfo; + + parameter_types! { + // see https://paseo.subscan.io/tools/format_transform, this is the public key of + // 12gmcL9eej9jRBFT26vZLF4b7aAe4P9aEYHGHFzJdmf5arPi + pub CorruptStash: AccountId = hex_literal::hex!( + "4a90f8d375290b428e580408f18359f66ef367f0f8d1d56c5d3e002ad29c8e00" + ).into(); + } + pub struct Migrate; + impl OnRuntimeUpgrade for Migrate { + fn on_runtime_upgrade() -> frame_election_provider_support::Weight { + // ensure this only runs once, in the 1.4.0 release + if System::last_runtime_upgrade_spec_version() < 1_004_000 { + let _ = pallet_staking::Pallet::::force_unstake( + RawOrigin::Root.into(), + CorruptStash::get(), + 0, + ); + log::info!( + target: LOG_TARGET, + "migrations: force unstaked {:?}", + CorruptStash::get() + ); + ::WeightInfo::force_unstake(0) + } else { + Default::default() + } + } + + #[cfg(feature = "try-runtime")] + fn pre_upgrade() -> Result, sp_runtime::TryRuntimeError> { + let found_corrupted = + pallet_staking::Ledger::::get(CorruptStash::get()).is_some(); + Ok(found_corrupted.encode()) + } + + #[cfg(feature = "try-runtime")] + fn post_upgrade(state: Vec) -> Result<(), sp_runtime::TryRuntimeError> { + let found_corrupted: bool = Decode::decode(&mut &state[..]) + .map_err(|_| sp_runtime::TryRuntimeError::Corruption)?; + if found_corrupted { + assert!(pallet_staking::Ledger::::get(CorruptStash::get()).is_none()); + } + Ok(()) + } + } +} + /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; @@ -2054,11 +2089,12 @@ mod benches { [runtime_parachains::initializer, Initializer] [runtime_parachains::paras, Paras] [runtime_parachains::paras_inherent, ParaInherent] - [runtime_parachains::assigner_on_demand, OnDemand] + [runtime_parachains::on_demand, OnDemand] [runtime_parachains::coretime, Coretime] // Substrate [pallet_bags_list, VoterList] [pallet_balances, Balances] + [pallet_beefy_mmr, BeefyMmrLeaf] [frame_benchmarking::baseline, Baseline::] [pallet_bounties, Bounties] [pallet_child_bounties, ChildBounties] @@ -2093,7 +2129,6 @@ mod benches { ); } -use relay_common::apis::InflationInfo; impl Runtime { fn impl_experimental_inflation_info() -> InflationInfo { use pallet_staking::{ActiveEra, EraPayout, ErasTotalStake}; @@ -2102,20 +2137,6 @@ impl Runtime { .unwrap_or((0, 0)); let stake_able_issuance = Balances::total_issuance(); - let ideal_staking_rate = dynamic_params::inflation::IdealStake::get(); - let inflation = if dynamic_params::inflation::UseAuctionSlots::get() { - let auctioned_slots = parachains_paras::Parachains::::get() - .into_iter() - // all active para-ids that do not belong to a system chain is the number of - // parachains that we should take into account for inflation. - .filter(|i| *i >= LOWEST_PUBLIC_ID) - .count() as u64; - ideal_staking_rate - .saturating_sub(Perquintill::from_rational(auctioned_slots.min(60), 300u64)) - } else { - ideal_staking_rate - }; - // We assume un-delayed 24h eras. let era_duration = 24 * (HOURS as Moment) * MILLISECS_PER_BLOCK; let next_mint = ::EraPayout::era_payout( @@ -2123,6 +2144,12 @@ impl Runtime { stake_able_issuance, era_duration, ); + // reverse-engineer the current inflation by looking at the total minted against the total + // issuance. + let inflation = Perquintill::from_rational( + (next_mint.0 + next_mint.1) * 36525 / 100, + stake_able_issuance, + ); InflationInfo { inflation, next_mint } } @@ -2216,6 +2243,14 @@ sp_api::impl_runtime_apis! { fn member_needs_delegate_migration(member: AccountId) -> bool { NominationPools::api_member_needs_delegate_migration(member) } + + fn member_total_balance(who: AccountId) -> Balance { + NominationPools::api_member_total_balance(who) + } + + fn pool_balance(pool_id: pallet_nomination_pools::PoolId) -> Balance { + NominationPools::api_pool_balance(pool_id) + } } impl pallet_staking_runtime_api::StakingApi for Runtime { @@ -2423,31 +2458,57 @@ sp_api::impl_runtime_apis! { Beefy::validator_set() } - fn submit_report_equivocation_unsigned_extrinsic( - equivocation_proof: beefy_primitives::DoubleVotingProof< - BlockNumber, - BeefyId, - BeefySignature, - >, - key_owner_proof: beefy_primitives::OpaqueKeyOwnershipProof, + fn generate_key_ownership_proof( + _set_id: beefy_primitives::ValidatorSetId, + authority_id: BeefyId, + ) -> Option { + use codec::Encode; + + Historical::prove((beefy_primitives::KEY_TYPE, authority_id)) + .map(|p| p.encode()) + .map(beefy_primitives::OpaqueKeyOwnershipProof::new) + } + + fn submit_report_double_voting_unsigned_extrinsic( + equivocation_proof: beefy_primitives::DoubleVotingProof, + key_owner_proof: OpaqueValue, ) -> Option<()> { let key_owner_proof = key_owner_proof.decode()?; - Beefy::submit_unsigned_equivocation_report( + Beefy::submit_unsigned_double_voting_report( equivocation_proof, key_owner_proof, ) } - fn generate_key_ownership_proof( - _set_id: beefy_primitives::ValidatorSetId, - authority_id: BeefyId, - ) -> Option { - use codec::Encode; + fn submit_report_fork_voting_unsigned_extrinsic( + equivocation_proof: beefy_primitives::ForkVotingProof, + key_owner_proof: OpaqueKeyOwnershipProof, + ) -> Option<()> { + Beefy::submit_unsigned_fork_voting_report( + equivocation_proof.try_into()?, + key_owner_proof.decode()?, + ) + } - Historical::prove((beefy_primitives::KEY_TYPE, authority_id)) + fn submit_report_future_block_voting_unsigned_extrinsic( + equivocation_proof: beefy_primitives::FutureBlockVotingProof , + key_owner_proof: OpaqueKeyOwnershipProof, + ) -> Option<()> { + Beefy::submit_unsigned_future_block_voting_report( + equivocation_proof, + key_owner_proof.decode()?, + ) + } + + fn generate_ancestry_proof( + prev_block_number: BlockNumber, + best_known_block_number: Option, + ) -> Option { + Mmr::generate_ancestry_proof(prev_block_number, best_known_block_number) .map(|p| p.encode()) - .map(beefy_primitives::OpaqueKeyOwnershipProof::new) + .map(OpaqueKeyOwnershipProof::new) + .ok() } } @@ -2658,7 +2719,8 @@ sp_api::impl_runtime_apis! { } fn query_weight_to_asset_fee(weight: Weight, asset: VersionedAssetId) -> Result { - match asset.try_as::() { + let latest_asset_id: Result = asset.clone().try_into(); + match latest_asset_id { Ok(asset_id) if asset_id.0 == xcm_config::TokenLocation::get() => { // for native token Ok(WeightToFee::weight_to_fee(&weight)) @@ -3440,7 +3502,8 @@ mod remote_tests { use std::env::var; async fn remote_ext_test_setup() -> RemoteExternalities { - let transport: Transport = var("WS").unwrap_or("wss://rpc.paseo.io:443".to_string()).into(); + let transport: Transport = + var("WS").unwrap_or("wss://rpc.paseo.io:443".to_string()).into(); let maybe_state_snapshot: Option = var("SNAP").map(|s| s.into()).ok(); Builder::::default() .mode(if let Some(state_snapshot) = maybe_state_snapshot { @@ -3521,7 +3584,8 @@ mod remote_tests { #[ignore = "this test is meant to be executed manually"] async fn try_fast_unstake_all() { sp_tracing::try_init_simple(); - let transport: Transport = var("WS").unwrap_or("wss://rpc.paseo.io:443".to_string()).into(); + let transport: Transport = + var("WS").unwrap_or("wss://rpc.paseo.io:443".to_string()).into(); let maybe_state_snapshot: Option = var("SNAP").map(|s| s.into()).ok(); let mut ext = Builder::::default() .mode(if let Some(state_snapshot) = maybe_state_snapshot { @@ -3609,6 +3673,7 @@ mod remote_tests { log::info!(target: LOG_TARGET, "idealStake = {:?}", dynamic_params::inflation::IdealStake::get()); log::info!(target: LOG_TARGET, "maxStakingRewards = {:?}", pallet_staking::MaxStakedRewards::::get()); log::info!(target: LOG_TARGET, "💰 Inflation ==> staking = {:?} / leftover = {:?}", token.amount(staking), token.amount(leftover)); + log::info!(target: LOG_TARGET, "inflation_rate runtime API: {:?}", Runtime::impl_experimental_inflation_info()); }); } } diff --git a/relay/paseo/src/weights/frame_benchmarking_baseline.rs b/relay/paseo/src/weights/frame_benchmarking_baseline.rs index 51e421b19..2aeaa316d 100644 --- a/relay/paseo/src/weights/frame_benchmarking_baseline.rs +++ b/relay/paseo/src/weights/frame_benchmarking_baseline.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_benchmarking::baseline` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,8 +52,8 @@ impl frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 140_000 picoseconds. - Weight::from_parts(176_963, 0) + // Minimum execution time: 180_000 picoseconds. + Weight::from_parts(237_967, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 1000000]`. @@ -61,8 +61,8 @@ impl frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 150_000 picoseconds. - Weight::from_parts(178_626, 0) + // Minimum execution time: 180_000 picoseconds. + Weight::from_parts(230_552, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 1000000]`. @@ -70,8 +70,8 @@ impl frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 150_000 picoseconds. - Weight::from_parts(182_481, 0) + // Minimum execution time: 180_000 picoseconds. + Weight::from_parts(234_171, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 1000000]`. @@ -79,16 +79,16 @@ impl frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 140_000 picoseconds. - Weight::from_parts(173_550, 0) + // Minimum execution time: 180_000 picoseconds. + Weight::from_parts(232_444, 0) .saturating_add(Weight::from_parts(0, 0)) } fn hashing() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 27_838_277_000 picoseconds. - Weight::from_parts(27_943_057_000, 0) + // Minimum execution time: 29_102_244_000 picoseconds. + Weight::from_parts(29_173_434_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 100]`. @@ -96,10 +96,10 @@ impl frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 160_000 picoseconds. - Weight::from_parts(1_774_309, 0) + // Minimum execution time: 220_000 picoseconds. + Weight::from_parts(1_559_544, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 4_099 - .saturating_add(Weight::from_parts(48_658_507, 0).saturating_mul(i.into())) + // Standard Error: 3_270 + .saturating_add(Weight::from_parts(52_871_751, 0).saturating_mul(i.into())) } } diff --git a/relay/paseo/src/weights/frame_election_provider_support.rs b/relay/paseo/src/weights/frame_election_provider_support.rs index a9a823d28..e7af16729 100644 --- a/relay/paseo/src/weights/frame_election_provider_support.rs +++ b/relay/paseo/src/weights/frame_election_provider_support.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_election_provider_support` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -54,13 +54,13 @@ impl frame_election_provider_support::WeightInfo for We // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_562_318_000 picoseconds. - Weight::from_parts(8_587_018_000, 0) + // Minimum execution time: 8_718_481_000 picoseconds. + Weight::from_parts(8_744_120_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 198_113 - .saturating_add(Weight::from_parts(8_218_845, 0).saturating_mul(v.into())) - // Standard Error: 20_254_434 - .saturating_add(Weight::from_parts(2_152_051_772, 0).saturating_mul(d.into())) + // Standard Error: 188_720 + .saturating_add(Weight::from_parts(8_105_048, 0).saturating_mul(v.into())) + // Standard Error: 19_294_093 + .saturating_add(Weight::from_parts(2_002_437_201, 0).saturating_mul(d.into())) } /// The range of component `v` is `[1000, 2000]`. /// The range of component `t` is `[500, 1000]`. @@ -69,12 +69,12 @@ impl frame_election_provider_support::WeightInfo for We // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_953_357_000 picoseconds. - Weight::from_parts(5_971_487_000, 0) + // Minimum execution time: 6_180_796_000 picoseconds. + Weight::from_parts(6_192_455_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 155_998 - .saturating_add(Weight::from_parts(6_301_190, 0).saturating_mul(v.into())) - // Standard Error: 15_948_746 - .saturating_add(Weight::from_parts(1_817_448_899, 0).saturating_mul(d.into())) + // Standard Error: 157_434 + .saturating_add(Weight::from_parts(6_515_455, 0).saturating_mul(v.into())) + // Standard Error: 16_095_537 + .saturating_add(Weight::from_parts(1_799_572_171, 0).saturating_mul(d.into())) } } diff --git a/relay/paseo/src/weights/frame_system.rs b/relay/paseo/src/weights/frame_system.rs index d9613784d..f2d14d9c6 100644 --- a/relay/paseo/src/weights/frame_system.rs +++ b/relay/paseo/src/weights/frame_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,8 +52,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_980_000 picoseconds. - Weight::from_parts(2_140_000, 0) + // Minimum execution time: 2_630_000 picoseconds. + Weight::from_parts(2_660_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 .saturating_add(Weight::from_parts(363, 0).saturating_mul(b.into())) @@ -63,11 +63,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_080_000 picoseconds. - Weight::from_parts(6_160_000, 0) + // Minimum execution time: 7_060_000 picoseconds. + Weight::from_parts(7_160_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_700, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_698, 0).saturating_mul(b.into())) } /// Storage: `System::Digest` (r:1 w:1) /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -77,8 +77,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_520_000 picoseconds. - Weight::from_parts(3_690_000, 0) + // Minimum execution time: 4_520_000 picoseconds. + Weight::from_parts(4_680_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -91,8 +91,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 111_680_527_000 picoseconds. - Weight::from_parts(114_527_379_000, 0) + // Minimum execution time: 109_091_829_000 picoseconds. + Weight::from_parts(112_092_426_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -104,11 +104,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_110_000 picoseconds. - Weight::from_parts(2_190_000, 0) + // Minimum execution time: 2_550_000 picoseconds. + Weight::from_parts(2_690_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_445 - .saturating_add(Weight::from_parts(850_413, 0).saturating_mul(i.into())) + // Standard Error: 2_475 + .saturating_add(Weight::from_parts(872_928, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -118,11 +118,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_090_000 picoseconds. - Weight::from_parts(2_170_000, 0) + // Minimum execution time: 2_590_000 picoseconds. + Weight::from_parts(2_710_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_107 - .saturating_add(Weight::from_parts(640_620, 0).saturating_mul(i.into())) + // Standard Error: 1_067 + .saturating_add(Weight::from_parts(660_934, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -130,13 +130,13 @@ impl frame_system::WeightInfo for WeightInfo { /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `77 + p * (69 ±0)` + // Measured: `76 + p * (69 ±0)` // Estimated: `79 + p * (70 ±0)` - // Minimum execution time: 4_320_000 picoseconds. - Weight::from_parts(4_410_000, 0) + // Minimum execution time: 5_280_000 picoseconds. + Weight::from_parts(5_410_000, 0) .saturating_add(Weight::from_parts(0, 79)) - // Standard Error: 1_351 - .saturating_add(Weight::from_parts(1_327_485, 0).saturating_mul(p.into())) + // Standard Error: 1_353 + .saturating_add(Weight::from_parts(1_493_792, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -147,8 +147,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 20_720_000 picoseconds. - Weight::from_parts(21_660_000, 0) + // Minimum execution time: 19_990_000 picoseconds. + Weight::from_parts(21_490_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -162,8 +162,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `22` // Estimated: `1518` - // Minimum execution time: 110_591_359_000 picoseconds. - Weight::from_parts(113_114_198_000, 0) + // Minimum execution time: 110_762_939_000 picoseconds. + Weight::from_parts(112_516_750_000, 0) .saturating_add(Weight::from_parts(0, 1518)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/relay/paseo/src/weights/mod.rs b/relay/paseo/src/weights/mod.rs index 8f7f34798..15cf054a7 100644 --- a/relay/paseo/src/weights/mod.rs +++ b/relay/paseo/src/weights/mod.rs @@ -20,6 +20,7 @@ pub mod frame_system; pub mod pallet_asset_rate; pub mod pallet_bags_list; pub mod pallet_balances; +pub mod pallet_beefy_mmr; pub mod pallet_bounties; pub mod pallet_child_bounties; pub mod pallet_conviction_voting; @@ -29,14 +30,12 @@ pub mod pallet_indices; pub mod pallet_message_queue; pub mod pallet_multisig; pub mod pallet_nomination_pools; -pub mod pallet_parameters; pub mod pallet_preimage; pub mod pallet_proxy; pub mod pallet_referenda; pub mod pallet_scheduler; pub mod pallet_session; pub mod pallet_staking; -pub mod pallet_sudo; pub mod pallet_timestamp; pub mod pallet_treasury; pub mod pallet_utility; @@ -48,7 +47,6 @@ pub mod polkadot_runtime_common_claims; pub mod polkadot_runtime_common_crowdloan; pub mod polkadot_runtime_common_paras_registrar; pub mod polkadot_runtime_common_slots; -pub mod runtime_parachains_assigner_on_demand; pub mod runtime_parachains_configuration; pub mod runtime_parachains_coretime; pub mod runtime_parachains_disputes; @@ -56,6 +54,7 @@ pub mod runtime_parachains_disputes_slashing; pub mod runtime_parachains_hrmp; pub mod runtime_parachains_inclusion; pub mod runtime_parachains_initializer; +pub mod runtime_parachains_on_demand; pub mod runtime_parachains_paras; pub mod runtime_parachains_paras_inherent; pub mod xcm; diff --git a/relay/paseo/src/weights/pallet_asset_rate.rs b/relay/paseo/src/weights/pallet_asset_rate.rs index bf13ba1ed..14cafeb9c 100644 --- a/relay/paseo/src/weights/pallet_asset_rate.rs +++ b/relay/paseo/src/weights/pallet_asset_rate.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_asset_rate` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_asset_rate::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `76` // Estimated: `4703` - // Minimum execution time: 12_230_000 picoseconds. - Weight::from_parts(12_780_000, 0) + // Minimum execution time: 15_640_000 picoseconds. + Weight::from_parts(15_930_000, 0) .saturating_add(Weight::from_parts(0, 4703)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_asset_rate::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `144` // Estimated: `4703` - // Minimum execution time: 12_810_000 picoseconds. - Weight::from_parts(13_140_000, 0) + // Minimum execution time: 16_320_000 picoseconds. + Weight::from_parts(16_650_000, 0) .saturating_add(Weight::from_parts(0, 4703)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_asset_rate::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `144` // Estimated: `4703` - // Minimum execution time: 13_900_000 picoseconds. - Weight::from_parts(14_160_000, 0) + // Minimum execution time: 17_491_000 picoseconds. + Weight::from_parts(17_750_000, 0) .saturating_add(Weight::from_parts(0, 4703)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/pallet_bags_list.rs b/relay/paseo/src/weights/pallet_bags_list.rs index 2b6f1567f..86bfd3743 100644 --- a/relay/paseo/src/weights/pallet_bags_list.rs +++ b/relay/paseo/src/weights/pallet_bags_list.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_bags_list` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,10 +57,10 @@ impl pallet_bags_list::WeightInfo for WeightInfo { /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) fn rebag_non_terminal() -> Weight { // Proof Size summary in bytes: - // Measured: `1685` + // Measured: `1719` // Estimated: `11506` - // Minimum execution time: 65_661_000 picoseconds. - Weight::from_parts(66_570_000, 0) + // Minimum execution time: 81_381_000 picoseconds. + Weight::from_parts(82_621_000, 0) .saturating_add(Weight::from_parts(0, 11506)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) @@ -75,10 +75,10 @@ impl pallet_bags_list::WeightInfo for WeightInfo { /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) fn rebag_terminal() -> Weight { // Proof Size summary in bytes: - // Measured: `1582` + // Measured: `1616` // Estimated: `8877` - // Minimum execution time: 64_280_000 picoseconds. - Weight::from_parts(64_900_000, 0) + // Minimum execution time: 80_240_000 picoseconds. + Weight::from_parts(80_981_000, 0) .saturating_add(Weight::from_parts(0, 8877)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) @@ -95,10 +95,10 @@ impl pallet_bags_list::WeightInfo for WeightInfo { /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) fn put_in_front_of() -> Weight { // Proof Size summary in bytes: - // Measured: `1890` + // Measured: `1924` // Estimated: `11506` - // Minimum execution time: 75_871_000 picoseconds. - Weight::from_parts(77_020_000, 0) + // Minimum execution time: 94_680_000 picoseconds. + Weight::from_parts(95_580_000, 0) .saturating_add(Weight::from_parts(0, 11506)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(6)) diff --git a/relay/paseo/src/weights/pallet_balances.rs b/relay/paseo/src/weights/pallet_balances.rs index 881e5877b..d8fa27349 100644 --- a/relay/paseo/src/weights/pallet_balances.rs +++ b/relay/paseo/src/weights/pallet_balances.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 52_700_000 picoseconds. - Weight::from_parts(53_260_000, 0) + // Minimum execution time: 60_040_000 picoseconds. + Weight::from_parts(60_550_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 41_161_000 picoseconds. - Weight::from_parts(41_600_000, 0) + // Minimum execution time: 47_180_000 picoseconds. + Weight::from_parts(47_670_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 15_540_000 picoseconds. - Weight::from_parts(15_901_000, 0) + // Minimum execution time: 18_860_000 picoseconds. + Weight::from_parts(19_251_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 21_430_000 picoseconds. - Weight::from_parts(21_870_000, 0) + // Minimum execution time: 28_040_000 picoseconds. + Weight::from_parts(28_400_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -101,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `6196` - // Minimum execution time: 54_471_000 picoseconds. - Weight::from_parts(55_011_000, 0) + // Minimum execution time: 62_020_000 picoseconds. + Weight::from_parts(62_620_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -113,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 51_360_000 picoseconds. - Weight::from_parts(52_030_000, 0) + // Minimum execution time: 58_571_000 picoseconds. + Weight::from_parts(59_130_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 18_390_000 picoseconds. - Weight::from_parts(18_890_000, 0) + // Minimum execution time: 22_340_000 picoseconds. + Weight::from_parts(22_640_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -138,11 +138,11 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (135 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 17_690_000 picoseconds. - Weight::from_parts(17_840_000, 0) + // Minimum execution time: 20_450_000 picoseconds. + Weight::from_parts(20_661_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 12_257 - .saturating_add(Weight::from_parts(15_499_028, 0).saturating_mul(u.into())) + // Standard Error: 13_332 + .saturating_add(Weight::from_parts(17_482_979, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) @@ -151,24 +151,24 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_580_000 picoseconds. - Weight::from_parts(6_880_000, 0) + // Minimum execution time: 7_940_000 picoseconds. + Weight::from_parts(8_200_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_allow_death() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 32_820_000 picoseconds. - Weight::from_parts(33_220_000, 0) + // Minimum execution time: 37_461_000 picoseconds. + Weight::from_parts(37_800_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 21_700_000 picoseconds. - Weight::from_parts(22_030_000, 0) + // Minimum execution time: 25_340_000 picoseconds. + Weight::from_parts(25_681_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/relay/paseo/src/weights/pallet_beefy_mmr.rs b/relay/paseo/src/weights/pallet_beefy_mmr.rs new file mode 100644 index 000000000..3ace398f1 --- /dev/null +++ b/relay/paseo/src/weights/pallet_beefy_mmr.rs @@ -0,0 +1,88 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_beefy_mmr` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot +// benchmark +// pallet +// --chain=./polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_beefy_mmr +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_beefy_mmr`. +pub struct WeightInfo(PhantomData); +impl pallet_beefy_mmr::WeightInfo for WeightInfo { + /// Storage: `System::BlockHash` (r:1 w:0) + /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + fn extract_validation_context() -> Weight { + // Proof Size summary in bytes: + // Measured: `92` + // Estimated: `3509` + // Minimum execution time: 9_160_000 picoseconds. + Weight::from_parts(9_380_000, 0) + .saturating_add(Weight::from_parts(0, 3509)) + .saturating_add(T::DbWeight::get().reads(1)) + } + /// Storage: `Mmr::Nodes` (r:1 w:0) + /// Proof: `Mmr::Nodes` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + fn read_peak() -> Weight { + // Proof Size summary in bytes: + // Measured: `221` + // Estimated: `3505` + // Minimum execution time: 7_710_000 picoseconds. + Weight::from_parts(7_950_000, 0) + .saturating_add(Weight::from_parts(0, 3505)) + .saturating_add(T::DbWeight::get().reads(1)) + } + /// Storage: `Mmr::RootHash` (r:1 w:0) + /// Proof: `Mmr::RootHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `Mmr::NumberOfLeaves` (r:1 w:0) + /// Proof: `Mmr::NumberOfLeaves` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// The range of component `n` is `[2, 512]`. + fn n_items_proof_is_non_canonical(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `213` + // Estimated: `1517` + // Minimum execution time: 15_210_000 picoseconds. + Weight::from_parts(28_364_957, 0) + .saturating_add(Weight::from_parts(0, 1517)) + // Standard Error: 1_729 + .saturating_add(Weight::from_parts(1_378_618, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2)) + } +} diff --git a/relay/paseo/src/weights/pallet_bounties.rs b/relay/paseo/src/weights/pallet_bounties.rs index 71ae9e244..18285d565 100644 --- a/relay/paseo/src/weights/pallet_bounties.rs +++ b/relay/paseo/src/weights/pallet_bounties.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_bounties` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -60,11 +60,11 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `177` // Estimated: `3593` - // Minimum execution time: 27_660_000 picoseconds. - Weight::from_parts(28_668_115, 0) + // Minimum execution time: 33_560_000 picoseconds. + Weight::from_parts(34_127_882, 0) .saturating_add(Weight::from_parts(0, 3593)) - // Standard Error: 5 - .saturating_add(Weight::from_parts(633, 0).saturating_mul(d.into())) + // Standard Error: 4 + .saturating_add(Weight::from_parts(647, 0).saturating_mul(d.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -76,8 +76,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `269` // Estimated: `3642` - // Minimum execution time: 13_350_000 picoseconds. - Weight::from_parts(14_110_000, 0) + // Minimum execution time: 17_051_000 picoseconds. + Weight::from_parts(17_560_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -88,8 +88,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `289` // Estimated: `3642` - // Minimum execution time: 13_190_000 picoseconds. - Weight::from_parts(13_580_000, 0) + // Minimum execution time: 16_430_000 picoseconds. + Weight::from_parts(16_630_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -102,8 +102,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `465` // Estimated: `3642` - // Minimum execution time: 41_280_000 picoseconds. - Weight::from_parts(42_190_000, 0) + // Minimum execution time: 48_980_000 picoseconds. + Weight::from_parts(49_620_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -116,8 +116,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `461` // Estimated: `3642` - // Minimum execution time: 30_670_000 picoseconds. - Weight::from_parts(31_210_000, 0) + // Minimum execution time: 37_090_000 picoseconds. + Weight::from_parts(37_691_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -130,8 +130,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `368` // Estimated: `3642` - // Minimum execution time: 17_110_000 picoseconds. - Weight::from_parts(17_480_000, 0) + // Minimum execution time: 21_840_000 picoseconds. + Weight::from_parts(22_070_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -148,8 +148,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `732` // Estimated: `8799` - // Minimum execution time: 119_931_000 picoseconds. - Weight::from_parts(120_901_000, 0) + // Minimum execution time: 138_461_000 picoseconds. + Weight::from_parts(139_071_000, 0) .saturating_add(Weight::from_parts(0, 8799)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) @@ -166,8 +166,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3642` - // Minimum execution time: 43_360_000 picoseconds. - Weight::from_parts(43_990_000, 0) + // Minimum execution time: 52_080_000 picoseconds. + Weight::from_parts(52_640_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -184,8 +184,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `648` // Estimated: `6196` - // Minimum execution time: 81_071_000 picoseconds. - Weight::from_parts(81_971_000, 0) + // Minimum execution time: 95_851_000 picoseconds. + Weight::from_parts(97_061_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -196,8 +196,8 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `325` // Estimated: `3642` - // Minimum execution time: 13_560_000 picoseconds. - Weight::from_parts(14_140_000, 0) + // Minimum execution time: 17_150_000 picoseconds. + Weight::from_parts(17_361_000, 0) .saturating_add(Weight::from_parts(0, 3642)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -213,11 +213,11 @@ impl pallet_bounties::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + b * (297 ±0)` // Estimated: `1887 + b * (5206 ±0)` - // Minimum execution time: 2_920_000 picoseconds. - Weight::from_parts(3_020_000, 0) + // Minimum execution time: 4_010_000 picoseconds. + Weight::from_parts(4_060_000, 0) .saturating_add(Weight::from_parts(0, 1887)) - // Standard Error: 12_232 - .saturating_add(Weight::from_parts(37_623_094, 0).saturating_mul(b.into())) + // Standard Error: 18_041 + .saturating_add(Weight::from_parts(43_510_523, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/pallet_child_bounties.rs b/relay/paseo/src/weights/pallet_child_bounties.rs index 3f05f4338..3b72353cc 100644 --- a/relay/paseo/src/weights/pallet_child_bounties.rs +++ b/relay/paseo/src/weights/pallet_child_bounties.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_child_bounties` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -64,11 +64,11 @@ impl pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_child_bounties::WeightInfo for WeightInfo pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `13480` // Estimated: `42428` - // Minimum execution time: 193_972_000 picoseconds. - Weight::from_parts(196_922_000, 0) + // Minimum execution time: 203_761_000 picoseconds. + Weight::from_parts(215_021_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -87,8 +87,8 @@ impl pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `14201` // Estimated: `83866` - // Minimum execution time: 234_562_000 picoseconds. - Weight::from_parts(241_072_000, 0) + // Minimum execution time: 247_932_000 picoseconds. + Weight::from_parts(260_182_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(7)) @@ -105,8 +105,8 @@ impl pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `13919` // Estimated: `83866` - // Minimum execution time: 186_301_000 picoseconds. - Weight::from_parts(201_021_000, 0) + // Minimum execution time: 203_541_000 picoseconds. + Weight::from_parts(217_472_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) @@ -119,8 +119,8 @@ impl pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `13005` // Estimated: `30706` - // Minimum execution time: 110_321_000 picoseconds. - Weight::from_parts(114_901_000, 0) + // Minimum execution time: 119_260_000 picoseconds. + Weight::from_parts(127_121_000, 0) .saturating_add(Weight::from_parts(0, 30706)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -144,11 +144,11 @@ impl pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `28987 + r * (364 ±0)` // Estimated: `83866 + r * (3411 ±0)` - // Minimum execution time: 92_131_000 picoseconds. - Weight::from_parts(1_084_574_814, 0) + // Minimum execution time: 94_371_000 picoseconds. + Weight::from_parts(1_318_534_925, 0) .saturating_add(Weight::from_parts(0, 83866)) - // Standard Error: 76_865 - .saturating_add(Weight::from_parts(23_984_016, 0).saturating_mul(r.into())) + // Standard Error: 99_599 + .saturating_add(Weight::from_parts(26_542_481, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(45)) @@ -168,11 +168,11 @@ impl pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `28868 + r * (364 ±0)` // Estimated: `83866 + r * (3411 ±0)` - // Minimum execution time: 56_411_000 picoseconds. - Weight::from_parts(1_043_005_163, 0) + // Minimum execution time: 52_650_000 picoseconds. + Weight::from_parts(1_105_130_420, 0) .saturating_add(Weight::from_parts(0, 83866)) - // Standard Error: 76_275 - .saturating_add(Weight::from_parts(23_984_056, 0).saturating_mul(r.into())) + // Standard Error: 82_316 + .saturating_add(Weight::from_parts(26_776_512, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(43)) @@ -191,8 +191,8 @@ impl pallet_conviction_voting::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `12270` // Estimated: `30706` - // Minimum execution time: 137_861_000 picoseconds. - Weight::from_parts(148_901_000, 0) + // Minimum execution time: 128_560_000 picoseconds. + Weight::from_parts(131_121_000, 0) .saturating_add(Weight::from_parts(0, 30706)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/relay/paseo/src/weights/pallet_election_provider_multi_phase.rs b/relay/paseo/src/weights/pallet_election_provider_multi_phase.rs index abb765e03..831726bbf 100644 --- a/relay/paseo/src/weights/pallet_election_provider_multi_phase.rs +++ b/relay/paseo/src/weights/pallet_election_provider_multi_phase.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_election_provider_multi_phase` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -65,10 +65,10 @@ impl pallet_election_provider_multi_phase::WeightInfo f /// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize_nothing() -> Weight { // Proof Size summary in bytes: - // Measured: `817` + // Measured: `851` // Estimated: `3481` - // Minimum execution time: 20_870_000 picoseconds. - Weight::from_parts(21_550_000, 0) + // Minimum execution time: 30_150_000 picoseconds. + Weight::from_parts(30_670_000, 0) .saturating_add(Weight::from_parts(0, 3481)) .saturating_add(T::DbWeight::get().reads(8)) } @@ -80,8 +80,8 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `43` // Estimated: `1528` - // Minimum execution time: 10_290_000 picoseconds. - Weight::from_parts(10_611_000, 0) + // Minimum execution time: 12_160_000 picoseconds. + Weight::from_parts(12_440_000, 0) .saturating_add(Weight::from_parts(0, 1528)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -94,8 +94,8 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `43` // Estimated: `1528` - // Minimum execution time: 11_240_000 picoseconds. - Weight::from_parts(11_530_000, 0) + // Minimum execution time: 13_080_000 picoseconds. + Weight::from_parts(13_480_000, 0) .saturating_add(Weight::from_parts(0, 1528)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -108,8 +108,8 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 28_120_000 picoseconds. - Weight::from_parts(28_640_000, 0) + // Minimum execution time: 34_250_000 picoseconds. + Weight::from_parts(34_570_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -120,8 +120,8 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 18_830_000 picoseconds. - Weight::from_parts(19_180_000, 0) + // Minimum execution time: 24_570_000 picoseconds. + Weight::from_parts(24_880_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -134,15 +134,17 @@ impl pallet_election_provider_multi_phase::WeightInfo f /// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `v` is `[1000, 2000]`. /// The range of component `t` is `[500, 1000]`. - fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight { + fn create_snapshot_internal(v: u32, t: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 499_854_000 picoseconds. - Weight::from_parts(110_985_247, 0) + // Minimum execution time: 530_293_000 picoseconds. + Weight::from_parts(58_510_714, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 10_336 - .saturating_add(Weight::from_parts(470_849, 0).saturating_mul(v.into())) + // Standard Error: 12_944 + .saturating_add(Weight::from_parts(578_008, 0).saturating_mul(v.into())) + // Standard Error: 25_877 + .saturating_add(Weight::from_parts(6_429, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1) @@ -169,13 +171,13 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `266 + a * (768 ±0) + d * (48 ±0)` // Estimated: `3818 + a * (768 ±0) + d * (49 ±0)` - // Minimum execution time: 440_124_000 picoseconds. - Weight::from_parts(154_066_588, 0) + // Minimum execution time: 549_053_000 picoseconds. + Weight::from_parts(104_122_153, 0) .saturating_add(Weight::from_parts(0, 3818)) - // Standard Error: 7_048 - .saturating_add(Weight::from_parts(418_488, 0).saturating_mul(a.into())) - // Standard Error: 10_564 - .saturating_add(Weight::from_parts(327_841, 0).saturating_mul(d.into())) + // Standard Error: 10_743 + .saturating_add(Weight::from_parts(639_575, 0).saturating_mul(a.into())) + // Standard Error: 16_104 + .saturating_add(Weight::from_parts(489_164, 0).saturating_mul(d.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(8)) .saturating_add(Weight::from_parts(0, 768).saturating_mul(a.into())) @@ -199,8 +201,8 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `1196` // Estimated: `2681` - // Minimum execution time: 54_250_000 picoseconds. - Weight::from_parts(55_010_000, 0) + // Minimum execution time: 66_320_000 picoseconds. + Weight::from_parts(66_890_000, 0) .saturating_add(Weight::from_parts(0, 2681)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -227,13 +229,13 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `148 + t * (32 ±0) + v * (553 ±0)` // Estimated: `1633 + t * (32 ±0) + v * (553 ±0)` - // Minimum execution time: 6_581_651_000 picoseconds. - Weight::from_parts(6_605_211_000, 0) + // Minimum execution time: 7_250_929_000 picoseconds. + Weight::from_parts(7_299_429_000, 0) .saturating_add(Weight::from_parts(0, 1633)) - // Standard Error: 18_333 - .saturating_add(Weight::from_parts(141_015, 0).saturating_mul(v.into())) - // Standard Error: 54_329 - .saturating_add(Weight::from_parts(5_639_225, 0).saturating_mul(a.into())) + // Standard Error: 20_278 + .saturating_add(Weight::from_parts(275_949, 0).saturating_mul(v.into())) + // Standard Error: 60_093 + .saturating_add(Weight::from_parts(5_964_011, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into())) @@ -255,13 +257,13 @@ impl pallet_election_provider_multi_phase::WeightInfo f // Proof Size summary in bytes: // Measured: `123 + t * (32 ±0) + v * (553 ±0)` // Estimated: `1608 + t * (32 ±0) + v * (553 ±0)` - // Minimum execution time: 5_512_435_000 picoseconds. - Weight::from_parts(5_526_216_000, 0) + // Minimum execution time: 6_247_367_000 picoseconds. + Weight::from_parts(6_318_166_000, 0) .saturating_add(Weight::from_parts(0, 1608)) - // Standard Error: 15_970 - .saturating_add(Weight::from_parts(138_500, 0).saturating_mul(v.into())) - // Standard Error: 47_326 - .saturating_add(Weight::from_parts(4_696_309, 0).saturating_mul(a.into())) + // Standard Error: 17_947 + .saturating_add(Weight::from_parts(309_270, 0).saturating_mul(v.into())) + // Standard Error: 53_186 + .saturating_add(Weight::from_parts(4_625_609, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into())) .saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into())) diff --git a/relay/paseo/src/weights/pallet_fast_unstake.rs b/relay/paseo/src/weights/pallet_fast_unstake.rs index e3e187a82..915aef8d1 100644 --- a/relay/paseo/src/weights/pallet_fast_unstake.rs +++ b/relay/paseo/src/weights/pallet_fast_unstake.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_fast_unstake` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -82,13 +82,13 @@ impl pallet_fast_unstake::WeightInfo for WeightInfo /// The range of component `b` is `[1, 16]`. fn on_idle_unstake(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1173 + b * (463 ±0)` - // Estimated: `2658 + b * (3774 ±0)` - // Minimum execution time: 94_641_000 picoseconds. - Weight::from_parts(33_762_408, 0) - .saturating_add(Weight::from_parts(0, 2658)) - // Standard Error: 32_785 - .saturating_add(Weight::from_parts(61_346_167, 0).saturating_mul(b.into())) + // Measured: `1207 + b * (463 ±0)` + // Estimated: `2692 + b * (3774 ±0)` + // Minimum execution time: 117_370_000 picoseconds. + Weight::from_parts(46_713_221, 0) + .saturating_add(Weight::from_parts(0, 2692)) + // Standard Error: 59_175 + .saturating_add(Weight::from_parts(70_718_633, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -115,15 +115,15 @@ impl pallet_fast_unstake::WeightInfo for WeightInfo /// The range of component `b` is `[1, 16]`. fn on_idle_check(v: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1508 + b * (70 ±0) + v * (19528 ±0)` - // Estimated: `4841 + b * (72 ±0) + v * (22004 ±0)` - // Minimum execution time: 771_466_000 picoseconds. - Weight::from_parts(774_486_000, 0) - .saturating_add(Weight::from_parts(0, 4841)) - // Standard Error: 6_265_172 - .saturating_add(Weight::from_parts(210_055_587, 0).saturating_mul(v.into())) - // Standard Error: 100_537_200 - .saturating_add(Weight::from_parts(3_140_213_174, 0).saturating_mul(b.into())) + // Measured: `1542 + b * (70 ±0) + v * (19528 ±0)` + // Estimated: `4875 + b * (72 ±0) + v * (22004 ±0)` + // Minimum execution time: 768_254_000 picoseconds. + Weight::from_parts(773_895_000, 0) + .saturating_add(Weight::from_parts(0, 4875)) + // Standard Error: 6_061_009 + .saturating_add(Weight::from_parts(204_239_436, 0).saturating_mul(v.into())) + // Standard Error: 97_260_997 + .saturating_add(Weight::from_parts(3_036_584_291, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -164,10 +164,10 @@ impl pallet_fast_unstake::WeightInfo for WeightInfo /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn register_fast_unstake() -> Weight { // Proof Size summary in bytes: - // Measured: `2035` + // Measured: `2069` // Estimated: `6248` - // Minimum execution time: 152_011_000 picoseconds. - Weight::from_parts(153_392_000, 0) + // Minimum execution time: 183_201_000 picoseconds. + Weight::from_parts(183_591_000, 0) .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(17)) .saturating_add(T::DbWeight::get().writes(10)) @@ -186,10 +186,10 @@ impl pallet_fast_unstake::WeightInfo for WeightInfo /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn deregister() -> Weight { // Proof Size summary in bytes: - // Measured: `1246` + // Measured: `1280` // Estimated: `4556` - // Minimum execution time: 50_730_000 picoseconds. - Weight::from_parts(51_301_000, 0) + // Minimum execution time: 65_070_000 picoseconds. + Weight::from_parts(65_970_000, 0) .saturating_add(Weight::from_parts(0, 4556)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(2)) @@ -200,8 +200,8 @@ impl pallet_fast_unstake::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_400_000 picoseconds. - Weight::from_parts(2_510_000, 0) + // Minimum execution time: 2_780_000 picoseconds. + Weight::from_parts(2_920_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/relay/paseo/src/weights/pallet_indices.rs b/relay/paseo/src/weights/pallet_indices.rs index 852071df7..6e2e7f105 100644 --- a/relay/paseo/src/weights/pallet_indices.rs +++ b/relay/paseo/src/weights/pallet_indices.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_indices` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_indices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4` // Estimated: `3534` - // Minimum execution time: 23_120_000 picoseconds. - Weight::from_parts(23_701_000, 0) + // Minimum execution time: 27_081_000 picoseconds. + Weight::from_parts(27_610_000, 0) .saturating_add(Weight::from_parts(0, 3534)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -67,8 +67,8 @@ impl pallet_indices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `203` // Estimated: `3593` - // Minimum execution time: 35_950_000 picoseconds. - Weight::from_parts(36_510_000, 0) + // Minimum execution time: 41_860_000 picoseconds. + Weight::from_parts(42_310_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,8 +79,8 @@ impl pallet_indices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `100` // Estimated: `3534` - // Minimum execution time: 23_640_000 picoseconds. - Weight::from_parts(24_240_000, 0) + // Minimum execution time: 28_090_000 picoseconds. + Weight::from_parts(28_370_000, 0) .saturating_add(Weight::from_parts(0, 3534)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -93,8 +93,8 @@ impl pallet_indices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `203` // Estimated: `3593` - // Minimum execution time: 25_990_000 picoseconds. - Weight::from_parts(26_560_000, 0) + // Minimum execution time: 30_470_000 picoseconds. + Weight::from_parts(31_070_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -105,8 +105,8 @@ impl pallet_indices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `100` // Estimated: `3534` - // Minimum execution time: 24_840_000 picoseconds. - Weight::from_parts(25_160_000, 0) + // Minimum execution time: 31_750_000 picoseconds. + Weight::from_parts(32_200_000, 0) .saturating_add(Weight::from_parts(0, 3534)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/pallet_message_queue.rs b/relay/paseo/src/weights/pallet_message_queue.rs index 45c5fdc0d..16e04b147 100644 --- a/relay/paseo/src/weights/pallet_message_queue.rs +++ b/relay/paseo/src/weights/pallet_message_queue.rs @@ -17,21 +17,24 @@ //! Autogenerated weights for `pallet_message_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-10-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// frame-omni-bencher -// v1 +// ./target/production/paseo // benchmark // pallet -// --runtime=target/production/wbuild/paseo-runtime/paseo_runtime.compact.compressed.wasm -// --pallet=pallet-message-queue -// --extrinsic= -// --output=relay/paseo/src/weights/pallet_message_queue.rs -// --header=.github/scripts/cmd/file_header.txt +// --chain=./paseo-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_message_queue +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./paseo-weights/ +// --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -52,8 +55,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `281` // Estimated: `6050` - // Minimum execution time: 21_260_000 picoseconds. - Weight::from_parts(21_820_000, 0) + // Minimum execution time: 20_670_000 picoseconds. + Weight::from_parts(21_260_000, 0) .saturating_add(Weight::from_parts(0, 6050)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -66,8 +69,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `281` // Estimated: `6050` - // Minimum execution time: 19_380_000 picoseconds. - Weight::from_parts(19_750_000, 0) + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(19_490_000, 0) .saturating_add(Weight::from_parts(0, 6050)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -78,8 +81,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `42` // Estimated: `3520` - // Minimum execution time: 6_360_000 picoseconds. - Weight::from_parts(6_590_000, 0) + // Minimum execution time: 6_020_000 picoseconds. + Weight::from_parts(6_150_000, 0) .saturating_add(Weight::from_parts(0, 3520)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -90,8 +93,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `115` // Estimated: `69051` - // Minimum execution time: 9_390_000 picoseconds. - Weight::from_parts(9_580_000, 0) + // Minimum execution time: 8_990_000 picoseconds. + Weight::from_parts(9_140_000, 0) .saturating_add(Weight::from_parts(0, 69051)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -102,8 +105,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `115` // Estimated: `69051` - // Minimum execution time: 9_660_000 picoseconds. - Weight::from_parts(9_900_000, 0) + // Minimum execution time: 9_200_000 picoseconds. + Weight::from_parts(9_390_000, 0) .saturating_add(Weight::from_parts(0, 69051)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -116,8 +119,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 158_210_000 picoseconds. - Weight::from_parts(159_351_000, 0) + // Minimum execution time: 157_750_000 picoseconds. + Weight::from_parts(158_411_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -129,8 +132,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `220` // Estimated: `3520` - // Minimum execution time: 11_020_000 picoseconds. - Weight::from_parts(11_390_000, 0) + // Minimum execution time: 10_910_000 picoseconds. + Weight::from_parts(11_300_000, 0) .saturating_add(Weight::from_parts(0, 3520)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -147,8 +150,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65714` // Estimated: `69051` - // Minimum execution time: 63_110_000 picoseconds. - Weight::from_parts(63_761_000, 0) + // Minimum execution time: 61_191_000 picoseconds. + Weight::from_parts(61_830_000, 0) .saturating_add(Weight::from_parts(0, 69051)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) @@ -165,8 +168,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65714` // Estimated: `69051` - // Minimum execution time: 82_140_000 picoseconds. - Weight::from_parts(82_801_000, 0) + // Minimum execution time: 78_440_000 picoseconds. + Weight::from_parts(78_851_000, 0) .saturating_add(Weight::from_parts(0, 69051)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) @@ -183,8 +186,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65714` // Estimated: `69051` - // Minimum execution time: 118_451_000 picoseconds. - Weight::from_parts(119_610_000, 0) + // Minimum execution time: 114_440_000 picoseconds. + Weight::from_parts(115_571_000, 0) .saturating_add(Weight::from_parts(0, 69051)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/relay/paseo/src/weights/pallet_multisig.rs b/relay/paseo/src/weights/pallet_multisig.rs index 4983a4fa0..8c51c1a80 100644 --- a/relay/paseo/src/weights/pallet_multisig.rs +++ b/relay/paseo/src/weights/pallet_multisig.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_multisig` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,10 +52,10 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 12_750_000 picoseconds. - Weight::from_parts(13_153_908, 0) + // Minimum execution time: 13_600_000 picoseconds. + Weight::from_parts(13_945_828, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3 + // Standard Error: 1 .saturating_add(Weight::from_parts(502, 0).saturating_mul(z.into())) } /// Storage: `Multisig::Multisigs` (r:1 w:1) @@ -66,13 +66,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `267 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 44_930_000 picoseconds. - Weight::from_parts(35_520_329, 0) + // Minimum execution time: 52_740_000 picoseconds. + Weight::from_parts(41_852_687, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 915 - .saturating_add(Weight::from_parts(99_641, 0).saturating_mul(s.into())) - // Standard Error: 8 - .saturating_add(Weight::from_parts(1_545, 0).saturating_mul(z.into())) + // Standard Error: 1_175 + .saturating_add(Weight::from_parts(112_225, 0).saturating_mul(s.into())) + // Standard Error: 11 + .saturating_add(Weight::from_parts(1_569, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -84,11 +84,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `286` // Estimated: `6811` - // Minimum execution time: 27_000_000 picoseconds. - Weight::from_parts(20_172_008, 0) + // Minimum execution time: 31_030_000 picoseconds. + Weight::from_parts(24_317_003, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 252 - .saturating_add(Weight::from_parts(74_573, 0).saturating_mul(s.into())) + // Standard Error: 256 + .saturating_add(Weight::from_parts(71_421, 0).saturating_mul(s.into())) // Standard Error: 2 .saturating_add(Weight::from_parts(1_503, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) @@ -104,13 +104,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `392 + s * (33 ±0)` // Estimated: `6811` - // Minimum execution time: 50_121_000 picoseconds. - Weight::from_parts(40_412_002, 0) + // Minimum execution time: 58_770_000 picoseconds. + Weight::from_parts(48_835_397, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 662 - .saturating_add(Weight::from_parts(106_421, 0).saturating_mul(s.into())) - // Standard Error: 6 - .saturating_add(Weight::from_parts(1_534, 0).saturating_mul(z.into())) + // Standard Error: 898 + .saturating_add(Weight::from_parts(110_248, 0).saturating_mul(s.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(1_517, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -121,11 +121,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `267 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 32_130_000 picoseconds. - Weight::from_parts(33_855_454, 0) + // Minimum execution time: 38_610_000 picoseconds. + Weight::from_parts(40_552_997, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 1_511 - .saturating_add(Weight::from_parts(109_141, 0).saturating_mul(s.into())) + // Standard Error: 2_001 + .saturating_add(Weight::from_parts(122_747, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -136,11 +136,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `286` // Estimated: `6811` - // Minimum execution time: 17_990_000 picoseconds. - Weight::from_parts(18_674_362, 0) + // Minimum execution time: 22_440_000 picoseconds. + Weight::from_parts(23_068_193, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 333 - .saturating_add(Weight::from_parts(77_195, 0).saturating_mul(s.into())) + // Standard Error: 374 + .saturating_add(Weight::from_parts(70_457, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,11 +151,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `458 + s * (1 ±0)` // Estimated: `6811` - // Minimum execution time: 33_300_000 picoseconds. - Weight::from_parts(36_268_041, 0) + // Minimum execution time: 40_060_000 picoseconds. + Weight::from_parts(44_077_241, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 977 - .saturating_add(Weight::from_parts(85_272, 0).saturating_mul(s.into())) + // Standard Error: 1_322 + .saturating_add(Weight::from_parts(88_945, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/relay/paseo/src/weights/pallet_nomination_pools.rs b/relay/paseo/src/weights/pallet_nomination_pools.rs index 1565733e9..4d8843a0a 100644 --- a/relay/paseo/src/weights/pallet_nomination_pools.rs +++ b/relay/paseo/src/weights/pallet_nomination_pools.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_nomination_pools` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -47,13 +47,15 @@ use core::marker::PhantomData; /// Weight functions for `pallet_nomination_pools`. pub struct WeightInfo(PhantomData); impl pallet_nomination_pools::WeightInfo for WeightInfo { + /// Storage: `NominationPools::BondedPools` (r:1 w:1) + /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::MinJoinBond` (r:1 w:0) /// Proof: `NominationPools::MinJoinBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::BondedPools` (r:1 w:1) - /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) + /// Storage: `Staking::Bonded` (r:2 w:0) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) @@ -61,7 +63,7 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) /// Proof: `NominationPools::GlobalMaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:1) + /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `NominationPools::MaxPoolMembersPerPool` (r:1 w:0) /// Proof: `NominationPools::MaxPoolMembersPerPool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -69,12 +71,14 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::MaxPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1) /// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// 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(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:2 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForDelegators` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForDelegators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListNodes` (r:3 w:3) /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListBags` (r:2 w:2) @@ -83,34 +87,38 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn join() -> Weight { // Proof Size summary in bytes: - // Measured: `3358` + // Measured: `3609` // Estimated: `8877` - // Minimum execution time: 215_842_000 picoseconds. - Weight::from_parts(218_182_000, 0) + // Minimum execution time: 290_372_000 picoseconds. + Weight::from_parts(293_962_000, 0) .saturating_add(Weight::from_parts(0, 8877)) - .saturating_add(T::DbWeight::get().reads(21)) - .saturating_add(T::DbWeight::get().writes(13)) + .saturating_add(T::DbWeight::get().reads(24)) + .saturating_add(T::DbWeight::get().writes(15)) } /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:2 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:1) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) /// Storage: `NominationPools::RewardPools` (r:1 w:1) /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) /// Proof: `NominationPools::GlobalMaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:3 w:2) + /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// 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(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:2 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListNodes` (r:3 w:3) /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListBags` (r:2 w:2) @@ -119,36 +127,40 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn bond_extra_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `3368` + // Measured: `3765` // Estimated: `8877` - // Minimum execution time: 214_562_000 picoseconds. - Weight::from_parts(216_331_000, 0) + // Minimum execution time: 306_422_000 picoseconds. + Weight::from_parts(310_682_000, 0) .saturating_add(Weight::from_parts(0, 8877)) - .saturating_add(T::DbWeight::get().reads(18)) - .saturating_add(T::DbWeight::get().writes(13)) + .saturating_add(T::DbWeight::get().reads(21)) + .saturating_add(T::DbWeight::get().writes(14)) } - /// Storage: `NominationPools::ClaimPermissions` (r:1 w:0) - /// Proof: `NominationPools::ClaimPermissions` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:2 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:1) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::ClaimPermissions` (r:1 w:0) + /// Proof: `NominationPools::ClaimPermissions` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) /// Storage: `NominationPools::RewardPools` (r:1 w:1) /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) /// Proof: `NominationPools::GlobalMaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:3 w:3) + /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:0) - /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// 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(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:2 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListNodes` (r:2 w:2) /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListBags` (r:2 w:2) @@ -157,20 +169,30 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn bond_extra_other() -> Weight { // Proof Size summary in bytes: - // Measured: `3278` - // Estimated: `8799` - // Minimum execution time: 246_702_000 picoseconds. - Weight::from_parts(248_282_000, 0) - .saturating_add(Weight::from_parts(0, 8799)) - .saturating_add(T::DbWeight::get().reads(18)) - .saturating_add(T::DbWeight::get().writes(13)) + // Measured: `3675` + // Estimated: `6248` + // Minimum execution time: 341_982_000 picoseconds. + Weight::from_parts(344_262_000, 0) + .saturating_add(Weight::from_parts(0, 6248)) + .saturating_add(T::DbWeight::get().reads(21)) + .saturating_add(T::DbWeight::get().writes(14)) } - /// Storage: `NominationPools::ClaimPermissions` (r:1 w:0) - /// Proof: `NominationPools::ClaimPermissions` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:0) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::ClaimPermissions` (r:1 w:0) + /// Proof: `NominationPools::ClaimPermissions` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) /// Storage: `NominationPools::RewardPools` (r:1 w:1) /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) @@ -179,27 +201,33 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn claim_payout() -> Weight { // Proof Size summary in bytes: - // Measured: `1138` - // Estimated: `4182` - // Minimum execution time: 85_921_000 picoseconds. - Weight::from_parts(86_420_000, 0) - .saturating_add(Weight::from_parts(0, 4182)) - .saturating_add(T::DbWeight::get().reads(6)) + // Measured: `2373` + // Estimated: `4662` + // Minimum execution time: 149_241_000 picoseconds. + Weight::from_parts(150_991_000, 0) + .saturating_add(Weight::from_parts(0, 4662)) + .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::RewardPools` (r:1 w:1) - /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:0) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:1) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:0) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::RewardPools` (r:1 w:1) + /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) /// Proof: `NominationPools::GlobalMaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:1) + /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Staking::CurrentEra` (r:1 w:0) /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -207,85 +235,77 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) /// Storage: `Staking::MinNominatorBond` (r:1 w:0) /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// 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(193), added: 2668, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListNodes` (r:3 w:3) /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`) /// Storage: `VoterList::ListBags` (r:2 w:2) /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:1) - /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForSubPoolsStorage` (r:1 w:1) /// Proof: `NominationPools::CounterForSubPoolsStorage` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn unbond() -> Weight { // Proof Size summary in bytes: - // Measured: `3548` + // Measured: `3648` // Estimated: `8877` - // Minimum execution time: 196_581_000 picoseconds. - Weight::from_parts(197_982_000, 0) + // Minimum execution time: 240_891_000 picoseconds. + Weight::from_parts(244_512_000, 0) .saturating_add(Weight::from_parts(0, 8877)) - .saturating_add(T::DbWeight::get().reads(21)) - .saturating_add(T::DbWeight::get().writes(13)) + .saturating_add(T::DbWeight::get().reads(19)) + .saturating_add(T::DbWeight::get().writes(11)) } /// Storage: `NominationPools::BondedPools` (r:1 w:0) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:0) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) /// Storage: `Staking::CurrentEra` (r:1 w:0) /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// 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(193), added: 2668, mode: `MaxEncodedLen`) /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0) /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// Storage: `NominationPools::TotalValueLocked` (r:1 w:1) /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 100]`. fn pool_withdraw_unbonded(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1843` - // Estimated: `4764` - // Minimum execution time: 79_951_000 picoseconds. - Weight::from_parts(81_372_250, 0) - .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 397 - .saturating_add(Weight::from_parts(17_010, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(9)) + // Measured: `1801` + // Estimated: `4556` + // Minimum execution time: 88_770_000 picoseconds. + Weight::from_parts(90_084_443, 0) + .saturating_add(Weight::from_parts(0, 4556)) + // Standard Error: 460 + .saturating_add(Weight::from_parts(13_396, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) - /// Storage: `Staking::CurrentEra` (r:1 w:0) - /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:1) - /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:0) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// 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(193), added: 2668, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:1 w:1) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:1) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `Staking::CurrentEra` (r:1 w:0) + /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0) /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// Storage: `NominationPools::TotalValueLocked` (r:1 w:1) /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForDelegators` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForDelegators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1) /// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::ClaimPermissions` (r:0 w:1) @@ -293,46 +313,52 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// The range of component `s` is `[0, 100]`. fn withdraw_unbonded_update(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2233` - // Estimated: `4764` - // Minimum execution time: 157_181_000 picoseconds. - Weight::from_parts(158_794_627, 0) - .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 577 - .saturating_add(Weight::from_parts(18_736, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(13)) - .saturating_add(T::DbWeight::get().writes(9)) + // Measured: `2439` + // Estimated: `4662` + // Minimum execution time: 212_391_000 picoseconds. + Weight::from_parts(214_859_209, 0) + .saturating_add(Weight::from_parts(0, 4662)) + // Standard Error: 1_012 + .saturating_add(Weight::from_parts(20_122, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(14)) + .saturating_add(T::DbWeight::get().writes(11)) } /// Storage: `NominationPools::PoolMembers` (r:1 w:1) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) - /// Storage: `Staking::CurrentEra` (r:1 w:0) - /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) - /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:1) - /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:1) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:1) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:1) /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:1) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `Staking::CurrentEra` (r:1 w:0) + /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) /// Storage: `Staking::SlashingSpans` (r:1 w:0) /// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `Staking::VirtualStakers` (r:1 w:1) - /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Locks` (r:2 w:1) - /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) - /// Storage: `Balances::Freezes` (r:2 w:1) - /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForVirtualStakers` (r:1 w:1) + /// Proof: `Staking::CounterForVirtualStakers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Staking::Validators` (r:1 w:0) /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) /// Storage: `Staking::Nominators` (r:1 w:0) /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1) /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// Storage: `NominationPools::TotalValueLocked` (r:1 w:1) /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForDelegators` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForDelegators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1) /// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForReversePoolIdLookup` (r:1 w:1) @@ -343,6 +369,12 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::CounterForRewardPools` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForSubPoolsStorage` (r:1 w:1) /// Proof: `NominationPools::CounterForSubPoolsStorage` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:1) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:0) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForAgents` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForAgents` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::Metadata` (r:1 w:1) /// Proof: `NominationPools::Metadata` (`max_values`: None, `max_size`: Some(270), added: 2745, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForBondedPools` (r:1 w:1) @@ -354,13 +386,13 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// The range of component `s` is `[0, 100]`. fn withdraw_unbonded_kill(_s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2625` - // Estimated: `8538` - // Minimum execution time: 276_063_000 picoseconds. - Weight::from_parts(278_579_392, 0) - .saturating_add(Weight::from_parts(0, 8538)) - .saturating_add(T::DbWeight::get().reads(25)) - .saturating_add(T::DbWeight::get().writes(21)) + // Measured: `2907` + // Estimated: `6372` + // Minimum execution time: 357_882_000 picoseconds. + Weight::from_parts(362_191_878, 0) + .saturating_add(Weight::from_parts(0, 6372)) + .saturating_add(T::DbWeight::get().reads(29)) + .saturating_add(T::DbWeight::get().writes(26)) } /// Storage: `NominationPools::LastPoolId` (r:1 w:1) /// Proof: `NominationPools::LastPoolId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -382,20 +414,30 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::MaxPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1) /// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Staking::Bonded` (r:1 w:1) + /// Storage: `Staking::Bonded` (r:2 w:1) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:2 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:2 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Staking::Ledger` (r:1 w:1) - /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) - /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Storage: `DelegatedStaking::CounterForAgents` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForAgents` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForDelegators` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForDelegators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:1) /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) - /// Storage: `Balances::Locks` (r:2 w:1) - /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) - /// Storage: `Balances::Freezes` (r:2 w:1) - /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForVirtualStakers` (r:1 w:1) + /// Proof: `Staking::CounterForVirtualStakers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::TotalValueLocked` (r:1 w:1) /// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Balances::Freezes` (r:1 w:1) + /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Balances::Locks` (r:1 w:0) + /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) /// Storage: `NominationPools::RewardPools` (r:1 w:1) /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForRewardPools` (r:1 w:1) @@ -406,20 +448,24 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:0 w:1) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) /// Storage: `Staking::Payee` (r:0 w:1) /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: - // Measured: `1202` - // Estimated: `8538` - // Minimum execution time: 200_752_000 picoseconds. - Weight::from_parts(202_142_000, 0) - .saturating_add(Weight::from_parts(0, 8538)) - .saturating_add(T::DbWeight::get().reads(25)) - .saturating_add(T::DbWeight::get().writes(17)) + // Measured: `1236` + // Estimated: `6196` + // Minimum execution time: 257_631_000 picoseconds. + Weight::from_parts(259_452_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(31)) + .saturating_add(T::DbWeight::get().writes(23)) } /// Storage: `NominationPools::BondedPools` (r:1 w:0) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::PoolMembers` (r:1 w:0) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:0) @@ -451,36 +497,40 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// The range of component `n` is `[1, 16]`. fn nominate(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1993` + // Measured: `2030` // Estimated: `4556 + n * (2520 ±0)` - // Minimum execution time: 92_781_000 picoseconds. - Weight::from_parts(91_455_668, 0) + // Minimum execution time: 125_810_000 picoseconds. + Weight::from_parts(124_410_713, 0) .saturating_add(Weight::from_parts(0, 4556)) - // Standard Error: 4_353 - .saturating_add(Weight::from_parts(1_788_595, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(15)) + // Standard Error: 6_254 + .saturating_add(Weight::from_parts(2_221_429, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into())) } /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:0) /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) /// Storage: `Staking::Ledger` (r:1 w:0) /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) fn set_state() -> Weight { // Proof Size summary in bytes: - // Measured: `1397` + // Measured: `1495` // Estimated: `4556` - // Minimum execution time: 38_470_000 picoseconds. - Weight::from_parts(39_110_000, 0) + // Minimum execution time: 56_621_000 picoseconds. + Weight::from_parts(57_140_000, 0) .saturating_add(Weight::from_parts(0, 4556)) - .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `NominationPools::BondedPools` (r:1 w:0) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::Metadata` (r:1 w:1) /// Proof: `NominationPools::Metadata` (`max_values`: None, `max_size`: Some(270), added: 2745, mode: `MaxEncodedLen`) /// Storage: `NominationPools::CounterForMetadata` (r:1 w:1) @@ -488,14 +538,14 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// The range of component `n` is `[1, 256]`. fn set_metadata(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `498` + // Measured: `1159` // Estimated: `3735` - // Minimum execution time: 14_360_000 picoseconds. - Weight::from_parts(14_754_526, 0) + // Minimum execution time: 35_421_000 picoseconds. + Weight::from_parts(36_418_209, 0) .saturating_add(Weight::from_parts(0, 3735)) - // Standard Error: 47 - .saturating_add(Weight::from_parts(1_052, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Standard Error: 115 + .saturating_add(Weight::from_parts(831, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `NominationPools::MinJoinBond` (r:0 w:1) @@ -514,25 +564,29 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_250_000 picoseconds. - Weight::from_parts(4_410_000, 0) + // Minimum execution time: 5_030_000 picoseconds. + Weight::from_parts(5_200_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(6)) } /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) fn update_roles() -> Weight { // Proof Size summary in bytes: - // Measured: `498` + // Measured: `1159` // Estimated: `3719` - // Minimum execution time: 18_120_000 picoseconds. - Weight::from_parts(18_500_000, 0) + // Minimum execution time: 39_370_000 picoseconds. + Weight::from_parts(40_140_000, 0) .saturating_add(Weight::from_parts(0, 3719)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `NominationPools::BondedPools` (r:1 w:0) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::PoolMembers` (r:1 w:0) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) /// Storage: `Staking::Bonded` (r:1 w:0) @@ -555,16 +609,18 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill() -> Weight { // Proof Size summary in bytes: - // Measured: `2166` + // Measured: `2286` // Estimated: `4556` - // Minimum execution time: 85_640_000 picoseconds. - Weight::from_parts(86_401_000, 0) + // Minimum execution time: 116_020_000 picoseconds. + Weight::from_parts(117_650_000, 0) .saturating_add(Weight::from_parts(0, 4556)) - .saturating_add(T::DbWeight::get().reads(11)) + .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(5)) } /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::RewardPools` (r:1 w:1) /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) @@ -573,68 +629,88 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn set_commission() -> Weight { // Proof Size summary in bytes: - // Measured: `770` + // Measured: `1431` // Estimated: `3719` - // Minimum execution time: 37_840_000 picoseconds. - Weight::from_parts(38_341_000, 0) + // Minimum execution time: 60_050_000 picoseconds. + Weight::from_parts(60_520_000, 0) .saturating_add(Weight::from_parts(0, 3719)) - .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) /// Proof: `NominationPools::GlobalMaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_commission_max() -> Weight { // Proof Size summary in bytes: - // Measured: `538` + // Measured: `1199` // Estimated: `3719` - // Minimum execution time: 18_060_000 picoseconds. - Weight::from_parts(18_470_000, 0) + // Minimum execution time: 39_860_000 picoseconds. + Weight::from_parts(40_190_000, 0) .saturating_add(Weight::from_parts(0, 3719)) - .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) fn set_commission_change_rate() -> Weight { // Proof Size summary in bytes: - // Measured: `498` + // Measured: `1159` // Estimated: `3719` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_230_000, 0) + // Minimum execution time: 39_430_000 picoseconds. + Weight::from_parts(40_000_000, 0) .saturating_add(Weight::from_parts(0, 3719)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `NominationPools::BondedPools` (r:1 w:1) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) fn set_commission_claim_permission() -> Weight { // Proof Size summary in bytes: - // Measured: `498` + // Measured: `1159` // Estimated: `3719` - // Minimum execution time: 17_240_000 picoseconds. - Weight::from_parts(17_690_000, 0) + // Minimum execution time: 39_121_000 picoseconds. + Weight::from_parts(39_830_000, 0) .saturating_add(Weight::from_parts(0, 3719)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `NominationPools::PoolMembers` (r:1 w:0) /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::BondedPools` (r:1 w:0) + /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:0) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) /// Storage: `NominationPools::ClaimPermissions` (r:1 w:1) /// Proof: `NominationPools::ClaimPermissions` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) fn set_claim_permission() -> Weight { // Proof Size summary in bytes: - // Measured: `508` - // Estimated: `4182` - // Minimum execution time: 15_661_000 picoseconds. - Weight::from_parts(16_020_000, 0) - .saturating_add(Weight::from_parts(0, 4182)) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `1947` + // Estimated: `4662` + // Minimum execution time: 75_941_000 picoseconds. + Weight::from_parts(76_580_000, 0) + .saturating_add(Weight::from_parts(0, 4662)) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `NominationPools::BondedPools` (r:1 w:0) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `NominationPools::RewardPools` (r:1 w:1) /// Proof: `NominationPools::RewardPools` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Storage: `NominationPools::GlobalMaxCommission` (r:1 w:0) @@ -643,16 +719,18 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn claim_commission() -> Weight { // Proof Size summary in bytes: - // Measured: `968` + // Measured: `1629` // Estimated: `3719` - // Minimum execution time: 71_691_000 picoseconds. - Weight::from_parts(72_270_000, 0) + // Minimum execution time: 100_110_000 picoseconds. + Weight::from_parts(101_001_000, 0) .saturating_add(Weight::from_parts(0, 3719)) - .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `NominationPools::BondedPools` (r:1 w:0) /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) /// Storage: `Balances::Freezes` (r:1 w:1) /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) @@ -661,44 +739,137 @@ impl pallet_nomination_pools::WeightInfo for WeightInfo /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) fn adjust_pool_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `947` + // Measured: `1575` // Estimated: `4764` - // Minimum execution time: 80_551_000 picoseconds. - Weight::from_parts(80_990_000, 0) + // Minimum execution time: 109_841_000 picoseconds. + Weight::from_parts(110_361_000, 0) .saturating_add(Weight::from_parts(0, 4764)) - .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } + /// Storage: `NominationPools::PoolMembers` (r:1 w:0) + /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::BondedPools` (r:1 w:0) + /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn apply_slash() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 3_010_000 picoseconds. - Weight::from_parts(3_190_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `4298` + // Estimated: `4662` + // Minimum execution time: 158_861_000 picoseconds. + Weight::from_parts(160_231_000, 0) + .saturating_add(Weight::from_parts(0, 4662)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(4)) } + /// Storage: `NominationPools::PoolMembers` (r:1 w:0) + /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:0) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:1 w:0) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::BondedPools` (r:1 w:0) + /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) fn apply_slash_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 3_120_000 picoseconds. - Weight::from_parts(3_200_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `4040` + // Estimated: `4662` + // Minimum execution time: 85_591_000 picoseconds. + Weight::from_parts(86_671_000, 0) + .saturating_add(Weight::from_parts(0, 4662)) + .saturating_add(T::DbWeight::get().reads(7)) } + /// Storage: `NominationPools::BondedPools` (r:1 w:0) + /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:1) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:1 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Validators` (r:1 w:0) + /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) + /// Storage: `Staking::Nominators` (r:1 w:0) + /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:1) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:2 w:1) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForAgents` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForAgents` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// 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(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Staking::CounterForVirtualStakers` (r:1 w:1) + /// Proof: `Staking::CounterForVirtualStakers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForDelegators` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForDelegators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Storage: `Staking::Payee` (r:0 w:1) + /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn pool_migrate() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 2_900_000 picoseconds. - Weight::from_parts(2_980_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `1950` + // Estimated: `6196` + // Minimum execution time: 222_251_000 picoseconds. + Weight::from_parts(224_202_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(17)) + .saturating_add(T::DbWeight::get().writes(11)) } + /// Storage: `NominationPools::PoolMembers` (r:1 w:0) + /// Proof: `NominationPools::PoolMembers` (`max_values`: None, `max_size`: Some(717), added: 3192, mode: `MaxEncodedLen`) + /// Storage: `Staking::VirtualStakers` (r:1 w:0) + /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::BondedPools` (r:1 w:0) + /// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) + /// Storage: `Staking::Bonded` (r:2 w:0) + /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) + /// Storage: `Staking::Ledger` (r:1 w:0) + /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) + /// Storage: `NominationPools::SubPoolsStorage` (r:1 w:0) + /// Proof: `NominationPools::SubPoolsStorage` (`max_values`: None, `max_size`: Some(1197), added: 3672, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Delegators` (r:2 w:2) + /// Proof: `DelegatedStaking::Delegators` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:2 w:0) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::CounterForDelegators` (r:1 w:1) + /// Proof: `DelegatedStaking::CounterForDelegators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn migrate_delegation() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 2_820_000 picoseconds. - Weight::from_parts(2_930_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Measured: `2360` + // Estimated: `6180` + // Minimum execution time: 162_521_000 picoseconds. + Weight::from_parts(163_901_000, 0) + .saturating_add(Weight::from_parts(0, 6180)) + .saturating_add(T::DbWeight::get().reads(15)) + .saturating_add(T::DbWeight::get().writes(6)) } } diff --git a/relay/paseo/src/weights/pallet_offences.rs b/relay/paseo/src/weights/pallet_offences.rs index 9bb2df378..4ba971722 100644 --- a/relay/paseo/src/weights/pallet_offences.rs +++ b/relay/paseo/src/weights/pallet_offences.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_offences` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -76,13 +76,13 @@ impl pallet_offences::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 16]`. fn report_offence_grandpa(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1099` - // Estimated: `4549 + n * (2551 ±0)` - // Minimum execution time: 61_810_000 picoseconds. - Weight::from_parts(65_173_811, 0) - .saturating_add(Weight::from_parts(0, 4549)) - // Standard Error: 9_420 - .saturating_add(Weight::from_parts(11_772_604, 0).saturating_mul(n.into())) + // Measured: `1133` + // Estimated: `4583 + n * (2551 ±0)` + // Minimum execution time: 76_910_000 picoseconds. + Weight::from_parts(81_742_271, 0) + .saturating_add(Weight::from_parts(0, 4583)) + // Standard Error: 14_986 + .saturating_add(Weight::from_parts(13_581_692, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(7)) @@ -118,13 +118,13 @@ impl pallet_offences::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 16]`. fn report_offence_babe(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1099` - // Estimated: `4549 + n * (2551 ±0)` - // Minimum execution time: 60_881_000 picoseconds. - Weight::from_parts(64_492_122, 0) - .saturating_add(Weight::from_parts(0, 4549)) - // Standard Error: 9_618 - .saturating_add(Weight::from_parts(11_786_004, 0).saturating_mul(n.into())) + // Measured: `1133` + // Estimated: `4583 + n * (2551 ±0)` + // Minimum execution time: 76_691_000 picoseconds. + Weight::from_parts(81_134_957, 0) + .saturating_add(Weight::from_parts(0, 4583)) + // Standard Error: 14_700 + .saturating_add(Weight::from_parts(13_590_279, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(7)) diff --git a/relay/paseo/src/weights/pallet_parameters.rs b/relay/paseo/src/weights/pallet_parameters.rs deleted file mode 100644 index 4ecc2b213..000000000 --- a/relay/paseo/src/weights/pallet_parameters.rs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md -// for a list of specific contributors. -// SPDX-License-Identifier: Apache-2.0 - -//! Autogenerated weights for `pallet_parameters` -//! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-04-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("polkadot-dev")`, DB CACHE: 1024 - -// Executed Command: -// target/production/polkadot -// benchmark -// pallet -// --steps=50 -// --repeat=20 -// --extrinsic=* -// --wasm-execution=compiled -// --heap-pages=4096 -// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json -// --pallet=pallet_parameters -// --chain=polkadot-dev -// --header=./polkadot/file_header.txt -// --output=./polkadot/runtime/polkadot/src/weights/ - -#![cfg_attr(rustfmt, rustfmt_skip)] -#![allow(unused_parens)] -#![allow(unused_imports)] -#![allow(missing_docs)] - -use frame_support::{traits::Get, weights::Weight}; -use core::marker::PhantomData; - -/// Weight functions for `pallet_parameters`. -pub struct WeightInfo(PhantomData); -impl pallet_parameters::WeightInfo for WeightInfo { - /// Storage: `Parameters::Parameters` (r:1 w:1) - /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - fn set_parameter() -> Weight { - // Proof Size summary in bytes: - // Measured: `4` - // Estimated: `3493` - // Minimum execution time: 6_937_000 picoseconds. - Weight::from_parts(7_242_000, 0) - .saturating_add(Weight::from_parts(0, 3493)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } -} diff --git a/relay/paseo/src/weights/pallet_preimage.rs b/relay/paseo/src/weights/pallet_preimage.rs index 3f6d63c93..d585e3c9b 100644 --- a/relay/paseo/src/weights/pallet_preimage.rs +++ b/relay/paseo/src/weights/pallet_preimage.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_preimage` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,19 +52,19 @@ impl pallet_preimage::WeightInfo for WeightInfo { /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) /// Storage: `Preimage::PreimageFor` (r:0 w:1) /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 4194304]`. fn note_preimage(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `3556` - // Minimum execution time: 49_910_000 picoseconds. - Weight::from_parts(50_410_000, 0) - .saturating_add(Weight::from_parts(0, 3556)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(2_327, 0).saturating_mul(s.into())) + // Estimated: `3568` + // Minimum execution time: 57_090_000 picoseconds. + Weight::from_parts(57_631_000, 0) + .saturating_add(Weight::from_parts(0, 3568)) + // Standard Error: 5 + .saturating_add(Weight::from_parts(2_471, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -79,11 +79,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3556` - // Minimum execution time: 16_620_000 picoseconds. - Weight::from_parts(16_920_000, 0) + // Minimum execution time: 20_580_000 picoseconds. + Weight::from_parts(20_850_000, 0) .saturating_add(Weight::from_parts(0, 3556)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(2_318, 0).saturating_mul(s.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(2_498, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -98,11 +98,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3556` - // Minimum execution time: 15_470_000 picoseconds. - Weight::from_parts(15_850_000, 0) + // Minimum execution time: 19_990_000 picoseconds. + Weight::from_parts(20_220_000, 0) .saturating_add(Weight::from_parts(0, 3556)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(2_317, 0).saturating_mul(s.into())) + // Standard Error: 5 + .saturating_add(Weight::from_parts(2_472, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -111,16 +111,16 @@ impl pallet_preimage::WeightInfo for WeightInfo { /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) /// Storage: `Preimage::PreimageFor` (r:0 w:1) /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) fn unnote_preimage() -> Weight { // Proof Size summary in bytes: // Measured: `244` - // Estimated: `3556` - // Minimum execution time: 68_781_000 picoseconds. - Weight::from_parts(71_800_000, 0) - .saturating_add(Weight::from_parts(0, 3556)) + // Estimated: `3568` + // Minimum execution time: 82_971_000 picoseconds. + Weight::from_parts(85_860_000, 0) + .saturating_add(Weight::from_parts(0, 3568)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -134,8 +134,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `144` // Estimated: `3556` - // Minimum execution time: 34_950_000 picoseconds. - Weight::from_parts(35_770_000, 0) + // Minimum execution time: 43_130_000 picoseconds. + Weight::from_parts(45_251_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -148,8 +148,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `188` // Estimated: `3556` - // Minimum execution time: 30_051_000 picoseconds. - Weight::from_parts(31_921_000, 0) + // Minimum execution time: 37_550_000 picoseconds. + Weight::from_parts(38_941_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -162,8 +162,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `144` // Estimated: `3556` - // Minimum execution time: 21_030_000 picoseconds. - Weight::from_parts(22_920_000, 0) + // Minimum execution time: 27_050_000 picoseconds. + Weight::from_parts(28_750_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -176,8 +176,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3556` - // Minimum execution time: 24_820_000 picoseconds. - Weight::from_parts(26_620_000, 0) + // Minimum execution time: 33_130_000 picoseconds. + Weight::from_parts(35_060_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -190,8 +190,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3556` - // Minimum execution time: 12_780_000 picoseconds. - Weight::from_parts(13_770_000, 0) + // Minimum execution time: 16_280_000 picoseconds. + Weight::from_parts(17_700_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -206,8 +206,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `144` // Estimated: `3556` - // Minimum execution time: 31_860_000 picoseconds. - Weight::from_parts(33_531_000, 0) + // Minimum execution time: 39_590_000 picoseconds. + Weight::from_parts(40_990_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -220,8 +220,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3556` - // Minimum execution time: 12_840_000 picoseconds. - Weight::from_parts(13_730_000, 0) + // Minimum execution time: 15_430_000 picoseconds. + Weight::from_parts(16_690_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -234,8 +234,8 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3556` - // Minimum execution time: 12_770_000 picoseconds. - Weight::from_parts(13_760_000, 0) + // Minimum execution time: 16_220_000 picoseconds. + Weight::from_parts(16_950_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -245,7 +245,7 @@ impl pallet_preimage::WeightInfo for WeightInfo { /// Storage: `System::Account` (r:1023 w:1023) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1023 w:1023) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) /// Storage: `Preimage::RequestStatusFor` (r:0 w:1023) /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 1024]`. @@ -253,11 +253,11 @@ impl pallet_preimage::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + n * (227 ±0)` // Estimated: `990 + n * (2603 ±0)` - // Minimum execution time: 56_971_000 picoseconds. - Weight::from_parts(57_210_000, 0) + // Minimum execution time: 65_090_000 picoseconds. + Weight::from_parts(65_290_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 43_030 - .saturating_add(Weight::from_parts(57_777_430, 0).saturating_mul(n.into())) + // Standard Error: 59_756 + .saturating_add(Weight::from_parts(64_248_803, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(n.into())) diff --git a/relay/paseo/src/weights/pallet_proxy.rs b/relay/paseo/src/weights/pallet_proxy.rs index f20855508..e4818bc43 100644 --- a/relay/paseo/src/weights/pallet_proxy.rs +++ b/relay/paseo/src/weights/pallet_proxy.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_proxy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -54,11 +54,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 14_070_000 picoseconds. - Weight::from_parts(14_788_389, 0) + // Minimum execution time: 17_380_000 picoseconds. + Weight::from_parts(17_913_463, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 699 - .saturating_add(Weight::from_parts(27_578, 0).saturating_mul(p.into())) + // Standard Error: 726 + .saturating_add(Weight::from_parts(33_558, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `Proxy::Proxies` (r:1 w:0) @@ -73,13 +73,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `416 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 40_740_000 picoseconds. - Weight::from_parts(40_377_388, 0) + // Minimum execution time: 48_950_000 picoseconds. + Weight::from_parts(49_179_148, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_279 - .saturating_add(Weight::from_parts(151_330, 0).saturating_mul(a.into())) - // Standard Error: 1_321 - .saturating_add(Weight::from_parts(36_938, 0).saturating_mul(p.into())) + // Standard Error: 1_687 + .saturating_add(Weight::from_parts(157_940, 0).saturating_mul(a.into())) + // Standard Error: 1_743 + .saturating_add(Weight::from_parts(40_820, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -93,13 +93,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `331 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 25_300_000 picoseconds. - Weight::from_parts(25_334_477, 0) + // Minimum execution time: 30_470_000 picoseconds. + Weight::from_parts(30_689_933, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 2_128 - .saturating_add(Weight::from_parts(162_784, 0).saturating_mul(a.into())) - // Standard Error: 2_199 - .saturating_add(Weight::from_parts(12_190, 0).saturating_mul(p.into())) + // Standard Error: 3_150 + .saturating_add(Weight::from_parts(169_701, 0).saturating_mul(a.into())) + // Standard Error: 3_255 + .saturating_add(Weight::from_parts(14_406, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -113,13 +113,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `331 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 25_310_000 picoseconds. - Weight::from_parts(25_362_053, 0) + // Minimum execution time: 30_230_000 picoseconds. + Weight::from_parts(30_439_854, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 2_132 - .saturating_add(Weight::from_parts(162_444, 0).saturating_mul(a.into())) - // Standard Error: 2_203 - .saturating_add(Weight::from_parts(12_507, 0).saturating_mul(p.into())) + // Standard Error: 3_060 + .saturating_add(Weight::from_parts(171_121, 0).saturating_mul(a.into())) + // Standard Error: 3_162 + .saturating_add(Weight::from_parts(17_981, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -135,13 +135,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `348 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 36_820_000 picoseconds. - Weight::from_parts(36_431_844, 0) + // Minimum execution time: 44_350_000 picoseconds. + Weight::from_parts(44_653_816, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_275 - .saturating_add(Weight::from_parts(144_858, 0).saturating_mul(a.into())) - // Standard Error: 1_317 - .saturating_add(Weight::from_parts(35_542, 0).saturating_mul(p.into())) + // Standard Error: 1_795 + .saturating_add(Weight::from_parts(163_244, 0).saturating_mul(a.into())) + // Standard Error: 1_854 + .saturating_add(Weight::from_parts(44_255, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -152,11 +152,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 24_360_000 picoseconds. - Weight::from_parts(24_789_695, 0) + // Minimum execution time: 29_130_000 picoseconds. + Weight::from_parts(29_683_235, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 549 - .saturating_add(Weight::from_parts(39_411, 0).saturating_mul(p.into())) + // Standard Error: 625 + .saturating_add(Weight::from_parts(40_714, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -167,11 +167,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 24_310_000 picoseconds. - Weight::from_parts(24_856_573, 0) + // Minimum execution time: 29_050_000 picoseconds. + Weight::from_parts(29_813_546, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 742 - .saturating_add(Weight::from_parts(49_314, 0).saturating_mul(p.into())) + // Standard Error: 1_025 + .saturating_add(Weight::from_parts(58_847, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -182,11 +182,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 21_440_000 picoseconds. - Weight::from_parts(22_069_624, 0) + // Minimum execution time: 26_000_000 picoseconds. + Weight::from_parts(26_474_583, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 703 - .saturating_add(Weight::from_parts(33_018, 0).saturating_mul(p.into())) + // Standard Error: 741 + .saturating_add(Weight::from_parts(41_782, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -197,11 +197,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `4706` - // Minimum execution time: 25_480_000 picoseconds. - Weight::from_parts(25_957_224, 0) + // Minimum execution time: 31_060_000 picoseconds. + Weight::from_parts(31_697_088, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 603 - .saturating_add(Weight::from_parts(12_153, 0).saturating_mul(p.into())) + // Standard Error: 605 + .saturating_add(Weight::from_parts(9_409, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -212,11 +212,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `126 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 22_360_000 picoseconds. - Weight::from_parts(22_855_974, 0) + // Minimum execution time: 27_030_000 picoseconds. + Weight::from_parts(27_758_088, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 659 - .saturating_add(Weight::from_parts(33_966, 0).saturating_mul(p.into())) + // Standard Error: 765 + .saturating_add(Weight::from_parts(32_982, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/relay/paseo/src/weights/pallet_referenda.rs b/relay/paseo/src/weights/pallet_referenda.rs index bd8a35c47..2bd4dd1d3 100644 --- a/relay/paseo/src/weights/pallet_referenda.rs +++ b/relay/paseo/src/weights/pallet_referenda.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_referenda` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,8 +57,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `186` // Estimated: `42428` - // Minimum execution time: 36_921_000 picoseconds. - Weight::from_parts(37_510_000, 0) + // Minimum execution time: 43_340_000 picoseconds. + Weight::from_parts(44_031_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) @@ -73,8 +73,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `439` // Estimated: `83866` - // Minimum execution time: 53_440_000 picoseconds. - Weight::from_parts(53_830_000, 0) + // Minimum execution time: 63_961_000 picoseconds. + Weight::from_parts(64_760_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) @@ -93,8 +93,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3226` // Estimated: `42428` - // Minimum execution time: 63_310_000 picoseconds. - Weight::from_parts(64_100_000, 0) + // Minimum execution time: 76_461_000 picoseconds. + Weight::from_parts(77_051_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -113,8 +113,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3246` // Estimated: `42428` - // Minimum execution time: 62_980_000 picoseconds. - Weight::from_parts(63_660_000, 0) + // Minimum execution time: 75_831_000 picoseconds. + Weight::from_parts(76_390_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -131,8 +131,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `439` // Estimated: `83866` - // Minimum execution time: 63_141_000 picoseconds. - Weight::from_parts(63_991_000, 0) + // Minimum execution time: 74_810_000 picoseconds. + Weight::from_parts(75_401_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) @@ -149,8 +149,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `439` // Estimated: `83866` - // Minimum execution time: 60_881_000 picoseconds. - Weight::from_parts(61_751_000, 0) + // Minimum execution time: 72_641_000 picoseconds. + Weight::from_parts(73_510_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) @@ -161,8 +161,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `279` // Estimated: `4401` - // Minimum execution time: 28_140_000 picoseconds. - Weight::from_parts(28_571_000, 0) + // Minimum execution time: 32_990_000 picoseconds. + Weight::from_parts(33_511_000, 0) .saturating_add(Weight::from_parts(0, 4401)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -173,8 +173,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `269` // Estimated: `4401` - // Minimum execution time: 28_281_000 picoseconds. - Weight::from_parts(28_860_000, 0) + // Minimum execution time: 33_850_000 picoseconds. + Weight::from_parts(34_470_000, 0) .saturating_add(Weight::from_parts(0, 4401)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -189,8 +189,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `83866` - // Minimum execution time: 34_490_000 picoseconds. - Weight::from_parts(34_850_000, 0) + // Minimum execution time: 40_800_000 picoseconds. + Weight::from_parts(41_260_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) @@ -207,8 +207,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `588` // Estimated: `83866` - // Minimum execution time: 97_201_000 picoseconds. - Weight::from_parts(98_191_000, 0) + // Minimum execution time: 111_530_000 picoseconds. + Weight::from_parts(112_511_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -221,8 +221,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `102` // Estimated: `5477` - // Minimum execution time: 9_970_000 picoseconds. - Weight::from_parts(10_150_000, 0) + // Minimum execution time: 13_050_000 picoseconds. + Weight::from_parts(13_281_000, 0) .saturating_add(Weight::from_parts(0, 5477)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -237,8 +237,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3116` // Estimated: `42428` - // Minimum execution time: 43_510_000 picoseconds. - Weight::from_parts(44_151_000, 0) + // Minimum execution time: 52_720_000 picoseconds. + Weight::from_parts(53_460_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -253,8 +253,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3116` // Estimated: `42428` - // Minimum execution time: 46_160_000 picoseconds. - Weight::from_parts(46_531_000, 0) + // Minimum execution time: 55_041_000 picoseconds. + Weight::from_parts(56_170_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -267,8 +267,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2939` // Estimated: `5477` - // Minimum execution time: 21_640_000 picoseconds. - Weight::from_parts(22_330_000, 0) + // Minimum execution time: 27_900_000 picoseconds. + Weight::from_parts(28_511_000, 0) .saturating_add(Weight::from_parts(0, 5477)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -281,8 +281,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2939` // Estimated: `5477` - // Minimum execution time: 21_710_000 picoseconds. - Weight::from_parts(22_270_000, 0) + // Minimum execution time: 27_790_000 picoseconds. + Weight::from_parts(28_190_000, 0) .saturating_add(Weight::from_parts(0, 5477)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -297,8 +297,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2943` // Estimated: `5477` - // Minimum execution time: 26_700_000 picoseconds. - Weight::from_parts(27_041_000, 0) + // Minimum execution time: 33_520_000 picoseconds. + Weight::from_parts(34_240_000, 0) .saturating_add(Weight::from_parts(0, 5477)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -313,8 +313,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2963` // Estimated: `5477` - // Minimum execution time: 26_050_000 picoseconds. - Weight::from_parts(26_730_000, 0) + // Minimum execution time: 33_480_000 picoseconds. + Weight::from_parts(33_820_000, 0) .saturating_add(Weight::from_parts(0, 5477)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -327,8 +327,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `299` // Estimated: `42428` - // Minimum execution time: 21_870_000 picoseconds. - Weight::from_parts(22_361_000, 0) + // Minimum execution time: 26_930_000 picoseconds. + Weight::from_parts(27_660_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -341,8 +341,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `42428` - // Minimum execution time: 22_141_000 picoseconds. - Weight::from_parts(22_571_000, 0) + // Minimum execution time: 27_420_000 picoseconds. + Weight::from_parts(27_990_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -353,8 +353,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `206` // Estimated: `4401` - // Minimum execution time: 13_930_000 picoseconds. - Weight::from_parts(14_230_000, 0) + // Minimum execution time: 17_290_000 picoseconds. + Weight::from_parts(17_740_000, 0) .saturating_add(Weight::from_parts(0, 4401)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -369,8 +369,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `42428` - // Minimum execution time: 30_280_000 picoseconds. - Weight::from_parts(30_600_000, 0) + // Minimum execution time: 36_530_000 picoseconds. + Weight::from_parts(36_840_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -385,8 +385,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `42428` - // Minimum execution time: 32_150_000 picoseconds. - Weight::from_parts(32_601_000, 0) + // Minimum execution time: 38_620_000 picoseconds. + Weight::from_parts(38_970_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -399,8 +399,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `400` // Estimated: `42428` - // Minimum execution time: 29_920_000 picoseconds. - Weight::from_parts(30_330_000, 0) + // Minimum execution time: 37_050_000 picoseconds. + Weight::from_parts(37_411_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -413,8 +413,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `383` // Estimated: `42428` - // Minimum execution time: 30_160_000 picoseconds. - Weight::from_parts(30_790_000, 0) + // Minimum execution time: 36_900_000 picoseconds. + Weight::from_parts(37_220_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -427,8 +427,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `400` // Estimated: `42428` - // Minimum execution time: 28_641_000 picoseconds. - Weight::from_parts(29_180_000, 0) + // Minimum execution time: 35_410_000 picoseconds. + Weight::from_parts(36_310_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -441,8 +441,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `404` // Estimated: `42428` - // Minimum execution time: 27_240_000 picoseconds. - Weight::from_parts(28_041_000, 0) + // Minimum execution time: 34_030_000 picoseconds. + Weight::from_parts(34_600_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -457,8 +457,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `404` // Estimated: `83866` - // Minimum execution time: 41_201_000 picoseconds. - Weight::from_parts(41_691_000, 0) + // Minimum execution time: 49_650_000 picoseconds. + Weight::from_parts(50_240_000, 0) .saturating_add(Weight::from_parts(0, 83866)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -471,8 +471,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `400` // Estimated: `42428` - // Minimum execution time: 29_940_000 picoseconds. - Weight::from_parts(30_460_000, 0) + // Minimum execution time: 37_170_000 picoseconds. + Weight::from_parts(37_540_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -489,8 +489,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4401` - // Minimum execution time: 20_600_000 picoseconds. - Weight::from_parts(21_060_000, 0) + // Minimum execution time: 26_040_000 picoseconds. + Weight::from_parts(26_590_000, 0) .saturating_add(Weight::from_parts(0, 4401)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -503,8 +503,8 @@ impl pallet_referenda::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `283` // Estimated: `4401` - // Minimum execution time: 16_111_000 picoseconds. - Weight::from_parts(16_420_000, 0) + // Minimum execution time: 20_190_000 picoseconds. + Weight::from_parts(20_810_000, 0) .saturating_add(Weight::from_parts(0, 4401)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/pallet_scheduler.rs b/relay/paseo/src/weights/pallet_scheduler.rs index 76313b9df..5eb9fe8f3 100644 --- a/relay/paseo/src/weights/pallet_scheduler.rs +++ b/relay/paseo/src/weights/pallet_scheduler.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_scheduler` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `69` // Estimated: `1489` - // Minimum execution time: 3_720_000 picoseconds. - Weight::from_parts(4_040_000, 0) + // Minimum execution time: 5_510_000 picoseconds. + Weight::from_parts(5_740_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -66,11 +66,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `116 + s * (177 ±0)` // Estimated: `42428` - // Minimum execution time: 4_280_000 picoseconds. - Weight::from_parts(7_707_396, 0) + // Minimum execution time: 5_790_000 picoseconds. + Weight::from_parts(9_864_398, 0) .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 1_502 - .saturating_add(Weight::from_parts(386_131, 0).saturating_mul(s.into())) + // Standard Error: 1_903 + .saturating_add(Weight::from_parts(420_858, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -78,12 +78,12 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_740_000 picoseconds. - Weight::from_parts(3_920_000, 0) + // Minimum execution time: 4_610_000 picoseconds. + Weight::from_parts(4_750_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Preimage::PreimageFor` (r:1 w:1) - /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) /// Storage: `Preimage::StatusFor` (r:1 w:0) /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) @@ -92,15 +92,14 @@ impl pallet_scheduler::WeightInfo for WeightInfo { fn service_task_fetched(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `179 + s * (1 ±0)` - // Estimated: `3644 + s * (1 ±0)` - // Minimum execution time: 19_310_000 picoseconds. - Weight::from_parts(19_570_000, 0) - .saturating_add(Weight::from_parts(0, 3644)) - // Standard Error: 8 - .saturating_add(Weight::from_parts(1_196, 0).saturating_mul(s.into())) + // Estimated: `4197809` + // Minimum execution time: 24_160_000 picoseconds. + Weight::from_parts(24_310_000, 0) + .saturating_add(Weight::from_parts(0, 4197809)) + // Standard Error: 6 + .saturating_add(Weight::from_parts(1_381, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) } /// Storage: `Scheduler::Lookup` (r:0 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) @@ -108,8 +107,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_300_000 picoseconds. - Weight::from_parts(5_480_000, 0) + // Minimum execution time: 6_490_000 picoseconds. + Weight::from_parts(6_700_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -117,24 +116,24 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_800_000 picoseconds. - Weight::from_parts(3_930_000, 0) + // Minimum execution time: 4_600_000 picoseconds. + Weight::from_parts(4_760_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_signed() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_340_000 picoseconds. - Weight::from_parts(2_430_000, 0) + // Minimum execution time: 2_910_000 picoseconds. + Weight::from_parts(3_070_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_unsigned() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_390_000 picoseconds. - Weight::from_parts(2_470_000, 0) + // Minimum execution time: 2_910_000 picoseconds. + Weight::from_parts(3_020_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) @@ -144,11 +143,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `116 + s * (177 ±0)` // Estimated: `42428` - // Minimum execution time: 11_710_000 picoseconds. - Weight::from_parts(15_080_364, 0) + // Minimum execution time: 14_410_000 picoseconds. + Weight::from_parts(18_288_365, 0) .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 1_462 - .saturating_add(Weight::from_parts(393_231, 0).saturating_mul(s.into())) + // Standard Error: 1_708 + .saturating_add(Weight::from_parts(433_782, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -163,11 +162,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `116 + s * (177 ±0)` // Estimated: `42428` - // Minimum execution time: 17_570_000 picoseconds. - Weight::from_parts(17_410_059, 0) + // Minimum execution time: 21_390_000 picoseconds. + Weight::from_parts(20_875_340, 0) .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 722 - .saturating_add(Weight::from_parts(596_176, 0).saturating_mul(s.into())) + // Standard Error: 678 + .saturating_add(Weight::from_parts(676_792, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -180,11 +179,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `293 + s * (185 ±0)` // Estimated: `42428` - // Minimum execution time: 15_190_000 picoseconds. - Weight::from_parts(19_873_163, 0) + // Minimum execution time: 19_070_000 picoseconds. + Weight::from_parts(24_596_416, 0) .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 2_740 - .saturating_add(Weight::from_parts(428_771, 0).saturating_mul(s.into())) + // Standard Error: 3_290 + .saturating_add(Weight::from_parts(482_322, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -199,11 +198,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `319 + s * (185 ±0)` // Estimated: `42428` - // Minimum execution time: 19_600_000 picoseconds. - Weight::from_parts(20_702_477, 0) + // Minimum execution time: 24_621_000 picoseconds. + Weight::from_parts(25_543_345, 0) .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 1_291 - .saturating_add(Weight::from_parts(619_254, 0).saturating_mul(s.into())) + // Standard Error: 1_519 + .saturating_add(Weight::from_parts(726_085, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -216,11 +215,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `156` // Estimated: `42428` - // Minimum execution time: 10_790_000 picoseconds. - Weight::from_parts(11_339_780, 0) + // Minimum execution time: 13_490_000 picoseconds. + Weight::from_parts(14_024_465, 0) .saturating_add(Weight::from_parts(0, 42428)) - // Standard Error: 310 - .saturating_add(Weight::from_parts(15_874, 0).saturating_mul(s.into())) + // Standard Error: 394 + .saturating_add(Weight::from_parts(17_530, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -232,8 +231,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `8966` // Estimated: `42428` - // Minimum execution time: 26_751_000 picoseconds. - Weight::from_parts(27_160_000, 0) + // Minimum execution time: 32_231_000 picoseconds. + Weight::from_parts(32_830_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -248,8 +247,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `9644` // Estimated: `42428` - // Minimum execution time: 33_320_000 picoseconds. - Weight::from_parts(33_790_000, 0) + // Minimum execution time: 41_151_000 picoseconds. + Weight::from_parts(42_100_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -262,8 +261,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `8978` // Estimated: `42428` - // Minimum execution time: 25_490_000 picoseconds. - Weight::from_parts(25_950_000, 0) + // Minimum execution time: 30_600_000 picoseconds. + Weight::from_parts(31_090_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -278,8 +277,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `9656` // Estimated: `42428` - // Minimum execution time: 31_860_000 picoseconds. - Weight::from_parts(32_420_000, 0) + // Minimum execution time: 39_690_000 picoseconds. + Weight::from_parts(40_440_000, 0) .saturating_add(Weight::from_parts(0, 42428)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/pallet_session.rs b/relay/paseo/src/weights/pallet_session.rs index 6c5f402ed..ffd7f699f 100644 --- a/relay/paseo/src/weights/pallet_session.rs +++ b/relay/paseo/src/weights/pallet_session.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_session` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,11 +55,11 @@ impl pallet_session::WeightInfo for WeightInfo { /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_keys() -> Weight { // Proof Size summary in bytes: - // Measured: `1981` - // Estimated: `17821` - // Minimum execution time: 59_201_000 picoseconds. - Weight::from_parts(60_340_000, 0) - .saturating_add(Weight::from_parts(0, 17821)) + // Measured: `2015` + // Estimated: `17855` + // Minimum execution time: 74_190_000 picoseconds. + Weight::from_parts(75_020_000, 0) + .saturating_add(Weight::from_parts(0, 17855)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -71,11 +71,11 @@ impl pallet_session::WeightInfo for WeightInfo { /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn purge_keys() -> Weight { // Proof Size summary in bytes: - // Measured: `1781` - // Estimated: `5246` - // Minimum execution time: 41_960_000 picoseconds. - Weight::from_parts(42_500_000, 0) - .saturating_add(Weight::from_parts(0, 5246)) + // Measured: `1815` + // Estimated: `5280` + // Minimum execution time: 52_801_000 picoseconds. + Weight::from_parts(53_851_000, 0) + .saturating_add(Weight::from_parts(0, 5280)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(7)) } diff --git a/relay/paseo/src/weights/pallet_staking.rs b/relay/paseo/src/weights/pallet_staking.rs index 9d557d7d2..818f168c1 100644 --- a/relay/paseo/src/weights/pallet_staking.rs +++ b/relay/paseo/src/weights/pallet_staking.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_staking` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -61,10 +61,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn bond() -> Weight { // Proof Size summary in bytes: - // Measured: `948` + // Measured: `982` // Estimated: `4764` - // Minimum execution time: 56_501_000 picoseconds. - Weight::from_parts(57_791_000, 0) + // Minimum execution time: 69_680_000 picoseconds. + Weight::from_parts(70_490_000, 0) .saturating_add(Weight::from_parts(0, 4764)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -85,10 +85,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) fn bond_extra() -> Weight { // Proof Size summary in bytes: - // Measured: `1986` + // Measured: `2020` // Estimated: `8877` - // Minimum execution time: 104_611_000 picoseconds. - Weight::from_parts(105_431_000, 0) + // Minimum execution time: 128_761_000 picoseconds. + Weight::from_parts(129_501_000, 0) .saturating_add(Weight::from_parts(0, 8877)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) @@ -115,10 +115,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) fn unbond() -> Weight { // Proof Size summary in bytes: - // Measured: `2193` + // Measured: `2227` // Estimated: `8877` - // Minimum execution time: 113_291_000 picoseconds. - Weight::from_parts(114_771_000, 0) + // Minimum execution time: 142_351_000 picoseconds. + Weight::from_parts(143_580_000, 0) .saturating_add(Weight::from_parts(0, 8877)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(7)) @@ -137,17 +137,19 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0) /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `DelegatedStaking::Agents` (r:1 w:0) + /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 100]`. fn withdraw_unbonded_update(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1291` + // Measured: `1328` // Estimated: `4764` - // Minimum execution time: 58_311_000 picoseconds. - Weight::from_parts(59_952_516, 0) + // Minimum execution time: 78_250_000 picoseconds. + Weight::from_parts(79_545_249, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 2_575 - .saturating_add(Weight::from_parts(21_692, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(7)) + // Standard Error: 383 + .saturating_add(Weight::from_parts(15_073, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `Staking::Ledger` (r:1 w:1) @@ -183,13 +185,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 100]`. fn withdraw_unbonded_kill(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2192 + s * (4 ±0)` + // Measured: `2226 + s * (4 ±0)` // Estimated: `6248 + s * (4 ±0)` - // Minimum execution time: 104_331_000 picoseconds. - Weight::from_parts(110_590_540, 0) + // Minimum execution time: 133_010_000 picoseconds. + Weight::from_parts(137_540_987, 0) .saturating_add(Weight::from_parts(0, 6248)) - // Standard Error: 3_792 - .saturating_add(Weight::from_parts(1_414_507, 0).saturating_mul(s.into())) + // Standard Error: 2_458 + .saturating_add(Weight::from_parts(1_570_787, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(12)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) @@ -219,10 +221,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn validate() -> Weight { // Proof Size summary in bytes: - // Measured: `1388` + // Measured: `1422` // Estimated: `4556` - // Minimum execution time: 62_611_000 picoseconds. - Weight::from_parts(63_340_000, 0) + // Minimum execution time: 81_670_000 picoseconds. + Weight::from_parts(82_280_000, 0) .saturating_add(Weight::from_parts(0, 4556)) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(5)) @@ -236,13 +238,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `k` is `[1, 128]`. fn kick(k: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1744 + k * (572 ±0)` + // Measured: `1778 + k * (572 ±0)` // Estimated: `4556 + k * (3033 ±0)` - // Minimum execution time: 36_771_000 picoseconds. - Weight::from_parts(34_249_349, 0) + // Minimum execution time: 47_420_000 picoseconds. + Weight::from_parts(43_294_265, 0) .saturating_add(Weight::from_parts(0, 4556)) - // Standard Error: 7_863 - .saturating_add(Weight::from_parts(7_425_385, 0).saturating_mul(k.into())) + // Standard Error: 10_857 + .saturating_add(Weight::from_parts(8_789_088, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into()))) @@ -273,13 +275,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `n` is `[1, 16]`. fn nominate(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1834 + n * (99 ±0)` + // Measured: `1868 + n * (99 ±0)` // Estimated: `6248 + n * (2520 ±0)` - // Minimum execution time: 75_021_000 picoseconds. - Weight::from_parts(71_837_550, 0) + // Minimum execution time: 97_140_000 picoseconds. + Weight::from_parts(93_186_911, 0) .saturating_add(Weight::from_parts(0, 6248)) - // Standard Error: 15_955 - .saturating_add(Weight::from_parts(4_233_534, 0).saturating_mul(n.into())) + // Standard Error: 23_128 + .saturating_add(Weight::from_parts(5_455_731, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(6)) @@ -303,10 +305,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill() -> Weight { // Proof Size summary in bytes: - // Measured: `1779` + // Measured: `1813` // Estimated: `6248` - // Minimum execution time: 66_800_000 picoseconds. - Weight::from_parts(67_641_000, 0) + // Minimum execution time: 85_851_000 picoseconds. + Weight::from_parts(86_761_000, 0) .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(6)) @@ -319,10 +321,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn set_payee() -> Weight { // Proof Size summary in bytes: - // Measured: `899` + // Measured: `933` // Estimated: `4556` - // Minimum execution time: 25_530_000 picoseconds. - Weight::from_parts(26_060_000, 0) + // Minimum execution time: 33_390_000 picoseconds. + Weight::from_parts(34_160_000, 0) .saturating_add(Weight::from_parts(0, 4556)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -335,10 +337,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn update_payee() -> Weight { // Proof Size summary in bytes: - // Measured: `1000` + // Measured: `1034` // Estimated: `4556` - // Minimum execution time: 29_510_000 picoseconds. - Weight::from_parts(30_291_000, 0) + // Minimum execution time: 38_960_000 picoseconds. + Weight::from_parts(39_670_000, 0) .saturating_add(Weight::from_parts(0, 4556)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -349,10 +351,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) fn set_controller() -> Weight { // Proof Size summary in bytes: - // Measured: `899` + // Measured: `933` // Estimated: `8122` - // Minimum execution time: 28_870_000 picoseconds. - Weight::from_parts(29_380_000, 0) + // Minimum execution time: 37_860_000 picoseconds. + Weight::from_parts(38_360_000, 0) .saturating_add(Weight::from_parts(0, 8122)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -363,8 +365,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_551_000 picoseconds. - Weight::from_parts(2_670_000, 0) + // Minimum execution time: 3_170_000 picoseconds. + Weight::from_parts(3_300_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -374,8 +376,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_580_000 picoseconds. - Weight::from_parts(9_810_000, 0) + // Minimum execution time: 10_500_000 picoseconds. + Weight::from_parts(10_740_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -385,8 +387,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_540_000 picoseconds. - Weight::from_parts(9_810_000, 0) + // Minimum execution time: 10_510_000 picoseconds. + Weight::from_parts(10_730_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -396,8 +398,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_320_000 picoseconds. - Weight::from_parts(9_661_000, 0) + // Minimum execution time: 10_320_000 picoseconds. + Weight::from_parts(10_750_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -408,11 +410,11 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_830_000 picoseconds. - Weight::from_parts(3_134_089, 0) + // Minimum execution time: 3_410_000 picoseconds. + Weight::from_parts(3_714_449, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 14 - .saturating_add(Weight::from_parts(10_668, 0).saturating_mul(v.into())) + // Standard Error: 15 + .saturating_add(Weight::from_parts(10_660, 0).saturating_mul(v.into())) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Staking::Ledger` (r:10628 w:10628) @@ -424,13 +426,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `i` is `[0, 5314]`. fn deprecate_controller_batch(i: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1826 + i * (225 ±0)` + // Measured: `1860 + i * (225 ±0)` // Estimated: `990 + i * (7132 ±0)` - // Minimum execution time: 5_300_000 picoseconds. - Weight::from_parts(5_470_000, 0) + // Minimum execution time: 6_570_000 picoseconds. + Weight::from_parts(6_690_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 87_327 - .saturating_add(Weight::from_parts(33_972_161, 0).saturating_mul(i.into())) + // Standard Error: 104_490 + .saturating_add(Weight::from_parts(40_372_680, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(i.into()))) .saturating_add(Weight::from_parts(0, 7132).saturating_mul(i.into())) @@ -468,13 +470,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 100]`. fn force_unstake(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2192 + s * (4 ±0)` + // Measured: `2226 + s * (4 ±0)` // Estimated: `6248 + s * (4 ±0)` - // Minimum execution time: 98_741_000 picoseconds. - Weight::from_parts(102_884_972, 0) + // Minimum execution time: 125_850_000 picoseconds. + Weight::from_parts(130_685_758, 0) .saturating_add(Weight::from_parts(0, 6248)) - // Standard Error: 2_173 - .saturating_add(Weight::from_parts(1_449_369, 0).saturating_mul(s.into())) + // Standard Error: 2_200 + .saturating_add(Weight::from_parts(1_567_917, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(13)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) @@ -485,13 +487,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 1000]`. fn cancel_deferred_slash(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `66605` - // Estimated: `70070` - // Minimum execution time: 134_011_000 picoseconds. - Weight::from_parts(1_016_842_603, 0) - .saturating_add(Weight::from_parts(0, 70070)) - // Standard Error: 64_290 - .saturating_add(Weight::from_parts(5_283_365, 0).saturating_mul(s.into())) + // Measured: `66639` + // Estimated: `70104` + // Minimum execution time: 141_530_000 picoseconds. + Weight::from_parts(1_256_471_615, 0) + .saturating_add(Weight::from_parts(0, 70104)) + // Standard Error: 80_982 + .saturating_add(Weight::from_parts(6_841_126, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -528,13 +530,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 512]`. fn payout_stakers_alive_staked(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `58318 + n * (388 ±0)` - // Estimated: `53178 + n * (3774 ±2)` - // Minimum execution time: 207_711_000 picoseconds. - Weight::from_parts(162_743_847, 0) - .saturating_add(Weight::from_parts(0, 53178)) - // Standard Error: 15_722 - .saturating_add(Weight::from_parts(61_210_001, 0).saturating_mul(n.into())) + // Measured: `58352 + n * (388 ±0)` + // Estimated: `53212 + n * (3774 ±2)` + // Minimum execution time: 257_631_000 picoseconds. + Weight::from_parts(357_936_091, 0) + .saturating_add(Weight::from_parts(0, 53212)) + // Standard Error: 18_342 + .saturating_add(Weight::from_parts(71_135_637, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(15)) .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(4)) @@ -558,13 +560,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `l` is `[1, 32]`. fn rebond(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1987 + l * (5 ±0)` + // Measured: `2021 + l * (5 ±0)` // Estimated: `8877` - // Minimum execution time: 98_701_000 picoseconds. - Weight::from_parts(100_321_831, 0) + // Minimum execution time: 122_831_000 picoseconds. + Weight::from_parts(124_532_987, 0) .saturating_add(Weight::from_parts(0, 8877)) - // Standard Error: 1_839 - .saturating_add(Weight::from_parts(82_481, 0).saturating_mul(l.into())) + // Standard Error: 1_979 + .saturating_add(Weight::from_parts(96_651, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -599,13 +601,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 100]`. fn reap_stash(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2192 + s * (4 ±0)` + // Measured: `2226 + s * (4 ±0)` // Estimated: `6248 + s * (4 ±0)` - // Minimum execution time: 110_991_000 picoseconds. - Weight::from_parts(110_993_443, 0) + // Minimum execution time: 140_350_000 picoseconds. + Weight::from_parts(140_593_247, 0) .saturating_add(Weight::from_parts(0, 6248)) - // Standard Error: 1_987 - .saturating_add(Weight::from_parts(1_434_957, 0).saturating_mul(s.into())) + // Standard Error: 2_080 + .saturating_add(Weight::from_parts(1_565_581, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(12)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) @@ -650,14 +652,14 @@ impl pallet_staking::WeightInfo for WeightInfo { fn new_era(v: u32, n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + n * (716 ±0) + v * (3594 ±0)` - // Estimated: `456136 + n * (3566 ±4) + v * (3566 ±40)` - // Minimum execution time: 629_866_000 picoseconds. - Weight::from_parts(633_915_000, 0) + // Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)` + // Minimum execution time: 799_654_000 picoseconds. + Weight::from_parts(806_494_000, 0) .saturating_add(Weight::from_parts(0, 456136)) - // Standard Error: 2_219_322 - .saturating_add(Weight::from_parts(72_530_560, 0).saturating_mul(v.into())) - // Standard Error: 221_143 - .saturating_add(Weight::from_parts(22_205_633, 0).saturating_mul(n.into())) + // Standard Error: 2_321_486 + .saturating_add(Weight::from_parts(76_400_434, 0).saturating_mul(v.into())) + // Standard Error: 231_323 + .saturating_add(Weight::from_parts(26_703_830, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(184)) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) @@ -686,15 +688,15 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `n` is `[500, 1000]`. fn get_npos_voters(v: u32, n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3148 + n * (907 ±0) + v * (391 ±0)` + // Measured: `3182 + n * (907 ±0) + v * (391 ±0)` // Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)` - // Minimum execution time: 42_813_540_000 picoseconds. - Weight::from_parts(42_993_922_000, 0) + // Minimum execution time: 52_450_459_000 picoseconds. + Weight::from_parts(52_682_909_000, 0) .saturating_add(Weight::from_parts(0, 456136)) - // Standard Error: 477_842 - .saturating_add(Weight::from_parts(6_168_661, 0).saturating_mul(v.into())) - // Standard Error: 477_842 - .saturating_add(Weight::from_parts(4_664_802, 0).saturating_mul(n.into())) + // Standard Error: 610_424 + .saturating_add(Weight::from_parts(8_760_144, 0).saturating_mul(v.into())) + // Standard Error: 610_424 + .saturating_add(Weight::from_parts(5_609_370, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(179)) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) @@ -709,13 +711,13 @@ impl pallet_staking::WeightInfo for WeightInfo { /// The range of component `v` is `[500, 1000]`. fn get_npos_targets(v: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `912 + v * (50 ±0)` + // Measured: `946 + v * (50 ±0)` // Estimated: `3510 + v * (2520 ±0)` - // Minimum execution time: 3_128_687_000 picoseconds. - Weight::from_parts(3_149_647_000, 0) + // Minimum execution time: 3_655_240_000 picoseconds. + Weight::from_parts(188_278_592, 0) .saturating_add(Weight::from_parts(0, 3510)) - // Standard Error: 39_180 - .saturating_add(Weight::from_parts(2_313_873, 0).saturating_mul(v.into())) + // Standard Error: 8_505 + .saturating_add(Weight::from_parts(7_016_504, 0).saturating_mul(v.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) .saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into())) @@ -738,8 +740,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_830_000 picoseconds. - Weight::from_parts(5_030_000, 0) + // Minimum execution time: 5_760_000 picoseconds. + Weight::from_parts(5_960_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -761,8 +763,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_380_000 picoseconds. - Weight::from_parts(4_550_000, 0) + // Minimum execution time: 5_260_000 picoseconds. + Weight::from_parts(5_400_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -790,10 +792,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn chill_other() -> Weight { // Proof Size summary in bytes: - // Measured: `1902` + // Measured: `1936` // Estimated: `6248` - // Minimum execution time: 80_490_000 picoseconds. - Weight::from_parts(81_161_000, 0) + // Minimum execution time: 104_191_000 picoseconds. + Weight::from_parts(104_930_000, 0) .saturating_add(Weight::from_parts(0, 6248)) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(6)) @@ -804,10 +806,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) fn force_apply_min_commission() -> Weight { // Proof Size summary in bytes: - // Measured: `624` + // Measured: `658` // Estimated: `3510` - // Minimum execution time: 13_840_000 picoseconds. - Weight::from_parts(14_340_000, 0) + // Minimum execution time: 18_750_000 picoseconds. + Weight::from_parts(19_170_000, 0) .saturating_add(Weight::from_parts(0, 3510)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -818,8 +820,8 @@ impl pallet_staking::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_550_000 picoseconds. - Weight::from_parts(2_650_000, 0) + // Minimum execution time: 3_200_000 picoseconds. + Weight::from_parts(3_340_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -837,10 +839,10 @@ impl pallet_staking::WeightInfo for WeightInfo { /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn restore_ledger() -> Weight { // Proof Size summary in bytes: - // Measured: `1035` + // Measured: `1069` // Estimated: `4764` - // Minimum execution time: 54_480_000 picoseconds. - Weight::from_parts(55_330_000, 0) + // Minimum execution time: 67_961_000 picoseconds. + Weight::from_parts(68_691_000, 0) .saturating_add(Weight::from_parts(0, 4764)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/relay/paseo/src/weights/pallet_timestamp.rs b/relay/paseo/src/weights/pallet_timestamp.rs index 225cf040b..f33eb47f4 100644 --- a/relay/paseo/src/weights/pallet_timestamp.rs +++ b/relay/paseo/src/weights/pallet_timestamp.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `173` // Estimated: `1493` - // Minimum execution time: 7_700_000 picoseconds. - Weight::from_parts(8_050_000, 0) + // Minimum execution time: 11_190_000 picoseconds. + Weight::from_parts(11_460_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `94` // Estimated: `0` - // Minimum execution time: 3_971_000 picoseconds. - Weight::from_parts(4_160_000, 0) + // Minimum execution time: 5_820_000 picoseconds. + Weight::from_parts(5_960_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/relay/paseo/src/weights/pallet_treasury.rs b/relay/paseo/src/weights/pallet_treasury.rs index 9ccd043bc..f6f4e12eb 100644 --- a/relay/paseo/src/weights/pallet_treasury.rs +++ b/relay/paseo/src/weights/pallet_treasury.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_treasury` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,8 +57,8 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `76` // Estimated: `1887` - // Minimum execution time: 12_520_000 picoseconds. - Weight::from_parts(12_910_000, 0) + // Minimum execution time: 15_790_000 picoseconds. + Weight::from_parts(16_180_000, 0) .saturating_add(Weight::from_parts(0, 1887)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) @@ -69,8 +69,8 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `161` // Estimated: `1887` - // Minimum execution time: 6_870_000 picoseconds. - Weight::from_parts(7_210_000, 0) + // Minimum execution time: 8_710_000 picoseconds. + Weight::from_parts(9_090_000, 0) .saturating_add(Weight::from_parts(0, 1887)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -90,11 +90,11 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `70 + p * (157 ±0)` // Estimated: `1887 + p * (2603 ±0)` - // Minimum execution time: 34_150_000 picoseconds. - Weight::from_parts(30_791_832, 0) + // Minimum execution time: 47_810_000 picoseconds. + Weight::from_parts(46_182_706, 0) .saturating_add(Weight::from_parts(0, 1887)) - // Standard Error: 10_350 - .saturating_add(Weight::from_parts(23_389_161, 0).saturating_mul(p.into())) + // Standard Error: 11_908 + .saturating_add(Weight::from_parts(26_856_806, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes(3)) @@ -111,8 +111,8 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `148` // Estimated: `4703` - // Minimum execution time: 21_711_000 picoseconds. - Weight::from_parts(22_110_000, 0) + // Minimum execution time: 26_610_000 picoseconds. + Weight::from_parts(26_860_000, 0) .saturating_add(Weight::from_parts(0, 4703)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -135,8 +135,8 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `326` // Estimated: `5318` - // Minimum execution time: 51_281_000 picoseconds. - Weight::from_parts(52_120_000, 0) + // Minimum execution time: 60_891_000 picoseconds. + Weight::from_parts(61_700_000, 0) .saturating_add(Weight::from_parts(0, 5318)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -149,8 +149,8 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `240` // Estimated: `5318` - // Minimum execution time: 25_011_000 picoseconds. - Weight::from_parts(25_420_000, 0) + // Minimum execution time: 29_440_000 picoseconds. + Weight::from_parts(29_720_000, 0) .saturating_add(Weight::from_parts(0, 5318)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -161,8 +161,8 @@ impl pallet_treasury::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `212` // Estimated: `5318` - // Minimum execution time: 14_960_000 picoseconds. - Weight::from_parts(15_320_000, 0) + // Minimum execution time: 17_890_000 picoseconds. + Weight::from_parts(18_230_000, 0) .saturating_add(Weight::from_parts(0, 5318)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/pallet_utility.rs b/relay/paseo/src/weights/pallet_utility.rs index 771474965..ac53d8ae8 100644 --- a/relay/paseo/src/weights/pallet_utility.rs +++ b/relay/paseo/src/weights/pallet_utility.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,18 +52,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_370_000 picoseconds. - Weight::from_parts(28_549_237, 0) + // Minimum execution time: 6_620_000 picoseconds. + Weight::from_parts(8_813_305, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3_483 - .saturating_add(Weight::from_parts(3_707_231, 0).saturating_mul(c.into())) + // Standard Error: 652 + .saturating_add(Weight::from_parts(3_967_749, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_820_000 picoseconds. - Weight::from_parts(5_000_000, 0) + // Minimum execution time: 5_600_000 picoseconds. + Weight::from_parts(5_750_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -71,18 +71,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_250_000 picoseconds. - Weight::from_parts(9_139_833, 0) + // Minimum execution time: 6_480_000 picoseconds. + Weight::from_parts(10_360_324, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 667 - .saturating_add(Weight::from_parts(3_934_924, 0).saturating_mul(c.into())) + // Standard Error: 691 + .saturating_add(Weight::from_parts(4_227_617, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_340_000 picoseconds. - Weight::from_parts(7_550_000, 0) + // Minimum execution time: 8_600_000 picoseconds. + Weight::from_parts(8_830_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -90,10 +90,10 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_340_000 picoseconds. - Weight::from_parts(7_977_875, 0) + // Minimum execution time: 6_460_000 picoseconds. + Weight::from_parts(8_289_669, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 666 - .saturating_add(Weight::from_parts(3_704_228, 0).saturating_mul(c.into())) + // Standard Error: 621 + .saturating_add(Weight::from_parts(3_964_711, 0).saturating_mul(c.into())) } } diff --git a/relay/paseo/src/weights/pallet_vesting.rs b/relay/paseo/src/weights/pallet_vesting.rs index 0296b7c49..5aaf2f86e 100644 --- a/relay/paseo/src/weights/pallet_vesting.rs +++ b/relay/paseo/src/weights/pallet_vesting.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_vesting` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,15 +57,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_locked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `348 + l * (25 ±0) + s * (36 ±0)` + // Measured: `382 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 37_240_000 picoseconds. - Weight::from_parts(36_732_830, 0) + // Minimum execution time: 46_180_000 picoseconds. + Weight::from_parts(45_597_308, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 450 - .saturating_add(Weight::from_parts(26_152, 0).saturating_mul(l.into())) - // Standard Error: 801 - .saturating_add(Weight::from_parts(63_062, 0).saturating_mul(s.into())) + // Standard Error: 582 + .saturating_add(Weight::from_parts(26_737, 0).saturating_mul(l.into())) + // Standard Error: 1_035 + .saturating_add(Weight::from_parts(74_956, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -79,15 +79,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_unlocked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `348 + l * (25 ±0) + s * (36 ±0)` + // Measured: `382 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 39_141_000 picoseconds. - Weight::from_parts(38_827_676, 0) + // Minimum execution time: 48_371_000 picoseconds. + Weight::from_parts(47_877_397, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 504 - .saturating_add(Weight::from_parts(27_819, 0).saturating_mul(l.into())) - // Standard Error: 897 - .saturating_add(Weight::from_parts(59_665, 0).saturating_mul(s.into())) + // Standard Error: 505 + .saturating_add(Weight::from_parts(29_922, 0).saturating_mul(l.into())) + // Standard Error: 898 + .saturating_add(Weight::from_parts(60_584, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -103,15 +103,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_other_locked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `451 + l * (25 ±0) + s * (36 ±0)` + // Measured: `485 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 38_941_000 picoseconds. - Weight::from_parts(37_772_526, 0) + // Minimum execution time: 48_490_000 picoseconds. + Weight::from_parts(47_711_326, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 504 - .saturating_add(Weight::from_parts(39_185, 0).saturating_mul(l.into())) - // Standard Error: 898 - .saturating_add(Weight::from_parts(82_405, 0).saturating_mul(s.into())) + // Standard Error: 584 + .saturating_add(Weight::from_parts(36_151, 0).saturating_mul(l.into())) + // Standard Error: 1_040 + .saturating_add(Weight::from_parts(80_238, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -127,15 +127,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[1, 28]`. fn vest_other_unlocked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `451 + l * (25 ±0) + s * (36 ±0)` + // Measured: `485 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 41_420_000 picoseconds. - Weight::from_parts(40_557_587, 0) + // Minimum execution time: 51_320_000 picoseconds. + Weight::from_parts(50_684_725, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 485 - .saturating_add(Weight::from_parts(34_226, 0).saturating_mul(l.into())) - // Standard Error: 864 - .saturating_add(Weight::from_parts(65_736, 0).saturating_mul(s.into())) + // Standard Error: 522 + .saturating_add(Weight::from_parts(33_066, 0).saturating_mul(l.into())) + // Standard Error: 929 + .saturating_add(Weight::from_parts(62_466, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -151,15 +151,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 27]`. fn vested_transfer(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `522 + l * (25 ±0) + s * (36 ±0)` + // Measured: `556 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 77_910_000 picoseconds. - Weight::from_parts(78_076_454, 0) + // Minimum execution time: 91_711_000 picoseconds. + Weight::from_parts(91_866_648, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 716 - .saturating_add(Weight::from_parts(33_401, 0).saturating_mul(l.into())) - // Standard Error: 1_275 - .saturating_add(Weight::from_parts(78_584, 0).saturating_mul(s.into())) + // Standard Error: 788 + .saturating_add(Weight::from_parts(43_284, 0).saturating_mul(l.into())) + // Standard Error: 1_402 + .saturating_add(Weight::from_parts(91_745, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -175,15 +175,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 27]`. fn force_vested_transfer(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `625 + l * (25 ±0) + s * (36 ±0)` + // Measured: `659 + l * (25 ±0) + s * (36 ±0)` // Estimated: `6196` - // Minimum execution time: 79_810_000 picoseconds. - Weight::from_parts(79_822_889, 0) + // Minimum execution time: 94_271_000 picoseconds. + Weight::from_parts(94_407_982, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 766 - .saturating_add(Weight::from_parts(41_466, 0).saturating_mul(l.into())) - // Standard Error: 1_363 - .saturating_add(Weight::from_parts(80_856, 0).saturating_mul(s.into())) + // Standard Error: 855 + .saturating_add(Weight::from_parts(43_398, 0).saturating_mul(l.into())) + // Standard Error: 1_521 + .saturating_add(Weight::from_parts(89_075, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -199,15 +199,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[2, 28]`. fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `449 + l * (25 ±0) + s * (36 ±0)` + // Measured: `483 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 39_860_000 picoseconds. - Weight::from_parts(38_884_992, 0) + // Minimum execution time: 49_890_000 picoseconds. + Weight::from_parts(48_702_133, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 472 - .saturating_add(Weight::from_parts(35_724, 0).saturating_mul(l.into())) - // Standard Error: 872 - .saturating_add(Weight::from_parts(71_723, 0).saturating_mul(s.into())) + // Standard Error: 529 + .saturating_add(Weight::from_parts(37_202, 0).saturating_mul(l.into())) + // Standard Error: 977 + .saturating_add(Weight::from_parts(73_774, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -223,15 +223,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[2, 28]`. fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `449 + l * (25 ±0) + s * (36 ±0)` + // Measured: `483 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 42_760_000 picoseconds. - Weight::from_parts(41_874_913, 0) + // Minimum execution time: 52_490_000 picoseconds. + Weight::from_parts(51_464_318, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 506 - .saturating_add(Weight::from_parts(34_340, 0).saturating_mul(l.into())) - // Standard Error: 935 - .saturating_add(Weight::from_parts(69_691, 0).saturating_mul(s.into())) + // Standard Error: 582 + .saturating_add(Weight::from_parts(43_746, 0).saturating_mul(l.into())) + // Standard Error: 1_074 + .saturating_add(Weight::from_parts(77_678, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -247,15 +247,15 @@ impl pallet_vesting::WeightInfo for WeightInfo { /// The range of component `s` is `[2, 28]`. fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `522 + l * (25 ±0) + s * (36 ±0)` + // Measured: `556 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764` - // Minimum execution time: 44_500_000 picoseconds. - Weight::from_parts(43_504_657, 0) + // Minimum execution time: 54_970_000 picoseconds. + Weight::from_parts(53_660_210, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 573 - .saturating_add(Weight::from_parts(40_700, 0).saturating_mul(l.into())) - // Standard Error: 1_059 - .saturating_add(Weight::from_parts(76_648, 0).saturating_mul(s.into())) + // Standard Error: 549 + .saturating_add(Weight::from_parts(43_923, 0).saturating_mul(l.into())) + // Standard Error: 1_014 + .saturating_add(Weight::from_parts(79_557, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/relay/paseo/src/weights/pallet_whitelist.rs b/relay/paseo/src/weights/pallet_whitelist.rs index 611df500a..e872624e8 100644 --- a/relay/paseo/src/weights/pallet_whitelist.rs +++ b/relay/paseo/src/weights/pallet_whitelist.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_whitelist` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,8 +57,8 @@ impl pallet_whitelist::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `118` // Estimated: `3556` - // Minimum execution time: 19_700_000 picoseconds. - Weight::from_parts(20_170_000, 0) + // Minimum execution time: 23_450_000 picoseconds. + Weight::from_parts(24_430_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -73,8 +73,8 @@ impl pallet_whitelist::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `247` // Estimated: `3556` - // Minimum execution time: 18_890_000 picoseconds. - Weight::from_parts(19_351_000, 0) + // Minimum execution time: 24_301_000 picoseconds. + Weight::from_parts(24_880_000, 0) .saturating_add(Weight::from_parts(0, 3556)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -92,11 +92,11 @@ impl pallet_whitelist::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `323 + n * (1 ±0)` // Estimated: `3787 + n * (1 ±0)` - // Minimum execution time: 31_320_000 picoseconds. - Weight::from_parts(31_561_000, 0) + // Minimum execution time: 38_441_000 picoseconds. + Weight::from_parts(38_680_000, 0) .saturating_add(Weight::from_parts(0, 3787)) - // Standard Error: 2 - .saturating_add(Weight::from_parts(1_147, 0).saturating_mul(n.into())) + // Standard Error: 7 + .saturating_add(Weight::from_parts(1_450, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into())) @@ -112,11 +112,11 @@ impl pallet_whitelist::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `247` // Estimated: `3556` - // Minimum execution time: 23_100_000 picoseconds. - Weight::from_parts(23_541_355, 0) + // Minimum execution time: 29_360_000 picoseconds. + Weight::from_parts(29_764_065, 0) .saturating_add(Weight::from_parts(0, 3556)) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_468, 0).saturating_mul(n.into())) + .saturating_add(Weight::from_parts(1_478, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/relay/paseo/src/weights/pallet_xcm.rs b/relay/paseo/src/weights/pallet_xcm.rs index 5df475d8f..7245b5e50 100644 --- a/relay/paseo/src/weights/pallet_xcm.rs +++ b/relay/paseo/src/weights/pallet_xcm.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -59,8 +59,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3579` - // Minimum execution time: 31_390_000 picoseconds. - Weight::from_parts(31_960_000, 0) + // Minimum execution time: 38_510_000 picoseconds. + Weight::from_parts(39_181_000, 0) .saturating_add(Weight::from_parts(0, 3579)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,8 +79,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3593` - // Minimum execution time: 137_131_000 picoseconds. - Weight::from_parts(138_191_000, 0) + // Minimum execution time: 155_661_000 picoseconds. + Weight::from_parts(157_031_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -99,8 +99,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `166` // Estimated: `3631` - // Minimum execution time: 134_541_000 picoseconds. - Weight::from_parts(135_881_000, 0) + // Minimum execution time: 152_531_000 picoseconds. + Weight::from_parts(153_861_000, 0) .saturating_add(Weight::from_parts(0, 3631)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -119,8 +119,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3593` - // Minimum execution time: 139_291_000 picoseconds. - Weight::from_parts(140_281_000, 0) + // Minimum execution time: 157_281_000 picoseconds. + Weight::from_parts(158_461_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -129,8 +129,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_870_000 picoseconds. - Weight::from_parts(12_180_000, 0) + // Minimum execution time: 14_580_000 picoseconds. + Weight::from_parts(14_800_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `XcmPallet::SupportedVersion` (r:0 w:1) @@ -139,8 +139,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_700_000 picoseconds. - Weight::from_parts(9_010_000, 0) + // Minimum execution time: 10_500_000 picoseconds. + Weight::from_parts(10_760_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -148,8 +148,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_600_000 picoseconds. - Weight::from_parts(2_740_000, 0) + // Minimum execution time: 3_020_000 picoseconds. + Weight::from_parts(3_130_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `XcmPallet::VersionNotifiers` (r:1 w:1) @@ -170,8 +170,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3579` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(39_070_000, 0) + // Minimum execution time: 46_350_000 picoseconds. + Weight::from_parts(46_680_000, 0) .saturating_add(Weight::from_parts(0, 3579)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -192,8 +192,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `294` // Estimated: `3759` - // Minimum execution time: 46_270_000 picoseconds. - Weight::from_parts(47_031_000, 0) + // Minimum execution time: 56_481_000 picoseconds. + Weight::from_parts(57_360_000, 0) .saturating_add(Weight::from_parts(0, 3759)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -204,8 +204,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_570_000 picoseconds. - Weight::from_parts(2_700_000, 0) + // Minimum execution time: 2_950_000 picoseconds. + Weight::from_parts(3_140_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -215,8 +215,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `22` // Estimated: `13387` - // Minimum execution time: 21_110_000 picoseconds. - Weight::from_parts(21_800_000, 0) + // Minimum execution time: 23_660_000 picoseconds. + Weight::from_parts(24_090_000, 0) .saturating_add(Weight::from_parts(0, 13387)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -227,8 +227,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `26` // Estimated: `13391` - // Minimum execution time: 21_140_000 picoseconds. - Weight::from_parts(21_660_000, 0) + // Minimum execution time: 23_501_000 picoseconds. + Weight::from_parts(23_810_000, 0) .saturating_add(Weight::from_parts(0, 13391)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -239,8 +239,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `40` // Estimated: `15880` - // Minimum execution time: 23_790_000 picoseconds. - Weight::from_parts(24_330_000, 0) + // Minimum execution time: 26_990_000 picoseconds. + Weight::from_parts(27_410_000, 0) .saturating_add(Weight::from_parts(0, 15880)) .saturating_add(T::DbWeight::get().reads(6)) } @@ -258,8 +258,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `6090` - // Minimum execution time: 37_560_000 picoseconds. - Weight::from_parts(38_400_000, 0) + // Minimum execution time: 45_130_000 picoseconds. + Weight::from_parts(45_960_000, 0) .saturating_add(Weight::from_parts(0, 6090)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -270,8 +270,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `36` // Estimated: `10926` - // Minimum execution time: 15_630_000 picoseconds. - Weight::from_parts(16_160_000, 0) + // Minimum execution time: 17_310_000 picoseconds. + Weight::from_parts(17_630_000, 0) .saturating_add(Weight::from_parts(0, 10926)) .saturating_add(T::DbWeight::get().reads(4)) } @@ -281,8 +281,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `33` // Estimated: `13398` - // Minimum execution time: 21_390_000 picoseconds. - Weight::from_parts(21_910_000, 0) + // Minimum execution time: 23_960_000 picoseconds. + Weight::from_parts(24_390_000, 0) .saturating_add(Weight::from_parts(0, 13398)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -301,8 +301,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `13515` - // Minimum execution time: 49_471_000 picoseconds. - Weight::from_parts(50_510_000, 0) + // Minimum execution time: 58_371_000 picoseconds. + Weight::from_parts(58_820_000, 0) .saturating_add(Weight::from_parts(0, 13515)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(4)) @@ -315,8 +315,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 2_630_000 picoseconds. - Weight::from_parts(2_710_000, 0) + // Minimum execution time: 3_430_000 picoseconds. + Weight::from_parts(3_570_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -327,8 +327,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `7576` // Estimated: `11041` - // Minimum execution time: 28_030_000 picoseconds. - Weight::from_parts(28_640_000, 0) + // Minimum execution time: 31_470_000 picoseconds. + Weight::from_parts(31_800_000, 0) .saturating_add(Weight::from_parts(0, 11041)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -339,8 +339,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `23` // Estimated: `3488` - // Minimum execution time: 43_870_000 picoseconds. - Weight::from_parts(44_561_000, 0) + // Minimum execution time: 50_870_000 picoseconds. + Weight::from_parts(51_150_000, 0) .saturating_add(Weight::from_parts(0, 3488)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/polkadot_runtime_common_auctions.rs b/relay/paseo/src/weights/polkadot_runtime_common_auctions.rs index ff6a4c74c..68954e451 100644 --- a/relay/paseo/src/weights/polkadot_runtime_common_auctions.rs +++ b/relay/paseo/src/weights/polkadot_runtime_common_auctions.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `polkadot_runtime_common::auctions` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl polkadot_runtime_common::auctions::WeightInfo for // Proof Size summary in bytes: // Measured: `4` // Estimated: `1493` - // Minimum execution time: 9_110_000 picoseconds. - Weight::from_parts(9_250_000, 0) + // Minimum execution time: 11_280_000 picoseconds. + Weight::from_parts(11_590_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,8 +79,8 @@ impl polkadot_runtime_common::auctions::WeightInfo for // Proof Size summary in bytes: // Measured: `695` // Estimated: `6060` - // Minimum execution time: 106_370_000 picoseconds. - Weight::from_parts(119_171_000, 0) + // Minimum execution time: 126_610_000 picoseconds. + Weight::from_parts(143_441_000, 0) .saturating_add(Weight::from_parts(0, 6060)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(4)) @@ -111,8 +111,8 @@ impl polkadot_runtime_common::auctions::WeightInfo for // Proof Size summary in bytes: // Measured: `6946955` // Estimated: `15822990` - // Minimum execution time: 8_514_701_000 picoseconds. - Weight::from_parts(8_646_223_000, 0) + // Minimum execution time: 11_302_371_000 picoseconds. + Weight::from_parts(11_444_403_000, 0) .saturating_add(Weight::from_parts(0, 15822990)) .saturating_add(T::DbWeight::get().reads(3687)) .saturating_add(T::DbWeight::get().writes(3682)) @@ -129,8 +129,8 @@ impl polkadot_runtime_common::auctions::WeightInfo for // Proof Size summary in bytes: // Measured: `177732` // Estimated: `15822990` - // Minimum execution time: 6_660_405_000 picoseconds. - Weight::from_parts(6_896_227_000, 0) + // Minimum execution time: 9_159_009_000 picoseconds. + Weight::from_parts(9_440_042_000, 0) .saturating_add(Weight::from_parts(0, 15822990)) .saturating_add(T::DbWeight::get().reads(3673)) .saturating_add(T::DbWeight::get().writes(3673)) diff --git a/relay/paseo/src/weights/polkadot_runtime_common_claims.rs b/relay/paseo/src/weights/polkadot_runtime_common_claims.rs index f82ddfd17..8c849e36e 100644 --- a/relay/paseo/src/weights/polkadot_runtime_common_claims.rs +++ b/relay/paseo/src/weights/polkadot_runtime_common_claims.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `polkadot_runtime_common::claims` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -65,10 +65,10 @@ impl polkadot_runtime_common::claims::WeightInfo for We /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn claim() -> Weight { // Proof Size summary in bytes: - // Measured: `578` + // Measured: `612` // Estimated: `4764` - // Minimum execution time: 179_932_000 picoseconds. - Weight::from_parts(182_181_000, 0) + // Minimum execution time: 191_971_000 picoseconds. + Weight::from_parts(196_681_000, 0) .saturating_add(Weight::from_parts(0, 4764)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) @@ -85,8 +85,8 @@ impl polkadot_runtime_common::claims::WeightInfo for We // Proof Size summary in bytes: // Measured: `182` // Estimated: `1667` - // Minimum execution time: 11_240_000 picoseconds. - Weight::from_parts(11_680_000, 0) + // Minimum execution time: 14_371_000 picoseconds. + Weight::from_parts(14_751_000, 0) .saturating_add(Weight::from_parts(0, 1667)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(4)) @@ -109,10 +109,10 @@ impl polkadot_runtime_common::claims::WeightInfo for We /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn claim_attest() -> Weight { // Proof Size summary in bytes: - // Measured: `578` + // Measured: `612` // Estimated: `4764` - // Minimum execution time: 183_041_000 picoseconds. - Weight::from_parts(189_162_000, 0) + // Minimum execution time: 197_341_000 picoseconds. + Weight::from_parts(202_321_000, 0) .saturating_add(Weight::from_parts(0, 4764)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) @@ -137,10 +137,10 @@ impl polkadot_runtime_common::claims::WeightInfo for We /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn attest() -> Weight { // Proof Size summary in bytes: - // Measured: `652` + // Measured: `686` // Estimated: `4764` - // Minimum execution time: 73_091_000 picoseconds. - Weight::from_parts(77_921_000, 0) + // Minimum execution time: 87_791_000 picoseconds. + Weight::from_parts(96_440_000, 0) .saturating_add(Weight::from_parts(0, 4764)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(7)) @@ -157,8 +157,8 @@ impl polkadot_runtime_common::claims::WeightInfo for We // Proof Size summary in bytes: // Measured: `406` // Estimated: `3871` - // Minimum execution time: 28_050_000 picoseconds. - Weight::from_parts(29_821_000, 0) + // Minimum execution time: 35_420_000 picoseconds. + Weight::from_parts(37_110_000, 0) .saturating_add(Weight::from_parts(0, 3871)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(7)) diff --git a/relay/paseo/src/weights/polkadot_runtime_common_crowdloan.rs b/relay/paseo/src/weights/polkadot_runtime_common_crowdloan.rs index 4130eef74..83d2bbdaa 100644 --- a/relay/paseo/src/weights/polkadot_runtime_common_crowdloan.rs +++ b/relay/paseo/src/weights/polkadot_runtime_common_crowdloan.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `polkadot_runtime_common::crowdloan` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -61,8 +61,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `439` // Estimated: `3904` - // Minimum execution time: 84_181_000 picoseconds. - Weight::from_parts(87_341_000, 0) + // Minimum execution time: 106_231_000 picoseconds. + Weight::from_parts(109_361_000, 0) .saturating_add(Weight::from_parts(0, 3904)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -85,8 +85,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `498` // Estimated: `3963` - // Minimum execution time: 190_932_000 picoseconds. - Weight::from_parts(196_992_000, 0) + // Minimum execution time: 221_841_000 picoseconds. + Weight::from_parts(225_901_000, 0) .saturating_add(Weight::from_parts(0, 3963)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) @@ -101,8 +101,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `688` // Estimated: `6196` - // Minimum execution time: 120_691_000 picoseconds. - Weight::from_parts(122_331_000, 0) + // Minimum execution time: 147_051_000 picoseconds. + Weight::from_parts(149_641_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -114,11 +114,11 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `126 + k * (189 ±0)` // Estimated: `139 + k * (189 ±0)` - // Minimum execution time: 115_921_000 picoseconds. - Weight::from_parts(117_351_000, 0) + // Minimum execution time: 136_151_000 picoseconds. + Weight::from_parts(137_411_000, 0) .saturating_add(Weight::from_parts(0, 139)) - // Standard Error: 23_559 - .saturating_add(Weight::from_parts(47_092_682, 0).saturating_mul(k.into())) + // Standard Error: 24_177 + .saturating_add(Weight::from_parts(52_331_315, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -133,8 +133,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `515` // Estimated: `6196` - // Minimum execution time: 77_340_000 picoseconds. - Weight::from_parts(80_130_000, 0) + // Minimum execution time: 85_331_000 picoseconds. + Weight::from_parts(88_880_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -145,8 +145,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `235` // Estimated: `3700` - // Minimum execution time: 35_510_000 picoseconds. - Weight::from_parts(37_660_000, 0) + // Minimum execution time: 38_711_000 picoseconds. + Weight::from_parts(40_920_000, 0) .saturating_add(Weight::from_parts(0, 3700)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -159,8 +159,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `413` // Estimated: `3878` - // Minimum execution time: 58_500_000 picoseconds. - Weight::from_parts(60_460_000, 0) + // Minimum execution time: 64_920_000 picoseconds. + Weight::from_parts(68_920_000, 0) .saturating_add(Weight::from_parts(0, 3878)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -173,8 +173,8 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `239` // Estimated: `3704` - // Minimum execution time: 40_460_000 picoseconds. - Weight::from_parts(42_380_000, 0) + // Minimum execution time: 43_300_000 picoseconds. + Weight::from_parts(47_261_000, 0) .saturating_add(Weight::from_parts(0, 3704)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -204,11 +204,11 @@ impl polkadot_runtime_common::crowdloan::WeightInfo for // Proof Size summary in bytes: // Measured: `164 + n * (356 ±0)` // Estimated: `5385 + n * (2832 ±0)` - // Minimum execution time: 159_841_000 picoseconds. - Weight::from_parts(25_730_806, 0) + // Minimum execution time: 179_601_000 picoseconds. + Weight::from_parts(35_364_140, 0) .saturating_add(Weight::from_parts(0, 5385)) - // Standard Error: 37_783 - .saturating_add(Weight::from_parts(64_858_488, 0).saturating_mul(n.into())) + // Standard Error: 43_116 + .saturating_add(Weight::from_parts(73_324_030, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/relay/paseo/src/weights/polkadot_runtime_common_paras_registrar.rs b/relay/paseo/src/weights/polkadot_runtime_common_paras_registrar.rs index bb4504c67..25af29240 100644 --- a/relay/paseo/src/weights/polkadot_runtime_common_paras_registrar.rs +++ b/relay/paseo/src/weights/polkadot_runtime_common_paras_registrar.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `polkadot_runtime_common::paras_registrar` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,8 +57,8 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `97` // Estimated: `3562` - // Minimum execution time: 30_350_000 picoseconds. - Weight::from_parts(31_190_000, 0) + // Minimum execution time: 36_930_000 picoseconds. + Weight::from_parts(37_591_000, 0) .saturating_add(Weight::from_parts(0, 3562)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -85,8 +85,8 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `390` // Estimated: `3855` - // Minimum execution time: 7_453_590_000 picoseconds. - Weight::from_parts(7_520_921_000, 0) + // Minimum execution time: 7_362_969_000 picoseconds. + Weight::from_parts(7_396_178_000, 0) .saturating_add(Weight::from_parts(0, 3855)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(8)) @@ -113,8 +113,8 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `307` // Estimated: `3772` - // Minimum execution time: 7_409_031_000 picoseconds. - Weight::from_parts(7_495_481_000, 0) + // Minimum execution time: 7_292_899_000 picoseconds. + Weight::from_parts(7_334_069_000, 0) .saturating_add(Weight::from_parts(0, 3772)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(8)) @@ -137,8 +137,8 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `504` // Estimated: `3969` - // Minimum execution time: 88_561_000 picoseconds. - Weight::from_parts(91_710_000, 0) + // Minimum execution time: 100_421_000 picoseconds. + Weight::from_parts(102_481_000, 0) .saturating_add(Weight::from_parts(0, 3969)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) @@ -169,8 +169,8 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `817` // Estimated: `6757` - // Minimum execution time: 143_602_000 picoseconds. - Weight::from_parts(156_161_000, 0) + // Minimum execution time: 167_201_000 picoseconds. + Weight::from_parts(180_021_000, 0) .saturating_add(Weight::from_parts(0, 6757)) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(10)) @@ -198,11 +198,11 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `238` // Estimated: `3703` - // Minimum execution time: 38_230_000 picoseconds. - Weight::from_parts(38_651_000, 0) + // Minimum execution time: 47_860_000 picoseconds. + Weight::from_parts(48_170_000, 0) .saturating_add(Weight::from_parts(0, 3703)) // Standard Error: 2 - .saturating_add(Weight::from_parts(2_282, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(2_292, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -213,11 +213,11 @@ impl polkadot_runtime_common::paras_registrar::WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_230_000 picoseconds. - Weight::from_parts(7_430_000, 0) + // Minimum execution time: 8_900_000 picoseconds. + Weight::from_parts(9_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(903, 0).saturating_mul(b.into())) + // Standard Error: 2 + .saturating_add(Weight::from_parts(915, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/relay/paseo/src/weights/polkadot_runtime_common_slots.rs b/relay/paseo/src/weights/polkadot_runtime_common_slots.rs index b26804db2..3b2660cca 100644 --- a/relay/paseo/src/weights/polkadot_runtime_common_slots.rs +++ b/relay/paseo/src/weights/polkadot_runtime_common_slots.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `polkadot_runtime_common::slots` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl polkadot_runtime_common::slots::WeightInfo for Wei // Proof Size summary in bytes: // Measured: `254` // Estimated: `3719` - // Minimum execution time: 33_870_000 picoseconds. - Weight::from_parts(34_460_000, 0) + // Minimum execution time: 40_940_000 picoseconds. + Weight::from_parts(42_021_000, 0) .saturating_add(Weight::from_parts(0, 3719)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -77,13 +77,13 @@ impl polkadot_runtime_common::slots::WeightInfo for Wei // Proof Size summary in bytes: // Measured: `557 + c * (20 ±0) + t * (234 ±0)` // Estimated: `4028 + c * (2496 ±0) + t * (2709 ±0)` - // Minimum execution time: 920_517_000 picoseconds. - Weight::from_parts(933_047_000, 0) + // Minimum execution time: 1_047_505_000 picoseconds. + Weight::from_parts(1_066_136_000, 0) .saturating_add(Weight::from_parts(0, 4028)) - // Standard Error: 111_818 - .saturating_add(Weight::from_parts(3_442_440, 0).saturating_mul(c.into())) - // Standard Error: 111_818 - .saturating_add(Weight::from_parts(11_154_773, 0).saturating_mul(t.into())) + // Standard Error: 125_385 + .saturating_add(Weight::from_parts(3_907_521, 0).saturating_mul(c.into())) + // Standard Error: 125_385 + .saturating_add(Weight::from_parts(12_943_740, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(t.into()))) @@ -101,8 +101,8 @@ impl polkadot_runtime_common::slots::WeightInfo for Wei // Proof Size summary in bytes: // Measured: `2726` // Estimated: `21814` - // Minimum execution time: 181_921_000 picoseconds. - Weight::from_parts(185_661_000, 0) + // Minimum execution time: 201_841_000 picoseconds. + Weight::from_parts(206_771_000, 0) .saturating_add(Weight::from_parts(0, 21814)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(9)) @@ -119,8 +119,8 @@ impl polkadot_runtime_common::slots::WeightInfo for Wei // Proof Size summary in bytes: // Measured: `550` // Estimated: `4015` - // Minimum execution time: 46_471_000 picoseconds. - Weight::from_parts(48_851_000, 0) + // Minimum execution time: 51_200_000 picoseconds. + Weight::from_parts(54_451_000, 0) .saturating_add(Weight::from_parts(0, 4015)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/relay/paseo/src/weights/runtime_parachains_configuration.rs b/relay/paseo/src/weights/runtime_parachains_configuration.rs index 37f16eb5e..d1501c109 100644 --- a/relay/paseo/src/weights/runtime_parachains_configuration.rs +++ b/relay/paseo/src/weights/runtime_parachains_configuration.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::configuration` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -57,8 +57,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_270_000 picoseconds. - Weight::from_parts(9_650_000, 0) + // Minimum execution time: 12_850_000 picoseconds. + Weight::from_parts(13_140_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -73,8 +73,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_390_000 picoseconds. - Weight::from_parts(9_650_000, 0) + // Minimum execution time: 12_800_000 picoseconds. + Weight::from_parts(13_140_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_460_000 picoseconds. - Weight::from_parts(9_720_000, 0) + // Minimum execution time: 12_670_000 picoseconds. + Weight::from_parts(13_240_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -115,8 +115,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_520_000 picoseconds. - Weight::from_parts(9_800_000, 0) + // Minimum execution time: 12_740_000 picoseconds. + Weight::from_parts(13_060_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -131,8 +131,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 12_200_000 picoseconds. - Weight::from_parts(12_530_000, 0) + // Minimum execution time: 15_460_000 picoseconds. + Weight::from_parts(15_870_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -147,8 +147,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_570_000 picoseconds. - Weight::from_parts(9_790_000, 0) + // Minimum execution time: 12_770_000 picoseconds. + Weight::from_parts(13_070_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -163,8 +163,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 13_891_000 picoseconds. - Weight::from_parts(14_110_000, 0) + // Minimum execution time: 16_970_000 picoseconds. + Weight::from_parts(17_480_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -179,8 +179,8 @@ impl runtime_parachains::configuration::WeightInfo for // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_350_000 picoseconds. - Weight::from_parts(9_761_000, 0) + // Minimum execution time: 12_730_000 picoseconds. + Weight::from_parts(12_940_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/runtime_parachains_coretime.rs b/relay/paseo/src/weights/runtime_parachains_coretime.rs index ee7526bbc..3a0fd0c10 100644 --- a/relay/paseo/src/weights/runtime_parachains_coretime.rs +++ b/relay/paseo/src/weights/runtime_parachains_coretime.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::coretime` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -63,8 +63,8 @@ impl runtime_parachains::coretime::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `2848` // Estimated: `6313` - // Minimum execution time: 92_241_000 picoseconds. - Weight::from_parts(93_731_000, 0) + // Minimum execution time: 108_331_000 picoseconds. + Weight::from_parts(109_910_000, 0) .saturating_add(Weight::from_parts(0, 6313)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) @@ -79,8 +79,8 @@ impl runtime_parachains::coretime::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `155` // Estimated: `1640` - // Minimum execution time: 9_451_000 picoseconds. - Weight::from_parts(9_660_000, 0) + // Minimum execution time: 12_450_000 picoseconds. + Weight::from_parts(12_790_000, 0) .saturating_add(Weight::from_parts(0, 1640)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -94,11 +94,11 @@ impl runtime_parachains::coretime::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `114` // Estimated: `3579` - // Minimum execution time: 11_740_000 picoseconds. - Weight::from_parts(12_201_135, 0) + // Minimum execution time: 14_650_000 picoseconds. + Weight::from_parts(15_180_408, 0) .saturating_add(Weight::from_parts(0, 3579)) - // Standard Error: 162 - .saturating_add(Weight::from_parts(13_556, 0).saturating_mul(s.into())) + // Standard Error: 200 + .saturating_add(Weight::from_parts(15_570, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/relay/paseo/src/weights/runtime_parachains_disputes.rs b/relay/paseo/src/weights/runtime_parachains_disputes.rs index 4e1c5aa2b..369e76fce 100644 --- a/relay/paseo/src/weights/runtime_parachains_disputes.rs +++ b/relay/paseo/src/weights/runtime_parachains_disputes.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::disputes` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl runtime_parachains::disputes::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_600_000 picoseconds. - Weight::from_parts(2_700_000, 0) + // Minimum execution time: 3_160_000 picoseconds. + Weight::from_parts(3_380_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/relay/paseo/src/weights/runtime_parachains_disputes_slashing.rs b/relay/paseo/src/weights/runtime_parachains_disputes_slashing.rs index 9a4bc52f7..4bf7fafd7 100644 --- a/relay/paseo/src/weights/runtime_parachains_disputes_slashing.rs +++ b/relay/paseo/src/weights/runtime_parachains_disputes_slashing.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::disputes::slashing` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -84,13 +84,13 @@ impl runtime_parachains::disputes::slashing::WeightInfo /// The range of component `n` is `[4, 1000]`. fn report_dispute_lost(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2620 + n * (218 ±0)` - // Estimated: `6085 + n * (220 ±0)` - // Minimum execution time: 104_250_000 picoseconds. - Weight::from_parts(165_180_555, 0) - .saturating_add(Weight::from_parts(0, 6085)) - // Standard Error: 4_071 - .saturating_add(Weight::from_parts(229_525, 0).saturating_mul(n.into())) + // Measured: `2654 + n * (218 ±0)` + // Estimated: `6119 + n * (220 ±0)` + // Minimum execution time: 131_440_000 picoseconds. + Weight::from_parts(195_302_393, 0) + .saturating_add(Weight::from_parts(0, 6119)) + // Standard Error: 4_437 + .saturating_add(Weight::from_parts(240_762, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().writes(10)) .saturating_add(Weight::from_parts(0, 220).saturating_mul(n.into())) diff --git a/relay/paseo/src/weights/runtime_parachains_hrmp.rs b/relay/paseo/src/weights/runtime_parachains_hrmp.rs index f3c72f46a..c1ce23060 100644 --- a/relay/paseo/src/weights/runtime_parachains_hrmp.rs +++ b/relay/paseo/src/weights/runtime_parachains_hrmp.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::hrmp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -69,8 +69,8 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `421` // Estimated: `3886` - // Minimum execution time: 45_020_000 picoseconds. - Weight::from_parts(45_841_000, 0) + // Minimum execution time: 55_330_000 picoseconds. + Weight::from_parts(56_350_000, 0) .saturating_add(Weight::from_parts(0, 3886)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(5)) @@ -91,8 +91,8 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `411` // Estimated: `3876` - // Minimum execution time: 44_201_000 picoseconds. - Weight::from_parts(44_871_000, 0) + // Minimum execution time: 54_420_000 picoseconds. + Weight::from_parts(55_021_000, 0) .saturating_add(Weight::from_parts(0, 3876)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) @@ -113,8 +113,8 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `524` // Estimated: `3989` - // Minimum execution time: 45_840_000 picoseconds. - Weight::from_parts(46_440_000, 0) + // Minimum execution time: 56_640_000 picoseconds. + Weight::from_parts(57_320_000, 0) .saturating_add(Weight::from_parts(0, 3989)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) @@ -137,13 +137,13 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `231 + e * (100 ±0) + i * (100 ±0)` // Estimated: `3693 + e * (2575 ±0) + i * (2575 ±0)` - // Minimum execution time: 1_403_571_000 picoseconds. - Weight::from_parts(1_408_241_000, 0) + // Minimum execution time: 1_694_429_000 picoseconds. + Weight::from_parts(1_700_650_000, 0) .saturating_add(Weight::from_parts(0, 3693)) - // Standard Error: 137_955 - .saturating_add(Weight::from_parts(4_283_604, 0).saturating_mul(i.into())) - // Standard Error: 137_955 - .saturating_add(Weight::from_parts(4_405_088, 0).saturating_mul(e.into())) + // Standard Error: 158_838 + .saturating_add(Weight::from_parts(4_997_761, 0).saturating_mul(i.into())) + // Standard Error: 158_838 + .saturating_add(Weight::from_parts(5_056_699, 0).saturating_mul(e.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(e.into()))) @@ -174,11 +174,11 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `459 + c * (136 ±0)` // Estimated: `1914 + c * (5086 ±0)` - // Minimum execution time: 7_290_000 picoseconds. - Weight::from_parts(7_400_000, 0) + // Minimum execution time: 9_970_000 picoseconds. + Weight::from_parts(10_100_000, 0) .saturating_add(Weight::from_parts(0, 1914)) - // Standard Error: 19_357 - .saturating_add(Weight::from_parts(24_185_875, 0).saturating_mul(c.into())) + // Standard Error: 16_135 + .saturating_add(Weight::from_parts(29_851_802, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -202,11 +202,11 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `302 + c * (124 ±0)` // Estimated: `1762 + c * (2600 ±0)` - // Minimum execution time: 6_270_000 picoseconds. - Weight::from_parts(6_420_000, 0) + // Minimum execution time: 8_700_000 picoseconds. + Weight::from_parts(8_890_000, 0) .saturating_add(Weight::from_parts(0, 1762)) - // Standard Error: 17_102 - .saturating_add(Weight::from_parts(15_065_630, 0).saturating_mul(c.into())) + // Standard Error: 13_704 + .saturating_add(Weight::from_parts(18_124_757, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -224,11 +224,11 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `993 + c * (13 ±0)` // Estimated: `4262 + c * (15 ±0)` - // Minimum execution time: 20_710_000 picoseconds. - Weight::from_parts(27_331_655, 0) + // Minimum execution time: 25_450_000 picoseconds. + Weight::from_parts(35_589_777, 0) .saturating_add(Weight::from_parts(0, 4262)) - // Standard Error: 1_499 - .saturating_add(Weight::from_parts(115_614, 0).saturating_mul(c.into())) + // Standard Error: 2_022 + .saturating_add(Weight::from_parts(126_012, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 15).saturating_mul(c.into())) @@ -242,11 +242,11 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `210 + c * (63 ±0)` // Estimated: `1689 + c * (2538 ±0)` - // Minimum execution time: 4_510_000 picoseconds. - Weight::from_parts(4_731_122, 0) + // Minimum execution time: 6_400_000 picoseconds. + Weight::from_parts(6_408_552, 0) .saturating_add(Weight::from_parts(0, 1689)) - // Standard Error: 2_931 - .saturating_add(Weight::from_parts(3_751_528, 0).saturating_mul(c.into())) + // Standard Error: 3_329 + .saturating_add(Weight::from_parts(4_942_827, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -280,11 +280,11 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `421 + c * (235 ±0)` // Estimated: `6361 + c * (235 ±0)` - // Minimum execution time: 66_280_000 picoseconds. - Weight::from_parts(67_401_220, 0) + // Minimum execution time: 80_850_000 picoseconds. + Weight::from_parts(82_251_961, 0) .saturating_add(Weight::from_parts(0, 6361)) - // Standard Error: 69_566 - .saturating_add(Weight::from_parts(16_764_179, 0).saturating_mul(c.into())) + // Standard Error: 60_135 + .saturating_add(Weight::from_parts(20_280_638, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) .saturating_add(Weight::from_parts(0, 235).saturating_mul(c.into())) @@ -315,8 +315,8 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `421` // Estimated: `6361` - // Minimum execution time: 65_800_000 picoseconds. - Weight::from_parts(66_670_000, 0) + // Minimum execution time: 81_441_000 picoseconds. + Weight::from_parts(82_120_000, 0) .saturating_add(Weight::from_parts(0, 6361)) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) @@ -327,8 +327,8 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `230` // Estimated: `3695` - // Minimum execution time: 14_650_000 picoseconds. - Weight::from_parts(14_981_000, 0) + // Minimum execution time: 18_210_000 picoseconds. + Weight::from_parts(18_491_000, 0) .saturating_add(Weight::from_parts(0, 3695)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -359,8 +359,8 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `421` // Estimated: `6361` - // Minimum execution time: 112_691_000 picoseconds. - Weight::from_parts(113_720_000, 0) + // Minimum execution time: 132_101_000 picoseconds. + Weight::from_parts(133_371_000, 0) .saturating_add(Weight::from_parts(0, 6361)) .saturating_add(T::DbWeight::get().reads(21)) .saturating_add(T::DbWeight::get().writes(11)) diff --git a/relay/paseo/src/weights/runtime_parachains_inclusion.rs b/relay/paseo/src/weights/runtime_parachains_inclusion.rs index b54b3d14d..9bad407ec 100644 --- a/relay/paseo/src/weights/runtime_parachains_inclusion.rs +++ b/relay/paseo/src/weights/runtime_parachains_inclusion.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::inclusion` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -47,26 +47,90 @@ use core::marker::PhantomData; /// Weight functions for `runtime_parachains::inclusion`. pub struct WeightInfo(PhantomData); impl runtime_parachains::inclusion::WeightInfo for WeightInfo { + /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0) + /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParaSessionInfo::AccountKeys` (r:1 w:0) + /// Proof: `ParaSessionInfo::AccountKeys` (`max_values`: None, `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: `Staking::ActiveEra` (r:1 w:0) + /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`) + /// Storage: `Staking::ErasRewardPoints` (r:1 w:1) + /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::FutureCodeHash` (r:1 w:1) + /// Proof: `Paras::FutureCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::CurrentCodeHash` (r:1 w:0) + /// Proof: `Paras::CurrentCodeHash` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::UpgradeCooldowns` (r:1 w:1) + /// Proof: `Paras::UpgradeCooldowns` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Paras::PvfActiveVoteMap` (r:1 w:1) + /// Proof: `Paras::PvfActiveVoteMap` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::CodeByHash` (r:1 w:1) + /// Proof: `Paras::CodeByHash` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0) + /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Paras::PvfActiveVoteList` (r:1 w:1) + /// Proof: `Paras::PvfActiveVoteList` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Paras::CodeByHashRefs` (r:1 w:1) + /// Proof: `Paras::CodeByHashRefs` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1) + /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:1) + /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`) - /// Storage: `MessageQueue::Pages` (r:1 w:999) + /// Storage: `MessageQueue::Pages` (r:1 w:2) /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65586), added: 68061, mode: `MaxEncodedLen`) + /// Storage: `Hrmp::HrmpChannelDigests` (r:3 w:3) + /// Proof: `Hrmp::HrmpChannelDigests` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Hrmp::HrmpChannels` (r:2 w:2) + /// Proof: `Hrmp::HrmpChannels` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Hrmp::HrmpChannelContents` (r:2 w:2) + /// Proof: `Hrmp::HrmpChannelContents` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::FutureCodeUpgrades` (r:1 w:0) + /// Proof: `Paras::FutureCodeUpgrades` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Registrar::Paras` (r:1 w:0) + /// Proof: `Registrar::Paras` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1) /// Proof: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1) + /// Storage: `Hrmp::HrmpWatermarks` (r:0 w:1) + /// Proof: `Hrmp::HrmpWatermarks` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::Heads` (r:0 w:1) + /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::UpgradeGoAheadSignal` (r:0 w:1) + /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::MostRecentContext` (r:0 w:1) + /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Paras::UpgradeRestrictionSignal` (r:0 w:1) + /// Proof: `Paras::UpgradeRestrictionSignal` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1) /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1) - /// The range of component `i` is `[1, 1000]`. - fn receive_upward_messages(i: u32, ) -> Weight { + /// The range of component `u` is `[0, 2]`. + /// The range of component `h` is `[0, 2]`. + /// The range of component `c` is `[0, 1]`. + fn enact_candidate(u: u32, h: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `65761` - // Estimated: `69051` - // Minimum execution time: 106_550_000 picoseconds. - Weight::from_parts(106_861_000, 0) + // Measured: `1539 + c * (15992 ±0) + h * (92 ±0) + u * (65723 ±0)` + // Estimated: `69051 + c * (17748 ±492) + h * (15057 ±0) + u * (41474 ±267)` + // Minimum execution time: 570_604_000 picoseconds. + Weight::from_parts(149_241_060, 0) .saturating_add(Weight::from_parts(0, 69051)) - // Standard Error: 95_545 - .saturating_add(Weight::from_parts(93_792_355, 0).saturating_mul(i.into())) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(3)) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + // Standard Error: 550_794 + .saturating_add(Weight::from_parts(202_814_455, 0).saturating_mul(u.into())) + // Standard Error: 550_794 + .saturating_add(Weight::from_parts(244_329_331, 0).saturating_mul(h.into())) + // Standard Error: 912_732 + .saturating_add(Weight::from_parts(34_086_055, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(h.into()))) + .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into()))) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(h.into()))) + .saturating_add(T::DbWeight::get().writes((8_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 17748).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 15057).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(0, 41474).saturating_mul(u.into())) } } diff --git a/relay/paseo/src/weights/runtime_parachains_initializer.rs b/relay/paseo/src/weights/runtime_parachains_initializer.rs index 459295c68..43b8356fe 100644 --- a/relay/paseo/src/weights/runtime_parachains_initializer.rs +++ b/relay/paseo/src/weights/runtime_parachains_initializer.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::initializer` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -54,11 +54,11 @@ impl runtime_parachains::initializer::WeightInfo for We // Proof Size summary in bytes: // Measured: `0 + d * (11 ±0)` // Estimated: `1480 + d * (11 ±0)` - // Minimum execution time: 3_441_000 picoseconds. - Weight::from_parts(8_380_179, 0) + // Minimum execution time: 4_560_000 picoseconds. + Weight::from_parts(7_378_614, 0) .saturating_add(Weight::from_parts(0, 1480)) - // Standard Error: 13 - .saturating_add(Weight::from_parts(1_155, 0).saturating_mul(d.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(1_209, 0).saturating_mul(d.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 11).saturating_mul(d.into())) diff --git a/relay/paseo/src/weights/runtime_parachains_assigner_on_demand.rs b/relay/paseo/src/weights/runtime_parachains_on_demand.rs similarity index 80% rename from relay/paseo/src/weights/runtime_parachains_assigner_on_demand.rs rename to relay/paseo/src/weights/runtime_parachains_on_demand.rs index 251cf965a..bd57fec29 100644 --- a/relay/paseo/src/weights/runtime_parachains_assigner_on_demand.rs +++ b/relay/paseo/src/weights/runtime_parachains_on_demand.rs @@ -14,26 +14,26 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for `runtime_parachains::assigner_on_demand` +//! Autogenerated weights for `runtime_parachains::on_demand` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo +// ./target/production/polkadot // benchmark // pallet -// --chain=./paseo-chain-spec.json +// --chain=./polkadot-chain-spec.json // --steps=50 // --repeat=20 -// --pallet=runtime_parachains::assigner_on_demand +// --pallet=runtime_parachains::on_demand // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./paseo-weights/ +// --output=./polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -44,9 +44,9 @@ use frame_support::{traits::Get, weights::Weight}; use core::marker::PhantomData; -/// Weight functions for `runtime_parachains::assigner_on_demand`. +/// Weight functions for `runtime_parachains::on_demand`. pub struct WeightInfo(PhantomData); -impl runtime_parachains::assigner_on_demand::WeightInfo for WeightInfo { +impl runtime_parachains::on_demand::WeightInfo for WeightInfo { /// Storage: `OnDemand::QueueStatus` (r:1 w:1) /// Proof: `OnDemand::QueueStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:1 w:1) @@ -62,11 +62,11 @@ impl runtime_parachains::assigner_on_demand::WeightInfo // Proof Size summary in bytes: // Measured: `132 + s * (8 ±0)` // Estimated: `3595 + s * (8 ±0)` - // Minimum execution time: 41_491_000 picoseconds. - Weight::from_parts(39_671_416, 0) + // Minimum execution time: 52_980_000 picoseconds. + Weight::from_parts(50_329_886, 0) .saturating_add(Weight::from_parts(0, 3595)) - // Standard Error: 76 - .saturating_add(Weight::from_parts(16_969, 0).saturating_mul(s.into())) + // Standard Error: 85 + .saturating_add(Weight::from_parts(16_770, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 8).saturating_mul(s.into())) @@ -86,11 +86,11 @@ impl runtime_parachains::assigner_on_demand::WeightInfo // Proof Size summary in bytes: // Measured: `132 + s * (8 ±0)` // Estimated: `3595 + s * (8 ±0)` - // Minimum execution time: 40_570_000 picoseconds. - Weight::from_parts(38_945_609, 0) + // Minimum execution time: 51_921_000 picoseconds. + Weight::from_parts(47_880_599, 0) .saturating_add(Weight::from_parts(0, 3595)) - // Standard Error: 75 - .saturating_add(Weight::from_parts(17_169, 0).saturating_mul(s.into())) + // Standard Error: 92 + .saturating_add(Weight::from_parts(17_561, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 8).saturating_mul(s.into())) diff --git a/relay/paseo/src/weights/runtime_parachains_paras.rs b/relay/paseo/src/weights/runtime_parachains_paras.rs index 429bf27ba..f1105a770 100644 --- a/relay/paseo/src/weights/runtime_parachains_paras.rs +++ b/relay/paseo/src/weights/runtime_parachains_paras.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::paras` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -66,11 +66,11 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `8309` // Estimated: `11774` - // Minimum execution time: 35_820_000 picoseconds. - Weight::from_parts(36_241_000, 0) + // Minimum execution time: 41_651_000 picoseconds. + Weight::from_parts(42_100_000, 0) .saturating_add(Weight::from_parts(0, 11774)) // Standard Error: 5 - .saturating_add(Weight::from_parts(2_456, 0).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(2_471, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -81,11 +81,11 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_990_000 picoseconds. - Weight::from_parts(7_230_000, 0) + // Minimum execution time: 8_360_000 picoseconds. + Weight::from_parts(8_700_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(932, 0).saturating_mul(s.into())) + // Standard Error: 4 + .saturating_add(Weight::from_parts(960, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Paras::MostRecentContext` (r:0 w:1) @@ -94,8 +94,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_590_000 picoseconds. - Weight::from_parts(3_740_000, 0) + // Minimum execution time: 4_280_000 picoseconds. + Weight::from_parts(4_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -122,11 +122,11 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `8489` // Estimated: `11954` - // Minimum execution time: 48_421_000 picoseconds. - Weight::from_parts(48_750_000, 0) + // Minimum execution time: 57_310_000 picoseconds. + Weight::from_parts(57_660_000, 0) .saturating_add(Weight::from_parts(0, 11954)) // Standard Error: 4 - .saturating_add(Weight::from_parts(2_434, 0).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(2_452, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -145,11 +145,11 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `337` // Estimated: `3802` - // Minimum execution time: 18_611_000 picoseconds. - Weight::from_parts(18_790_000, 0) + // Minimum execution time: 23_240_000 picoseconds. + Weight::from_parts(23_570_000, 0) .saturating_add(Weight::from_parts(0, 3802)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(944, 0).saturating_mul(s.into())) + // Standard Error: 4 + .saturating_add(Weight::from_parts(975, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -161,8 +161,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `4316` // Estimated: `7781` - // Minimum execution time: 20_500_000 picoseconds. - Weight::from_parts(20_740_000, 0) + // Minimum execution time: 25_250_000 picoseconds. + Weight::from_parts(25_740_000, 0) .saturating_add(Weight::from_parts(0, 7781)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -180,11 +180,11 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `683` // Estimated: `4148` - // Minimum execution time: 76_131_000 picoseconds. - Weight::from_parts(76_980_000, 0) + // Minimum execution time: 85_171_000 picoseconds. + Weight::from_parts(52_650_543, 0) .saturating_add(Weight::from_parts(0, 4148)) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_823, 0).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(1_743, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -196,8 +196,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `28` // Estimated: `3493` - // Minimum execution time: 6_360_000 picoseconds. - Weight::from_parts(6_650_000, 0) + // Minimum execution time: 8_460_000 picoseconds. + Weight::from_parts(8_600_000, 0) .saturating_add(Weight::from_parts(0, 3493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -212,8 +212,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `26706` // Estimated: `30171` - // Minimum execution time: 109_621_000 picoseconds. - Weight::from_parts(112_091_000, 0) + // Minimum execution time: 111_471_000 picoseconds. + Weight::from_parts(116_521_000, 0) .saturating_add(Weight::from_parts(0, 30171)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -236,8 +236,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `27360` // Estimated: `30825` - // Minimum execution time: 758_106_000 picoseconds. - Weight::from_parts(765_035_000, 0) + // Minimum execution time: 797_764_000 picoseconds. + Weight::from_parts(805_725_000, 0) .saturating_add(Weight::from_parts(0, 30825)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(104)) @@ -252,8 +252,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `27338` // Estimated: `30803` - // Minimum execution time: 106_491_000 picoseconds. - Weight::from_parts(108_080_000, 0) + // Minimum execution time: 109_630_000 picoseconds. + Weight::from_parts(113_021_000, 0) .saturating_add(Weight::from_parts(0, 30803)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -272,8 +272,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `26728` // Estimated: `30193` - // Minimum execution time: 598_735_000 picoseconds. - Weight::from_parts(606_214_000, 0) + // Minimum execution time: 650_794_000 picoseconds. + Weight::from_parts(655_724_000, 0) .saturating_add(Weight::from_parts(0, 30193)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -288,8 +288,8 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `26706` // Estimated: `30171` - // Minimum execution time: 103_901_000 picoseconds. - Weight::from_parts(106_241_000, 0) + // Minimum execution time: 108_271_000 picoseconds. + Weight::from_parts(112_301_000, 0) .saturating_add(Weight::from_parts(0, 30171)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/relay/paseo/src/weights/runtime_parachains_paras_inherent.rs b/relay/paseo/src/weights/runtime_parachains_paras_inherent.rs index 43ae232fe..381eabeb1 100644 --- a/relay/paseo/src/weights/runtime_parachains_paras_inherent.rs +++ b/relay/paseo/src/weights/runtime_parachains_paras_inherent.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `runtime_parachains::paras_inherent` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -47,6 +47,46 @@ use core::marker::PhantomData; /// Weight functions for `runtime_parachains::paras_inherent`. pub struct WeightInfo(PhantomData); impl runtime_parachains::paras_inherent::WeightInfo for WeightInfo { + /// Storage: `ParaInherent::Included` (r:1 w:1) + /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `System::ParentHash` (r:1 w:0) + /// Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `ParasShared::AllowedRelayParents` (r:1 w:1) + /// Proof: `ParasShared::AllowedRelayParents` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0) + /// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParaScheduler::AvailabilityCores` (r:1 w:1) + /// Proof: `ParaScheduler::AvailabilityCores` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParasShared::ActiveValidatorKeys` (r:1 w:0) + /// Proof: `ParasShared::ActiveValidatorKeys` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Babe::AuthorVrfRandomness` (r:1 w:0) + /// Proof: `Babe::AuthorVrfRandomness` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + /// Storage: `ParaInherent::OnChainVotes` (r:1 w:1) + /// Proof: `ParaInherent::OnChainVotes` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParasDisputes::Frozen` (r:1 w:0) + /// Proof: `ParasDisputes::Frozen` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParaInclusion::V1` (r:1 w:0) + /// Proof: `ParaInclusion::V1` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParaScheduler::SessionStartBlock` (r:1 w:0) + /// Proof: `ParaScheduler::SessionStartBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParaScheduler::ValidatorGroups` (r:1 w:0) + /// Proof: `ParaScheduler::ValidatorGroups` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParaScheduler::ClaimQueue` (r:1 w:1) + /// Proof: `ParaScheduler::ClaimQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParasShared::ActiveValidatorIndices` (r:1 w:0) + /// Proof: `ParasShared::ActiveValidatorIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Session::DisabledValidators` (r:1 w:0) + /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn enter_empty() -> Weight { + // Proof Size summary in bytes: + // Measured: `37557` + // Estimated: `41022` + // Minimum execution time: 199_481_000 picoseconds. + Weight::from_parts(203_891_000, 0) + .saturating_add(Weight::from_parts(0, 41022)) + .saturating_add(T::DbWeight::get().reads(15)) + .saturating_add(T::DbWeight::get().writes(5)) + } /// Storage: `ParaInherent::Included` (r:1 w:1) /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::ParentHash` (r:1 w:0) @@ -111,19 +151,19 @@ impl runtime_parachains::paras_inherent::WeightInfo for /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Paras::MostRecentContext` (r:0 w:1) /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// The range of component `v` is `[10, 200]`. + /// The range of component `v` is `[10, 1024]`. fn enter_variable_disputes(v: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `67806` - // Estimated: `73746 + v * (23 ±0)` - // Minimum execution time: 875_866_000 picoseconds. - Weight::from_parts(389_238_056, 0) - .saturating_add(Weight::from_parts(0, 73746)) - // Standard Error: 14_147 - .saturating_add(Weight::from_parts(50_127_710, 0).saturating_mul(v.into())) + // Measured: `199790` + // Estimated: `205730 + v * (5 ±0)` + // Minimum execution time: 1_094_456_000 picoseconds. + Weight::from_parts(544_591_457, 0) + .saturating_add(Weight::from_parts(0, 205730)) + // Standard Error: 6_597 + .saturating_add(Weight::from_parts(50_174_718, 0).saturating_mul(v.into())) .saturating_add(T::DbWeight::get().reads(28)) .saturating_add(T::DbWeight::get().writes(15)) - .saturating_add(Weight::from_parts(0, 23).saturating_mul(v.into())) + .saturating_add(Weight::from_parts(0, 5).saturating_mul(v.into())) } /// Storage: `ParaInherent::Included` (r:1 w:1) /// Proof: `ParaInherent::Included` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -157,11 +197,11 @@ impl runtime_parachains::paras_inherent::WeightInfo for /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn enter_bitfields() -> Weight { // Proof Size summary in bytes: - // Measured: `41889` - // Estimated: `47829` - // Minimum execution time: 279_071_000 picoseconds. - Weight::from_parts(289_422_000, 0) - .saturating_add(Weight::from_parts(0, 47829)) + // Measured: `74988` + // Estimated: `80928` + // Minimum execution time: 407_482_000 picoseconds. + Weight::from_parts(420_672_000, 0) + .saturating_add(Weight::from_parts(0, 80928)) .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -231,16 +271,16 @@ impl runtime_parachains::paras_inherent::WeightInfo for /// Proof: `Paras::UpgradeGoAheadSignal` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Paras::MostRecentContext` (r:0 w:1) /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// The range of component `v` is `[101, 200]`. + /// The range of component `v` is `[2, 5]`. fn enter_backed_candidates_variable(v: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `43461` - // Estimated: `49401` - // Minimum execution time: 6_175_921_000 picoseconds. - Weight::from_parts(1_184_787_817, 0) - .saturating_add(Weight::from_parts(0, 49401)) - // Standard Error: 13_231 - .saturating_add(Weight::from_parts(49_581_227, 0).saturating_mul(v.into())) + // Measured: `76559` + // Estimated: `82499` + // Minimum execution time: 1_384_258_000 picoseconds. + Weight::from_parts(1_339_423_328, 0) + .saturating_add(Weight::from_parts(0, 82499)) + // Standard Error: 751_481 + .saturating_add(Weight::from_parts(48_380_111, 0).saturating_mul(v.into())) .saturating_add(T::DbWeight::get().reads(29)) .saturating_add(T::DbWeight::get().writes(15)) } @@ -316,11 +356,11 @@ impl runtime_parachains::paras_inherent::WeightInfo for /// Proof: `Paras::MostRecentContext` (`max_values`: None, `max_size`: None, mode: `Measured`) fn enter_backed_candidate_code_upgrade() -> Weight { // Proof Size summary in bytes: - // Measured: `43474` - // Estimated: `49414` - // Minimum execution time: 41_352_698_000 picoseconds. - Weight::from_parts(41_523_230_000, 0) - .saturating_add(Weight::from_parts(0, 49414)) + // Measured: `76572` + // Estimated: `82512` + // Minimum execution time: 36_335_558_000 picoseconds. + Weight::from_parts(37_185_383_000, 0) + .saturating_add(Weight::from_parts(0, 82512)) .saturating_add(T::DbWeight::get().reads(31)) .saturating_add(T::DbWeight::get().writes(15)) } diff --git a/relay/paseo/src/weights/xcm/mod.rs b/relay/paseo/src/weights/xcm/mod.rs index aedf2704b..39b3f2b31 100644 --- a/relay/paseo/src/weights/xcm/mod.rs +++ b/relay/paseo/src/weights/xcm/mod.rs @@ -43,14 +43,14 @@ impl From<&Asset> for AssetTypes { } trait WeighAssets { - fn weigh_multi_assets(&self, balances_weight: Weight) -> Weight; + fn weigh_assets(&self, balances_weight: Weight) -> Weight; } // Polkadot only knows about one asset, the balances pallet. const MAX_ASSETS: u64 = 1; impl WeighAssets for AssetFilter { - fn weigh_multi_assets(&self, balances_weight: Weight) -> Weight { + fn weigh_assets(&self, balances_weight: Weight) -> Weight { match self { Self::Definite(assets) => assets .inner() @@ -72,7 +72,7 @@ impl WeighAssets for AssetFilter { } impl WeighAssets for Assets { - fn weigh_multi_assets(&self, balances_weight: Weight) -> Weight { + fn weigh_assets(&self, balances_weight: Weight) -> Weight { self.inner() .iter() .map(>::from) @@ -87,13 +87,13 @@ impl WeighAssets for Assets { pub struct PolkadotXcmWeight(core::marker::PhantomData); impl XcmWeightInfo for PolkadotXcmWeight { fn withdraw_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::withdraw_asset()) + assets.weigh_assets(XcmBalancesWeight::::withdraw_asset()) } fn reserve_asset_deposited(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::reserve_asset_deposited()) + assets.weigh_assets(XcmBalancesWeight::::reserve_asset_deposited()) } fn receive_teleported_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::receive_teleported_asset()) + assets.weigh_assets(XcmBalancesWeight::::receive_teleported_asset()) } fn query_response( _query_id: &u64, @@ -104,10 +104,10 @@ impl XcmWeightInfo for PolkadotXcmWeight XcmGeneric::::query_response() } fn transfer_asset(assets: &Assets, _dest: &Location) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::transfer_asset()) + assets.weigh_assets(XcmBalancesWeight::::transfer_asset()) } fn transfer_reserve_asset(assets: &Assets, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::transfer_reserve_asset()) + assets.weigh_assets(XcmBalancesWeight::::transfer_reserve_asset()) } fn transact( _origin_kind: &OriginKind, @@ -143,10 +143,10 @@ impl XcmWeightInfo for PolkadotXcmWeight } fn deposit_asset(assets: &AssetFilter, _dest: &Location) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::deposit_asset()) + assets.weigh_assets(XcmBalancesWeight::::deposit_asset()) } fn deposit_reserve_asset(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::deposit_reserve_asset()) + assets.weigh_assets(XcmBalancesWeight::::deposit_reserve_asset()) } fn exchange_asset(_give: &AssetFilter, _receive: &Assets, _maximal: &bool) -> Weight { // Polkadot does not currently support exchange asset operations @@ -157,10 +157,10 @@ impl XcmWeightInfo for PolkadotXcmWeight _reserve: &Location, _xcm: &Xcm<()>, ) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::initiate_reserve_withdraw()) + assets.weigh_assets(XcmBalancesWeight::::initiate_reserve_withdraw()) } fn initiate_teleport(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmBalancesWeight::::initiate_teleport()) + assets.weigh_assets(XcmBalancesWeight::::initiate_teleport()) } fn report_holding(_response_info: &QueryResponseInfo, _assets: &AssetFilter) -> Weight { XcmGeneric::::report_holding() @@ -193,10 +193,10 @@ impl XcmWeightInfo for PolkadotXcmWeight XcmGeneric::::unsubscribe_version() } fn burn_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmGeneric::::burn_asset()) + assets.weigh_assets(XcmGeneric::::burn_asset()) } fn expect_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmGeneric::::expect_asset()) + assets.weigh_assets(XcmGeneric::::expect_asset()) } fn expect_origin(_origin: &Option) -> Weight { XcmGeneric::::expect_origin() @@ -272,5 +272,5 @@ fn all_counted_has_a_sane_weight_upper_limit() { let assets = AssetFilter::Wild(AllCounted(4294967295)); let weight = Weight::from_parts(1000, 1000); - assert_eq!(assets.weigh_multi_assets(weight), weight * MAX_ASSETS); + assert_eq!(assets.weigh_assets(weight), weight * MAX_ASSETS); } diff --git a/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs index bef8527a7..5299ce3a9 100644 --- a/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +++ b/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::fungible` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `3593` - // Minimum execution time: 32_091_000 picoseconds. - Weight::from_parts(32_780_000, 0) + // Minimum execution time: 38_180_000 picoseconds. + Weight::from_parts(38_750_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `6196` - // Minimum execution time: 43_570_000 picoseconds. - Weight::from_parts(43_921_000, 0) + // Minimum execution time: 50_870_000 picoseconds. + Weight::from_parts(51_330_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -85,8 +85,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `215` // Estimated: `6196` - // Minimum execution time: 106_911_000 picoseconds. - Weight::from_parts(107_431_000, 0) + // Minimum execution time: 121_701_000 picoseconds. + Weight::from_parts(122_340_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) @@ -115,8 +115,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 71_401_000 picoseconds. - Weight::from_parts(72_371_000, 0) + // Minimum execution time: 83_290_000 picoseconds. + Weight::from_parts(83_861_000, 0) .saturating_add(Weight::from_parts(0, 3680)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -127,8 +127,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 31_791_000 picoseconds. - Weight::from_parts(32_311_000, 0) + // Minimum execution time: 38_240_000 picoseconds. + Weight::from_parts(38_570_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -139,8 +139,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 24_431_000 picoseconds. - Weight::from_parts(24_940_000, 0) + // Minimum execution time: 29_340_000 picoseconds. + Weight::from_parts(29_490_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -159,8 +159,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3593` - // Minimum execution time: 66_190_000 picoseconds. - Weight::from_parts(67_150_000, 0) + // Minimum execution time: 77_720_000 picoseconds. + Weight::from_parts(78_551_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -179,8 +179,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3593` - // Minimum execution time: 50_230_000 picoseconds. - Weight::from_parts(50_800_000, 0) + // Minimum execution time: 59_421_000 picoseconds. + Weight::from_parts(59_840_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index f7cf489fd..081805879 100644 --- a/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/relay/paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::generic` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024 @@ -61,8 +61,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 69_261_000 picoseconds. - Weight::from_parts(70_100_000, 0) + // Minimum execution time: 81_120_000 picoseconds. + Weight::from_parts(82_130_000, 0) .saturating_add(Weight::from_parts(0, 3680)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -71,8 +71,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 900_000 picoseconds. - Weight::from_parts(1_000_000, 0) + // Minimum execution time: 1_120_000 picoseconds. + Weight::from_parts(1_180_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `XcmPallet::Queries` (r:1 w:0) @@ -81,8 +81,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3465` - // Minimum execution time: 5_950_000 picoseconds. - Weight::from_parts(6_130_000, 0) + // Minimum execution time: 7_290_000 picoseconds. + Weight::from_parts(7_440_000, 0) .saturating_add(Weight::from_parts(0, 3465)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -90,56 +90,56 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_170_000 picoseconds. - Weight::from_parts(8_580_000, 0) + // Minimum execution time: 9_540_000 picoseconds. + Weight::from_parts(9_750_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn refund_surplus() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_621_000 picoseconds. - Weight::from_parts(1_730_000, 0) + // Minimum execution time: 1_920_000 picoseconds. + Weight::from_parts(2_030_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_error_handler() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 900_000 picoseconds. - Weight::from_parts(980_000, 0) + // Minimum execution time: 1_150_000 picoseconds. + Weight::from_parts(1_230_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_appendix() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 900_000 picoseconds. - Weight::from_parts(970_000, 0) + // Minimum execution time: 1_120_000 picoseconds. + Weight::from_parts(1_210_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 901_000 picoseconds. - Weight::from_parts(940_000, 0) + // Minimum execution time: 1_090_000 picoseconds. + Weight::from_parts(1_130_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn descend_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 920_000 picoseconds. - Weight::from_parts(980_000, 0) + // Minimum execution time: 1_140_000 picoseconds. + Weight::from_parts(1_210_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 890_000 picoseconds. - Weight::from_parts(960_000, 0) + // Minimum execution time: 1_090_000 picoseconds. + Weight::from_parts(1_150_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0) @@ -156,8 +156,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 65_830_000 picoseconds. - Weight::from_parts(66_570_000, 0) + // Minimum execution time: 77_661_000 picoseconds. + Weight::from_parts(78_800_000, 0) .saturating_add(Weight::from_parts(0, 3680)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -168,8 +168,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `23` // Estimated: `3488` - // Minimum execution time: 9_510_000 picoseconds. - Weight::from_parts(9_850_000, 0) + // Minimum execution time: 11_430_000 picoseconds. + Weight::from_parts(11_680_000, 0) .saturating_add(Weight::from_parts(0, 3488)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -178,8 +178,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 870_000 picoseconds. - Weight::from_parts(930_000, 0) + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_090_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `XcmPallet::VersionNotifyTargets` (r:1 w:1) @@ -196,8 +196,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `114` // Estimated: `3579` - // Minimum execution time: 32_200_000 picoseconds. - Weight::from_parts(32_980_000, 0) + // Minimum execution time: 38_640_000 picoseconds. + Weight::from_parts(39_231_000, 0) .saturating_add(Weight::from_parts(0, 3579)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -208,8 +208,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_470_000 picoseconds. - Weight::from_parts(3_720_000, 0) + // Minimum execution time: 4_380_000 picoseconds. + Weight::from_parts(4_530_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -217,40 +217,40 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_440_000 picoseconds. - Weight::from_parts(1_500_000, 0) + // Minimum execution time: 1_710_000 picoseconds. + Weight::from_parts(1_760_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_030_000 picoseconds. - Weight::from_parts(1_070_000, 0) + // Minimum execution time: 1_260_000 picoseconds. + Weight::from_parts(1_340_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 910_000 picoseconds. - Weight::from_parts(960_000, 0) + // Minimum execution time: 1_040_000 picoseconds. + Weight::from_parts(1_100_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 880_000 picoseconds. - Weight::from_parts(970_000, 0) + // Minimum execution time: 1_060_000 picoseconds. + Weight::from_parts(1_130_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_130_000 picoseconds. - Weight::from_parts(1_210_000, 0) + // Minimum execution time: 1_260_000 picoseconds. + Weight::from_parts(1_350_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0) @@ -267,8 +267,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 75_100_000 picoseconds. - Weight::from_parts(76_121_000, 0) + // Minimum execution time: 89_100_000 picoseconds. + Weight::from_parts(89_941_000, 0) .saturating_add(Weight::from_parts(0, 3680)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -277,8 +277,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_310_000 picoseconds. - Weight::from_parts(8_470_000, 0) + // Minimum execution time: 9_610_000 picoseconds. + Weight::from_parts(9_850_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0) @@ -295,8 +295,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 65_451_000 picoseconds. - Weight::from_parts(66_521_000, 0) + // Minimum execution time: 78_581_000 picoseconds. + Weight::from_parts(79_181_000, 0) .saturating_add(Weight::from_parts(0, 3680)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -305,40 +305,40 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 940_000 picoseconds. - Weight::from_parts(1_030_000, 0) + // Minimum execution time: 1_110_000 picoseconds. + Weight::from_parts(1_150_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 820_000 picoseconds. - Weight::from_parts(910_000, 0) + // Minimum execution time: 1_040_000 picoseconds. + Weight::from_parts(1_100_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 870_000 picoseconds. - Weight::from_parts(910_000, 0) + // Minimum execution time: 1_040_000 picoseconds. + Weight::from_parts(1_080_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_fees_mode() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 850_000 picoseconds. - Weight::from_parts(940_000, 0) + // Minimum execution time: 1_050_000 picoseconds. + Weight::from_parts(1_110_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn unpaid_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 910_000 picoseconds. - Weight::from_parts(980_000, 0) + // Minimum execution time: 1_060_000 picoseconds. + Weight::from_parts(1_140_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/relay/paseo/src/xcm_config.rs b/relay/paseo/src/xcm_config.rs index c3ca5b6eb..e55db8571 100644 --- a/relay/paseo/src/xcm_config.rs +++ b/relay/paseo/src/xcm_config.rs @@ -41,10 +41,9 @@ use xcm_builder::{ AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, ChildParachainAsNative, ChildParachainConvertsVia, DescribeAllTerminal, DescribeFamily, FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsChildSystemParachain, IsConcrete, MintLocation, - OriginToPluralityVoice, SignedAccountId32AsNative, SignedToAccountId32, + OriginToPluralityVoice, SendXcmFeeToAccount, SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, XcmFeeManagerFromComponents, - XcmFeeToAccount, }; parameter_types! { @@ -53,7 +52,7 @@ parameter_types! { /// chain, we make it synonymous with it and thus it is the `Here` location, which means "equivalent to /// the context". pub const TokenLocation: Location = Here.into_location(); - /// The Polkadot network ID. This is named. TODO To rename to Paseo. + /// The Paseo network ID. This is named. pub const ThisNetwork: NetworkId = NetworkId::Polkadot; /// Our location in the universe of consensus systems. pub UniversalLocation: InteriorLocation = [GlobalConsensus(ThisNetwork::get())].into(); @@ -208,7 +207,7 @@ pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { type RuntimeCall = RuntimeCall; type XcmSender = XcmRouter; - type XcmRecorder = (); + type XcmRecorder = XcmPallet; type AssetTransactor = LocalAssetTransactor; type OriginConverter = LocalOriginConverter; // Paseo Relay recognises no chains which act as reserves. @@ -234,7 +233,7 @@ impl xcm_executor::Config for XcmConfig { type MaxAssetsIntoHolding = MaxAssetsIntoHolding; type FeeManager = XcmFeeManagerFromComponents< WaivedLocations, - XcmFeeToAccount, + SendXcmFeeToAccount, >; // No bridges on the Relay Chain type MessageExporter = (); diff --git a/relay/paseo/tests/location_conversion.rs b/relay/paseo/tests/location_conversion.rs new file mode 100644 index 000000000..bfa899bf5 --- /dev/null +++ b/relay/paseo/tests/location_conversion.rs @@ -0,0 +1,99 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +use polkadot_primitives::AccountId; +use polkadot_runtime::xcm_config::SovereignAccountOf; +use sp_core::crypto::Ss58Codec; +use xcm::prelude::*; +use xcm_runtime_apis::conversions::LocationToAccountHelper; + +const ALICE: [u8; 32] = [1u8; 32]; + +#[test] +fn location_conversion_works() { + // the purpose of hardcoded values is to catch an unintended location conversion logic change. + struct TestCase { + description: &'static str, + location: Location, + expected_account_id_str: &'static str, + } + + let test_cases = vec![ + // DescribeTerminus + TestCase { + description: "DescribeTerminus Child", + location: Location::new(0, [Parachain(1111)]), + expected_account_id_str: "5Ec4AhP4h37t7TFsAZ4HhFq6k92usAAJDUC3ADSZ4H4Acru3", + }, + // DescribePalletTerminal + TestCase { + description: "DescribePalletTerminal Child", + location: Location::new(0, [Parachain(1111), PalletInstance(50)]), + expected_account_id_str: "5FjEBrKn3STAFsZpQF4jzwxUYHNGnNgzdZqSQfTzeJ82XKp6", + }, + // DescribeAccountId32Terminal + TestCase { + description: "DescribeAccountId32Terminal Child", + location: Location::new( + 0, + [ + Parachain(1111), + Junction::AccountId32 { network: None, id: AccountId::from(ALICE).into() }, + ], + ), + expected_account_id_str: "5D6CDyPd9Mya81xFN3nChiKqLvUzd8zS9fwKhfCW6FtJKjS2", + }, + // DescribeAccountKey20Terminal + TestCase { + description: "DescribeAccountKey20Terminal Child", + location: Location::new( + 0, + [Parachain(1111), AccountKey20 { network: None, key: [123u8; 20] }], + ), + expected_account_id_str: "5DEZsy7tsnNXB7ehLGkF8b4EUqfLQWqEzGiy2RrneC8uRNMK", + }, + // DescribeTreasuryVoiceTerminal + TestCase { + description: "DescribeTreasuryVoiceTerminal Child", + location: Location::new( + 0, + [Parachain(1111), Plurality { id: BodyId::Treasury, part: BodyPart::Voice }], + ), + expected_account_id_str: "5GenE4vJgHvwYVcD6b4nBvH5HNY4pzpVHWoqwFpNMFT7a2oX", + }, + // DescribeBodyTerminal + TestCase { + description: "DescribeBodyTerminal Child", + location: Location::new( + 0, + [Parachain(1111), Plurality { id: BodyId::Unit, part: BodyPart::Voice }], + ), + expected_account_id_str: "5DPgGBFTTYm1dGbtB1VWHJ3T3ScvdrskGGx6vSJZNP1WNStV", + }, + ]; + + for tc in test_cases { + let expected = + AccountId::from_string(tc.expected_account_id_str).expect("Invalid AccountId string"); + + let got = LocationToAccountHelper::::convert_location( + tc.location.into(), + ) + .unwrap(); + + assert_eq!(got, expected, "{}", tc.description); + } +} diff --git a/scripts/create_runtime_patch.sh b/scripts/create_runtime_patch.sh index bcfd4e4a3..ab4ef595f 100755 --- a/scripts/create_runtime_patch.sh +++ b/scripts/create_runtime_patch.sh @@ -142,6 +142,7 @@ if [ "$PROCESS_PARACHAINS" = "true" ]; then "bridge_hub bridge-hubs/bridge-hub-polkadot bridge-hub-paseo" "people people/people-polkadot people-paseo" "coretime coretime/coretime-polkadot coretime-paseo" + "collectives collectives/collectives-polkadot collectives-paseo" ) # First copy all parachains diff --git a/system-parachains/collectives-paseo/Cargo.toml b/system-parachains/collectives-paseo/Cargo.toml new file mode 100644 index 000000000..3141f4af4 --- /dev/null +++ b/system-parachains/collectives-paseo/Cargo.toml @@ -0,0 +1,251 @@ +[package] +authors.workspace = true +build = "build.rs" +description = "Paseo Collectives Parachain Runtime" +edition.workspace = true +license.workspace = true +name = "collectives-paseo-runtime" +repository.workspace = true +version.workspace = true + +[dependencies] +codec = { features = ["derive", "max-encoded-len"], workspace = true } +hex-literal = { workspace = true } +log = { workspace = true } +scale-info = { features = ["derive"], workspace = true } +serde_json = { features = ["alloc"], workspace = true } + +# Substrate +frame-benchmarking = { optional = true, workspace = true } +frame-executive = { workspace = true } +frame-metadata-hash-extension = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +frame-system-benchmarking = { optional = true, workspace = true } +frame-system-rpc-runtime-api = { workspace = true } +frame-try-runtime = { optional = true, workspace = true } +pallet-asset-rate = { workspace = true } +pallet-alliance = { workspace = true } +pallet-aura = { workspace = true } +pallet-authorship = { workspace = true } +pallet-balances = { workspace = true } +pallet-collective = { workspace = true } +pallet-message-queue = { workspace = true } +pallet-multisig = { workspace = true } +pallet-preimage = { workspace = true } +pallet-proxy = { workspace = true } +pallet-scheduler = { workspace = true } +pallet-session = { workspace = true } +pallet-timestamp = { workspace = true } +pallet-transaction-payment = { workspace = true } +pallet-transaction-payment-rpc-runtime-api = { workspace = true } +pallet-treasury = { workspace = true } +pallet-utility = { workspace = true } +pallet-referenda = { workspace = true } +pallet-ranked-collective = { workspace = true } +pallet-core-fellowship = { workspace = true } +pallet-salary = { workspace = true } +sp-api = { workspace = true } +sp-arithmetic = { workspace = true } +sp-block-builder = { workspace = true } +sp-consensus-aura = { workspace = true } +sp-core = { workspace = true } +sp-genesis-builder = { workspace = true } +sp-inherents = { workspace = true } +sp-offchain = { workspace = true } +sp-runtime = { workspace = true } +sp-session = { workspace = true } +sp-std = { workspace = true } +sp-storage = { workspace = true } +sp-transaction-pool = { workspace = true } +sp-version = { workspace = true } + +# Polkadot +pallet-xcm = { workspace = true } +pallet-xcm-benchmarks = { optional = true, workspace = true } +polkadot-core-primitives = { workspace = true } +polkadot-parachain-primitives = { workspace = true } +polkadot-runtime-common = { workspace = true } +paseo-runtime-constants = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } +xcm-runtime-apis = { workspace = true } + +# Cumulus +cumulus-pallet-aura-ext = { workspace = true } +cumulus-pallet-parachain-system = { workspace = true } +cumulus-pallet-session-benchmarking = { workspace = true } +cumulus-pallet-xcm = { workspace = true } +cumulus-pallet-xcmp-queue = { workspace = true } +cumulus-primitives-aura = { workspace = true } +cumulus-primitives-core = { workspace = true } +cumulus-primitives-utility = { workspace = true } +pallet-collator-selection = { workspace = true } +parachain-info = { workspace = true } +parachains-common = { workspace = true } +system-parachains-constants = { workspace = true } + +[dev-dependencies] +collectives-polkadot-runtime-constants = { workspace = true } +parachains-runtimes-test-utils = { workspace = true } +sp-io = { workspace = true } + +[build-dependencies] +substrate-wasm-builder = { optional = true, workspace = true } + +[features] +default = ["std"] +runtime-benchmarks = [ + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", + "cumulus-primitives-core/runtime-benchmarks", + "cumulus-primitives-utility/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-alliance/runtime-benchmarks", + "pallet-asset-rate/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", + "pallet-collective/runtime-benchmarks", + "pallet-core-fellowship/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", + "pallet-multisig/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-proxy/runtime-benchmarks", + "pallet-ranked-collective/runtime-benchmarks", + "pallet-referenda/runtime-benchmarks", + "pallet-salary/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "parachains-common/runtime-benchmarks", + "polkadot-parachain-primitives/runtime-benchmarks", + "polkadot-runtime-common/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", + "xcm-executor/runtime-benchmarks", + "xcm-runtime-apis/runtime-benchmarks", +] +try-runtime = [ + "cumulus-pallet-aura-ext/try-runtime", + "cumulus-pallet-parachain-system/try-runtime", + "cumulus-pallet-xcm/try-runtime", + "cumulus-pallet-xcmp-queue/try-runtime", + "frame-executive/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-try-runtime/try-runtime", + "pallet-alliance/try-runtime", + "pallet-asset-rate/try-runtime", + "pallet-aura/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-collator-selection/try-runtime", + "pallet-collective/try-runtime", + "pallet-core-fellowship/try-runtime", + "pallet-message-queue/try-runtime", + "pallet-multisig/try-runtime", + "pallet-preimage/try-runtime", + "pallet-proxy/try-runtime", + "pallet-ranked-collective/try-runtime", + "pallet-referenda/try-runtime", + "pallet-salary/try-runtime", + "pallet-scheduler/try-runtime", + "pallet-session/try-runtime", + "pallet-timestamp/try-runtime", + "pallet-transaction-payment/try-runtime", + "pallet-treasury/try-runtime", + "pallet-utility/try-runtime", + "pallet-xcm/try-runtime", + "parachain-info/try-runtime", + "polkadot-runtime-common/try-runtime", + "sp-runtime/try-runtime", +] +std = [ + "codec/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-session-benchmarking/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-aura/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", + "frame-benchmarking?/std", + "frame-executive/std", + "frame-metadata-hash-extension/std", + "frame-support/std", + "frame-system-benchmarking?/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "frame-try-runtime?/std", + "log/std", + "pallet-alliance/std", + "pallet-asset-rate/std", + "pallet-aura/std", + "pallet-authorship/std", + "pallet-balances/std", + "pallet-collator-selection/std", + "pallet-collective/std", + "pallet-core-fellowship/std", + "pallet-message-queue/std", + "pallet-multisig/std", + "pallet-preimage/std", + "pallet-proxy/std", + "pallet-ranked-collective/std", + "pallet-referenda/std", + "pallet-salary/std", + "pallet-scheduler/std", + "pallet-session/std", + "pallet-timestamp/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", + "pallet-treasury/std", + "pallet-utility/std", + "pallet-xcm-benchmarks?/std", + "pallet-xcm/std", + "parachain-info/std", + "parachains-common/std", + "polkadot-core-primitives/std", + "polkadot-parachain-primitives/std", + "polkadot-runtime-common/std", + "paseo-runtime-constants/std", + "scale-info/std", + "serde_json/std", + "sp-api/std", + "sp-arithmetic/std", + "sp-block-builder/std", + "sp-consensus-aura/std", + "sp-core/std", + "sp-genesis-builder/std", + "sp-inherents/std", + "sp-io/std", + "sp-offchain/std", + "sp-runtime/std", + "sp-session/std", + "sp-std/std", + "sp-storage/std", + "sp-transaction-pool/std", + "sp-version/std", + "substrate-wasm-builder", + "system-parachains-constants/std", + "xcm-builder/std", + "xcm-executor/std", + "xcm-runtime-apis/std", + "xcm/std", +] + +# Enable metadata hash generation at compile time for the `CheckMetadataHash` extension. +metadata-hash = ["substrate-wasm-builder?/metadata-hash"] + +# A feature that should be enabled when the runtime should be built for on-chain +# deployment. This will disable stuff that shouldn't be part of the on-chain wasm +# to make it smaller, like logging for example. +on-chain-release-build = ["metadata-hash", "sp-api/disable-logging"] diff --git a/system-parachains/collectives-paseo/build.rs b/system-parachains/collectives-paseo/build.rs new file mode 100644 index 000000000..e65608baa --- /dev/null +++ b/system-parachains/collectives-paseo/build.rs @@ -0,0 +1,29 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[cfg(all(feature = "std", not(feature = "metadata-hash")))] +fn main() { + substrate_wasm_builder::WasmBuilder::build_using_defaults() +} + +#[cfg(all(feature = "std", feature = "metadata-hash"))] +fn main() { + substrate_wasm_builder::WasmBuilder::init_with_defaults() + .enable_metadata_hash("DOT", 10) + .build() +} + +#[cfg(not(feature = "std"))] +fn main() {} diff --git a/system-parachains/collectives-paseo/constants/Cargo.toml b/system-parachains/collectives-paseo/constants/Cargo.toml new file mode 100644 index 000000000..c6f4b792c --- /dev/null +++ b/system-parachains/collectives-paseo/constants/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "collectives-polkadot-runtime-constants" +repository.workspace = true +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true diff --git a/system-parachains/collectives-paseo/constants/src/lib.rs b/system-parachains/collectives-paseo/constants/src/lib.rs new file mode 100644 index 000000000..7fe81f801 --- /dev/null +++ b/system-parachains/collectives-paseo/constants/src/lib.rs @@ -0,0 +1,29 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +#![no_std] + +/// Polkadot Fellowship Salary pallet instance. +pub const FELLOWSHIP_SALARY_PALLET_INDEX: u8 = 64; + +/// Polkadot Fellowship Treasury pallet instance. +pub const FELLOWSHIP_TREASURY_PALLET_INDEX: u8 = 65; + +/// Polkadot Ambassador Salary pallet instance. +pub const AMBASSADOR_SALARY_PALLET_INDEX: u8 = 74; + +/// Polkadot Ambassador Treasury pallet instance. +pub const AMBASSADOR_TREASURY_PALLET_INDEX: u8 = 75; diff --git a/system-parachains/collectives-paseo/src/ambassador/migrations.rs b/system-parachains/collectives-paseo/src/ambassador/migrations.rs new file mode 100644 index 000000000..5782bb58e --- /dev/null +++ b/system-parachains/collectives-paseo/src/ambassador/migrations.rs @@ -0,0 +1,104 @@ +// Copyright (C) 2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Migrations for the Ambassador Program. + +use super::*; +use crate::AccountId; +#[cfg(feature = "try-runtime")] +use frame_support::ensure; +use frame_support::traits::{Defensive, OnRuntimeUpgrade, UnfilteredDispatchable}; +use frame_system::RawOrigin; +use pallet_ranked_collective::WeightInfo; +use sp_core::crypto::Ss58Codec; + +/// The first 21 Head Ambassadors that have been inducted. +/// +/// Query `AmbassadorCollective::members` at block 4,326,024 (hash +/// `0x7ca86d410526e9e3cefa210bfb71b3abc52396e658d5c63f553c8a6ee5845289`). +fn first_21() -> [AccountId; 21] { + [ + AccountId::from_ss58check("14Gn7SEmCgMX7Ukuppnw5TRjA7pao2HFpuJo39frB42tYLEh").unwrap(), + AccountId::from_ss58check("1LboBQLsa1iTpGzZvXcSd5VF7jfUYf6MzPNoRy2HT9D9FNk").unwrap(), + AccountId::from_ss58check("12xRcHjvStkUYgzTh9vyqinN3tUpddgcPnSUcLXZ3ty44Mq1").unwrap(), + AccountId::from_ss58check("16SQKanFTrN18k9UE8EFbtyeSGNFPjRBg8caVhGoUNL8cdh6").unwrap(), + AccountId::from_ss58check("1HPKZzzd9nyr2DdvtPxytNMZm3Ld5nh3BBY4Ecgg9JxgL7G").unwrap(), + AccountId::from_ss58check("13Ec62Cvw9jmPxA23EidSwASPs9X2Vohqv9RCogCfDvXC4c8").unwrap(), + AccountId::from_ss58check("14N5cTFuzJf6irrQkKNAjiADKsCxgk48LUKx2fA77YRruzMW").unwrap(), + AccountId::from_ss58check("1hFmn2CuqXqxHgKDqqs2xRBpsPkiRXzJfcLbfDgsW7qgmpA").unwrap(), + AccountId::from_ss58check("15rYBV5YwGmhzee5PWqrnQtb2HhwWP2rK2f4cLMhFfcNdPZL").unwrap(), + AccountId::from_ss58check("14x5RbyJxD6KvNyncbJQuJJJ3zHinXg57YKwhJ7q9T9aJq4n").unwrap(), + AccountId::from_ss58check("1ZSPR3zNg5Po3obkhXTPR95DepNBzBZ3CyomHXGHK9Uvx6w").unwrap(), + AccountId::from_ss58check("1yCg8NSCgjS4K5KDK5DZGhxUCxmgVyhyG6vBPn5wqUmLuYo").unwrap(), + AccountId::from_ss58check("14VDkd5mWY9SajUUnEg2LgMgVrbY412H7xn7Y7EXjhnGkiBF").unwrap(), + AccountId::from_ss58check("1CRmVRcQymMpot855oKDq76kF19jJezMMkGcrvHh1ozEqXa").unwrap(), + AccountId::from_ss58check("15cZn8K1DaE7qiBWK6mGFJMKYKjFrALTVwe5urpD9PzKSsPY").unwrap(), + AccountId::from_ss58check("146ZZqm2cMHLf3ju7oc8M9JnPaAktuADAKThagKnXqzjPJbZ").unwrap(), + AccountId::from_ss58check("14DJADQdE3bUQMFsjsejwCLiG1tiMDsFhCCiXavyBTKHu6kr").unwrap(), + AccountId::from_ss58check("1HGnvAkk9nbfZ58CzUJhjcrLdEDMkr5qNkqqYkyD5BF5v6Y").unwrap(), + AccountId::from_ss58check("155G4q3yS7gW933PrdxrY4ersg2YhqWUnGC8GUd7NWiZwuKj").unwrap(), + AccountId::from_ss58check("16XYgDGN6MxvdmjhRsHLT1oqQVDwGdEPVQqC42pRXiZrE8su").unwrap(), + AccountId::from_ss58check("15fHj7Q7SYxqMgZ38UpjXS8cxdq77rczTP3JgY9JVi5piMPN").unwrap(), + ] +} + +/// Removes everyone from the Ambassador collective besides the first 21 HAs that were registered. +pub struct TruncateHeadAmbassadors; + +impl OnRuntimeUpgrade for TruncateHeadAmbassadors { + fn on_runtime_upgrade() -> Weight { + let mut to_be_removed = + pallet_ranked_collective::Members::::iter_keys() + .collect::>(); + + // first 21 should not be removed + let first_21 = first_21(); + to_be_removed.retain(|acc| !first_21.contains(acc)); + + log::info!("Removing {} member(s) from the Ambassador Collective.", to_be_removed.len()); + + for acc in &to_be_removed { + log::info!("Removing member {}", acc.to_ss58check()); + + // The pallet has no nice trait that we could call, so need to use the extrinsic... + let origin: RuntimeOrigin = RawOrigin::Root.into(); + + let call = pallet_ranked_collective::Call::::remove_member { who: acc.clone().into(), min_rank: 3 }; + let _ = call.dispatch_bypass_filter(origin).defensive(); + } + + crate::weights::pallet_ranked_collective_ambassador_collective::WeightInfo::::remove_member(3).saturating_mul(to_be_removed.len() as u64) + } + + #[cfg(feature = "try-runtime")] + fn post_upgrade(_: Vec) -> Result<(), sp_runtime::TryRuntimeError> { + let num = + pallet_ranked_collective::Members::::iter_keys() + .count(); + ensure!(num <= 21, "There must be not more than 21 Head Ambassadors."); + + let seed = first_21(); + for ambassador in + pallet_ranked_collective::Members::::iter_keys() + { + ensure!( + seed.contains(&ambassador), + "Ambassador is not in the seed and should have been removed." + ); + } + + Ok(()) + } +} diff --git a/system-parachains/collectives-paseo/src/ambassador/mod.rs b/system-parachains/collectives-paseo/src/ambassador/mod.rs new file mode 100644 index 000000000..6096c2ef2 --- /dev/null +++ b/system-parachains/collectives-paseo/src/ambassador/mod.rs @@ -0,0 +1,375 @@ +// Copyright (C) 2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! The Polkadot Ambassador Program. +//! +//! The module defines the following on-chain functionality of the Ambassador Program: +//! +//! - Managed set of program members, where every member has a [rank](ranks) (via +//! [AmbassadorCollective](pallet_ranked_collective)). +//! - Referendum functionality for the program members to propose, vote on, and execute proposals on +//! behalf of the members of a certain [rank](Origin) (via +//! [AmbassadorReferenda](pallet_referenda)). +//! - Promotion and demotion periods, register of members' activity, and rank based salaries (via +//! [AmbassadorCore](pallet_core_fellowship)). +//! - Members' salaries (via [AmbassadorSalary](pallet_salary), requiring a member to be imported or +//! inducted into [AmbassadorCore](pallet_core_fellowship)). +//! - Ambassador Program Sub-Treasury (via [AmbassadorTreasury](pallet_treasury)). + +pub mod migrations; +pub mod origins; +mod tracks; + +pub use origins::pallet_origins as pallet_ambassador_origins; + +use crate::{ + xcm_config::{AssetHubUsdt, FellowshipAdminBodyId}, + AssetRateWithNative, *, +}; +use frame_support::{ + pallet_prelude::PalletInfoAccess, + traits::{EitherOf, MapSuccess, TryMapSuccess}, +}; +use frame_system::EnsureRootWithSuccess; +use origins::pallet_origins::{EnsureAmbassadorsFrom, HeadAmbassadors, Origin, SeniorAmbassadors}; +use pallet_ranked_collective::{MemberIndex, Rank, Votes}; +use polkadot_runtime_common::impls::{LocatableAssetConverter, VersionedLocationConverter}; +use sp_core::ConstU128; +use sp_runtime::{ + traits::{ + CheckedReduceBy, Convert, ConvertToValue, IdentityLookup, MaybeConvert, Replace, + ReplaceWithDefault, + }, + Permill, +}; +use xcm::prelude::*; +use xcm_builder::{AliasesIntoAccountId32, PayOverXcm}; + +/// The Ambassador Program's member ranks. +pub mod ranks { + use super::Rank; + + #[allow(dead_code)] + pub const CANDIDATE: Rank = 0; + pub const AMBASSADOR: Rank = 1; + pub const SENIOR_AMBASSADOR: Rank = 2; + pub const HEAD_AMBASSADOR: Rank = 3; +} + +impl pallet_ambassador_origins::Config for Runtime {} + +/// Demotion is by any of: +/// - Root can demote arbitrarily; +/// - the FellowshipAdmin voice (i.e. token holder referendum) can demote arbitrarily; +/// - Head Ambassadors voice can demote Senior Ambassador or Ambassador; +/// - Senior Ambassadors voice can demote Ambassador. +pub type DemoteOrigin = EitherOf< + EnsureRootWithSuccess>, + EitherOf< + MapSuccess< + EnsureXcm>, + Replace>, + >, + TryMapSuccess< + EnsureAmbassadorsFrom>, + CheckedReduceBy>, + >, + >, +>; + +/// Promotion and approval (rank-retention) is by any of: +/// - Root can promote arbitrarily. +/// - the FellowshipAdmin voice (i.e. token holder referendum) can promote arbitrarily. +/// - Head Ambassadors voice can promote to Senior Ambassador and Ambassador; +/// - Senior Ambassadors voice can promote to Ambassador. +pub type PromoteOrigin = DemoteOrigin; + +/// Root, FellowshipAdmin or HeadAmbassadors. +pub type OpenGovOrHeadAmbassadors = EitherOfDiverse< + EnsureRoot, + EitherOfDiverse< + HeadAmbassadors, + EnsureXcm>, + >, +>; + +/// Ambassadors' vote weights for referendums. +/// - Each member with an excess rank of 0 gets 1 vote; +/// - ...with an excess rank of 1 gets 5 votes; +/// - ...with an excess rank of 2 gets 10 votes; +/// - ...with an excess rank of 3 gets 15 votes; +pub struct VoteWeight; +impl Convert for VoteWeight { + fn convert(excess: Rank) -> Votes { + if excess == 0 { + 1 + } else { + (excess * 5).into() + } + } +} + +pub type AmbassadorCollectiveInstance = pallet_ranked_collective::Instance2; + +impl pallet_ranked_collective::Config for Runtime { + type WeightInfo = weights::pallet_ranked_collective_ambassador_collective::WeightInfo; + type RuntimeEvent = RuntimeEvent; + // Promotions must be done through the [`crate::AmbassadorCore`] pallet instance. + #[cfg(not(feature = "runtime-benchmarks"))] + type PromoteOrigin = frame_support::traits::NeverEnsureOrigin; + #[cfg(feature = "runtime-benchmarks")] + type PromoteOrigin = EnsureRootWithSuccess>; + type DemoteOrigin = DemoteOrigin; + type AddOrigin = MapSuccess>; + type RemoveOrigin = Self::DemoteOrigin; + type Polls = AmbassadorReferenda; + type MinRankOfClass = sp_runtime::traits::Identity; + type VoteWeight = VoteWeight; + type ExchangeOrigin = OpenGovOrHeadAmbassadors; + type MemberSwappedHandler = (crate::AmbassadorCore, crate::AmbassadorSalary); + #[cfg(feature = "runtime-benchmarks")] + type MaxMemberCount = (); + #[cfg(not(feature = "runtime-benchmarks"))] + type MaxMemberCount = AmbassadorMemberCount; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkSetup = (crate::AmbassadorCore, crate::AmbassadorSalary); +} + +/// Limits the number of Head Ambassadors to 21. +/// +/// The value of 21 comes from the initial OpenGov proposal: +pub struct AmbassadorMemberCount; +impl MaybeConvert for AmbassadorMemberCount { + fn maybe_convert(rank: Rank) -> Option { + (rank == 3).then_some(21) + } +} + +parameter_types! { + pub const AlarmInterval: BlockNumber = 1; + pub const SubmissionDeposit: Balance = 0; + pub const UndecidingTimeout: BlockNumber = 7 * DAYS; +} + +pub type AmbassadorReferendaInstance = pallet_referenda::Instance2; + +impl pallet_referenda::Config for Runtime { + type WeightInfo = weights::pallet_referenda_ambassador_referenda::WeightInfo; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type Scheduler = Scheduler; + type Currency = Balances; + // Any member of the Ambassador Program can submit a proposal. + type SubmitOrigin = pallet_ranked_collective::EnsureMember< + Runtime, + AmbassadorCollectiveInstance, + { ranks::AMBASSADOR }, + >; + // Referendum can be canceled by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a vote among all Head Ambassadors. + type CancelOrigin = OpenGovOrHeadAmbassadors; + // Referendum can be killed by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a vote among all Head Ambassadors. + type KillOrigin = OpenGovOrHeadAmbassadors; + type Slash = ToParentTreasury; + type Votes = Votes; + type Tally = pallet_ranked_collective::TallyOf; + type SubmissionDeposit = SubmissionDeposit; + type MaxQueued = ConstU32<20>; + type UndecidingTimeout = UndecidingTimeout; + type AlarmInterval = AlarmInterval; + type Tracks = tracks::TracksInfo; + type Preimages = Preimage; +} + +pub type AmbassadorCoreInstance = pallet_core_fellowship::Instance2; + +impl pallet_core_fellowship::Config for Runtime { + type WeightInfo = weights::pallet_core_fellowship_ambassador_core::WeightInfo; + type RuntimeEvent = RuntimeEvent; + type Members = pallet_ranked_collective::Pallet; + type Balance = Balance; + // Parameters are set by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a vote among all Head Ambassadors. + type ParamsOrigin = OpenGovOrHeadAmbassadors; + // Induction (creating a candidate) is by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a single member of the Ambassador Program; + type InductOrigin = EitherOfDiverse< + EnsureRoot, + EitherOfDiverse< + EnsureXcm>, + pallet_ranked_collective::EnsureMember< + Runtime, + AmbassadorCollectiveInstance, + { ranks::AMBASSADOR }, + >, + >, + >; + type ApproveOrigin = PromoteOrigin; + type PromoteOrigin = PromoteOrigin; + type FastPromoteOrigin = frame_support::traits::NeverEnsureOrigin; + type EvidenceSize = ConstU32<65536>; + // TODO https://github.com/polkadot-fellows/runtimes/issues/370 + type MaxRank = ConstU32<9>; +} + +parameter_types! { + // The interior location on AssetHub for the paying account. This is the Ambassador Salary + // pallet instance. This sovereign account will need funding. + pub AmbassadorSalaryLocation: InteriorLocation = + PalletInstance(::index() as u8).into(); +} + +const USDT_UNITS: u128 = 1_000_000; + +/// [`PayOverXcm`] setup to pay the Ambassador salary on the AssetHub in USDt. +pub type AmbassadorSalaryPaymaster = PayOverXcm< + AmbassadorSalaryLocation, + crate::xcm_config::XcmRouter, + crate::PolkadotXcm, + ConstU32<{ 6 * HOURS }>, + AccountId, + (), + ConvertToValue, + AliasesIntoAccountId32<(), AccountId>, +>; + +pub type AmbassadorSalaryInstance = pallet_salary::Instance2; + +impl pallet_salary::Config for Runtime { + type WeightInfo = weights::pallet_salary_ambassador_salary::WeightInfo; + type RuntimeEvent = RuntimeEvent; + + #[cfg(not(feature = "runtime-benchmarks"))] + type Paymaster = AmbassadorSalaryPaymaster; + #[cfg(feature = "runtime-benchmarks")] + type Paymaster = crate::impls::benchmarks::PayWithEnsure< + AmbassadorSalaryPaymaster, + crate::impls::benchmarks::OpenHrmpChannel>, + >; + type Members = pallet_ranked_collective::Pallet; + + #[cfg(not(feature = "runtime-benchmarks"))] + type Salary = pallet_core_fellowship::Pallet; + #[cfg(feature = "runtime-benchmarks")] + type Salary = frame_support::traits::tokens::ConvertRank< + crate::impls::benchmarks::RankToSalary, + >; + // 15 days to register for a salary payment. + type RegistrationPeriod = ConstU32<{ 15 * DAYS }>; + // 15 days to claim the salary payment. + type PayoutPeriod = ConstU32<{ 15 * DAYS }>; + // Total monthly salary budget. + // 10,000 USDT for up to 21 members. + type Budget = ConstU128<{ 10_000 * 21 * USDT_UNITS }>; +} + +parameter_types! { + pub const AmbassadorTreasuryPalletId: PalletId = AMBASSADOR_TREASURY_PALLET_ID; + pub const ProposalBond: Permill = Permill::from_percent(100); + pub const Burn: Permill = Permill::from_percent(0); + pub const MaxBalance: Balance = Balance::MAX; + // The asset's interior location for the paying account. This is the Ambassador Treasury + // pallet instance. + pub AmbassadorTreasuryInteriorLocation: InteriorLocation = + PalletInstance(::index() as u8).into(); +} + +#[cfg(feature = "runtime-benchmarks")] +parameter_types! { + pub const ProposalBondForBenchmark: Permill = Permill::from_percent(5); +} + +/// [`PayOverXcm`] setup to pay the Ambasssador Treasury. +pub type AmbassadorTreasuryPaymaster = PayOverXcm< + AmbassadorTreasuryInteriorLocation, + crate::xcm_config::XcmRouter, + crate::PolkadotXcm, + ConstU32<{ 6 * HOURS }>, + VersionedLocation, + VersionedLocatableAsset, + LocatableAssetConverter, + VersionedLocationConverter, +>; + +pub type AmbassadorTreasuryInstance = pallet_treasury::Instance2; + +impl pallet_treasury::Config for Runtime { + type WeightInfo = weights::pallet_treasury_ambassador_treasury::WeightInfo; + type RuntimeEvent = RuntimeEvent; + type PalletId = AmbassadorTreasuryPalletId; + type Currency = Balances; + type RejectOrigin = OpenGovOrHeadAmbassadors; + type SpendPeriod = ConstU32<{ 7 * DAYS }>; + type Burn = Burn; + type BurnDestination = (); + type SpendFunds = (); + type MaxApprovals = ConstU32<100>; + type SpendOrigin = EitherOf< + EitherOf< + EnsureRootWithSuccess, + MapSuccess< + EnsureXcm>, + Replace>, + >, + >, + EitherOf< + MapSuccess>>, + MapSuccess>>, + >, + >; + type AssetKind = VersionedLocatableAsset; + type Beneficiary = VersionedLocation; + type BeneficiaryLookup = IdentityLookup; + #[cfg(not(feature = "runtime-benchmarks"))] + type Paymaster = AmbassadorTreasuryPaymaster; + #[cfg(feature = "runtime-benchmarks")] + type Paymaster = crate::impls::benchmarks::PayWithEnsure< + AmbassadorTreasuryPaymaster, + crate::impls::benchmarks::OpenHrmpChannel>, + >; + type BalanceConverter = AssetRateWithNative; + type PayoutPeriod = ConstU32<{ 30 * DAYS }>; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = polkadot_runtime_common::impls::benchmarks::TreasuryArguments< + sp_core::ConstU8<1>, + ConstU32<1000>, + >; +} + +#[cfg(all(test, not(feature = "runtime-benchmarks")))] +mod tests { + use super::*; + + type Limit = + >::MaxMemberCount; + + #[test] + fn ambassador_rank_limit_works() { + assert_eq!(Limit::maybe_convert(0), None); + assert_eq!(Limit::maybe_convert(1), None); + assert_eq!(Limit::maybe_convert(2), None); + assert_eq!(Limit::maybe_convert(3), Some(21)); + assert_eq!(Limit::maybe_convert(4), None); + } +} diff --git a/system-parachains/collectives-paseo/src/ambassador/origins.rs b/system-parachains/collectives-paseo/src/ambassador/origins.rs new file mode 100644 index 000000000..691fd10f2 --- /dev/null +++ b/system-parachains/collectives-paseo/src/ambassador/origins.rs @@ -0,0 +1,112 @@ +// Copyright (C) 2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! The Ambassador Program's origins. + +#[frame_support::pallet] +pub mod pallet_origins { + use crate::ambassador::ranks; + use frame_support::pallet_prelude::*; + use pallet_ranked_collective::Rank; + + #[pallet::pallet] + pub struct Pallet(PhantomData); + + /// The pallet configuration trait. + #[pallet::config] + pub trait Config: frame_system::Config {} + + #[derive(PartialEq, Eq, Clone, MaxEncodedLen, Encode, Decode, TypeInfo, RuntimeDebug)] + #[pallet::origin] + pub enum Origin { + /// Plurality voice of the [ranks::AMBASSADOR] members or above given via + /// referendum. + Ambassadors, + /// Plurality voice of the [ranks::SENIOR_AMBASSADOR] members or above given via + /// referendum. + SeniorAmbassadors, + /// Plurality voice of the [ranks::HEAD_AMBASSADOR] members given via referendum. + HeadAmbassadors, + } + + impl Origin { + /// Returns the rank that the origin `self` speaks for, or `None` if it doesn't speak for + /// any. + pub fn as_voice(&self) -> Option { + Some(match &self { + Origin::Ambassadors => ranks::AMBASSADOR, + Origin::SeniorAmbassadors => ranks::SENIOR_AMBASSADOR, + Origin::HeadAmbassadors => ranks::HEAD_AMBASSADOR, + }) + } + } + + /// Ensures [`Origin::HeadAmbassadors`] origin. + pub struct HeadAmbassadors; + impl> + From> EnsureOrigin for HeadAmbassadors { + type Success = (); + fn try_origin(o: O) -> Result { + o.into().and_then(|o| match o { + Origin::HeadAmbassadors => Ok(()), + r => Err(O::from(r)), + }) + } + + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin() -> Result { + Ok(O::from(Origin::HeadAmbassadors)) + } + } + + /// Ensures [`Origin::SeniorAmbassadors`] origin. + pub struct SeniorAmbassadors; + impl> + From> EnsureOrigin for SeniorAmbassadors { + type Success = (); + fn try_origin(o: O) -> Result { + o.into().and_then(|o| match o { + Origin::SeniorAmbassadors => Ok(()), + r => Err(O::from(r)), + }) + } + + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin() -> Result { + Ok(O::from(Origin::SeniorAmbassadors)) + } + } + + /// Ensures that the origin is a plurality voice of the a given rank `R` or above. + /// Success is the corresponding origin rank. + pub struct EnsureAmbassadorsFrom(PhantomData); + impl, O: Into> + From> EnsureOrigin + for EnsureAmbassadorsFrom + { + type Success = Rank; + fn try_origin(o: O) -> Result { + o.into().and_then(|o| match Origin::as_voice(&o) { + Some(r) if r >= R::get() => Ok(r), + _ => Err(O::from(o)), + }) + } + + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin() -> Result { + ranks::HEAD_AMBASSADOR + .ge(&R::get()) + .then(|| O::from(Origin::HeadAmbassadors)) + .ok_or(()) + } + } +} diff --git a/system-parachains/collectives-paseo/src/ambassador/tracks.rs b/system-parachains/collectives-paseo/src/ambassador/tracks.rs new file mode 100644 index 000000000..d2a5a77b2 --- /dev/null +++ b/system-parachains/collectives-paseo/src/ambassador/tracks.rs @@ -0,0 +1,138 @@ +// Copyright (C) 2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! The Ambassador Program's referenda voting tracks. + +use super::Origin; +use crate::{Balance, BlockNumber, RuntimeOrigin, DAYS, DOLLARS, HOURS}; +use sp_runtime::Perbill; + +/// Referendum `TrackId` type. +pub type TrackId = u16; + +/// Referendum track IDs. +pub mod constants { + use super::TrackId; + + pub const AMBASSADOR: TrackId = 1; + pub const SENIOR_AMBASSADOR: TrackId = 2; + pub const HEAD_AMBASSADOR: TrackId = 3; +} + +/// The type implementing the [`pallet_referenda::TracksInfo`] trait for referenda pallet. +pub struct TracksInfo; + +/// Information on the voting tracks. +impl pallet_referenda::TracksInfo for TracksInfo { + type Id = TrackId; + + type RuntimeOrigin = ::PalletsOrigin; + + /// Return the array of available tracks and their information. + fn tracks() -> &'static [(Self::Id, pallet_referenda::TrackInfo)] { + static DATA: [(TrackId, pallet_referenda::TrackInfo); 3] = [ + ( + constants::AMBASSADOR, + pallet_referenda::TrackInfo { + name: "ambassador", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 24 * HOURS, + decision_period: 7 * DAYS, + confirm_period: 24 * HOURS, + min_enactment_period: HOURS, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(50), + }, + }, + ), + ( + constants::SENIOR_AMBASSADOR, + pallet_referenda::TrackInfo { + name: "senior ambassador", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 24 * HOURS, + decision_period: 7 * DAYS, + confirm_period: 24 * HOURS, + min_enactment_period: HOURS, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(50), + }, + }, + ), + ( + constants::HEAD_AMBASSADOR, + pallet_referenda::TrackInfo { + name: "head ambassador", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 24 * HOURS, + decision_period: 7 * DAYS, + confirm_period: 24 * HOURS, + min_enactment_period: HOURS, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(50), + }, + }, + ), + ]; + &DATA[..] + } + + /// Determine the voting track for the given `origin`. + fn track_for(id: &Self::RuntimeOrigin) -> Result { + #[cfg(feature = "runtime-benchmarks")] + { + // For benchmarks, we enable a root origin. + // It is important that this is not available in production! + let root: Self::RuntimeOrigin = frame_system::RawOrigin::Root.into(); + if &root == id { + return Ok(constants::HEAD_AMBASSADOR) + } + } + + match Origin::try_from(id.clone()) { + Ok(Origin::Ambassadors) => Ok(constants::AMBASSADOR), + Ok(Origin::SeniorAmbassadors) => Ok(constants::SENIOR_AMBASSADOR), + Ok(Origin::HeadAmbassadors) => Ok(constants::HEAD_AMBASSADOR), + _ => Err(()), + } + } +} + +// implements [`frame_support::traits::Get`] for [`TracksInfo`] +pallet_referenda::impl_tracksinfo_get!(TracksInfo, Balance, BlockNumber); diff --git a/system-parachains/collectives-paseo/src/fellowship/mod.rs b/system-parachains/collectives-paseo/src/fellowship/mod.rs new file mode 100644 index 000000000..b1354bd64 --- /dev/null +++ b/system-parachains/collectives-paseo/src/fellowship/mod.rs @@ -0,0 +1,351 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Cumulus. + +// Cumulus is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Cumulus is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Cumulus. If not, see . + +//! The Polkadot Technical Fellowship. + +mod origins; +mod tracks; +use crate::{ + fellowship::origins::EnsureCanFastPromoteTo, + impls::ToParentTreasury, + weights, + xcm_config::{AssetHubUsdt, LocationToAccountId, TreasurerBodyId}, + AccountId, AssetRateWithNative, Balance, Balances, FellowshipReferenda, GovernanceLocation, + PolkadotTreasuryAccount, Preimage, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, + Scheduler, DAYS, FELLOWSHIP_TREASURY_PALLET_ID, +}; +use frame_support::{ + parameter_types, + traits::{ + EitherOf, EitherOfDiverse, MapSuccess, OriginTrait, PalletInfoAccess, TryWithMorphedArg, + }, + PalletId, +}; +use frame_system::{EnsureRoot, EnsureRootWithSuccess}; +pub use origins::{ + pallet_origins as pallet_fellowship_origins, Architects, EnsureCanPromoteTo, EnsureCanRetainAt, + EnsureFellowship, Fellows, Masters, Members, ToVoice, +}; +use pallet_ranked_collective::EnsureOfRank; +use pallet_xcm::{EnsureXcm, IsVoiceOfBody}; +use polkadot_runtime_common::impls::{ + LocatableAssetConverter, VersionedLocatableAsset, VersionedLocationConverter, +}; +use polkadot_runtime_constants::{currency::GRAND, time::HOURS, xcm::body::FELLOWSHIP_ADMIN_INDEX}; +use sp_arithmetic::Permill; +use sp_core::{ConstU128, ConstU32}; +use sp_runtime::traits::{ + ConstU16, ConvertToValue, IdentityLookup, Replace, ReplaceWithDefault, TakeFirst, +}; +use xcm_builder::{AliasesIntoAccountId32, PayOverXcm}; + +#[cfg(feature = "runtime-benchmarks")] +use crate::impls::benchmarks::{OpenHrmpChannel, PayWithEnsure}; + +/// The Fellowship members' ranks. +pub mod ranks { + use pallet_ranked_collective::Rank; + + pub const DAN_1: Rank = 1; // aka Members. + pub const DAN_2: Rank = 2; + pub const DAN_3: Rank = 3; // aka Fellows. + pub const DAN_4: Rank = 4; // aka Architects. + pub const DAN_5: Rank = 5; + pub const DAN_6: Rank = 6; + pub const DAN_7: Rank = 7; // aka Masters. + pub const DAN_8: Rank = 8; + pub const DAN_9: Rank = 9; +} + +parameter_types! { + pub const FellowshipAdminBodyId: BodyId = BodyId::Index(FELLOWSHIP_ADMIN_INDEX); +} + +impl pallet_fellowship_origins::Config for Runtime {} + +pub type FellowshipReferendaInstance = pallet_referenda::Instance1; + +impl pallet_referenda::Config for Runtime { + type WeightInfo = weights::pallet_referenda_fellowship_referenda::WeightInfo; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type Scheduler = Scheduler; + type Currency = Balances; + // Fellows can submit proposals. + type SubmitOrigin = EitherOf< + pallet_ranked_collective::EnsureMember, + MapSuccess< + TryWithMorphedArg< + RuntimeOrigin, + ::PalletsOrigin, + ToVoice, + EnsureOfRank, + (AccountId, u16), + >, + TakeFirst, + >, + >; + type CancelOrigin = Architects; + type KillOrigin = Masters; + type Slash = ToParentTreasury; + type Votes = pallet_ranked_collective::Votes; + type Tally = pallet_ranked_collective::TallyOf; + type SubmissionDeposit = ConstU128<0>; + type MaxQueued = ConstU32<100>; + type UndecidingTimeout = ConstU32<{ 7 * DAYS }>; + type AlarmInterval = ConstU32<1>; + type Tracks = tracks::TracksInfo; + type Preimages = Preimage; +} + +pub type FellowshipCollectiveInstance = pallet_ranked_collective::Instance1; + +impl pallet_ranked_collective::Config for Runtime { + type WeightInfo = weights::pallet_ranked_collective_fellowship_collective::WeightInfo; + type RuntimeEvent = RuntimeEvent; + + #[cfg(not(feature = "runtime-benchmarks"))] + // Promotions and the induction of new members are serviced by `FellowshipCore` pallet instance. + type PromoteOrigin = frame_system::EnsureNever; + #[cfg(feature = "runtime-benchmarks")] + // The maximum value of `u16` set as a success value for the root to ensure the benchmarks will + // pass. + type PromoteOrigin = EnsureRootWithSuccess>; + + // Demotion is by any of: + // - Root can demote arbitrarily. + // - the FellowshipAdmin origin (i.e. token holder referendum); + // + // The maximum value of `u16` set as a success value for the root to ensure the benchmarks will + // pass. + type DemoteOrigin = EitherOf< + EnsureRootWithSuccess>, + MapSuccess< + EnsureXcm>, + Replace>, + >, + >; + // Exchange is by any of: + // - Root can exchange arbitrarily. + // - the Fellows origin + type ExchangeOrigin = + EitherOf>, Fellows>; + type AddOrigin = MapSuccess>; + type RemoveOrigin = Self::DemoteOrigin; + type Polls = FellowshipReferenda; + type MinRankOfClass = tracks::MinRankOfClass; + type MemberSwappedHandler = (crate::FellowshipCore, crate::FellowshipSalary); + type VoteWeight = pallet_ranked_collective::Geometric; + type MaxMemberCount = (); + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkSetup = (crate::FellowshipCore, crate::FellowshipSalary); +} + +pub type FellowshipCoreInstance = pallet_core_fellowship::Instance1; + +impl pallet_core_fellowship::Config for Runtime { + type WeightInfo = weights::pallet_core_fellowship_fellowship_core::WeightInfo; + type RuntimeEvent = RuntimeEvent; + type Members = pallet_ranked_collective::Pallet; + type Balance = Balance; + // Parameters are set by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a vote among all Fellows. + type ParamsOrigin = EitherOfDiverse< + EnsureXcm>, + Fellows, + >; + // Induction (creating a candidate) is by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a single Fellow; + // - a vote among all Members. + type InductOrigin = EitherOfDiverse< + EnsureXcm>, + EitherOfDiverse< + pallet_ranked_collective::EnsureMember< + Runtime, + FellowshipCollectiveInstance, + { ranks::DAN_3 }, + >, + Members, + >, + >; + // Approval (rank-retention) of a Member's current rank is by any of: + // - Root; + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a vote by the rank two above the current rank for all retention up to the Master rank. + type ApproveOrigin = EitherOf< + MapSuccess< + EnsureXcm>, + Replace>, + >, + EnsureCanRetainAt, + >; + // Promotion is by any of: + // - Root can promote arbitrarily. + // - the FellowshipAdmin origin (i.e. token holder referendum); + // - a vote by the rank two above the new rank for all promotions up to the Master rank. + type PromoteOrigin = EitherOf< + MapSuccess< + EnsureXcm>, + Replace>, + >, + EnsureCanPromoteTo, + >; + type FastPromoteOrigin = EnsureCanFastPromoteTo; + type EvidenceSize = ConstU32<65536>; + type MaxRank = ConstU32<9>; +} + +pub type FellowshipSalaryInstance = pallet_salary::Instance1; + +use xcm::prelude::*; + +parameter_types! { + // The interior location on AssetHub for the paying account. This is the Fellowship Salary + // pallet instance. This sovereign account will need funding. + pub Interior: InteriorLocation = PalletInstance(::index() as u8).into(); +} + +const USDT_UNITS: u128 = 1_000_000; + +/// [`PayOverXcm`] setup to pay the Fellowship salary on the AssetHub in USDT. +pub type FellowshipSalaryPaymaster = PayOverXcm< + Interior, + crate::xcm_config::XcmRouter, + crate::PolkadotXcm, + ConstU32<{ 6 * HOURS }>, + AccountId, + (), + ConvertToValue, + AliasesIntoAccountId32<(), AccountId>, +>; + +impl pallet_salary::Config for Runtime { + type WeightInfo = weights::pallet_salary_fellowship_salary::WeightInfo; + type RuntimeEvent = RuntimeEvent; + + #[cfg(not(feature = "runtime-benchmarks"))] + type Paymaster = FellowshipSalaryPaymaster; + #[cfg(feature = "runtime-benchmarks")] + type Paymaster = PayWithEnsure>>; + type Members = pallet_ranked_collective::Pallet; + + #[cfg(not(feature = "runtime-benchmarks"))] + type Salary = pallet_core_fellowship::Pallet; + #[cfg(feature = "runtime-benchmarks")] + type Salary = frame_support::traits::tokens::ConvertRank< + crate::impls::benchmarks::RankToSalary, + >; + // 15 days to register for a salary payment. + type RegistrationPeriod = ConstU32<{ 15 * DAYS }>; + // 15 days to claim the salary payment. + type PayoutPeriod = ConstU32<{ 15 * DAYS }>; + // Total monthly salary budget. + type Budget = ConstU128<{ 250_000 * USDT_UNITS }>; +} + +parameter_types! { + pub const FellowshipTreasuryPalletId: PalletId = FELLOWSHIP_TREASURY_PALLET_ID; + pub const ProposalBond: Permill = Permill::from_percent(100); + pub const Burn: Permill = Permill::from_percent(0); + pub const MaxBalance: Balance = Balance::MAX; + // The asset's interior location for the paying account. This is the Fellowship Treasury + // pallet instance. + pub FellowshipTreasuryInteriorLocation: InteriorLocation = + PalletInstance(::index() as u8).into(); +} + +#[cfg(feature = "runtime-benchmarks")] +parameter_types! { + pub const ProposalBondForBenchmark: Permill = Permill::from_percent(5); +} + +/// [`PayOverXcm`] setup to pay the Fellowship Treasury. +pub type FellowshipTreasuryPaymaster = PayOverXcm< + FellowshipTreasuryInteriorLocation, + crate::xcm_config::XcmRouter, + crate::PolkadotXcm, + ConstU32<{ 6 * HOURS }>, + VersionedLocation, + VersionedLocatableAsset, + LocatableAssetConverter, + VersionedLocationConverter, +>; + +pub type FellowshipTreasuryInstance = pallet_treasury::Instance1; + +impl pallet_treasury::Config for Runtime { + type WeightInfo = weights::pallet_treasury_fellowship_treasury::WeightInfo; + type RuntimeEvent = RuntimeEvent; + type PalletId = FellowshipTreasuryPalletId; + type Currency = Balances; + type RejectOrigin = EitherOfDiverse< + EnsureRoot, + EitherOfDiverse>, Fellows>, + >; + type SpendPeriod = ConstU32<{ 7 * DAYS }>; + type Burn = Burn; + type BurnDestination = (); + type SpendFunds = (); + type MaxApprovals = ConstU32<100>; + type SpendOrigin = EitherOf< + EitherOf< + EnsureRootWithSuccess, + MapSuccess< + EnsureXcm>, + Replace>, + >, + >, + EitherOf< + MapSuccess>>, + MapSuccess>>, + >, + >; + type AssetKind = VersionedLocatableAsset; + type Beneficiary = VersionedLocation; + type BeneficiaryLookup = IdentityLookup; + #[cfg(not(feature = "runtime-benchmarks"))] + type Paymaster = FellowshipTreasuryPaymaster; + #[cfg(feature = "runtime-benchmarks")] + type Paymaster = PayWithEnsure>>; + type BalanceConverter = AssetRateWithNative; + type PayoutPeriod = ConstU32<{ 30 * DAYS }>; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = polkadot_runtime_common::impls::benchmarks::TreasuryArguments< + sp_core::ConstU8<1>, + ConstU32<1000>, + >; +} + +#[cfg(test)] +mod tests { + use super::*; + use sp_runtime::traits::MaybeConvert; + + type MaxMemberCount = + >::MaxMemberCount; + + #[test] + fn max_member_count_correct() { + for i in 0..10 { + let limit: Option = MaxMemberCount::maybe_convert(i); + assert!(limit.is_none(), "Fellowship has no member limit"); + } + } +} diff --git a/system-parachains/collectives-paseo/src/fellowship/origins.rs b/system-parachains/collectives-paseo/src/fellowship/origins.rs new file mode 100644 index 000000000..b6815e673 --- /dev/null +++ b/system-parachains/collectives-paseo/src/fellowship/origins.rs @@ -0,0 +1,269 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Cumulus. + +// Cumulus is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Cumulus is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Cumulus. If not, see . + +//! Fellowship custom origins. + +use super::ranks; +pub use pallet_origins::*; + +#[frame_support::pallet] +pub mod pallet_origins { + use super::ranks; + use frame_support::pallet_prelude::*; + use pallet_ranked_collective::Rank; + + #[pallet::config] + pub trait Config: frame_system::Config {} + + #[pallet::pallet] + pub struct Pallet(_); + + #[derive(PartialEq, Eq, Clone, MaxEncodedLen, Encode, Decode, TypeInfo, RuntimeDebug)] + #[pallet::origin] + pub enum Origin { + /// Origin aggregated through weighted votes of those with rank 1 or above; `Success` is 1. + /// Aka the "voice" of all Members. + Members, + /// Origin aggregated through weighted votes of those with rank 2 or above; `Success` is 2. + /// Aka the "voice" of members at least II Dan. + Fellowship2Dan, + /// Origin aggregated through weighted votes of those with rank 3 or above; `Success` is 3. + /// Aka the "voice" of all Fellows. + Fellows, + /// Origin aggregated through weighted votes of those with rank 4 or above; `Success` is 4. + /// Aka the "voice" of members at least IV Dan. + Architects, + /// Origin aggregated through weighted votes of those with rank 5 or above; `Success` is 5. + /// Aka the "voice" of members at least V Dan. + Fellowship5Dan, + /// Origin aggregated through weighted votes of those with rank 6 or above; `Success` is 6. + /// Aka the "voice" of members at least VI Dan. + Fellowship6Dan, + /// Origin aggregated through weighted votes of those with rank 7 or above; `Success` is 7. + /// Aka the "voice" of all Masters. + Masters, + /// Origin aggregated through weighted votes of those with rank 8 or above; `Success` is 8. + /// Aka the "voice" of members at least VIII Dan. + Fellowship8Dan, + /// Origin aggregated through weighted votes of those with rank 9 or above; `Success` is 9. + /// Aka the "voice" of members at least IX Dan. + Fellowship9Dan, + + /// Origin aggregated through weighted votes of those with rank 3 or above when voting on + /// a fortnight-long track; `Success` is 1. + RetainAt1Dan, + /// Origin aggregated through weighted votes of those with rank 4 or above when voting on + /// a fortnight-long track; `Success` is 2. + RetainAt2Dan, + /// Origin aggregated through weighted votes of those with rank 5 or above when voting on + /// a fortnight-long track; `Success` is 3. + RetainAt3Dan, + /// Origin aggregated through weighted votes of those with rank 6 or above when voting on + /// a fortnight-long track; `Success` is 4. + RetainAt4Dan, + /// Origin aggregated through weighted votes of those with rank 7 or above when voting on + /// a fortnight-long track; `Success` is 5. + RetainAt5Dan, + /// Origin aggregated through weighted votes of those with rank 8 or above when voting on + /// a fortnight-long track; `Success` is 6. + RetainAt6Dan, + + /// Origin aggregated through weighted votes of those with rank 3 or above when voting on + /// a month-long track; `Success` is 1. + PromoteTo1Dan, + /// Origin aggregated through weighted votes of those with rank 4 or above when voting on + /// a month-long track; `Success` is 2. + PromoteTo2Dan, + /// Origin aggregated through weighted votes of those with rank 5 or above when voting on + /// a month-long track; `Success` is 3. + PromoteTo3Dan, + /// Origin aggregated through weighted votes of those with rank 6 or above when voting on + /// a month-long track; `Success` is 4. + PromoteTo4Dan, + /// Origin aggregated through weighted votes of those with rank 7 or above when voting on + /// a month-long track; `Success` is 5. + PromoteTo5Dan, + /// Origin aggregated through weighted votes of those with rank 8 or above when voting on + /// a month-long track; `Success` is 6. + PromoteTo6Dan, + + /// Origin aggregated through weighted votes of those with rank 3 or above when voting on + /// a 30 day long track; `Success` is 1. + FastPromoteTo1Dan, + /// Origin aggregated through weighted votes of those with rank 4 or above when voting on + /// a 30 day long track; `Success` is 2. + FastPromoteTo2Dan, + /// Origin aggregated through weighted votes of those with rank 5 or above when voting on + /// a 30 day long track; `Success` is 3. + FastPromoteTo3Dan, + } + + impl Origin { + /// Returns the rank that the origin `self` speaks for, or `None` if it doesn't speak for + /// any. + /// + /// `Some` will be returned only for the first 9 elements of [Origin]. + pub fn as_voice(&self) -> Option { + Some(match &self { + Origin::Members => ranks::DAN_1, + Origin::Fellowship2Dan => ranks::DAN_2, + Origin::Fellows => ranks::DAN_3, + Origin::Architects => ranks::DAN_4, + Origin::Fellowship5Dan => ranks::DAN_5, + Origin::Fellowship6Dan => ranks::DAN_6, + Origin::Masters => ranks::DAN_7, + Origin::Fellowship8Dan => ranks::DAN_8, + Origin::Fellowship9Dan => ranks::DAN_9, + _ => return None, + }) + } + } + + /// A `TryMorph` implementation which is designed to convert an aggregate `RuntimeOrigin` + /// value into the Fellowship voice it represents if it is a Fellowship pallet origin an + /// appropriate variant. + /// + /// See also [Origin::as_voice]. + pub struct ToVoice; + impl<'a, O: 'a + TryInto<&'a Origin>> sp_runtime::traits::TryMorph for ToVoice { + type Outcome = pallet_ranked_collective::Rank; + fn try_morph(o: O) -> Result { + o.try_into().ok().and_then(Origin::as_voice).ok_or(()) + } + } + + macro_rules! decl_unit_ensures { + ( $name:ident: $success_type:ty = $success:expr ) => { + pub struct $name; + impl> + From> + EnsureOrigin for $name + { + type Success = $success_type; + fn try_origin(o: O) -> Result { + o.into().and_then(|o| match o { + Origin::$name => Ok($success), + r => Err(O::from(r)), + }) + } + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin() -> Result { + Ok(O::from(Origin::$name)) + } + } + }; + ( $name:ident ) => { decl_unit_ensures! { $name : () = () } }; + ( $name:ident: $success_type:ty = $success:expr, $( $rest:tt )* ) => { + decl_unit_ensures! { $name: $success_type = $success } + decl_unit_ensures! { $( $rest )* } + }; + ( $name:ident, $( $rest:tt )* ) => { + decl_unit_ensures! { $name } + decl_unit_ensures! { $( $rest )* } + }; + () => {} + } + decl_unit_ensures!( + Members: Rank = ranks::DAN_1, + Fellows: Rank = ranks::DAN_3, + Architects: Rank = ranks::DAN_4, + Masters: Rank = ranks::DAN_7, + ); + + macro_rules! decl_ensure { + ( + $vis:vis type $name:ident: EnsureOrigin { + $( $item:ident = $success:expr, )* + } + ) => { + $vis struct $name; + impl> + From> + EnsureOrigin for $name + { + type Success = $success_type; + fn try_origin(o: O) -> Result { + o.into().and_then(|o| match o { + $( + Origin::$item => Ok($success), + )* + r => Err(O::from(r)), + }) + } + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin() -> Result { + // By convention the more privileged origins go later, so for greatest chance + // of success, we want the last one. + let _result: Result = Err(()); + $( + let _result: Result = Ok(O::from(Origin::$item)); + )* + _result + } + } + } + } + + // Fellowship origin indicating weighted voting from at least the rank of `Success` on a + // week-long track. + decl_ensure! { + pub type EnsureFellowship: EnsureOrigin { + Members = ranks::DAN_1, + Fellowship2Dan = ranks::DAN_2, + Fellows = ranks::DAN_3, + Architects = ranks::DAN_4, + Fellowship5Dan = ranks::DAN_5, + Fellowship6Dan = ranks::DAN_6, + Masters = ranks::DAN_7, + Fellowship8Dan = ranks::DAN_8, + Fellowship9Dan = ranks::DAN_9, + } + } + + // Fellowship origin indicating weighted voting from at least the rank of `Success + 2` on + // a fortnight-long track; needed for Fellowship retention voting. + decl_ensure! { + pub type EnsureCanRetainAt: EnsureOrigin { + RetainAt1Dan = ranks::DAN_1, + RetainAt2Dan = ranks::DAN_2, + RetainAt3Dan = ranks::DAN_3, + RetainAt4Dan = ranks::DAN_4, + RetainAt5Dan = ranks::DAN_5, + RetainAt6Dan = ranks::DAN_6, + } + } + + // Fellowship origin indicating weighted voting from at least the rank of `Success + 2` on + // a month-long track; needed for Fellowship promotion voting. + decl_ensure! { + pub type EnsureCanPromoteTo: EnsureOrigin { + PromoteTo1Dan = ranks::DAN_1, + PromoteTo2Dan = ranks::DAN_2, + PromoteTo3Dan = ranks::DAN_3, + PromoteTo4Dan = ranks::DAN_4, + PromoteTo5Dan = ranks::DAN_5, + PromoteTo6Dan = ranks::DAN_6, + } + } + + // Fellowship origin indicating weighted voting from at least the rank of `Success + 2` on + // a 30 day long track; needed for fast Fellowship promotion voting. + decl_ensure! { + pub type EnsureCanFastPromoteTo: EnsureOrigin { + FastPromoteTo1Dan = ranks::DAN_1, + FastPromoteTo2Dan = ranks::DAN_2, + FastPromoteTo3Dan = ranks::DAN_3, + } + } +} diff --git a/system-parachains/collectives-paseo/src/fellowship/tracks.rs b/system-parachains/collectives-paseo/src/fellowship/tracks.rs new file mode 100644 index 000000000..320f97d64 --- /dev/null +++ b/system-parachains/collectives-paseo/src/fellowship/tracks.rs @@ -0,0 +1,606 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Cumulus. + +// Cumulus is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Cumulus is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Cumulus. If not, see . + +//! Track configurations for Fellowship. + +use crate::{Balance, BlockNumber, RuntimeOrigin, DAYS, DOLLARS, HOURS, MINUTES}; +use pallet_ranked_collective::Rank; +use sp_runtime::{traits::Convert, Perbill}; + +/// Referendum `TrackId` type. +pub type TrackId = u16; + +/// Referendum track IDs. +pub mod constants { + use super::TrackId; + + // Regular tracks (7 days) used for general operations. The required rank for voting is the + // same as that which is named (and also the track ID). + pub const MEMBERS: TrackId = 1; + pub const PROFICIENTS: TrackId = 2; + pub const FELLOWS: TrackId = 3; + pub const ARCHITECTS: TrackId = 4; + pub const ARCHITECTS_ADEPT: TrackId = 5; + pub const GRAND_ARCHITECTS: TrackId = 6; + pub const MASTERS: TrackId = 7; + pub const MASTERS_CONSTANT: TrackId = 8; + pub const GRAND_MASTERS: TrackId = 9; + + // Longer tracks (14 days) used for rank retention. These require a rank of two more than the + // grade at which they retain (as per the whitepaper). This works out as the track ID minus 8. + pub const RETAIN_AT_1DAN: TrackId = 11; + pub const RETAIN_AT_2DAN: TrackId = 12; + pub const RETAIN_AT_3DAN: TrackId = 13; + pub const RETAIN_AT_4DAN: TrackId = 14; + pub const RETAIN_AT_5DAN: TrackId = 15; + pub const RETAIN_AT_6DAN: TrackId = 16; + + // Longest tracks (30 days) used for promotions. These require a rank of two more than the + // grade to which they promote (as per the whitepaper). This works out as the track ID minus 18. + pub const PROMOTE_TO_1DAN: TrackId = 21; + pub const PROMOTE_TO_2DAN: TrackId = 22; + pub const PROMOTE_TO_3DAN: TrackId = 23; + pub const PROMOTE_TO_4DAN: TrackId = 24; + pub const PROMOTE_TO_5DAN: TrackId = 25; + pub const PROMOTE_TO_6DAN: TrackId = 26; + + // Fast track promotions (30 days) used to fast-track promotions. This works out as the track ID + // minus 28. + pub const FAST_PROMOTE_TO_1DAN: TrackId = 31; + pub const FAST_PROMOTE_TO_2DAN: TrackId = 32; + pub const FAST_PROMOTE_TO_3DAN: TrackId = 33; +} + +/// Convert the track ID (defined above) into the minimum rank (i.e. fellowship Dan grade) required +/// to vote on the track. +pub struct MinRankOfClass; +impl Convert for MinRankOfClass { + fn convert(a: TrackId) -> Rank { + match a { + // Just a regular vote: the track ID is conveniently the same as the minimum rank. + regular @ 1..=9 => regular, + // A retention vote; the track ID turns out to be 8 more than the minimum required rank. + retention @ 11..=16 => retention - 8, + // A promotion vote; the track ID turns out to be 18 more than the minimum required + // rank. + promotion @ 21..=26 => promotion - 18, + // A fast promotion vote; the track ID turns out to be 28 more than the minimum required + // rank. + fast_promote @ 31..=33 => fast_promote - 28, + _ => Rank::MAX, + } + } +} + +const RETAIN_MAX_DECIDING: u32 = 25; +const RETAIN_DECISION_DEPOSIT: Balance = 5 * DOLLARS; +const RETAIN_PREPARE_PERIOD: BlockNumber = 0; +const RETAIN_DECISION_PERIOD: BlockNumber = 14 * DAYS; +const RETAIN_CONFIRM_PERIOD: BlockNumber = HOURS; +const RETAIN_MIN_ENACTMENT_PERIOD: BlockNumber = 0; +const RETAIN_MIN_APPROVAL: pallet_referenda::Curve = pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(60), + ceil: Perbill::from_percent(100), +}; +const RETAIN_MIN_SUPPORT: pallet_referenda::Curve = pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(10), + ceil: Perbill::from_percent(100), +}; + +const PROMOTE_MAX_DECIDING: u32 = 10; +const PROMOTE_DECISION_DEPOSIT: Balance = 5 * DOLLARS; +const PROMOTE_PREPARE_PERIOD: BlockNumber = 0; +const PROMOTE_DECISION_PERIOD: BlockNumber = 30 * DAYS; +const PROMOTE_CONFIRM_PERIOD: BlockNumber = HOURS; +const PROMOTE_MIN_ENACTMENT_PERIOD: BlockNumber = 0; +const PROMOTE_MIN_APPROVAL: pallet_referenda::Curve = pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(60), + ceil: Perbill::from_percent(100), +}; +const PROMOTE_MIN_SUPPORT: pallet_referenda::Curve = pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(10), + ceil: Perbill::from_percent(100), +}; + +const FAST_PROMOTE_MAX_DECIDING: u32 = 10; +const FAST_PROMOTE_DECISION_DEPOSIT: Balance = 5 * DOLLARS; +const FAST_PROMOTE_PREPARE_PERIOD: BlockNumber = 0; +const FAST_PROMOTE_DECISION_PERIOD: BlockNumber = 30 * DAYS; +const FAST_PROMOTE_CONFIRM_PERIOD: BlockNumber = HOURS; +const FAST_PROMOTE_MIN_ENACTMENT_PERIOD: BlockNumber = 0; +const FAST_PROMOTE_MIN_APPROVAL: pallet_referenda::Curve = + pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(66), + ceil: Perbill::from_percent(100), + }; +const FAST_PROMOTE_MIN_SUPPORT: pallet_referenda::Curve = + pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }; + +pub struct TracksInfo; +impl pallet_referenda::TracksInfo for TracksInfo { + type Id = TrackId; + type RuntimeOrigin = ::PalletsOrigin; + fn tracks() -> &'static [(Self::Id, pallet_referenda::TrackInfo)] { + use constants as tracks; + static DATA: [(TrackId, pallet_referenda::TrackInfo); 24] = [ + ( + tracks::MEMBERS, + pallet_referenda::TrackInfo { + name: "members", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::PROFICIENTS, + pallet_referenda::TrackInfo { + name: "proficient members", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::FELLOWS, + pallet_referenda::TrackInfo { + name: "fellows", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::ARCHITECTS, + pallet_referenda::TrackInfo { + name: "architects", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::ARCHITECTS_ADEPT, + pallet_referenda::TrackInfo { + name: "architects adept", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::GRAND_ARCHITECTS, + pallet_referenda::TrackInfo { + name: "grand architects", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::MASTERS, + pallet_referenda::TrackInfo { + name: "masters", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::MASTERS_CONSTANT, + pallet_referenda::TrackInfo { + name: "masters constant", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::GRAND_MASTERS, + pallet_referenda::TrackInfo { + name: "grand masters", + max_deciding: 10, + decision_deposit: 5 * DOLLARS, + prepare_period: 30 * MINUTES, + decision_period: 7 * DAYS, + confirm_period: 30 * MINUTES, + min_enactment_period: 5 * MINUTES, + min_approval: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(50), + ceil: Perbill::from_percent(100), + }, + min_support: pallet_referenda::Curve::LinearDecreasing { + length: Perbill::from_percent(100), + floor: Perbill::from_percent(0), + ceil: Perbill::from_percent(100), + }, + }, + ), + ( + tracks::RETAIN_AT_1DAN, + pallet_referenda::TrackInfo { + name: "retain at I Dan", + max_deciding: RETAIN_MAX_DECIDING, + decision_deposit: RETAIN_DECISION_DEPOSIT, + prepare_period: RETAIN_PREPARE_PERIOD, + decision_period: RETAIN_DECISION_PERIOD, + confirm_period: RETAIN_CONFIRM_PERIOD, + min_enactment_period: RETAIN_MIN_ENACTMENT_PERIOD, + min_approval: RETAIN_MIN_APPROVAL, + min_support: RETAIN_MIN_SUPPORT, + }, + ), + ( + tracks::RETAIN_AT_2DAN, + pallet_referenda::TrackInfo { + name: "retain at II Dan", + max_deciding: RETAIN_MAX_DECIDING, + decision_deposit: RETAIN_DECISION_DEPOSIT, + prepare_period: RETAIN_PREPARE_PERIOD, + decision_period: RETAIN_DECISION_PERIOD, + confirm_period: RETAIN_CONFIRM_PERIOD, + min_enactment_period: RETAIN_MIN_ENACTMENT_PERIOD, + min_approval: RETAIN_MIN_APPROVAL, + min_support: RETAIN_MIN_SUPPORT, + }, + ), + ( + tracks::RETAIN_AT_3DAN, + pallet_referenda::TrackInfo { + name: "retain at III Dan", + max_deciding: RETAIN_MAX_DECIDING, + decision_deposit: RETAIN_DECISION_DEPOSIT, + prepare_period: RETAIN_PREPARE_PERIOD, + decision_period: RETAIN_DECISION_PERIOD, + confirm_period: RETAIN_CONFIRM_PERIOD, + min_enactment_period: RETAIN_MIN_ENACTMENT_PERIOD, + min_approval: RETAIN_MIN_APPROVAL, + min_support: RETAIN_MIN_SUPPORT, + }, + ), + ( + tracks::RETAIN_AT_4DAN, + pallet_referenda::TrackInfo { + name: "retain at IV Dan", + max_deciding: RETAIN_MAX_DECIDING, + decision_deposit: RETAIN_DECISION_DEPOSIT, + prepare_period: RETAIN_PREPARE_PERIOD, + decision_period: RETAIN_DECISION_PERIOD, + confirm_period: RETAIN_CONFIRM_PERIOD, + min_enactment_period: RETAIN_MIN_ENACTMENT_PERIOD, + min_approval: RETAIN_MIN_APPROVAL, + min_support: RETAIN_MIN_SUPPORT, + }, + ), + ( + tracks::RETAIN_AT_5DAN, + pallet_referenda::TrackInfo { + name: "retain at V Dan", + max_deciding: RETAIN_MAX_DECIDING, + decision_deposit: RETAIN_DECISION_DEPOSIT, + prepare_period: RETAIN_PREPARE_PERIOD, + decision_period: RETAIN_DECISION_PERIOD, + confirm_period: RETAIN_CONFIRM_PERIOD, + min_enactment_period: RETAIN_MIN_ENACTMENT_PERIOD, + min_approval: RETAIN_MIN_APPROVAL, + min_support: RETAIN_MIN_SUPPORT, + }, + ), + ( + tracks::RETAIN_AT_6DAN, + pallet_referenda::TrackInfo { + name: "retain at VI Dan", + max_deciding: RETAIN_MAX_DECIDING, + decision_deposit: RETAIN_DECISION_DEPOSIT, + prepare_period: RETAIN_PREPARE_PERIOD, + decision_period: RETAIN_DECISION_PERIOD, + confirm_period: RETAIN_CONFIRM_PERIOD, + min_enactment_period: RETAIN_MIN_ENACTMENT_PERIOD, + min_approval: RETAIN_MIN_APPROVAL, + min_support: RETAIN_MIN_SUPPORT, + }, + ), + ( + tracks::PROMOTE_TO_1DAN, + pallet_referenda::TrackInfo { + name: "promote to I Dan", + max_deciding: PROMOTE_MAX_DECIDING, + decision_deposit: PROMOTE_DECISION_DEPOSIT, + prepare_period: PROMOTE_PREPARE_PERIOD, + decision_period: PROMOTE_DECISION_PERIOD, + confirm_period: PROMOTE_CONFIRM_PERIOD, + min_enactment_period: PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: PROMOTE_MIN_APPROVAL, + min_support: PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::PROMOTE_TO_2DAN, + pallet_referenda::TrackInfo { + name: "promote to II Dan", + max_deciding: PROMOTE_MAX_DECIDING, + decision_deposit: PROMOTE_DECISION_DEPOSIT, + prepare_period: PROMOTE_PREPARE_PERIOD, + decision_period: PROMOTE_DECISION_PERIOD, + confirm_period: PROMOTE_CONFIRM_PERIOD, + min_enactment_period: PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: PROMOTE_MIN_APPROVAL, + min_support: PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::PROMOTE_TO_3DAN, + pallet_referenda::TrackInfo { + name: "promote to III Dan", + max_deciding: PROMOTE_MAX_DECIDING, + decision_deposit: PROMOTE_DECISION_DEPOSIT, + prepare_period: PROMOTE_PREPARE_PERIOD, + decision_period: PROMOTE_DECISION_PERIOD, + confirm_period: PROMOTE_CONFIRM_PERIOD, + min_enactment_period: PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: PROMOTE_MIN_APPROVAL, + min_support: PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::PROMOTE_TO_4DAN, + pallet_referenda::TrackInfo { + name: "promote to IV Dan", + max_deciding: PROMOTE_MAX_DECIDING, + decision_deposit: PROMOTE_DECISION_DEPOSIT, + prepare_period: PROMOTE_PREPARE_PERIOD, + decision_period: PROMOTE_DECISION_PERIOD, + confirm_period: PROMOTE_CONFIRM_PERIOD, + min_enactment_period: PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: PROMOTE_MIN_APPROVAL, + min_support: PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::PROMOTE_TO_5DAN, + pallet_referenda::TrackInfo { + name: "promote to V Dan", + max_deciding: PROMOTE_MAX_DECIDING, + decision_deposit: PROMOTE_DECISION_DEPOSIT, + prepare_period: PROMOTE_PREPARE_PERIOD, + decision_period: PROMOTE_DECISION_PERIOD, + confirm_period: PROMOTE_CONFIRM_PERIOD, + min_enactment_period: PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: PROMOTE_MIN_APPROVAL, + min_support: PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::PROMOTE_TO_6DAN, + pallet_referenda::TrackInfo { + name: "promote to VI Dan", + max_deciding: PROMOTE_MAX_DECIDING, + decision_deposit: PROMOTE_DECISION_DEPOSIT, + prepare_period: PROMOTE_PREPARE_PERIOD, + decision_period: PROMOTE_DECISION_PERIOD, + confirm_period: PROMOTE_CONFIRM_PERIOD, + min_enactment_period: PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: PROMOTE_MIN_APPROVAL, + min_support: PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::FAST_PROMOTE_TO_1DAN, + pallet_referenda::TrackInfo { + name: "fast promote to I Dan", + max_deciding: FAST_PROMOTE_MAX_DECIDING, + decision_deposit: FAST_PROMOTE_DECISION_DEPOSIT, + prepare_period: FAST_PROMOTE_PREPARE_PERIOD, + decision_period: FAST_PROMOTE_DECISION_PERIOD, + confirm_period: FAST_PROMOTE_CONFIRM_PERIOD, + min_enactment_period: FAST_PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: FAST_PROMOTE_MIN_APPROVAL, + min_support: FAST_PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::FAST_PROMOTE_TO_2DAN, + pallet_referenda::TrackInfo { + name: "fast promote to II Dan", + max_deciding: FAST_PROMOTE_MAX_DECIDING, + decision_deposit: FAST_PROMOTE_DECISION_DEPOSIT, + prepare_period: FAST_PROMOTE_PREPARE_PERIOD, + decision_period: FAST_PROMOTE_DECISION_PERIOD, + confirm_period: FAST_PROMOTE_CONFIRM_PERIOD, + min_enactment_period: FAST_PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: FAST_PROMOTE_MIN_APPROVAL, + min_support: FAST_PROMOTE_MIN_SUPPORT, + }, + ), + ( + tracks::FAST_PROMOTE_TO_3DAN, + pallet_referenda::TrackInfo { + name: "fast promote to III Dan", + max_deciding: FAST_PROMOTE_MAX_DECIDING, + decision_deposit: FAST_PROMOTE_DECISION_DEPOSIT, + prepare_period: FAST_PROMOTE_PREPARE_PERIOD, + decision_period: FAST_PROMOTE_DECISION_PERIOD, + confirm_period: FAST_PROMOTE_CONFIRM_PERIOD, + min_enactment_period: FAST_PROMOTE_MIN_ENACTMENT_PERIOD, + min_approval: FAST_PROMOTE_MIN_APPROVAL, + min_support: FAST_PROMOTE_MIN_SUPPORT, + }, + ), + ]; + &DATA[..] + } + fn track_for(id: &Self::RuntimeOrigin) -> Result { + use super::origins::Origin; + use constants as tracks; + + #[cfg(feature = "runtime-benchmarks")] + { + // For benchmarks, we enable a root origin. + // It is important that this is not available in production! + let root: Self::RuntimeOrigin = frame_system::RawOrigin::Root.into(); + if &root == id { + return Ok(tracks::GRAND_MASTERS) + } + } + + match Origin::try_from(id.clone()) { + Ok(Origin::Members) => Ok(tracks::MEMBERS), + Ok(Origin::Fellowship2Dan) => Ok(tracks::PROFICIENTS), + Ok(Origin::Fellows) => Ok(tracks::FELLOWS), + Ok(Origin::Architects) => Ok(tracks::ARCHITECTS), + Ok(Origin::Fellowship5Dan) => Ok(tracks::ARCHITECTS_ADEPT), + Ok(Origin::Fellowship6Dan) => Ok(tracks::GRAND_ARCHITECTS), + Ok(Origin::Masters) => Ok(tracks::MASTERS), + Ok(Origin::Fellowship8Dan) => Ok(tracks::MASTERS_CONSTANT), + Ok(Origin::Fellowship9Dan) => Ok(tracks::GRAND_MASTERS), + + Ok(Origin::RetainAt1Dan) => Ok(tracks::RETAIN_AT_1DAN), + Ok(Origin::RetainAt2Dan) => Ok(tracks::RETAIN_AT_2DAN), + Ok(Origin::RetainAt3Dan) => Ok(tracks::RETAIN_AT_3DAN), + Ok(Origin::RetainAt4Dan) => Ok(tracks::RETAIN_AT_4DAN), + Ok(Origin::RetainAt5Dan) => Ok(tracks::RETAIN_AT_5DAN), + Ok(Origin::RetainAt6Dan) => Ok(tracks::RETAIN_AT_6DAN), + + Ok(Origin::PromoteTo1Dan) => Ok(tracks::PROMOTE_TO_1DAN), + Ok(Origin::PromoteTo2Dan) => Ok(tracks::PROMOTE_TO_2DAN), + Ok(Origin::PromoteTo3Dan) => Ok(tracks::PROMOTE_TO_3DAN), + Ok(Origin::PromoteTo4Dan) => Ok(tracks::PROMOTE_TO_4DAN), + Ok(Origin::PromoteTo5Dan) => Ok(tracks::PROMOTE_TO_5DAN), + Ok(Origin::PromoteTo6Dan) => Ok(tracks::PROMOTE_TO_6DAN), + + Ok(Origin::FastPromoteTo1Dan) => Ok(tracks::FAST_PROMOTE_TO_1DAN), + Ok(Origin::FastPromoteTo2Dan) => Ok(tracks::FAST_PROMOTE_TO_2DAN), + Ok(Origin::FastPromoteTo3Dan) => Ok(tracks::FAST_PROMOTE_TO_3DAN), + + Err(_) => Err(()), + } + } +} +pallet_referenda::impl_tracksinfo_get!(TracksInfo, Balance, BlockNumber); diff --git a/system-parachains/collectives-paseo/src/genesis_config_presets.rs b/system-parachains/collectives-paseo/src/genesis_config_presets.rs new file mode 100644 index 000000000..7d1b59ebd --- /dev/null +++ b/system-parachains/collectives-paseo/src/genesis_config_presets.rs @@ -0,0 +1,94 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +//! Genesis configs presets for the CollectivesPolkadot runtime + +use crate::*; +use sp_genesis_builder::PresetId; +use sp_std::vec::Vec; +use system_parachains_constants::genesis_presets::*; + +const COLLECTIVES_POLKADOT_ED: Balance = ExistentialDeposit::get(); + +fn collectives_polkadot_genesis( + invulnerables: Vec<(AccountId, AuraId)>, + endowed_accounts: Vec, + id: ParaId, +) -> serde_json::Value { + serde_json::json!({ + "balances": BalancesConfig { + balances: endowed_accounts + .iter() + .cloned() + .map(|k| (k, COLLECTIVES_POLKADOT_ED * 4096 * 4096)) + .collect(), + }, + "parachainInfo": ParachainInfoConfig { + parachain_id: id, + ..Default::default() + }, + "collatorSelection": CollatorSelectionConfig { + invulnerables: invulnerables.iter().cloned().map(|(acc, _)| acc).collect(), + candidacy_bond: COLLECTIVES_POLKADOT_ED * 16, + ..Default::default() + }, + "session": SessionConfig { + keys: invulnerables + .into_iter() + .map(|(acc, aura)| { + ( + acc.clone(), // account id + acc, // validator id + SessionKeys { aura }, // session keys + ) + }) + .collect(), + ..Default::default() + }, + "polkadotXcm": { + "safeXcmVersion": Some(SAFE_XCM_VERSION), + }, + // no need to pass anything to aura, in fact it will panic if we do. Session will take care + // of this. `aura: Default::default()` + }) +} + +pub fn collectives_polkadot_local_testnet_genesis(para_id: ParaId) -> serde_json::Value { + collectives_polkadot_genesis(invulnerables(), testnet_accounts(), para_id) +} + +fn collectives_polkadot_development_genesis(para_id: ParaId) -> serde_json::Value { + collectives_polkadot_local_testnet_genesis(para_id) +} + +/// Provides the names of the predefined genesis configs for this runtime. +pub fn preset_names() -> Vec { + vec![PresetId::from("development"), PresetId::from("local_testnet")] +} + +/// Provides the JSON representation of predefined genesis config for given `id`. +pub fn get_preset(id: &sp_genesis_builder::PresetId) -> Option> { + let patch = match id.try_into() { + Ok("development") => collectives_polkadot_development_genesis(1001.into()), + Ok("local_testnet") => collectives_polkadot_local_testnet_genesis(1001.into()), + _ => return None, + }; + Some( + serde_json::to_string(&patch) + .expect("serialization to json is expected to work. qed.") + .into_bytes(), + ) +} diff --git a/system-parachains/collectives-paseo/src/impls.rs b/system-parachains/collectives-paseo/src/impls.rs new file mode 100644 index 000000000..57df1ae2f --- /dev/null +++ b/system-parachains/collectives-paseo/src/impls.rs @@ -0,0 +1,251 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use super::*; +use frame_support::{ + dispatch::DispatchResultWithPostInfo, + traits::{Currency, Get, Imbalance, OnUnbalanced, OriginTrait, PrivilegeCmp}, +}; +use pallet_alliance::{ProposalIndex, ProposalProvider}; +use parachains_common::impls::NegativeImbalance; +use sp_runtime::DispatchError; +use sp_std::{cmp::Ordering, marker::PhantomData, prelude::*}; +use xcm_executor::traits::ConvertLocation; + +type AccountIdOf = ::AccountId; + +type ProposalOf = >::Proposal; + +type HashOf = ::Hash; + +/// Type alias to conveniently refer to the `Currency::Balance` associated type. +pub type BalanceOf = + as Currency<::AccountId>>::Balance; + +/// Implements `OnUnbalanced::on_unbalanced` to teleport slashed assets to relay chain treasury +/// account. +pub struct ToParentTreasury( + PhantomData<(TreasuryAccount, AccountIdConverter, T)>, +); + +impl OnUnbalanced> + for ToParentTreasury +where + T: pallet_balances::Config + pallet_xcm::Config + frame_system::Config, + <::RuntimeOrigin as OriginTrait>::AccountId: From>, + [u8; 32]: From<::AccountId>, + TreasuryAccount: Get>, + BalanceOf: Into, + AccountIdConverter: ConvertLocation>, +{ + fn on_unbalanced(amount: NegativeImbalance) { + let amount = match amount.drop_zero() { + Ok(..) => return, + Err(amount) => amount, + }; + let imbalance = amount.peek(); + let root_location: Location = Here.into(); + let root_account: AccountIdOf = + match AccountIdConverter::convert_location(&root_location) { + Some(a) => a, + None => { + log::warn!("Failed to convert root origin into account id"); + return + }, + }; + let treasury_account: AccountIdOf = TreasuryAccount::get(); + + >::resolve_creating(&root_account, amount); + + let result = >::limited_teleport_assets( + <::RuntimeOrigin>::root(), + Box::new(Parent.into()), + Box::new( + Junction::AccountId32 { network: None, id: treasury_account.into() } + .into_location() + .into(), + ), + Box::new((Parent, imbalance).into()), + 0, + WeightLimit::Unlimited, + ); + + if let Err(err) = result { + log::warn!("Failed to teleport slashed assets: {:?}", err); + } + } +} + +/// Proposal provider for alliance pallet. +/// Adapter from collective pallet to alliance proposal provider trait. +pub struct AllianceProposalProvider(PhantomData<(T, I)>); + +impl ProposalProvider, HashOf, ProposalOf> + for AllianceProposalProvider +where + T: pallet_collective::Config + frame_system::Config, + I: 'static, +{ + fn propose_proposal( + who: AccountIdOf, + threshold: u32, + proposal: Box>, + length_bound: u32, + ) -> Result<(u32, u32), DispatchError> { + pallet_collective::Pallet::::do_propose_proposed( + who, + threshold, + proposal, + length_bound, + ) + } + + fn vote_proposal( + who: AccountIdOf, + proposal: HashOf, + index: ProposalIndex, + approve: bool, + ) -> Result { + pallet_collective::Pallet::::do_vote(who, proposal, index, approve) + } + + fn close_proposal( + proposal_hash: HashOf, + proposal_index: ProposalIndex, + proposal_weight_bound: Weight, + length_bound: u32, + ) -> DispatchResultWithPostInfo { + pallet_collective::Pallet::::do_close( + proposal_hash, + proposal_index, + proposal_weight_bound, + length_bound, + ) + } + + fn proposal_of(proposal_hash: HashOf) -> Option> { + pallet_collective::ProposalOf::::get(proposal_hash) + } +} + +/// Used to compare the privilege of an origin inside the scheduler. +pub struct EqualOrGreatestRootCmp; + +impl PrivilegeCmp for EqualOrGreatestRootCmp { + fn cmp_privilege(left: &OriginCaller, right: &OriginCaller) -> Option { + if left == right { + return Some(Ordering::Equal) + } + match (left, right) { + // Root is greater than anything. + (OriginCaller::system(frame_system::RawOrigin::Root), _) => Some(Ordering::Greater), + _ => None, + } + } +} + +#[cfg(feature = "runtime-benchmarks")] +pub mod benchmarks { + use super::*; + use cumulus_primitives_core::{ChannelStatus, GetChannelInfo}; + use frame_support::traits::{ + fungible, + tokens::{Pay, PaymentStatus}, + }; + use pallet_ranked_collective::Rank; + use sp_runtime::traits::Convert; + + /// Rank to salary conversion helper type. + pub struct RankToSalary(PhantomData); + impl Convert for RankToSalary + where + Fungible: fungible::Inspect, + { + fn convert(r: Rank) -> Balance { + Balance::from(r).saturating_mul(Fungible::minimum_balance()) + } + } + + /// Trait for setting up any prerequisites for successful execution of benchmarks. + pub trait EnsureSuccessful { + fn ensure_successful(); + } + + /// Implementation of the [`EnsureSuccessful`] trait which opens an HRMP channel between + /// the Collectives and a parachain with a given ID. + pub struct OpenHrmpChannel(PhantomData); + impl> EnsureSuccessful for OpenHrmpChannel { + fn ensure_successful() { + let para_id = I::get(); + + // open HRMP channel + if let ChannelStatus::Closed = ParachainSystem::get_channel_status(para_id.into()) { + ParachainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(para_id.into()) + } + + // set XCM version for sibling parachain + let sibling_parachain = Location::new(1, [Parachain(para_id)]); + if PolkadotXcm::get_version_for(&sibling_parachain).is_none() { + if let Err(e) = PolkadotXcm::force_xcm_version( + RuntimeOrigin::root(), + sibling_parachain.into(), + system_parachains_constants::genesis_presets::SAFE_XCM_VERSION, + ) { + log::error!( + "Failed to `force_xcm_version` for para_id: {para_id:?}, error: {e:?}" + ); + } + } + } + } + + /// Type that wraps a type implementing the [`Pay`] trait to decorate its + /// [`Pay::ensure_successful`] function with a provided implementation of the + /// [`EnsureSuccessful`] trait. + pub struct PayWithEnsure(PhantomData<(O, E)>); + impl Pay for PayWithEnsure + where + O: Pay, + E: EnsureSuccessful, + { + type AssetKind = O::AssetKind; + type Balance = O::Balance; + type Beneficiary = O::Beneficiary; + type Error = O::Error; + type Id = O::Id; + + fn pay( + who: &Self::Beneficiary, + asset_kind: Self::AssetKind, + amount: Self::Balance, + ) -> Result { + O::pay(who, asset_kind, amount) + } + fn check_payment(id: Self::Id) -> PaymentStatus { + O::check_payment(id) + } + fn ensure_successful( + who: &Self::Beneficiary, + asset_kind: Self::AssetKind, + amount: Self::Balance, + ) { + E::ensure_successful(); + O::ensure_successful(who, asset_kind, amount) + } + fn ensure_concluded(id: Self::Id) { + O::ensure_concluded(id) + } + } +} diff --git a/system-parachains/collectives-paseo/src/lib.rs b/system-parachains/collectives-paseo/src/lib.rs new file mode 100644 index 000000000..cea75a838 --- /dev/null +++ b/system-parachains/collectives-paseo/src/lib.rs @@ -0,0 +1,1327 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! # Collectives Parachain +//! +//! This parachain is for collectives that serve the Polkadot network. Each collective is defined by +//! a specialized (possibly instanced) pallet. +//! +//! ### Governance +//! +//! As a system parachain, Collectives defers its governance (namely, its `Root` origin), to its +//! Relay Chain parent, Polkadot. +//! +//! ### Collator Selection +//! +//! Collectives uses `pallet-collator-selection`, a simple first-come-first-served registration +//! system where collators can reserve a small bond to join the block producer set. There is no +//! slashing. Collective members are generally expected to run collators. + +#![cfg_attr(not(feature = "std"), no_std)] +#![recursion_limit = "256"] + +// Make the WASM binary available. +#[cfg(feature = "std")] +include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); + +pub mod ambassador; +// Genesis preset configurations. +pub mod genesis_config_presets; +pub mod impls; +mod weights; +pub mod xcm_config; +// Fellowship configurations. +pub mod fellowship; +pub use ambassador::pallet_ambassador_origins; + +use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId}; +use fellowship::{pallet_fellowship_origins, Fellows}; +use impls::{AllianceProposalProvider, EqualOrGreatestRootCmp, ToParentTreasury}; +use polkadot_runtime_common::impls::{ + ContainsParts as ContainsLocationParts, VersionedLocatableAsset, +}; +use sp_api::impl_runtime_apis; +use sp_core::{crypto::KeyTypeId, OpaqueMetadata}; +use sp_runtime::{ + create_runtime_str, generic, impl_opaque_keys, + traits::{AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT}, + transaction_validity::{TransactionSource, TransactionValidity}, + ApplyExtrinsicResult, Perbill, +}; + +use sp_std::prelude::*; +#[cfg(feature = "std")] +use sp_version::NativeVersion; +use sp_version::RuntimeVersion; + +use codec::{Decode, Encode, MaxEncodedLen}; +use frame_support::{ + construct_runtime, + dispatch::DispatchClass, + genesis_builder_helper::{build_state, get_preset}, + parameter_types, + traits::{ + fungible::HoldConsideration, + tokens::{imbalance::ResolveTo, UnityOrOuterConversion}, + ConstBool, ConstU16, ConstU32, ConstU64, ConstU8, EitherOfDiverse, FromContains, + InstanceFilter, LinearStoragePrice, TransformOrigin, + }, + weights::{ConstantMultiplier, Weight, WeightToFee as _}, + PalletId, +}; +use frame_system::{ + limits::{BlockLength, BlockWeights}, + EnsureRoot, +}; +use parachains_common::{ + message_queue::*, AccountId, AuraId, Balance, BlockNumber, Hash, Header, Nonce, Signature, +}; +use sp_runtime::RuntimeDebug; +use system_parachains_constants::{ + polkadot::{account::*, consensus::*, currency::*, fee::WeightToFee}, + AVERAGE_ON_INITIALIZE_RATIO, DAYS, HOURS, MAXIMUM_BLOCK_WEIGHT, MINUTES, NORMAL_DISPATCH_RATIO, + SLOT_DURATION, +}; +use xcm_config::{ + GovernanceLocation, LocationToAccountId, SelfParaId, StakingPot, TreasurerBodyId, + XcmOriginToTransactDispatchOrigin, +}; + +#[cfg(any(feature = "std", test))] +pub use sp_runtime::BuildStorage; + +// Polkadot imports +use pallet_xcm::{EnsureXcm, IsVoiceOfBody}; +use polkadot_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate}; +use xcm::prelude::*; +use xcm_runtime_apis::{ + dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects}, + fees::Error as XcmPaymentApiError, +}; + +use weights::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight}; + +impl_opaque_keys! { + pub struct SessionKeys { + pub aura: Aura, + } +} + +#[sp_version::runtime_version] +pub const VERSION: RuntimeVersion = RuntimeVersion { + spec_name: create_runtime_str!("collectives"), + impl_name: create_runtime_str!("collectives"), + authoring_version: 1, + spec_version: 1_004_000, + impl_version: 0, + apis: RUNTIME_API_VERSIONS, + transaction_version: 7, + state_version: 0, +}; + +/// The version information used to identify this runtime when compiled natively. +#[cfg(feature = "std")] +pub fn native_version() -> NativeVersion { + NativeVersion { runtime_version: VERSION, can_author_with: Default::default() } +} + +/// Privileged origin that represents Root or more than two thirds of the Alliance. +pub type RootOrAllianceTwoThirdsMajority = EitherOfDiverse< + EnsureRoot, + pallet_collective::EnsureProportionMoreThan, +>; + +parameter_types! { + pub const Version: RuntimeVersion = VERSION; + pub RuntimeBlockLength: BlockLength = + BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); + pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder() + .base_block(BlockExecutionWeight::get()) + .for_class(DispatchClass::all(), |weights| { + weights.base_extrinsic = ExtrinsicBaseWeight::get(); + }) + .for_class(DispatchClass::Normal, |weights| { + weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT); + }) + .for_class(DispatchClass::Operational, |weights| { + weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT); + // Operational transactions have some extra reserved space, so that they + // are included even if block reached `MAXIMUM_BLOCK_WEIGHT`. + weights.reserved = Some( + MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT + ); + }) + .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) + .build_or_panic(); +} + +// Configure FRAME pallets to include in runtime. +impl frame_system::Config for Runtime { + type BaseCallFilter = frame_support::traits::Everything; + type BlockWeights = RuntimeBlockWeights; + type BlockLength = RuntimeBlockLength; + type AccountId = AccountId; + type RuntimeCall = RuntimeCall; + type Lookup = AccountIdLookup; + type Nonce = Nonce; + type Hash = Hash; + type Hashing = BlakeTwo256; + type Block = Block; + type RuntimeEvent = RuntimeEvent; + type RuntimeTask = RuntimeTask; + type RuntimeOrigin = RuntimeOrigin; + type BlockHashCount = BlockHashCount; + type DbWeight = RocksDbWeight; + type Version = Version; + type PalletInfo = PalletInfo; + type OnNewAccount = (); + type OnKilledAccount = (); + type AccountData = pallet_balances::AccountData; + type SystemWeightInfo = weights::frame_system::WeightInfo; + type SS58Prefix = ConstU16<0>; + type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; + type MaxConsumers = frame_support::traits::ConstU32<16>; + type SingleBlockMigrations = (); + type MultiBlockMigrator = (); + type PreInherents = (); + type PostInherents = (); + type PostTransactions = (); +} + +impl pallet_timestamp::Config for Runtime { + /// A timestamp: milliseconds since the unix epoch. + type Moment = u64; + type OnTimestampSet = Aura; + type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>; + type WeightInfo = weights::pallet_timestamp::WeightInfo; +} + +impl pallet_authorship::Config for Runtime { + type FindAuthor = pallet_session::FindAccountFromAuthorIndex; + type EventHandler = (CollatorSelection,); +} + +parameter_types! { + pub const ExistentialDeposit: Balance = SYSTEM_PARA_EXISTENTIAL_DEPOSIT; +} + +impl pallet_balances::Config for Runtime { + type MaxLocks = ConstU32<50>; + /// The type for recording an account's balance. + type Balance = Balance; + /// The ubiquitous event type. + type RuntimeEvent = RuntimeEvent; + type DustRemoval = (); + type ExistentialDeposit = ExistentialDeposit; + type AccountStore = System; + type WeightInfo = weights::pallet_balances::WeightInfo; + type MaxReserves = ConstU32<50>; + type ReserveIdentifier = [u8; 8]; + type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = RuntimeFreezeReason; + type FreezeIdentifier = (); + type MaxFreezes = ConstU32<0>; +} + +parameter_types! { + /// Relay Chain `TransactionByteFee` / 10 + pub const TransactionByteFee: Balance = system_parachains_constants::polkadot::fee::TRANSACTION_BYTE_FEE; +} + +impl pallet_transaction_payment::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type OnChargeTransaction = + pallet_transaction_payment::FungibleAdapter>; + type WeightToFee = WeightToFee; + type LengthToFee = ConstantMultiplier; + type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; + type OperationalFeeMultiplier = ConstU8<5>; +} + +parameter_types! { + // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes. + pub const DepositBase: Balance = system_para_deposit(1, 88); + // Additional storage item size of 32 bytes. + pub const DepositFactor: Balance = system_para_deposit(0, 32); +} + +impl pallet_multisig::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; + type Currency = Balances; + type DepositBase = DepositBase; + type DepositFactor = DepositFactor; + type MaxSignatories = ConstU32<100>; + type WeightInfo = weights::pallet_multisig::WeightInfo; +} + +impl pallet_utility::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; + type PalletsOrigin = OriginCaller; + type WeightInfo = weights::pallet_utility::WeightInfo; +} + +parameter_types! { + // One storage item; key size 32, value size 8; . + pub const ProxyDepositBase: Balance = system_para_deposit(1, 40); + // Additional storage item size of 33 bytes. + pub const ProxyDepositFactor: Balance = system_para_deposit(0, 33); + // One storage item; key size 32, value size 16 + pub const AnnouncementDepositBase: Balance = system_para_deposit(1, 48); + pub const AnnouncementDepositFactor: Balance = system_para_deposit(0, 66); +} + +/// The type used to represent the kinds of proxying allowed. +#[derive( + Copy, + Clone, + Eq, + PartialEq, + Ord, + PartialOrd, + Encode, + Decode, + RuntimeDebug, + MaxEncodedLen, + scale_info::TypeInfo, +)] +pub enum ProxyType { + /// Fully permissioned proxy. Can execute any call on behalf of _proxied_. + Any, + /// Can execute any call that does not transfer funds. + NonTransfer, + /// Proxy with the ability to reject time-delay proxy announcements. + CancelProxy, + /// Collator selection proxy. Can execute calls related to collator selection mechanism. + Collator, + /// Alliance proxy. Allows calls related to the Alliance. + Alliance, + /// Fellowship proxy. Allows calls related to the Fellowship. + Fellowship, + /// Ambassador proxy. Allows calls related to the Ambassador Program. + Ambassador, +} +impl Default for ProxyType { + fn default() -> Self { + Self::Any + } +} +impl InstanceFilter for ProxyType { + fn filter(&self, c: &RuntimeCall) -> bool { + match self { + ProxyType::Any => true, + ProxyType::NonTransfer => !matches!(c, RuntimeCall::Balances { .. }), + ProxyType::CancelProxy => matches!( + c, + RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. }) | + RuntimeCall::Utility { .. } | + RuntimeCall::Multisig { .. } + ), + ProxyType::Collator => matches!( + c, + RuntimeCall::CollatorSelection { .. } | + RuntimeCall::Utility { .. } | + RuntimeCall::Multisig { .. } + ), + ProxyType::Alliance => matches!( + c, + RuntimeCall::AllianceMotion { .. } | + RuntimeCall::Alliance { .. } | + RuntimeCall::Utility { .. } | + RuntimeCall::Multisig { .. } + ), + ProxyType::Fellowship => matches!( + c, + RuntimeCall::FellowshipCollective { .. } | + RuntimeCall::FellowshipReferenda { .. } | + RuntimeCall::FellowshipCore { .. } | + RuntimeCall::FellowshipSalary { .. } | + RuntimeCall::Utility { .. } | + RuntimeCall::Multisig { .. } + ), + ProxyType::Ambassador => matches!( + c, + RuntimeCall::AmbassadorCollective { .. } | + RuntimeCall::AmbassadorReferenda { .. } | + RuntimeCall::AmbassadorCore { .. } | + RuntimeCall::AmbassadorSalary { .. } | + RuntimeCall::Utility { .. } | + RuntimeCall::Multisig { .. } + ), + } + } + fn is_superset(&self, o: &Self) -> bool { + match (self, o) { + (x, y) if x == y => true, + (ProxyType::Any, _) => true, + (_, ProxyType::Any) => false, + (ProxyType::NonTransfer, _) => true, + _ => false, + } + } +} + +impl pallet_proxy::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; + type Currency = Balances; + type ProxyType = ProxyType; + type ProxyDepositBase = ProxyDepositBase; + type ProxyDepositFactor = ProxyDepositFactor; + type MaxProxies = ConstU32<32>; + type WeightInfo = weights::pallet_proxy::WeightInfo; + type MaxPending = ConstU32<32>; + type CallHasher = BlakeTwo256; + type AnnouncementDepositBase = AnnouncementDepositBase; + type AnnouncementDepositFactor = AnnouncementDepositFactor; +} + +parameter_types! { + pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4); + pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4); + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; +} + +impl cumulus_pallet_parachain_system::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type OnSystemEvent = (); + type SelfParaId = parachain_info::Pallet; + type DmpQueue = frame_support::traits::EnqueueWithOrigin; + type ReservedDmpWeight = ReservedDmpWeight; + type OutboundXcmpMessageSource = XcmpQueue; + type XcmpMessageHandler = XcmpQueue; + type ReservedXcmpWeight = ReservedXcmpWeight; + type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases; + type ConsensusHook = ConsensusHook; + type WeightInfo = weights::cumulus_pallet_parachain_system::WeightInfo; +} + +type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook< + Runtime, + RELAY_CHAIN_SLOT_DURATION_MILLIS, + BLOCK_PROCESSING_VELOCITY, + UNINCLUDED_SEGMENT_CAPACITY, +>; + +impl parachain_info::Config for Runtime {} + +parameter_types! { + pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block; + pub MessageQueueIdleServiceWeight: Weight = Perbill::from_percent(20) * RuntimeBlockWeights::get().max_block; +} + +impl pallet_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = weights::pallet_message_queue::WeightInfo; + #[cfg(feature = "runtime-benchmarks")] + type MessageProcessor = pallet_message_queue::mock_helpers::NoopMessageProcessor< + cumulus_primitives_core::AggregateMessageOrigin, + >; + #[cfg(not(feature = "runtime-benchmarks"))] + type MessageProcessor = xcm_builder::ProcessXcmMessage< + AggregateMessageOrigin, + xcm_executor::XcmExecutor, + RuntimeCall, + >; + type Size = u32; + // The XCMP queue pallet is only ever able to handle the `Sibling(ParaId)` origin: + type QueueChangeHandler = NarrowOriginToSibling; + type QueuePausedQuery = NarrowOriginToSibling; + type HeapSize = sp_core::ConstU32<{ 64 * 1024 }>; + type MaxStale = sp_core::ConstU32<8>; + type ServiceWeight = MessageQueueServiceWeight; + type IdleMaxServiceWeight = MessageQueueIdleServiceWeight; +} + +impl cumulus_pallet_aura_ext::Config for Runtime {} + +parameter_types! { + /// The asset ID for the asset that we use to pay for message delivery fees. + pub FeeAssetId: AssetId = AssetId(xcm_config::DotLocation::get()); + /// The base fee for the message delivery fees. + pub const ToSiblingBaseDeliveryFee: u128 = CENTS.saturating_mul(3); + pub const ToParentBaseDeliveryFee: u128 = CENTS.saturating_mul(3); +} + +pub type PriceForSiblingParachainDelivery = polkadot_runtime_common::xcm_sender::ExponentialPrice< + FeeAssetId, + ToSiblingBaseDeliveryFee, + TransactionByteFee, + XcmpQueue, +>; + +pub type PriceForParentDelivery = polkadot_runtime_common::xcm_sender::ExponentialPrice< + FeeAssetId, + ToParentBaseDeliveryFee, + TransactionByteFee, + ParachainSystem, +>; + +impl cumulus_pallet_xcmp_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type ChannelInfo = ParachainSystem; + type VersionWrapper = PolkadotXcm; + // Enqueue XCMP messages from siblings for later processing. + type XcmpQueue = TransformOrigin; + type MaxActiveOutboundChannels = ConstU32<128>; + // Most on-chain HRMP channels are configured to use 102400 bytes of max message size, so we + // need to set the page size larger than that until we reduce the channel size on-chain. + type MaxPageSize = ConstU32<{ 103 * 1024 }>; + type MaxInboundSuspended = sp_core::ConstU32<1_000>; + type ControllerOrigin = EitherOfDiverse, Fellows>; + type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin; + type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo; + type PriceForSiblingDelivery = PriceForSiblingParachainDelivery; +} + +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + // This must be the same as the `ChannelInfo` from the `Config`: + type ChannelList = ParachainSystem; +} + +pub const PERIOD: u32 = 6 * HOURS; +pub const OFFSET: u32 = 0; + +impl pallet_session::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type ValidatorId = ::AccountId; + // we don't have stash and controller, thus we don't need the convert as well. + type ValidatorIdOf = pallet_collator_selection::IdentityCollator; + type ShouldEndSession = pallet_session::PeriodicSessions, ConstU32>; + type NextSessionRotation = pallet_session::PeriodicSessions, ConstU32>; + type SessionManager = CollatorSelection; + // Essentially just Aura, but let's be pedantic. + type SessionHandler = ::KeyTypeIdProviders; + type Keys = SessionKeys; + type WeightInfo = weights::pallet_session::WeightInfo; +} + +impl pallet_aura::Config for Runtime { + type AuthorityId = AuraId; + type DisabledValidators = (); + type MaxAuthorities = ConstU32<100_000>; + type AllowMultipleBlocksPerSlot = ConstBool; + type SlotDuration = ConstU64; +} + +parameter_types! { + pub const PotId: PalletId = PalletId(*b"PotStake"); + pub const SessionLength: BlockNumber = 6 * HOURS; + // StakingAdmin pluralistic body. + pub const StakingAdminBodyId: BodyId = BodyId::Defense; +} + +/// We allow root and the `StakingAdmin` to execute privileged collator selection operations. +pub type CollatorSelectionUpdateOrigin = EitherOfDiverse< + EnsureRoot, + EnsureXcm>, +>; + +impl pallet_collator_selection::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Currency = Balances; + type UpdateOrigin = CollatorSelectionUpdateOrigin; + type PotId = PotId; + type MaxCandidates = ConstU32<100>; + type MinEligibleCollators = ConstU32<4>; + type MaxInvulnerables = ConstU32<20>; + // should be a multiple of session or things will get inconsistent + type KickThreshold = ConstU32; + type ValidatorId = ::AccountId; + type ValidatorIdOf = pallet_collator_selection::IdentityCollator; + type ValidatorRegistration = Session; + type WeightInfo = weights::pallet_collator_selection::WeightInfo; +} + +pub const ALLIANCE_MOTION_DURATION: BlockNumber = 5 * DAYS; + +parameter_types! { + pub const AllianceMotionDuration: BlockNumber = ALLIANCE_MOTION_DURATION; + pub MaxProposalWeight: Weight = Perbill::from_percent(50) * RuntimeBlockWeights::get().max_block; +} +pub const ALLIANCE_MAX_PROPOSALS: u32 = 100; +pub const ALLIANCE_MAX_MEMBERS: u32 = 100; + +type AllianceCollective = pallet_collective::Instance1; +impl pallet_collective::Config for Runtime { + type RuntimeOrigin = RuntimeOrigin; + type Proposal = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type MotionDuration = AllianceMotionDuration; + type MaxProposals = ConstU32; + type MaxMembers = ConstU32; + type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote; + type SetMembersOrigin = EnsureRoot; + type WeightInfo = weights::pallet_collective::WeightInfo; + type MaxProposalWeight = MaxProposalWeight; +} + +pub const MAX_FELLOWS: u32 = ALLIANCE_MAX_MEMBERS; +pub const MAX_ALLIES: u32 = 100; + +parameter_types! { + pub const AllyDeposit: Balance = 1_000 * UNITS; // 1,000 DOT bond to join as an Ally + pub PolkadotTreasuryAccount: AccountId = POLKADOT_TREASURY_PALLET_ID.into_account_truncating(); + // The number of blocks a member must wait between giving a retirement notice and retiring. + // Supposed to be greater than time required to `kick_member` with alliance motion. + pub const AllianceRetirementPeriod: BlockNumber = (90 * DAYS) + ALLIANCE_MOTION_DURATION; +} + +impl pallet_alliance::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Proposal = RuntimeCall; + type AdminOrigin = RootOrAllianceTwoThirdsMajority; + type MembershipManager = RootOrAllianceTwoThirdsMajority; + type AnnouncementOrigin = RootOrAllianceTwoThirdsMajority; + type Currency = Balances; + type Slashed = ToParentTreasury; + type InitializeMembers = AllianceMotion; + type MembershipChanged = AllianceMotion; + type RetirementPeriod = AllianceRetirementPeriod; + type IdentityVerifier = (); // Don't block accounts on identity criteria + type ProposalProvider = AllianceProposalProvider; + type MaxProposals = ConstU32; + type MaxFellows = ConstU32; + type MaxAllies = ConstU32; + type MaxUnscrupulousItems = ConstU32<100>; + type MaxWebsiteUrlLength = ConstU32<255>; + type MaxAnnouncementsCount = ConstU32<100>; + type MaxMembersCount = ConstU32; + type AllyDeposit = AllyDeposit; + type WeightInfo = weights::pallet_alliance::WeightInfo; +} + +parameter_types! { + pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) * RuntimeBlockWeights::get().max_block; +} + +#[cfg(not(feature = "runtime-benchmarks"))] +parameter_types! { + pub const MaxScheduledPerBlock: u32 = 50; +} + +#[cfg(feature = "runtime-benchmarks")] +parameter_types! { + pub const MaxScheduledPerBlock: u32 = 200; +} + +impl pallet_scheduler::Config for Runtime { + type RuntimeOrigin = RuntimeOrigin; + type RuntimeEvent = RuntimeEvent; + type PalletsOrigin = OriginCaller; + type RuntimeCall = RuntimeCall; + type MaximumWeight = MaximumSchedulerWeight; + type ScheduleOrigin = EnsureRoot; + type MaxScheduledPerBlock = MaxScheduledPerBlock; + type WeightInfo = weights::pallet_scheduler::WeightInfo; + type OriginPrivilegeCmp = EqualOrGreatestRootCmp; + type Preimages = Preimage; +} + +parameter_types! { + pub const PreimageBaseDeposit: Balance = system_para_deposit(2, 64); + pub const PreimageByteDeposit: Balance = system_para_deposit(0, 1); + pub const PreimageHoldReason: RuntimeHoldReason = + RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage); +} + +impl pallet_preimage::Config for Runtime { + type WeightInfo = weights::pallet_preimage::WeightInfo; + type RuntimeEvent = RuntimeEvent; + type Currency = Balances; + type ManagerOrigin = EnsureRoot; + type Consideration = HoldConsideration< + AccountId, + Balances, + PreimageHoldReason, + LinearStoragePrice, + >; +} + +/// The [frame_support::traits::tokens::ConversionFromAssetBalance] implementation provided by the +/// `AssetRate` pallet instance. +/// +/// With additional decoration to identify different IDs/locations of +/// native asset and provide a one-to-one balance conversion for them. +pub type AssetRateWithNative = UnityOrOuterConversion< + ContainsLocationParts< + FromContains< + xcm_builder::IsSiblingSystemParachain, + xcm_builder::IsParentsOnly>, + >, + >, + AssetRate, +>; + +impl pallet_asset_rate::Config for Runtime { + type WeightInfo = weights::pallet_asset_rate::WeightInfo; + type RuntimeEvent = RuntimeEvent; + type CreateOrigin = EitherOfDiverse< + EnsureRoot, + EitherOfDiverse>, Fellows>, + >; + type RemoveOrigin = Self::CreateOrigin; + type UpdateOrigin = Self::CreateOrigin; + type Currency = Balances; + type AssetKind = VersionedLocatableAsset; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = polkadot_runtime_common::impls::benchmarks::AssetRateArguments; +} + +// Create the runtime by composing the FRAME pallets that were previously configured. +construct_runtime!( + pub enum Runtime + { + // System support stuff. + System: frame_system = 0, + ParachainSystem: cumulus_pallet_parachain_system = 1, + Timestamp: pallet_timestamp = 2, + ParachainInfo: parachain_info = 3, + + // Monetary stuff. + Balances: pallet_balances = 10, + TransactionPayment: pallet_transaction_payment = 11, + + // Collator support. the order of these 5 are important and shall not change. + Authorship: pallet_authorship = 20, + CollatorSelection: pallet_collator_selection = 21, + Session: pallet_session = 22, + Aura: pallet_aura = 23, + AuraExt: cumulus_pallet_aura_ext = 24, + + // XCM helpers. + XcmpQueue: cumulus_pallet_xcmp_queue = 30, + PolkadotXcm: pallet_xcm = 31, + CumulusXcm: cumulus_pallet_xcm = 32, + // DmpQueue: cumulus_pallet_dmp_queue = 33, removed + MessageQueue: pallet_message_queue = 34, + + // Handy utilities. + Utility: pallet_utility = 40, + Multisig: pallet_multisig = 41, + Proxy: pallet_proxy = 42, + Preimage: pallet_preimage = 43, + Scheduler: pallet_scheduler = 44, + AssetRate: pallet_asset_rate = 45, + + // The main stage. + + // The Alliance. + Alliance: pallet_alliance = 50, + AllianceMotion: pallet_collective:: = 51, + + // The Fellowship. + // pub type FellowshipCollectiveInstance = pallet_ranked_collective::Instance1; + FellowshipCollective: pallet_ranked_collective:: = 60, + // pub type FellowshipReferendaInstance = pallet_referenda::Instance1; + FellowshipReferenda: pallet_referenda:: = 61, + FellowshipOrigins: pallet_fellowship_origins = 62, + // pub type FellowshipCoreInstance = pallet_core_fellowship::Instance1; + FellowshipCore: pallet_core_fellowship:: = 63, + // pub type FellowshipSalaryInstance = pallet_salary::Instance1; + FellowshipSalary: pallet_salary:: = 64, + // pub type FellowshipTreasuryInstance = pallet_treasury::Instance1; + FellowshipTreasury: pallet_treasury:: = 65, + + // Ambassador Program. + AmbassadorCollective: pallet_ranked_collective:: = 70, + AmbassadorReferenda: pallet_referenda:: = 71, + AmbassadorOrigins: pallet_ambassador_origins = 72, + AmbassadorCore: pallet_core_fellowship:: = 73, + AmbassadorSalary: pallet_salary:: = 74, + AmbassadorTreasury: pallet_treasury:: = 75, + } +); + +/// The address format for describing accounts. +pub type Address = sp_runtime::MultiAddress; +/// Block type as expected by this runtime. +pub type Block = generic::Block; +/// A Block signed with a Justification +pub type SignedBlock = generic::SignedBlock; +/// BlockId type as expected by this runtime. +pub type BlockId = generic::BlockId; +/// The SignedExtension to the basic transaction logic. +pub type SignedExtra = ( + frame_system::CheckNonZeroSender, + frame_system::CheckSpecVersion, + frame_system::CheckTxVersion, + frame_system::CheckGenesis, + frame_system::CheckEra, + frame_system::CheckNonce, + frame_system::CheckWeight, + pallet_transaction_payment::ChargeTransactionPayment, + frame_metadata_hash_extension::CheckMetadataHash, +); +/// Unchecked extrinsic type as expected by this runtime. +pub type UncheckedExtrinsic = + generic::UncheckedExtrinsic; + +/// All migrations executed on runtime upgrade as a nested tuple of types implementing +/// `OnRuntimeUpgrade`. Included migrations must be idempotent. +type Migrations = ( + // unreleased and/or un-applied + cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, + pallet_core_fellowship::migration::MigrateV0ToV1, + pallet_core_fellowship::migration::MigrateV0ToV1, + ambassador::migrations::TruncateHeadAmbassadors, + // permanent + pallet_xcm::migration::MigrateToLatestXcmVersion, +); + +/// Executive: handles dispatch to the various modules. +pub type Executive = frame_executive::Executive< + Runtime, + Block, + frame_system::ChainContext, + Runtime, + AllPalletsWithSystem, + Migrations, +>; + +#[cfg(feature = "runtime-benchmarks")] +mod benches { + frame_benchmarking::define_benchmarks!( + [frame_system, SystemBench::] + [pallet_balances, Balances] + [pallet_message_queue, MessageQueue] + [pallet_multisig, Multisig] + [pallet_proxy, Proxy] + [pallet_session, SessionBench::] + [pallet_utility, Utility] + [pallet_timestamp, Timestamp] + [pallet_collator_selection, CollatorSelection] + [cumulus_pallet_parachain_system, ParachainSystem] + [cumulus_pallet_xcmp_queue, XcmpQueue] + [pallet_alliance, Alliance] + [pallet_collective, AllianceMotion] + [pallet_preimage, Preimage] + [pallet_scheduler, Scheduler] + [pallet_referenda, FellowshipReferenda] + [pallet_ranked_collective, FellowshipCollective] + [pallet_core_fellowship, FellowshipCore] + [pallet_salary, FellowshipSalary] + [pallet_treasury, FellowshipTreasury] + [pallet_asset_rate, AssetRate] + [pallet_referenda, AmbassadorReferenda] + [pallet_ranked_collective, AmbassadorCollective] + [pallet_core_fellowship, AmbassadorCore] + [pallet_salary, AmbassadorSalary] + [pallet_treasury, AmbassadorTreasury] + // XCM + [pallet_xcm, PalletXcmExtrinsiscsBenchmark::] + [pallet_xcm_benchmarks::fungible, XcmBalances] + [pallet_xcm_benchmarks::generic, XcmGeneric] + ); +} + +impl_runtime_apis! { + impl sp_consensus_aura::AuraApi for Runtime { + fn slot_duration() -> sp_consensus_aura::SlotDuration { + sp_consensus_aura::SlotDuration::from_millis(SLOT_DURATION) + } + + fn authorities() -> Vec { + pallet_aura::Authorities::::get().into_inner() + } + } + + impl cumulus_primitives_aura::AuraUnincludedSegmentApi for Runtime { + fn can_build_upon( + included_hash: ::Hash, + slot: cumulus_primitives_aura::Slot, + ) -> bool { + ConsensusHook::can_build_upon(included_hash, slot) + } + } + + impl sp_api::Core for Runtime { + fn version() -> RuntimeVersion { + VERSION + } + + fn execute_block(block: Block) { + Executive::execute_block(block) + } + + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { + Executive::initialize_block(header) + } + } + + impl sp_api::Metadata for Runtime { + fn metadata() -> OpaqueMetadata { + OpaqueMetadata::new(Runtime::metadata().into()) + } + + fn metadata_at_version(version: u32) -> Option { + Runtime::metadata_at_version(version) + } + + fn metadata_versions() -> sp_std::vec::Vec { + Runtime::metadata_versions() + } + } + + impl sp_block_builder::BlockBuilder for Runtime { + fn apply_extrinsic(extrinsic: ::Extrinsic) -> ApplyExtrinsicResult { + Executive::apply_extrinsic(extrinsic) + } + + fn finalize_block() -> ::Header { + Executive::finalize_block() + } + + fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<::Extrinsic> { + data.create_extrinsics() + } + + fn check_inherents( + block: Block, + data: sp_inherents::InherentData, + ) -> sp_inherents::CheckInherentsResult { + data.check_extrinsics(&block) + } + } + + impl sp_transaction_pool::runtime_api::TaggedTransactionQueue for Runtime { + fn validate_transaction( + source: TransactionSource, + tx: ::Extrinsic, + block_hash: ::Hash, + ) -> TransactionValidity { + Executive::validate_transaction(source, tx, block_hash) + } + } + + impl sp_offchain::OffchainWorkerApi for Runtime { + fn offchain_worker(header: &::Header) { + Executive::offchain_worker(header) + } + } + + impl sp_session::SessionKeys for Runtime { + fn generate_session_keys(seed: Option>) -> Vec { + SessionKeys::generate(seed) + } + + fn decode_session_keys( + encoded: Vec, + ) -> Option, KeyTypeId)>> { + SessionKeys::decode_into_raw_public_keys(&encoded) + } + } + + impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { + fn account_nonce(account: AccountId) -> Nonce { + System::account_nonce(account) + } + } + + impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi for Runtime { + fn query_info( + uxt: ::Extrinsic, + len: u32, + ) -> pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo { + TransactionPayment::query_info(uxt, len) + } + fn query_fee_details( + uxt: ::Extrinsic, + len: u32, + ) -> pallet_transaction_payment::FeeDetails { + TransactionPayment::query_fee_details(uxt, len) + } + fn query_weight_to_fee(weight: Weight) -> Balance { + TransactionPayment::weight_to_fee(weight) + } + fn query_length_to_fee(length: u32) -> Balance { + TransactionPayment::length_to_fee(length) + } + } + + impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi + for Runtime + { + fn query_call_info( + call: RuntimeCall, + len: u32, + ) -> pallet_transaction_payment::RuntimeDispatchInfo { + TransactionPayment::query_call_info(call, len) + } + fn query_call_fee_details( + call: RuntimeCall, + len: u32, + ) -> pallet_transaction_payment::FeeDetails { + TransactionPayment::query_call_fee_details(call, len) + } + fn query_weight_to_fee(weight: Weight) -> Balance { + TransactionPayment::weight_to_fee(weight) + } + fn query_length_to_fee(length: u32) -> Balance { + TransactionPayment::length_to_fee(length) + } + } + + impl xcm_runtime_apis::fees::XcmPaymentApi for Runtime { + fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result, XcmPaymentApiError> { + let acceptable_assets = vec![AssetId(xcm_config::DotLocation::get())]; + PolkadotXcm::query_acceptable_payment_assets(xcm_version, acceptable_assets) + } + + fn query_weight_to_asset_fee(weight: Weight, asset: VersionedAssetId) -> Result { + let latest_asset_id: Result = asset.clone().try_into(); + match latest_asset_id { + Ok(asset_id) if asset_id.0 == xcm_config::DotLocation::get() => { + // for native token + Ok(WeightToFee::weight_to_fee(&weight)) + }, + Ok(asset_id) => { + log::trace!(target: "xcm::xcm_runtime_apis", "query_weight_to_asset_fee - unhandled asset_id: {asset_id:?}!"); + Err(XcmPaymentApiError::AssetNotFound) + }, + Err(_) => { + log::trace!(target: "xcm::xcm_runtime_apis", "query_weight_to_asset_fee - failed to convert asset: {asset:?}!"); + Err(XcmPaymentApiError::VersionedConversionFailed) + } + } + } + + fn query_xcm_weight(message: VersionedXcm<()>) -> Result { + PolkadotXcm::query_xcm_weight(message) + } + + fn query_delivery_fees(destination: VersionedLocation, message: VersionedXcm<()>) -> Result { + PolkadotXcm::query_delivery_fees(destination, message) + } + } + + impl xcm_runtime_apis::dry_run::DryRunApi for Runtime { + fn dry_run_call(origin: OriginCaller, call: RuntimeCall) -> Result, XcmDryRunApiError> { + PolkadotXcm::dry_run_call::(origin, call) + } + + fn dry_run_xcm(origin_location: VersionedLocation, xcm: VersionedXcm) -> Result, XcmDryRunApiError> { + PolkadotXcm::dry_run_xcm::(origin_location, xcm) + } + } + + impl xcm_runtime_apis::conversions::LocationToAccountApi for Runtime { + fn convert_location(location: VersionedLocation) -> Result< + AccountId, + xcm_runtime_apis::conversions::Error + > { + xcm_runtime_apis::conversions::LocationToAccountHelper::< + AccountId, + xcm_config::LocationToAccountId, + >::convert_location(location) + } + } + + impl cumulus_primitives_core::CollectCollationInfo for Runtime { + fn collect_collation_info(header: &::Header) -> cumulus_primitives_core::CollationInfo { + ParachainSystem::collect_collation_info(header) + } + } + + impl sp_genesis_builder::GenesisBuilder for Runtime { + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) + } + + fn get_preset(id: &Option) -> Option> { + get_preset::(id, &genesis_config_presets::get_preset) + } + + fn preset_names() -> Vec { + genesis_config_presets::preset_names() + } + } + + #[cfg(feature = "try-runtime")] + impl frame_try_runtime::TryRuntime for Runtime { + fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) { + let weight = Executive::try_runtime_upgrade(checks).unwrap(); + (weight, RuntimeBlockWeights::get().max_block) + } + + fn execute_block( + block: Block, + state_root_check: bool, + signature_check: bool, + select: frame_try_runtime::TryStateSelect, + ) -> Weight { + // NOTE: intentional unwrap: we don't want to propagate the error backwards, and want to + // have a backtrace here. + Executive::try_execute_block(block, state_root_check, signature_check, select).unwrap() + } + } + + #[cfg(feature = "runtime-benchmarks")] + impl frame_benchmarking::Benchmark for Runtime { + fn benchmark_metadata(extra: bool) -> ( + Vec, + Vec, + ) { + use frame_benchmarking::{Benchmarking, BenchmarkList}; + use frame_support::traits::StorageInfoTrait; + use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsiscsBenchmark; + use frame_system_benchmarking::Pallet as SystemBench; + use cumulus_pallet_session_benchmarking::Pallet as SessionBench; + + // This is defined once again in dispatch_benchmark, because list_benchmarks! + // and add_benchmarks! are macros exported by define_benchmarks! macros and those types + // are referenced in that call. + type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::; + type XcmGeneric = pallet_xcm_benchmarks::generic::Pallet::; + + let mut list = Vec::::new(); + list_benchmarks!(list, extra); + + let storage_info = AllPalletsWithSystem::storage_info(); + (list, storage_info) + } + + fn dispatch_benchmark( + config: frame_benchmarking::BenchmarkConfig + ) -> Result, sp_runtime::RuntimeString> { + use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; + use frame_support::traits::WhitelistedStorageKeys; + use sp_storage::TrackedStorageKey; + + use frame_system_benchmarking::Pallet as SystemBench; + impl frame_system_benchmarking::Config for Runtime { + fn setup_set_code_requirements(code: &sp_std::vec::Vec) -> Result<(), BenchmarkError> { + ParachainSystem::initialize_for_set_code_benchmark(code.len() as u32); + Ok(()) + } + + fn verify_set_code() { + System::assert_last_event(cumulus_pallet_parachain_system::Event::::ValidationFunctionStored.into()); + } + } + + use cumulus_pallet_session_benchmarking::Pallet as SessionBench; + impl cumulus_pallet_session_benchmarking::Config for Runtime {} + + use xcm::latest::prelude::*; + use xcm_config::DotLocation; + + parameter_types! { + pub ExistentialDepositAsset: Option = Some(( + DotLocation::get(), + ExistentialDeposit::get() + ).into()); + } + + use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsiscsBenchmark; + impl pallet_xcm::benchmarking::Config for Runtime { + type DeliveryHelper = cumulus_primitives_utility::ToParentDeliveryHelper< + xcm_config::XcmConfig, + ExistentialDepositAsset, + PriceForParentDelivery, + >; + + fn reachable_dest() -> Option { + Some(Parent.into()) + } + + fn teleportable_asset_and_dest() -> Option<(Asset, Location)> { + // Relay/native token can be teleported between Collectives and Relay. + Some(( + Asset { + fun: Fungible(ExistentialDeposit::get()), + id: AssetId(Parent.into()) + }.into(), + Parent.into(), + )) + } + + fn reserve_transferable_asset_and_dest() -> Option<(Asset, Location)> { + // Reserve transfers are disabled on Collectives. + None + } + + fn set_up_complex_asset_transfer( + ) -> Option<(Assets, u32, Location, Box)> { + // Collectives only supports teleports to system parachain. + // Relay/native token can be teleported between Collectives and Relay. + let native_location = Parent.into(); + let dest = Parent.into(); + pallet_xcm::benchmarking::helpers::native_teleport_as_asset_transfer::( + native_location, + dest + ) + } + + fn get_asset() -> Asset { + Asset { + id: AssetId(Location::parent()), + fun: Fungible(ExistentialDeposit::get()), + } + } + } + + impl pallet_xcm_benchmarks::Config for Runtime { + type XcmConfig = xcm_config::XcmConfig; + type AccountIdConverter = xcm_config::LocationToAccountId; + type DeliveryHelper = cumulus_primitives_utility::ToParentDeliveryHelper< + xcm_config::XcmConfig, + ExistentialDepositAsset, + PriceForParentDelivery, + >; + fn valid_destination() -> Result { + Ok(DotLocation::get()) + } + fn worst_case_holding(_depositable_count: u32) -> Assets { + // just concrete assets according to relay chain. + let assets: Vec = vec![ + Asset { + id: AssetId(DotLocation::get()), + fun: Fungible(1_000_000 * UNITS), + } + ]; + assets.into() + } + } + + parameter_types! { + pub const TrustedTeleporter: Option<(Location, Asset)> = Some(( + DotLocation::get(), + Asset { fun: Fungible(UNITS), id: AssetId(DotLocation::get()) }, + )); + pub const CheckedAccount: Option<(AccountId, xcm_builder::MintLocation)> = None; + pub const TrustedReserve: Option<(Location, Asset)> = None; + } + + impl pallet_xcm_benchmarks::fungible::Config for Runtime { + type TransactAsset = Balances; + + type CheckedAccount = CheckedAccount; + type TrustedTeleporter = TrustedTeleporter; + type TrustedReserve = TrustedReserve; + + fn get_asset() -> Asset { + Asset { + id: AssetId(DotLocation::get()), + fun: Fungible(UNITS), + } + } + } + + impl pallet_xcm_benchmarks::generic::Config for Runtime { + type TransactAsset = Balances; + type RuntimeCall = RuntimeCall; + + fn worst_case_response() -> (u64, Response) { + (0u64, Response::Version(Default::default())) + } + + fn worst_case_asset_exchange() -> Result<(Assets, Assets), BenchmarkError> { + Err(BenchmarkError::Skip) + } + + fn universal_alias() -> Result<(Location, Junction), BenchmarkError> { + Err(BenchmarkError::Skip) + } + + fn transact_origin_and_runtime_call() -> Result<(Location, RuntimeCall), BenchmarkError> { + Ok((DotLocation::get(), frame_system::Call::remark_with_event { remark: vec![] }.into())) + } + + fn subscribe_origin() -> Result { + Ok(DotLocation::get()) + } + + fn claimable_asset() -> Result<(Location, Location, Assets), BenchmarkError> { + let origin = DotLocation::get(); + let assets: Assets = (AssetId(DotLocation::get()), 1_000 * UNITS).into(); + let ticket = Location { parents: 0, interior: Here }; + Ok((origin, ticket, assets)) + } + + fn fee_asset() -> Result { + Ok(Asset { + id: AssetId(DotLocation::get()), + fun: Fungible(1_000_000 * UNITS), + }) + } + + fn unlockable_asset() -> Result<(Location, Location, Asset), BenchmarkError> { + Err(BenchmarkError::Skip) + } + + fn export_message_origin_and_destination( + ) -> Result<(Location, NetworkId, InteriorLocation), BenchmarkError> { + Err(BenchmarkError::Skip) + } + + fn alias_origin() -> Result<(Location, Location), BenchmarkError> { + Err(BenchmarkError::Skip) + } + } + + type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::; + type XcmGeneric = pallet_xcm_benchmarks::generic::Pallet::; + + let whitelist: Vec = AllPalletsWithSystem::whitelisted_storage_keys(); + let mut batches = Vec::::new(); + let params = (&config, &whitelist); + add_benchmarks!(params, batches); + + Ok(batches) + } + } +} + +cumulus_pallet_parachain_system::register_validate_block! { + Runtime = Runtime, + BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::, +} + +#[test] +fn fellowship_salary_pallet_index() { + use frame_support::pallet_prelude::PalletInfoAccess; + // Remote accounts with funds depend on this pallet staying in the same index. + assert_eq!( + ::index() as u8, + collectives_polkadot_runtime_constants::FELLOWSHIP_SALARY_PALLET_INDEX + ); +} + +#[test] +fn fellowship_treasury_pallet_index() { + use frame_support::pallet_prelude::PalletInfoAccess; + // Remote accounts with funds depend on this pallet staying in the same index. + assert_eq!( + ::index() as u8, + collectives_polkadot_runtime_constants::FELLOWSHIP_TREASURY_PALLET_INDEX + ); +} + +#[test] +fn test_ed_is_one_tenth_of_relay() { + let relay_ed = polkadot_runtime_constants::currency::EXISTENTIAL_DEPOSIT; + let collectives_ed = ExistentialDeposit::get(); + assert_eq!(relay_ed / 10, collectives_ed); +} + +#[test] +fn test_transasction_byte_fee_is_one_twentieth_of_relay() { + let relay_tbf = polkadot_runtime_constants::fee::TRANSACTION_BYTE_FEE; + let parachain_tbf = TransactionByteFee::get(); + assert_eq!(relay_tbf / 20, parachain_tbf); +} diff --git a/system-parachains/collectives-paseo/src/weights/block_weights.rs b/system-parachains/collectives-paseo/src/weights/block_weights.rs new file mode 100644 index 000000000..e7fdb2aae --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/block_weights.rs @@ -0,0 +1,53 @@ +// This file is part of Substrate. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +pub mod constants { + use frame_support::{ + parameter_types, + weights::{constants, Weight}, + }; + + parameter_types! { + /// Importing a block with 0 Extrinsics. + pub const BlockExecutionWeight: Weight = + Weight::from_parts(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_000_000), 0); + } + + #[cfg(test)] + mod test_weights { + use frame_support::weights::constants; + + /// Checks that the weight exists and is sane. + // NOTE: If this test fails but you are sure that the generated values are fine, + // you can delete it. + #[test] + fn sane() { + let w = super::constants::BlockExecutionWeight::get(); + + // At least 100 µs. + assert!( + w.ref_time() >= 100u64 * constants::WEIGHT_REF_TIME_PER_MICROS, + "Weight should be at least 100 µs." + ); + // At most 50 ms. + assert!( + w.ref_time() <= 50u64 * constants::WEIGHT_REF_TIME_PER_MILLIS, + "Weight should be at most 50 ms." + ); + } + } +} diff --git a/system-parachains/collectives-paseo/src/weights/cumulus_pallet_parachain_system.rs b/system-parachains/collectives-paseo/src/weights/cumulus_pallet_parachain_system.rs new file mode 100644 index 000000000..8c77d1ed8 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/cumulus_pallet_parachain_system.rs @@ -0,0 +1,74 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `cumulus_pallet_parachain_system` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=cumulus_pallet_parachain_system +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `cumulus_pallet_parachain_system`. +pub struct WeightInfo(PhantomData); +impl cumulus_pallet_parachain_system::WeightInfo for WeightInfo { + /// Storage: `ParachainSystem::LastDmqMqcHead` (r:1 w:1) + /// Proof: `ParachainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::ServiceHead` (r:1 w:1) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ProcessedDownwardMessages` (r:0 w:1) + /// Proof: `ParachainSystem::ProcessedDownwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `MessageQueue::Pages` (r:0 w:1000) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 1000]`. + fn enqueue_inbound_downward_messages(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `48` + // Estimated: `3517` + // Minimum execution time: 5_360_000 picoseconds. + Weight::from_parts(5_520_000, 0) + .saturating_add(Weight::from_parts(0, 3517)) + // Standard Error: 20_314 + .saturating_add(Weight::from_parts(180_711_309, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/cumulus_pallet_xcmp_queue.rs b/system-parachains/collectives-paseo/src/weights/cumulus_pallet_xcmp_queue.rs new file mode 100644 index 000000000..132d035e0 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/cumulus_pallet_xcmp_queue.rs @@ -0,0 +1,152 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `cumulus_pallet_xcmp_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=cumulus_pallet_xcmp_queue +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `cumulus_pallet_xcmp_queue`. +pub struct WeightInfo(PhantomData); +impl cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo { + /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1) + /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + fn set_config_with_u32() -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `1497` + // Minimum execution time: 8_280_000 picoseconds. + Weight::from_parts(8_560_000, 0) + .saturating_add(Weight::from_parts(0, 1497)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0) + /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::ServiceHead` (r:1 w:1) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0) + /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:0 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn enqueue_xcmp_message() -> Weight { + // Proof Size summary in bytes: + // Measured: `148` + // Estimated: `5487` + // Minimum execution time: 18_681_000 picoseconds. + Weight::from_parts(19_050_000, 0) + .saturating_add(Weight::from_parts(0, 5487)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + fn suspend_channel() -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `2767` + // Minimum execution time: 5_870_000 picoseconds. + Weight::from_parts(6_050_000, 0) + .saturating_add(Weight::from_parts(0, 2767)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + fn resume_channel() -> Weight { + // Proof Size summary in bytes: + // Measured: `177` + // Estimated: `2767` + // Minimum execution time: 7_290_000 picoseconds. + Weight::from_parts(7_540_000, 0) + .saturating_add(Weight::from_parts(0, 2767)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn take_first_concatenated_xcm() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_290_000 picoseconds. + Weight::from_parts(7_530_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) + /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1) + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::ServiceHead` (r:1 w:1) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0) + /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0) + /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:0 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn on_idle_good_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65777` + // Estimated: `69242` + // Minimum execution time: 119_481_000 picoseconds. + Weight::from_parts(120_701_000, 0) + .saturating_add(Weight::from_parts(0, 69242)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) + /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1) + fn on_idle_large_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65776` + // Estimated: `69241` + // Minimum execution time: 57_650_000 picoseconds. + Weight::from_parts(58_310_000, 0) + .saturating_add(Weight::from_parts(0, 69241)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/extrinsic_weights.rs b/system-parachains/collectives-paseo/src/weights/extrinsic_weights.rs new file mode 100644 index 000000000..1a4adb968 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/extrinsic_weights.rs @@ -0,0 +1,53 @@ +// This file is part of Substrate. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +pub mod constants { + use frame_support::{ + parameter_types, + weights::{constants, Weight}, + }; + + parameter_types! { + /// Executing a NO-OP `System::remarks` Extrinsic. + pub const ExtrinsicBaseWeight: Weight = + Weight::from_parts(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000), 0); + } + + #[cfg(test)] + mod test_weights { + use frame_support::weights::constants; + + /// Checks that the weight exists and is sane. + // NOTE: If this test fails but you are sure that the generated values are fine, + // you can delete it. + #[test] + fn sane() { + let w = super::constants::ExtrinsicBaseWeight::get(); + + // At least 10 µs. + assert!( + w.ref_time() >= 10u64 * constants::WEIGHT_REF_TIME_PER_MICROS, + "Weight should be at least 10 µs." + ); + // At most 1 ms. + assert!( + w.ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, + "Weight should be at most 1 ms." + ); + } + } +} diff --git a/system-parachains/collectives-paseo/src/weights/frame_system.rs b/system-parachains/collectives-paseo/src/weights/frame_system.rs new file mode 100644 index 000000000..72b1d9193 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/frame_system.rs @@ -0,0 +1,187 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `frame_system` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=frame_system +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `frame_system`. +pub struct WeightInfo(PhantomData); +impl frame_system::WeightInfo for WeightInfo { + /// The range of component `b` is `[0, 3932160]`. + fn remark(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_780_000 picoseconds. + Weight::from_parts(2_891_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(382, 0).saturating_mul(b.into())) + } + /// The range of component `b` is `[0, 3932160]`. + fn remark_with_event(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_370_000 picoseconds. + Weight::from_parts(7_500_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_789, 0).saturating_mul(b.into())) + } + /// Storage: `System::Digest` (r:1 w:1) + /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) + /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) + fn set_heap_pages() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 4_741_000 picoseconds. + Weight::from_parts(4_940_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0) + /// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1) + /// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1) + /// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1) + /// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn set_code() -> Weight { + // Proof Size summary in bytes: + // Measured: `164` + // Estimated: `1649` + // Minimum execution time: 117_784_202_000 picoseconds. + Weight::from_parts(121_680_797_000, 0) + .saturating_add(Weight::from_parts(0, 1649)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Skipped::Metadata` (r:0 w:0) + /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `i` is `[0, 1000]`. + fn set_storage(i: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_821_000 picoseconds. + Weight::from_parts(2_890_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 2_603 + .saturating_add(Weight::from_parts(890_951, 0).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + /// Storage: `Skipped::Metadata` (r:0 w:0) + /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `i` is `[0, 1000]`. + fn kill_storage(i: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_720_000 picoseconds. + Weight::from_parts(2_810_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_100 + .saturating_add(Weight::from_parts(669_929, 0).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + /// Storage: `Skipped::Metadata` (r:0 w:0) + /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `p` is `[0, 1000]`. + fn kill_prefix(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `98 + p * (69 ±0)` + // Estimated: `94 + p * (70 ±0)` + // Minimum execution time: 5_360_000 picoseconds. + Weight::from_parts(5_470_000, 0) + .saturating_add(Weight::from_parts(0, 94)) + // Standard Error: 1_573 + .saturating_add(Weight::from_parts(1_508_242, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) + } + /// Storage: `System::AuthorizedUpgrade` (r:0 w:1) + /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + fn authorize_upgrade() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 25_730_000 picoseconds. + Weight::from_parts(28_041_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::AuthorizedUpgrade` (r:1 w:1) + /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0) + /// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1) + /// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1) + /// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1) + /// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn apply_authorized_upgrade() -> Weight { + // Proof Size summary in bytes: + // Measured: `186` + // Estimated: `1671` + // Minimum execution time: 119_604_403_000 picoseconds. + Weight::from_parts(121_560_266_000, 0) + .saturating_add(Weight::from_parts(0, 1671)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/mod.rs b/system-parachains/collectives-paseo/src/weights/mod.rs new file mode 100644 index 000000000..4ea2d6cdd --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/mod.rs @@ -0,0 +1,52 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Cumulus. + +// Cumulus is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Cumulus is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Cumulus. If not, see . + +pub mod block_weights; +pub mod cumulus_pallet_parachain_system; +pub mod cumulus_pallet_xcmp_queue; +pub mod extrinsic_weights; +pub mod frame_system; +pub mod pallet_alliance; +pub mod pallet_asset_rate; +pub mod pallet_balances; +pub mod pallet_collator_selection; +pub mod pallet_collective; +pub mod pallet_core_fellowship_ambassador_core; +pub mod pallet_core_fellowship_fellowship_core; +pub mod pallet_message_queue; +pub mod pallet_multisig; +pub mod pallet_preimage; +pub mod pallet_proxy; +pub mod pallet_ranked_collective_ambassador_collective; +pub mod pallet_ranked_collective_fellowship_collective; +pub mod pallet_referenda_ambassador_referenda; +pub mod pallet_referenda_fellowship_referenda; +pub mod pallet_salary_ambassador_salary; +pub mod pallet_salary_fellowship_salary; +pub mod pallet_scheduler; +pub mod pallet_session; +pub mod pallet_timestamp; +pub mod pallet_treasury_ambassador_treasury; +pub mod pallet_treasury_fellowship_treasury; +pub mod pallet_utility; +pub mod pallet_xcm; +pub mod paritydb_weights; +pub mod rocksdb_weights; +pub mod xcm; + +pub use block_weights::constants::BlockExecutionWeight; +pub use extrinsic_weights::constants::ExtrinsicBaseWeight; +pub use rocksdb_weights::constants::RocksDbWeight; diff --git a/system-parachains/collectives-paseo/src/weights/pallet_alliance.rs b/system-parachains/collectives-paseo/src/weights/pallet_alliance.rs new file mode 100644 index 000000000..253bf8fe1 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_alliance.rs @@ -0,0 +1,494 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_alliance` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_alliance +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_alliance`. +pub struct WeightInfo(PhantomData); +impl pallet_alliance::WeightInfo for WeightInfo { + /// Storage: `Alliance::Members` (r:1 w:0) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalCount` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Voting` (r:0 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[2, 100]`. + /// The range of component `p` is `[1, 100]`. + fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `476 + m * (32 ±0) + p * (36 ±0)` + // Estimated: `6676 + m * (32 ±0) + p * (36 ±0)` + // Minimum execution time: 36_510_000 picoseconds. + Weight::from_parts(40_173_720, 0) + .saturating_add(Weight::from_parts(0, 6676)) + // Standard Error: 88 + .saturating_add(Weight::from_parts(512, 0).saturating_mul(b.into())) + // Standard Error: 919 + .saturating_add(Weight::from_parts(14_447, 0).saturating_mul(m.into())) + // Standard Error: 907 + .saturating_add(Weight::from_parts(171_048, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `Alliance::Members` (r:1 w:0) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[5, 100]`. + fn vote(m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `905 + m * (64 ±0)` + // Estimated: `6676 + m * (64 ±0)` + // Minimum execution time: 34_990_000 picoseconds. + Weight::from_parts(35_526_227, 0) + .saturating_add(Weight::from_parts(0, 6676)) + // Standard Error: 341 + .saturating_add(Weight::from_parts(34_818, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) + } + /// Storage: `Alliance::Members` (r:1 w:0) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_disapproved(m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `349 + m * (96 ±0) + p * (36 ±0)` + // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)` + // Minimum execution time: 44_581_000 picoseconds. + Weight::from_parts(43_188_958, 0) + .saturating_add(Weight::from_parts(0, 6676)) + // Standard Error: 838 + .saturating_add(Weight::from_parts(46_650, 0).saturating_mul(m.into())) + // Standard Error: 817 + .saturating_add(Weight::from_parts(160_761, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `Alliance::Members` (r:1 w:0) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `799 + m * (96 ±0) + p * (41 ±0)` + // Estimated: `6676 + m * (97 ±0) + p * (40 ±0)` + // Minimum execution time: 57_671_000 picoseconds. + Weight::from_parts(61_584_243, 0) + .saturating_add(Weight::from_parts(0, 6676)) + // Standard Error: 178 + .saturating_add(Weight::from_parts(385, 0).saturating_mul(b.into())) + // Standard Error: 1_892 + .saturating_add(Weight::from_parts(48_955, 0).saturating_mul(m.into())) + // Standard Error: 1_844 + .saturating_add(Weight::from_parts(182_259, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into())) + } + /// Storage: `Alliance::Members` (r:1 w:0) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:1 w:0) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Alliance::Rule` (r:0 w:1) + /// Proof: `Alliance::Rule` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`) + /// The range of component `m` is `[2, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_disapproved(m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `555 + m * (96 ±0) + p * (41 ±0)` + // Estimated: `6676 + m * (109 ±0) + p * (43 ±0)` + // Minimum execution time: 59_640_000 picoseconds. + Weight::from_parts(58_295_831, 0) + .saturating_add(Weight::from_parts(0, 6676)) + // Standard Error: 5_328 + .saturating_add(Weight::from_parts(121_540, 0).saturating_mul(m.into())) + // Standard Error: 5_263 + .saturating_add(Weight::from_parts(213_612, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 109).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 43).saturating_mul(p.into())) + } + /// Storage: `Alliance::Members` (r:1 w:0) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:1 w:0) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[5, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `454 + m * (96 ±0) + p * (36 ±0)` + // Estimated: `6676 + m * (96 ±0) + p * (36 ±0)` + // Minimum execution time: 46_270_000 picoseconds. + Weight::from_parts(45_242_532, 0) + .saturating_add(Weight::from_parts(0, 6676)) + // Standard Error: 71 + .saturating_add(Weight::from_parts(89, 0).saturating_mul(b.into())) + // Standard Error: 769 + .saturating_add(Weight::from_parts(41_655, 0).saturating_mul(m.into())) + // Standard Error: 741 + .saturating_add(Weight::from_parts(157_849, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 96).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `Alliance::Members` (r:2 w:2) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Members` (r:1 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[1, 100]`. + /// The range of component `z` is `[0, 100]`. + fn init_members(m: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `48` + // Estimated: `12362` + // Minimum execution time: 34_920_000 picoseconds. + Weight::from_parts(26_088_972, 0) + .saturating_add(Weight::from_parts(0, 12362)) + // Standard Error: 398 + .saturating_add(Weight::from_parts(106_964, 0).saturating_mul(m.into())) + // Standard Error: 393 + .saturating_add(Weight::from_parts(94_357, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Alliance::Members` (r:2 w:2) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:0) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Alliance::DepositOf` (r:200 w:50) + /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:50 w:50) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Members` (r:0 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:0 w:1) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `x` is `[1, 100]`. + /// The range of component `y` is `[0, 100]`. + /// The range of component `z` is `[0, 50]`. + fn disband(x: u32, y: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + x * (51 ±0) + y * (53 ±0) + z * (253 ±0)` + // Estimated: `12362 + x * (2539 ±0) + y * (2539 ±0) + z * (2603 ±1)` + // Minimum execution time: 432_223_000 picoseconds. + Weight::from_parts(433_652_000, 0) + .saturating_add(Weight::from_parts(0, 12362)) + // Standard Error: 37_051 + .saturating_add(Weight::from_parts(815_810, 0).saturating_mul(x.into())) + // Standard Error: 36_873 + .saturating_add(Weight::from_parts(856_807, 0).saturating_mul(y.into())) + // Standard Error: 73_679 + .saturating_add(Weight::from_parts(17_660_249, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into()))) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(z.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(z.into()))) + .saturating_add(Weight::from_parts(0, 2539).saturating_mul(x.into())) + .saturating_add(Weight::from_parts(0, 2539).saturating_mul(y.into())) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(z.into())) + } + /// Storage: `Alliance::Rule` (r:0 w:1) + /// Proof: `Alliance::Rule` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`) + fn set_rule() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_480_000 picoseconds. + Weight::from_parts(7_760_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Alliance::Announcements` (r:1 w:1) + /// Proof: `Alliance::Announcements` (`max_values`: Some(1), `max_size`: Some(8702), added: 9197, mode: `MaxEncodedLen`) + fn announce() -> Weight { + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `10187` + // Minimum execution time: 11_570_000 picoseconds. + Weight::from_parts(11_750_000, 0) + .saturating_add(Weight::from_parts(0, 10187)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Alliance::Announcements` (r:1 w:1) + /// Proof: `Alliance::Announcements` (`max_values`: Some(1), `max_size`: Some(8702), added: 9197, mode: `MaxEncodedLen`) + fn remove_announcement() -> Weight { + // Proof Size summary in bytes: + // Measured: `149` + // Estimated: `10187` + // Minimum execution time: 14_450_000 picoseconds. + Weight::from_parts(14_920_000, 0) + .saturating_add(Weight::from_parts(0, 10187)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Alliance::Members` (r:3 w:1) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:0) + /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Alliance::DepositOf` (r:0 w:1) + /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + fn join_alliance() -> Weight { + // Proof Size summary in bytes: + // Measured: `300` + // Estimated: `18048` + // Minimum execution time: 53_170_000 picoseconds. + Weight::from_parts(54_020_000, 0) + .saturating_add(Weight::from_parts(0, 18048)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Alliance::Members` (r:3 w:1) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:0) + /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + fn nominate_ally() -> Weight { + // Proof Size summary in bytes: + // Measured: `199` + // Estimated: `18048` + // Minimum execution time: 32_950_000 picoseconds. + Weight::from_parts(33_350_000, 0) + .saturating_add(Weight::from_parts(0, 18048)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Alliance::Members` (r:2 w:2) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:0) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:0 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:0 w:1) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn elevate_ally() -> Weight { + // Proof Size summary in bytes: + // Measured: `273` + // Estimated: `12362` + // Minimum execution time: 33_081_000 picoseconds. + Weight::from_parts(33_680_000, 0) + .saturating_add(Weight::from_parts(0, 12362)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Alliance::Members` (r:4 w:2) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:0) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:0 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:0 w:1) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Alliance::RetiringMembers` (r:0 w:1) + /// Proof: `Alliance::RetiringMembers` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn give_retirement_notice() -> Weight { + // Proof Size summary in bytes: + // Measured: `273` + // Estimated: `23734` + // Minimum execution time: 39_761_000 picoseconds. + Weight::from_parts(40_500_000, 0) + .saturating_add(Weight::from_parts(0, 23734)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `Alliance::RetiringMembers` (r:1 w:1) + /// Proof: `Alliance::RetiringMembers` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Alliance::Members` (r:1 w:1) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `Alliance::DepositOf` (r:1 w:1) + /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn retire() -> Weight { + // Proof Size summary in bytes: + // Measured: `517` + // Estimated: `6676` + // Minimum execution time: 49_411_000 picoseconds. + Weight::from_parts(49_920_000, 0) + .saturating_add(Weight::from_parts(0, 6676)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Alliance::Members` (r:3 w:1) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:0) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Alliance::DepositOf` (r:1 w:1) + /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:0 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:0 w:1) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn kick_member() -> Weight { + // Proof Size summary in bytes: + // Measured: `648` + // Estimated: `18048` + // Minimum execution time: 168_791_000 picoseconds. + Weight::from_parts(170_322_000, 0) + .saturating_add(Weight::from_parts(0, 18048)) + .saturating_add(T::DbWeight::get().reads(12)) + .saturating_add(T::DbWeight::get().writes(7)) + } + /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:1) + /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Alliance::UnscrupulousWebsites` (r:1 w:1) + /// Proof: `Alliance::UnscrupulousWebsites` (`max_values`: Some(1), `max_size`: Some(25702), added: 26197, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 100]`. + /// The range of component `l` is `[0, 255]`. + fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `27187` + // Minimum execution time: 7_060_000 picoseconds. + Weight::from_parts(7_210_000, 0) + .saturating_add(Weight::from_parts(0, 27187)) + // Standard Error: 3_154 + .saturating_add(Weight::from_parts(1_307_654, 0).saturating_mul(n.into())) + // Standard Error: 1_235 + .saturating_add(Weight::from_parts(76_511, 0).saturating_mul(l.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:1) + /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `Alliance::UnscrupulousWebsites` (r:1 w:1) + /// Proof: `Alliance::UnscrupulousWebsites` (`max_values`: Some(1), `max_size`: Some(25702), added: 26197, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 100]`. + /// The range of component `l` is `[0, 255]`. + fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + l * (100 ±0) + n * (289 ±0)` + // Estimated: `27187` + // Minimum execution time: 7_160_000 picoseconds. + Weight::from_parts(7_310_000, 0) + .saturating_add(Weight::from_parts(0, 27187)) + // Standard Error: 210_238 + .saturating_add(Weight::from_parts(21_813_457, 0).saturating_mul(n.into())) + // Standard Error: 82_338 + .saturating_add(Weight::from_parts(43_234, 0).saturating_mul(l.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Alliance::Members` (r:3 w:2) + /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:0) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:0 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:0 w:1) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn abdicate_fellow_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `273` + // Estimated: `18048` + // Minimum execution time: 39_040_000 picoseconds. + Weight::from_parts(39_570_000, 0) + .saturating_add(Weight::from_parts(0, 18048)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_asset_rate.rs b/system-parachains/collectives-paseo/src/weights/pallet_asset_rate.rs new file mode 100644 index 000000000..74ce5aff6 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_asset_rate.rs @@ -0,0 +1,86 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_asset_rate` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_asset_rate +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_asset_rate`. +pub struct WeightInfo(PhantomData); +impl pallet_asset_rate::WeightInfo for WeightInfo { + /// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1) + /// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(1238), added: 3713, mode: `MaxEncodedLen`) + fn create() -> Weight { + // Proof Size summary in bytes: + // Measured: `6` + // Estimated: `4703` + // Minimum execution time: 13_790_000 picoseconds. + Weight::from_parts(14_080_000, 0) + .saturating_add(Weight::from_parts(0, 4703)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1) + /// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(1238), added: 3713, mode: `MaxEncodedLen`) + fn update() -> Weight { + // Proof Size summary in bytes: + // Measured: `73` + // Estimated: `4703` + // Minimum execution time: 16_141_000 picoseconds. + Weight::from_parts(16_610_000, 0) + .saturating_add(Weight::from_parts(0, 4703)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1) + /// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(1238), added: 3713, mode: `MaxEncodedLen`) + fn remove() -> Weight { + // Proof Size summary in bytes: + // Measured: `73` + // Estimated: `4703` + // Minimum execution time: 17_190_000 picoseconds. + Weight::from_parts(17_630_000, 0) + .saturating_add(Weight::from_parts(0, 4703)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_balances.rs b/system-parachains/collectives-paseo/src/weights/pallet_balances.rs new file mode 100644 index 000000000..9bdcd830c --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_balances.rs @@ -0,0 +1,174 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_balances` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_balances +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_balances`. +pub struct WeightInfo(PhantomData); +impl pallet_balances::WeightInfo for WeightInfo { + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_allow_death() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `3593` + // Minimum execution time: 59_870_000 picoseconds. + Weight::from_parts(60_480_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_keep_alive() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `3593` + // Minimum execution time: 47_300_000 picoseconds. + Weight::from_parts(47_820_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn force_set_balance_creating() -> Weight { + // Proof Size summary in bytes: + // Measured: `174` + // Estimated: `3593` + // Minimum execution time: 19_960_000 picoseconds. + Weight::from_parts(20_540_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn force_set_balance_killing() -> Weight { + // Proof Size summary in bytes: + // Measured: `174` + // Estimated: `3593` + // Minimum execution time: 29_030_000 picoseconds. + Weight::from_parts(29_440_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn force_transfer() -> Weight { + // Proof Size summary in bytes: + // Measured: `103` + // Estimated: `6196` + // Minimum execution time: 64_831_000 picoseconds. + Weight::from_parts(65_450_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `3593` + // Minimum execution time: 58_261_000 picoseconds. + Weight::from_parts(58_791_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn force_unreserve() -> Weight { + // Proof Size summary in bytes: + // Measured: `174` + // Estimated: `3593` + // Minimum execution time: 23_670_000 picoseconds. + Weight::from_parts(24_010_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:999 w:999) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `u` is `[1, 1000]`. + fn upgrade_accounts(u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + u * (136 ±0)` + // Estimated: `990 + u * (2603 ±0)` + // Minimum execution time: 22_031_000 picoseconds. + Weight::from_parts(22_210_000, 0) + .saturating_add(Weight::from_parts(0, 990)) + // Standard Error: 14_276 + .saturating_add(Weight::from_parts(17_775_018, 0).saturating_mul(u.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) + } + fn force_adjust_total_issuance() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_780_000 picoseconds. + Weight::from_parts(7_960_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn burn_allow_death() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 37_140_000 picoseconds. + Weight::from_parts(37_660_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn burn_keep_alive() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 25_330_000 picoseconds. + Weight::from_parts(25_550_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_collator_selection.rs b/system-parachains/collectives-paseo/src/weights/pallet_collator_selection.rs new file mode 100644 index 000000000..3377d5beb --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_collator_selection.rs @@ -0,0 +1,277 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_collator_selection` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_collator_selection +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_collator_selection`. +pub struct WeightInfo(PhantomData); +impl pallet_collator_selection::WeightInfo for WeightInfo { + /// Storage: `Session::NextKeys` (r:20 w:0) + /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `CollatorSelection::Invulnerables` (r:0 w:1) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// The range of component `b` is `[1, 20]`. + fn set_invulnerables(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `197 + b * (79 ±0)` + // Estimated: `1188 + b * (2555 ±0)` + // Minimum execution time: 18_310_000 picoseconds. + Weight::from_parts(14_516_978, 0) + .saturating_add(Weight::from_parts(0, 1188)) + // Standard Error: 8_518 + .saturating_add(Weight::from_parts(4_910_816, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(Weight::from_parts(0, 2555).saturating_mul(b.into())) + } + /// Storage: `Session::NextKeys` (r:1 w:0) + /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `CollatorSelection::Invulnerables` (r:1 w:1) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `b` is `[1, 19]`. + /// The range of component `c` is `[1, 99]`. + fn add_invulnerable(b: u32, c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `830 + b * (32 ±0) + c * (53 ±0)` + // Estimated: `6287 + b * (37 ±0) + c * (53 ±0)` + // Minimum execution time: 54_660_000 picoseconds. + Weight::from_parts(54_708_845, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 11_808 + .saturating_add(Weight::from_parts(22_186, 0).saturating_mul(b.into())) + // Standard Error: 2_238 + .saturating_add(Weight::from_parts(144_220, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 37).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 53).saturating_mul(c.into())) + } + /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::Invulnerables` (r:1 w:1) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// The range of component `b` is `[5, 20]`. + fn remove_invulnerable(b: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `153 + b * (32 ±0)` + // Estimated: `6287` + // Minimum execution time: 19_070_000 picoseconds. + Weight::from_parts(19_192_492, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 1_128 + .saturating_add(Weight::from_parts(63_826, 0).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `CollatorSelection::DesiredCandidates` (r:0 w:1) + /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn set_desired_candidates() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_670_000 picoseconds. + Weight::from_parts(6_930_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `CollatorSelection::CandidacyBond` (r:1 w:1) + /// Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:100 w:100) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:100) + /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `c` is `[0, 100]`. + /// The range of component `k` is `[0, 100]`. + fn set_candidacy_bond(c: u32, k: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + c * (182 ±0) + k * (116 ±0)` + // Estimated: `6287 + c * (901 ±29) + k * (901 ±29)` + // Minimum execution time: 16_760_000 picoseconds. + Weight::from_parts(16_970_000, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 207_686 + .saturating_add(Weight::from_parts(6_909_050, 0).saturating_mul(c.into())) + // Standard Error: 207_686 + .saturating_add(Weight::from_parts(6_614_672, 0).saturating_mul(k.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into()))) + .saturating_add(Weight::from_parts(0, 901).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 901).saturating_mul(k.into())) + } + /// Storage: `CollatorSelection::CandidacyBond` (r:1 w:0) + /// Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// The range of component `c` is `[3, 100]`. + fn update_bond(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `356 + c * (49 ±0)` + // Estimated: `6287` + // Minimum execution time: 38_530_000 picoseconds. + Weight::from_parts(39_205_966, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 973 + .saturating_add(Weight::from_parts(80_902, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// Storage: `Session::NextKeys` (r:1 w:0) + /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `CollatorSelection::CandidacyBond` (r:1 w:0) + /// Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) + /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `c` is `[1, 99]`. + fn register_as_candidate(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `799 + c * (52 ±0)` + // Estimated: `6287 + c * (54 ±0)` + // Minimum execution time: 49_311_000 picoseconds. + Weight::from_parts(51_529_307, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 923 + .saturating_add(Weight::from_parts(93_814, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) + } + /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::CandidacyBond` (r:1 w:0) + /// Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Session::NextKeys` (r:1 w:0) + /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:2) + /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `c` is `[3, 100]`. + fn take_candidate_slot(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `939 + c * (53 ±0)` + // Estimated: `6287 + c * (54 ±0)` + // Minimum execution time: 73_990_000 picoseconds. + Weight::from_parts(75_742_106, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 1_433 + .saturating_add(Weight::from_parts(101_481, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) + } + /// Storage: `CollatorSelection::CandidateList` (r:1 w:1) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) + /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// The range of component `c` is `[3, 100]`. + fn leave_intent(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `381 + c * (48 ±0)` + // Estimated: `6287` + // Minimum execution time: 41_150_000 picoseconds. + Weight::from_parts(42_106_410, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 976 + .saturating_add(Weight::from_parts(90_314, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) + /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + fn note_author() -> Weight { + // Proof Size summary in bytes: + // Measured: `192` + // Estimated: `6196` + // Minimum execution time: 56_261_000 picoseconds. + Weight::from_parts(56_721_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) + /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::LastAuthoredBlock` (r:100 w:0) + /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) + /// Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) + /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:97 w:97) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 100]`. + /// The range of component `c` is `[1, 100]`. + fn new_session(r: u32, c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2406 + c * (97 ±0) + r * (114 ±0)` + // Estimated: `6287 + c * (2519 ±0) + r * (2603 ±0)` + // Minimum execution time: 28_510_000 picoseconds. + Weight::from_parts(28_950_000, 0) + .saturating_add(Weight::from_parts(0, 6287)) + // Standard Error: 365_016 + .saturating_add(Weight::from_parts(16_623_785, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(r.into())) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_collective.rs b/system-parachains/collectives-paseo/src/weights/pallet_collective.rs new file mode 100644 index 000000000..fa2408e3c --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_collective.rs @@ -0,0 +1,298 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_collective` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_collective +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_collective`. +pub struct WeightInfo(PhantomData); +impl pallet_collective::WeightInfo for WeightInfo { + /// Storage: `AllianceMotion::Members` (r:1 w:1) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:0) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Voting` (r:100 w:100) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:0 w:1) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[0, 100]`. + /// The range of component `n` is `[0, 100]`. + /// The range of component `p` is `[0, 100]`. + fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3232 ±0) + p * (3190 ±0)` + // Estimated: `15728 + m * (1967 ±23) + p * (4332 ±23)` + // Minimum execution time: 21_820_000 picoseconds. + Weight::from_parts(21_900_000, 0) + .saturating_add(Weight::from_parts(0, 15728)) + // Standard Error: 93_008 + .saturating_add(Weight::from_parts(7_004_235, 0).saturating_mul(m.into())) + // Standard Error: 93_008 + .saturating_add(Weight::from_parts(11_965_429, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into())) + } + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[1, 100]`. + fn execute(b: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `69 + m * (32 ±0)` + // Estimated: `1555 + m * (32 ±0)` + // Minimum execution time: 19_350_000 picoseconds. + Weight::from_parts(18_561_099, 0) + .saturating_add(Weight::from_parts(0, 1555)) + // Standard Error: 17 + .saturating_add(Weight::from_parts(1_508, 0).saturating_mul(b.into())) + // Standard Error: 181 + .saturating_add(Weight::from_parts(11_946, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) + } + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:0) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[1, 100]`. + fn propose_execute(b: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `69 + m * (32 ±0)` + // Estimated: `3535 + m * (32 ±0)` + // Minimum execution time: 23_740_000 picoseconds. + Weight::from_parts(22_730_846, 0) + .saturating_add(Weight::from_parts(0, 3535)) + // Standard Error: 19 + .saturating_add(Weight::from_parts(1_623, 0).saturating_mul(b.into())) + // Standard Error: 203 + .saturating_add(Weight::from_parts(20_060, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) + } + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalCount` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Voting` (r:0 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[2, 100]`. + /// The range of component `p` is `[1, 100]`. + fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `359 + m * (32 ±0) + p * (36 ±0)` + // Estimated: `3751 + m * (33 ±0) + p * (36 ±0)` + // Minimum execution time: 29_850_000 picoseconds. + Weight::from_parts(31_614_923, 0) + .saturating_add(Weight::from_parts(0, 3751)) + // Standard Error: 91 + .saturating_add(Weight::from_parts(2_771, 0).saturating_mul(b.into())) + // Standard Error: 957 + .saturating_add(Weight::from_parts(20_322, 0).saturating_mul(m.into())) + // Standard Error: 945 + .saturating_add(Weight::from_parts(180_014, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[5, 100]`. + fn vote(m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `808 + m * (64 ±0)` + // Estimated: `4272 + m * (64 ±0)` + // Minimum execution time: 30_350_000 picoseconds. + Weight::from_parts(31_729_832, 0) + .saturating_add(Weight::from_parts(0, 4272)) + // Standard Error: 569 + .saturating_add(Weight::from_parts(21_513, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) + } + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_disapproved(m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `397 + m * (64 ±0) + p * (36 ±0)` + // Estimated: `3842 + m * (65 ±0) + p * (36 ±0)` + // Minimum execution time: 33_600_000 picoseconds. + Weight::from_parts(34_748_890, 0) + .saturating_add(Weight::from_parts(0, 3842)) + // Standard Error: 777 + .saturating_add(Weight::from_parts(21_999, 0).saturating_mul(m.into())) + // Standard Error: 758 + .saturating_add(Weight::from_parts(172_945, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `699 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` + // Estimated: `4016 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)` + // Minimum execution time: 45_510_000 picoseconds. + Weight::from_parts(50_018_006, 0) + .saturating_add(Weight::from_parts(0, 4016)) + // Standard Error: 288 + .saturating_add(Weight::from_parts(2_804, 0).saturating_mul(b.into())) + // Standard Error: 2_968 + .saturating_add(Weight::from_parts(226_999, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into())) + } + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:1 w:0) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_disapproved(m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `495 + m * (48 ±0) + p * (36 ±0)` + // Estimated: `3935 + m * (49 ±0) + p * (36 ±0)` + // Minimum execution time: 35_261_000 picoseconds. + Weight::from_parts(36_868_717, 0) + .saturating_add(Weight::from_parts(0, 3935)) + // Standard Error: 931 + .saturating_add(Weight::from_parts(22_147, 0).saturating_mul(m.into())) + // Standard Error: 908 + .saturating_add(Weight::from_parts(180_200, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 49).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `AllianceMotion::Voting` (r:1 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Members` (r:1 w:0) + /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Prime` (r:1 w:0) + /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `719 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` + // Estimated: `4036 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)` + // Minimum execution time: 48_160_000 picoseconds. + Weight::from_parts(54_781_513, 0) + .saturating_add(Weight::from_parts(0, 4036)) + // Standard Error: 283 + .saturating_add(Weight::from_parts(2_199, 0).saturating_mul(b.into())) + // Standard Error: 2_916 + .saturating_add(Weight::from_parts(221_407, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into())) + } + /// Storage: `AllianceMotion::Proposals` (r:1 w:1) + /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::Voting` (r:0 w:1) + /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1) + /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `p` is `[1, 100]`. + fn disapprove_proposal(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `226 + p * (32 ±0)` + // Estimated: `1711 + p * (32 ±0)` + // Minimum execution time: 18_920_000 picoseconds. + Weight::from_parts(20_452_656, 0) + .saturating_add(Weight::from_parts(0, 1711)) + // Standard Error: 603 + .saturating_add(Weight::from_parts(156_269, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into())) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_ambassador_core.rs b/system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_ambassador_core.rs new file mode 100644 index 000000000..b0a763062 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_ambassador_core.rs @@ -0,0 +1,268 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_core_fellowship` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_core_fellowship +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_core_fellowship`. +pub struct WeightInfo(PhantomData); +impl pallet_core_fellowship::WeightInfo for WeightInfo { + /// Storage: `AmbassadorCore::Params` (r:0 w:1) + /// Proof: `AmbassadorCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + fn set_params() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_680_000 picoseconds. + Weight::from_parts(9_010_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorCore::Params` (r:1 w:1) + /// Proof: `AmbassadorCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + fn set_partial_params() -> Weight { + // Proof Size summary in bytes: + // Measured: `471` + // Estimated: `1853` + // Minimum execution time: 18_450_000 picoseconds. + Weight::from_parts(18_910_000, 0) + .saturating_add(Weight::from_parts(0, 1853)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Params` (r:1 w:0) + /// Proof: `AmbassadorCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:1 w:1) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:1) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn bump_offboard() -> Weight { + // Proof Size summary in bytes: + // Measured: `66402` + // Estimated: `69046` + // Minimum execution time: 132_521_000 picoseconds. + Weight::from_parts(134_671_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Params` (r:1 w:0) + /// Proof: `AmbassadorCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:1 w:1) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:1) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn bump_demote() -> Weight { + // Proof Size summary in bytes: + // Measured: `66512` + // Estimated: `69046` + // Minimum execution time: 140_151_000 picoseconds. + Weight::from_parts(141_631_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + fn set_active() -> Weight { + // Proof Size summary in bytes: + // Measured: `360` + // Estimated: `3514` + // Minimum execution time: 26_070_000 picoseconds. + Weight::from_parts(26_570_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:1) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:0 w:1) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn induct() -> Weight { + // Proof Size summary in bytes: + // Measured: `118` + // Estimated: `3514` + // Minimum execution time: 34_460_000 picoseconds. + Weight::from_parts(34_921_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Params` (r:1 w:0) + /// Proof: `AmbassadorCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:1) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:0 w:1) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn promote() -> Weight { + // Proof Size summary in bytes: + // Measured: `66055` + // Estimated: `69046` + // Minimum execution time: 129_691_000 picoseconds. + Weight::from_parts(131_401_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:9 w:9) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:9) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:0 w:9) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 9]`. + /// The range of component `r` is `[1, 9]`. + fn promote_fast(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `65968` + // Estimated: `69046 + r * (2489 ±0)` + // Minimum execution time: 122_321_000 picoseconds. + Weight::from_parts(106_911_478, 0) + .saturating_add(Weight::from_parts(0, 69046)) + // Standard Error: 10_728 + .saturating_add(Weight::from_parts(18_045_763, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 2489).saturating_mul(r.into())) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:0 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + fn offboard() -> Weight { + // Proof Size summary in bytes: + // Measured: `265` + // Estimated: `3514` + // Minimum execution time: 26_450_000 picoseconds. + Weight::from_parts(26_830_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + fn import() -> Weight { + // Proof Size summary in bytes: + // Measured: `285` + // Estimated: `3514` + // Minimum execution time: 23_640_000 picoseconds. + Weight::from_parts(24_270_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Member` (r:1 w:1) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `65967` + // Estimated: `69046` + // Minimum execution time: 107_980_000 picoseconds. + Weight::from_parts(110_090_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorCore::Member` (r:1 w:0) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:1) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + fn submit_evidence() -> Weight { + // Proof Size summary in bytes: + // Measured: `151` + // Estimated: `69046` + // Minimum execution time: 88_451_000 picoseconds. + Weight::from_parts(89_550_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_fellowship_core.rs b/system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_fellowship_core.rs new file mode 100644 index 000000000..e5f0500be --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_core_fellowship_fellowship_core.rs @@ -0,0 +1,268 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_core_fellowship` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_core_fellowship +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_core_fellowship`. +pub struct WeightInfo(PhantomData); +impl pallet_core_fellowship::WeightInfo for WeightInfo { + /// Storage: `FellowshipCore::Params` (r:0 w:1) + /// Proof: `FellowshipCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + fn set_params() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_730_000 picoseconds. + Weight::from_parts(9_110_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipCore::Params` (r:1 w:1) + /// Proof: `FellowshipCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + fn set_partial_params() -> Weight { + // Proof Size summary in bytes: + // Measured: `504` + // Estimated: `1853` + // Minimum execution time: 18_380_000 picoseconds. + Weight::from_parts(18_910_000, 0) + .saturating_add(Weight::from_parts(0, 1853)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Params` (r:1 w:0) + /// Proof: `FellowshipCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:1 w:1) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn bump_offboard() -> Weight { + // Proof Size summary in bytes: + // Measured: `66535` + // Estimated: `69046` + // Minimum execution time: 132_581_000 picoseconds. + Weight::from_parts(134_581_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Params` (r:1 w:0) + /// Proof: `FellowshipCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:1 w:1) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn bump_demote() -> Weight { + // Proof Size summary in bytes: + // Measured: `66645` + // Estimated: `69046` + // Minimum execution time: 140_161_000 picoseconds. + Weight::from_parts(141_971_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + fn set_active() -> Weight { + // Proof Size summary in bytes: + // Measured: `493` + // Estimated: `3514` + // Minimum execution time: 26_590_000 picoseconds. + Weight::from_parts(26_940_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:1) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn induct() -> Weight { + // Proof Size summary in bytes: + // Measured: `251` + // Estimated: `3514` + // Minimum execution time: 34_980_000 picoseconds. + Weight::from_parts(35_850_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Params` (r:1 w:0) + /// Proof: `FellowshipCore::Params` (`max_values`: Some(1), `max_size`: Some(368), added: 863, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:1) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn promote() -> Weight { + // Proof Size summary in bytes: + // Measured: `66188` + // Estimated: `69046` + // Minimum execution time: 127_561_000 picoseconds. + Weight::from_parts(129_270_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:9 w:9) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:9) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:9) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 9]`. + /// The range of component `r` is `[1, 9]`. + fn promote_fast(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `66101` + // Estimated: `69046 + r * (2489 ±0)` + // Minimum execution time: 122_631_000 picoseconds. + Weight::from_parts(107_592_903, 0) + .saturating_add(Weight::from_parts(0, 69046)) + // Standard Error: 11_798 + .saturating_add(Weight::from_parts(17_889_073, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 2489).saturating_mul(r.into())) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:0 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + fn offboard() -> Weight { + // Proof Size summary in bytes: + // Measured: `398` + // Estimated: `3514` + // Minimum execution time: 26_771_000 picoseconds. + Weight::from_parts(27_240_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + fn import() -> Weight { + // Proof Size summary in bytes: + // Measured: `418` + // Estimated: `3514` + // Minimum execution time: 24_120_000 picoseconds. + Weight::from_parts(24_491_000, 0) + .saturating_add(Weight::from_parts(0, 3514)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Member` (r:1 w:1) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `66100` + // Estimated: `69046` + // Minimum execution time: 108_411_000 picoseconds. + Weight::from_parts(110_301_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipCore::Member` (r:1 w:0) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:1) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + fn submit_evidence() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `69046` + // Minimum execution time: 88_701_000 picoseconds. + Weight::from_parts(90_020_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_message_queue.rs b/system-parachains/collectives-paseo/src/weights/pallet_message_queue.rs new file mode 100644 index 000000000..1fd5bc3bb --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_message_queue.rs @@ -0,0 +1,183 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_message_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_message_queue +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_message_queue`. +pub struct WeightInfo(PhantomData); +impl pallet_message_queue::WeightInfo for WeightInfo { + /// Storage: `MessageQueue::ServiceHead` (r:1 w:0) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::BookStateFor` (r:2 w:2) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn ready_ring_knit() -> Weight { + // Proof Size summary in bytes: + // Measured: `223` + // Estimated: `6044` + // Minimum execution time: 19_211_000 picoseconds. + Weight::from_parts(19_730_000, 0) + .saturating_add(Weight::from_parts(0, 6044)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `MessageQueue::BookStateFor` (r:2 w:2) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::ServiceHead` (r:1 w:1) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) + fn ready_ring_unknit() -> Weight { + // Proof Size summary in bytes: + // Measured: `218` + // Estimated: `6044` + // Minimum execution time: 17_550_000 picoseconds. + Weight::from_parts(17_980_000, 0) + .saturating_add(Weight::from_parts(0, 6044)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn service_queue_base() -> Weight { + // Proof Size summary in bytes: + // Measured: `6` + // Estimated: `3517` + // Minimum execution time: 5_200_000 picoseconds. + Weight::from_parts(5_370_000, 0) + .saturating_add(Weight::from_parts(0, 3517)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `MessageQueue::Pages` (r:1 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn service_page_base_completion() -> Weight { + // Proof Size summary in bytes: + // Measured: `72` + // Estimated: `69050` + // Minimum execution time: 9_510_000 picoseconds. + Weight::from_parts(9_780_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `MessageQueue::Pages` (r:1 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn service_page_base_no_completion() -> Weight { + // Proof Size summary in bytes: + // Measured: `72` + // Estimated: `69050` + // Minimum execution time: 9_730_000 picoseconds. + Weight::from_parts(9_910_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `MessageQueue::BookStateFor` (r:0 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:0 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn service_page_item() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 156_681_000 picoseconds. + Weight::from_parts(157_771_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `MessageQueue::ServiceHead` (r:1 w:1) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::BookStateFor` (r:1 w:0) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn bump_service_head() -> Weight { + // Proof Size summary in bytes: + // Measured: `171` + // Estimated: `3517` + // Minimum execution time: 12_150_000 picoseconds. + Weight::from_parts(12_480_000, 0) + .saturating_add(Weight::from_parts(0, 3517)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:1 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn reap_page() -> Weight { + // Proof Size summary in bytes: + // Measured: `65667` + // Estimated: `69050` + // Minimum execution time: 61_461_000 picoseconds. + Weight::from_parts(62_151_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:1 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn execute_overweight_page_removed() -> Weight { + // Proof Size summary in bytes: + // Measured: `65667` + // Estimated: `69050` + // Minimum execution time: 80_711_000 picoseconds. + Weight::from_parts(81_621_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:1 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn execute_overweight_page_updated() -> Weight { + // Proof Size summary in bytes: + // Measured: `65667` + // Estimated: `69050` + // Minimum execution time: 114_821_000 picoseconds. + Weight::from_parts(115_411_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_multisig.rs b/system-parachains/collectives-paseo/src/weights/pallet_multisig.rs new file mode 100644 index 000000000..c4b1f2cc6 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_multisig.rs @@ -0,0 +1,162 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_multisig` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_multisig +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_multisig`. +pub struct WeightInfo(PhantomData); +impl pallet_multisig::WeightInfo for WeightInfo { + /// The range of component `z` is `[0, 10000]`. + fn as_multi_threshold_1(z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 13_550_000 picoseconds. + Weight::from_parts(13_981_582, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1 + .saturating_add(Weight::from_parts(492, 0).saturating_mul(z.into())) + } + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 100]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_create(s: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `329 + s * (2 ±0)` + // Estimated: `6811` + // Minimum execution time: 50_691_000 picoseconds. + Weight::from_parts(42_865_792, 0) + .saturating_add(Weight::from_parts(0, 6811)) + // Standard Error: 378 + .saturating_add(Weight::from_parts(86_518, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_458, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) + /// The range of component `s` is `[3, 100]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_approve(s: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `348` + // Estimated: `6811` + // Minimum execution time: 31_800_000 picoseconds. + Weight::from_parts(24_651_458, 0) + .saturating_add(Weight::from_parts(0, 6811)) + // Standard Error: 258 + .saturating_add(Weight::from_parts(76_841, 0).saturating_mul(s.into())) + // Standard Error: 2 + .saturating_add(Weight::from_parts(1_483, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 100]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_complete(s: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `454 + s * (33 ±0)` + // Estimated: `6811` + // Minimum execution time: 56_090_000 picoseconds. + Weight::from_parts(46_582_986, 0) + .saturating_add(Weight::from_parts(0, 6811)) + // Standard Error: 443 + .saturating_add(Weight::from_parts(102_936, 0).saturating_mul(s.into())) + // Standard Error: 4 + .saturating_add(Weight::from_parts(1_482, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 100]`. + fn approve_as_multi_create(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `329 + s * (2 ±0)` + // Estimated: `6811` + // Minimum execution time: 40_431_000 picoseconds. + Weight::from_parts(41_428_710, 0) + .saturating_add(Weight::from_parts(0, 6811)) + // Standard Error: 492 + .saturating_add(Weight::from_parts(84_776, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 100]`. + fn approve_as_multi_approve(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `348` + // Estimated: `6811` + // Minimum execution time: 22_470_000 picoseconds. + Weight::from_parts(23_690_843, 0) + .saturating_add(Weight::from_parts(0, 6811)) + // Standard Error: 411 + .saturating_add(Weight::from_parts(79_390, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Multisig::Multisigs` (r:1 w:1) + /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) + /// The range of component `s` is `[2, 100]`. + fn cancel_as_multi(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `520 + s * (1 ±0)` + // Estimated: `6811` + // Minimum execution time: 41_390_000 picoseconds. + Weight::from_parts(42_519_978, 0) + .saturating_add(Weight::from_parts(0, 6811)) + // Standard Error: 388 + .saturating_add(Weight::from_parts(82_248, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_preimage.rs b/system-parachains/collectives-paseo/src/weights/pallet_preimage.rs new file mode 100644 index 000000000..2a39d9145 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_preimage.rs @@ -0,0 +1,265 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_preimage` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_preimage +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_preimage`. +pub struct WeightInfo(PhantomData); +impl pallet_preimage::WeightInfo for WeightInfo { + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + /// Storage: `Preimage::PreimageFor` (r:0 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 4194304]`. + fn note_preimage(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `109` + // Estimated: `3556` + // Minimum execution time: 58_851_000 picoseconds. + Weight::from_parts(59_060_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 3 + .saturating_add(Weight::from_parts(2_301, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::PreimageFor` (r:0 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 4194304]`. + fn note_requested_preimage(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 21_430_000 picoseconds. + Weight::from_parts(21_620_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 3 + .saturating_add(Weight::from_parts(2_292, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::PreimageFor` (r:0 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 4194304]`. + fn note_no_deposit_preimage(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 22_140_000 picoseconds. + Weight::from_parts(22_431_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 3 + .saturating_add(Weight::from_parts(2_289, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + /// Storage: `Preimage::PreimageFor` (r:0 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + fn unnote_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `310` + // Estimated: `3556` + // Minimum execution time: 77_171_000 picoseconds. + Weight::from_parts(78_711_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::PreimageFor` (r:0 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + fn unnote_no_deposit_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `211` + // Estimated: `3556` + // Minimum execution time: 47_530_000 picoseconds. + Weight::from_parts(49_920_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + fn request_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `255` + // Estimated: `3556` + // Minimum execution time: 35_651_000 picoseconds. + Weight::from_parts(36_540_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + fn request_no_deposit_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `211` + // Estimated: `3556` + // Minimum execution time: 32_770_000 picoseconds. + Weight::from_parts(34_020_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + fn request_unnoted_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `109` + // Estimated: `3556` + // Minimum execution time: 36_021_000 picoseconds. + Weight::from_parts(38_431_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + fn request_requested_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 21_050_000 picoseconds. + Weight::from_parts(22_670_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::PreimageFor` (r:0 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + fn unrequest_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `211` + // Estimated: `3556` + // Minimum execution time: 44_350_000 picoseconds. + Weight::from_parts(46_481_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + fn unrequest_unnoted_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 22_830_000 picoseconds. + Weight::from_parts(24_121_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + fn unrequest_multi_referenced_preimage() -> Weight { + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 23_330_000 picoseconds. + Weight::from_parts(24_220_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Preimage::StatusFor` (r:1023 w:1023) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1023 w:1023) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1023 w:1023) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:0 w:1023) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 1024]`. + fn ensure_updated(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + n * (227 ±0)` + // Estimated: `990 + n * (2603 ±0)` + // Minimum execution time: 65_470_000 picoseconds. + Weight::from_parts(65_951_000, 0) + .saturating_add(Weight::from_parts(0, 990)) + // Standard Error: 47_219 + .saturating_add(Weight::from_parts(64_043_973, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into()))) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(n.into())) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_proxy.rs b/system-parachains/collectives-paseo/src/weights/pallet_proxy.rs new file mode 100644 index 000000000..40525f569 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_proxy.rs @@ -0,0 +1,223 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_proxy` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_proxy +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_proxy`. +pub struct WeightInfo(PhantomData); +impl pallet_proxy::WeightInfo for WeightInfo { + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn proxy(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `161 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 18_530_000 picoseconds. + Weight::from_parts(19_217_909, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 1_424 + .saturating_add(Weight::from_parts(25_104, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + } + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. + fn proxy_announced(a: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `488 + a * (68 ±0) + p * (37 ±0)` + // Estimated: `5698` + // Minimum execution time: 47_420_000 picoseconds. + Weight::from_parts(47_458_841, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 1_831 + .saturating_add(Weight::from_parts(164_683, 0).saturating_mul(a.into())) + // Standard Error: 1_891 + .saturating_add(Weight::from_parts(29_600, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. + fn remove_announcement(a: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `403 + a * (68 ±0)` + // Estimated: `5698` + // Minimum execution time: 32_430_000 picoseconds. + Weight::from_parts(33_180_725, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 1_666 + .saturating_add(Weight::from_parts(169_818, 0).saturating_mul(a.into())) + // Standard Error: 1_721 + .saturating_add(Weight::from_parts(1_987, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. + fn reject_announcement(a: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `403 + a * (68 ±0)` + // Estimated: `5698` + // Minimum execution time: 32_440_000 picoseconds. + Weight::from_parts(33_017_271, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 1_644 + .saturating_add(Weight::from_parts(170_601, 0).saturating_mul(a.into())) + // Standard Error: 1_699 + .saturating_add(Weight::from_parts(5_251, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 31]`. + /// The range of component `p` is `[1, 31]`. + fn announce(a: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `420 + a * (68 ±0) + p * (37 ±0)` + // Estimated: `5698` + // Minimum execution time: 42_661_000 picoseconds. + Weight::from_parts(43_038_661, 0) + .saturating_add(Weight::from_parts(0, 5698)) + // Standard Error: 1_782 + .saturating_add(Weight::from_parts(162_890, 0).saturating_mul(a.into())) + // Standard Error: 1_841 + .saturating_add(Weight::from_parts(35_014, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn add_proxy(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `161 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 29_730_000 picoseconds. + Weight::from_parts(30_299_316, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 663 + .saturating_add(Weight::from_parts(42_522, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn remove_proxy(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `161 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 29_720_000 picoseconds. + Weight::from_parts(30_402_823, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 941 + .saturating_add(Weight::from_parts(54_316, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn remove_proxies(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `161 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 26_590_000 picoseconds. + Weight::from_parts(27_222_249, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 877 + .saturating_add(Weight::from_parts(30_856, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 31]`. + fn create_pure(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `4706` + // Minimum execution time: 31_550_000 picoseconds. + Weight::from_parts(32_107_527, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 599 + .saturating_add(Weight::from_parts(4_014, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 30]`. + fn kill_pure(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `198 + p * (37 ±0)` + // Estimated: `4706` + // Minimum execution time: 27_690_000 picoseconds. + Weight::from_parts(28_336_429, 0) + .saturating_add(Weight::from_parts(0, 4706)) + // Standard Error: 895 + .saturating_add(Weight::from_parts(32_454, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_ambassador_collective.rs b/system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_ambassador_collective.rs new file mode 100644 index 000000000..dc3b0e2e0 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_ambassador_collective.rs @@ -0,0 +1,203 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_ranked_collective` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_ranked_collective +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_ranked_collective`. +pub struct WeightInfo(PhantomData); +impl pallet_ranked_collective::WeightInfo for WeightInfo { + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:1) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:0 w:1) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn add_member() -> Weight { + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 21_570_000 picoseconds. + Weight::from_parts(22_100_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:11 w:11) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:11 w:22) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:11 w:22) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[0, 10]`. + /// The range of component `r` is `[0, 10]`. + fn remove_member(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `517 + r * (281 ±0)` + // Estimated: `3519 + r * (2529 ±0)` + // Minimum execution time: 41_720_000 picoseconds. + Weight::from_parts(44_656_156, 0) + .saturating_add(Weight::from_parts(0, 3519)) + // Standard Error: 24_471 + .saturating_add(Weight::from_parts(21_041_565, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into())) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:1) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:0 w:1) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[0, 10]`. + /// The range of component `r` is `[0, 10]`. + fn promote_member(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `214 + r * (17 ±0)` + // Estimated: `3507` + // Minimum execution time: 26_220_000 picoseconds. + Weight::from_parts(27_273_228, 0) + .saturating_add(Weight::from_parts(0, 3507)) + // Standard Error: 4_350 + .saturating_add(Weight::from_parts(506_099, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:1) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:1) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:1 w:2) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:1 w:2) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[0, 10]`. + /// The range of component `r` is `[0, 10]`. + fn demote_member(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `532 + r * (72 ±0)` + // Estimated: `3519` + // Minimum execution time: 41_580_000 picoseconds. + Weight::from_parts(45_196_931, 0) + .saturating_add(Weight::from_parts(0, 3519)) + // Standard Error: 19_961 + .saturating_add(Weight::from_parts(934_372, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Voting` (r:1 w:1) + /// Proof: `AmbassadorCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn vote() -> Weight { + // Proof Size summary in bytes: + // Measured: `566` + // Estimated: `317568` + // Minimum execution time: 59_360_000 picoseconds. + Weight::from_parts(60_131_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::VotingCleanup` (r:1 w:0) + /// Proof: `AmbassadorCollective::VotingCleanup` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Voting` (r:100 w:100) + /// Proof: `AmbassadorCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 100]`. + /// The range of component `n` is `[0, 100]`. + fn cleanup_poll(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `400 + n * (50 ±0)` + // Estimated: `4365 + n * (2540 ±0)` + // Minimum execution time: 22_060_000 picoseconds. + Weight::from_parts(25_870_617, 0) + .saturating_add(Weight::from_parts(0, 4365)) + // Standard Error: 1_310 + .saturating_add(Weight::from_parts(1_454_098, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) + .saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into())) + } + /// Storage: `AmbassadorCollective::Members` (r:2 w:2) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:2 w:2) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IdToIndex` (r:2 w:4) + /// Proof: `AmbassadorCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::Member` (r:2 w:2) + /// Proof: `AmbassadorCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCore::MemberEvidence` (r:1 w:0) + /// Proof: `AmbassadorCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Claimant` (r:2 w:2) + /// Proof: `AmbassadorSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::IndexToId` (r:0 w:2) + /// Proof: `AmbassadorCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn exchange_member() -> Weight { + // Proof Size summary in bytes: + // Measured: `702` + // Estimated: `69046` + // Minimum execution time: 97_481_000 picoseconds. + Weight::from_parts(98_610_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(11)) + .saturating_add(T::DbWeight::get().writes(14)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_fellowship_collective.rs b/system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_fellowship_collective.rs new file mode 100644 index 000000000..7828ae785 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_ranked_collective_fellowship_collective.rs @@ -0,0 +1,203 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_ranked_collective` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_ranked_collective +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_ranked_collective`. +pub struct WeightInfo(PhantomData); +impl pallet_ranked_collective::WeightInfo for WeightInfo { + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:1) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn add_member() -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `3507` + // Minimum execution time: 22_130_000 picoseconds. + Weight::from_parts(22_770_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:11 w:11) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:11 w:22) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:11 w:22) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[0, 10]`. + /// The range of component `r` is `[0, 10]`. + fn remove_member(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `617 + r * (281 ±0)` + // Estimated: `3519 + r * (2529 ±0)` + // Minimum execution time: 42_110_000 picoseconds. + Weight::from_parts(44_796_168, 0) + .saturating_add(Weight::from_parts(0, 3519)) + // Standard Error: 23_619 + .saturating_add(Weight::from_parts(21_109_137, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into())) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:1) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:0 w:1) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[0, 10]`. + /// The range of component `r` is `[0, 10]`. + fn promote_member(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `314 + r * (17 ±0)` + // Estimated: `3507` + // Minimum execution time: 26_000_000 picoseconds. + Weight::from_parts(27_431_117, 0) + .saturating_add(Weight::from_parts(0, 3507)) + // Standard Error: 4_422 + .saturating_add(Weight::from_parts(503_263, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:1) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:1) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:1 w:2) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:1 w:2) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// The range of component `r` is `[0, 10]`. + /// The range of component `r` is `[0, 10]`. + fn demote_member(r: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `632 + r * (72 ±0)` + // Estimated: `3519` + // Minimum execution time: 41_850_000 picoseconds. + Weight::from_parts(45_320_656, 0) + .saturating_add(Weight::from_parts(0, 3519)) + // Standard Error: 20_092 + .saturating_add(Weight::from_parts(949_803, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Voting` (r:1 w:1) + /// Proof: `FellowshipCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn vote() -> Weight { + // Proof Size summary in bytes: + // Measured: `628` + // Estimated: `317568` + // Minimum execution time: 58_470_000 picoseconds. + Weight::from_parts(59_371_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::VotingCleanup` (r:1 w:0) + /// Proof: `FellowshipCollective::VotingCleanup` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Voting` (r:100 w:100) + /// Proof: `FellowshipCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 100]`. + /// The range of component `n` is `[0, 100]`. + fn cleanup_poll(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `462 + n * (50 ±0)` + // Estimated: `4365 + n * (2540 ±0)` + // Minimum execution time: 22_010_000 picoseconds. + Weight::from_parts(25_170_301, 0) + .saturating_add(Weight::from_parts(0, 4365)) + // Standard Error: 1_410 + .saturating_add(Weight::from_parts(1_444_806, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) + .saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into())) + } + /// Storage: `FellowshipCollective::Members` (r:2 w:2) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:2 w:2) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IdToIndex` (r:2 w:4) + /// Proof: `FellowshipCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::Member` (r:2 w:2) + /// Proof: `FellowshipCore::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCore::MemberEvidence` (r:1 w:0) + /// Proof: `FellowshipCore::MemberEvidence` (`max_values`: None, `max_size`: Some(65581), added: 68056, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Claimant` (r:2 w:2) + /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::IndexToId` (r:0 w:2) + /// Proof: `FellowshipCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + fn exchange_member() -> Weight { + // Proof Size summary in bytes: + // Measured: `730` + // Estimated: `69046` + // Minimum execution time: 96_130_000 picoseconds. + Weight::from_parts(96_991_000, 0) + .saturating_add(Weight::from_parts(0, 69046)) + .saturating_add(T::DbWeight::get().reads(11)) + .saturating_add(T::DbWeight::get().writes(14)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_referenda_ambassador_referenda.rs b/system-parachains/collectives-paseo/src/weights/pallet_referenda_ambassador_referenda.rs new file mode 100644 index 000000000..acd8a6486 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_referenda_ambassador_referenda.rs @@ -0,0 +1,550 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_referenda` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_referenda +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_referenda`. +pub struct WeightInfo(PhantomData); +impl pallet_referenda::WeightInfo for WeightInfo { + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::ReferendumCount` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:0 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn submit() -> Weight { + // Proof Size summary in bytes: + // Measured: `255` + // Estimated: `159279` + // Minimum execution time: 34_150_000 picoseconds. + Weight::from_parts(34_730_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_preparing() -> Weight { + // Proof Size summary in bytes: + // Measured: `366` + // Estimated: `317568` + // Minimum execution time: 63_680_000 picoseconds. + Weight::from_parts(64_290_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:0) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `1165` + // Estimated: `159279` + // Minimum execution time: 144_821_000 picoseconds. + Weight::from_parts(151_091_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:0) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_not_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `1173` + // Estimated: `159279` + // Minimum execution time: 146_381_000 picoseconds. + Weight::from_parts(151_201_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:1) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_passing() -> Weight { + // Proof Size summary in bytes: + // Measured: `604` + // Estimated: `317568` + // Minimum execution time: 165_402_000 picoseconds. + Weight::from_parts(174_501_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:1) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_failing() -> Weight { + // Proof Size summary in bytes: + // Measured: `567` + // Estimated: `317568` + // Minimum execution time: 80_000_000 picoseconds. + Weight::from_parts(80_621_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn refund_decision_deposit() -> Weight { + // Proof Size summary in bytes: + // Measured: `317` + // Estimated: `4365` + // Minimum execution time: 37_951_000 picoseconds. + Weight::from_parts(38_580_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn refund_submission_deposit() -> Weight { + // Proof Size summary in bytes: + // Measured: `167` + // Estimated: `4365` + // Minimum execution time: 18_760_000 picoseconds. + Weight::from_parts(19_120_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn cancel() -> Weight { + // Proof Size summary in bytes: + // Measured: `311` + // Estimated: `317568` + // Minimum execution time: 44_120_000 picoseconds. + Weight::from_parts(44_930_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `AmbassadorReferenda::MetadataOf` (r:1 w:0) + /// Proof: `AmbassadorReferenda::MetadataOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn kill() -> Weight { + // Proof Size summary in bytes: + // Measured: `523` + // Estimated: `317568` + // Minimum execution time: 174_961_000 picoseconds. + Weight::from_parts(176_431_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(10)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:0) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:1) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + fn one_fewer_deciding_queue_empty() -> Weight { + // Proof Size summary in bytes: + // Measured: `140` + // Estimated: `3636` + // Minimum execution time: 15_210_000 picoseconds. + Weight::from_parts(15_560_000, 0) + .saturating_add(Weight::from_parts(0, 3636)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn one_fewer_deciding_failing() -> Weight { + // Proof Size summary in bytes: + // Measured: `1328` + // Estimated: `159279` + // Minimum execution time: 128_071_000 picoseconds. + Weight::from_parts(133_531_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn one_fewer_deciding_passing() -> Weight { + // Proof Size summary in bytes: + // Measured: `1314` + // Estimated: `159279` + // Minimum execution time: 126_331_000 picoseconds. + Weight::from_parts(133_461_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + fn nudge_referendum_requeued_insertion() -> Weight { + // Proof Size summary in bytes: + // Measured: `935` + // Estimated: `4365` + // Minimum execution time: 60_730_000 picoseconds. + Weight::from_parts(64_651_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + fn nudge_referendum_requeued_slide() -> Weight { + // Proof Size summary in bytes: + // Measured: `935` + // Estimated: `4365` + // Minimum execution time: 60_271_000 picoseconds. + Weight::from_parts(63_820_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:0) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + fn nudge_referendum_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `951` + // Estimated: `4365` + // Minimum execution time: 71_830_000 picoseconds. + Weight::from_parts(74_921_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:0) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::TrackQueue` (r:1 w:1) + /// Proof: `AmbassadorReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(171), added: 2646, mode: `MaxEncodedLen`) + fn nudge_referendum_not_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `959` + // Estimated: `4365` + // Minimum execution time: 68_560_000 picoseconds. + Weight::from_parts(72_601_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_no_deposit() -> Weight { + // Proof Size summary in bytes: + // Measured: `263` + // Estimated: `159279` + // Minimum execution time: 30_700_000 picoseconds. + Weight::from_parts(31_260_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_preparing() -> Weight { + // Proof Size summary in bytes: + // Measured: `311` + // Estimated: `159279` + // Minimum execution time: 30_890_000 picoseconds. + Weight::from_parts(31_370_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn nudge_referendum_timed_out() -> Weight { + // Proof Size summary in bytes: + // Measured: `208` + // Estimated: `4365` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(20_420_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:1) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_begin_deciding_failing() -> Weight { + // Proof Size summary in bytes: + // Measured: `512` + // Estimated: `159279` + // Minimum execution time: 46_660_000 picoseconds. + Weight::from_parts(47_290_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::DecidingCount` (r:1 w:1) + /// Proof: `AmbassadorReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_begin_deciding_passing() -> Weight { + // Proof Size summary in bytes: + // Measured: `549` + // Estimated: `159279` + // Minimum execution time: 119_471_000 picoseconds. + Weight::from_parts(124_181_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_begin_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `602` + // Estimated: `159279` + // Minimum execution time: 112_931_000 picoseconds. + Weight::from_parts(132_161_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_end_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `585` + // Estimated: `159279` + // Minimum execution time: 112_211_000 picoseconds. + Weight::from_parts(125_331_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_continue_not_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `602` + // Estimated: `159279` + // Minimum execution time: 111_191_000 picoseconds. + Weight::from_parts(119_940_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_continue_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `606` + // Estimated: `159279` + // Minimum execution time: 98_281_000 picoseconds. + Weight::from_parts(104_541_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + fn nudge_referendum_approved() -> Weight { + // Proof Size summary in bytes: + // Measured: `606` + // Estimated: `317568` + // Minimum execution time: 133_241_000 picoseconds. + Weight::from_parts(146_590_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::MemberCount` (r:1 w:0) + /// Proof: `AmbassadorCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_rejected() -> Weight { + // Proof Size summary in bytes: + // Measured: `602` + // Estimated: `159279` + // Minimum execution time: 112_501_000 picoseconds. + Weight::from_parts(122_440_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:0) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::MetadataOf` (r:0 w:1) + /// Proof: `AmbassadorReferenda::MetadataOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn set_some_metadata() -> Weight { + // Proof Size summary in bytes: + // Measured: `419` + // Estimated: `4365` + // Minimum execution time: 30_460_000 picoseconds. + Weight::from_parts(31_021_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `AmbassadorReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorReferenda::MetadataOf` (r:1 w:1) + /// Proof: `AmbassadorReferenda::MetadataOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn clear_metadata() -> Weight { + // Proof Size summary in bytes: + // Measured: `285` + // Estimated: `4365` + // Minimum execution time: 24_370_000 picoseconds. + Weight::from_parts(25_000_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_referenda_fellowship_referenda.rs b/system-parachains/collectives-paseo/src/weights/pallet_referenda_fellowship_referenda.rs new file mode 100644 index 000000000..2c732000b --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_referenda_fellowship_referenda.rs @@ -0,0 +1,550 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_referenda` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_referenda +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_referenda`. +pub struct WeightInfo(PhantomData); +impl pallet_referenda::WeightInfo for WeightInfo { + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::ReferendumCount` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:0 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn submit() -> Weight { + // Proof Size summary in bytes: + // Measured: `317` + // Estimated: `159279` + // Minimum execution time: 33_830_000 picoseconds. + Weight::from_parts(34_290_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_preparing() -> Weight { + // Proof Size summary in bytes: + // Measured: `328` + // Estimated: `317568` + // Minimum execution time: 62_790_000 picoseconds. + Weight::from_parts(63_521_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:0) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `1966` + // Estimated: `159279` + // Minimum execution time: 142_661_000 picoseconds. + Weight::from_parts(147_901_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:0) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_not_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `2007` + // Estimated: `159279` + // Minimum execution time: 144_061_000 picoseconds. + Weight::from_parts(148_441_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:1) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_passing() -> Weight { + // Proof Size summary in bytes: + // Measured: `764` + // Estimated: `317568` + // Minimum execution time: 175_751_000 picoseconds. + Weight::from_parts(191_361_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:1) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn place_decision_deposit_failing() -> Weight { + // Proof Size summary in bytes: + // Measured: `663` + // Estimated: `317568` + // Minimum execution time: 79_091_000 picoseconds. + Weight::from_parts(79_721_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn refund_decision_deposit() -> Weight { + // Proof Size summary in bytes: + // Measured: `279` + // Estimated: `4365` + // Minimum execution time: 37_241_000 picoseconds. + Weight::from_parts(37_581_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn refund_submission_deposit() -> Weight { + // Proof Size summary in bytes: + // Measured: `129` + // Estimated: `4365` + // Minimum execution time: 18_060_000 picoseconds. + Weight::from_parts(18_530_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn cancel() -> Weight { + // Proof Size summary in bytes: + // Measured: `273` + // Estimated: `317568` + // Minimum execution time: 43_591_000 picoseconds. + Weight::from_parts(44_000_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `FellowshipReferenda::MetadataOf` (r:1 w:0) + /// Proof: `FellowshipReferenda::MetadataOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn kill() -> Weight { + // Proof Size summary in bytes: + // Measured: `485` + // Estimated: `317568` + // Minimum execution time: 174_512_000 picoseconds. + Weight::from_parts(175_861_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(10)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:0) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:1) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + fn one_fewer_deciding_queue_empty() -> Weight { + // Proof Size summary in bytes: + // Measured: `102` + // Estimated: `4277` + // Minimum execution time: 14_371_000 picoseconds. + Weight::from_parts(14_790_000, 0) + .saturating_add(Weight::from_parts(0, 4277)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn one_fewer_deciding_failing() -> Weight { + // Proof Size summary in bytes: + // Measured: `2380` + // Estimated: `159279` + // Minimum execution time: 126_701_000 picoseconds. + Weight::from_parts(130_070_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn one_fewer_deciding_passing() -> Weight { + // Proof Size summary in bytes: + // Measured: `2380` + // Estimated: `159279` + // Minimum execution time: 126_751_000 picoseconds. + Weight::from_parts(131_901_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + fn nudge_referendum_requeued_insertion() -> Weight { + // Proof Size summary in bytes: + // Measured: `1769` + // Estimated: `4365` + // Minimum execution time: 64_810_000 picoseconds. + Weight::from_parts(67_160_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + fn nudge_referendum_requeued_slide() -> Weight { + // Proof Size summary in bytes: + // Measured: `1736` + // Estimated: `4365` + // Minimum execution time: 64_841_000 picoseconds. + Weight::from_parts(66_850_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:0) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + fn nudge_referendum_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `1752` + // Estimated: `4365` + // Minimum execution time: 77_590_000 picoseconds. + Weight::from_parts(80_110_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:0) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::TrackQueue` (r:1 w:1) + /// Proof: `FellowshipReferenda::TrackQueue` (`max_values`: None, `max_size`: Some(812), added: 3287, mode: `MaxEncodedLen`) + fn nudge_referendum_not_queued() -> Weight { + // Proof Size summary in bytes: + // Measured: `1793` + // Estimated: `4365` + // Minimum execution time: 73_731_000 picoseconds. + Weight::from_parts(76_911_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_no_deposit() -> Weight { + // Proof Size summary in bytes: + // Measured: `225` + // Estimated: `159279` + // Minimum execution time: 30_050_000 picoseconds. + Weight::from_parts(30_530_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_preparing() -> Weight { + // Proof Size summary in bytes: + // Measured: `273` + // Estimated: `159279` + // Minimum execution time: 30_501_000 picoseconds. + Weight::from_parts(30_850_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + fn nudge_referendum_timed_out() -> Weight { + // Proof Size summary in bytes: + // Measured: `170` + // Estimated: `4365` + // Minimum execution time: 19_550_000 picoseconds. + Weight::from_parts(19_940_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:1) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_begin_deciding_failing() -> Weight { + // Proof Size summary in bytes: + // Measured: `608` + // Estimated: `159279` + // Minimum execution time: 46_171_000 picoseconds. + Weight::from_parts(47_121_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::DecidingCount` (r:1 w:1) + /// Proof: `FellowshipReferenda::DecidingCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_begin_deciding_passing() -> Weight { + // Proof Size summary in bytes: + // Measured: `709` + // Estimated: `159279` + // Minimum execution time: 125_900_000 picoseconds. + Weight::from_parts(129_220_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_begin_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `762` + // Estimated: `159279` + // Minimum execution time: 126_051_000 picoseconds. + Weight::from_parts(137_821_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_end_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `745` + // Estimated: `159279` + // Minimum execution time: 124_321_000 picoseconds. + Weight::from_parts(174_811_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_continue_not_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `762` + // Estimated: `159279` + // Minimum execution time: 124_771_000 picoseconds. + Weight::from_parts(139_161_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_continue_confirming() -> Weight { + // Proof Size summary in bytes: + // Measured: `766` + // Estimated: `159279` + // Minimum execution time: 106_261_000 picoseconds. + Weight::from_parts(110_720_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:2 w:2) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + fn nudge_referendum_approved() -> Weight { + // Proof Size summary in bytes: + // Measured: `766` + // Estimated: `317568` + // Minimum execution time: 142_021_000 picoseconds. + Weight::from_parts(157_251_000, 0) + .saturating_add(Weight::from_parts(0, 317568)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:1) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::MemberCount` (r:1 w:0) + /// Proof: `FellowshipCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + fn nudge_referendum_rejected() -> Weight { + // Proof Size summary in bytes: + // Measured: `762` + // Estimated: `159279` + // Minimum execution time: 125_211_000 picoseconds. + Weight::from_parts(131_261_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:0) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::MetadataOf` (r:0 w:1) + /// Proof: `FellowshipReferenda::MetadataOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn set_some_metadata() -> Weight { + // Proof Size summary in bytes: + // Measured: `381` + // Estimated: `4365` + // Minimum execution time: 29_650_000 picoseconds. + Weight::from_parts(30_040_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipReferenda::ReferendumInfoFor` (r:1 w:0) + /// Proof: `FellowshipReferenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(900), added: 3375, mode: `MaxEncodedLen`) + /// Storage: `FellowshipReferenda::MetadataOf` (r:1 w:1) + /// Proof: `FellowshipReferenda::MetadataOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn clear_metadata() -> Weight { + // Proof Size summary in bytes: + // Measured: `247` + // Estimated: `4365` + // Minimum execution time: 23_440_000 picoseconds. + Weight::from_parts(24_100_000, 0) + .saturating_add(Weight::from_parts(0, 4365)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_salary_ambassador_salary.rs b/system-parachains/collectives-paseo/src/weights/pallet_salary_ambassador_salary.rs new file mode 100644 index 000000000..45ce76169 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_salary_ambassador_salary.rs @@ -0,0 +1,186 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_salary` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_salary +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_salary`. +pub struct WeightInfo(PhantomData); +impl pallet_salary::WeightInfo for WeightInfo { + /// Storage: `AmbassadorSalary::Status` (r:1 w:1) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + fn init() -> Weight { + // Proof Size summary in bytes: + // Measured: `109` + // Estimated: `1541` + // Minimum execution time: 12_180_000 picoseconds. + Weight::from_parts(12_510_000, 0) + .saturating_add(Weight::from_parts(0, 1541)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorSalary::Status` (r:1 w:1) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + fn bump() -> Weight { + // Proof Size summary in bytes: + // Measured: `191` + // Estimated: `1541` + // Minimum execution time: 14_631_000 picoseconds. + Weight::from_parts(14_840_000, 0) + .saturating_add(Weight::from_parts(0, 1541)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorSalary::Status` (r:1 w:0) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Claimant` (r:1 w:1) + /// Proof: `AmbassadorSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + fn induct() -> Weight { + // Proof Size summary in bytes: + // Measured: `400` + // Estimated: `3551` + // Minimum execution time: 26_410_000 picoseconds. + Weight::from_parts(26_950_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Status` (r:1 w:1) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Claimant` (r:1 w:1) + /// Proof: `AmbassadorSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + fn register() -> Weight { + // Proof Size summary in bytes: + // Measured: `467` + // Estimated: `3551` + // Minimum execution time: 30_741_000 picoseconds. + Weight::from_parts(31_250_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorSalary::Status` (r:1 w:1) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Claimant` (r:1 w:1) + /// Proof: `AmbassadorSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) + /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn payout() -> Weight { + // Proof Size summary in bytes: + // Measured: `801` + // Estimated: `4266` + // Minimum execution time: 79_821_000 picoseconds. + Weight::from_parts(81_100_000, 0) + .saturating_add(Weight::from_parts(0, 4266)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorSalary::Status` (r:1 w:1) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Claimant` (r:1 w:1) + /// Proof: `AmbassadorSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorCollective::Members` (r:1 w:0) + /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) + /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn payout_other() -> Weight { + // Proof Size summary in bytes: + // Measured: `801` + // Estimated: `4266` + // Minimum execution time: 79_600_000 picoseconds. + Weight::from_parts(81_040_000, 0) + .saturating_add(Weight::from_parts(0, 4266)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `AmbassadorSalary::Status` (r:1 w:1) + /// Proof: `AmbassadorSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorSalary::Claimant` (r:1 w:1) + /// Proof: `AmbassadorSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:1 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn check_payment() -> Weight { + // Proof Size summary in bytes: + // Measured: `303` + // Estimated: `3768` + // Minimum execution time: 28_040_000 picoseconds. + Weight::from_parts(28_341_000, 0) + .saturating_add(Weight::from_parts(0, 3768)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_salary_fellowship_salary.rs b/system-parachains/collectives-paseo/src/weights/pallet_salary_fellowship_salary.rs new file mode 100644 index 000000000..5041ef3a6 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_salary_fellowship_salary.rs @@ -0,0 +1,186 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_salary` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_salary +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_salary`. +pub struct WeightInfo(PhantomData); +impl pallet_salary::WeightInfo for WeightInfo { + /// Storage: `FellowshipSalary::Status` (r:1 w:1) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + fn init() -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `1541` + // Minimum execution time: 12_250_000 picoseconds. + Weight::from_parts(12_810_000, 0) + .saturating_add(Weight::from_parts(0, 1541)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipSalary::Status` (r:1 w:1) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + fn bump() -> Weight { + // Proof Size summary in bytes: + // Measured: `224` + // Estimated: `1541` + // Minimum execution time: 14_690_000 picoseconds. + Weight::from_parts(14_960_000, 0) + .saturating_add(Weight::from_parts(0, 1541)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipSalary::Status` (r:1 w:0) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Claimant` (r:1 w:1) + /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + fn induct() -> Weight { + // Proof Size summary in bytes: + // Measured: `395` + // Estimated: `3551` + // Minimum execution time: 25_631_000 picoseconds. + Weight::from_parts(26_090_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Status` (r:1 w:1) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Claimant` (r:1 w:1) + /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + fn register() -> Weight { + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3551` + // Minimum execution time: 29_450_000 picoseconds. + Weight::from_parts(30_190_000, 0) + .saturating_add(Weight::from_parts(0, 3551)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipSalary::Status` (r:1 w:1) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Claimant` (r:1 w:1) + /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) + /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn payout() -> Weight { + // Proof Size summary in bytes: + // Measured: `696` + // Estimated: `4161` + // Minimum execution time: 78_991_000 picoseconds. + Weight::from_parts(80_040_000, 0) + .saturating_add(Weight::from_parts(0, 4161)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipSalary::Status` (r:1 w:1) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Claimant` (r:1 w:1) + /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `FellowshipCollective::Members` (r:1 w:0) + /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) + /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn payout_other() -> Weight { + // Proof Size summary in bytes: + // Measured: `696` + // Estimated: `4161` + // Minimum execution time: 78_671_000 picoseconds. + Weight::from_parts(79_700_000, 0) + .saturating_add(Weight::from_parts(0, 4161)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `FellowshipSalary::Status` (r:1 w:1) + /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`) + /// Storage: `FellowshipSalary::Claimant` (r:1 w:1) + /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:1 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn check_payment() -> Weight { + // Proof Size summary in bytes: + // Measured: `336` + // Estimated: `3801` + // Minimum execution time: 27_860_000 picoseconds. + Weight::from_parts(28_551_000, 0) + .saturating_add(Weight::from_parts(0, 3801)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_scheduler.rs b/system-parachains/collectives-paseo/src/weights/pallet_scheduler.rs new file mode 100644 index 000000000..158bba3a9 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_scheduler.rs @@ -0,0 +1,286 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_scheduler` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_scheduler +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_scheduler`. +pub struct WeightInfo(PhantomData); +impl pallet_scheduler::WeightInfo for WeightInfo { + /// Storage: `Scheduler::IncompleteSince` (r:1 w:1) + /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + fn service_agendas_base() -> Weight { + // Proof Size summary in bytes: + // Measured: `31` + // Estimated: `1489` + // Minimum execution time: 4_340_000 picoseconds. + Weight::from_parts(4_450_000, 0) + .saturating_add(Weight::from_parts(0, 1489)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 200]`. + fn service_agenda_base(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `77 + s * (177 ±0)` + // Estimated: `159279` + // Minimum execution time: 4_510_000 picoseconds. + Weight::from_parts(9_038_594, 0) + .saturating_add(Weight::from_parts(0, 159279)) + // Standard Error: 3_005 + .saturating_add(Weight::from_parts(437_294, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn service_task_base() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_380_000 picoseconds. + Weight::from_parts(4_560_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `Preimage::PreimageFor` (r:1 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) + /// Storage: `Preimage::StatusFor` (r:1 w:0) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) + /// The range of component `s` is `[128, 4194304]`. + fn service_task_fetched(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `246 + s * (1 ±0)` + // Estimated: `4197809` + // Minimum execution time: 26_560_000 picoseconds. + Weight::from_parts(26_740_000, 0) + .saturating_add(Weight::from_parts(0, 4197809)) + // Standard Error: 8 + .saturating_add(Weight::from_parts(1_399, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + fn service_task_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_250_000 picoseconds. + Weight::from_parts(6_420_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn service_task_periodic() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_330_000 picoseconds. + Weight::from_parts(4_460_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn execute_dispatch_signed() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_840_000 picoseconds. + Weight::from_parts(2_980_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn execute_dispatch_unsigned() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_880_000 picoseconds. + Weight::from_parts(2_970_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 199]`. + fn schedule(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `77 + s * (177 ±0)` + // Estimated: `159279` + // Minimum execution time: 13_361_000 picoseconds. + Weight::from_parts(17_556_848, 0) + .saturating_add(Weight::from_parts(0, 159279)) + // Standard Error: 3_179 + .saturating_add(Weight::from_parts(451_359, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 200]`. + fn cancel(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `77 + s * (177 ±0)` + // Estimated: `159279` + // Minimum execution time: 22_030_000 picoseconds. + Weight::from_parts(20_183_995, 0) + .saturating_add(Weight::from_parts(0, 159279)) + // Standard Error: 3_096 + .saturating_add(Weight::from_parts(704_936, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 199]`. + fn schedule_named(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `468 + s * (179 ±0)` + // Estimated: `159279` + // Minimum execution time: 18_370_000 picoseconds. + Weight::from_parts(25_840_443, 0) + .saturating_add(Weight::from_parts(0, 159279)) + // Standard Error: 3_228 + .saturating_add(Weight::from_parts(467_768, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 200]`. + fn cancel_named(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `509 + s * (179 ±0)` + // Estimated: `159279` + // Minimum execution time: 26_200_000 picoseconds. + Weight::from_parts(26_569_424, 0) + .saturating_add(Weight::from_parts(0, 159279)) + // Standard Error: 3_194 + .saturating_add(Weight::from_parts(716_769, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 200]`. + fn schedule_retry(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `118` + // Estimated: `159279` + // Minimum execution time: 13_971_000 picoseconds. + Weight::from_parts(15_125_943, 0) + .saturating_add(Weight::from_parts(0, 159279)) + // Standard Error: 350 + .saturating_add(Weight::from_parts(14_541, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn set_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `35481` + // Estimated: `159279` + // Minimum execution time: 79_511_000 picoseconds. + Weight::from_parts(80_930_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:0) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn set_retry_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `36253` + // Estimated: `159279` + // Minimum execution time: 88_061_000 picoseconds. + Weight::from_parts(92_131_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn cancel_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `35493` + // Estimated: `159279` + // Minimum execution time: 77_201_000 picoseconds. + Weight::from_parts(78_730_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:0) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) + fn cancel_retry_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `36265` + // Estimated: `159279` + // Minimum execution time: 86_640_000 picoseconds. + Weight::from_parts(88_381_000, 0) + .saturating_add(Weight::from_parts(0, 159279)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_session.rs b/system-parachains/collectives-paseo/src/weights/pallet_session.rs new file mode 100644 index 000000000..d19104c2c --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_session.rs @@ -0,0 +1,78 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_session` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_session +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_session`. +pub struct WeightInfo(PhantomData); +impl pallet_session::WeightInfo for WeightInfo { + /// Storage: `Session::NextKeys` (r:1 w:1) + /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Session::KeyOwner` (r:1 w:1) + /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn set_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `298` + // Estimated: `3763` + // Minimum execution time: 23_920_000 picoseconds. + Weight::from_parts(24_420_000, 0) + .saturating_add(Weight::from_parts(0, 3763)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Session::NextKeys` (r:1 w:1) + /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Session::KeyOwner` (r:0 w:1) + /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn purge_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `280` + // Estimated: `3745` + // Minimum execution time: 16_811_000 picoseconds. + Weight::from_parts(17_230_000, 0) + .saturating_add(Weight::from_parts(0, 3745)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_timestamp.rs b/system-parachains/collectives-paseo/src/weights/pallet_timestamp.rs new file mode 100644 index 000000000..a90b59640 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_timestamp.rs @@ -0,0 +1,72 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_timestamp` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_timestamp +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_timestamp`. +pub struct WeightInfo(PhantomData); +impl pallet_timestamp::WeightInfo for WeightInfo { + /// Storage: `Timestamp::Now` (r:1 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Aura::CurrentSlot` (r:1 w:0) + /// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + fn set() -> Weight { + // Proof Size summary in bytes: + // Measured: `85` + // Estimated: `1493` + // Minimum execution time: 12_990_000 picoseconds. + Weight::from_parts(13_320_000, 0) + .saturating_add(Weight::from_parts(0, 1493)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn on_finalize() -> Weight { + // Proof Size summary in bytes: + // Measured: `94` + // Estimated: `0` + // Minimum execution time: 7_140_000 picoseconds. + Weight::from_parts(7_370_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_treasury_ambassador_treasury.rs b/system-parachains/collectives-paseo/src/weights/pallet_treasury_ambassador_treasury.rs new file mode 100644 index 000000000..3aac8700c --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_treasury_ambassador_treasury.rs @@ -0,0 +1,175 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_treasury` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_treasury +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_treasury`. +pub struct WeightInfo(PhantomData); +impl pallet_treasury::WeightInfo for WeightInfo { + /// Storage: `AmbassadorTreasury::ProposalCount` (r:1 w:1) + /// Proof: `AmbassadorTreasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::Approvals` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::Proposals` (r:0 w:1) + /// Proof: `AmbassadorTreasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + fn spend_local() -> Weight { + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `1887` + // Minimum execution time: 17_500_000 picoseconds. + Weight::from_parts(17_920_000, 0) + .saturating_add(Weight::from_parts(0, 1887)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `AmbassadorTreasury::Approvals` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + fn remove_approval() -> Weight { + // Proof Size summary in bytes: + // Measured: `127` + // Estimated: `1887` + // Minimum execution time: 9_790_000 picoseconds. + Weight::from_parts(10_160_000, 0) + .saturating_add(Weight::from_parts(0, 1887)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:100 w:100) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::Deactivated` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::Approvals` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::Proposals` (r:99 w:99) + /// Proof: `AmbassadorTreasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 99]`. + /// The range of component `p` is `[0, 99]`. + fn on_initialize_proposals(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `93 + p * (158 ±0)` + // Estimated: `3593 + p * (2603 ±0)` + // Minimum execution time: 26_870_000 picoseconds. + Weight::from_parts(34_778_676, 0) + .saturating_add(Weight::from_parts(0, 3593)) + // Standard Error: 7_996 + .saturating_add(Weight::from_parts(26_573_803, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(p.into())) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AssetRate::ConversionRateToNative` (r:1 w:0) + /// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(1238), added: 3713, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::SpendCount` (r:1 w:1) + /// Proof: `AmbassadorTreasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AmbassadorTreasury::Spends` (r:0 w:1) + /// Proof: `AmbassadorTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + fn spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `187` + // Estimated: `4703` + // Minimum execution time: 32_090_000 picoseconds. + Weight::from_parts(32_690_000, 0) + .saturating_add(Weight::from_parts(0, 4703)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorTreasury::Spends` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) + /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn payout() -> Weight { + // Proof Size summary in bytes: + // Measured: `551` + // Estimated: `5318` + // Minimum execution time: 68_521_000 picoseconds. + Weight::from_parts(69_370_000, 0) + .saturating_add(Weight::from_parts(0, 5318)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `AmbassadorTreasury::Spends` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:1 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn check_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `207` + // Estimated: `5318` + // Minimum execution time: 31_230_000 picoseconds. + Weight::from_parts(31_650_000, 0) + .saturating_add(Weight::from_parts(0, 5318)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AmbassadorTreasury::Spends` (r:1 w:1) + /// Proof: `AmbassadorTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + fn void_spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `179` + // Estimated: `5318` + // Minimum execution time: 18_400_000 picoseconds. + Weight::from_parts(18_750_000, 0) + .saturating_add(Weight::from_parts(0, 5318)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_treasury_fellowship_treasury.rs b/system-parachains/collectives-paseo/src/weights/pallet_treasury_fellowship_treasury.rs new file mode 100644 index 000000000..e03889e1d --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_treasury_fellowship_treasury.rs @@ -0,0 +1,175 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_treasury` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_treasury +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_treasury`. +pub struct WeightInfo(PhantomData); +impl pallet_treasury::WeightInfo for WeightInfo { + /// Storage: `FellowshipTreasury::ProposalCount` (r:1 w:1) + /// Proof: `FellowshipTreasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::Approvals` (r:1 w:1) + /// Proof: `FellowshipTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::Proposals` (r:0 w:1) + /// Proof: `FellowshipTreasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + fn spend_local() -> Weight { + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `1887` + // Minimum execution time: 17_770_000 picoseconds. + Weight::from_parts(18_131_000, 0) + .saturating_add(Weight::from_parts(0, 1887)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `FellowshipTreasury::Approvals` (r:1 w:1) + /// Proof: `FellowshipTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + fn remove_approval() -> Weight { + // Proof Size summary in bytes: + // Measured: `127` + // Estimated: `1887` + // Minimum execution time: 9_960_000 picoseconds. + Weight::from_parts(10_290_000, 0) + .saturating_add(Weight::from_parts(0, 1887)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:100 w:100) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::Deactivated` (r:1 w:1) + /// Proof: `FellowshipTreasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::Approvals` (r:1 w:1) + /// Proof: `FellowshipTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::Proposals` (r:99 w:99) + /// Proof: `FellowshipTreasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 99]`. + /// The range of component `p` is `[0, 99]`. + fn on_initialize_proposals(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `31 + p * (158 ±0)` + // Estimated: `3593 + p * (2603 ±0)` + // Minimum execution time: 27_940_000 picoseconds. + Weight::from_parts(31_170_420, 0) + .saturating_add(Weight::from_parts(0, 3593)) + // Standard Error: 8_836 + .saturating_add(Weight::from_parts(26_675_795, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(p.into())) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AssetRate::ConversionRateToNative` (r:1 w:0) + /// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(1238), added: 3713, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::SpendCount` (r:1 w:1) + /// Proof: `FellowshipTreasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `FellowshipTreasury::Spends` (r:0 w:1) + /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + fn spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `187` + // Estimated: `4703` + // Minimum execution time: 32_460_000 picoseconds. + Weight::from_parts(33_201_000, 0) + .saturating_add(Weight::from_parts(0, 4703)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipTreasury::Spends` (r:1 w:1) + /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) + /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn payout() -> Weight { + // Proof Size summary in bytes: + // Measured: `551` + // Estimated: `5318` + // Minimum execution time: 68_421_000 picoseconds. + Weight::from_parts(69_791_000, 0) + .saturating_add(Weight::from_parts(0, 5318)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `FellowshipTreasury::Spends` (r:1 w:1) + /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::Queries` (r:1 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn check_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `207` + // Estimated: `5318` + // Minimum execution time: 31_131_000 picoseconds. + Weight::from_parts(31_690_000, 0) + .saturating_add(Weight::from_parts(0, 5318)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `FellowshipTreasury::Spends` (r:1 w:1) + /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`) + fn void_spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `179` + // Estimated: `5318` + // Minimum execution time: 18_350_000 picoseconds. + Weight::from_parts(18_740_000, 0) + .saturating_add(Weight::from_parts(0, 5318)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_utility.rs b/system-parachains/collectives-paseo/src/weights/pallet_utility.rs new file mode 100644 index 000000000..74eb7609c --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_utility.rs @@ -0,0 +1,99 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_utility` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_utility +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_utility`. +pub struct WeightInfo(PhantomData); +impl pallet_utility::WeightInfo for WeightInfo { + /// The range of component `c` is `[0, 1000]`. + fn batch(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_500_000 picoseconds. + Weight::from_parts(14_076_914, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 818 + .saturating_add(Weight::from_parts(3_787_710, 0).saturating_mul(c.into())) + } + fn as_derivative() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_460_000 picoseconds. + Weight::from_parts(5_640_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// The range of component `c` is `[0, 1000]`. + fn batch_all(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_350_000 picoseconds. + Weight::from_parts(10_652_929, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 708 + .saturating_add(Weight::from_parts(4_060_571, 0).saturating_mul(c.into())) + } + fn dispatch_as() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_520_000 picoseconds. + Weight::from_parts(8_770_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// The range of component `c` is `[0, 1000]`. + fn force_batch(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_530_000 picoseconds. + Weight::from_parts(12_902_522, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 848 + .saturating_add(Weight::from_parts(3_795_140, 0).saturating_mul(c.into())) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/pallet_xcm.rs b/system-parachains/collectives-paseo/src/weights/pallet_xcm.rs new file mode 100644 index 000000000..8c9ba5093 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/pallet_xcm.rs @@ -0,0 +1,342 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_xcm` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_xcm +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/ +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_xcm`. +pub struct WeightInfo(PhantomData); +impl pallet_xcm::WeightInfo for WeightInfo { + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn send() -> Weight { + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 29_790_000 picoseconds. + Weight::from_parts(30_330_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`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: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn teleport_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `111` + // Estimated: `3593` + // Minimum execution time: 111_891_000 picoseconds. + Weight::from_parts(113_361_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn reserve_transfer_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. + Weight::from_parts(18_446_744_073_709_551_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`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: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn transfer_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `111` + // Estimated: `3593` + // Minimum execution time: 113_860_000 picoseconds. + Weight::from_parts(115_031_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn execute() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 14_230_000 picoseconds. + Weight::from_parts(14_550_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn force_xcm_version() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_190_000 picoseconds. + Weight::from_parts(9_610_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn force_default_xcm_version() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_060_000 picoseconds. + Weight::from_parts(3_281_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn force_subscribe_version_notify() -> Weight { + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 37_360_000 picoseconds. + Weight::from_parts(37_730_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn force_unsubscribe_version_notify() -> Weight { + // Proof Size summary in bytes: + // Measured: `136` + // Estimated: `3601` + // Minimum execution time: 36_720_000 picoseconds. + Weight::from_parts(37_451_000, 0) + .saturating_add(Weight::from_parts(0, 3601)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) + /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn force_suspension() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_190_000 picoseconds. + Weight::from_parts(3_320_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `PolkadotXcm::SupportedVersion` (r:5 w:2) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn migrate_supported_version() -> Weight { + // Proof Size summary in bytes: + // Measured: `22` + // Estimated: `13387` + // Minimum execution time: 22_640_000 picoseconds. + Weight::from_parts(22_980_000, 0) + .saturating_add(Weight::from_parts(0, 13387)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::VersionNotifiers` (r:5 w:2) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn migrate_version_notifiers() -> Weight { + // Proof Size summary in bytes: + // Measured: `26` + // Estimated: `13391` + // Minimum execution time: 22_680_000 picoseconds. + Weight::from_parts(23_180_000, 0) + .saturating_add(Weight::from_parts(0, 13391)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn already_notified_target() -> Weight { + // Proof Size summary in bytes: + // Measured: `37` + // Estimated: `15877` + // Minimum execution time: 26_390_000 picoseconds. + Weight::from_parts(26_970_000, 0) + .saturating_add(Weight::from_parts(0, 15877)) + .saturating_add(T::DbWeight::get().reads(6)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn notify_current_targets() -> Weight { + // Proof Size summary in bytes: + // Measured: `75` + // Estimated: `6015` + // Minimum execution time: 36_151_000 picoseconds. + Weight::from_parts(37_001_000, 0) + .saturating_add(Weight::from_parts(0, 6015)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn notify_target_migration_fail() -> Weight { + // Proof Size summary in bytes: + // Measured: `36` + // Estimated: `10926` + // Minimum execution time: 17_060_000 picoseconds. + Weight::from_parts(17_270_000, 0) + .saturating_add(Weight::from_parts(0, 10926)) + .saturating_add(T::DbWeight::get().reads(4)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn migrate_version_notify_targets() -> Weight { + // Proof Size summary in bytes: + // Measured: `33` + // Estimated: `13398` + // Minimum execution time: 23_491_000 picoseconds. + Weight::from_parts(23_920_000, 0) + .saturating_add(Weight::from_parts(0, 13398)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn migrate_and_notify_old_targets() -> Weight { + // Proof Size summary in bytes: + // Measured: `75` + // Estimated: `13440` + // Minimum execution time: 48_641_000 picoseconds. + Weight::from_parts(49_420_000, 0) + .saturating_add(Weight::from_parts(0, 13440)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn new_query() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 3_210_000 picoseconds. + Weight::from_parts(3_340_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::Queries` (r:1 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn take_response() -> Weight { + // Proof Size summary in bytes: + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 33_020_000 picoseconds. + Weight::from_parts(33_480_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) + /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn claim_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `23` + // Estimated: `3488` + // Minimum execution time: 49_930_000 picoseconds. + Weight::from_parts(50_630_000, 0) + .saturating_add(Weight::from_parts(0, 3488)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/paritydb_weights.rs b/system-parachains/collectives-paseo/src/weights/paritydb_weights.rs new file mode 100644 index 000000000..256797038 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/paritydb_weights.rs @@ -0,0 +1,63 @@ +// This file is part of Substrate. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +pub mod constants { + use frame_support::{ + parameter_types, + weights::{constants, RuntimeDbWeight}, + }; + + parameter_types! { + /// `ParityDB` can be enabled with a feature flag, but is still experimental. These weights + /// are available for brave runtime engineers who may want to try this out as default. + pub const ParityDbWeight: RuntimeDbWeight = RuntimeDbWeight { + read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS, + write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS, + }; + } + + #[cfg(test)] + mod test_db_weights { + use super::constants::ParityDbWeight as W; + use frame_support::weights::constants; + + /// Checks that all weights exist and have sane values. + // NOTE: If this test fails but you are sure that the generated values are fine, + // you can delete it. + #[test] + fn sane() { + // At least 1 µs. + assert!( + W::get().reads(1).ref_time() >= constants::WEIGHT_REF_TIME_PER_MICROS, + "Read weight should be at least 1 µs." + ); + assert!( + W::get().writes(1).ref_time() >= constants::WEIGHT_REF_TIME_PER_MICROS, + "Write weight should be at least 1 µs." + ); + // At most 1 ms. + assert!( + W::get().reads(1).ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, + "Read weight should be at most 1 ms." + ); + assert!( + W::get().writes(1).ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, + "Write weight should be at most 1 ms." + ); + } + } +} diff --git a/system-parachains/collectives-paseo/src/weights/rocksdb_weights.rs b/system-parachains/collectives-paseo/src/weights/rocksdb_weights.rs new file mode 100644 index 000000000..3dd817aa6 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/rocksdb_weights.rs @@ -0,0 +1,63 @@ +// This file is part of Substrate. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +pub mod constants { + use frame_support::{ + parameter_types, + weights::{constants, RuntimeDbWeight}, + }; + + parameter_types! { + /// By default, Substrate uses `RocksDB`, so this will be the weight used throughout + /// the runtime. + pub const RocksDbWeight: RuntimeDbWeight = RuntimeDbWeight { + read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS, + write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS, + }; + } + + #[cfg(test)] + mod test_db_weights { + use super::constants::RocksDbWeight as W; + use frame_support::weights::constants; + + /// Checks that all weights exist and have sane values. + // NOTE: If this test fails but you are sure that the generated values are fine, + // you can delete it. + #[test] + fn sane() { + // At least 1 µs. + assert!( + W::get().reads(1).ref_time() >= constants::WEIGHT_REF_TIME_PER_MICROS, + "Read weight should be at least 1 µs." + ); + assert!( + W::get().writes(1).ref_time() >= constants::WEIGHT_REF_TIME_PER_MICROS, + "Write weight should be at least 1 µs." + ); + // At most 1 ms. + assert!( + W::get().reads(1).ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, + "Read weight should be at most 1 ms." + ); + assert!( + W::get().writes(1).ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, + "Write weight should be at most 1 ms." + ); + } + } +} diff --git a/system-parachains/collectives-paseo/src/weights/xcm/mod.rs b/system-parachains/collectives-paseo/src/weights/xcm/mod.rs new file mode 100644 index 000000000..36260632f --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/xcm/mod.rs @@ -0,0 +1,234 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +mod pallet_xcm_benchmarks_fungible; +mod pallet_xcm_benchmarks_generic; + +use crate::{xcm_config::MaxAssetsIntoHolding, Runtime}; +use frame_support::weights::Weight; +use pallet_xcm_benchmarks_fungible::WeightInfo as XcmFungibleWeight; +use pallet_xcm_benchmarks_generic::WeightInfo as XcmGeneric; +use sp_std::prelude::*; +use xcm::{latest::prelude::*, DoubleEncoded}; + +trait WeighAssets { + fn weigh_assets(&self, weight: Weight) -> Weight; +} + +// Collectives only knows about DOT. +const MAX_ASSETS: u64 = 1; + +impl WeighAssets for AssetFilter { + fn weigh_assets(&self, weight: Weight) -> Weight { + match self { + Self::Definite(assets) => weight.saturating_mul(assets.inner().iter().count() as u64), + Self::Wild(asset) => match asset { + All => weight.saturating_mul(MAX_ASSETS), + AllOf { fun, .. } => match fun { + WildFungibility::Fungible => weight, + // Magic number 2 has to do with the fact that we could have up to 2 times + // MaxAssetsIntoHolding in the worst-case scenario. + WildFungibility::NonFungible => + weight.saturating_mul((MaxAssetsIntoHolding::get() * 2) as u64), + }, + AllCounted(count) => weight.saturating_mul(MAX_ASSETS.min(*count as u64)), + AllOfCounted { count, .. } => weight.saturating_mul(MAX_ASSETS.min(*count as u64)), + }, + } + } +} + +impl WeighAssets for Assets { + fn weigh_assets(&self, weight: Weight) -> Weight { + weight.saturating_mul(self.inner().iter().count() as u64) + } +} + +pub struct CollectivesWestendXcmWeight(core::marker::PhantomData); +impl XcmWeightInfo for CollectivesWestendXcmWeight { + fn withdraw_asset(assets: &Assets) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::withdraw_asset()) + } + fn reserve_asset_deposited(assets: &Assets) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::reserve_asset_deposited()) + } + fn receive_teleported_asset(assets: &Assets) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::receive_teleported_asset()) + } + fn query_response( + _query_id: &u64, + _response: &Response, + _max_weight: &Weight, + _querier: &Option, + ) -> Weight { + XcmGeneric::::query_response() + } + fn transfer_asset(assets: &Assets, _dest: &Location) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::transfer_asset()) + } + fn transfer_reserve_asset(assets: &Assets, _dest: &Location, _xcm: &Xcm<()>) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::transfer_reserve_asset()) + } + fn transact( + _origin_type: &OriginKind, + _require_weight_at_most: &Weight, + _call: &DoubleEncoded, + ) -> Weight { + XcmGeneric::::transact() + } + fn hrmp_new_channel_open_request( + _sender: &u32, + _max_message_size: &u32, + _max_capacity: &u32, + ) -> Weight { + // XCM Executor does not currently support HRMP channel operations + Weight::MAX + } + fn hrmp_channel_accepted(_recipient: &u32) -> Weight { + // XCM Executor does not currently support HRMP channel operations + Weight::MAX + } + fn hrmp_channel_closing(_initiator: &u32, _sender: &u32, _recipient: &u32) -> Weight { + // XCM Executor does not currently support HRMP channel operations + Weight::MAX + } + fn clear_origin() -> Weight { + XcmGeneric::::clear_origin() + } + fn descend_origin(_who: &InteriorLocation) -> Weight { + XcmGeneric::::descend_origin() + } + fn report_error(_query_response_info: &QueryResponseInfo) -> Weight { + XcmGeneric::::report_error() + } + + fn deposit_asset(assets: &AssetFilter, _dest: &Location) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::deposit_asset()) + } + fn deposit_reserve_asset(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::deposit_reserve_asset()) + } + fn exchange_asset(_give: &AssetFilter, _receive: &Assets, _maximal: &bool) -> Weight { + Weight::MAX + } + fn initiate_reserve_withdraw( + assets: &AssetFilter, + _reserve: &Location, + _xcm: &Xcm<()>, + ) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::initiate_reserve_withdraw()) + } + fn initiate_teleport(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { + assets.weigh_assets(XcmFungibleWeight::::initiate_teleport()) + } + fn report_holding(_response_info: &QueryResponseInfo, _assets: &AssetFilter) -> Weight { + XcmGeneric::::report_holding() + } + fn buy_execution(_fees: &Asset, _weight_limit: &WeightLimit) -> Weight { + XcmGeneric::::buy_execution() + } + fn refund_surplus() -> Weight { + XcmGeneric::::refund_surplus() + } + fn set_error_handler(_xcm: &Xcm) -> Weight { + XcmGeneric::::set_error_handler() + } + fn set_appendix(_xcm: &Xcm) -> Weight { + XcmGeneric::::set_appendix() + } + fn clear_error() -> Weight { + XcmGeneric::::clear_error() + } + fn claim_asset(_assets: &Assets, _ticket: &Location) -> Weight { + XcmGeneric::::claim_asset() + } + fn trap(_code: &u64) -> Weight { + XcmGeneric::::trap() + } + fn subscribe_version(_query_id: &QueryId, _max_response_weight: &Weight) -> Weight { + XcmGeneric::::subscribe_version() + } + fn unsubscribe_version() -> Weight { + XcmGeneric::::unsubscribe_version() + } + fn burn_asset(assets: &Assets) -> Weight { + assets.weigh_assets(XcmGeneric::::burn_asset()) + } + fn expect_asset(assets: &Assets) -> Weight { + assets.weigh_assets(XcmGeneric::::expect_asset()) + } + fn expect_origin(_origin: &Option) -> Weight { + XcmGeneric::::expect_origin() + } + fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight { + XcmGeneric::::expect_error() + } + fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight { + XcmGeneric::::expect_transact_status() + } + fn query_pallet(_module_name: &Vec, _response_info: &QueryResponseInfo) -> Weight { + XcmGeneric::::query_pallet() + } + fn expect_pallet( + _index: &u32, + _name: &Vec, + _module_name: &Vec, + _crate_major: &u32, + _min_crate_minor: &u32, + ) -> Weight { + XcmGeneric::::expect_pallet() + } + fn report_transact_status(_response_info: &QueryResponseInfo) -> Weight { + XcmGeneric::::report_transact_status() + } + fn clear_transact_status() -> Weight { + XcmGeneric::::clear_transact_status() + } + fn universal_origin(_: &Junction) -> Weight { + Weight::MAX + } + fn export_message(_: &NetworkId, _: &Junctions, _: &Xcm<()>) -> Weight { + Weight::MAX + } + fn lock_asset(_: &Asset, _: &Location) -> Weight { + Weight::MAX + } + fn unlock_asset(_: &Asset, _: &Location) -> Weight { + Weight::MAX + } + fn note_unlockable(_: &Asset, _: &Location) -> Weight { + Weight::MAX + } + fn request_unlock(_: &Asset, _: &Location) -> Weight { + Weight::MAX + } + fn set_fees_mode(_: &bool) -> Weight { + XcmGeneric::::set_fees_mode() + } + fn set_topic(_topic: &[u8; 32]) -> Weight { + XcmGeneric::::set_topic() + } + fn clear_topic() -> Weight { + XcmGeneric::::clear_topic() + } + fn alias_origin(_: &Location) -> Weight { + // XCM Executor does not currently support alias origin operations + Weight::MAX + } + fn unpaid_execution(_: &WeightLimit, _: &Option) -> Weight { + XcmGeneric::::unpaid_execution() + } +} diff --git a/system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs new file mode 100644 index 000000000..85eba7cd8 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -0,0 +1,190 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_xcm_benchmarks::fungible` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_xcm_benchmarks::fungible +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/xcm/pallet_xcm_benchmarks_fungible.rs +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_xcm_benchmarks::fungible`. +pub struct WeightInfo(PhantomData); +impl WeightInfo { + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + pub(crate) fn withdraw_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `101` + // Estimated: `3593` + // Minimum execution time: 40_160_000 picoseconds. + Weight::from_parts(40_961_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + pub(crate) fn transfer_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `153` + // Estimated: `6196` + // Minimum execution time: 54_831_000 picoseconds. + Weight::from_parts(55_110_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `System::Account` (r:3 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn transfer_reserve_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `264` + // Estimated: `8799` + // Minimum execution time: 109_430_000 picoseconds. + Weight::from_parts(111_451_000, 0) + .saturating_add(Weight::from_parts(0, 8799)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) + pub(crate) fn reserve_asset_deposited() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. + Weight::from_parts(18_446_744_073_709_551_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn initiate_reserve_withdraw() -> Weight { + // Proof Size summary in bytes: + // Measured: `212` + // Estimated: `6196` + // Minimum execution time: 69_691_000 picoseconds. + Weight::from_parts(70_671_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) + } + pub(crate) fn receive_teleported_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_250_000 picoseconds. + Weight::from_parts(3_550_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + pub(crate) fn deposit_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `52` + // Estimated: `3593` + // Minimum execution time: 30_060_000 picoseconds. + Weight::from_parts(30_570_000, 0) + .saturating_add(Weight::from_parts(0, 3593)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`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: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn deposit_reserve_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `163` + // Estimated: `3628` + // Minimum execution time: 74_150_000 picoseconds. + Weight::from_parts(74_821_000, 0) + .saturating_add(Weight::from_parts(0, 3628)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn initiate_teleport() -> Weight { + // Proof Size summary in bytes: + // Measured: `111` + // Estimated: `3576` + // Minimum execution time: 32_130_000 picoseconds. + Weight::from_parts(32_600_000, 0) + .saturating_add(Weight::from_parts(0, 3576)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs new file mode 100644 index 000000000..aa0736dd8 --- /dev/null +++ b/system-parachains/collectives-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -0,0 +1,352 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_xcm_benchmarks::generic` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2025-01-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./collectives-polkadot-chain-spec.json")`, DB CACHE: 1024 + +// Executed Command: +// ./target/production/polkadot-parachain +// benchmark +// pallet +// --chain=./collectives-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_xcm_benchmarks::generic +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./collectives-polkadot-weights/xcm/pallet_xcm_benchmarks_generic.rs +// --header=./file_header.txt + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_xcm_benchmarks::generic`. +pub struct WeightInfo(PhantomData); +impl WeightInfo { + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn report_holding() -> Weight { + // Proof Size summary in bytes: + // Measured: `212` + // Estimated: `6196` + // Minimum execution time: 69_821_000 picoseconds. + Weight::from_parts(71_130_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) + } + pub(crate) fn buy_execution() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 890_000 picoseconds. + Weight::from_parts(970_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `PolkadotXcm::Queries` (r:1 w:0) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) + pub(crate) fn query_response() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `3465` + // Minimum execution time: 7_530_000 picoseconds. + Weight::from_parts(7_710_000, 0) + .saturating_add(Weight::from_parts(0, 3465)) + .saturating_add(T::DbWeight::get().reads(1)) + } + pub(crate) fn transact() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_160_000 picoseconds. + Weight::from_parts(9_450_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn refund_surplus() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_830_000 picoseconds. + Weight::from_parts(1_930_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn set_error_handler() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 960_000 picoseconds. + Weight::from_parts(1_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn set_appendix() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 910_000 picoseconds. + Weight::from_parts(960_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn clear_error() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 780_000 picoseconds. + Weight::from_parts(860_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn descend_origin() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 920_000 picoseconds. + Weight::from_parts(1_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn clear_origin() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 820_000 picoseconds. + Weight::from_parts(900_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn report_error() -> Weight { + // Proof Size summary in bytes: + // Measured: `212` + // Estimated: `6196` + // Minimum execution time: 64_900_000 picoseconds. + Weight::from_parts(65_791_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) + /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) + pub(crate) fn claim_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `23` + // Estimated: `3488` + // Minimum execution time: 11_440_000 picoseconds. + Weight::from_parts(11_700_000, 0) + .saturating_add(Weight::from_parts(0, 3488)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + pub(crate) fn trap() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 820_000 picoseconds. + Weight::from_parts(880_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn subscribe_version() -> Weight { + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 31_201_000 picoseconds. + Weight::from_parts(31_810_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + pub(crate) fn unsubscribe_version() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_690_000 picoseconds. + Weight::from_parts(3_800_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + pub(crate) fn burn_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_470_000 picoseconds. + Weight::from_parts(1_580_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn expect_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_020_000 picoseconds. + Weight::from_parts(1_090_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn expect_origin() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 850_000 picoseconds. + Weight::from_parts(930_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn expect_error() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 820_000 picoseconds. + Weight::from_parts(890_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn expect_transact_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_010_000 picoseconds. + Weight::from_parts(1_080_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn query_pallet() -> Weight { + // Proof Size summary in bytes: + // Measured: `212` + // Estimated: `6196` + // Minimum execution time: 72_950_000 picoseconds. + Weight::from_parts(73_611_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) + } + pub(crate) fn expect_pallet() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_530_000 picoseconds. + Weight::from_parts(6_730_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) + /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + pub(crate) fn report_transact_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `212` + // Estimated: `6196` + // Minimum execution time: 65_030_000 picoseconds. + Weight::from_parts(65_860_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) + } + pub(crate) fn clear_transact_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 910_000 picoseconds. + Weight::from_parts(980_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn set_topic() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 800_000 picoseconds. + Weight::from_parts(870_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn clear_topic() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 830_000 picoseconds. + Weight::from_parts(870_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn set_fees_mode() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 760_000 picoseconds. + Weight::from_parts(830_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + pub(crate) fn unpaid_execution() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 830_000 picoseconds. + Weight::from_parts(910_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} \ No newline at end of file diff --git a/system-parachains/collectives-paseo/src/xcm_config.rs b/system-parachains/collectives-paseo/src/xcm_config.rs new file mode 100644 index 000000000..b9e6f996a --- /dev/null +++ b/system-parachains/collectives-paseo/src/xcm_config.rs @@ -0,0 +1,307 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use super::{ + AccountId, AllPalletsWithSystem, Balances, CollatorSelection, Fellows, ParachainInfo, + ParachainSystem, PolkadotXcm, PriceForParentDelivery, Runtime, RuntimeCall, RuntimeEvent, + RuntimeOrigin, WeightToFee, XcmpQueue, +}; +use cumulus_primitives_core::ParaId; +use frame_support::{ + parameter_types, + traits::{tokens::imbalance::ResolveTo, ConstU32, Contains, Equals, Everything, Nothing}, +}; +use frame_system::EnsureRoot; +use pallet_xcm::XcmPassthrough; +use parachains_common::xcm_config::{ + AllSiblingSystemParachains, ConcreteAssetFromSystem, ParentRelayOrSiblingParachains, + RelayOrOtherSystemParachains, +}; +use polkadot_parachain_primitives::primitives::Sibling; +use polkadot_runtime_constants::{ + system_parachain::ASSET_HUB_ID, xcm::body::FELLOWSHIP_ADMIN_INDEX, +}; +use sp_runtime::traits::AccountIdConversion; +use system_parachains_constants::TREASURY_PALLET_ID; +use xcm::latest::prelude::*; +use xcm_builder::{ + AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, + AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, DenyReserveTransferToRelayChain, + DenyThenTry, DescribeAllTerminal, DescribeFamily, DescribeTerminus, EnsureXcmOrigin, + FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsConcrete, LocatableAssetId, + OriginToPluralityVoice, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, + SendXcmFeeToAccount, SiblingParachainAsNative, SiblingParachainConvertsVia, + SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, + TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, + XcmFeeManagerFromComponents, +}; +use xcm_executor::{traits::ConvertLocation, XcmExecutor}; + +parameter_types! { + pub const RootLocation: Location = Location::here(); + pub const DotLocation: Location = Location::parent(); + pub const RelayNetwork: Option = Some(NetworkId::Polkadot); + pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); + pub UniversalLocation: InteriorLocation = + [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().into())].into(); + pub CheckingAccount: AccountId = PolkadotXcm::check_account(); + pub const GovernanceLocation: Location = Location::parent(); + pub RelayTreasuryLocation: Location = (Parent, PalletInstance(polkadot_runtime_constants::TREASURY_PALLET_ID)).into(); + pub TreasuryAccount: AccountId = TREASURY_PALLET_ID.into_account_truncating(); + pub const TreasurerBodyId: BodyId = BodyId::Treasury; + // Test [`treasury_pallet_account_not_none`] ensures that the result of location conversion is + // not `None`. + pub RelayTreasuryPalletAccount: AccountId = + LocationToAccountId::convert_location(&RelayTreasuryLocation::get()) + .unwrap_or(TreasuryAccount::get()); + pub const FellowshipAdminBodyId: BodyId = BodyId::Index(FELLOWSHIP_ADMIN_INDEX); + pub AssetHub: Location = (Parent, Parachain(ASSET_HUB_ID)).into(); + pub AssetHubUsdt: LocatableAssetId = LocatableAssetId { + location: AssetHub::get(), + asset_id: (PalletInstance(50), GeneralIndex(1984)).into(), + }; + pub StakingPot: AccountId = CollatorSelection::account_id(); + pub SelfParaId: ParaId = ParachainInfo::parachain_id(); +} + +/// Type for specifying how a `Location` can be converted into an `AccountId`. +/// +/// This is used when determining ownership of accounts for asset transacting and when attempting to +/// use XCM `Transact` in order to determine the dispatch Origin. +pub type LocationToAccountId = ( + // The parent (Relay-chain) origin converts to the parent `AccountId`. + ParentIsPreset, + // Sibling parachain origins convert to AccountId via the `ParaId::into`. + SiblingParachainConvertsVia, + // Straight up local `AccountId32` origins just alias directly to `AccountId`. + AccountId32Aliases, + // Foreign locations alias into accounts according to a hash of their standard description. + HashedDescription>, + // Here/local root location to `AccountId`. + HashedDescription, +); + +/// Means for transacting the native currency on this chain. +pub type FungibleTransactor = FungibleAdapter< + // Use this currency: + Balances, + // Use this currency when it is a fungible asset matching the given location or name: + IsConcrete, + // Convert an XCM `Location` into a local account ID: + LocationToAccountId, + // Our chain's account ID type (we can't get away without mentioning it explicitly): + AccountId, + // We don't track any teleports of `Balances`. + (), +>; + +/// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance, +/// ready for dispatching a transaction with Xcm's `Transact`. +/// +/// There is an `OriginKind` which can biases the kind of local `Origin` it will become. +pub type XcmOriginToTransactDispatchOrigin = ( + // Sovereign account converter; this attempts to derive an `AccountId` from the origin location + // using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for + // foreign chains who want to have a local sovereign account on this chain which they control. + SovereignSignedViaLocation, + // Native converter for Relay-chain (Parent) location; will convert to a `Relay` origin when + // recognised. + RelayChainAsNative, + // Native converter for sibling Parachains; will convert to a `SiblingPara` origin when + // recognised. + SiblingParachainAsNative, + // Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a + // transaction from the Root origin. + ParentAsSuperuser, + // Native signed account converter; this just converts an `AccountId32` origin into a normal + // `RuntimeOrigin::Signed` origin of the same 32-byte value. + SignedAccountId32AsNative, + // Xcm origins can be represented natively under the Xcm pallet's Xcm origin. + XcmPassthrough, +); + +parameter_types! { + pub const MaxInstructions: u32 = 100; + pub const MaxAssetsIntoHolding: u32 = 64; + // Fellows pluralistic body. + pub const FellowsBodyId: BodyId = BodyId::Technical; +} + +pub struct ParentOrParentsPlurality; +impl Contains for ParentOrParentsPlurality { + fn contains(location: &Location) -> bool { + matches!(location.unpack(), (1, []) | (1, [Plurality { .. }])) + } +} + +pub struct LocalPlurality; +impl Contains for LocalPlurality { + fn contains(loc: &Location) -> bool { + matches!(loc.unpack(), (0, [Plurality { .. }])) + } +} + +pub type Barrier = TrailingSetTopicAsId< + DenyThenTry< + DenyReserveTransferToRelayChain, + ( + // Allow local users to buy weight credit. + TakeWeightCredit, + // Expected responses are OK. + AllowKnownQueryResponses, + // Allow XCMs with some computed origins to pass through. + WithComputedOrigin< + ( + // If the message is one that immediately attempts to pay for execution, then + // allow it. + AllowTopLevelPaidExecutionFrom, + // Parent and its pluralities (i.e. governance bodies) and relay treasury get + // free execution. + AllowExplicitUnpaidExecutionFrom<( + ParentOrParentsPlurality, + Equals, + )>, + // Subscriptions for version tracking are OK. + AllowSubscriptionsFrom, + ), + UniversalLocation, + ConstU32<8>, + >, + ), + >, +>; + +/// Locations that will not be charged fees in the executor, +/// either execution or delivery. +/// We only waive fees for system functions, which these locations represent. +pub type WaivedLocations = ( + RelayOrOtherSystemParachains, + Equals, + Equals, + LocalPlurality, +); + +/// Cases where a remote origin is accepted as trusted Teleporter for a given asset: +/// - DOT with the parent Relay Chain and sibling parachains. +pub type TrustedTeleporters = ConcreteAssetFromSystem; + +pub struct XcmConfig; +impl xcm_executor::Config for XcmConfig { + type RuntimeCall = RuntimeCall; + type XcmSender = XcmRouter; + type XcmRecorder = PolkadotXcm; + type AssetTransactor = FungibleTransactor; + type OriginConverter = XcmOriginToTransactDispatchOrigin; + // Collectives does not recognize a reserve location for any asset. Users must teleport DOT + // where allowed (e.g. with the Relay Chain). + type IsReserve = (); + type IsTeleporter = TrustedTeleporters; + type UniversalLocation = UniversalLocation; + type Barrier = Barrier; + type Weigher = WeightInfoBounds< + crate::weights::xcm::CollectivesWestendXcmWeight, + RuntimeCall, + MaxInstructions, + >; + type Trader = UsingComponents< + WeightToFee, + DotLocation, + AccountId, + Balances, + ResolveTo, + >; + type ResponseHandler = PolkadotXcm; + type AssetTrap = PolkadotXcm; + type AssetClaims = PolkadotXcm; + type SubscriptionService = PolkadotXcm; + type PalletInstancesInfo = AllPalletsWithSystem; + type MaxAssetsIntoHolding = MaxAssetsIntoHolding; + type AssetLocker = (); + type AssetExchanger = (); + type FeeManager = XcmFeeManagerFromComponents< + WaivedLocations, + SendXcmFeeToAccount, + >; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; + type HrmpNewChannelOpenRequestHandler = (); + type HrmpChannelAcceptedHandler = (); + type HrmpChannelClosingHandler = (); +} + +/// Converts a local signed origin into an XCM `Location`. +/// Forms the basis for local origins sending/executing XCMs. +pub type LocalSignedOriginToLocation = SignedToAccountId32; + +/// The means for routing XCM messages which are not for local execution into the right message +/// queues. +pub type XcmRouter = WithUniqueTopic<( + // Two routers - use UMP to communicate with the relay chain: + cumulus_primitives_utility::ParentAsUmp, + // ..and XCMP to communicate with the sibling chains. + XcmpQueue, +)>; + +/// Type to convert the Fellows origin to a Plurality `Location` value. +pub type FellowsToPlurality = OriginToPluralityVoice; + +impl pallet_xcm::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + // We only allow the Fellows to send (arbitrary) messages. + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = XcmRouter; + // Any local signed origin can execute XCM messages. + type ExecuteXcmOrigin = EnsureXcmOrigin; + type XcmExecuteFilter = Everything; + type XcmExecutor = XcmExecutor; + type XcmTeleportFilter = Everything; + type XcmReserveTransferFilter = Nothing; // This parachain is not meant as a reserve location. + type Weigher = WeightInfoBounds< + crate::weights::xcm::CollectivesWestendXcmWeight, + RuntimeCall, + MaxInstructions, + >; + type UniversalLocation = UniversalLocation; + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100; + type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion; + type Currency = Balances; + type CurrencyMatcher = (); + type TrustedLockers = (); + type SovereignAccountOf = LocationToAccountId; + type MaxLockers = ConstU32<8>; + type WeightInfo = crate::weights::pallet_xcm::WeightInfo; + type AdminOrigin = EnsureRoot; + type MaxRemoteLockConsumers = ConstU32<0>; + type RemoteLockConsumerIdentifier = (); +} + +impl cumulus_pallet_xcm::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type XcmExecutor = XcmExecutor; +} + +#[test] +fn treasury_pallet_account_not_none() { + assert_eq!( + RelayTreasuryPalletAccount::get(), + LocationToAccountId::convert_location(&RelayTreasuryLocation::get()).unwrap() + ) +} diff --git a/system-parachains/collectives-paseo/tests/asset_rate.rs b/system-parachains/collectives-paseo/tests/asset_rate.rs new file mode 100644 index 000000000..05d0b7dae --- /dev/null +++ b/system-parachains/collectives-paseo/tests/asset_rate.rs @@ -0,0 +1,96 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +//! AssetRate pallet instance tests. + +use collectives_polkadot_runtime::AssetRateWithNative; +use frame_support::traits::tokens::ConversionFromAssetBalance; +use polkadot_runtime_common::impls::VersionedLocatableAsset; +use xcm::prelude::*; + +#[test] +fn native_asset_rate_works() { + sp_io::TestExternalities::default().execute_with(|| { + // success: native asset on Asset Hub as xcm v4 location + let native = VersionedLocatableAsset::V4 { + location: Location::new(1, [Parachain(1000)]), + asset_id: Location::parent().into(), + }; + let actual = AssetRateWithNative::from_asset_balance(100, native).unwrap(); + assert_eq!(actual, 100); + + // success: native asset on Asset Hub as xcm v3 location + let native = VersionedLocatableAsset::V3 { + location: xcm::v3::Location::new( + 1, + xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)), + ), + asset_id: xcm::v3::Location::parent().into(), + }; + let actual = AssetRateWithNative::from_asset_balance(100, native).unwrap(); + assert_eq!(actual, 100); + + // success: native asset on People as xcm v4 location + let native = VersionedLocatableAsset::V4 { + location: Location::new(1, [Parachain(1004)]), + asset_id: Location::parent().into(), + }; + let actual = AssetRateWithNative::from_asset_balance(100, native).unwrap(); + assert_eq!(actual, 100); + + // success: native asset on People as xcm v3 location + let native = VersionedLocatableAsset::V3 { + location: xcm::v3::Location::new( + 1, + xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1004)), + ), + asset_id: xcm::v3::Location::parent().into(), + }; + let actual = AssetRateWithNative::from_asset_balance(100, native).unwrap(); + assert_eq!(actual, 100); + + // failure: native asset on non system chain as xcm v4 location + let native_non_system = VersionedLocatableAsset::V4 { + location: Location::new(1, [Parachain(2000)]), + asset_id: Location::parent().into(), + }; + assert!(AssetRateWithNative::from_asset_balance(100, native_non_system).is_err()); + + // failure: native asset on non system chain as xcm v3 location + let native_non_system = VersionedLocatableAsset::V3 { + location: xcm::v3::Location::new( + 1, + xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(2000)), + ), + asset_id: xcm::v3::Location::parent().into(), + }; + assert!(AssetRateWithNative::from_asset_balance(100, native_non_system).is_err()); + + // failure: some asset on Asset Hub as xcm v4 location + let non_native = VersionedLocatableAsset::V4 { + location: Location::new(1, [Parachain(2000)]), + asset_id: Location::new(0, [PalletInstance(50), GeneralIndex(1984)]).into(), + }; + assert!(AssetRateWithNative::from_asset_balance(100, non_native).is_err()); + + // failure: native asset with invalid system chain location as xcm v4 location + let native_non_system = VersionedLocatableAsset::V4 { + location: Location::new(0, [Parachain(1000)]), + asset_id: Location::parent().into(), + }; + assert!(AssetRateWithNative::from_asset_balance(100, native_non_system).is_err()); + }); +} diff --git a/system-parachains/collectives-paseo/tests/location_conversion.rs b/system-parachains/collectives-paseo/tests/location_conversion.rs new file mode 100644 index 000000000..21c331591 --- /dev/null +++ b/system-parachains/collectives-paseo/tests/location_conversion.rs @@ -0,0 +1,123 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +use collectives_polkadot_runtime::xcm_config::LocationToAccountId; +use polkadot_core_primitives::AccountId; +use sp_core::crypto::Ss58Codec; +use xcm::prelude::*; +use xcm_runtime_apis::conversions::LocationToAccountHelper; + +const ALICE: [u8; 32] = [1u8; 32]; + +#[test] +fn location_conversion_works() { + let alice_32 = AccountId32 { network: None, id: AccountId::from(ALICE).into() }; + let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; + + // the purpose of hardcoded values is to catch an unintended location conversion logic change. + struct TestCase { + description: &'static str, + location: Location, + expected_account_id_str: &'static str, + } + + let test_cases = vec![ + // DescribeTerminus + TestCase { + description: "DescribeTerminus Parent", + location: Location::new(1, Here), + expected_account_id_str: "5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG", + }, + TestCase { + description: "DescribeTerminus Sibling", + location: Location::new(1, [Parachain(1111)]), + expected_account_id_str: "5Eg2fnssmmJnF3z1iZ1NouAuzciDaaDQH7qURAy3w15jULDk", + }, + // DescribePalletTerminal + TestCase { + description: "DescribePalletTerminal Parent", + location: Location::new(1, [PalletInstance(50)]), + expected_account_id_str: "5CnwemvaAXkWFVwibiCvf2EjqwiqBi29S5cLLydZLEaEw6jZ", + }, + TestCase { + description: "DescribePalletTerminal Sibling", + location: Location::new(1, [Parachain(1111), PalletInstance(50)]), + expected_account_id_str: "5GFBgPjpEQPdaxEnFirUoa51u5erVx84twYxJVuBRAT2UP2g", + }, + // DescribeAccountId32Terminal + TestCase { + description: "DescribeAccountId32Terminal Parent", + location: Location::new(1, [alice_32]), + expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4", + }, + TestCase { + description: "DescribeAccountId32Terminal Sibling", + location: Location::new(1, [Parachain(1111), alice_32]), + expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg", + }, + // DescribeAccountKey20Terminal + TestCase { + description: "DescribeAccountKey20Terminal Parent", + location: Location::new(1, [bob_20]), + expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n", + }, + TestCase { + description: "DescribeAccountKey20Terminal Sibling", + location: Location::new(1, [Parachain(1111), bob_20]), + expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp", + }, + // DescribeTreasuryVoiceTerminal + TestCase { + description: "DescribeTreasuryVoiceTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Treasury, part: BodyPart::Voice }]), + expected_account_id_str: "5CUjnE2vgcUCuhxPwFoQ5r7p1DkhujgvMNDHaF2bLqRp4D5F", + }, + TestCase { + description: "DescribeTreasuryVoiceTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Treasury, part: BodyPart::Voice }], + ), + expected_account_id_str: "5G6TDwaVgbWmhqRUKjBhRRnH4ry9L9cjRymUEmiRsLbSE4gB", + }, + // DescribeBodyTerminal + TestCase { + description: "DescribeBodyTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Unit, part: BodyPart::Voice }]), + expected_account_id_str: "5EBRMTBkDisEXsaN283SRbzx9Xf2PXwUxxFCJohSGo4jYe6B", + }, + TestCase { + description: "DescribeBodyTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Unit, part: BodyPart::Voice }], + ), + expected_account_id_str: "5DBoExvojy8tYnHgLL97phNH975CyT45PWTZEeGoBZfAyRMH", + }, + ]; + + for tc in test_cases { + let expected = + AccountId::from_string(tc.expected_account_id_str).expect("Invalid AccountId string"); + + let got = LocationToAccountHelper::::convert_location( + tc.location.into(), + ) + .unwrap(); + + assert_eq!(got, expected, "{}", tc.description); + } +} diff --git a/system-parachains/collectives-paseo/tests/xcm_payment_api.rs b/system-parachains/collectives-paseo/tests/xcm_payment_api.rs new file mode 100644 index 000000000..cd52a183b --- /dev/null +++ b/system-parachains/collectives-paseo/tests/xcm_payment_api.rs @@ -0,0 +1,26 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use collectives_polkadot_runtime::{Block, Runtime, RuntimeCall, RuntimeOrigin}; + +#[test] +fn xcm_payment_api_works() { + parachains_runtimes_test_utils::test_cases::xcm_payment_api_with_native_token_works::< + Runtime, + RuntimeCall, + RuntimeOrigin, + Block, + >(); +} From 6af3ee1f9239ec33390ea3a4025f5659ac3edcee Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 11 Feb 2025 13:56:56 +0100 Subject: [PATCH 02/14] [WIP] cargo build -p paseo-runtime OK --- Cargo.lock | 5160 +++++------------- Cargo.toml | 18 +- relay/paseo/src/genesis_config_presets.rs | 12 +- relay/paseo/src/lib.rs | 192 +- relay/paseo/src/weights/mod.rs | 2 + relay/paseo/src/weights/pallet_parameters.rs | 51 + 6 files changed, 1634 insertions(+), 3801 deletions(-) create mode 100644 relay/paseo/src/weights/pallet_parameters.rs diff --git a/Cargo.lock b/Cargo.lock index f952299c9..ca6ee89d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" @@ -557,13 +557,13 @@ name = "asset-hub-paseo-emulated-chain" version = "1.0.0" dependencies = [ "asset-hub-paseo-runtime", - "cumulus-primitives-core 0.14.0", + "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "paseo-emulated-chain", "penpal-emulated-chain", - "polkadot-parachain-primitives 14.0.0", + "polkadot-parachain-primitives", "sp-core", "staging-xcm 14.2.0", ] @@ -572,119 +572,88 @@ dependencies = [ name = "asset-hub-paseo-runtime" version = "1.0.0" dependencies = [ - "asset-test-utils 20.0.0", + "asset-test-utils", "assets-common", "bp-asset-hub-paseo", "bp-bridge-hub-kusama", "bp-bridge-hub-paseo", "bp-bridge-hub-polkadot", "collectives-polkadot-runtime-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", - "cumulus-pallet-aura-ext 0.15.0", - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-session-benchmarking 17.0.0", - "cumulus-pallet-xcm 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-aura", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-utility 0.15.0", - "frame-benchmarking 38.0.0", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-benchmarking", "frame-executive", "frame-metadata-hash-extension", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-asset-conversion 20.0.0", + "pallet-asset-conversion", "pallet-asset-conversion-tx-payment", - "pallet-assets 40.0.0", - "pallet-aura 37.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-message-queue 41.0.2", + "pallet-assets", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", "pallet-multisig", "pallet-nfts", "pallet-nfts-runtime-api", "pallet-proxy", - "pallet-session 38.0.0", + "pallet-session", "pallet-sudo", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", - "pallet-utility 38.0.0", - "pallet-vesting 38.0.0", - "pallet-xcm 17.0.1", + "pallet-utility", + "pallet-vesting", + "pallet-xcm", "pallet-xcm-benchmarks", - "pallet-xcm-bridge-hub-router 0.15.3", - "parachains-common 18.0.0", - "parachains-runtimes-test-utils 19.0.0", + "pallet-xcm-bridge-hub-router", + "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-common", "primitive-types", "scale-info", "serde_json", "snowbridge-router-primitives", - "sp-api 34.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-aura 0.40.0", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", "sp-core", "sp-debug-derive", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version 37.0.0", + "sp-version", "sp-weights 31.0.0", - "staging-parachain-info 0.17.0", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", "system-parachains-constants 1.0.0", - "xcm-runtime-apis 0.4.2", -] - -[[package]] -name = "asset-test-utils" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccc232efa79f7f180856e9bc8535dbb2d813b62418cda7bf154a713adb9ea36" -dependencies = [ - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", - "cumulus-primitives-core 0.14.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "pallet-assets 37.0.0", - "pallet-balances 37.0.0", - "pallet-collator-selection 17.0.0", - "pallet-session 36.0.0", - "pallet-timestamp 35.0.0", - "pallet-xcm 15.0.0", - "pallet-xcm-bridge-hub-router 0.13.0", - "parachains-common 15.0.0", - "parachains-runtimes-test-utils 15.0.0", - "parity-scale-codec", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "staging-parachain-info 0.15.0", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "staging-xcm-executor 15.0.0", - "substrate-wasm-builder 23.0.0", + "xcm-runtime-apis", ] [[package]] @@ -693,30 +662,30 @@ version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b0a99a8fa37a58ad868fca25530dde06b6582cb46b64bfae808f5b9b87e42ce" dependencies = [ - "cumulus-pallet-parachain-system 0.17.1", - "cumulus-pallet-xcmp-queue 0.17.0", - "cumulus-primitives-core 0.16.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-asset-conversion 20.0.0", - "pallet-assets 40.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-session 38.0.0", - "pallet-timestamp 37.0.0", - "pallet-xcm 17.0.1", - "pallet-xcm-bridge-hub-router 0.15.3", - "parachains-common 18.0.0", - "parachains-runtimes-test-utils 19.0.0", - "parity-scale-codec", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "staging-parachain-info 0.17.0", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "frame-support", + "frame-system", + "pallet-asset-conversion", + "pallet-assets", + "pallet-balances", + "pallet-collator-selection", + "pallet-session", + "pallet-timestamp", + "pallet-xcm", + "pallet-xcm-bridge-hub-router", + "parachains-common", + "parachains-runtimes-test-utils", + "parity-scale-codec", + "sp-io", + "sp-runtime", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", - "xcm-runtime-apis 0.4.2", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", + "xcm-runtime-apis", ] [[package]] @@ -725,22 +694,22 @@ version = "0.18.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c540587f89a03003946b14decef4fcadb083edc4e62f968de245b82e5402e923" dependencies = [ - "cumulus-primitives-core 0.16.0", - "frame-support 38.2.0", + "cumulus-primitives-core", + "frame-support", "impl-trait-for-tuples", "log", - "pallet-asset-conversion 20.0.0", - "pallet-assets 40.0.0", - "pallet-xcm 17.0.1", - "parachains-common 18.0.0", + "pallet-asset-conversion", + "pallet-assets", + "pallet-xcm", + "parachains-common", "parity-scale-codec", "scale-info", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", ] [[package]] @@ -1059,8 +1028,8 @@ name = "bp-asset-hub-kusama" version = "1.0.0" source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "bp-xcm-bridge-hub-router 0.14.1", - "frame-support 38.2.0", + "bp-xcm-bridge-hub-router", + "frame-support", "parity-scale-codec", "scale-info", "sp-core", @@ -1072,8 +1041,8 @@ dependencies = [ name = "bp-asset-hub-paseo" version = "1.0.0" dependencies = [ - "bp-xcm-bridge-hub-router 0.14.1", - "frame-support 38.2.0", + "bp-xcm-bridge-hub-router", + "frame-support", "parity-scale-codec", "scale-info", "sp-std", @@ -1087,13 +1056,13 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3832b3362711b0c186f046d248407aec14b89812d39d996b914634a72b2bc2ce" dependencies = [ - "bp-messages 0.18.0", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "bp-messages", + "bp-polkadot-core", + "bp-runtime", + "frame-support", + "frame-system", "polkadot-primitives 16.0.0", - "sp-api 34.0.0", + "sp-api", "sp-std", ] @@ -1103,13 +1072,13 @@ version = "1.0.0" source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ "bp-bridge-hub-cumulus", - "bp-messages 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", + "bp-messages", + "bp-runtime", + "frame-support", "kusama-runtime-constants", "polkadot-runtime-constants", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", "sp-std", "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", ] @@ -1119,15 +1088,15 @@ name = "bp-bridge-hub-paseo" version = "1.0.0" dependencies = [ "bp-bridge-hub-cumulus", - "bp-messages 0.18.0", + "bp-messages", "bp-polkadot-bulletin", - "bp-runtime 0.18.0", - "frame-support 38.2.0", + "bp-runtime", + "frame-support", "kusama-runtime-constants", "paseo-runtime-constants", "snowbridge-core", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", "system-parachains-constants 1.0.0", @@ -1139,53 +1108,35 @@ version = "1.0.0" source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ "bp-bridge-hub-cumulus", - "bp-messages 0.18.0", + "bp-messages", "bp-polkadot-bulletin", - "bp-runtime 0.18.0", - "frame-support 38.2.0", + "bp-runtime", + "frame-support", "kusama-runtime-constants", "polkadot-runtime-constants", "snowbridge-core", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", "system-parachains-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", ] -[[package]] -name = "bp-header-chain" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57cac4b71008e46d43e346476ed1be85cf7b505efacee17dad84d687344bf1b1" -dependencies = [ - "bp-runtime 0.15.0", - "finality-grandpa", - "frame-support 36.0.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-consensus-grandpa 20.0.0", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "bp-header-chain" version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "890df97cea17ee61ff982466bb9e90cb6b1462adb45380999019388d05e4b92d" dependencies = [ - "bp-runtime 0.18.0", + "bp-runtime", "finality-grandpa", - "frame-support 38.2.0", + "frame-support", "parity-scale-codec", "scale-info", "serde", - "sp-consensus-grandpa 21.0.0", + "sp-consensus-grandpa", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", ] @@ -1195,27 +1146,11 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad2076b1e50cfcdf07d04e5d395b0b57983bb73eb2791fbafe5348852a89381f" dependencies = [ - "bp-header-chain 0.18.1", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", - "sp-api 34.0.0", - "sp-std", -] - -[[package]] -name = "bp-messages" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f97eec00a98efeb052ac9fc9676d9fccf5acd19e3b18530f3d72af1a1faf21ec" -dependencies = [ - "bp-header-chain 0.15.0", - "bp-runtime 0.15.0", - "frame-support 36.0.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", + "bp-header-chain", + "bp-polkadot-core", + "bp-runtime", + "frame-support", + "sp-api", "sp-std", ] @@ -1225,32 +1160,14 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7efabf94339950b914ba87249497f1a0e35a73849934d164fecae4b275928cf6" dependencies = [ - "bp-header-chain 0.18.1", - "bp-runtime 0.18.0", - "frame-support 38.2.0", + "bp-header-chain", + "bp-runtime", + "frame-support", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io 38.0.0", - "sp-std", -] - -[[package]] -name = "bp-parachains" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60c0bde723a5daf39f4f02816483c9ac049818990b06858dff751736636a4ea2" -dependencies = [ - "bp-header-chain 0.15.0", - "bp-polkadot-core 0.15.0", - "bp-runtime 0.15.0", - "frame-support 36.0.0", - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime 38.0.0", + "sp-io", "sp-std", ] @@ -1260,15 +1177,15 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9011e5c12c15caf3c4129a98f4f4916ea9165db8daf6ed85867c3106075f40df" dependencies = [ - "bp-header-chain 0.18.1", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", + "bp-header-chain", + "bp-polkadot-core", + "bp-runtime", + "frame-support", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", ] @@ -1278,11 +1195,11 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa6277dd4333917ecfbcc35e9332a9f11682e0a506e76b617c336224660fce33" dependencies = [ - "bp-header-chain 0.18.1", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", - "sp-api 34.0.0", + "bp-header-chain", + "bp-polkadot-core", + "bp-runtime", + "frame-support", + "sp-api", "sp-std", ] @@ -1292,35 +1209,16 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16ed3a8bcfb14fe0ff32102d0699df1afd1fd4bb94d4ed4bb84a09f76f9ca8f6" dependencies = [ - "bp-header-chain 0.18.1", - "bp-messages 0.18.0", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-api 34.0.0", - "sp-runtime 39.0.5", - "sp-std", -] - -[[package]] -name = "bp-polkadot-core" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ef2272823ecfee580c00f6542dfcab3ec7abdb00857af853429736847c3a2d9" -dependencies = [ - "bp-messages 0.15.0", - "bp-runtime 0.15.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "bp-header-chain", + "bp-messages", + "bp-polkadot-core", + "bp-runtime", + "frame-support", + "frame-system", "parity-scale-codec", - "parity-util-mem", "scale-info", - "serde", - "sp-core", - "sp-runtime 38.0.0", + "sp-api", + "sp-runtime", "sp-std", ] @@ -1330,31 +1228,16 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "345cf472bac11ef79d403e4846a666b7d22a13cd16d9c85b62cd6b5e16c4a042" dependencies = [ - "bp-messages 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "bp-messages", + "bp-runtime", + "frame-support", + "frame-system", "parity-scale-codec", "parity-util-mem", "scale-info", "serde", "sp-core", - "sp-runtime 39.0.5", - "sp-std", -] - -[[package]] -name = "bp-relayers" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a589f5bb70baa4377a798823be752042aa6c220d51afc559716667e29b0203d" -dependencies = [ - "bp-messages 0.15.0", - "bp-runtime 0.15.0", - "frame-support 36.0.0", - "parity-scale-codec", - "scale-info", - "sp-runtime 38.0.0", + "sp-runtime", "sp-std", ] @@ -1364,41 +1247,17 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9465ad727e466d67d64244a1aa7bb19933a297913fdde34b8e9bda0a341bdeb" dependencies = [ - "bp-header-chain 0.18.1", - "bp-messages 0.18.0", - "bp-parachains 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-utility 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-runtime 39.0.5", - "sp-std", -] - -[[package]] -name = "bp-runtime" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904644c23b437dde65741f3148067624ed0b4d8360f68adf9e92273aeb970814" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "hash-db", - "impl-trait-for-tuples", - "log", - "num-traits", + "bp-header-chain", + "bp-messages", + "bp-parachains", + "bp-runtime", + "frame-support", + "frame-system", + "pallet-utility", "parity-scale-codec", "scale-info", - "serde", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", + "sp-runtime", "sp-std", - "sp-trie 36.0.0", - "trie-db", ] [[package]] @@ -1407,8 +1266,8 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "746d9464f912b278f8a5e2400f10541f95da7fc6c7d688a2788b9a46296146ee" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "hash-db", "impl-trait-for-tuples", "log", @@ -1417,63 +1276,33 @@ dependencies = [ "scale-info", "serde", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-io", + "sp-runtime", + "sp-state-machine", "sp-std", - "sp-trie 37.0.0", + "sp-trie", "trie-db", ] -[[package]] -name = "bp-test-utils" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85062410c8f85ba074f04d843c59f39c7fcb64b83f2ece5bd4379f8c34a4bf15" -dependencies = [ - "bp-header-chain 0.15.0", - "bp-parachains 0.15.0", - "bp-polkadot-core 0.15.0", - "bp-runtime 0.15.0", - "ed25519-dalek", - "finality-grandpa", - "parity-scale-codec", - "sp-application-crypto 37.0.0", - "sp-consensus-grandpa 20.0.0", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", - "sp-trie 36.0.0", -] - [[package]] name = "bp-test-utils" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92e659078b54c0b6bd79896738212a305842ad37168976363233516754337826" dependencies = [ - "bp-header-chain 0.18.1", - "bp-parachains 0.18.0", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", + "bp-header-chain", + "bp-parachains", + "bp-polkadot-core", + "bp-runtime", "ed25519-dalek", "finality-grandpa", "parity-scale-codec", - "sp-application-crypto 38.0.0", - "sp-consensus-grandpa 21.0.0", + "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-runtime 39.0.5", - "sp-std", - "sp-trie 37.0.0", -] - -[[package]] -name = "bp-xcm-bridge-hub" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "192804908f1d3b7bfad12abce448fb3b7ec8dda765cac4a8d811fa75557e528f" -dependencies = [ + "sp-runtime", "sp-std", + "sp-trie", ] [[package]] @@ -1482,30 +1311,18 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0873c54562b3d492541cbc8a7974c6854a5157d07880a2a71f8ba888a69e17e9" dependencies = [ - "bp-messages 0.18.0", - "bp-runtime 0.18.0", - "frame-support 38.2.0", + "bp-messages", + "bp-runtime", + "frame-support", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io 38.0.0", + "sp-io", "sp-std", "staging-xcm 14.2.0", ] -[[package]] -name = "bp-xcm-bridge-hub-router" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7dae4d1ec894ee920195dd39070b279ef3c1d4d078c3fcf7336c93a1d502a9d" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime 38.0.0", -] - [[package]] name = "bp-xcm-bridge-hub-router" version = "0.14.1" @@ -1515,7 +1332,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "staging-xcm 14.2.0", ] @@ -1525,14 +1342,14 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c31b53c53d627e2da38f8910807944bf3121e154b5c0ac9e122995af9dfb13ed" dependencies = [ - "cumulus-primitives-core 0.16.0", - "frame-support 38.2.0", - "pallet-message-queue 41.0.2", + "cumulus-primitives-core", + "frame-support", + "pallet-message-queue", "parity-scale-codec", "scale-info", "snowbridge-core", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", ] @@ -1544,8 +1361,8 @@ dependencies = [ "bridge-hub-common", "bridge-hub-paseo-runtime", "emulated-integration-tests-common", - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "sp-core", ] @@ -1555,20 +1372,20 @@ version = "1.0.0" dependencies = [ "asset-hub-paseo-runtime", "bp-bridge-hub-paseo", - "bp-messages 0.18.0", + "bp-messages", "bridge-hub-paseo-runtime", - "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-pallet-xcmp-queue", "emulated-integration-tests-common", - "frame-support 38.2.0", + "frame-support", "hex-literal", "integration-tests-helpers", - "pallet-asset-conversion 20.0.0", - "pallet-assets 40.0.0", - "pallet-balances 39.0.0", - "pallet-bridge-messages 0.18.0", - "pallet-message-queue 41.0.2", - "pallet-xcm 17.0.1", - "parachains-common 18.0.0", + "pallet-asset-conversion", + "pallet-assets", + "pallet-balances", + "pallet-bridge-messages", + "pallet-message-queue", + "pallet-xcm", + "parachains-common", "parity-scale-codec", "paseo-system-emulated-network", "scale-info", @@ -1579,11 +1396,11 @@ dependencies = [ "snowbridge-pallet-system", "snowbridge-router-primitives", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", "system-parachains-constants 1.0.0", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] @@ -1595,62 +1412,62 @@ dependencies = [ "bp-bridge-hub-kusama", "bp-bridge-hub-paseo", "bp-bridge-hub-polkadot", - "bp-header-chain 0.18.1", + "bp-header-chain", "bp-kusama", - "bp-messages 0.18.0", - "bp-parachains 0.18.0", + "bp-messages", + "bp-parachains", "bp-polkadot", - "bp-polkadot-core 0.18.0", - "bp-relayers 0.18.0", - "bp-runtime 0.18.0", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", "bridge-hub-common", "bridge-hub-test-utils", - "bridge-runtime-common 0.18.2", - "cumulus-pallet-aura-ext 0.15.0", - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-session-benchmarking 17.0.0", - "cumulus-pallet-xcm 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", + "bridge-runtime-common", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-aura", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-utility 0.15.0", - "frame-benchmarking 38.0.0", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-benchmarking", "frame-executive", "frame-metadata-hash-extension", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "kusama-runtime-constants", "log", - "pallet-aura 37.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-bridge-grandpa 0.18.0", - "pallet-bridge-messages 0.18.0", - "pallet-bridge-parachains 0.18.0", - "pallet-bridge-relayers 0.18.2", - "pallet-collator-selection 19.0.0", - "pallet-message-queue 41.0.2", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-collator-selection", + "pallet-message-queue", "pallet-multisig", - "pallet-session 38.0.0", + "pallet-session", "pallet-sudo", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility 38.0.0", - "pallet-xcm 17.0.1", + "pallet-utility", + "pallet-xcm", "pallet-xcm-benchmarks", "pallet-xcm-bridge-hub", - "parachains-common 18.0.0", - "parachains-runtimes-test-utils 19.0.0", + "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-common", "scale-info", "serde", "serde_json", @@ -1665,31 +1482,31 @@ dependencies = [ "snowbridge-runtime-common", "snowbridge-runtime-test-common", "snowbridge-system-runtime-api", - "sp-api 34.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-aura 0.40.0", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", "sp-core", "sp-debug-derive", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version 37.0.0", - "staging-parachain-info 0.17.0", + "sp-version", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", - "substrate-wasm-builder 24.0.1", + "substrate-wasm-builder", "system-parachains-constants 1.0.0", "tuplex", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] @@ -1698,79 +1515,42 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "329b98c9cfa8a36beb65eebe197460e06dc3b041baf84d16c2c9862b99d1e7d2" dependencies = [ - "asset-test-utils 20.0.0", - "bp-header-chain 0.18.1", - "bp-messages 0.18.0", - "bp-parachains 0.18.0", - "bp-polkadot-core 0.18.0", - "bp-relayers 0.18.0", - "bp-runtime 0.18.0", - "bp-test-utils 0.18.0", - "bp-xcm-bridge-hub 0.4.2", - "bridge-runtime-common 0.18.2", - "cumulus-pallet-parachain-system 0.17.1", - "cumulus-pallet-xcmp-queue 0.17.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "asset-test-utils", + "bp-header-chain", + "bp-messages", + "bp-parachains", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", + "bp-test-utils", + "bp-xcm-bridge-hub", + "bridge-runtime-common", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", - "pallet-balances 39.0.0", - "pallet-bridge-grandpa 0.18.0", - "pallet-bridge-messages 0.18.0", - "pallet-bridge-parachains 0.18.0", - "pallet-bridge-relayers 0.18.2", - "pallet-timestamp 37.0.0", - "pallet-utility 38.0.0", - "pallet-xcm 17.0.1", + "pallet-balances", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-timestamp", + "pallet-utility", + "pallet-xcm", "pallet-xcm-bridge-hub", - "parachains-common 18.0.0", - "parachains-runtimes-test-utils 19.0.0", + "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", "sp-core", - "sp-io 38.0.0", + "sp-io", "sp-keyring", - "sp-runtime 39.0.5", + "sp-runtime", "sp-tracing", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", -] - -[[package]] -name = "bridge-runtime-common" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639591635551f94b6e310852430b669495bd99cfd2af20b00a00f6cc7169e70d" -dependencies = [ - "bp-header-chain 0.15.0", - "bp-messages 0.15.0", - "bp-parachains 0.15.0", - "bp-polkadot-core 0.15.0", - "bp-relayers 0.15.0", - "bp-runtime 0.15.0", - "bp-xcm-bridge-hub 0.3.0", - "bp-xcm-bridge-hub-router 0.13.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "hash-db", - "log", - "pallet-bridge-grandpa 0.15.0", - "pallet-bridge-messages 0.15.0", - "pallet-bridge-parachains 0.15.0", - "pallet-bridge-relayers 0.15.0", - "pallet-transaction-payment 36.0.0", - "pallet-utility 36.0.0", - "parity-scale-codec", - "scale-info", - "sp-api 33.0.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-trie 36.0.0", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "tuplex", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -1779,28 +1559,28 @@ version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86cf718057e18ce3e5f2c8e3fc318c38ad71d47ada91dc4b841c0f69c214ef04" dependencies = [ - "bp-header-chain 0.18.1", - "bp-messages 0.18.0", - "bp-parachains 0.18.0", - "bp-polkadot-core 0.18.0", - "bp-relayers 0.18.0", - "bp-runtime 0.18.0", - "bp-xcm-bridge-hub 0.4.2", - "frame-support 38.2.0", - "frame-system 38.0.0", - "log", - "pallet-bridge-grandpa 0.18.0", - "pallet-bridge-messages 0.18.0", - "pallet-bridge-parachains 0.18.0", - "pallet-bridge-relayers 0.18.2", - "pallet-transaction-payment 38.0.2", - "pallet-utility 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "bp-header-chain", + "bp-messages", + "bp-parachains", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", + "bp-xcm-bridge-hub", + "frame-support", + "frame-system", + "log", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-transaction-payment", + "pallet-utility", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", "sp-std", - "sp-trie 37.0.0", + "sp-trie", "staging-xcm 14.2.0", "static_assertions", "tuplex", @@ -1981,25 +1761,25 @@ dependencies = [ "bridge-hub-paseo-runtime", "clap", "coretime-paseo-runtime", - "cumulus-primitives-core 0.14.0", + "cumulus-primitives-core", "hex-literal", - "pallet-staking 38.0.0", - "parachains-common 18.0.0", + "pallet-staking", + "parachains-common", "paseo-runtime", "paseo-runtime-constants", "people-paseo-runtime", "polkadot-primitives 16.0.0", - "polkadot-runtime-parachains 17.0.2", - "sc-chain-spec 38.0.0", - "sc-consensus-grandpa 0.30.0", - "sc-network 0.45.6", + "polkadot-runtime-parachains", + "sc-chain-spec", + "sc-consensus-grandpa", + "sc-network", "serde", "serde_json", - "sp-authority-discovery 34.0.0", - "sp-consensus-babe 0.40.0", - "sp-consensus-beefy 22.1.0", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-consensus-beefy", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "staging-xcm 8.0.1", "system-parachains-constants 1.0.0", ] @@ -2119,10 +1899,10 @@ name = "collectives-paseo-emulated-chain" version = "0.0.0" dependencies = [ "collectives-paseo-runtime", - "cumulus-primitives-core 0.14.0", + "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "sp-core", ] @@ -2131,33 +1911,33 @@ name = "collectives-paseo-runtime" version = "1.0.0" dependencies = [ "collectives-polkadot-runtime-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", - "cumulus-pallet-aura-ext 0.15.0", - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-session-benchmarking 17.0.0", - "cumulus-pallet-xcm 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-aura", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-utility 0.15.0", - "frame-benchmarking 38.0.0", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-benchmarking", "frame-executive", "frame-metadata-hash-extension", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-alliance", - "pallet-asset-rate 17.0.0", - "pallet-aura 37.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", + "pallet-asset-rate", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", "pallet-collective", "pallet-core-fellowship", - "pallet-message-queue 41.0.2", + "pallet-message-queue", "pallet-multisig", "pallet-preimage", "pallet-proxy", @@ -2165,45 +1945,45 @@ dependencies = [ "pallet-referenda", "pallet-salary", "pallet-scheduler", - "pallet-session 38.0.0", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-session", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury 37.0.0", - "pallet-utility 38.0.0", - "pallet-xcm 17.0.1", + "pallet-treasury", + "pallet-utility", + "pallet-xcm", "pallet-xcm-benchmarks", - "parachains-common 18.0.0", - "parachains-runtimes-test-utils 19.0.0", + "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-common", "scale-info", "serde_json", - "sp-api 34.0.0", + "sp-api", "sp-arithmetic 26.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-aura 0.40.0", + "sp-block-builder", + "sp-consensus-aura", "sp-core", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version 37.0.0", - "staging-parachain-info 0.17.0", + "sp-version", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", "system-parachains-constants 1.0.0", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] @@ -2346,10 +2126,10 @@ name = "coretime-paseo-emulated-chain" version = "1.0.0" dependencies = [ "coretime-paseo-runtime", - "cumulus-primitives-core 0.14.0", + "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "sp-core", ] @@ -2357,98 +2137,98 @@ dependencies = [ name = "coretime-paseo-integration-tests" version = "1.0.0" dependencies = [ - "asset-test-utils 20.0.0", + "asset-test-utils", "coretime-paseo-runtime", - "cumulus-pallet-parachain-system 0.15.0", + "cumulus-pallet-parachain-system", "emulated-integration-tests-common", - "frame-support 38.2.0", + "frame-support", "integration-tests-helpers", - "pallet-balances 39.0.0", - "pallet-broker 0.17.2", - "pallet-message-queue 41.0.2", - "pallet-xcm 17.0.1", - "parachains-common 18.0.0", + "pallet-balances", + "pallet-broker", + "pallet-message-queue", + "pallet-xcm", + "parachains-common", "parity-scale-codec", "paseo-runtime", "paseo-runtime-constants", "paseo-system-emulated-network", - "polkadot-runtime-common 17.0.0", - "polkadot-runtime-parachains 17.0.2", - "sp-runtime 39.0.5", + "polkadot-runtime-common", + "polkadot-runtime-parachains", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", - "xcm-runtime-apis 0.4.2", + "staging-xcm-executor", + "xcm-runtime-apis", ] [[package]] name = "coretime-paseo-runtime" version = "1.0.0" dependencies = [ - "cumulus-pallet-aura-ext 0.15.0", - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-session-benchmarking 17.0.0", - "cumulus-pallet-xcm 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-aura", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-utility 0.15.0", - "frame-benchmarking 38.0.0", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-benchmarking", "frame-executive", "frame-metadata-hash-extension", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-aura 37.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-broker 0.17.2", - "pallet-collator-selection 19.0.0", - "pallet-message-queue 41.0.2", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-broker", + "pallet-collator-selection", + "pallet-message-queue", "pallet-multisig", "pallet-proxy", - "pallet-session 38.0.0", + "pallet-session", "pallet-sudo", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility 38.0.0", - "pallet-xcm 17.0.1", + "pallet-utility", + "pallet-xcm", "pallet-xcm-benchmarks", - "parachains-common 18.0.0", - "parachains-runtimes-test-utils 19.0.0", + "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-common", "scale-info", "serde", "serde_json", - "sp-api 34.0.0", + "sp-api", "sp-arithmetic 26.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-aura 0.40.0", + "sp-block-builder", + "sp-consensus-aura", "sp-core", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version 37.0.0", - "staging-parachain-info 0.17.0", + "sp-version", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", "system-parachains-constants 1.0.0", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] @@ -2674,78 +2454,22 @@ dependencies = [ "cipher 0.4.4", ] -[[package]] -name = "cumulus-pallet-aura-ext" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5e8af48090936c45483d489ee681acb54277763586b53fa3dbd17173aa474fc" -dependencies = [ - "cumulus-pallet-parachain-system 0.15.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "pallet-aura 35.0.0", - "pallet-timestamp 35.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 37.0.0", - "sp-consensus-aura 0.39.0", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "cumulus-pallet-aura-ext" version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2cbe2735fc7cf2b6521eab00cb1a1ab025abc1575cc36887b36dc8c5cb1c9434" dependencies = [ - "cumulus-pallet-parachain-system 0.17.1", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-aura 37.0.0", - "pallet-timestamp 37.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 38.0.0", - "sp-consensus-aura 0.40.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "cumulus-pallet-parachain-system" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300d5509bd8ac95bafe158fa475278315175a4eb0422c2cd82e08e8b9dde035c" -dependencies = [ - "bytes", - "cumulus-pallet-parachain-system-proc-macro", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-parachain-inherent 0.14.0", - "cumulus-primitives-proof-size-hostfunction 0.9.0", - "environmental", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "log", - "pallet-message-queue 39.0.1", + "cumulus-pallet-parachain-system", + "frame-support", + "frame-system", + "pallet-aura", + "pallet-timestamp", "parity-scale-codec", - "polkadot-parachain-primitives 13.0.0", - "polkadot-runtime-common 15.0.0", - "polkadot-runtime-parachains 15.0.2", "scale-info", - "sp-core", - "sp-externalities", - "sp-inherents 33.0.0", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "sp-std", - "sp-trie 36.0.0", - "sp-version 36.0.0", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "trie-db", + "sp-application-crypto", + "sp-consensus-aura", + "sp-runtime", ] [[package]] @@ -2756,32 +2480,32 @@ checksum = "546403ee1185f4051a74cc9c9d76e82c63cac3fb68e1bf29f61efb5604c96488" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", - "cumulus-primitives-core 0.16.0", - "cumulus-primitives-parachain-inherent 0.16.0", - "cumulus-primitives-proof-size-hostfunction 0.10.0", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-primitives-proof-size-hostfunction", "environmental", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", - "pallet-message-queue 41.0.2", + "pallet-message-queue", "parity-scale-codec", - "polkadot-parachain-primitives 14.0.0", - "polkadot-runtime-common 17.0.0", - "polkadot-runtime-parachains 17.0.2", + "polkadot-parachain-primitives", + "polkadot-runtime-common", + "polkadot-runtime-parachains", "scale-info", "sp-core", "sp-externalities", - "sp-inherents 34.0.0", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-state-machine", "sp-std", - "sp-trie 37.0.0", - "sp-version 37.0.0", + "sp-trie", + "sp-version", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", + "staging-xcm-builder", "trie-db", ] @@ -2797,50 +2521,18 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "cumulus-pallet-session-benchmarking" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "506daacefa861aa2909b64f26e76495ce029227fd8355b97e074cc1d5dc54ab2" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "pallet-session 36.0.0", - "parity-scale-codec", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "cumulus-pallet-session-benchmarking" version = "19.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "18168570689417abfb514ac8812fca7e6429764d01942750e395d7d8ce0716ef" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-session 38.0.0", - "parity-scale-codec", - "sp-runtime 39.0.5", -] - -[[package]] -name = "cumulus-pallet-xcm" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d5224285f60e5159bab549f458079d606a7f95ef779def8b89f1a244dc7cf81" -dependencies = [ - "cumulus-primitives-core 0.14.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-session", "parity-scale-codec", - "scale-info", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "staging-xcm 14.2.0", + "sp-runtime", ] [[package]] @@ -2849,41 +2541,14 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e49231f6cd8274438b078305dc8ce44c54c0d3f4a28e902589bcbaa53d954608" dependencies = [ - "cumulus-primitives-core 0.16.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "staging-xcm 14.2.0", -] - -[[package]] -name = "cumulus-pallet-xcmp-queue" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0adf5409618b21e754fef0ac70f257878d22d61c48fdeefcab666835dcb8e0f0" -dependencies = [ - "bounded-collections", - "bp-xcm-bridge-hub-router 0.13.0", - "cumulus-primitives-core 0.14.0", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-message-queue 39.0.1", + "cumulus-primitives-core", + "frame-support", + "frame-system", "parity-scale-codec", - "polkadot-runtime-common 15.0.0", - "polkadot-runtime-parachains 15.0.2", "scale-info", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-io", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "staging-xcm-executor 15.0.0", ] [[package]] @@ -2893,56 +2558,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f788bdac9474795ea13ba791b55798fb664b2e3da8c3a7385b480c9af4e6539" dependencies = [ "bounded-collections", - "bp-xcm-bridge-hub-router 0.14.1", - "cumulus-primitives-core 0.16.0", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "bp-xcm-bridge-hub-router", + "cumulus-primitives-core", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-message-queue 41.0.2", + "pallet-message-queue", "parity-scale-codec", - "polkadot-runtime-common 17.0.0", - "polkadot-runtime-parachains 17.0.2", + "polkadot-runtime-common", + "polkadot-runtime-parachains", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] name = "cumulus-primitives-aura" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e7977947ad43a4cbc532ca33abcde136ae3deffdc7168b2ae253d73ccd371e4" -dependencies = [ - "parity-scale-codec", - "polkadot-core-primitives 14.0.0", - "polkadot-primitives 14.0.0", - "sp-api 33.0.0", - "sp-consensus-aura 0.39.0", - "sp-runtime 38.0.0", - "sp-std", -] - -[[package]] -name = "cumulus-primitives-core" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "751e64b89a839d5cfabebc1c797936e5eee791d0fa2322d91e86f8440a743ddb" +checksum = "11e7825bcf3cc6c962a5b9b9f47e02dc381109e521d0bc00cad785c65da18471" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives 14.0.0", - "polkadot-parachain-primitives 13.0.0", - "polkadot-primitives 14.0.0", - "scale-info", - "sp-api 33.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-trie 36.0.0", - "staging-xcm 14.2.0", + "polkadot-core-primitives", + "polkadot-primitives 15.0.0", + "sp-api", + "sp-consensus-aura", + "sp-runtime", ] [[package]] @@ -2952,34 +2598,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c6b5221a4a3097f2ebef66c84c1e6d7a0b8ec7e63f2bd5ae04c1e6d3fc7514e" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-primitives 16.0.0", "scale-info", - "sp-api 34.0.0", - "sp-runtime 39.0.5", - "sp-trie 37.0.0", + "sp-api", + "sp-runtime", + "sp-trie", "staging-xcm 14.2.0", ] -[[package]] -name = "cumulus-primitives-parachain-inherent" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df521e13b48278b86d02c61d6e44036d6d263deb5aaec4838b1751da8988d3d2" -dependencies = [ - "async-trait", - "cumulus-primitives-core 0.14.0", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "sp-std", - "sp-trie 36.0.0", -] - [[package]] name = "cumulus-primitives-parachain-inherent" version = "0.16.0" @@ -2987,23 +2615,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "842a694901e04a62d88995418dec35c22f7dba2b34d32d2b8de37d6b92f973ff" dependencies = [ "async-trait", - "cumulus-primitives-core 0.16.0", + "cumulus-primitives-core", "parity-scale-codec", "scale-info", "sp-core", - "sp-inherents 34.0.0", - "sp-trie 37.0.0", -] - -[[package]] -name = "cumulus-primitives-proof-size-hostfunction" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f973d2a7262c90e48dcd42062bcb1e0fbf48bbcdac4ea6df3d85212d8d8be5d" -dependencies = [ - "sp-externalities", - "sp-runtime-interface", - "sp-trie 36.0.0", + "sp-inherents", + "sp-trie", ] [[package]] @@ -3014,28 +2631,7 @@ checksum = "421f03af054aac7c89e87a49e47964886e53a8d7395990eab27b6f201d42524f" dependencies = [ "sp-externalities", "sp-runtime-interface", - "sp-trie 37.0.0", -] - -[[package]] -name = "cumulus-primitives-utility" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05742c520065e3870d419683113ed7f6d35de66f0c80af6828e7878d1bb0ea94" -dependencies = [ - "cumulus-primitives-core 0.14.0", - "frame-support 36.0.0", - "log", - "pallet-asset-conversion 18.0.0", - "parity-scale-codec", - "polkadot-runtime-common 15.0.0", - "polkadot-runtime-parachains 15.0.2", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "staging-xcm-executor 15.0.0", + "sp-trie", ] [[package]] @@ -3044,31 +2640,16 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bdcf4d46dd93f1e6d5dd6d379133566a44042ba6476d04bdcbdb4981c622ae4" dependencies = [ - "cumulus-primitives-core 0.16.0", - "frame-support 38.2.0", + "cumulus-primitives-core", + "frame-support", "log", - "pallet-asset-conversion 20.0.0", + "pallet-asset-conversion", "parity-scale-codec", - "polkadot-runtime-common 17.0.0", - "sp-runtime 39.0.5", + "polkadot-runtime-common", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", -] - -[[package]] -name = "cumulus-test-relay-sproof-builder" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1f4ab9d64a581d4a5431f2554f4602a4208c5e28b30be01af386e24d8447599" -dependencies = [ - "cumulus-primitives-core 0.14.0", - "parity-scale-codec", - "polkadot-primitives 14.0.0", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "sp-std", - "sp-trie 36.0.0", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -3077,12 +2658,12 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e570e41c3f05a8143ebff967bbb0c7dcaaa6f0bebd8639b9418b8005b13eda03" dependencies = [ - "cumulus-primitives-core 0.16.0", + "cumulus-primitives-core", "parity-scale-codec", "polkadot-primitives 16.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", - "sp-trie 37.0.0", + "sp-runtime", + "sp-state-machine", + "sp-trie", ] [[package]] @@ -3487,36 +3068,38 @@ dependencies = [ [[package]] name = "emulated-integration-tests-common" -version = "11.0.0" +version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aef7c980b99bb2e4edfc9535d4096c1d0b5c8e3b52aab38a497a79563e6005f7" -dependencies = [ - "asset-test-utils 15.0.0", - "bp-messages 0.15.0", - "bridge-runtime-common 0.15.0", - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", - "cumulus-primitives-core 0.14.0", - "frame-support 36.0.0", - "pallet-assets 37.0.0", - "pallet-balances 37.0.0", - "pallet-bridge-messages 0.15.0", - "pallet-message-queue 39.0.1", - "pallet-xcm 15.0.0", - "parachains-common 15.0.0", +checksum = "8a2fdb16bdf43492ecf4e8ac21efcf140bb9783dded06d33a3f330123301c25b" +dependencies = [ + "asset-test-utils", + "bp-messages", + "bp-xcm-bridge-hub", + "bridge-runtime-common", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "frame-support", + "pallet-assets", + "pallet-balances", + "pallet-bridge-messages", + "pallet-message-queue", + "pallet-xcm", + "pallet-xcm-bridge-hub", + "parachains-common", "parity-scale-codec", "paste", - "polkadot-parachain-primitives 13.0.0", - "polkadot-primitives 14.0.0", - "polkadot-runtime-parachains 15.0.2", - "sc-consensus-grandpa 0.27.0", - "sp-authority-discovery 33.0.0", - "sp-consensus-babe 0.39.0", - "sp-consensus-beefy 20.0.0", - "sp-core", - "sp-runtime 38.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives 16.0.0", + "polkadot-runtime-parachains", + "sc-consensus-grandpa", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-consensus-beefy", + "sp-core", + "sp-runtime", "staging-xcm 14.2.0", - "xcm-emulator 0.13.0", + "xcm-emulator", ] [[package]] @@ -3853,50 +3436,24 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" -version = "36.0.0" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709b26657ebbba53dc7bb616577375ca462b20fef1b00e8d9b20d2435e87f7bc" +checksum = "a01bdd47c2d541b38bd892da647d1e972c9d85b4ecd7094ad64f7600175da54d" dependencies = [ - "frame-support 36.0.0", + "frame-support", "frame-support-procedural", - "frame-system 36.1.0", + "frame-system", "linregress", "log", "parity-scale-codec", "paste", "scale-info", "serde", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", + "sp-api", + "sp-application-crypto", "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-runtime-interface", - "sp-std", - "sp-storage", - "static_assertions", -] - -[[package]] -name = "frame-benchmarking" -version = "38.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a01bdd47c2d541b38bd892da647d1e972c9d85b4ecd7094ad64f7600175da54d" -dependencies = [ - "frame-support 38.2.0", - "frame-support-procedural", - "frame-system 38.0.0", - "linregress", - "log", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", - "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-runtime-interface", "sp-storage", "static_assertions", @@ -3914,24 +3471,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "frame-election-provider-support" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1ec289ebad5e601bb165cf7eb6ec2179ae34280ee310d0710a3111d4f8f8f94" -dependencies = [ - "frame-election-provider-solution-type", - "frame-support 36.0.0", - "frame-system 36.1.0", - "parity-scale-codec", - "scale-info", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-npos-elections 33.0.0", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "frame-election-provider-support" version = "38.0.0" @@ -3939,14 +3478,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c36f5116192c63d39f1b4556fa30ac7db5a6a52575fa241b045f7dfa82ecc2be" dependencies = [ "frame-election-provider-solution-type", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-npos-elections 34.0.0", - "sp-runtime 39.0.5", + "sp-npos-elections", + "sp-runtime", ] [[package]] @@ -3956,15 +3495,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c365bf3879de25bbee28e9584096955a02fbe8d7e7624e10675800317f1cee5b" dependencies = [ "aquamarine", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-try-runtime", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-tracing", ] @@ -3988,12 +3527,12 @@ checksum = "56ac71dbd97039c49fdd69f416a4dd5d8da3652fdcafc3738b45772ad79eb4ec" dependencies = [ "array-bytes", "docify", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -4010,57 +3549,15 @@ dependencies = [ "serde", "sp-core", "sp-crypto-hashing", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-io", + "sp-runtime", + "sp-state-machine", "spinners", "substrate-rpc-client", "tokio", "tokio-retry", ] -[[package]] -name = "frame-support" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512b517645f29d76c79e4c97bf8b0f4dcb6708a2af3be24b1956085dcdcf6ce5" -dependencies = [ - "aquamarine", - "array-bytes", - "bitflags 1.3.2", - "docify", - "environmental", - "frame-metadata", - "frame-support-procedural", - "impl-trait-for-tuples", - "k256", - "log", - "macro_magic", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "serde_json", - "smallvec", - "sp-api 33.0.0", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-crypto-hashing-proc-macro", - "sp-debug-derive", - "sp-genesis-builder 0.14.0", - "sp-inherents 33.0.0", - "sp-io 37.0.0", - "sp-metadata-ir", - "sp-runtime 38.0.0", - "sp-staking 33.0.0", - "sp-state-machine 0.42.0", - "sp-std", - "sp-tracing", - "sp-weights 31.0.0", - "static_assertions", - "tt-call", -] - [[package]] name = "frame-support" version = "38.2.0" @@ -4084,18 +3581,18 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-api 34.0.0", + "sp-api", "sp-arithmetic 26.0.0", "sp-core", "sp-crypto-hashing-proc-macro", "sp-debug-derive", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-metadata-ir", - "sp-runtime 39.0.5", + "sp-runtime", "sp-staking 36.0.0", - "sp-state-machine 0.43.0", + "sp-state-machine", "sp-std", "sp-tracing", "sp-weights 31.0.0", @@ -4148,27 +3645,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "frame-system" -version = "36.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64d6a0e7bb6503facdcc6f8e19c83cd0bfc8bbbd268522b1a50e107dfc6b972d" -dependencies = [ - "cfg-if", - "docify", - "frame-support 36.0.0", - "log", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-version 36.0.0", - "sp-weights 31.0.0", -] - [[package]] name = "frame-system" version = "38.0.0" @@ -4177,16 +3653,16 @@ checksum = "e3c7fa02f8c305496d2ae52edaecdb9d165f11afa965e05686d7d7dd1ce93611" dependencies = [ "cfg-if", "docify", - "frame-support 38.2.0", + "frame-support", "log", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", - "sp-version 37.0.0", + "sp-version", "sp-weights 31.0.0", ] @@ -4196,13 +3672,13 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9693b2a736beb076e673520e1e8dee4fc128b8d35b020ef3e8a4b1b5ad63d9f2" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -4213,7 +3689,7 @@ checksum = "475c4f8604ba7e4f05cd2c881ba71105093e638b9591ec71a8db14a64b3b4ec3" dependencies = [ "docify", "parity-scale-codec", - "sp-api 34.0.0", + "sp-api", ] [[package]] @@ -4222,10 +3698,10 @@ version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83c811a5a1f5429c7fb5ebbf6cf9502d8f9b673fd395c12cf46c44a30a7daf0e" dependencies = [ - "frame-support 38.2.0", + "frame-support", "parity-scale-codec", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", ] [[package]] @@ -5037,14 +4513,14 @@ dependencies = [ name = "integration-tests-helpers" version = "1.0.0" dependencies = [ - "asset-test-utils 20.0.0", - "cumulus-pallet-xcmp-queue 0.15.0", - "pallet-balances 39.0.0", - "pallet-message-queue 41.0.2", - "pallet-xcm 17.0.1", + "asset-test-utils", + "cumulus-pallet-xcmp-queue", + "pallet-balances", + "pallet-message-queue", + "pallet-xcm", "paste", "staging-xcm 14.2.0", - "xcm-emulator 0.16.0", + "xcm-emulator", ] [[package]] @@ -5324,14 +4800,14 @@ name = "kusama-runtime-constants" version = "1.0.0" source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "frame-support 38.2.0", + "frame-support", "polkadot-primitives 16.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-runtime-common", "smallvec", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-weights 31.0.0", - "staging-xcm-builder 17.0.3", + "staging-xcm-builder", ] [[package]] @@ -6757,38 +6233,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59378a648a0aa279a4b10650366c3389cd0a1239b1876f74bfecd268eecb086b" dependencies = [ "array-bytes", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-collective", - "pallet-identity 38.0.0", + "pallet-identity", "parity-scale-codec", "scale-info", "sp-core", "sp-crypto-hashing", - "sp-io 38.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-asset-conversion" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f726ebb59401c1844a4a8703047bdafcd99a1827cd5d8b2c82abeb8948a7f25b" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-api 33.0.0", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-io", + "sp-runtime", ] [[package]] @@ -6797,17 +6253,17 @@ version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33f0078659ae95efe6a1bf138ab5250bc41ab98f22ff3651d0208684f08ae797" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-api 34.0.0", + "sp-api", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -6816,29 +6272,13 @@ version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ab66c4c22ac0f20e620a954ce7ba050118d6d8011e2d02df599309502064e98" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-asset-conversion 20.0.0", - "pallet-transaction-payment 38.0.2", - "parity-scale-codec", - "scale-info", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-asset-rate" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e806842bec955190ec64f8b2179f74f5355137c4cadf04f3269e6196cd19caf9" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "frame-support", + "frame-system", + "pallet-asset-conversion", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", + "sp-runtime", ] [[package]] @@ -6847,32 +6287,13 @@ version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71b2149aa741bc39466bbcc92d9d0ab6e9adcf39d2790443a735ad573b3191e7" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-asset-tx-payment" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "100a180dfbf30a1c872100ec2dae8a61c0f5e8b3f2d3a5cbb34093826293e2ab" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "pallet-transaction-payment 36.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "serde", "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-runtime", ] [[package]] @@ -6881,34 +6302,16 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "406a486466d15acc48c99420191f96f1af018f3381fde829c467aba489030f18" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-transaction-payment 38.0.2", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-assets" -version = "37.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f79ef6a7763fc08177f014052469ee12aefcdad0d99a747372360c2f648d2cc4" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", + "sp-io", + "sp-runtime", ] [[package]] @@ -6917,33 +6320,15 @@ version = "40.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f45f4eb6027fc34c4650e0ed6a7e57ed3335cc364be74b4531f714237676bcee" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-aura" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0861b2a1ad6526948567bb59a3fdc4c7f02ee79b07be8b931a544350ec35ab0c" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-timestamp 35.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 37.0.0", - "sp-consensus-aura 0.39.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-runtime", ] [[package]] @@ -6952,32 +6337,15 @@ version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b31da6e794d655d1f9c4da6557a57399538d75905a7862a2ed3f7e5fb711d7e4" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "log", - "pallet-timestamp 37.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 38.0.0", - "sp-consensus-aura 0.40.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-authority-discovery" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2c3666a476132f5846fe4d5e1961a923a58a0f54d873d84566f24ffaa3684f" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "pallet-session 36.0.0", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 37.0.0", - "sp-authority-discovery 33.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-application-crypto", + "sp-consensus-aura", + "sp-runtime", ] [[package]] @@ -6986,29 +6354,14 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffb0208f0538d58dcb78ce1ff5e6e8641c5f37b23b20b05587e51da30ab13541" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-session 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 38.0.0", - "sp-authority-discovery 34.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-authorship" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38885846dbcf03b025fdbd7edb3649046dbc68fa0b419ffe8837ef853a10d31f" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", + "frame-support", + "frame-system", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-runtime 38.0.0", - "sp-std", + "sp-application-crypto", + "sp-authority-discovery", + "sp-runtime", ] [[package]] @@ -7017,37 +6370,12 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "625d47577cabbe1318ccec5d612e2379002d1b6af1ab6edcef3243c66ec246df" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-babe" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b23d2d814e3cb793659fcf84533f66fdf0ed9cccb66cb2225851f482843ed096" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-authorship 36.0.0", - "pallet-session 36.0.0", - "pallet-timestamp 35.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 37.0.0", - "sp-consensus-babe 0.39.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-session 34.0.0", - "sp-staking 33.0.0", - "sp-std", + "sp-runtime", ] [[package]] @@ -7056,21 +6384,21 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ee096c0def13832475b340d00121025e0225de29604d44bc6dfcaa294c995b4" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-authorship 38.0.0", - "pallet-session 38.0.0", - "pallet-timestamp 37.0.0", + "pallet-authorship", + "pallet-session", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 38.0.0", - "sp-consensus-babe 0.40.0", + "sp-application-crypto", + "sp-consensus-babe", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-io", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", ] @@ -7082,37 +6410,20 @@ checksum = "0fd23a6f94ba9c1e57c8a7f8a41327d132903a79c55c0c83f36cbae19946cf10" dependencies = [ "aquamarine", "docify", - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-balances 39.0.0", + "pallet-balances", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-tracing", ] -[[package]] -name = "pallet-balances" -version = "37.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6878e240962d3887f0e0654ac343a18845adb95ad493c9d4d5e803c015d4a4c3" -dependencies = [ - "docify", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "pallet-balances" version = "39.0.0" @@ -7120,13 +6431,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c6945b078919acb14d126490e4b0973a688568b30142476ca69c6df2bed27ad" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -7135,17 +6446,17 @@ version = "39.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "014d177a3aba19ac144fc6b2b5eb94930b9874734b91fd014902b6706288bb5f" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "log", - "pallet-authorship 38.0.0", - "pallet-session 38.0.0", + "pallet-authorship", + "pallet-session", "parity-scale-codec", "scale-info", "serde", - "sp-consensus-beefy 22.1.0", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-consensus-beefy", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", ] @@ -7157,22 +6468,22 @@ checksum = "9c64f536e7f04cf3a0a17fdf20870ddb3d63a7690419c40f75cfd2f72b6e6d22" dependencies = [ "array-bytes", "binary-merkle-tree", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-beefy", "pallet-mmr", - "pallet-session 38.0.0", + "pallet-session", "parity-scale-codec", "scale-info", "serde", - "sp-api 34.0.0", - "sp-consensus-beefy 22.1.0", + "sp-api", + "sp-consensus-beefy", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-io", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -7181,38 +6492,16 @@ version = "37.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59f3d032f78624b12238a31b6e80ab3e112381a7bc222df152650e33bb2ce190" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-treasury 37.0.0", + "pallet-treasury", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-bridge-grandpa" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61d30a4860bb12559dc28b2d46dd865e2066bce83239230f748e2c569a3cadf4" -dependencies = [ - "bp-header-chain 0.15.0", - "bp-runtime 0.15.0", - "bp-test-utils 0.15.0", - "finality-grandpa", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-consensus-grandpa 20.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-trie 36.0.0", + "sp-io", + "sp-runtime", ] [[package]] @@ -7221,36 +6510,17 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d825fbed9fb68bc5d344311653dc0f69caeabe647365abf79a539310b2245f6" dependencies = [ - "bp-header-chain 0.18.1", - "bp-runtime 0.18.0", - "bp-test-utils 0.18.0", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-consensus-grandpa 21.0.0", - "sp-runtime 39.0.5", - "sp-std", -] - -[[package]] -name = "pallet-bridge-messages" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c0fcb1b9ae50ece73cbe36b72c2778f5d4637e4fb0cfac30cb16f7d4b61d5e" -dependencies = [ - "bp-messages 0.15.0", - "bp-runtime 0.15.0", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "bp-header-chain", + "bp-runtime", + "bp-test-utils", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "num-traits", "parity-scale-codec", "scale-info", - "sp-runtime 38.0.0", + "sp-consensus-grandpa", + "sp-runtime", "sp-std", ] @@ -7260,40 +6530,18 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1decdc9fb885e46eb17f850aa14f8cf39e17f31574aa6a5fa1a9e603cc526a2" dependencies = [ - "bp-header-chain 0.18.1", - "bp-messages 0.18.0", - "bp-runtime 0.18.0", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "bp-header-chain", + "bp-messages", + "bp-runtime", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", - "sp-trie 37.0.0", -] - -[[package]] -name = "pallet-bridge-parachains" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3974fb658cf1b9ca8c2d3c77bf080b2f94c054c2b466b709ef29f6d3726f2231" -dependencies = [ - "bp-header-chain 0.15.0", - "bp-parachains 0.15.0", - "bp-polkadot-core 0.15.0", - "bp-runtime 0.15.0", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-bridge-grandpa 0.15.0", - "parity-scale-codec", - "scale-info", - "sp-runtime 38.0.0", - "sp-std", - "sp-trie 36.0.0", + "sp-trie", ] [[package]] @@ -7302,39 +6550,18 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41450a8d214f20eaff57aeca8e647b20c0df7d66871ee2262609b90824bd4cca" dependencies = [ - "bp-header-chain 0.18.1", - "bp-parachains 0.18.0", - "bp-polkadot-core 0.18.0", - "bp-runtime 0.18.0", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "log", - "pallet-bridge-grandpa 0.18.0", - "parity-scale-codec", - "scale-info", - "sp-runtime 39.0.5", - "sp-std", -] - -[[package]] -name = "pallet-bridge-relayers" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c92383f4c7d1eaced8413e39b948227a527a0136f705660580c57753dc11568" -dependencies = [ - "bp-messages 0.15.0", - "bp-relayers 0.15.0", - "bp-runtime 0.15.0", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "bp-header-chain", + "bp-parachains", + "bp-polkadot-core", + "bp-runtime", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-bridge-messages 0.15.0", + "pallet-bridge-grandpa", "parity-scale-codec", "scale-info", - "sp-arithmetic 26.0.0", - "sp-runtime 38.0.0", + "sp-runtime", "sp-std", ] @@ -7344,42 +6571,22 @@ version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fe3be7077b7ddee7178b1b12e9171435da73778d093788e10b1bdfad1e10962" dependencies = [ - "bp-header-chain 0.18.1", - "bp-messages 0.18.0", - "bp-relayers 0.18.0", - "bp-runtime 0.18.0", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "log", - "pallet-bridge-grandpa 0.18.0", - "pallet-bridge-messages 0.18.0", - "pallet-bridge-parachains 0.18.0", - "pallet-transaction-payment 38.0.2", - "parity-scale-codec", - "scale-info", - "sp-arithmetic 26.0.0", - "sp-runtime 39.0.5", - "sp-std", -] - -[[package]] -name = "pallet-broker" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd0d652c399b6ed776ee3322e60f40e323f86b413719d7696eddb8f64c368ac0" -dependencies = [ - "bitvec", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "bp-header-chain", + "bp-messages", + "bp-relayers", + "bp-runtime", + "frame-benchmarking", + "frame-support", + "frame-system", "log", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-api 33.0.0", "sp-arithmetic 26.0.0", - "sp-core", - "sp-runtime 38.0.0", + "sp-runtime", "sp-std", ] @@ -7390,16 +6597,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "018b477d7d464c451b1d09a4ce9e792c3c65b15fd764b23da38ff9980e786065" dependencies = [ "bitvec", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-api 34.0.0", + "sp-api", "sp-arithmetic 26.0.0", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -7408,75 +6615,54 @@ version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7f3bc38ae6584b5f57e4de3e49e5184bfc0f20692829530ae1465ffe04e09e7" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-bounties", - "pallet-treasury 37.0.0", + "pallet-treasury", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] name = "pallet-collator-selection" -version = "17.0.0" +version = "19.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f660cc09f2f277a3976da2eef856b5c725ab7ad1192902ef7f4e4bafd992f04f" +checksum = "658798d70c9054165169f6a6a96cfa9d6a5e7d24a524bc19825bf17fcbc5cc5a" dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-authorship 36.0.0", - "pallet-balances 37.0.0", - "pallet-session 36.0.0", + "pallet-authorship", + "pallet-balances", + "pallet-session", "parity-scale-codec", "rand", "scale-info", - "sp-runtime 38.0.0", - "sp-staking 33.0.0", - "sp-std", + "sp-runtime", + "sp-staking 36.0.0", ] [[package]] -name = "pallet-collator-selection" -version = "19.0.0" +name = "pallet-collective" +version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658798d70c9054165169f6a6a96cfa9d6a5e7d24a524bc19825bf17fcbc5cc5a" +checksum = "8e149f1aefd444c9a1da6ec5a94bc8a7671d7a33078f85dd19ae5b06e3438e60" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "log", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-session 38.0.0", - "parity-scale-codec", - "rand", - "scale-info", - "sp-runtime 39.0.5", - "sp-staking 36.0.0", -] - -[[package]] -name = "pallet-collective" -version = "38.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e149f1aefd444c9a1da6ec5a94bc8a7671d7a33078f85dd19ae5b06e3438e60" -dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7486,14 +6672,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "999c242491b74395b8c5409ef644e782fe426d87ae36ad92240ffbf21ff0a76e" dependencies = [ "assert_matches", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7502,17 +6688,17 @@ version = "22.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93052dd8d5910e1b939441541cec416e629b2c0ab92680124c2e5a137e12c285" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-ranked-collective", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7521,110 +6707,51 @@ version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "117f003a97f980514c6db25a50c22aaec2a9ccb5664b3cb32f52fb990e0b0c12" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-staking 36.0.0", ] -[[package]] -name = "pallet-election-provider-multi-phase" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd1090fdc6ccdd8ff08c60000c970428baaaf0b33e7a6b01a91ec8b697a650a3" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-election-provider-support 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-election-provider-support-benchmarking 35.0.0", - "parity-scale-codec", - "rand", - "scale-info", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-io 37.0.0", - "sp-npos-elections 33.0.0", - "sp-runtime 38.0.0", - "sp-std", - "strum 0.26.3", -] - [[package]] name = "pallet-election-provider-multi-phase" version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62f9ad5ae0c13ba3727183dadf1825b6b7b0b0598ed5c366f8697e13fd540f7d" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-election-provider-support-benchmarking 37.0.0", + "pallet-election-provider-support-benchmarking", "parity-scale-codec", "rand", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-npos-elections 34.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-npos-elections", + "sp-runtime", "strum 0.26.3", ] -[[package]] -name = "pallet-election-provider-support-benchmarking" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93475989d2f6900caf8f1c847a55d909295c156525a7510c5f1dde176ec7c714" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-election-provider-support 36.0.0", - "frame-system 36.1.0", - "parity-scale-codec", - "sp-npos-elections 33.0.0", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "pallet-election-provider-support-benchmarking" version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4111d0d27545c260c9dd0d6fc504961db59c1ec4b42e1bcdc28ebd478895c22" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-system", "parity-scale-codec", - "sp-npos-elections 34.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-fast-unstake" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9155f4f762513e0287320411415c76a647152799ad33db1785c9b71c36a14575" -dependencies = [ - "docify", - "frame-benchmarking 36.0.0", - "frame-election-provider-support 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-staking 33.0.0", - "sp-std", + "sp-npos-elections", + "sp-runtime", ] [[package]] @@ -7634,15 +6761,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0ee60e8ef10b3936f2700bd61fa45dcc190c61124becc63bed787addcfa0d20" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-staking 36.0.0", ] @@ -7652,41 +6779,23 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d3a570a4aac3173ea46b600408183ca2bcfdaadc077f802f11e6055963e2449" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-authorship 38.0.0", - "pallet-session 38.0.0", + "pallet-authorship", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 38.0.0", - "sp-consensus-grandpa 21.0.0", + "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-io", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", ] -[[package]] -name = "pallet-identity" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4555795a3e0e3aa49ea432b7afecb9c71a7db8793a99c68bd8dd3a52a12571f3" -dependencies = [ - "enumflags2", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "pallet-identity" version = "38.0.0" @@ -7694,14 +6803,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a4288548de9a755e39fcb82ffb9024b6bb1ba0f582464a44423038dd7a892e" dependencies = [ "enumflags2", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7710,17 +6819,17 @@ version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6fd95270cf029d16cb40fe6bd9f8ab9c78cd966666dccbca4d8bfec35c5bba5" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-authorship 38.0.0", + "pallet-authorship", "parity-scale-codec", "scale-info", - "sp-application-crypto 38.0.0", + "sp-application-crypto", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-staking 36.0.0", ] @@ -7730,36 +6839,15 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5e4b97de630427a39d50c01c9e81ab8f029a00e56321823958b39b438f7b940" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", + "sp-io", "sp-keyring", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-message-queue" -version = "39.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bb779dbfd58b3a4e6a84245392fe9d8c31a746ff7c6db414e91c012663859c3" -dependencies = [ - "environmental", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-weights 31.0.0", + "sp-runtime", ] [[package]] @@ -7769,16 +6857,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "983f7d1be18e9a089a3e23670918f5085705b4403acd3fdde31878d57b76a1a8" dependencies = [ "environmental", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-weights 31.0.0", ] @@ -7788,16 +6876,16 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6932dfb85f77a57c2d1fdc28a7b3a59ffe23efd8d5bb02dc3039d91347e4a3b" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-mmr-primitives 34.1.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-mmr-primitives", + "sp-runtime", ] [[package]] @@ -7806,14 +6894,14 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e5099c9a4442efcc1568d88ca1d22d624e81ab96358f99f616c67fbd82532d2" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7823,15 +6911,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59e2aad461a0849d7f0471576eeb1fe3151795bcf2ec9e15eca5cca5b9d743b2" dependencies = [ "enumflags2", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7842,7 +6930,7 @@ checksum = "a7a1f50c217e19dc50ff586a71eb5915df6a05bc0b25564ea20674c8cd182c1f" dependencies = [ "pallet-nfts", "parity-scale-codec", - "sp-api 34.0.0", + "sp-api", ] [[package]] @@ -7851,15 +6939,15 @@ version = "35.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50d04f050ab02af6cbe058e101abb8706be7f8ea7958e5bf1d4cd8caa6b66c71" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "log", - "pallet-balances 39.0.0", + "pallet-balances", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-staking 36.0.0", "sp-tracing", ] @@ -7870,17 +6958,17 @@ version = "36.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38d2eaca0349bcda923343226b8b64d25a80b67e0a1ebaaa5b0ab1e1b3b225bc" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "pallet-bags-list", "pallet-delegated-staking", "pallet-nomination-pools", - "pallet-staking 38.0.0", + "pallet-staking", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", "sp-runtime-interface", "sp-staking 36.0.0", ] @@ -7893,7 +6981,7 @@ checksum = "03eea431eba0658ca763a078bd849e0622c37c85eddd011b8e886460b50c0827" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", - "sp-api 34.0.0", + "sp-api", ] [[package]] @@ -7902,14 +6990,14 @@ version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c4379cf853465696c1c5c03e7e8ce80aeaca0a6139d698abe9ecb3223fd732a" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "log", - "pallet-balances 39.0.0", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-runtime 39.0.5", + "sp-runtime", "sp-staking 36.0.0", ] @@ -7919,21 +7007,21 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69aa1b24cdffc3fa8c89cdea32c83f1bf9c1c82a87fa00e57ae4be8e85f5e24f" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-babe 38.0.0", - "pallet-balances 39.0.0", + "pallet-babe", + "pallet-balances", "pallet-grandpa", "pallet-im-online", "pallet-offences", - "pallet-session 38.0.0", - "pallet-staking 38.0.0", + "pallet-session", + "pallet-staking", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", "sp-staking 36.0.0", ] @@ -7944,15 +7032,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9aba424d55e17b2a2bec766a41586eab878137704d4803c04bebd6a4743db7b" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "paste", "scale-info", "serde", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -7961,15 +7049,15 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "407828bc48c6193ac076fdf909b2fadcaaecd65f42b0b0a04afe22fe8e563834" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7978,13 +7066,13 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d39df395f0dbcf07dafe842916adea3266a87ce36ed87b5132184b6bcd746393" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -7993,17 +7081,17 @@ version = "38.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15a640e732164203eb5298823cc8c29cfc563763c43c9114e76153b3166b8b9d" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -8013,16 +7101,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3008c20531d1730c9b457ae77ecf0e3c9b07aaf8c4f5d798d61ef6f0b9e2d4b" dependencies = [ "assert_matches", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "serde", "sp-arithmetic 26.0.0", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -8031,17 +7119,17 @@ version = "23.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3af2d92b1fef1c379c0692113b505c108c186e09c25c72b38e879b6e0f172ebe" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-ranked-collective", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -8051,60 +7139,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26899a331e7ab5f7d5966cbf203e1cf5bd99cd110356d7ddcaa7597087cdc0b5" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-weights 31.0.0", ] -[[package]] -name = "pallet-session" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c92b24c911c2cfa5351616edc7f2f93427ea6f4f95efdb13f0f5d51997939c3" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "log", - "pallet-timestamp 35.0.0", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-session 34.0.0", - "sp-staking 33.0.0", - "sp-state-machine 0.42.0", - "sp-std", - "sp-trie 36.0.0", -] - [[package]] name = "pallet-session" version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8474b62b6b7622f891e83d922a589e2ad5be5471f5ca47d45831a797dba0b3f4" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", - "pallet-timestamp 37.0.0", + "pallet-timestamp", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-io", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", - "sp-state-machine 0.43.0", - "sp-trie 37.0.0", + "sp-state-machine", + "sp-trie", ] [[package]] @@ -8113,39 +7178,15 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8aadce7df0fee981721983795919642648b846dab5ab9096f82c2cea781007d0" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-session 38.0.0", - "pallet-staking 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-session", + "pallet-staking", "parity-scale-codec", "rand", - "sp-runtime 39.0.5", - "sp-session 36.0.0", -] - -[[package]] -name = "pallet-staking" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbebdb060417654f215fc6f03675e5f44cfc83837d9e523e1b8fd9a4a2e1bdc2" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-election-provider-support 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-authorship 36.0.0", - "pallet-session 36.0.0", - "parity-scale-codec", - "rand_chacha", - "scale-info", - "serde", - "sp-application-crypto 37.0.0", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-staking 33.0.0", - "sp-std", + "sp-runtime", + "sp-session", ] [[package]] @@ -8154,20 +7195,20 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c870d123f4f053b56af808a4beae1ffc4309a696e829796c26837936c926db3b" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-authorship 38.0.0", - "pallet-session 38.0.0", + "pallet-authorship", + "pallet-session", "parity-scale-codec", "rand_chacha", "scale-info", "serde", - "sp-application-crypto 38.0.0", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-application-crypto", + "sp-io", + "sp-runtime", "sp-staking 36.0.0", ] @@ -8200,7 +7241,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7298559ef3a6b2f5dfbe9a3b8f3d22f2ff9b073c97f4c4853d2b316d973e72d" dependencies = [ "parity-scale-codec", - "sp-api 34.0.0", + "sp-api", "sp-staking 36.0.0", ] @@ -8210,15 +7251,15 @@ version = "40.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "138c15b4200b9dc4c3e031def6a865a235cdc76ff91ee96fba19ca1787c9dda6" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -8228,34 +7269,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1574fe2aed3d52db4a389b77b53d8c9758257b121e3e7bbe24c4904e11681e0e" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "parity-scale-codec", - "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-timestamp" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae789d344be857679b0b98b28a67c747119724847f81d704d3fd03ee13fb6841" -dependencies = [ - "docify", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-inherents 33.0.0", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-storage", - "sp-timestamp 33.0.0", + "sp-io", + "sp-runtime", ] [[package]] @@ -8265,34 +7285,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9ba9b71bbfd33ae672f23ba7efaeed2755fdac37b8f946cb7474fc37841b7e1" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-inherents 34.0.0", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-inherents", + "sp-io", + "sp-runtime", "sp-storage", - "sp-timestamp 34.0.0", -] - -[[package]] -name = "pallet-transaction-payment" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74fb6114223c8d967c3c2f21cbc845e8ea604ff7e21a8e59d119d5a9257ba886" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-timestamp", ] [[package]] @@ -8301,14 +7304,14 @@ version = "38.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6cdb86580c72b58145f9cddba21a0c1814742ca56abc9caac3c1ac72f6bde649" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", ] [[package]] @@ -8317,33 +7320,13 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49fdf5ab71e9dbcadcf7139736b6ea6bac8ec4a83985d46cbd130e1eec770e41" dependencies = [ - "pallet-transaction-payment 38.0.2", + "pallet-transaction-payment", "parity-scale-codec", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", "sp-weights 31.0.0", ] -[[package]] -name = "pallet-treasury" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c502615bb4fdd02856a131cb2a612ad40c26435ec938f65f11cae4ff230812b" -dependencies = [ - "docify", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "pallet-balances 37.0.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "pallet-treasury" version = "37.0.0" @@ -8351,16 +7334,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98bfdd3bb9b58fb010bcd419ff5bf940817a8e404cdbf7886a53ac730f5dda2b" dependencies = [ "docify", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", - "pallet-balances 39.0.0", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -8369,30 +7352,13 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2b13cdaedf2d5bd913a5f6e637cb52b5973d8ed4b8d45e56d921bc4d627006f" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-utility" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3238fe6ad00da6a137be115904c39cab97eb5c7f03da0bb1a20de1bef03f0c71" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-runtime", ] [[package]] @@ -8401,30 +7367,14 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2fdcade6efc0b66fc7fc4138964802c02d0ffb7380d894e26b9dd5073727d2b3" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-vesting" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78f7f0f4fe5e1d851e85d81e5e73b6f929f0c35af786ce8be9c9e3363717c136" -dependencies = [ - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-runtime 38.0.0", - "sp-std", + "sp-io", + "sp-runtime", ] [[package]] @@ -8433,13 +7383,13 @@ version = "38.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "807df2ef13ab6bf940879352c3013bfa00b670458b4c125c2f60e5753f68e3d5" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -8448,38 +7398,13 @@ version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ef17df925290865cf37096dd0cb76f787df11805bba01b1d0ca3e106d06280b" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-api 34.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "pallet-xcm" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe7409458b7fedc5c7d46459da154ccc2dc22a843ce08e8ab6c1743ef5cf972c" -dependencies = [ - "bounded-collections", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-balances 37.0.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "staging-xcm-executor 15.0.0", - "xcm-runtime-apis 0.2.0", + "sp-api", + "sp-runtime", ] [[package]] @@ -8489,22 +7414,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "989676964dbda5f5275650fbdcd3894fe7fac626d113abf89d572b4952adcc36" dependencies = [ "bounded-collections", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 39.0.0", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", + "staging-xcm-builder", + "staging-xcm-executor", "tracing", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] @@ -8513,17 +7438,17 @@ version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2da423463933b42f4a4c74175f9e9295a439de26719579b894ce533926665e4a" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -8532,41 +7457,21 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f336403f9e9bf22a0e1fdb90aa5093c52599c9a0639591fbcc1e979b58862d1b" dependencies = [ - "bp-messages 0.18.0", - "bp-runtime 0.18.0", - "bp-xcm-bridge-hub 0.4.2", - "frame-support 38.2.0", - "frame-system 38.0.0", + "bp-messages", + "bp-runtime", + "bp-xcm-bridge-hub", + "frame-support", + "frame-system", "log", - "pallet-bridge-messages 0.18.0", + "pallet-bridge-messages", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", -] - -[[package]] -name = "pallet-xcm-bridge-hub-router" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f48bd38d4061a51f263f4c08021e66100e16cbda9978fba163d2544637b31dab" -dependencies = [ - "bp-xcm-bridge-hub-router 0.13.0", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -8575,50 +7480,18 @@ version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabf1fdcf451ac79995f11cb9b6a0761924c57bb79442c2d91b3bbefe4dfa081" dependencies = [ - "bp-xcm-bridge-hub-router 0.14.1", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "bp-xcm-bridge-hub-router", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", -] - -[[package]] -name = "parachains-common" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9319e656eebdf161666e54a4d8e24f73137f702f01600247f7be650bc4d46167" -dependencies = [ - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-utility 0.15.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "log", - "pallet-asset-tx-payment 36.0.0", - "pallet-assets 37.0.0", - "pallet-authorship 36.0.0", - "pallet-balances 37.0.0", - "pallet-collator-selection 17.0.0", - "pallet-message-queue 39.0.1", - "pallet-xcm 15.0.0", - "parity-scale-codec", - "polkadot-primitives 14.0.0", - "scale-info", - "sp-consensus-aura 0.39.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "staging-parachain-info 0.15.0", - "staging-xcm 14.2.0", - "staging-xcm-executor 15.0.0", - "substrate-wasm-builder 23.0.0", + "staging-xcm-builder", ] [[package]] @@ -8627,61 +7500,29 @@ version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9460a69f409be27c62161d8b4d36ffc32735d09a4f9097f9c789db0cca7196c" dependencies = [ - "cumulus-primitives-core 0.16.0", - "cumulus-primitives-utility 0.17.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-support", + "frame-system", "log", - "pallet-asset-tx-payment 38.0.0", - "pallet-assets 40.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-message-queue 41.0.2", - "pallet-xcm 17.0.1", + "pallet-asset-tx-payment", + "pallet-assets", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-xcm", "parity-scale-codec", "polkadot-primitives 16.0.0", "scale-info", - "sp-consensus-aura 0.40.0", + "sp-consensus-aura", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "staging-parachain-info 0.17.0", + "sp-io", + "sp-runtime", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", -] - -[[package]] -name = "parachains-runtimes-test-utils" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c778447d2e71a418b083c0458579d0f8d13872f43c63142d9e5157edea000bdd" -dependencies = [ - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-parachain-inherent 0.14.0", - "cumulus-test-relay-sproof-builder 0.14.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "pallet-balances 37.0.0", - "pallet-collator-selection 17.0.0", - "pallet-session 36.0.0", - "pallet-timestamp 35.0.0", - "pallet-xcm 15.0.0", - "parity-scale-codec", - "polkadot-parachain-primitives 13.0.0", - "sp-consensus-aura 0.39.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-tracing", - "staging-parachain-info 0.15.0", - "staging-xcm 14.2.0", - "staging-xcm-executor 15.0.0", - "substrate-wasm-builder 23.0.0", + "staging-xcm-executor", + "substrate-wasm-builder", ] [[package]] @@ -8690,31 +7531,31 @@ version = "19.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d37c6a0fe791b244282e445c7ae2534217b05781a7e47ef9e391860cf3412210" dependencies = [ - "cumulus-pallet-parachain-system 0.17.1", - "cumulus-pallet-xcmp-queue 0.17.0", - "cumulus-primitives-core 0.16.0", - "cumulus-primitives-parachain-inherent 0.16.0", - "cumulus-test-relay-sproof-builder 0.16.0", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-session 38.0.0", - "pallet-timestamp 37.0.0", - "pallet-xcm 17.0.1", - "parachains-common 18.0.0", - "parity-scale-codec", - "polkadot-parachain-primitives 14.0.0", - "sp-consensus-aura 0.40.0", - "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-test-relay-sproof-builder", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-collator-selection", + "pallet-session", + "pallet-timestamp", + "pallet-xcm", + "parachains-common", + "parity-scale-codec", + "polkadot-parachain-primitives", + "sp-consensus-aura", + "sp-core", + "sp-io", + "sp-runtime", "sp-tracing", - "staging-parachain-info 0.17.0", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", - "xcm-runtime-apis 0.4.2", + "staging-xcm-executor", + "substrate-wasm-builder", + "xcm-runtime-apis", ] [[package]] @@ -8863,17 +7704,17 @@ name = "paseo-emulated-chain" version = "1.0.0" dependencies = [ "emulated-integration-tests-common", - "pallet-staking 38.0.0", - "parachains-common 18.0.0", + "pallet-staking", + "parachains-common", "paseo-runtime", "paseo-runtime-constants", "polkadot-primitives 16.0.0", - "sc-consensus-grandpa 0.30.0", - "sp-authority-discovery 34.0.0", - "sp-consensus-babe 0.40.0", - "sp-consensus-beefy 22.1.0", + "sc-consensus-grandpa", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-consensus-beefy", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -8882,37 +7723,37 @@ version = "1.4.0" dependencies = [ "approx", "binary-merkle-tree", - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", "frame-executive", "frame-metadata-hash-extension", "frame-remote-externalities", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-asset-rate 17.0.0", - "pallet-authority-discovery 38.0.0", - "pallet-authorship 38.0.0", - "pallet-babe 38.0.0", + "pallet-asset-rate", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", "pallet-bags-list", - "pallet-balances 39.0.0", + "pallet-balances", "pallet-beefy", "pallet-beefy-mmr", "pallet-bounties", - "pallet-broker 0.17.2", + "pallet-broker", "pallet-child-bounties", "pallet-conviction-voting", "pallet-delegated-staking", - "pallet-election-provider-multi-phase 37.0.0", - "pallet-election-provider-support-benchmarking 37.0.0", - "pallet-fast-unstake 37.0.0", + "pallet-election-provider-multi-phase", + "pallet-election-provider-support-benchmarking", + "pallet-fast-unstake", "pallet-grandpa", "pallet-indices", - "pallet-message-queue 41.0.2", + "pallet-message-queue", "pallet-mmr", "pallet-multisig", "pallet-nomination-pools", @@ -8925,78 +7766,78 @@ dependencies = [ "pallet-proxy", "pallet-referenda", "pallet-scheduler", - "pallet-session 38.0.0", + "pallet-session", "pallet-session-benchmarking", - "pallet-staking 38.0.0", + "pallet-staking", "pallet-staking-reward-curve", "pallet-staking-reward-fn", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-sudo", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury 37.0.0", - "pallet-utility 38.0.0", - "pallet-vesting 38.0.0", + "pallet-treasury", + "pallet-utility", + "pallet-vesting", "pallet-whitelist", - "pallet-xcm 17.0.1", + "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-parachain-primitives 14.0.0", + "polkadot-parachain-primitives", "polkadot-primitives 16.0.0", - "polkadot-runtime-common 17.0.0", - "polkadot-runtime-parachains 17.0.2", + "polkadot-runtime-common", + "polkadot-runtime-parachains", "relay-common", "scale-info", "separator", "serde_json", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-arithmetic 26.0.0", - "sp-authority-discovery 34.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-babe 0.40.0", - "sp-consensus-beefy 22.1.0", + "sp-authority-discovery", + "sp-block-builder", + "sp-consensus-babe", + "sp-consensus-beefy", "sp-core", "sp-debug-derive", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-npos-elections 34.0.0", + "sp-npos-elections", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", "sp-std", "sp-storage", "sp-tracing", "sp-transaction-pool", - "sp-trie 37.0.0", - "sp-version 37.0.0", + "sp-trie", + "sp-version", "ss58-registry", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", "tokio", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] name = "paseo-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support 38.2.0", + "frame-support", "polkadot-primitives 16.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-runtime-common", "smallvec", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-weights 31.0.0", - "staging-xcm-builder 17.0.3", + "staging-xcm-builder", ] [[package]] @@ -9052,10 +7893,10 @@ dependencies = [ name = "penpal-emulated-chain" version = "1.0.0" dependencies = [ - "cumulus-primitives-core 0.14.0", + "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "paseo-emulated-chain", "penpal-runtime", "sp-core", @@ -9069,71 +7910,71 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20094cbee22c7e6099653d69ca9a36678be58d6a1739adceb0c98a7b20df53c7" dependencies = [ "assets-common", - "cumulus-pallet-aura-ext 0.17.0", - "cumulus-pallet-parachain-system 0.17.1", - "cumulus-pallet-session-benchmarking 19.0.0", - "cumulus-pallet-xcm 0.17.0", - "cumulus-pallet-xcmp-queue 0.17.0", - "cumulus-primitives-core 0.16.0", - "cumulus-primitives-utility 0.17.0", - "frame-benchmarking 38.0.0", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-benchmarking", "frame-executive", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "log", - "pallet-asset-conversion 20.0.0", - "pallet-asset-tx-payment 38.0.0", - "pallet-assets 40.0.0", - "pallet-aura 37.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-message-queue 41.0.2", - "pallet-session 38.0.0", + "pallet-asset-conversion", + "pallet-asset-tx-payment", + "pallet-assets", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-session", "pallet-sudo", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-xcm 17.0.1", - "parachains-common 18.0.0", + "pallet-xcm", + "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives 14.0.0", + "polkadot-parachain-primitives", "polkadot-primitives 16.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-runtime-common", "primitive-types", "scale-info", "smallvec", - "sp-api 34.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-aura 0.40.0", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", "sp-core", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-storage", "sp-transaction-pool", - "sp-version 37.0.0", - "staging-parachain-info 0.17.0", + "sp-version", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", - "xcm-runtime-apis 0.4.2", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", + "xcm-runtime-apis", ] [[package]] name = "people-paseo-emulated-chain" version = "1.0.0" dependencies = [ - "cumulus-primitives-core 0.14.0", + "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "paseo-emulated-chain", "people-paseo-runtime", "sp-core", @@ -9143,69 +7984,69 @@ dependencies = [ name = "people-paseo-runtime" version = "1.0.0" dependencies = [ - "cumulus-pallet-aura-ext 0.15.0", - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-session-benchmarking 17.0.0", - "cumulus-pallet-xcm 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-aura", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-utility 0.15.0", + "cumulus-primitives-core", + "cumulus-primitives-utility", "enumflags2", - "frame-benchmarking 38.0.0", + "frame-benchmarking", "frame-executive", "frame-metadata-hash-extension", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", - "pallet-aura 37.0.0", - "pallet-authorship 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-identity 38.0.0", - "pallet-message-queue 41.0.2", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", + "pallet-identity", + "pallet-message-queue", "pallet-multisig", "pallet-proxy", - "pallet-session 38.0.0", + "pallet-session", "pallet-sudo", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility 38.0.0", - "pallet-xcm 17.0.1", + "pallet-utility", + "pallet-xcm", "pallet-xcm-benchmarks", - "parachains-common 18.0.0", + "parachains-common", "parity-scale-codec", "paseo-runtime-constants", - "polkadot-parachain-primitives 14.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-parachain-primitives", + "polkadot-runtime-common", "scale-info", "serde", "serde_json", - "sp-api 34.0.0", - "sp-block-builder 34.0.0", - "sp-consensus-aura 0.40.0", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", "sp-core", - "sp-genesis-builder 0.15.1", - "sp-inherents 34.0.0", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-std", "sp-storage", "sp-transaction-pool", - "sp-version 37.0.0", - "staging-parachain-info 0.17.0", + "sp-version", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", - "substrate-wasm-builder 24.0.1", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", "system-parachains-constants 1.0.0", - "xcm-runtime-apis 0.4.2", + "xcm-runtime-apis", ] [[package]] @@ -9299,19 +8140,6 @@ dependencies = [ "itertools 0.10.5", ] -[[package]] -name = "polkadot-core-primitives" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17c72ee63bcf920f963cd7ac066759b0b649350c8ab3781a85a6aac87b1488f2" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "polkadot-core-primitives" version = "15.0.0" @@ -9321,25 +8149,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", -] - -[[package]] -name = "polkadot-parachain-primitives" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f61070d0ff28f596890def0e0d03c231860796130b2a43e293106fa86a50c9a9" -dependencies = [ - "bounded-collections", - "derive_more", - "parity-scale-codec", - "polkadot-core-primitives 14.0.0", - "scale-info", - "serde", - "sp-core", - "sp-runtime 38.0.0", - "sp-std", - "sp-weights 31.0.0", + "sp-runtime", ] [[package]] @@ -9351,40 +8161,39 @@ dependencies = [ "bounded-collections", "derive_more", "parity-scale-codec", - "polkadot-core-primitives 15.0.0", + "polkadot-core-primitives", "scale-info", "serde", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-weights 31.0.0", ] [[package]] name = "polkadot-primitives" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a4879609f4340138930c3c7313256941104a3ff6f7ecb2569d15223da9b35b2" +checksum = "b57bc055fa389372ec5fc0001b99aeffd50f3fd379280ce572d935189bb58dd8" dependencies = [ "bitvec", "hex-literal", "log", "parity-scale-codec", - "polkadot-core-primitives 14.0.0", - "polkadot-parachain-primitives 13.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "scale-info", "serde", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", + "sp-api", + "sp-application-crypto", "sp-arithmetic 26.0.0", - "sp-authority-discovery 33.0.0", - "sp-consensus-slots 0.39.0", + "sp-authority-discovery", + "sp-consensus-slots", "sp-core", - "sp-inherents 33.0.0", - "sp-io 37.0.0", + "sp-inherents", + "sp-io", "sp-keystore", - "sp-runtime 38.0.0", - "sp-staking 33.0.0", - "sp-std", + "sp-runtime", + "sp-staking 34.0.0", ] [[package]] @@ -9397,75 +8206,23 @@ dependencies = [ "hex-literal", "log", "parity-scale-codec", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "scale-info", "serde", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-arithmetic 26.0.0", - "sp-authority-discovery 34.0.0", - "sp-consensus-slots 0.40.1", + "sp-authority-discovery", + "sp-consensus-slots", "sp-core", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-inherents", + "sp-io", "sp-keystore", - "sp-runtime 39.0.5", + "sp-runtime", "sp-staking 36.0.0", ] -[[package]] -name = "polkadot-runtime-common" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28fdcb41bb21c7b14d0341a9a17364ccc04ad34de05d41e7938cb03acbc11066" -dependencies = [ - "bitvec", - "frame-benchmarking 36.0.0", - "frame-election-provider-support 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "libsecp256k1", - "log", - "pallet-asset-rate 15.0.0", - "pallet-authorship 36.0.0", - "pallet-babe 36.0.0", - "pallet-balances 37.0.0", - "pallet-broker 0.15.0", - "pallet-election-provider-multi-phase 35.0.0", - "pallet-fast-unstake 35.0.0", - "pallet-identity 36.0.0", - "pallet-session 36.0.0", - "pallet-staking 36.0.0", - "pallet-staking-reward-fn", - "pallet-timestamp 35.0.0", - "pallet-transaction-payment 36.0.0", - "pallet-treasury 35.0.0", - "pallet-vesting 36.0.0", - "parity-scale-codec", - "polkadot-primitives 14.0.0", - "polkadot-runtime-parachains 15.0.2", - "rustc-hex", - "scale-info", - "serde", - "serde_derive", - "slot-range-helper 14.0.0", - "sp-api 33.0.0", - "sp-core", - "sp-inherents 33.0.0", - "sp-io 37.0.0", - "sp-npos-elections 33.0.0", - "sp-runtime 38.0.0", - "sp-session 34.0.0", - "sp-staking 33.0.0", - "sp-std", - "staging-xcm 14.2.0", - "staging-xcm-builder 15.0.0", - "staging-xcm-executor 15.0.0", - "static_assertions", -] - [[package]] name = "polkadot-runtime-common" version = "17.0.0" @@ -9473,47 +8230,47 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc15154ba5ca55d323fcf7af0f5dcd39d58dcb4dfac3d9b30404840a6d8bbde4" dependencies = [ "bitvec", - "frame-benchmarking 38.0.0", - "frame-election-provider-support 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "impl-trait-for-tuples", "libsecp256k1", "log", - "pallet-asset-rate 17.0.0", - "pallet-authorship 38.0.0", - "pallet-babe 38.0.0", - "pallet-balances 39.0.0", - "pallet-broker 0.17.2", - "pallet-election-provider-multi-phase 37.0.0", - "pallet-fast-unstake 37.0.0", - "pallet-identity 38.0.0", - "pallet-session 38.0.0", - "pallet-staking 38.0.0", + "pallet-asset-rate", + "pallet-authorship", + "pallet-babe", + "pallet-balances", + "pallet-broker", + "pallet-election-provider-multi-phase", + "pallet-fast-unstake", + "pallet-identity", + "pallet-session", + "pallet-staking", "pallet-staking-reward-fn", - "pallet-timestamp 37.0.0", - "pallet-transaction-payment 38.0.2", - "pallet-treasury 37.0.0", - "pallet-vesting 38.0.0", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-treasury", + "pallet-vesting", "parity-scale-codec", "polkadot-primitives 16.0.0", - "polkadot-runtime-parachains 17.0.2", + "polkadot-runtime-parachains", "rustc-hex", "scale-info", "serde", "serde_derive", - "slot-range-helper 15.0.0", - "sp-api 34.0.0", - "sp-core", - "sp-inherents 34.0.0", - "sp-io 38.0.0", - "sp-npos-elections 34.0.0", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "slot-range-helper", + "sp-api", + "sp-core", + "sp-inherents", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", ] @@ -9522,28 +8279,14 @@ name = "polkadot-runtime-constants" version = "1.0.0" source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "frame-support 38.2.0", + "frame-support", "polkadot-primitives 16.0.0", - "polkadot-runtime-common 17.0.0", + "polkadot-runtime-common", "smallvec", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-weights 31.0.0", - "staging-xcm-builder 17.0.3", -] - -[[package]] -name = "polkadot-runtime-metrics" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac75b3fea8464e5681b44733ed11cf09e22ff1e956f6703b918b637bd40e7427" -dependencies = [ - "bs58 0.5.1", - "frame-benchmarking 36.0.0", - "parity-scale-codec", - "polkadot-primitives 14.0.0", - "sp-std", - "sp-tracing", + "staging-xcm-builder", ] [[package]] @@ -9553,61 +8296,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c306f1ace7644a24de860479f92cf8d6467393bb0c9b0777c57e2d42c9d452a" dependencies = [ "bs58 0.5.1", - "frame-benchmarking 38.0.0", + "frame-benchmarking", "parity-scale-codec", "polkadot-primitives 16.0.0", "sp-tracing", ] -[[package]] -name = "polkadot-runtime-parachains" -version = "15.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6cb1cf1fa41c64b0b515a33d7bd388c3af0de31e5f93bd4c2b220e408f7f968" -dependencies = [ - "bitflags 1.3.2", - "bitvec", - "derive_more", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "log", - "pallet-authority-discovery 36.0.0", - "pallet-authorship 36.0.0", - "pallet-babe 36.0.0", - "pallet-balances 37.0.0", - "pallet-broker 0.15.0", - "pallet-message-queue 39.0.1", - "pallet-session 36.0.0", - "pallet-staking 36.0.0", - "pallet-timestamp 35.0.0", - "pallet-vesting 36.0.0", - "parity-scale-codec", - "polkadot-core-primitives 14.0.0", - "polkadot-parachain-primitives 13.0.0", - "polkadot-primitives 14.0.0", - "polkadot-runtime-metrics 15.0.0", - "rand", - "rand_chacha", - "scale-info", - "serde", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-inherents 33.0.0", - "sp-io 37.0.0", - "sp-keystore", - "sp-runtime 38.0.0", - "sp-session 34.0.0", - "sp-staking 33.0.0", - "sp-std", - "staging-xcm 14.2.0", - "staging-xcm-executor 15.0.0", - "static_assertions", -] - [[package]] name = "polkadot-runtime-parachains" version = "17.0.2" @@ -9617,45 +8311,45 @@ dependencies = [ "bitflags 1.3.2", "bitvec", "derive_more", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", - "pallet-authority-discovery 38.0.0", - "pallet-authorship 38.0.0", - "pallet-babe 38.0.0", - "pallet-balances 39.0.0", - "pallet-broker 0.17.2", - "pallet-message-queue 41.0.2", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances", + "pallet-broker", + "pallet-message-queue", "pallet-mmr", - "pallet-session 38.0.0", - "pallet-staking 38.0.0", - "pallet-timestamp 37.0.0", - "pallet-vesting 38.0.0", + "pallet-session", + "pallet-staking", + "pallet-timestamp", + "pallet-vesting", "parity-scale-codec", - "polkadot-core-primitives 15.0.0", - "polkadot-parachain-primitives 14.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-primitives 16.0.0", - "polkadot-runtime-metrics 17.0.0", + "polkadot-runtime-metrics", "rand", "rand_chacha", "scale-info", "serde", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-arithmetic 26.0.0", "sp-core", - "sp-inherents 34.0.0", - "sp-io 38.0.0", + "sp-inherents", + "sp-io", "sp-keystore", - "sp-runtime 39.0.5", - "sp-session 36.0.0", + "sp-runtime", + "sp-session", "sp-staking 36.0.0", "sp-std", "sp-tracing", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", "static_assertions", ] @@ -10483,8 +9177,8 @@ dependencies = [ "parity-scale-codec", "polkadot-primitives 16.0.0", "scale-info", - "sp-api 34.0.0", - "sp-runtime 39.0.5", + "sp-api", + "sp-runtime", ] [[package]] @@ -10870,22 +9564,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "sc-block-builder" -version = "0.40.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6345fb862e10aaa7d88d6689a7c247448c40ae465253c83566dc76a17ec1426" -dependencies = [ - "parity-scale-codec", - "sp-api 33.0.0", - "sp-block-builder 33.0.0", - "sp-blockchain 35.1.0", - "sp-core", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", - "sp-trie 36.0.0", -] - [[package]] name = "sc-block-builder" version = "0.42.0" @@ -10893,41 +9571,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f666f8ff11f96bf6d90676739eb7ccb6a156a4507634b7af83b94f0aa8195a50" dependencies = [ "parity-scale-codec", - "sp-api 34.0.0", - "sp-block-builder 34.0.0", - "sp-blockchain 37.0.1", + "sp-api", + "sp-block-builder", + "sp-blockchain", "sp-core", - "sp-inherents 34.0.0", - "sp-runtime 39.0.5", - "sp-trie 37.0.0", -] - -[[package]] -name = "sc-chain-spec" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e04100ec7ff9cf1f2052b05086c77cc216ff7268b8c4fe41007de420bc1f70be" -dependencies = [ - "array-bytes", - "docify", - "log", - "memmap2", - "parity-scale-codec", - "sc-chain-spec-derive", - "sc-client-api 35.1.0", - "sc-executor 0.39.0", - "sc-network 0.42.0", - "sc-telemetry 22.0.0", - "serde", - "serde_json", - "sp-blockchain 35.1.0", - "sp-core", - "sp-crypto-hashing", - "sp-genesis-builder 0.14.0", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "sp-tracing", + "sp-inherents", + "sp-runtime", + "sp-trie", ] [[package]] @@ -10942,19 +9592,19 @@ dependencies = [ "memmap2", "parity-scale-codec", "sc-chain-spec-derive", - "sc-client-api 37.0.0", - "sc-executor 0.40.1", - "sc-network 0.45.6", - "sc-telemetry 25.0.0", + "sc-client-api", + "sc-executor", + "sc-network", + "sc-telemetry", "serde", "serde_json", - "sp-blockchain 37.0.1", + "sp-blockchain", "sp-core", "sp-crypto-hashing", - "sp-genesis-builder 0.15.1", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-genesis-builder", + "sp-io", + "sp-runtime", + "sp-state-machine", "sp-tracing", ] @@ -10970,34 +9620,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "sc-client-api" -version = "35.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bb517f4418644aeefd7c29bbe34bfc56ba8b5ea56e0b661a48a4d4d6afef40b" -dependencies = [ - "fnv", - "futures", - "log", - "parity-scale-codec", - "parking_lot 0.12.3", - "sc-executor 0.39.0", - "sc-transaction-pool-api 35.0.0", - "sc-utils", - "sp-api 33.0.0", - "sp-blockchain 35.1.0", - "sp-consensus 0.39.1", - "sp-core", - "sp-database", - "sp-externalities", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "sp-statement-store 17.0.0", - "sp-storage", - "sp-trie 36.0.0", - "substrate-prometheus-endpoint", -] - [[package]] name = "sc-client-api" version = "37.0.0" @@ -11009,46 +9631,21 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.3", - "sc-executor 0.40.1", - "sc-transaction-pool-api 37.0.0", + "sc-executor", + "sc-transaction-pool-api", "sc-utils", - "sp-api 34.0.0", - "sp-blockchain 37.0.1", - "sp-consensus 0.40.0", + "sp-api", + "sp-blockchain", + "sp-consensus", "sp-core", "sp-database", "sp-externalities", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", - "sp-statement-store 18.0.0", + "sp-runtime", + "sp-state-machine", + "sp-statement-store", "sp-storage", - "sp-trie 37.0.0", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-consensus" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2927954d83d4c055a8699cad8ae093fc921ce73694da6773bd06d195e9a8dd" -dependencies = [ - "async-trait", - "futures", - "log", - "mockall 0.11.4", - "parking_lot 0.12.3", - "sc-client-api 35.1.0", - "sc-network-types", - "sc-utils", - "serde", - "sp-api 33.0.0", - "sp-blockchain 35.1.0", - "sp-consensus 0.39.1", - "sp-core", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", + "sp-trie", "substrate-prometheus-endpoint", - "thiserror", ] [[package]] @@ -11062,61 +9659,16 @@ dependencies = [ "log", "mockall 0.11.4", "parking_lot 0.12.3", - "sc-client-api 37.0.0", + "sc-client-api", "sc-network-types", "sc-utils", "serde", - "sp-api 34.0.0", - "sp-blockchain 37.0.1", - "sp-consensus 0.40.0", + "sp-api", + "sp-blockchain", + "sp-consensus", "sp-core", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", - "substrate-prometheus-endpoint", - "thiserror", -] - -[[package]] -name = "sc-consensus-grandpa" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7c6c62a03b54973f1a608a405908af0fe957fefaf77483cce96bd213eee7ed0" -dependencies = [ - "ahash 0.8.8", - "array-bytes", - "async-trait", - "dyn-clone", - "finality-grandpa", - "fork-tree", - "futures", - "futures-timer", - "log", - "parity-scale-codec", - "parking_lot 0.12.3", - "rand", - "sc-block-builder 0.40.0", - "sc-chain-spec 35.0.0", - "sc-client-api 35.1.0", - "sc-consensus 0.41.0", - "sc-network 0.42.0", - "sc-network-common 0.41.0", - "sc-network-gossip 0.42.0", - "sc-network-sync 0.41.0", - "sc-network-types", - "sc-telemetry 22.0.0", - "sc-transaction-pool-api 35.0.0", - "sc-utils", - "serde_json", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-arithmetic 26.0.0", - "sp-blockchain 35.1.0", - "sp-consensus 0.39.1", - "sp-consensus-grandpa 20.0.0", - "sp-core", - "sp-crypto-hashing", - "sp-keystore", - "sp-runtime 38.0.0", + "sp-runtime", + "sp-state-machine", "substrate-prometheus-endpoint", "thiserror", ] @@ -11139,57 +9691,33 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "rand", - "sc-block-builder 0.42.0", - "sc-chain-spec 38.0.0", - "sc-client-api 37.0.0", - "sc-consensus 0.44.0", - "sc-network 0.45.6", - "sc-network-common 0.44.0", - "sc-network-gossip 0.45.0", - "sc-network-sync 0.44.1", + "sc-block-builder", + "sc-chain-spec", + "sc-client-api", + "sc-consensus", + "sc-network", + "sc-network-common", + "sc-network-gossip", + "sc-network-sync", "sc-network-types", - "sc-telemetry 25.0.0", - "sc-transaction-pool-api 37.0.0", + "sc-telemetry", + "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-arithmetic 26.0.0", - "sp-blockchain 37.0.1", - "sp-consensus 0.40.0", - "sp-consensus-grandpa 21.0.0", + "sp-blockchain", + "sp-consensus", + "sp-consensus-grandpa", "sp-core", "sp-crypto-hashing", "sp-keystore", - "sp-runtime 39.0.5", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] -[[package]] -name = "sc-executor" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39f5767bf6a6bad29365d6d08fcf940ee453d31457ed034cf14f0392877daafd" -dependencies = [ - "parity-scale-codec", - "parking_lot 0.12.3", - "sc-executor-common", - "sc-executor-polkavm", - "sc-executor-wasmtime", - "schnellru", - "sp-api 33.0.0", - "sp-core", - "sp-externalities", - "sp-io 37.0.0", - "sp-panic-handler", - "sp-runtime-interface", - "sp-trie 36.0.0", - "sp-version 36.0.0", - "sp-wasm-interface", - "tracing", -] - [[package]] name = "sc-executor" version = "0.40.1" @@ -11202,14 +9730,14 @@ dependencies = [ "sc-executor-polkavm", "sc-executor-wasmtime", "schnellru", - "sp-api 34.0.0", + "sp-api", "sp-core", "sp-externalities", - "sp-io 38.0.0", + "sp-io", "sp-panic-handler", "sp-runtime-interface", - "sp-trie 37.0.0", - "sp-version 37.0.0", + "sp-trie", + "sp-version", "sp-wasm-interface", "tracing", ] @@ -11276,71 +9804,19 @@ dependencies = [ "multiaddr 0.18.1", "parity-scale-codec", "parking_lot 0.12.3", - "sc-client-api 37.0.0", - "sc-network 0.45.6", + "sc-client-api", + "sc-network", "sc-network-types", - "sc-transaction-pool-api 37.0.0", - "sp-api 34.0.0", - "sp-consensus 0.40.0", + "sc-transaction-pool-api", + "sp-api", + "sp-consensus", "sp-core", "sp-keystore", "sp-mixnet", - "sp-runtime 39.0.5", + "sp-runtime", "thiserror", ] -[[package]] -name = "sc-network" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04be75f35cea819bae84be99cde138872b17494acf0e54f5f0ae8b0ed3fbe51a" -dependencies = [ - "array-bytes", - "async-channel", - "async-trait", - "asynchronous-codec", - "bytes", - "cid 0.9.0", - "either", - "fnv", - "futures", - "futures-timer", - "ip_network", - "libp2p", - "linked_hash_set", - "litep2p", - "log", - "mockall 0.11.4", - "once_cell", - "parity-scale-codec", - "parking_lot 0.12.3", - "partial_sort", - "pin-project", - "prost 0.12.6", - "prost-build 0.12.6", - "rand", - "sc-client-api 35.1.0", - "sc-network-common 0.41.0", - "sc-network-types", - "sc-utils", - "schnellru", - "serde", - "serde_json", - "smallvec", - "sp-arithmetic 26.0.0", - "sp-blockchain 35.1.0", - "sp-core", - "sp-runtime 38.0.0", - "substrate-prometheus-endpoint", - "thiserror", - "tokio", - "tokio-stream", - "unsigned-varint 0.7.2", - "void", - "wasm-timer", - "zeroize", -] - [[package]] name = "sc-network" version = "0.45.6" @@ -11371,8 +9847,8 @@ dependencies = [ "prost 0.12.6", "prost-build 0.12.6", "rand", - "sc-client-api 37.0.0", - "sc-network-common 0.44.0", + "sc-client-api", + "sc-network-common", "sc-network-types", "sc-utils", "schnellru", @@ -11380,36 +9856,17 @@ dependencies = [ "serde_json", "smallvec", "sp-arithmetic 26.0.0", - "sp-blockchain 37.0.1", + "sp-blockchain", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", - "tokio", - "tokio-stream", - "unsigned-varint 0.7.2", - "void", - "wasm-timer", - "zeroize", -] - -[[package]] -name = "sc-network-common" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ec0c3c5629a418fb26b56963d40c5ca3fd02dd94eb5753e9eb72cea5c2eeb2f" -dependencies = [ - "async-trait", - "bitflags 1.3.2", - "futures", - "libp2p-identity", - "parity-scale-codec", - "prost-build 0.12.6", - "sc-consensus 0.41.0", - "sc-network-types", - "sp-consensus 0.39.1", - "sp-consensus-grandpa 20.0.0", - "sp-runtime 38.0.0", + "thiserror", + "tokio", + "tokio-stream", + "unsigned-varint 0.7.2", + "void", + "wasm-timer", + "zeroize", ] [[package]] @@ -11424,31 +9881,11 @@ dependencies = [ "libp2p-identity", "parity-scale-codec", "prost-build 0.12.6", - "sc-consensus 0.44.0", - "sc-network-types", - "sp-consensus 0.40.0", - "sp-consensus-grandpa 21.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sc-network-gossip" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ae1836528495b6aa5140da39ed0278f5086c21ce530c37964db1b2e2c101ab1" -dependencies = [ - "ahash 0.8.8", - "futures", - "futures-timer", - "log", - "sc-network 0.42.0", - "sc-network-common 0.41.0", - "sc-network-sync 0.41.0", + "sc-consensus", "sc-network-types", - "schnellru", - "sp-runtime 38.0.0", - "substrate-prometheus-endpoint", - "tracing", + "sp-consensus", + "sp-consensus-grandpa", + "sp-runtime", ] [[package]] @@ -11461,54 +9898,16 @@ dependencies = [ "futures", "futures-timer", "log", - "sc-network 0.45.6", - "sc-network-common 0.44.0", - "sc-network-sync 0.44.1", + "sc-network", + "sc-network-common", + "sc-network-sync", "sc-network-types", "schnellru", - "sp-runtime 39.0.5", + "sp-runtime", "substrate-prometheus-endpoint", "tracing", ] -[[package]] -name = "sc-network-sync" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee9ab31b84534c487b9fb84e83db47890fcbd350f354b1e6484892d3d42d0020" -dependencies = [ - "array-bytes", - "async-channel", - "async-trait", - "fork-tree", - "futures", - "futures-timer", - "libp2p", - "log", - "mockall 0.11.4", - "parity-scale-codec", - "prost 0.12.6", - "prost-build 0.12.6", - "sc-client-api 35.1.0", - "sc-consensus 0.41.0", - "sc-network 0.42.0", - "sc-network-common 0.41.0", - "sc-network-types", - "sc-utils", - "schnellru", - "smallvec", - "sp-arithmetic 26.0.0", - "sp-blockchain 35.1.0", - "sp-consensus 0.39.1", - "sp-consensus-grandpa 20.0.0", - "sp-core", - "sp-runtime 38.0.0", - "substrate-prometheus-endpoint", - "thiserror", - "tokio", - "tokio-stream", -] - [[package]] name = "sc-network-sync" version = "0.44.1" @@ -11527,20 +9926,20 @@ dependencies = [ "parity-scale-codec", "prost 0.12.6", "prost-build 0.12.6", - "sc-client-api 37.0.0", - "sc-consensus 0.44.0", - "sc-network 0.45.6", - "sc-network-common 0.44.0", + "sc-client-api", + "sc-consensus", + "sc-network", + "sc-network-common", "sc-network-types", "sc-utils", "schnellru", "smallvec", "sp-arithmetic 26.0.0", - "sp-blockchain 37.0.1", - "sp-consensus 0.40.0", - "sp-consensus-grandpa 21.0.0", + "sp-blockchain", + "sp-consensus", + "sp-consensus-grandpa", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", "tokio", @@ -11573,38 +9972,17 @@ checksum = "147274633577e55db73dbdc64168c25b54cca6cac4fcde118bd9946cf7b24838" dependencies = [ "jsonrpsee", "parity-scale-codec", - "sc-chain-spec 38.0.0", + "sc-chain-spec", "sc-mixnet", - "sc-transaction-pool-api 37.0.0", + "sc-transaction-pool-api", "scale-info", "serde", "serde_json", "sp-core", "sp-rpc", - "sp-runtime 39.0.5", - "sp-version 37.0.0", - "thiserror", -] - -[[package]] -name = "sc-telemetry" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1fc8e8ad7f84f2ca864ee361b6207fe21e18c8182c60f209732b2a7c0dcbd31" -dependencies = [ - "chrono", - "futures", - "libp2p", - "log", - "parking_lot 0.12.3", - "pin-project", - "rand", - "sc-network 0.42.0", - "sc-utils", - "serde", - "serde_json", + "sp-runtime", + "sp-version", "thiserror", - "wasm-timer", ] [[package]] @@ -11620,7 +9998,7 @@ dependencies = [ "parking_lot 0.12.3", "pin-project", "rand", - "sc-network 0.45.6", + "sc-network", "sc-utils", "serde", "serde_json", @@ -11628,23 +10006,6 @@ dependencies = [ "wasm-timer", ] -[[package]] -name = "sc-transaction-pool-api" -version = "35.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3de6f60df6706970061e225e87d77aab9a764b258fe151b896a700419bc6b9d" -dependencies = [ - "async-trait", - "futures", - "log", - "parity-scale-codec", - "serde", - "sp-blockchain 35.1.0", - "sp-core", - "sp-runtime 38.0.0", - "thiserror", -] - [[package]] name = "sc-transaction-pool-api" version = "37.0.0" @@ -11656,9 +10017,9 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-blockchain 37.0.1", + "sp-blockchain", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "thiserror", ] @@ -12139,19 +10500,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" -[[package]] -name = "slot-range-helper" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4d67aa9b1ccfd746c8529754c4ce06445b1d48e189567402ef856340a3a6b14" -dependencies = [ - "enumn", - "parity-scale-codec", - "paste", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "slot-range-helper" version = "15.0.0" @@ -12161,7 +10509,7 @@ dependencies = [ "enumn", "parity-scale-codec", "paste", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -12204,7 +10552,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10bd720997e558beb556d354238fa90781deb38241cf31c1b6368738ef21c279" dependencies = [ "byte-slice-cast", - "frame-support 38.2.0", + "frame-support", "hex", "parity-scale-codec", "rlp", @@ -12213,8 +10561,8 @@ dependencies = [ "snowbridge-ethereum", "snowbridge-milagro-bls", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "ssz_rs", "ssz_rs_derive", @@ -12227,21 +10575,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6be61e4db95d1e253a1d5e722953b2d2f6605e5f9761f0a919e5d3fbdbff9da9" dependencies = [ "ethabi-decode", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-support", + "frame-system", "hex-literal", "parity-scale-codec", - "polkadot-parachain-primitives 14.0.0", + "polkadot-parachain-primitives", "scale-info", "serde", "snowbridge-beacon-primitives", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", + "staging-xcm-builder", ] [[package]] @@ -12260,8 +10608,8 @@ dependencies = [ "scale-info", "serde", "serde-big-array", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", ] @@ -12289,7 +10637,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -12298,11 +10646,11 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38d27b8d9cb8022637a5ce4f52692520fa75874f393e04ef5cd75bd8795087f6" dependencies = [ - "frame-support 38.2.0", + "frame-support", "parity-scale-codec", "snowbridge-core", "snowbridge-outbound-queue-merkle-tree", - "sp-api 34.0.0", + "sp-api", "sp-std", ] @@ -12312,12 +10660,12 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d53d32d8470c643f9f8c1f508e1e34263f76297e4c9150e10e8f2e0b63992e1" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "hex-literal", "log", - "pallet-timestamp 37.0.0", + "pallet-timestamp", "parity-scale-codec", "scale-info", "serde", @@ -12326,8 +10674,8 @@ dependencies = [ "snowbridge-ethereum", "snowbridge-pallet-ethereum-client-fixtures", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "static_assertions", ] @@ -12353,12 +10701,12 @@ checksum = "f2e6a9d00e60e3744e6b6f0c21fea6694b9c6401ac40e41340a96e561dcf1935" dependencies = [ "alloy-primitives", "alloy-sol-types", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "hex-literal", "log", - "pallet-balances 39.0.0", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", @@ -12367,11 +10715,11 @@ dependencies = [ "snowbridge-pallet-inbound-queue-fixtures", "snowbridge-router-primitives", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", ] [[package]] @@ -12395,9 +10743,9 @@ checksum = "c7d49478041b6512c710d0d4655675d146fe00a8e0c1624e5d8a1d6c161d490f" dependencies = [ "bridge-hub-common", "ethabi-decode", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", @@ -12405,8 +10753,8 @@ dependencies = [ "snowbridge-outbound-queue-merkle-tree", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", ] @@ -12416,19 +10764,19 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "674db59b3c8013382e5c07243ad9439b64d81d2e8b3c4f08d752b55aa5de697e" dependencies = [ - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "snowbridge-core", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", ] [[package]] @@ -12437,18 +10785,18 @@ version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aefe74eafeac92e1d9e46b7bb76ec297f6182b4a023f7e7eb7eb8be193f93bef" dependencies = [ - "frame-support 38.2.0", + "frame-support", "hex-literal", "log", "parity-scale-codec", "scale-info", "snowbridge-core", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", ] [[package]] @@ -12457,15 +10805,15 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6093f0e73d6cfdd2eea8712155d1d75b5063fc9b1d854d2665b097b4bb29570d" dependencies = [ - "frame-support 38.2.0", + "frame-support", "log", "parity-scale-codec", "snowbridge-core", "sp-arithmetic 26.0.0", "sp-std", "staging-xcm 14.2.0", - "staging-xcm-builder 17.0.3", - "staging-xcm-executor 17.0.1", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -12474,17 +10822,17 @@ version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "242ad550a31ebd8e29a17beb89f1e5ddf4e657ebdf667fb9e4c0660428de4e9b" dependencies = [ - "cumulus-pallet-parachain-system 0.17.1", - "frame-support 38.2.0", - "frame-system 38.0.0", - "pallet-balances 39.0.0", - "pallet-collator-selection 19.0.0", - "pallet-message-queue 41.0.2", - "pallet-session 38.0.0", - "pallet-timestamp 37.0.0", - "pallet-utility 38.0.0", - "pallet-xcm 17.0.1", - "parachains-runtimes-test-utils 19.0.0", + "cumulus-pallet-parachain-system", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-session", + "pallet-timestamp", + "pallet-utility", + "pallet-xcm", + "parachains-runtimes-test-utils", "parity-scale-codec", "snowbridge-core", "snowbridge-pallet-ethereum-client", @@ -12492,12 +10840,12 @@ dependencies = [ "snowbridge-pallet-outbound-queue", "snowbridge-pallet-system", "sp-core", - "sp-io 38.0.0", + "sp-io", "sp-keyring", - "sp-runtime 39.0.5", - "staging-parachain-info 0.17.0", + "sp-runtime", + "staging-parachain-info", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", ] [[package]] @@ -12508,7 +10856,7 @@ checksum = "68b8b83b3db781c49844312a23965073e4d93341739a35eafe526c53b578d3b7" dependencies = [ "parity-scale-codec", "snowbridge-core", - "sp-api 34.0.0", + "sp-api", "sp-std", "staging-xcm 14.2.0", ] @@ -12563,29 +10911,6 @@ dependencies = [ "sha1", ] -[[package]] -name = "sp-api" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e43fbf034e9dbaa8ffc6a238a22808777eb38c580f66fc6736d8511631789e" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "scale-info", - "sp-api-proc-macro", - "sp-core", - "sp-externalities", - "sp-metadata-ir", - "sp-runtime 38.0.0", - "sp-runtime-interface", - "sp-state-machine 0.42.0", - "sp-std", - "sp-trie 36.0.0", - "sp-version 36.0.0", - "thiserror", -] - [[package]] name = "sp-api" version = "34.0.0" @@ -12601,11 +10926,11 @@ dependencies = [ "sp-core", "sp-externalities", "sp-metadata-ir", - "sp-runtime 39.0.5", + "sp-runtime", "sp-runtime-interface", - "sp-state-machine 0.43.0", - "sp-trie 37.0.0", - "sp-version 37.0.0", + "sp-state-machine", + "sp-trie", + "sp-version", "thiserror", ] @@ -12624,20 +10949,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "sp-application-crypto" -version = "37.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d96d1fc0f1c741bbcbd0dd5470eff7b66f011708cc1942b088ebf0d4efb3d93" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-io 37.0.0", - "sp-std", -] - [[package]] name = "sp-application-crypto" version = "38.0.0" @@ -12648,7 +10959,7 @@ dependencies = [ "scale-info", "serde", "sp-core", - "sp-io 38.0.0", + "sp-io", ] [[package]] @@ -12682,19 +10993,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "sp-authority-discovery" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a4a1e45abc3277f18484ee0b0f9808e4206eb696ad38500c892c72f33480d69" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-runtime 38.0.0", -] - [[package]] name = "sp-authority-discovery" version = "34.0.0" @@ -12703,20 +11001,9 @@ checksum = "519c33af0e25ba2dd2eb3790dc404d634b6e4ce0801bcc8fa3574e07c365e734" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sp-block-builder" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cf199dc4f9f77abd3fd91c409759118159ce6ffcd8bc90b229b684ccc8c981f" -dependencies = [ - "sp-api 33.0.0", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", + "sp-api", + "sp-application-crypto", + "sp-runtime", ] [[package]] @@ -12725,28 +11012,9 @@ version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74738809461e3d4bd707b5b94e0e0c064a623a74a6a8fe5c98514417a02858dd" dependencies = [ - "sp-api 34.0.0", - "sp-inherents 34.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sp-blockchain" -version = "35.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f27eb18b6ddf7d663f4886f7edba3eb73bd102d68cf10802c1f862e3b3db32ab" -dependencies = [ - "futures", - "log", - "parity-scale-codec", - "parking_lot 0.12.3", - "schnellru", - "sp-api 33.0.0", - "sp-consensus 0.39.1", - "sp-database", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "thiserror", + "sp-api", + "sp-inherents", + "sp-runtime", ] [[package]] @@ -12759,32 +11027,16 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "schnellru", - "sp-api 34.0.0", - "sp-consensus 0.40.0", + "sp-api", + "sp-consensus", "sp-core", "sp-database", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-runtime", + "sp-state-machine", "thiserror", "tracing", ] -[[package]] -name = "sp-consensus" -version = "0.39.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab094e8a7e9e5c7f05f8d90592aa1d1cf9b3f547d0dd401daff7ed98af942e12" -dependencies = [ - "async-trait", - "futures", - "log", - "sp-core", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", - "sp-state-machine 0.42.0", - "thiserror", -] - [[package]] name = "sp-consensus" version = "0.40.0" @@ -12795,29 +11047,12 @@ dependencies = [ "futures", "log", "sp-core", - "sp-inherents 34.0.0", - "sp-runtime 39.0.5", - "sp-state-machine 0.43.0", + "sp-inherents", + "sp-runtime", + "sp-state-machine", "thiserror", ] -[[package]] -name = "sp-consensus-aura" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ebb90bf00f331b898eb729a1f707251846c1d5582d7467f083884799a69b89" -dependencies = [ - "async-trait", - "parity-scale-codec", - "scale-info", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-consensus-slots 0.39.0", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", - "sp-timestamp 33.0.0", -] - [[package]] name = "sp-consensus-aura" version = "0.40.0" @@ -12827,31 +11062,12 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", - "sp-consensus-slots 0.40.1", - "sp-inherents 34.0.0", - "sp-runtime 39.0.5", - "sp-timestamp 34.0.0", -] - -[[package]] -name = "sp-consensus-babe" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3aa2de4c7100a3279658d8dd4affd8f92487528deae5cb4b40322717b9175ed5" -dependencies = [ - "async-trait", - "parity-scale-codec", - "scale-info", - "serde", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-consensus-slots 0.39.0", - "sp-core", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", - "sp-timestamp 33.0.0", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-inherents", + "sp-runtime", + "sp-timestamp", ] [[package]] @@ -12864,34 +11080,13 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", - "sp-consensus-slots 0.40.1", - "sp-core", - "sp-inherents 34.0.0", - "sp-runtime 39.0.5", - "sp-timestamp 34.0.0", -] - -[[package]] -name = "sp-consensus-beefy" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b277bc109da8e1c3768d3a046e1cd1ab687aabac821c976c5f510deb6f0bc8d3" -dependencies = [ - "lazy_static", - "parity-scale-codec", - "scale-info", - "serde", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", "sp-core", - "sp-crypto-hashing", - "sp-io 37.0.0", - "sp-keystore", - "sp-mmr-primitives 33.0.0", - "sp-runtime 38.0.0", - "strum 0.26.3", + "sp-inherents", + "sp-runtime", + "sp-timestamp", ] [[package]] @@ -12904,36 +11099,18 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-core", "sp-crypto-hashing", - "sp-io 38.0.0", + "sp-io", "sp-keystore", - "sp-mmr-primitives 34.1.0", - "sp-runtime 39.0.5", + "sp-mmr-primitives", + "sp-runtime", "sp-weights 31.0.0", "strum 0.26.3", ] -[[package]] -name = "sp-consensus-grandpa" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21dd06bf366c60f69411668b26d6ab3c55120aa6d423e6af0373ec23d8957300" -dependencies = [ - "finality-grandpa", - "log", - "parity-scale-codec", - "scale-info", - "serde", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-core", - "sp-keystore", - "sp-runtime 38.0.0", -] - [[package]] name = "sp-consensus-grandpa" version = "21.0.0" @@ -12945,23 +11122,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-core", "sp-keystore", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sp-consensus-slots" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8ca60d713f8ddb03bbebcc755d5e6463fdc0b6259fabfc4221b20a5f1e428fd" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-timestamp 33.0.0", + "sp-runtime", ] [[package]] @@ -12973,7 +11138,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-timestamp 34.0.0", + "sp-timestamp", ] [[package]] @@ -13080,19 +11245,6 @@ dependencies = [ "sp-storage", ] -[[package]] -name = "sp-genesis-builder" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcd065854d96fd81521c103d0aaa287d4f08b9b15c9fae2a3bfb208b0812bf44" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde_json", - "sp-api 33.0.0", - "sp-runtime 38.0.0", -] - [[package]] name = "sp-genesis-builder" version = "0.15.1" @@ -13102,63 +11254,22 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde_json", - "sp-api 34.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sp-inherents" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53407ba38ec22ca4a16381722c4bd0b559a0428bc1713079b0d5163ada63186a" -dependencies = [ - "async-trait", - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "sp-runtime 38.0.0", - "thiserror", + "sp-api", + "sp-runtime", ] [[package]] name = "sp-inherents" version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afffbddc380d99a90c459ba1554bbbc01d62e892de9f1485af6940b89c4c0d57" -dependencies = [ - "async-trait", - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "sp-runtime 39.0.5", - "thiserror", -] - -[[package]] -name = "sp-io" -version = "37.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5036cad2e48d41f5caf6785226c8be1a7db15bec14a9fd7aa6cca84f34cf689f" -dependencies = [ - "bytes", - "ed25519-dalek", - "libsecp256k1", - "log", +checksum = "afffbddc380d99a90c459ba1554bbbc01d62e892de9f1485af6940b89c4c0d57" +dependencies = [ + "async-trait", + "impl-trait-for-tuples", "parity-scale-codec", - "polkavm-derive", - "rustversion", - "secp256k1", - "sp-core", - "sp-crypto-hashing", - "sp-externalities", - "sp-keystore", - "sp-runtime-interface", - "sp-state-machine 0.42.0", - "sp-std", - "sp-tracing", - "sp-trie 36.0.0", - "tracing", - "tracing-core", + "scale-info", + "sp-runtime", + "thiserror", ] [[package]] @@ -13181,9 +11292,9 @@ dependencies = [ "sp-externalities", "sp-keystore", "sp-runtime-interface", - "sp-state-machine 0.43.0", + "sp-state-machine", "sp-tracing", - "sp-trie 37.0.0", + "sp-trie", "tracing", "tracing-core", ] @@ -13195,7 +11306,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c0e20624277f578b27f44ecfbe2ebc2e908488511ee2c900c5281599f700ab3" dependencies = [ "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "strum 0.26.3", ] @@ -13240,26 +11351,8 @@ checksum = "3b0b017dd54823b6e62f9f7171a1df350972e5c6d0bf17e0c2f78680b5c31942" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", -] - -[[package]] -name = "sp-mmr-primitives" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47412a2d2e988430d5f59d7fec1473f229e1ef5ce24c1ea4f601b4b3679cac52" -dependencies = [ - "log", - "parity-scale-codec", - "polkadot-ckb-merkle-mountain-range", - "scale-info", - "serde", - "sp-api 33.0.0", - "sp-core", - "sp-debug-derive", - "sp-runtime 38.0.0", - "thiserror", + "sp-api", + "sp-application-crypto", ] [[package]] @@ -13273,27 +11366,13 @@ dependencies = [ "polkadot-ckb-merkle-mountain-range", "scale-info", "serde", - "sp-api 34.0.0", + "sp-api", "sp-core", "sp-debug-derive", - "sp-runtime 39.0.5", + "sp-runtime", "thiserror", ] -[[package]] -name = "sp-npos-elections" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b0c51a7b60cd663f2661e6949069eb316b092f22c239691d5272a4d0cfca0fb" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-runtime 38.0.0", -] - [[package]] name = "sp-npos-elections" version = "34.0.0" @@ -13305,7 +11384,7 @@ dependencies = [ "serde", "sp-arithmetic 26.0.0", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -13314,9 +11393,9 @@ version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d9de237d72ecffd07f90826eef18360208b16d8de939d54e61591fac0fcbf99" dependencies = [ - "sp-api 34.0.0", + "sp-api", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -13341,32 +11420,6 @@ dependencies = [ "sp-core", ] -[[package]] -name = "sp-runtime" -version = "38.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ef409c414546b655ec1e94aaea178e4a97e21284a91b24c762aebf836d3b49" -dependencies = [ - "docify", - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "num-traits", - "parity-scale-codec", - "paste", - "rand", - "scale-info", - "serde", - "simple-mermaid", - "sp-application-crypto 37.0.0", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-io 37.0.0", - "sp-std", - "sp-weights 31.0.0", -] - [[package]] name = "sp-runtime" version = "39.0.5" @@ -13385,10 +11438,10 @@ dependencies = [ "scale-info", "serde", "simple-mermaid", - "sp-application-crypto 38.0.0", + "sp-application-crypto", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", + "sp-io", "sp-std", "sp-weights 31.0.0", "tracing", @@ -13428,21 +11481,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "sp-session" -version = "34.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4daf2e40ffc7e7e8de08efb860eb9534faf614a49c53dc282f430faedb4aed13" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api 33.0.0", - "sp-core", - "sp-keystore", - "sp-runtime 38.0.0", - "sp-staking 33.0.0", -] - [[package]] name = "sp-session" version = "36.0.0" @@ -13451,25 +11489,25 @@ checksum = "00a3a307fedc423fb8cd2a7726a3bbb99014f1b4b52f26153993e2aae3338fe6" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 34.0.0", + "sp-api", "sp-core", "sp-keystore", - "sp-runtime 39.0.5", + "sp-runtime", "sp-staking 36.0.0", ] [[package]] name = "sp-staking" -version = "33.0.0" +version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a0b7abfe66c07a3b6eb99e1286dfa9b6f3b057b0e986e7da2ccbf707f6c781a" +checksum = "143a764cacbab58347d8b2fd4c8909031fb0888d7b02a0ec9fa44f81f780d732" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "sp-core", - "sp-runtime 38.0.0", + "sp-runtime", ] [[package]] @@ -13483,28 +11521,7 @@ dependencies = [ "scale-info", "serde", "sp-core", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sp-state-machine" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "211e528aa6e902261a343f7b40840aa3d66fe4ad3aadbd04a035f10baf96dbc5" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "parking_lot 0.12.3", - "rand", - "smallvec", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-trie 36.0.0", - "thiserror", - "tracing", - "trie-db", + "sp-runtime", ] [[package]] @@ -13522,37 +11539,12 @@ dependencies = [ "sp-core", "sp-externalities", "sp-panic-handler", - "sp-trie 37.0.0", + "sp-trie", "thiserror", "tracing", "trie-db", ] -[[package]] -name = "sp-statement-store" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b03aa86b1b46549889d32348bc85a8135c725665115567507231a6d85712aaac" -dependencies = [ - "aes-gcm", - "curve25519-dalek", - "ed25519-dalek", - "hkdf", - "parity-scale-codec", - "rand", - "scale-info", - "sha2 0.10.8", - "sp-api 33.0.0", - "sp-application-crypto 37.0.0", - "sp-core", - "sp-crypto-hashing", - "sp-externalities", - "sp-runtime 38.0.0", - "sp-runtime-interface", - "thiserror", - "x25519-dalek", -] - [[package]] name = "sp-statement-store" version = "18.0.0" @@ -13567,12 +11559,12 @@ dependencies = [ "rand", "scale-info", "sha2 0.10.8", - "sp-api 34.0.0", - "sp-application-crypto 38.0.0", + "sp-api", + "sp-application-crypto", "sp-core", "sp-crypto-hashing", "sp-externalities", - "sp-runtime 39.0.5", + "sp-runtime", "sp-runtime-interface", "thiserror", "x25519-dalek", @@ -13597,19 +11589,6 @@ dependencies = [ "sp-debug-derive", ] -[[package]] -name = "sp-timestamp" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78becf144a76f6fd108dfe94a90e20a185b38c0b310dc5482328196143c8266b" -dependencies = [ - "async-trait", - "parity-scale-codec", - "sp-inherents 33.0.0", - "sp-runtime 38.0.0", - "thiserror", -] - [[package]] name = "sp-timestamp" version = "34.0.0" @@ -13618,8 +11597,8 @@ checksum = "72a1cb4df653d62ccc0dbce1db45d1c9443ec60247ee9576962d24da4c9c6f07" dependencies = [ "async-trait", "parity-scale-codec", - "sp-inherents 34.0.0", - "sp-runtime 39.0.5", + "sp-inherents", + "sp-runtime", "thiserror", ] @@ -13641,32 +11620,8 @@ version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc4bf251059485a7dd38fe4afeda8792983511cc47f342ff4695e2dcae6b5247" dependencies = [ - "sp-api 34.0.0", - "sp-runtime 39.0.5", -] - -[[package]] -name = "sp-trie" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841d717c0f465f5371569e6fdc25b6f32d47c15d6e4c92b3b779e1c9b18b951d" -dependencies = [ - "ahash 0.8.8", - "hash-db", - "lazy_static", - "memory-db", - "nohash-hasher", - "parity-scale-codec", - "parking_lot 0.12.3", - "rand", - "scale-info", - "schnellru", - "sp-core", - "sp-externalities", - "thiserror", - "tracing", - "trie-db", - "trie-root", + "sp-api", + "sp-runtime", ] [[package]] @@ -13693,24 +11648,6 @@ dependencies = [ "trie-root", ] -[[package]] -name = "sp-version" -version = "36.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bccf96fefae339dee7c4453f91be64eb28cce4c2fe82130445cf096b18b2c081" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "parity-wasm", - "scale-info", - "serde", - "sp-crypto-hashing-proc-macro", - "sp-runtime 38.0.0", - "sp-std", - "sp-version-proc-macro", - "thiserror", -] - [[package]] name = "sp-version" version = "37.0.0" @@ -13723,7 +11660,7 @@ dependencies = [ "scale-info", "serde", "sp-crypto-hashing-proc-macro", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", "sp-version-proc-macro", "thiserror", @@ -13862,33 +11799,18 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" -[[package]] -name = "staging-parachain-info" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd00d586b0dac4f42736bdd0ad52213a891b240e011ea82b38938263dd821c25" -dependencies = [ - "cumulus-primitives-core 0.14.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "parity-scale-codec", - "scale-info", - "sp-runtime 38.0.0", - "sp-std", -] - [[package]] name = "staging-parachain-info" version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d28266dfddbfff721d70ad2f873380845b569adfab32f257cf97d9cedd894b68" dependencies = [ - "cumulus-primitives-core 0.16.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "cumulus-primitives-core", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-runtime 39.0.5", + "sp-runtime", ] [[package]] @@ -13925,77 +11847,32 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-runtime 39.0.5", + "sp-runtime", "sp-weights 31.0.0", "xcm-procedural 10.1.0", ] -[[package]] -name = "staging-xcm-builder" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "847fa2afe1bed2751eaabf7b91fa4043037947f17653d7cc59ea202cc44c6bb8" -dependencies = [ - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "log", - "pallet-transaction-payment 36.0.0", - "parity-scale-codec", - "polkadot-parachain-primitives 13.0.0", - "scale-info", - "sp-arithmetic 26.0.0", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-weights 31.0.0", - "staging-xcm 14.2.0", - "staging-xcm-executor 15.0.0", -] - [[package]] name = "staging-xcm-builder" version = "17.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6f7a92cfaec55a5ed0f9cbbb9076aa8ec0aff1ba90b9804cc5c8f2369fde59c" dependencies = [ - "frame-support 38.2.0", - "frame-system 38.0.0", - "impl-trait-for-tuples", - "log", - "pallet-asset-conversion 20.0.0", - "pallet-transaction-payment 38.0.2", - "parity-scale-codec", - "polkadot-parachain-primitives 14.0.0", - "scale-info", - "sp-arithmetic 26.0.0", - "sp-io 38.0.0", - "sp-runtime 39.0.5", - "sp-weights 31.0.0", - "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", -] - -[[package]] -name = "staging-xcm-executor" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b98d8219449eaf02e71a7edf1a14b14d4c713dd01d9df66fde1ce30dba4d6d" -dependencies = [ - "environmental", - "frame-benchmarking 36.0.0", - "frame-support 36.0.0", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", + "pallet-asset-conversion", + "pallet-transaction-payment", "parity-scale-codec", + "polkadot-parachain-primitives", "scale-info", "sp-arithmetic 26.0.0", - "sp-core", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", + "sp-io", + "sp-runtime", "sp-weights 31.0.0", "staging-xcm 14.2.0", + "staging-xcm-executor", ] [[package]] @@ -14005,15 +11882,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c89045f495097293ce29df1f3f459e9ccc991ff2ee88a4a91e8110a6886d2c8" dependencies = [ "environmental", - "frame-benchmarking 38.0.0", - "frame-support 38.2.0", + "frame-benchmarking", + "frame-support", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-arithmetic 26.0.0", "sp-core", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-weights 31.0.0", "staging-xcm 14.2.0", "tracing", @@ -14132,27 +12009,7 @@ dependencies = [ "log", "sc-rpc-api", "serde", - "sp-runtime 39.0.5", -] - -[[package]] -name = "substrate-wasm-builder" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dc993ad871b63fbba60362f3ea86583f5e7e1256e8fdcb3b5b249c9ead354bf" -dependencies = [ - "build-helper", - "cargo_metadata", - "console", - "filetime", - "parity-wasm", - "polkavm-linker", - "sp-maybe-compressed-blob", - "strum 0.26.3", - "tempfile", - "toml 0.8.12", - "walkdir", - "wasm-opt", + "sp-runtime", ] [[package]] @@ -14172,12 +12029,12 @@ dependencies = [ "parity-scale-codec", "parity-wasm", "polkavm-linker", - "sc-executor 0.40.1", + "sc-executor", "sp-core", - "sp-io 38.0.0", + "sp-io", "sp-maybe-compressed-blob", "sp-tracing", - "sp-version 37.0.0", + "sp-version", "strum 0.26.3", "tempfile", "toml 0.8.12", @@ -14279,14 +12136,14 @@ dependencies = [ name = "system-parachains-constants" version = "1.0.0" dependencies = [ - "frame-support 38.2.0", - "parachains-common 18.0.0", + "frame-support", + "parachains-common", "paseo-runtime-constants", - "polkadot-core-primitives 15.0.0", + "polkadot-core-primitives", "polkadot-primitives 16.0.0", "smallvec", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", ] @@ -14296,15 +12153,15 @@ name = "system-parachains-constants" version = "1.0.0" source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69d0f5d5766d440463fa7f5b76c290fc" dependencies = [ - "frame-support 38.2.0", + "frame-support", "kusama-runtime-constants", - "parachains-common 18.0.0", - "polkadot-core-primitives 15.0.0", + "parachains-common", + "polkadot-core-primitives", "polkadot-primitives 16.0.0", "polkadot-runtime-constants", "smallvec", "sp-core", - "sp-runtime 39.0.5", + "sp-runtime", "sp-std", "staging-xcm 14.2.0", ] @@ -15790,41 +13647,6 @@ dependencies = [ "time", ] -[[package]] -name = "xcm-emulator" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be630e9b41c5d19d227162afe4cf642be24058b179fb1edbfe132f6328c7bde8" -dependencies = [ - "cumulus-pallet-parachain-system 0.15.0", - "cumulus-pallet-xcmp-queue 0.15.0", - "cumulus-primitives-core 0.14.0", - "cumulus-primitives-parachain-inherent 0.14.0", - "cumulus-test-relay-sproof-builder 0.14.0", - "frame-support 36.0.0", - "frame-system 36.1.0", - "impl-trait-for-tuples", - "lazy_static", - "log", - "pallet-balances 37.0.0", - "pallet-message-queue 39.0.1", - "parachains-common 15.0.0", - "parity-scale-codec", - "paste", - "polkadot-parachain-primitives 13.0.0", - "polkadot-primitives 14.0.0", - "polkadot-runtime-parachains 15.0.2", - "sp-arithmetic 26.0.0", - "sp-core", - "sp-crypto-hashing", - "sp-io 37.0.0", - "sp-runtime 38.0.0", - "sp-std", - "sp-tracing", - "staging-xcm 14.2.0", - "staging-xcm-executor 15.0.0", -] - [[package]] name = "xcm-emulator" version = "0.16.0" @@ -15832,33 +13654,33 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e9ca0239660dd0303f2aa492e297d0be5051fc39e792c840580e05c522fecaa" dependencies = [ "array-bytes", - "cumulus-pallet-parachain-system 0.17.1", - "cumulus-pallet-xcmp-queue 0.17.0", - "cumulus-primitives-core 0.16.0", - "cumulus-primitives-parachain-inherent 0.16.0", - "cumulus-test-relay-sproof-builder 0.16.0", - "frame-support 38.2.0", - "frame-system 38.0.0", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-test-relay-sproof-builder", + "frame-support", + "frame-system", "impl-trait-for-tuples", "lazy_static", "log", - "pallet-balances 39.0.0", - "pallet-message-queue 41.0.2", - "parachains-common 18.0.0", + "pallet-balances", + "pallet-message-queue", + "parachains-common", "parity-scale-codec", "paste", - "polkadot-parachain-primitives 14.0.0", + "polkadot-parachain-primitives", "polkadot-primitives 16.0.0", - "polkadot-runtime-parachains 17.0.2", + "polkadot-runtime-parachains", "sp-arithmetic 26.0.0", "sp-core", "sp-crypto-hashing", - "sp-io 38.0.0", - "sp-runtime 39.0.5", + "sp-io", + "sp-runtime", "sp-std", "sp-tracing", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", ] [[package]] @@ -15885,35 +13707,19 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "xcm-runtime-apis" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30fffcd9128a46abd836c37dd001c2cbe122aeb8904cd7b9bac8358564fb7b56" -dependencies = [ - "frame-support 36.0.0", - "parity-scale-codec", - "scale-info", - "sp-api 33.0.0", - "sp-std", - "sp-weights 31.0.0", - "staging-xcm 14.2.0", - "staging-xcm-executor 15.0.0", -] - [[package]] name = "xcm-runtime-apis" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2f3d96bd7362d9e6884ef6762f08737d89205a358d059a0451353f3e91985ca5" dependencies = [ - "frame-support 38.2.0", + "frame-support", "parity-scale-codec", "scale-info", - "sp-api 34.0.0", + "sp-api", "sp-weights 31.0.0", "staging-xcm 14.2.0", - "staging-xcm-executor 17.0.1", + "staging-xcm-executor", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 9c4c560e2..8e7171fc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,15 +61,15 @@ clap = { version = "4.5.0" } codec = { package = "parity-scale-codec", version = "3.6.9", default-features = false } collectives-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/collectives-paseo" } coretime-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/coretime/coretime-paseo" } -cumulus-pallet-aura-ext = { version = "0.15.0", default-features = false } -cumulus-pallet-parachain-system = { version = "0.15.0", default-features = false } -cumulus-pallet-session-benchmarking = { version = "17.0.0", default-features = false } -cumulus-pallet-xcm = { version = "0.15.0", default-features = false } -cumulus-pallet-xcmp-queue = { version = "0.15.0", default-features = false } -cumulus-primitives-aura = { version = "0.14.0", default-features = false } -cumulus-primitives-core = { version = "0.14.0", default-features = false } -cumulus-primitives-utility = { version = "0.15.0", default-features = false } -emulated-integration-tests-common = { version = "11.0.0" } +cumulus-pallet-aura-ext = { version = "0.17.0", default-features = false } +cumulus-pallet-parachain-system = { version = "0.17.1", default-features = false } +cumulus-pallet-session-benchmarking = { version = "19.0.0", default-features = false } +cumulus-pallet-xcm = { version = "0.17.0", default-features = false } +cumulus-pallet-xcmp-queue = { version = "0.17.0", default-features = false } +cumulus-primitives-aura = { version = "0.15.0", default-features = false } +cumulus-primitives-core = { version = "0.16.0", default-features = false } +cumulus-primitives-utility = { version = "0.17.0", default-features = false } +emulated-integration-tests-common = { version = "16.0.0" } enumflags2 = { version = "0.7.7" } frame-benchmarking = { version = "38.0.0", default-features = false } frame-election-provider-support = { version = "38.0.0", default-features = false } diff --git a/relay/paseo/src/genesis_config_presets.rs b/relay/paseo/src/genesis_config_presets.rs index 78d31acf3..79b1994e6 100644 --- a/relay/paseo/src/genesis_config_presets.rs +++ b/relay/paseo/src/genesis_config_presets.rs @@ -19,7 +19,7 @@ use crate::*; use babe_primitives::AuthorityId as BabeId; use pallet_staking::{Forcing, StakerStatus}; -use paseo_primitives::{AccountPublic, AssignmentId, AsyncBackingParams}; +use polkadot_primitives::{AccountPublic, AssignmentId, AsyncBackingParams}; use paseo_runtime_constants::currency::UNITS as PAS; use runtime_parachains::configuration::HostConfiguration; use sp_core::{sr25519, Pair, Public}; @@ -89,12 +89,6 @@ fn testnet_accounts() -> Vec { fn default_parachains_host_configuration() -> HostConfiguration { use polkadot_primitives::{MAX_CODE_SIZE, MAX_POV_SIZE}; - let executor_parameteres = ExecutorParams::from(&[ - MaxMemoryPages(8192), - PvfExecTimeout(PvfExecKind::Backing, 2500), - PvfExecTimeout(PvfExecKind::Approval, 15000), - ][..]); - runtime_parachains::configuration::HostConfiguration { validation_upgrade_cooldown: 2u32, validation_upgrade_delay: 2, @@ -122,7 +116,7 @@ fn default_parachains_host_configuration() -> HostConfiguration for Runtime { type Score = sp_npos_elections::VoteWeight; } +/// Dynamic params that can be adjusted at runtime. +#[dynamic_params(RuntimeParameters, pallet_parameters::Parameters::)] +pub mod dynamic_params { + use super::*; + + /// Parameters used to calculate era payouts, see + /// [`paseo_runtime_common::impls::EraPayoutParams`]. + #[dynamic_pallet_params] + #[codec(index = 0)] + pub mod inflation { + /// Minimum inflation rate used to calculate era payouts. + #[codec(index = 0)] + pub static MinInflation: Perquintill = Perquintill::from_rational(25u64, 1000); + + /// Maximum inflation rate used to calculate era payouts. + #[codec(index = 1)] + pub static MaxInflation: Perquintill = Perquintill::from_percent(10); + + /// Ideal stake ratio used to calculate era payouts. + #[codec(index = 2)] + pub static IdealStake: Perquintill = Perquintill::from_percent(75); + + /// Falloff used to calculate era payouts. + #[codec(index = 3)] + pub static Falloff: Perquintill = Perquintill::from_percent(5); + + /// Whether to use auction slots or not in the calculation of era payouts, then we subtract + /// `num_auctioned_slots.min(60) / 300` from `ideal_stake`. + /// + /// That is, we assume up to 60 parachains that are leased can reduce the ideal stake by a + /// maximum of 20%. + /// + /// With the move to agile-coretime, this parameter does not make much sense and should + /// generally be set to false. + #[codec(index = 4)] + pub static UseAuctionSlots: bool = true; + } +} + +#[cfg(feature = "runtime-benchmarks")] +impl Default for RuntimeParameters { + fn default() -> Self { + RuntimeParameters::Inflation(dynamic_params::inflation::Parameters::MinInflation( + dynamic_params::inflation::MinInflation, + Some(Perquintill::from_rational(25u64, 1000u64)), + )) + } +} + +/// Defines what origin can modify which dynamic parameters. +pub struct DynamicParameterOrigin; +impl frame_support::traits::EnsureOriginWithArg + for DynamicParameterOrigin +{ + type Success = (); + + fn try_origin( + origin: RuntimeOrigin, + key: &RuntimeParametersKey, + ) -> Result { + use crate::RuntimeParametersKey::*; + + match key { + Inflation(_) => frame_system::ensure_root(origin.clone()), + } + .map_err(|_| origin) + } + + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin(_key: &RuntimeParametersKey) -> Result { + // Provide the origin for the parameter returned by `Default`: + Ok(RuntimeOrigin::root()) + } +} + +impl pallet_parameters::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeParameters = RuntimeParameters; + type AdminOrigin = DynamicParameterOrigin; + type WeightInfo = weights::pallet_parameters::WeightInfo; +} + /// Defines how much should the inflation be for an era given its duration. pub struct EraPayout; impl pallet_staking::EraPayout for EraPayout { @@ -1927,50 +2010,6 @@ pub mod migrations { } } - /// Cancel all ongoing auctions. - /// - /// Any leases that come into existence after coretime was launched will not be served. Yet, - /// any ongoing auctions must be cancelled. - /// - /// Safety: - /// - /// - After coretime is launched, there are no auctions anymore. So if this forgotten to be - /// removed after the runtime upgrade, running this again on the next one is harmless. - /// - I am assuming scheduler `TaskName`s are unique, so removal of the scheduled entry multiple - /// times should also be fine. - pub struct CancelAuctions; - impl OnRuntimeUpgrade for CancelAuctions { - fn on_runtime_upgrade() -> Weight { - if let Err(err) = Auctions::cancel_auction(frame_system::RawOrigin::Root.into()) { - log::debug!(target: "runtime", "Cancelling auctions failed: {:?}", err); - } - // Cancel scheduled auction as well: - if let Err(err) = Scheduler::cancel_named( - pallet_custom_origins::Origin::AuctionAdmin.into(), - [ - 0x87, 0xa8, 0x71, 0xb4, 0xd6, 0x21, 0xf0, 0xb9, 0x73, 0x47, 0x5a, 0xaf, 0xcc, - 0x32, 0x61, 0x0b, 0xd7, 0x68, 0x8f, 0x15, 0x02, 0x33, 0x8a, 0xcd, 0x00, 0xee, - 0x48, 0x8a, 0xc3, 0x62, 0x0f, 0x4c, - ], - ) { - log::debug!(target: "runtime", "Cancelling scheduled auctions failed: {:?}", err); - } - use pallet_scheduler::WeightInfo as _; - use paseo_runtime_common::auctions::WeightInfo as _; - weights::paseo_runtime_common_auctions::WeightInfo::::cancel_auction() - .saturating_add(weights::pallet_scheduler::WeightInfo::::cancel_named( - ::MaxScheduledPerBlock::get(), - )) - } - } - - parameter_types! { - // This is used to bound number of pools migrating in the runtime upgrade. This is set to - // ~existing_pool_count * 2 to also account for any new pools getting created before the - // migration is actually executed. - pub const MaxPoolsToMigrate: u32 = 500; - } - /// Unreleased migrations. Add new ones here: pub type Unreleased = ( parachains_configuration::migration::v12::MigrateToV12, @@ -1991,71 +2030,12 @@ pub mod migrations { crate::xcm_config::XcmRouter, GetLegacyLeaseImpl, >, - CancelAuctions, - // Migrate NominationPools to `DelegateStake` adapter. - pallet_nomination_pools::migration::unversioned::DelegationStakeMigration< - Runtime, - MaxPoolsToMigrate, - >, - restore_corrupt_ledger_2::Migrate, ); /// Migrations/checks that do not need to be versioned and can run on every update. pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion,); } -pub mod restore_corrupt_ledger_2 { - use super::*; - use frame_system::RawOrigin; - use pallet_staking::WeightInfo; - - parameter_types! { - // see https://paseo.subscan.io/tools/format_transform, this is the public key of - // 12gmcL9eej9jRBFT26vZLF4b7aAe4P9aEYHGHFzJdmf5arPi - pub CorruptStash: AccountId = hex_literal::hex!( - "4a90f8d375290b428e580408f18359f66ef367f0f8d1d56c5d3e002ad29c8e00" - ).into(); - } - pub struct Migrate; - impl OnRuntimeUpgrade for Migrate { - fn on_runtime_upgrade() -> frame_election_provider_support::Weight { - // ensure this only runs once, in the 1.4.0 release - if System::last_runtime_upgrade_spec_version() < 1_004_000 { - let _ = pallet_staking::Pallet::::force_unstake( - RawOrigin::Root.into(), - CorruptStash::get(), - 0, - ); - log::info!( - target: LOG_TARGET, - "migrations: force unstaked {:?}", - CorruptStash::get() - ); - ::WeightInfo::force_unstake(0) - } else { - Default::default() - } - } - - #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, sp_runtime::TryRuntimeError> { - let found_corrupted = - pallet_staking::Ledger::::get(CorruptStash::get()).is_some(); - Ok(found_corrupted.encode()) - } - - #[cfg(feature = "try-runtime")] - fn post_upgrade(state: Vec) -> Result<(), sp_runtime::TryRuntimeError> { - let found_corrupted: bool = Decode::decode(&mut &state[..]) - .map_err(|_| sp_runtime::TryRuntimeError::Corruption)?; - if found_corrupted { - assert!(pallet_staking::Ledger::::get(CorruptStash::get()).is_none()); - } - Ok(()) - } - } -} - /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; diff --git a/relay/paseo/src/weights/mod.rs b/relay/paseo/src/weights/mod.rs index 15cf054a7..327ad3a94 100644 --- a/relay/paseo/src/weights/mod.rs +++ b/relay/paseo/src/weights/mod.rs @@ -30,12 +30,14 @@ pub mod pallet_indices; pub mod pallet_message_queue; pub mod pallet_multisig; pub mod pallet_nomination_pools; +pub mod pallet_parameters; pub mod pallet_preimage; pub mod pallet_proxy; pub mod pallet_referenda; pub mod pallet_scheduler; pub mod pallet_session; pub mod pallet_staking; +pub mod pallet_sudo; pub mod pallet_timestamp; pub mod pallet_treasury; pub mod pallet_utility; diff --git a/relay/paseo/src/weights/pallet_parameters.rs b/relay/paseo/src/weights/pallet_parameters.rs new file mode 100644 index 000000000..4ecc2b213 --- /dev/null +++ b/relay/paseo/src/weights/pallet_parameters.rs @@ -0,0 +1,51 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +//! Autogenerated weights for `pallet_parameters` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-04-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("polkadot-dev")`, DB CACHE: 1024 + +// Executed Command: +// target/production/polkadot +// benchmark +// pallet +// --steps=50 +// --repeat=20 +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json +// --pallet=pallet_parameters +// --chain=polkadot-dev +// --header=./polkadot/file_header.txt +// --output=./polkadot/runtime/polkadot/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::Weight}; +use core::marker::PhantomData; + +/// Weight functions for `pallet_parameters`. +pub struct WeightInfo(PhantomData); +impl pallet_parameters::WeightInfo for WeightInfo { + /// Storage: `Parameters::Parameters` (r:1 w:1) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + fn set_parameter() -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3493` + // Minimum execution time: 6_937_000 picoseconds. + Weight::from_parts(7_242_000, 0) + .saturating_add(Weight::from_parts(0, 3493)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} From c2606fc3c2ba1696abaa85067fd07973af783b3f Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 11 Feb 2025 15:03:23 +0100 Subject: [PATCH 03/14] [WIP] constants patch --- system-parachains/constants/src/paseo.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system-parachains/constants/src/paseo.rs b/system-parachains/constants/src/paseo.rs index 37267f7a6..ae982a6f4 100644 --- a/system-parachains/constants/src/paseo.rs +++ b/system-parachains/constants/src/paseo.rs @@ -152,4 +152,8 @@ pub mod fee { }] } } + + pub fn calculate_weight_to_fee(weight: &Weight) -> Balance { + ::weight_to_fee(weight) + } } From 2ed9b536d7bc9e40798d76c1ba24ecb87c3e9bec Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 11 Feb 2025 17:55:26 +0100 Subject: [PATCH 04/14] [WIP]: bridge & asset-hub --- Cargo.lock | 5 +- .../asset-hub-paseo/primitives/Cargo.toml | 4 +- .../asset-hub-paseo/primitives/src/lib.rs | 32 +- .../src/genesis_config_presets.rs | 32 +- .../asset-hub-paseo/src/impls.rs | 179 ------ system-parachains/asset-hub-paseo/src/lib.rs | 87 ++- .../cumulus_pallet_parachain_system.rs | 18 +- .../src/weights/cumulus_pallet_xcmp_queue.rs | 38 +- .../src/weights/frame_system.rs | 66 +-- .../src/weights/pallet_asset_conversion.rs | 48 +- .../src/weights/pallet_assets_foreign.rs | 180 +++--- .../src/weights/pallet_assets_local.rs | 176 +++--- .../src/weights/pallet_assets_pool.rs | 174 +++--- .../src/weights/pallet_balances.rs | 65 +- .../src/weights/pallet_collator_selection.rs | 107 ++-- .../src/weights/pallet_message_queue.rs | 63 +- .../src/weights/pallet_multisig.rs | 72 +-- .../src/weights/pallet_nfts.rs | 274 +++++---- .../src/weights/pallet_proxy.rs | 106 ++-- .../src/weights/pallet_session.rs | 18 +- .../src/weights/pallet_timestamp.rs | 18 +- .../src/weights/pallet_uniques.rs | 130 ++-- .../src/weights/pallet_utility.rs | 42 +- .../src/weights/pallet_vesting.rs | 118 ++-- .../asset-hub-paseo/src/weights/pallet_xcm.rs | 241 ++++---- .../weights/pallet_xcm_bridge_hub_router.rs | 50 +- .../asset-hub-paseo/src/weights/xcm/mod.rs | 28 +- .../xcm/pallet_xcm_benchmarks_fungible.rs | 93 ++- .../xcm/pallet_xcm_benchmarks_generic.rs | 194 +++--- .../asset-hub-paseo/src/xcm_config.rs | 110 +++- .../asset-hub-paseo/tests/tests.rs | 560 +++++++++++------- .../asset-hub-paseo/tests/weight_trader.rs | 18 +- system-parachains/bridge-hub-paseo/Cargo.toml | 7 + .../bridge-hub-paseo/primitives/src/lib.rs | 17 +- .../src/bridge_to_ethereum_config.rs | 17 +- .../src/bridge_to_kusama_config.rs | 420 +++++++------ .../src/genesis_config_presets.rs | 25 +- system-parachains/bridge-hub-paseo/src/lib.rs | 142 ++++- .../cumulus_pallet_parachain_system.rs | 10 +- .../src/weights/cumulus_pallet_xcmp_queue.rs | 30 +- .../src/weights/frame_system.rs | 60 +- .../src/weights/pallet_balances.rs | 57 +- .../src/weights/pallet_bridge_grandpa.rs | 26 +- .../src/weights/pallet_bridge_messages.rs | 182 +++--- .../src/weights/pallet_bridge_parachains.rs | 38 +- .../src/weights/pallet_bridge_relayers.rs | 32 +- .../src/weights/pallet_collator_selection.rs | 101 ++-- .../src/weights/pallet_message_queue.rs | 42 +- .../src/weights/pallet_multisig.rs | 66 +-- .../src/weights/pallet_session.rs | 10 +- .../src/weights/pallet_timestamp.rs | 10 +- .../src/weights/pallet_utility.rs | 34 +- .../src/weights/pallet_xcm.rs | 234 ++++---- .../snowbridge_pallet_ethereum_client.rs | 30 +- .../snowbridge_pallet_inbound_queue.rs | 12 +- .../snowbridge_pallet_outbound_queue.rs | 14 +- .../src/weights/snowbridge_pallet_system.rs | 70 ++- .../bridge-hub-paseo/src/weights/xcm/mod.rs | 28 +- .../xcm/pallet_xcm_benchmarks_fungible.rs | 74 +-- .../xcm/pallet_xcm_benchmarks_generic.rs | 216 +++---- .../bridge-hub-paseo/src/xcm_config.rs | 43 +- .../bridge-hub-paseo/tests/snowbridge.rs | 171 +++++- .../bridge-hub-paseo/tests/tests.rs | 218 ++++++- 63 files changed, 3095 insertions(+), 2687 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ca6ee89d3..90878a7ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1045,7 +1045,7 @@ dependencies = [ "frame-support", "parity-scale-codec", "scale-info", - "sp-std", + "sp-core", "staging-xcm 14.2.0", "system-parachains-constants 1.0.0", ] @@ -1420,6 +1420,8 @@ dependencies = [ "bp-polkadot-core", "bp-relayers", "bp-runtime", + "bp-xcm-bridge-hub", + "bp-xcm-bridge-hub-router", "bridge-hub-common", "bridge-hub-test-utils", "bridge-runtime-common", @@ -1475,6 +1477,7 @@ dependencies = [ "snowbridge-core", "snowbridge-outbound-queue-runtime-api", "snowbridge-pallet-ethereum-client", + "snowbridge-pallet-ethereum-client-fixtures", "snowbridge-pallet-inbound-queue", "snowbridge-pallet-outbound-queue", "snowbridge-pallet-system", diff --git a/system-parachains/asset-hub-paseo/primitives/Cargo.toml b/system-parachains/asset-hub-paseo/primitives/Cargo.toml index fd2453933..70a9b90df 100644 --- a/system-parachains/asset-hub-paseo/primitives/Cargo.toml +++ b/system-parachains/asset-hub-paseo/primitives/Cargo.toml @@ -19,7 +19,7 @@ bp-xcm-bridge-hub-router = { workspace = true } # Substrate Based Dependencies frame-support = { workspace = true } -sp-std = { workspace = true } +sp-core = { workspace = true } # Polkadot xcm = { workspace = true } @@ -31,7 +31,7 @@ std = [ "codec/std", "frame-support/std", "scale-info/std", - "sp-std/std", + "sp-core/std", "system-parachains-constants/std", "xcm/std", ] diff --git a/system-parachains/asset-hub-paseo/primitives/src/lib.rs b/system-parachains/asset-hub-paseo/primitives/src/lib.rs index 5d844135b..55a44300f 100644 --- a/system-parachains/asset-hub-paseo/primitives/src/lib.rs +++ b/system-parachains/asset-hub-paseo/primitives/src/lib.rs @@ -18,22 +18,24 @@ #![cfg_attr(not(feature = "std"), no_std)] +extern crate alloc; + use codec::{Decode, Encode}; use scale_info::TypeInfo; -use xcm::prelude::*; pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; +use xcm::latest::prelude::*; use system_parachains_constants::paseo::currency::*; -/// `AssetHubPaseo` Runtime `Call` enum. +/// `AssetHubPolkadot` Runtime `Call` enum. /// -/// The enum represents a subset of possible `Call`s we can send to `AssetHubPaseo` chain. +/// The enum represents a subset of possible `Call`s we can send to `AssetHubPolkadot` chain. /// Ideally this code would be auto-generated from metadata, because we want to /// avoid depending directly on the ENTIRE runtime just to get the encoding of `Dispatchable`s. /// /// All entries here (like pretty much in the entire file) must be kept in sync with -/// `AssetHubPaseo` `construct_runtime`, so that we maintain SCALE-compatibility. +/// `AssetHubPolkadot` `construct_runtime`, so that we maintain SCALE-compatibility. #[allow(clippy::large_enum_variant)] #[derive(Encode, Decode, Debug, PartialEq, Eq, Clone, TypeInfo)] pub enum Call { @@ -46,27 +48,31 @@ frame_support::parameter_types! { /// Some sane weight to execute `xcm::Transact(pallet-xcm-bridge-hub-router::Call::report_bridge_status)`. pub const XcmBridgeHubRouterTransactCallMaxWeight: Weight = Weight::from_parts(200_000_000, 6144); - /// Message that is sent to the sibling Kusama Asset Hub when the with-Paseo bridge becomes congested. - pub CongestedMessage: Xcm<()> = build_congestion_message(true).into(); - /// Message that is sent to the sibling Kusama Asset Hub when the with-Paseo bridge becomes uncongested. - pub UncongestedMessage: Xcm<()> = build_congestion_message(false).into(); - /// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub. pub const CreateForeignAssetDeposit: u128 = system_para_deposit(1, 190); } -fn build_congestion_message(is_congested: bool) -> sp_std::vec::Vec> { - sp_std::vec![ +/// Builds an (un)congestion XCM program with the `report_bridge_status` call for +/// `ToKusamaXcmRouter`. +pub fn build_congestion_message( + bridge_id: sp_core::H256, + is_congested: bool, +) -> alloc::vec::Vec> { + alloc::vec![ UnpaidExecution { weight_limit: Unlimited, check_origin: None }, Transact { origin_kind: OriginKind::Xcm, require_weight_at_most: XcmBridgeHubRouterTransactCallMaxWeight::get(), call: Call::ToKusamaXcmRouter(XcmBridgeHubRouterCall::report_bridge_status { - bridge_id: Default::default(), + bridge_id, is_congested, }) .encode() .into(), - } + }, + ExpectTransactStatus(MaybeErrorCode::Success), ] } + +/// Identifier of AssetHubPolkadot in the Polkadot relay chain. +pub const ASSET_HUB_PASEO_PARACHAIN_ID: u32 = 1000; diff --git a/system-parachains/asset-hub-paseo/src/genesis_config_presets.rs b/system-parachains/asset-hub-paseo/src/genesis_config_presets.rs index e254a5f4c..c75d0fab5 100644 --- a/system-parachains/asset-hub-paseo/src/genesis_config_presets.rs +++ b/system-parachains/asset-hub-paseo/src/genesis_config_presets.rs @@ -17,9 +17,10 @@ //! Genesis configs presets for the AssetHubPolkadot runtime use crate::*; -use sp_std::vec::Vec; -use sp_genesis_builder::PresetId; +use parachains_common::AssetHubPolkadotAuraId; use sp_core::sr25519; +use sp_genesis_builder::PresetId; +use sp_std::vec::Vec; use system_parachains_constants::genesis_presets::*; use AuraId; @@ -28,13 +29,19 @@ const ASSET_HUB_PASEO_ED: Balance = ExistentialDeposit::get(); /// Invulnerable Collators for the particular case of AssetHubPaseo pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AuraId)> { vec![ - (get_account_id_from_seed::("Alice"), get_from_seed::("Alice")), - (get_account_id_from_seed::("Bob"), get_from_seed::("Bob")), + ( + get_account_id_from_seed::("Alice"), + get_from_seed::("Alice"), + ), + ( + get_account_id_from_seed::("Bob"), + get_from_seed::("Bob"), + ), ] } -fn asset_hub_paseo_genesis( - invulnerables: Vec<(AccountId, AuraId)>, +fn asset_hub_polkadot_genesis( + invulnerables: Vec<(AccountId, AssetHubPolkadotAuraId)>, endowed_accounts: Vec, id: ParaId, ) -> serde_json::Value { @@ -66,6 +73,7 @@ fn asset_hub_paseo_genesis( ) }) .collect(), + ..Default::default() }, "sudo": { "key": Some(get_account_id_from_seed::("Alice")) @@ -78,12 +86,12 @@ fn asset_hub_paseo_genesis( }) } -pub fn asset_hub_paseo_local_testnet_genesis(para_id: ParaId) -> serde_json::Value { - asset_hub_paseo_genesis(invulnerables_asset_hub_paseo(), testnet_accounts(), para_id) +pub fn asset_hub_polkadot_local_testnet_genesis(para_id: ParaId) -> serde_json::Value { + asset_hub_polkadot_genesis(invulnerables_asset_hub_paseo(), testnet_accounts(), para_id) } -fn asset_hub_paseo_development_genesis(para_id: ParaId) -> serde_json::Value { - asset_hub_paseo_local_testnet_genesis(para_id) +fn asset_hub_polkadot_development_genesis(para_id: ParaId) -> serde_json::Value { + asset_hub_polkadot_local_testnet_genesis(para_id) } /// Provides the names of the predefined genesis configs for this runtime. @@ -94,8 +102,8 @@ pub fn preset_names() -> Vec { /// Provides the JSON representation of predefined genesis config for given `id`. pub fn get_preset(id: &sp_genesis_builder::PresetId) -> Option> { let patch = match id.try_into() { - Ok("development") => asset_hub_paseo_development_genesis(1000.into()), - Ok("local_testnet") => asset_hub_paseo_local_testnet_genesis(1000.into()), + Ok("development") => asset_hub_polkadot_development_genesis(1000.into()), + Ok("local_testnet") => asset_hub_polkadot_local_testnet_genesis(1000.into()), _ => return None, }; Some( diff --git a/system-parachains/asset-hub-paseo/src/impls.rs b/system-parachains/asset-hub-paseo/src/impls.rs index 0d9a24203..151ae0c0d 100644 --- a/system-parachains/asset-hub-paseo/src/impls.rs +++ b/system-parachains/asset-hub-paseo/src/impls.rs @@ -23,13 +23,10 @@ pub mod tx_payment { ensure, pallet_prelude::{InvalidTransaction, TransactionValidityError}, traits::{ - fungibles::{Balanced as FungiblesBalanced, Inspect as FungiblesInspect}, tokens::{Fortitude, Precision, Preservation}, Defensive, OnUnbalanced, SameOrOther, }, }; - use pallet_asset_conversion::{Pallet as AssetConversion, SwapCredit}; - use pallet_asset_conversion_tx_payment::OnChargeAssetTransaction; use pallet_transaction_payment::OnChargeTransaction; use sp_core::Get; use sp_runtime::{ @@ -124,180 +121,4 @@ pub mod tx_payment { Ok(()) } } - - type LiquidityInfoOf = - <::OnChargeTransaction as OnChargeTransaction< - T, - >>::LiquidityInfo; - - /// Implements [`OnChargeAssetTransaction`] for [`pallet_asset_conversion_tx_payment`], where - /// the asset class used to pay the fee is defined with the `A` type parameter (eg. PAS - /// location) and accessed via the type implementing the [`frame_support::traits::fungibles`] - /// trait. - pub struct SwapCreditAdapter(PhantomData<(A, S)>); - impl OnChargeAssetTransaction for SwapCreditAdapter - where - A: Get, - S: SwapCredit< - T::AccountId, - Balance = T::Balance, - AssetKind = T::AssetKind, - Credit = fungibles::Credit, - >, - - T: pallet_asset_conversion_tx_payment::Config, - T::Fungibles: - fungibles::Inspect, - T::OnChargeTransaction: - OnChargeTransaction>, - { - type AssetId = T::AssetKind; - type Balance = T::Balance; - type LiquidityInfo = T::Balance; - - fn withdraw_fee( - who: &::AccountId, - _call: &::RuntimeCall, - _dispatch_info: &DispatchInfoOf<::RuntimeCall>, - asset_id: Self::AssetId, - fee: Self::Balance, - _tip: Self::Balance, - ) -> Result<(LiquidityInfoOf, Self::LiquidityInfo, T::Balance), TransactionValidityError> - { - let asset_fee = AssetConversion::::quote_price_tokens_for_exact_tokens( - asset_id.clone(), - A::get(), - fee, - true, - ) - .ok_or(InvalidTransaction::Payment)?; - - let asset_fee_credit = T::Assets::withdraw( - asset_id.clone(), - who, - asset_fee, - Precision::Exact, - Preservation::Preserve, - Fortitude::Polite, - ) - .map_err(|_| TransactionValidityError::from(InvalidTransaction::Payment))?; - - let (fee_credit, change) = match S::swap_tokens_for_exact_tokens( - vec![asset_id, A::get()], - asset_fee_credit, - fee, - ) { - Ok((fee_credit, change)) => (fee_credit, change), - Err((credit_in, _)) => { - // The swap should not error since the price quote was successful. - let _ = T::Assets::resolve(who, credit_in).defensive(); - return Err(InvalidTransaction::Payment.into()) - }, - }; - - // Should be always zero since the exact price was quoted before. - ensure!(change.peek().is_zero(), InvalidTransaction::Payment); - - Ok((Some(fee_credit), fee, asset_fee)) - } - fn correct_and_deposit_fee( - who: &::AccountId, - dispatch_info: &DispatchInfoOf<::RuntimeCall>, - post_info: &PostDispatchInfoOf<::RuntimeCall>, - corrected_fee: Self::Balance, - tip: Self::Balance, - fee_paid: LiquidityInfoOf, - _received_exchanged: Self::LiquidityInfo, - asset_id: Self::AssetId, - initial_asset_consumed: T::Balance, - ) -> Result { - let Some(fee_paid) = fee_paid else { - return Ok(Zero::zero()); - }; - // Try to refund if the fee paid is more than the corrected fee and the account was not - // removed by the dispatched function. - let (fee, fee_in_asset) = if fee_paid.peek() > corrected_fee && - !T::Assets::total_balance(asset_id.clone(), who).is_zero() - { - let refund_amount = fee_paid.peek().saturating_sub(corrected_fee); - // Check if the refund amount can be swapped back into the asset used by `who` for - // fee payment. - let refund_asset_amount = - AssetConversion::::quote_price_exact_tokens_for_tokens( - A::get(), - asset_id.clone(), - refund_amount, - true, - ) - // No refund given if it cannot be swapped back. - .unwrap_or(Zero::zero()); - - // Deposit the refund before the swap to ensure it can be processed. - let debt = match T::Assets::deposit( - asset_id.clone(), - who, - refund_asset_amount, - Precision::BestEffort, - ) { - Ok(debt) => debt, - // No refund given since it cannot be deposited. - Err(_) => fungibles::Debt::::zero(asset_id.clone()), - }; - - if debt.peek().is_zero() { - // No refund given. - (fee_paid, initial_asset_consumed) - } else { - let (refund, fee_paid) = fee_paid.split(refund_amount); - match S::swap_exact_tokens_for_tokens( - vec![A::get(), asset_id], - refund, - Some(refund_asset_amount), - ) { - Ok(refund_asset) => { - match refund_asset.offset(debt) { - Ok(SameOrOther::None) => {}, - // This arm should never be reached, as the amount of `debt` is - // expected to be exactly equal to the amount of `refund_asset` - // credit. - _ => return Err(InvalidTransaction::Payment.into()), - }; - (fee_paid, initial_asset_consumed.saturating_sub(refund_asset_amount)) - }, - // The error should not occur since swap was quoted before. - Err((refund, _)) => { - match T::Assets::settle(who, debt, Preservation::Expendable) { - Ok(dust) => - ensure!(dust.peek().is_zero(), InvalidTransaction::Payment), - // The error should not occur as the `debt` was just withdrawn - // above. - Err(_) => return Err(InvalidTransaction::Payment.into()), - }; - let fee_paid = fee_paid.merge(refund).map_err(|_| { - // The error should never occur since `fee_paid` and `refund` are - // credits of the same asset. - TransactionValidityError::from(InvalidTransaction::Payment) - })?; - (fee_paid, initial_asset_consumed) - }, - } - } - } else { - (fee_paid, initial_asset_consumed) - }; - - // Refund is already processed. - let corrected_fee = fee.peek(); - // Deposit fee. - T::OnChargeTransaction::correct_and_deposit_fee( - who, - dispatch_info, - post_info, - corrected_fee, - tip, - Some(fee), - ) - .map(|_| fee_in_asset) - } - } } diff --git a/system-parachains/asset-hub-paseo/src/lib.rs b/system-parachains/asset-hub-paseo/src/lib.rs index 02e5a2b8e..3fb73c6a0 100644 --- a/system-parachains/asset-hub-paseo/src/lib.rs +++ b/system-parachains/asset-hub-paseo/src/lib.rs @@ -100,8 +100,8 @@ use frame_support::{ parameter_types, traits::{ fungible, fungibles, tokens::imbalance::ResolveAssetTo, AsEnsureOriginWithArg, ConstBool, - ConstU32, ConstU64, ConstU8, EitherOfDiverse, Equals, InstanceFilter, NeverEnsureOrigin, - TransformOrigin, WithdrawReasons, + ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, Equals, EverythingBut, + InstanceFilter, NeverEnsureOrigin, TransformOrigin, WithdrawReasons, }, weights::{ConstantMultiplier, Weight, WeightToFee as _}, PalletId, @@ -112,7 +112,7 @@ use frame_system::{ }; use pallet_nfts::PalletFeatures; use parachains_common::{ - message_queue::*, AccountId, AuraId, AssetIdForTrustBackedAssets, + message_queue::*, AccountId, AssetHubPolkadotAuraId as AuraId, AssetIdForTrustBackedAssets, Balance, BlockNumber, Hash, Header, Nonce, Signature, }; @@ -149,10 +149,13 @@ impl_opaque_keys! { #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { + // Note: "statemint" is the legacy name for this chain. It has been renamed to + // "asset-hub-polkadot". Many wallets/tools depend on the `spec_name`, so it remains "statemint" + // for the time being. Wallets/tools should update to treat "asset-hub-polkadot" equally. spec_name: create_runtime_str!("asset-hub-paseo"), impl_name: create_runtime_str!("asset-hub-paseo"), authoring_version: 1, - spec_version: 1_003_004, + spec_version: 1_004_000, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 15, @@ -190,9 +193,16 @@ parameter_types! { pub const SS58Prefix: u8 = 0; } +pub struct VestedTransferCalls; +impl Contains for VestedTransferCalls { + fn contains(call: &RuntimeCall) -> bool { + matches!(call, RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })) + } +} + // Configure FRAME pallets to include in runtime. impl frame_system::Config for Runtime { - type BaseCallFilter = frame_support::traits::Everything; + type BaseCallFilter = EverythingBut; type BlockWeights = RuntimeBlockWeights; type BlockLength = RuntimeBlockLength; type AccountId = AccountId; @@ -370,6 +380,7 @@ impl pallet_assets::Config for Runtime { xcm_config::bridging::to_ethereum::EthereumNetwork, xcm::v4::Location, >, + xcm_config::bridging::to_kusama::KusamaAssetFromAssetHubKusama, ), ForeignCreatorsSovereignAccountOf, AccountId, @@ -760,9 +771,13 @@ impl pallet_collator_selection::Config for Runtime { impl pallet_asset_conversion_tx_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type Fungibles = LocalAndForeignAssets; - type OnChargeAssetTransaction = - impls::tx_payment::SwapCreditAdapter; + type AssetId = xcm::latest::Location; + type OnChargeAssetTransaction = pallet_asset_conversion_tx_payment::SwapAssetAdapter< + DotLocation, + NativeAndAssets, + AssetConversion, + ResolveAssetTo, + >; } parameter_types! { @@ -838,6 +853,7 @@ impl pallet_nfts::Config for Runtime { /// consensus with dynamic fees and back-pressure. pub type ToKusamaXcmRouterInstance = pallet_xcm_bridge_hub_router::Instance1; impl pallet_xcm_bridge_hub_router::Config for Runtime { + type RuntimeEvent = RuntimeEvent; type WeightInfo = weights::pallet_xcm_bridge_hub_router::WeightInfo; type UniversalLocation = xcm_config::UniversalLocation; @@ -845,25 +861,15 @@ impl pallet_xcm_bridge_hub_router::Config for Runtime type Bridges = xcm_config::bridging::NetworkExportTable; type DestinationVersion = PolkadotXcm; - #[cfg(not(feature = "runtime-benchmarks"))] - type BridgeHubOrigin = EnsureXcm>; - #[cfg(feature = "runtime-benchmarks")] - type BridgeHubOrigin = frame_support::traits::EitherOfDiverse< - // for running benchmarks - EnsureRoot, - // for running tests with `--feature runtime-benchmarks` - EnsureXcm>, - >; - + type SiblingBridgeHubLocation = xcm_config::bridging::SiblingBridgeHub; + type BridgeHubOrigin = + EitherOfDiverse, EnsureXcm>>; type ToBridgeHubSender = XcmpQueue; - type WithBridgeHubChannel = - cumulus_pallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider< - xcm_config::bridging::SiblingBridgeHubParaId, - Runtime, - >; type ByteFee = xcm_config::bridging::XcmBridgeHubRouterByteFee; type FeeAsset = xcm_config::bridging::XcmBridgeHubRouterFeeAssetId; + type LocalXcmChannelManager = + cumulus_pallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider; } pub type PoolAssetsInstance = pallet_assets::Instance3; @@ -1241,19 +1247,39 @@ impl_runtime_apis! { impl xcm_runtime_apis::fees::XcmPaymentApi for Runtime { fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result, XcmPaymentApiError> { - let acceptable_assets = vec![AssetId(xcm_config::DotLocation::get())]; + let native_asset = xcm_config::DotLocation::get(); + // We accept the native asset to pay fees. + let mut acceptable_assets = vec![AssetId(native_asset.clone())]; + // We also accept all assets in a pool with the native token. + acceptable_assets.extend( + assets_common::PoolAdapter::::get_assets_in_pool_with(native_asset) + .map_err(|()| XcmPaymentApiError::VersionedConversionFailed)? + ); PolkadotXcm::query_acceptable_payment_assets(xcm_version, acceptable_assets) } fn query_weight_to_asset_fee(weight: Weight, asset: VersionedAssetId) -> Result { - match asset.try_as::() { - Ok(asset_id) if asset_id.0 == xcm_config::DotLocation::get() => { - // for native token - Ok(WeightToFee::weight_to_fee(&weight)) + let native_asset = xcm_config::DotLocation::get(); + let fee_in_native = WeightToFee::weight_to_fee(&weight); + let latest_asset_id: Result = asset.clone().try_into(); + match latest_asset_id { + Ok(asset_id) if asset_id.0 == native_asset => { + // for native asset + Ok(fee_in_native) }, Ok(asset_id) => { - log::trace!(target: "xcm::xcm_runtime_apis", "query_weight_to_asset_fee - unhandled asset_id: {asset_id:?}!"); - Err(XcmPaymentApiError::AssetNotFound) + // Try to get current price of `asset_id` in `native_asset`. + if let Ok(Some(swapped_in_native)) = assets_common::PoolAdapter::::quote_price_tokens_for_exact_tokens( + asset_id.0.clone(), + native_asset, + fee_in_native, + true, // We include the fee. + ) { + Ok(swapped_in_native) + } else { + log::trace!(target: "xcm::xcm_runtime_apis", "query_weight_to_asset_fee - unhandled asset_id: {asset_id:?}!"); + Err(XcmPaymentApiError::AssetNotFound) + } }, Err(_) => { log::trace!(target: "xcm::xcm_runtime_apis", "query_weight_to_asset_fee - failed to convert asset: {asset:?}!"); @@ -1449,6 +1475,7 @@ impl_runtime_apis! { config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; + use frame_support::traits::WhitelistedStorageKeys; use sp_storage::TrackedStorageKey; use xcm::latest::prelude::{ Asset, Fungible, Here, InteriorLocation, Junction, Junction::*, Location, NetworkId, diff --git a/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs b/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs index 77e6d9ae9..246bee403 100644 --- a/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs +++ b/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `cumulus_pallet_parachain_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=cumulus_pallet_parachain_system // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -62,11 +62,11 @@ impl cumulus_pallet_parachain_system::WeightInfo for We // Proof Size summary in bytes: // Measured: `84` // Estimated: `3517` - // Minimum execution time: 3_590_000 picoseconds. - Weight::from_parts(3_710_000, 0) + // Minimum execution time: 5_301_000 picoseconds. + Weight::from_parts(5_500_000, 0) .saturating_add(Weight::from_parts(0, 3517)) - // Standard Error: 56_231 - .saturating_add(Weight::from_parts(191_373_331, 0).saturating_mul(n.into())) + // Standard Error: 28_546 + .saturating_add(Weight::from_parts(186_418_947, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) diff --git a/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs b/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs index ea1be07f3..27c9ddf59 100644 --- a/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs +++ b/system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `cumulus_pallet_xcmp_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=cumulus_pallet_xcmp_queue // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -53,8 +53,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `76` // Estimated: `1497` - // Minimum execution time: 6_110_000 picoseconds. - Weight::from_parts(6_320_000, 0) + // Minimum execution time: 8_320_000 picoseconds. + Weight::from_parts(8_500_000, 0) .saturating_add(Weight::from_parts(0, 1497)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -73,8 +73,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `118` // Estimated: `5487` - // Minimum execution time: 14_790_000 picoseconds. - Weight::from_parts(14_990_000, 0) + // Minimum execution time: 19_840_000 picoseconds. + Weight::from_parts(20_110_000, 0) .saturating_add(Weight::from_parts(0, 5487)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -85,8 +85,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `76` // Estimated: `2767` - // Minimum execution time: 3_950_000 picoseconds. - Weight::from_parts(4_240_000, 0) + // Minimum execution time: 5_930_000 picoseconds. + Weight::from_parts(6_130_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -97,8 +97,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `111` // Estimated: `2767` - // Minimum execution time: 5_120_000 picoseconds. - Weight::from_parts(5_430_000, 0) + // Minimum execution time: 7_300_000 picoseconds. + Weight::from_parts(7_471_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,8 +107,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_600_000 picoseconds. - Weight::from_parts(7_740_000, 0) + // Minimum execution time: 8_010_000 picoseconds. + Weight::from_parts(8_170_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) @@ -129,8 +129,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65747` // Estimated: `69212` - // Minimum execution time: 108_741_000 picoseconds. - Weight::from_parts(109_771_000, 0) + // Minimum execution time: 122_271_000 picoseconds. + Weight::from_parts(124_191_000, 0) .saturating_add(Weight::from_parts(0, 69212)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -143,8 +143,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65710` // Estimated: `69175` - // Minimum execution time: 50_430_000 picoseconds. - Weight::from_parts(51_290_000, 0) + // Minimum execution time: 57_710_000 picoseconds. + Weight::from_parts(58_331_000, 0) .saturating_add(Weight::from_parts(0, 69175)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/asset-hub-paseo/src/weights/frame_system.rs b/system-parachains/asset-hub-paseo/src/weights/frame_system.rs index 06464d874..36c785a15 100644 --- a/system-parachains/asset-hub-paseo/src/weights/frame_system.rs +++ b/system-parachains/asset-hub-paseo/src/weights/frame_system.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `frame_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=frame_system // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -52,8 +52,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_160_000 picoseconds. - Weight::from_parts(2_290_000, 0) + // Minimum execution time: 2_750_000 picoseconds. + Weight::from_parts(2_790_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 .saturating_add(Weight::from_parts(369, 0).saturating_mul(b.into())) @@ -63,11 +63,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_840_000 picoseconds. - Weight::from_parts(5_990_000, 0) + // Minimum execution time: 7_140_000 picoseconds. + Weight::from_parts(7_200_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_701, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_703, 0).saturating_mul(b.into())) } /// Storage: `System::Digest` (r:1 w:1) /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -77,8 +77,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_740_000 picoseconds. - Weight::from_parts(3_900_000, 0) + // Minimum execution time: 4_620_000 picoseconds. + Weight::from_parts(4_860_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -99,8 +99,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `164` // Estimated: `1649` - // Minimum execution time: 117_616_907_000 picoseconds. - Weight::from_parts(119_931_931_000, 0) + // Minimum execution time: 115_024_224_000 picoseconds. + Weight::from_parts(119_000_083_000, 0) .saturating_add(Weight::from_parts(0, 1649)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -112,11 +112,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_210_000 picoseconds. - Weight::from_parts(2_300_000, 0) + // Minimum execution time: 2_740_000 picoseconds. + Weight::from_parts(2_850_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_551 - .saturating_add(Weight::from_parts(856_623, 0).saturating_mul(i.into())) + // Standard Error: 3_067 + .saturating_add(Weight::from_parts(876_411, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -126,11 +126,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_170_000 picoseconds. - Weight::from_parts(2_260_000, 0) + // Minimum execution time: 2_720_000 picoseconds. + Weight::from_parts(2_860_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_133 - .saturating_add(Weight::from_parts(657_473, 0).saturating_mul(i.into())) + // Standard Error: 1_149 + .saturating_add(Weight::from_parts(665_447, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -138,13 +138,13 @@ impl frame_system::WeightInfo for WeightInfo { /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `81 + p * (69 ±0)` - // Estimated: `86 + p * (70 ±0)` - // Minimum execution time: 4_180_000 picoseconds. - Weight::from_parts(4_300_000, 0) - .saturating_add(Weight::from_parts(0, 86)) - // Standard Error: 1_407 - .saturating_add(Weight::from_parts(1_325_043, 0).saturating_mul(p.into())) + // Measured: `77 + p * (69 ±0)` + // Estimated: `82 + p * (70 ±0)` + // Minimum execution time: 5_570_000 picoseconds. + Weight::from_parts(5_640_000, 0) + .saturating_add(Weight::from_parts(0, 82)) + // Standard Error: 1_396 + .saturating_add(Weight::from_parts(1_506_594, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -155,8 +155,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 18_701_000 picoseconds. - Weight::from_parts(19_810_000, 0) + // Minimum execution time: 19_630_000 picoseconds. + Weight::from_parts(21_840_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -178,8 +178,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `186` // Estimated: `1671` - // Minimum execution time: 117_873_670_000 picoseconds. - Weight::from_parts(121_534_643_000, 0) + // Minimum execution time: 116_535_890_000 picoseconds. + Weight::from_parts(118_473_753_000, 0) .saturating_add(Weight::from_parts(0, 1671)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_asset_conversion.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_asset_conversion.rs index ac44f05e2..378f54ef6 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_asset_conversion.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_asset_conversion.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_asset_conversion` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_asset_conversion // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -65,8 +65,8 @@ impl pallet_asset_conversion::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `417` // Estimated: `6196` - // Minimum execution time: 102_801_000 picoseconds. - Weight::from_parts(103_821_000, 0) + // Minimum execution time: 109_901_000 picoseconds. + Weight::from_parts(111_231_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(5)) @@ -87,8 +87,8 @@ impl pallet_asset_conversion::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `975` // Estimated: `7404` - // Minimum execution time: 165_671_000 picoseconds. - Weight::from_parts(166_511_000, 0) + // Minimum execution time: 179_321_000 picoseconds. + Weight::from_parts(182_561_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(7)) @@ -109,8 +109,8 @@ impl pallet_asset_conversion::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1130` // Estimated: `7404` - // Minimum execution time: 154_361_000 picoseconds. - Weight::from_parts(154_951_000, 0) + // Minimum execution time: 169_251_000 picoseconds. + Weight::from_parts(170_471_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(6)) @@ -126,11 +126,11 @@ impl pallet_asset_conversion::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0 + n * (578 ±0)` // Estimated: `7404 + n * (94 ±19)` - // Minimum execution time: 108_870_000 picoseconds. - Weight::from_parts(109_971_000, 0) + // Minimum execution time: 110_591_000 picoseconds. + Weight::from_parts(111_730_000, 0) .saturating_add(Weight::from_parts(0, 7404)) - // Standard Error: 209_191 - .saturating_add(Weight::from_parts(1_171_094, 0).saturating_mul(n.into())) + // Standard Error: 209_207 + .saturating_add(Weight::from_parts(1_362_123, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 94).saturating_mul(n.into())) @@ -145,12 +145,12 @@ impl pallet_asset_conversion::WeightInfo for WeightInfo fn swap_tokens_for_exact_tokens(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0 + n * (578 ±0)` - // Estimated: `7404 + n * (94 ±7)` - // Minimum execution time: 109_721_000 picoseconds. - Weight::from_parts(110_511_000, 0) + // Estimated: `7404 + n * (94 ±10)` + // Minimum execution time: 110_931_000 picoseconds. + Weight::from_parts(111_851_000, 0) .saturating_add(Weight::from_parts(0, 7404)) - // Standard Error: 208_335 - .saturating_add(Weight::from_parts(1_150_973, 0).saturating_mul(n.into())) + // Standard Error: 208_372 + .saturating_add(Weight::from_parts(1_162_806, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 94).saturating_mul(n.into())) @@ -172,11 +172,11 @@ impl pallet_asset_conversion::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `990` // Estimated: `4689` - // Minimum execution time: 45_690_000 picoseconds. - Weight::from_parts(50_526_899, 0) + // Minimum execution time: 54_021_000 picoseconds. + Weight::from_parts(59_190_816, 0) .saturating_add(Weight::from_parts(0, 4689)) - // Standard Error: 305_837 - .saturating_add(Weight::from_parts(12_770_155, 0).saturating_mul(n.into())) + // Standard Error: 308_143 + .saturating_add(Weight::from_parts(13_080_167, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_assets_foreign.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_assets_foreign.rs index 241af8f06..6131b8a4f 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_assets_foreign.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_assets_foreign.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_assets // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -57,10 +57,10 @@ impl pallet_assets::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: - // Measured: `144` + // Measured: `176` // Estimated: `4273` - // Minimum execution time: 34_340_000 picoseconds. - Weight::from_parts(34_900_000, 0) + // Minimum execution time: 40_270_000 picoseconds. + Weight::from_parts(41_170_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -73,8 +73,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4` // Estimated: `4273` - // Minimum execution time: 12_420_000 picoseconds. - Weight::from_parts(12_690_000, 0) + // Minimum execution time: 16_410_000 picoseconds. + Weight::from_parts(16_900_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -85,8 +85,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 13_220_000 picoseconds. - Weight::from_parts(13_620_000, 0) + // Minimum execution time: 15_190_000 picoseconds. + Weight::from_parts(15_720_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -104,11 +104,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `84 + c * (208 ±0)` // Estimated: `4273 + c * (3207 ±0)` - // Minimum execution time: 18_850_000 picoseconds. - Weight::from_parts(19_110_000, 0) + // Minimum execution time: 21_421_000 picoseconds. + Weight::from_parts(21_910_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 7_976 - .saturating_add(Weight::from_parts(15_456_074, 0).saturating_mul(c.into())) + // Standard Error: 7_723 + .saturating_add(Weight::from_parts(17_364_771, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -126,11 +126,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `413 + a * (86 ±0)` // Estimated: `4273 + a * (3221 ±0)` - // Minimum execution time: 19_010_000 picoseconds. - Weight::from_parts(19_360_000, 0) + // Minimum execution time: 20_760_000 picoseconds. + Weight::from_parts(21_190_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 4_807 - .saturating_add(Weight::from_parts(17_596_418, 0).saturating_mul(a.into())) + // Standard Error: 4_750 + .saturating_add(Weight::from_parts(18_805_488, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -145,8 +145,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 15_400_000 picoseconds. - Weight::from_parts(15_930_000, 0) + // Minimum execution time: 19_040_000 picoseconds. + Weight::from_parts(19_540_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -159,8 +159,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 25_911_000 picoseconds. - Weight::from_parts(26_290_000, 0) + // Minimum execution time: 30_770_000 picoseconds. + Weight::from_parts(31_450_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -173,8 +173,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 34_380_000 picoseconds. - Weight::from_parts(34_910_000, 0) + // Minimum execution time: 39_421_000 picoseconds. + Weight::from_parts(39_820_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -189,8 +189,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `389` // Estimated: `7404` - // Minimum execution time: 48_080_000 picoseconds. - Weight::from_parts(48_701_000, 0) + // Minimum execution time: 54_440_000 picoseconds. + Weight::from_parts(55_270_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -205,8 +205,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `389` // Estimated: `7404` - // Minimum execution time: 43_040_000 picoseconds. - Weight::from_parts(43_750_000, 0) + // Minimum execution time: 49_650_000 picoseconds. + Weight::from_parts(50_411_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -221,8 +221,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `389` // Estimated: `7404` - // Minimum execution time: 48_010_000 picoseconds. - Weight::from_parts(48_681_000, 0) + // Minimum execution time: 54_851_000 picoseconds. + Weight::from_parts(55_420_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -235,8 +235,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 17_470_000 picoseconds. - Weight::from_parts(17_810_000, 0) + // Minimum execution time: 21_170_000 picoseconds. + Weight::from_parts(21_720_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -249,8 +249,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 17_920_000 picoseconds. - Weight::from_parts(18_370_000, 0) + // Minimum execution time: 21_330_000 picoseconds. + Weight::from_parts(21_810_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -261,8 +261,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 12_940_000 picoseconds. - Weight::from_parts(13_240_000, 0) + // Minimum execution time: 14_610_000 picoseconds. + Weight::from_parts(15_060_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -273,8 +273,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 13_140_000 picoseconds. - Weight::from_parts(13_480_000, 0) + // Minimum execution time: 14_820_000 picoseconds. + Weight::from_parts(15_210_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -287,8 +287,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 15_930_000 picoseconds. - Weight::from_parts(16_420_000, 0) + // Minimum execution time: 19_660_000 picoseconds. + Weight::from_parts(20_141_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -299,8 +299,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 13_880_000 picoseconds. - Weight::from_parts(14_440_000, 0) + // Minimum execution time: 16_540_000 picoseconds. + Weight::from_parts(16_890_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -319,13 +319,13 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 30_180_000 picoseconds. - Weight::from_parts(30_976_402, 0) + // Minimum execution time: 34_030_000 picoseconds. + Weight::from_parts(35_089_492, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 183 - .saturating_add(Weight::from_parts(1_304, 0).saturating_mul(n.into())) - // Standard Error: 183 - .saturating_add(Weight::from_parts(802, 0).saturating_mul(s.into())) + // Standard Error: 177 + .saturating_add(Weight::from_parts(1_764, 0).saturating_mul(n.into())) + // Standard Error: 177 + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -337,8 +337,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `406` // Estimated: `4273` - // Minimum execution time: 29_850_000 picoseconds. - Weight::from_parts(30_440_000, 0) + // Minimum execution time: 34_430_000 picoseconds. + Weight::from_parts(34_910_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -353,17 +353,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn force_set_metadata(n: u32, s: u32, ) -> Weight { + fn force_set_metadata(n: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `81` // Estimated: `4273` - // Minimum execution time: 14_051_000 picoseconds. - Weight::from_parts(14_512_286, 0) + // Minimum execution time: 17_540_000 picoseconds. + Weight::from_parts(18_212_910, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 124 - .saturating_add(Weight::from_parts(1_237, 0).saturating_mul(n.into())) - // Standard Error: 124 - .saturating_add(Weight::from_parts(1_221, 0).saturating_mul(s.into())) + // Standard Error: 158 + .saturating_add(Weight::from_parts(150, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -375,8 +373,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `406` // Estimated: `4273` - // Minimum execution time: 28_780_000 picoseconds. - Weight::from_parts(29_261_000, 0) + // Minimum execution time: 32_790_000 picoseconds. + Weight::from_parts(33_290_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -387,8 +385,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 12_570_000 picoseconds. - Weight::from_parts(12_990_000, 0) + // Minimum execution time: 15_010_000 picoseconds. + Weight::from_parts(15_430_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -401,8 +399,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 33_931_000 picoseconds. - Weight::from_parts(34_370_000, 0) + // Minimum execution time: 39_251_000 picoseconds. + Weight::from_parts(39_751_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -419,8 +417,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `559` // Estimated: `7404` - // Minimum execution time: 70_990_000 picoseconds. - Weight::from_parts(71_981_000, 0) + // Minimum execution time: 79_801_000 picoseconds. + Weight::from_parts(80_730_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -433,8 +431,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `446` // Estimated: `4273` - // Minimum execution time: 36_201_000 picoseconds. - Weight::from_parts(36_881_000, 0) + // Minimum execution time: 41_470_000 picoseconds. + Weight::from_parts(41_880_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -447,8 +445,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `446` // Estimated: `4273` - // Minimum execution time: 36_700_000 picoseconds. - Weight::from_parts(37_191_000, 0) + // Minimum execution time: 41_420_000 picoseconds. + Weight::from_parts(42_200_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -459,8 +457,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 14_580_000 picoseconds. - Weight::from_parts(14_950_000, 0) + // Minimum execution time: 17_170_000 picoseconds. + Weight::from_parts(17_820_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -475,8 +473,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `345` // Estimated: `4273` - // Minimum execution time: 36_581_000 picoseconds. - Weight::from_parts(37_130_000, 0) + // Minimum execution time: 42_890_000 picoseconds. + Weight::from_parts(43_380_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -489,8 +487,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 33_030_000 picoseconds. - Weight::from_parts(33_650_000, 0) + // Minimum execution time: 38_370_000 picoseconds. + Weight::from_parts(39_080_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -505,8 +503,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `471` // Estimated: `4273` - // Minimum execution time: 34_060_000 picoseconds. - Weight::from_parts(34_620_000, 0) + // Minimum execution time: 40_551_000 picoseconds. + Weight::from_parts(41_161_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -519,8 +517,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `401` // Estimated: `4273` - // Minimum execution time: 31_020_000 picoseconds. - Weight::from_parts(31_460_000, 0) + // Minimum execution time: 36_560_000 picoseconds. + Weight::from_parts(37_240_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -533,10 +531,26 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 17_490_000 picoseconds. - Weight::from_parts(18_020_000, 0) + // Minimum execution time: 21_440_000 picoseconds. + Weight::from_parts(21_930_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `ForeignAssets::Asset` (r:1 w:1) + /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Account` (r:2 w:2) + /// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `389` + // Estimated: `7404` + // Minimum execution time: 66_530_000 picoseconds. + Weight::from_parts(67_260_000, 0) + .saturating_add(Weight::from_parts(0, 7404)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_assets_local.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_assets_local.rs index 6f77c65c1..4a311986a 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_assets_local.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_assets_local.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_assets // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -57,8 +57,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `146` // Estimated: `3675` - // Minimum execution time: 29_110_000 picoseconds. - Weight::from_parts(29_780_000, 0) + // Minimum execution time: 35_230_000 picoseconds. + Weight::from_parts(36_160_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -71,8 +71,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `6` // Estimated: `3675` - // Minimum execution time: 10_640_000 picoseconds. - Weight::from_parts(10_940_000, 0) + // Minimum execution time: 15_430_000 picoseconds. + Weight::from_parts(16_210_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -83,8 +83,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `277` // Estimated: `3675` - // Minimum execution time: 11_391_000 picoseconds. - Weight::from_parts(11_670_000, 0) + // Minimum execution time: 13_710_000 picoseconds. + Weight::from_parts(14_250_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -102,11 +102,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `85 + c * (208 ±0)` // Estimated: `3675 + c * (2609 ±0)` - // Minimum execution time: 16_120_000 picoseconds. - Weight::from_parts(16_460_000, 0) + // Minimum execution time: 19_880_000 picoseconds. + Weight::from_parts(20_220_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 7_877 - .saturating_add(Weight::from_parts(15_368_399, 0).saturating_mul(c.into())) + // Standard Error: 7_812 + .saturating_add(Weight::from_parts(17_303_174, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -124,11 +124,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `414 + a * (86 ±0)` // Estimated: `3675 + a * (2623 ±0)` - // Minimum execution time: 16_010_000 picoseconds. - Weight::from_parts(16_550_000, 0) + // Minimum execution time: 19_140_000 picoseconds. + Weight::from_parts(19_590_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 4_810 - .saturating_add(Weight::from_parts(17_531_920, 0).saturating_mul(a.into())) + // Standard Error: 4_787 + .saturating_add(Weight::from_parts(18_639_605, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -143,8 +143,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 13_280_000 picoseconds. - Weight::from_parts(13_570_000, 0) + // Minimum execution time: 18_120_000 picoseconds. + Weight::from_parts(18_480_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -157,8 +157,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 23_451_000 picoseconds. - Weight::from_parts(23_910_000, 0) + // Minimum execution time: 29_190_000 picoseconds. + Weight::from_parts(29_670_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -171,8 +171,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3675` - // Minimum execution time: 31_181_000 picoseconds. - Weight::from_parts(31_660_000, 0) + // Minimum execution time: 37_260_000 picoseconds. + Weight::from_parts(37_830_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -187,8 +187,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `390` // Estimated: `6208` - // Minimum execution time: 43_870_000 picoseconds. - Weight::from_parts(44_750_000, 0) + // Minimum execution time: 51_770_000 picoseconds. + Weight::from_parts(52_360_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -203,8 +203,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `390` // Estimated: `6208` - // Minimum execution time: 39_410_000 picoseconds. - Weight::from_parts(40_120_000, 0) + // Minimum execution time: 47_060_000 picoseconds. + Weight::from_parts(47_700_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -219,8 +219,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `390` // Estimated: `6208` - // Minimum execution time: 44_140_000 picoseconds. - Weight::from_parts(44_750_000, 0) + // Minimum execution time: 51_891_000 picoseconds. + Weight::from_parts(52_730_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -233,8 +233,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3675` - // Minimum execution time: 15_730_000 picoseconds. - Weight::from_parts(16_180_000, 0) + // Minimum execution time: 20_190_000 picoseconds. + Weight::from_parts(20_610_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -247,8 +247,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3675` - // Minimum execution time: 15_790_000 picoseconds. - Weight::from_parts(16_340_000, 0) + // Minimum execution time: 20_441_000 picoseconds. + Weight::from_parts(20_830_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -259,8 +259,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `277` // Estimated: `3675` - // Minimum execution time: 10_880_000 picoseconds. - Weight::from_parts(11_440_000, 0) + // Minimum execution time: 13_570_000 picoseconds. + Weight::from_parts(14_001_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -271,8 +271,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `277` // Estimated: `3675` - // Minimum execution time: 11_121_000 picoseconds. - Weight::from_parts(11_520_000, 0) + // Minimum execution time: 13_750_000 picoseconds. + Weight::from_parts(14_110_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -285,8 +285,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 13_440_000 picoseconds. - Weight::from_parts(13_980_000, 0) + // Minimum execution time: 18_440_000 picoseconds. + Weight::from_parts(18_921_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -297,8 +297,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 11_910_000 picoseconds. - Weight::from_parts(12_310_000, 0) + // Minimum execution time: 15_360_000 picoseconds. + Weight::from_parts(15_880_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -317,13 +317,13 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 27_830_000 picoseconds. - Weight::from_parts(28_670_378, 0) + // Minimum execution time: 33_060_000 picoseconds. + Weight::from_parts(33_930_435, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 199 - .saturating_add(Weight::from_parts(803, 0).saturating_mul(n.into())) - // Standard Error: 199 - .saturating_add(Weight::from_parts(986, 0).saturating_mul(s.into())) + // Standard Error: 196 + .saturating_add(Weight::from_parts(341, 0).saturating_mul(n.into())) + // Standard Error: 196 + .saturating_add(Weight::from_parts(1_283, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -335,8 +335,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `407` // Estimated: `3675` - // Minimum execution time: 27_480_000 picoseconds. - Weight::from_parts(27_831_000, 0) + // Minimum execution time: 32_940_000 picoseconds. + Weight::from_parts(33_501_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -351,17 +351,13 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn force_set_metadata(n: u32, s: u32, ) -> Weight { + fn force_set_metadata(_n: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `82` // Estimated: `3675` - // Minimum execution time: 12_450_000 picoseconds. - Weight::from_parts(12_916_372, 0) + // Minimum execution time: 16_970_000 picoseconds. + Weight::from_parts(17_763_742, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 134 - .saturating_add(Weight::from_parts(1_321, 0).saturating_mul(n.into())) - // Standard Error: 134 - .saturating_add(Weight::from_parts(1_107, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -373,8 +369,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `407` // Estimated: `3675` - // Minimum execution time: 26_880_000 picoseconds. - Weight::from_parts(27_530_000, 0) + // Minimum execution time: 32_261_000 picoseconds. + Weight::from_parts(32_710_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -385,8 +381,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 11_360_000 picoseconds. - Weight::from_parts(11_740_000, 0) + // Minimum execution time: 14_750_000 picoseconds. + Weight::from_parts(15_090_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -399,8 +395,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `277` // Estimated: `3675` - // Minimum execution time: 31_920_000 picoseconds. - Weight::from_parts(32_490_000, 0) + // Minimum execution time: 37_550_000 picoseconds. + Weight::from_parts(38_260_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -417,8 +413,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `560` // Estimated: `6208` - // Minimum execution time: 66_221_000 picoseconds. - Weight::from_parts(67_010_000, 0) + // Minimum execution time: 76_520_000 picoseconds. + Weight::from_parts(77_520_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -431,8 +427,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `447` // Estimated: `3675` - // Minimum execution time: 33_650_000 picoseconds. - Weight::from_parts(34_260_000, 0) + // Minimum execution time: 39_870_000 picoseconds. + Weight::from_parts(40_470_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -445,8 +441,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `447` // Estimated: `3675` - // Minimum execution time: 34_010_000 picoseconds. - Weight::from_parts(34_421_000, 0) + // Minimum execution time: 39_760_000 picoseconds. + Weight::from_parts(40_700_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -457,8 +453,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 12_671_000 picoseconds. - Weight::from_parts(13_010_000, 0) + // Minimum execution time: 16_200_000 picoseconds. + Weight::from_parts(16_660_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -473,8 +469,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `346` // Estimated: `3675` - // Minimum execution time: 34_280_000 picoseconds. - Weight::from_parts(34_910_000, 0) + // Minimum execution time: 40_860_000 picoseconds. + Weight::from_parts(41_421_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -487,8 +483,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `243` // Estimated: `3675` - // Minimum execution time: 31_260_000 picoseconds. - Weight::from_parts(31_870_000, 0) + // Minimum execution time: 36_530_000 picoseconds. + Weight::from_parts(37_291_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -503,8 +499,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `472` // Estimated: `3675` - // Minimum execution time: 31_790_000 picoseconds. - Weight::from_parts(32_490_000, 0) + // Minimum execution time: 39_140_000 picoseconds. + Weight::from_parts(39_800_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -517,8 +513,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `402` // Estimated: `3675` - // Minimum execution time: 28_960_000 picoseconds. - Weight::from_parts(29_550_000, 0) + // Minimum execution time: 35_141_000 picoseconds. + Weight::from_parts(35_790_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -531,10 +527,26 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `351` // Estimated: `3675` - // Minimum execution time: 15_671_000 picoseconds. - Weight::from_parts(16_150_000, 0) + // Minimum execution time: 20_160_000 picoseconds. + Weight::from_parts(20_710_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `390` + // Estimated: `6208` + // Minimum execution time: 63_060_000 picoseconds. + Weight::from_parts(63_710_000, 0) + .saturating_add(Weight::from_parts(0, 6208)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_assets_pool.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_assets_pool.rs index 32c2eed3b..7ac336cf6 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_assets_pool.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_assets_pool.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_assets // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -63,8 +63,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3675` - // Minimum execution time: 12_111_000 picoseconds. - Weight::from_parts(12_460_000, 0) + // Minimum execution time: 16_170_000 picoseconds. + Weight::from_parts(16_701_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -75,8 +75,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 11_880_000 picoseconds. - Weight::from_parts(12_360_000, 0) + // Minimum execution time: 14_920_000 picoseconds. + Weight::from_parts(15_260_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -94,11 +94,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `122 + c * (208 ±0)` // Estimated: `3675 + c * (2609 ±0)` - // Minimum execution time: 16_880_000 picoseconds. - Weight::from_parts(17_160_000, 0) + // Minimum execution time: 20_950_000 picoseconds. + Weight::from_parts(21_350_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 7_857 - .saturating_add(Weight::from_parts(15_295_812, 0).saturating_mul(c.into())) + // Standard Error: 7_906 + .saturating_add(Weight::from_parts(17_318_146, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -116,11 +116,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `451 + a * (86 ±0)` // Estimated: `3675 + a * (2623 ±0)` - // Minimum execution time: 17_150_000 picoseconds. - Weight::from_parts(17_430_000, 0) + // Minimum execution time: 20_461_000 picoseconds. + Weight::from_parts(20_910_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 4_639 - .saturating_add(Weight::from_parts(17_502_719, 0).saturating_mul(a.into())) + // Standard Error: 4_746 + .saturating_add(Weight::from_parts(18_669_337, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -135,8 +135,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 13_921_000 picoseconds. - Weight::from_parts(14_220_000, 0) + // Minimum execution time: 18_790_000 picoseconds. + Weight::from_parts(19_280_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -149,8 +149,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 24_000_000 picoseconds. - Weight::from_parts(24_600_000, 0) + // Minimum execution time: 30_121_000 picoseconds. + Weight::from_parts(30_540_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -163,8 +163,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 31_660_000 picoseconds. - Weight::from_parts(32_130_000, 0) + // Minimum execution time: 37_860_000 picoseconds. + Weight::from_parts(38_510_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -179,8 +179,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `427` // Estimated: `6208` - // Minimum execution time: 44_450_000 picoseconds. - Weight::from_parts(45_120_000, 0) + // Minimum execution time: 52_711_000 picoseconds. + Weight::from_parts(53_390_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -195,8 +195,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `427` // Estimated: `6208` - // Minimum execution time: 39_830_000 picoseconds. - Weight::from_parts(40_510_000, 0) + // Minimum execution time: 47_490_000 picoseconds. + Weight::from_parts(48_260_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -211,8 +211,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `427` // Estimated: `6208` - // Minimum execution time: 44_321_000 picoseconds. - Weight::from_parts(45_140_000, 0) + // Minimum execution time: 52_740_000 picoseconds. + Weight::from_parts(53_411_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -225,8 +225,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 16_330_000 picoseconds. - Weight::from_parts(16_780_000, 0) + // Minimum execution time: 20_920_000 picoseconds. + Weight::from_parts(21_420_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -239,8 +239,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 16_340_000 picoseconds. - Weight::from_parts(16_680_000, 0) + // Minimum execution time: 21_130_000 picoseconds. + Weight::from_parts(21_650_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -251,8 +251,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 11_730_000 picoseconds. - Weight::from_parts(12_090_000, 0) + // Minimum execution time: 14_380_000 picoseconds. + Weight::from_parts(14_820_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -263,8 +263,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 11_750_000 picoseconds. - Weight::from_parts(12_090_000, 0) + // Minimum execution time: 14_490_000 picoseconds. + Weight::from_parts(14_930_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -277,8 +277,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 14_570_000 picoseconds. - Weight::from_parts(14_990_000, 0) + // Minimum execution time: 19_320_000 picoseconds. + Weight::from_parts(19_800_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -289,8 +289,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 12_841_000 picoseconds. - Weight::from_parts(13_250_000, 0) + // Minimum execution time: 16_070_000 picoseconds. + Weight::from_parts(16_720_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -305,17 +305,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn set_metadata(n: u32, s: u32, ) -> Weight { + fn set_metadata(_n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 14_370_000 picoseconds. - Weight::from_parts(15_057_226, 0) + // Minimum execution time: 18_240_000 picoseconds. + Weight::from_parts(19_078_931, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 150 - .saturating_add(Weight::from_parts(2_885, 0).saturating_mul(n.into())) - // Standard Error: 150 - .saturating_add(Weight::from_parts(1_096, 0).saturating_mul(s.into())) + // Standard Error: 157 + .saturating_add(Weight::from_parts(1_277, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -327,8 +325,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `444` // Estimated: `3675` - // Minimum execution time: 15_180_000 picoseconds. - Weight::from_parts(15_610_000, 0) + // Minimum execution time: 19_671_000 picoseconds. + Weight::from_parts(20_300_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -343,17 +341,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn force_set_metadata(n: u32, s: u32, ) -> Weight { + fn force_set_metadata(n: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `119` // Estimated: `3675` - // Minimum execution time: 13_160_000 picoseconds. - Weight::from_parts(13_613_522, 0) + // Minimum execution time: 17_880_000 picoseconds. + Weight::from_parts(18_562_973, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 125 - .saturating_add(Weight::from_parts(2_284, 0).saturating_mul(n.into())) - // Standard Error: 125 - .saturating_add(Weight::from_parts(1_925, 0).saturating_mul(s.into())) + // Standard Error: 159 + .saturating_add(Weight::from_parts(658, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -365,8 +361,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `444` // Estimated: `3675` - // Minimum execution time: 14_880_000 picoseconds. - Weight::from_parts(15_240_000, 0) + // Minimum execution time: 19_050_000 picoseconds. + Weight::from_parts(19_600_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -377,8 +373,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 12_320_000 picoseconds. - Weight::from_parts(12_590_000, 0) + // Minimum execution time: 15_330_000 picoseconds. + Weight::from_parts(15_761_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -391,8 +387,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 32_590_000 picoseconds. - Weight::from_parts(33_121_000, 0) + // Minimum execution time: 38_810_000 picoseconds. + Weight::from_parts(39_421_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -409,8 +405,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `597` // Estimated: `6208` - // Minimum execution time: 66_820_000 picoseconds. - Weight::from_parts(67_640_000, 0) + // Minimum execution time: 77_141_000 picoseconds. + Weight::from_parts(78_251_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -423,8 +419,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `484` // Estimated: `3675` - // Minimum execution time: 34_200_000 picoseconds. - Weight::from_parts(34_810_000, 0) + // Minimum execution time: 40_730_000 picoseconds. + Weight::from_parts(41_391_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -437,8 +433,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `484` // Estimated: `3675` - // Minimum execution time: 34_540_000 picoseconds. - Weight::from_parts(35_200_000, 0) + // Minimum execution time: 40_950_000 picoseconds. + Weight::from_parts(41_481_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -449,8 +445,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 13_360_000 picoseconds. - Weight::from_parts(13_650_000, 0) + // Minimum execution time: 16_830_000 picoseconds. + Weight::from_parts(17_280_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -465,8 +461,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `383` // Estimated: `3675` - // Minimum execution time: 34_570_000 picoseconds. - Weight::from_parts(35_281_000, 0) + // Minimum execution time: 41_870_000 picoseconds. + Weight::from_parts(42_420_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -479,8 +475,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 31_800_000 picoseconds. - Weight::from_parts(32_290_000, 0) + // Minimum execution time: 37_710_000 picoseconds. + Weight::from_parts(38_280_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -495,8 +491,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `509` // Estimated: `3675` - // Minimum execution time: 32_560_000 picoseconds. - Weight::from_parts(33_080_000, 0) + // Minimum execution time: 39_901_000 picoseconds. + Weight::from_parts(40_750_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -509,8 +505,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `439` // Estimated: `3675` - // Minimum execution time: 29_660_000 picoseconds. - Weight::from_parts(30_130_000, 0) + // Minimum execution time: 36_210_000 picoseconds. + Weight::from_parts(36_840_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -523,10 +519,26 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 16_181_000 picoseconds. - Weight::from_parts(16_640_000, 0) + // Minimum execution time: 21_190_000 picoseconds. + Weight::from_parts(21_640_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `PoolAssets::Asset` (r:1 w:1) + /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `PoolAssets::Account` (r:2 w:2) + /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `6208` + // Minimum execution time: 63_550_000 picoseconds. + Weight::from_parts(64_391_000, 0) + .saturating_add(Weight::from_parts(0, 6208)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_balances.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_balances.rs index 471751e3b..e2eb1cbb4 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_balances.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_balances.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_balances // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -53,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 52_060_000 picoseconds. - Weight::from_parts(53_041_000, 0) + // Minimum execution time: 59_380_000 picoseconds. + Weight::from_parts(59_621_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 41_070_000 picoseconds. - Weight::from_parts(41_311_000, 0) + // Minimum execution time: 46_951_000 picoseconds. + Weight::from_parts(47_681_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 16_520_000 picoseconds. - Weight::from_parts(16_950_000, 0) + // Minimum execution time: 20_360_000 picoseconds. + Weight::from_parts(20_750_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 22_560_000 picoseconds. - Weight::from_parts(23_210_000, 0) + // Minimum execution time: 29_420_000 picoseconds. + Weight::from_parts(29_880_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -101,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `6196` - // Minimum execution time: 54_891_000 picoseconds. - Weight::from_parts(56_030_000, 0) + // Minimum execution time: 65_001_000 picoseconds. + Weight::from_parts(65_390_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -113,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 51_210_000 picoseconds. - Weight::from_parts(51_860_000, 0) + // Minimum execution time: 58_581_000 picoseconds. + Weight::from_parts(58_991_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 19_810_000 picoseconds. - Weight::from_parts(20_130_000, 0) + // Minimum execution time: 24_440_000 picoseconds. + Weight::from_parts(24_830_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -138,40 +138,37 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (136 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 18_150_000 picoseconds. - Weight::from_parts(18_390_000, 0) + // Minimum execution time: 22_520_000 picoseconds. + Weight::from_parts(22_550_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 12_239 - .saturating_add(Weight::from_parts(15_641_439, 0).saturating_mul(u.into())) + // Standard Error: 13_432 + .saturating_add(Weight::from_parts(17_594_906, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) } - /// Storage: `Balances::InactiveIssuance` (r:1 w:0) - /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn force_adjust_total_issuance() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `1501` - // Minimum execution time: 6_510_000 picoseconds. - Weight::from_parts(6_780_000, 0) - .saturating_add(Weight::from_parts(0, 1501)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `0` + // Minimum execution time: 7_660_000 picoseconds. + Weight::from_parts(7_900_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn burn_allow_death() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 32_510_000 picoseconds. - Weight::from_parts(32_860_000, 0) + // Minimum execution time: 36_880_000 picoseconds. + Weight::from_parts(37_440_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 21_670_000 picoseconds. - Weight::from_parts(22_081_000, 0) + // Minimum execution time: 25_420_000 picoseconds. + Weight::from_parts(25_850_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_collator_selection.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_collator_selection.rs index 67b37353e..3f0b0ae03 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_collator_selection.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_collator_selection.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_collator_selection` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_collator_selection // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -56,11 +56,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `197 + b * (79 ±0)` // Estimated: `1188 + b * (2555 ±0)` - // Minimum execution time: 14_000_000 picoseconds. - Weight::from_parts(11_140_299, 0) + // Minimum execution time: 18_460_000 picoseconds. + Weight::from_parts(14_506_620, 0) .saturating_add(Weight::from_parts(0, 1188)) - // Standard Error: 7_365 - .saturating_add(Weight::from_parts(3_825_943, 0).saturating_mul(b.into())) + // Standard Error: 8_844 + .saturating_add(Weight::from_parts(4_893_321, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2555).saturating_mul(b.into())) @@ -79,13 +79,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `795 + b * (32 ±0) + c * (53 ±0)` // Estimated: `6287 + b * (37 ±0) + c * (53 ±0)` - // Minimum execution time: 44_140_000 picoseconds. - Weight::from_parts(44_326_733, 0) + // Minimum execution time: 53_840_000 picoseconds. + Weight::from_parts(54_537_752, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 8_443 - .saturating_add(Weight::from_parts(19_173, 0).saturating_mul(b.into())) - // Standard Error: 1_600 - .saturating_add(Weight::from_parts(114_453, 0).saturating_mul(c.into())) + // Standard Error: 11_097 + .saturating_add(Weight::from_parts(73_269, 0).saturating_mul(b.into())) + // Standard Error: 2_103 + .saturating_add(Weight::from_parts(139_118, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(b.into())) @@ -100,11 +100,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `119 + b * (32 ±0)` // Estimated: `6287` - // Minimum execution time: 13_740_000 picoseconds. - Weight::from_parts(13_790_757, 0) + // Minimum execution time: 18_820_000 picoseconds. + Weight::from_parts(18_958_300, 0) .saturating_add(Weight::from_parts(0, 6287)) // Standard Error: 1_049 - .saturating_add(Weight::from_parts(63_520, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(55_691, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -114,8 +114,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_280_000 picoseconds. - Weight::from_parts(5_501_000, 0) + // Minimum execution time: 6_520_000 picoseconds. + Weight::from_parts(6_800_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -133,13 +133,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0 + c * (182 ±0) + k * (115 ±0)` // Estimated: `6287 + c * (901 ±29) + k * (901 ±29)` - // Minimum execution time: 11_450_000 picoseconds. - Weight::from_parts(11_710_000, 0) + // Minimum execution time: 16_650_000 picoseconds. + Weight::from_parts(17_090_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 185_952 - .saturating_add(Weight::from_parts(6_141_426, 0).saturating_mul(c.into())) - // Standard Error: 185_952 - .saturating_add(Weight::from_parts(5_915_384, 0).saturating_mul(k.into())) + // Standard Error: 205_630 + .saturating_add(Weight::from_parts(6_839_633, 0).saturating_mul(c.into())) + // Standard Error: 205_630 + .saturating_add(Weight::from_parts(6_529_761, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -156,11 +156,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `319 + c * (49 ±0)` // Estimated: `6287` - // Minimum execution time: 30_190_000 picoseconds. - Weight::from_parts(31_165_287, 0) + // Minimum execution time: 38_271_000 picoseconds. + Weight::from_parts(38_845_378, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 736 - .saturating_add(Weight::from_parts(71_539, 0).saturating_mul(c.into())) + // Standard Error: 1_078 + .saturating_add(Weight::from_parts(85_264, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -179,11 +179,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `765 + c * (52 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 39_150_000 picoseconds. - Weight::from_parts(41_231_202, 0) + // Minimum execution time: 53_120_000 picoseconds. + Weight::from_parts(54_997_766, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 690 - .saturating_add(Weight::from_parts(85_733, 0).saturating_mul(c.into())) + // Standard Error: 815 + .saturating_add(Weight::from_parts(92_873, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -205,11 +205,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `905 + c * (53 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 60_020_000 picoseconds. - Weight::from_parts(62_176_226, 0) + // Minimum execution time: 72_940_000 picoseconds. + Weight::from_parts(74_831_906, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 1_083 - .saturating_add(Weight::from_parts(89_062, 0).saturating_mul(c.into())) + // Standard Error: 1_444 + .saturating_add(Weight::from_parts(102_469, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -225,29 +225,27 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `347 + c * (48 ±0)` // Estimated: `6287` - // Minimum execution time: 32_710_000 picoseconds. - Weight::from_parts(33_844_984, 0) + // Minimum execution time: 40_530_000 picoseconds. + Weight::from_parts(41_465_241, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 746 - .saturating_add(Weight::from_parts(84_099, 0).saturating_mul(c.into())) + // Standard Error: 1_001 + .saturating_add(Weight::from_parts(93_955, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn note_author() -> Weight { // Proof Size summary in bytes: // Measured: `155` // Estimated: `6196` - // Minimum execution time: 47_040_000 picoseconds. - Weight::from_parts(47_471_000, 0) + // Minimum execution time: 55_061_000 picoseconds. + Weight::from_parts(55_580_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) @@ -257,8 +255,6 @@ impl pallet_collator_selection::WeightInfo for WeightIn /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:97 w:97) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. @@ -267,14 +263,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2302 + c * (97 ±0) + r * (114 ±0)` // Estimated: `6287 + c * (2519 ±0) + r * (2603 ±0)` - // Minimum execution time: 22_860_000 picoseconds. - Weight::from_parts(23_030_000, 0) + // Minimum execution time: 28_960_000 picoseconds. + Weight::from_parts(29_310_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 330_117 - .saturating_add(Weight::from_parts(14_319_056, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(5)) + // Standard Error: 360_274 + .saturating_add(Weight::from_parts(16_485_795, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(r.into())) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_message_queue.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_message_queue.rs index 232738c84..0cdc27ff7 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_message_queue.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_message_queue.rs @@ -17,23 +17,24 @@ //! Autogenerated weights for `pallet_message_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-10-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// frame-omni-bencher -// v1 +// ./target/production/polkadot-parachain // benchmark // pallet -// --runtime -// target/production/wbuild/asset-hub-paseo-runtime/asset_hub_paseo_runtime.compact.compressed.wasm -// --pallet=pallet-message-queue -// --extrinsic= -// --output -// system-parachains/asset-hubs/asset-hub-paseo/src/weights/pallet_message_queue.rs -// --header=.github/scripts/cmd/file_header.txt +// --chain=./asset-hub-polkadot-chain-spec.json +// --steps=50 +// --repeat=20 +// --pallet=pallet_message_queue +// --extrinsic=* +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./asset-hub-polkadot-weights/ +// --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -54,8 +55,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `260` // Estimated: `6044` - // Minimum execution time: 19_870_000 picoseconds. - Weight::from_parts(20_150_000, 0) + // Minimum execution time: 20_380_000 picoseconds. + Weight::from_parts(20_790_000, 0) .saturating_add(Weight::from_parts(0, 6044)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -68,8 +69,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `255` // Estimated: `6044` - // Minimum execution time: 18_080_000 picoseconds. - Weight::from_parts(18_301_000, 0) + // Minimum execution time: 18_600_000 picoseconds. + Weight::from_parts(18_990_000, 0) .saturating_add(Weight::from_parts(0, 6044)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -80,8 +81,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `42` // Estimated: `3517` - // Minimum execution time: 7_820_000 picoseconds. - Weight::from_parts(8_070_000, 0) + // Minimum execution time: 8_050_000 picoseconds. + Weight::from_parts(8_250_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -92,8 +93,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `109` // Estimated: `69050` - // Minimum execution time: 10_530_000 picoseconds. - Weight::from_parts(10_820_000, 0) + // Minimum execution time: 10_600_000 picoseconds. + Weight::from_parts(10_780_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -104,8 +105,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `109` // Estimated: `69050` - // Minimum execution time: 10_650_000 picoseconds. - Weight::from_parts(11_050_000, 0) + // Minimum execution time: 10_730_000 picoseconds. + Weight::from_parts(10_980_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -118,8 +119,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 161_831_000 picoseconds. - Weight::from_parts(162_761_000, 0) + // Minimum execution time: 158_541_000 picoseconds. + Weight::from_parts(159_291_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -131,8 +132,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `208` // Estimated: `3517` - // Minimum execution time: 12_210_000 picoseconds. - Weight::from_parts(12_511_000, 0) + // Minimum execution time: 12_890_000 picoseconds. + Weight::from_parts(13_190_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -145,8 +146,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65704` // Estimated: `69050` - // Minimum execution time: 66_210_000 picoseconds. - Weight::from_parts(66_961_000, 0) + // Minimum execution time: 61_190_000 picoseconds. + Weight::from_parts(61_770_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -159,8 +160,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65704` // Estimated: `69050` - // Minimum execution time: 85_680_000 picoseconds. - Weight::from_parts(86_270_000, 0) + // Minimum execution time: 78_610_000 picoseconds. + Weight::from_parts(79_201_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -173,8 +174,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65704` // Estimated: `69050` - // Minimum execution time: 119_101_000 picoseconds. - Weight::from_parts(120_431_000, 0) + // Minimum execution time: 114_621_000 picoseconds. + Weight::from_parts(115_560_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_multisig.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_multisig.rs index fb5cc69ec..8c3bf14e4 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_multisig.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_multisig.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_multisig` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_multisig // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -52,8 +52,8 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_310_000 picoseconds. - Weight::from_parts(13_716_042, 0) + // Minimum execution time: 13_601_000 picoseconds. + Weight::from_parts(13_999_952, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 1 .saturating_add(Weight::from_parts(506, 0).saturating_mul(z.into())) @@ -66,13 +66,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `263 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 44_150_000 picoseconds. - Weight::from_parts(36_791_485, 0) + // Minimum execution time: 47_960_000 picoseconds. + Weight::from_parts(42_467_287, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 316 - .saturating_add(Weight::from_parts(84_084, 0).saturating_mul(s.into())) - // Standard Error: 3 - .saturating_add(Weight::from_parts(1_455, 0).saturating_mul(z.into())) + // Standard Error: 446 + .saturating_add(Weight::from_parts(65_774, 0).saturating_mul(s.into())) + // Standard Error: 4 + .saturating_add(Weight::from_parts(1_445, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -84,13 +84,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `282` // Estimated: `6811` - // Minimum execution time: 28_520_000 picoseconds. - Weight::from_parts(21_180_960, 0) + // Minimum execution time: 29_530_000 picoseconds. + Weight::from_parts(24_322_866, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 219 - .saturating_add(Weight::from_parts(79_180, 0).saturating_mul(s.into())) - // Standard Error: 2 - .saturating_add(Weight::from_parts(1_486, 0).saturating_mul(z.into())) + // Standard Error: 399 + .saturating_add(Weight::from_parts(59_071, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_466, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -104,13 +104,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388 + s * (33 ±0)` // Estimated: `6811` - // Minimum execution time: 50_000_000 picoseconds. - Weight::from_parts(40_132_522, 0) + // Minimum execution time: 53_530_000 picoseconds. + Weight::from_parts(45_682_336, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 390 - .saturating_add(Weight::from_parts(103_982, 0).saturating_mul(s.into())) + // Standard Error: 391 + .saturating_add(Weight::from_parts(86_515, 0).saturating_mul(s.into())) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_529, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_510, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -121,11 +121,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `263 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 33_400_000 picoseconds. - Weight::from_parts(34_553_447, 0) + // Minimum execution time: 39_911_000 picoseconds. + Weight::from_parts(40_331_256, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 539 - .saturating_add(Weight::from_parts(82_817, 0).saturating_mul(s.into())) + // Standard Error: 653 + .saturating_add(Weight::from_parts(61_413, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -136,11 +136,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `282` // Estimated: `6811` - // Minimum execution time: 18_250_000 picoseconds. - Weight::from_parts(19_041_706, 0) + // Minimum execution time: 22_180_000 picoseconds. + Weight::from_parts(22_441_985, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 316 - .saturating_add(Weight::from_parts(81_631, 0).saturating_mul(s.into())) + // Standard Error: 666 + .saturating_add(Weight::from_parts(56_436, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,11 +151,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `454 + s * (1 ±0)` // Estimated: `6811` - // Minimum execution time: 33_250_000 picoseconds. - Weight::from_parts(34_410_654, 0) + // Minimum execution time: 40_910_000 picoseconds. + Weight::from_parts(41_292_190, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 384 - .saturating_add(Weight::from_parts(83_728, 0).saturating_mul(s.into())) + // Standard Error: 707 + .saturating_add(Weight::from_parts(62_408, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_nfts.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_nfts.rs index dc6ec69f2..65eb935ba 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_nfts.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_nfts.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_nfts` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_nfts // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -59,10 +59,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: - // Measured: `182` + // Measured: `144` // Estimated: `3549` - // Minimum execution time: 39_480_000 picoseconds. - Weight::from_parts(40_270_000, 0) + // Minimum execution time: 45_300_000 picoseconds. + Weight::from_parts(46_140_000, 0) .saturating_add(Weight::from_parts(0, 3549)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(5)) @@ -79,10 +79,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn force_create() -> Weight { // Proof Size summary in bytes: - // Measured: `42` + // Measured: `4` // Estimated: `3549` - // Minimum execution time: 22_520_000 picoseconds. - Weight::from_parts(23_090_000, 0) + // Minimum execution time: 26_200_000 picoseconds. + Weight::from_parts(26_660_000, 0) .saturating_add(Weight::from_parts(0, 3549)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(5)) @@ -106,19 +106,17 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// The range of component `m` is `[0, 1000]`. /// The range of component `c` is `[0, 1000]`. /// The range of component `a` is `[0, 1000]`. - fn destroy(m: u32, c: u32, a: u32, ) -> Weight { + fn destroy(m: u32, _c: u32, a: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `32170 + a * (366 ±0)` + // Measured: `32132 + a * (366 ±0)` // Estimated: `2523990 + a * (2954 ±0)` - // Minimum execution time: 1_464_840_000 picoseconds. - Weight::from_parts(954_056_936, 0) + // Minimum execution time: 1_488_900_000 picoseconds. + Weight::from_parts(1_448_188_940, 0) .saturating_add(Weight::from_parts(0, 2523990)) - // Standard Error: 12_140 - .saturating_add(Weight::from_parts(315_197, 0).saturating_mul(m.into())) - // Standard Error: 12_140 - .saturating_add(Weight::from_parts(288_461, 0).saturating_mul(c.into())) - // Standard Error: 12_140 - .saturating_add(Weight::from_parts(7_447_647, 0).saturating_mul(a.into())) + // Standard Error: 3_148 + .saturating_add(Weight::from_parts(26_165, 0).saturating_mul(m.into())) + // Standard Error: 3_148 + .saturating_add(Weight::from_parts(8_387_647, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(1004)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1005)) @@ -139,10 +137,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) fn mint() -> Weight { // Proof Size summary in bytes: - // Measured: `421` + // Measured: `383` // Estimated: `4326` - // Minimum execution time: 53_560_000 picoseconds. - Weight::from_parts(54_031_000, 0) + // Minimum execution time: 62_100_000 picoseconds. + Weight::from_parts(62_840_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -161,10 +159,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) fn force_mint() -> Weight { // Proof Size summary in bytes: - // Measured: `421` + // Measured: `383` // Estimated: `4326` - // Minimum execution time: 51_741_000 picoseconds. - Weight::from_parts(52_391_000, 0) + // Minimum execution time: 59_630_000 picoseconds. + Weight::from_parts(60_310_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -189,10 +187,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`) fn burn() -> Weight { // Proof Size summary in bytes: - // Measured: `530` + // Measured: `492` // Estimated: `4326` - // Minimum execution time: 57_581_000 picoseconds. - Weight::from_parts(58_770_000, 0) + // Minimum execution time: 66_380_000 picoseconds. + Weight::from_parts(67_130_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(7)) @@ -215,10 +213,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `559` + // Measured: `521` // Estimated: `4326` - // Minimum execution time: 44_620_000 picoseconds. - Weight::from_parts(45_430_000, 0) + // Minimum execution time: 52_851_000 picoseconds. + Weight::from_parts(53_261_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -232,13 +230,13 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// The range of component `i` is `[0, 5000]`. fn redeposit(i: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `729 + i * (108 ±0)` + // Measured: `691 + i * (108 ±0)` // Estimated: `3549 + i * (3336 ±0)` - // Minimum execution time: 15_540_000 picoseconds. - Weight::from_parts(15_670_000, 0) + // Minimum execution time: 19_760_000 picoseconds. + Weight::from_parts(20_030_000, 0) .saturating_add(Weight::from_parts(0, 3549)) - // Standard Error: 18_743 - .saturating_add(Weight::from_parts(19_639_307, 0).saturating_mul(i.into())) + // Standard Error: 25_025 + .saturating_add(Weight::from_parts(21_268_902, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) @@ -250,10 +248,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn lock_item_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `401` + // Measured: `363` // Estimated: `3534` - // Minimum execution time: 20_110_000 picoseconds. - Weight::from_parts(20_700_000, 0) + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(25_280_000, 0) .saturating_add(Weight::from_parts(0, 3534)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -264,10 +262,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn unlock_item_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `401` + // Measured: `363` // Estimated: `3534` - // Minimum execution time: 20_260_000 picoseconds. - Weight::from_parts(20_520_000, 0) + // Minimum execution time: 25_170_000 picoseconds. + Weight::from_parts(25_380_000, 0) .saturating_add(Weight::from_parts(0, 3534)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -278,10 +276,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn lock_collection() -> Weight { // Proof Size summary in bytes: - // Measured: `306` + // Measured: `268` // Estimated: `3549` - // Minimum execution time: 16_370_000 picoseconds. - Weight::from_parts(16_610_000, 0) + // Minimum execution time: 20_131_000 picoseconds. + Weight::from_parts(20_500_000, 0) .saturating_add(Weight::from_parts(0, 3549)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -296,10 +294,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn transfer_ownership() -> Weight { // Proof Size summary in bytes: - // Measured: `528` + // Measured: `490` // Estimated: `3593` - // Minimum execution time: 28_620_000 picoseconds. - Weight::from_parts(29_170_000, 0) + // Minimum execution time: 34_730_000 picoseconds. + Weight::from_parts(35_240_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(5)) @@ -310,10 +308,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) fn set_team() -> Weight { // Proof Size summary in bytes: - // Measured: `335` + // Measured: `297` // Estimated: `6078` - // Minimum execution time: 43_470_000 picoseconds. - Weight::from_parts(44_190_000, 0) + // Minimum execution time: 48_790_000 picoseconds. + Weight::from_parts(49_490_000, 0) .saturating_add(Weight::from_parts(0, 6078)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(5)) @@ -324,10 +322,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) fn force_collection_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `277` + // Measured: `239` // Estimated: `3549` - // Minimum execution time: 17_060_000 picoseconds. - Weight::from_parts(17_450_000, 0) + // Minimum execution time: 19_390_000 picoseconds. + Weight::from_parts(19_830_000, 0) .saturating_add(Weight::from_parts(0, 3549)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) @@ -338,10 +336,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn force_collection_config() -> Weight { // Proof Size summary in bytes: - // Measured: `242` + // Measured: `204` // Estimated: `3549` - // Minimum execution time: 13_380_000 picoseconds. - Weight::from_parts(13_610_000, 0) + // Minimum execution time: 15_361_000 picoseconds. + Weight::from_parts(15_830_000, 0) .saturating_add(Weight::from_parts(0, 3549)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -352,10 +350,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn lock_item_properties() -> Weight { // Proof Size summary in bytes: - // Measured: `401` + // Measured: `363` // Estimated: `3534` - // Minimum execution time: 19_150_000 picoseconds. - Weight::from_parts(19_461_000, 0) + // Minimum execution time: 23_730_000 picoseconds. + Weight::from_parts(24_141_000, 0) .saturating_add(Weight::from_parts(0, 3534)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -372,10 +370,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`) fn set_attribute() -> Weight { // Proof Size summary in bytes: - // Measured: `505` + // Measured: `467` // Estimated: `3944` - // Minimum execution time: 53_940_000 picoseconds. - Weight::from_parts(54_630_000, 0) + // Minimum execution time: 63_371_000 picoseconds. + Weight::from_parts(64_101_000, 0) .saturating_add(Weight::from_parts(0, 3944)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -386,10 +384,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`) fn force_set_attribute() -> Weight { // Proof Size summary in bytes: - // Measured: `310` + // Measured: `272` // Estimated: `3944` - // Minimum execution time: 27_260_000 picoseconds. - Weight::from_parts(27_740_000, 0) + // Minimum execution time: 32_490_000 picoseconds. + Weight::from_parts(32_861_000, 0) .saturating_add(Weight::from_parts(0, 3944)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -404,10 +402,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) fn clear_attribute() -> Weight { // Proof Size summary in bytes: - // Measured: `949` + // Measured: `911` // Estimated: `3944` - // Minimum execution time: 49_741_000 picoseconds. - Weight::from_parts(50_220_000, 0) + // Minimum execution time: 57_971_000 picoseconds. + Weight::from_parts(58_900_000, 0) .saturating_add(Weight::from_parts(0, 3944)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -418,10 +416,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`) fn approve_item_attributes() -> Weight { // Proof Size summary in bytes: - // Measured: `347` + // Measured: `309` // Estimated: `4466` - // Minimum execution time: 16_990_000 picoseconds. - Weight::from_parts(17_280_000, 0) + // Minimum execution time: 20_690_000 picoseconds. + Weight::from_parts(21_170_000, 0) .saturating_add(Weight::from_parts(0, 4466)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -437,13 +435,13 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 1000]`. fn cancel_item_attributes_approval(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `797 + n * (398 ±0)` + // Measured: `759 + n * (398 ±0)` // Estimated: `4466 + n * (2954 ±0)` - // Minimum execution time: 27_780_000 picoseconds. - Weight::from_parts(27_980_000, 0) + // Minimum execution time: 33_310_000 picoseconds. + Weight::from_parts(33_540_000, 0) .saturating_add(Weight::from_parts(0, 4466)) - // Standard Error: 5_118 - .saturating_add(Weight::from_parts(7_274_935, 0).saturating_mul(n.into())) + // Standard Error: 6_103 + .saturating_add(Weight::from_parts(8_158_714, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -462,10 +460,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`) fn set_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `505` + // Measured: `467` // Estimated: `3812` - // Minimum execution time: 43_950_000 picoseconds. - Weight::from_parts(44_190_000, 0) + // Minimum execution time: 51_070_000 picoseconds. + Weight::from_parts(51_740_000, 0) .saturating_add(Weight::from_parts(0, 3812)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -480,10 +478,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn clear_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `815` + // Measured: `777` // Estimated: `3812` - // Minimum execution time: 41_960_000 picoseconds. - Weight::from_parts(42_681_000, 0) + // Minimum execution time: 49_170_000 picoseconds. + Weight::from_parts(49_770_000, 0) .saturating_add(Weight::from_parts(0, 3812)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -498,10 +496,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`) fn set_collection_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `364` + // Measured: `326` // Estimated: `3759` - // Minimum execution time: 39_150_000 picoseconds. - Weight::from_parts(39_790_000, 0) + // Minimum execution time: 46_270_000 picoseconds. + Weight::from_parts(46_741_000, 0) .saturating_add(Weight::from_parts(0, 3759)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -516,10 +514,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`) fn clear_collection_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `682` + // Measured: `644` // Estimated: `3759` - // Minimum execution time: 38_280_000 picoseconds. - Weight::from_parts(38_771_000, 0) + // Minimum execution time: 45_160_000 picoseconds. + Weight::from_parts(46_000_000, 0) .saturating_add(Weight::from_parts(0, 3759)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -530,10 +528,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn approve_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `376` + // Measured: `338` // Estimated: `4326` - // Minimum execution time: 20_060_000 picoseconds. - Weight::from_parts(20_660_000, 0) + // Minimum execution time: 24_270_000 picoseconds. + Weight::from_parts(24_711_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -542,10 +540,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`) fn cancel_approval() -> Weight { // Proof Size summary in bytes: - // Measured: `384` + // Measured: `346` // Estimated: `4326` - // Minimum execution time: 17_550_000 picoseconds. - Weight::from_parts(17_850_000, 0) + // Minimum execution time: 20_361_000 picoseconds. + Weight::from_parts(20_620_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -554,10 +552,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`) fn clear_all_transfer_approvals() -> Weight { // Proof Size summary in bytes: - // Measured: `384` + // Measured: `346` // Estimated: `4326` - // Minimum execution time: 16_810_000 picoseconds. - Weight::from_parts(17_170_000, 0) + // Minimum execution time: 19_250_000 picoseconds. + Weight::from_parts(19_491_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -566,10 +564,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn set_accept_ownership() -> Weight { // Proof Size summary in bytes: - // Measured: `42` + // Measured: `4` // Estimated: `3517` - // Minimum execution time: 13_751_000 picoseconds. - Weight::from_parts(13_980_000, 0) + // Minimum execution time: 15_360_000 picoseconds. + Weight::from_parts(15_620_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -580,10 +578,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) fn set_collection_max_supply() -> Weight { // Proof Size summary in bytes: - // Measured: `306` + // Measured: `268` // Estimated: `3549` - // Minimum execution time: 17_950_000 picoseconds. - Weight::from_parts(18_310_000, 0) + // Minimum execution time: 22_560_000 picoseconds. + Weight::from_parts(22_980_000, 0) .saturating_add(Weight::from_parts(0, 3549)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -594,10 +592,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn update_mint_settings() -> Weight { // Proof Size summary in bytes: - // Measured: `289` + // Measured: `251` // Estimated: `3538` - // Minimum execution time: 17_590_000 picoseconds. - Weight::from_parts(17_930_000, 0) + // Minimum execution time: 21_721_000 picoseconds. + Weight::from_parts(22_161_000, 0) .saturating_add(Weight::from_parts(0, 3538)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -612,10 +610,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) fn set_price() -> Weight { // Proof Size summary in bytes: - // Measured: `484` + // Measured: `446` // Estimated: `4326` - // Minimum execution time: 23_640_000 picoseconds. - Weight::from_parts(24_141_000, 0) + // Minimum execution time: 29_191_000 picoseconds. + Weight::from_parts(29_761_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -638,10 +636,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`) fn buy_item() -> Weight { // Proof Size summary in bytes: - // Measured: `671` + // Measured: `633` // Estimated: `4326` - // Minimum execution time: 54_150_000 picoseconds. - Weight::from_parts(54_620_000, 0) + // Minimum execution time: 63_171_000 picoseconds. + Weight::from_parts(63_690_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -651,11 +649,11 @@ impl pallet_nfts::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_400_000 picoseconds. - Weight::from_parts(3_444_083, 0) + // Minimum execution time: 3_050_000 picoseconds. + Weight::from_parts(4_448_153, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 5_541 - .saturating_add(Weight::from_parts(2_411_505, 0).saturating_mul(n.into())) + // Standard Error: 7_456 + .saturating_add(Weight::from_parts(2_397_398, 0).saturating_mul(n.into())) } /// Storage: `Nfts::Item` (r:2 w:0) /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`) @@ -663,10 +661,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`) fn create_swap() -> Weight { // Proof Size summary in bytes: - // Measured: `460` + // Measured: `422` // Estimated: `7662` - // Minimum execution time: 20_520_000 picoseconds. - Weight::from_parts(20_910_000, 0) + // Minimum execution time: 25_331_000 picoseconds. + Weight::from_parts(25_661_000, 0) .saturating_add(Weight::from_parts(0, 7662)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -677,10 +675,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`) fn cancel_swap() -> Weight { // Proof Size summary in bytes: - // Measured: `479` + // Measured: `441` // Estimated: `4326` - // Minimum execution time: 21_390_000 picoseconds. - Weight::from_parts(21_670_000, 0) + // Minimum execution time: 26_341_000 picoseconds. + Weight::from_parts(26_870_000, 0) .saturating_add(Weight::from_parts(0, 4326)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -703,10 +701,10 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) fn claim_swap() -> Weight { // Proof Size summary in bytes: - // Measured: `800` + // Measured: `762` // Estimated: `7662` - // Minimum execution time: 89_661_000 picoseconds. - Weight::from_parts(90_630_000, 0) + // Minimum execution time: 105_550_000 picoseconds. + Weight::from_parts(106_501_000, 0) .saturating_add(Weight::from_parts(0, 7662)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(10)) @@ -732,13 +730,13 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 10]`. fn mint_pre_signed(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `595` + // Measured: `557` // Estimated: `6078 + n * (2954 ±0)` - // Minimum execution time: 144_561_000 picoseconds. - Weight::from_parts(148_878_703, 0) + // Minimum execution time: 157_631_000 picoseconds. + Weight::from_parts(161_459_334, 0) .saturating_add(Weight::from_parts(0, 6078)) - // Standard Error: 18_641 - .saturating_add(Weight::from_parts(33_732_518, 0).saturating_mul(n.into())) + // Standard Error: 18_121 + .saturating_add(Weight::from_parts(36_042_522, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(6)) @@ -760,13 +758,13 @@ impl pallet_nfts::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 10]`. fn set_attributes_pre_signed(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `625` + // Measured: `587` // Estimated: `4466 + n * (2954 ±0)` - // Minimum execution time: 75_871_000 picoseconds. - Weight::from_parts(87_615_708, 0) + // Minimum execution time: 80_530_000 picoseconds. + Weight::from_parts(94_766_125, 0) .saturating_add(Weight::from_parts(0, 4466)) - // Standard Error: 64_729 - .saturating_add(Weight::from_parts(33_033_532, 0).saturating_mul(n.into())) + // Standard Error: 79_293 + .saturating_add(Weight::from_parts(35_124_744, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_proxy.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_proxy.rs index 894af41cb..34d375db7 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_proxy.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_proxy.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_proxy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_proxy // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -54,11 +54,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 15_100_000 picoseconds. - Weight::from_parts(15_738_568, 0) + // Minimum execution time: 17_911_000 picoseconds. + Weight::from_parts(18_490_467, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 825 - .saturating_add(Weight::from_parts(29_771, 0).saturating_mul(p.into())) + // Standard Error: 799 + .saturating_add(Weight::from_parts(36_671, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `Proxy::Proxies` (r:1 w:0) @@ -73,13 +73,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `454 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 39_680_000 picoseconds. - Weight::from_parts(39_135_254, 0) + // Minimum execution time: 47_280_000 picoseconds. + Weight::from_parts(47_133_404, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_317 - .saturating_add(Weight::from_parts(156_980, 0).saturating_mul(a.into())) - // Standard Error: 1_360 - .saturating_add(Weight::from_parts(39_418, 0).saturating_mul(p.into())) + // Standard Error: 1_718 + .saturating_add(Weight::from_parts(165_487, 0).saturating_mul(a.into())) + // Standard Error: 1_775 + .saturating_add(Weight::from_parts(33_895, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -93,13 +93,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `369 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 26_660_000 picoseconds. - Weight::from_parts(27_147_971, 0) + // Minimum execution time: 32_500_000 picoseconds. + Weight::from_parts(33_178_781, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_280 - .saturating_add(Weight::from_parts(147_710, 0).saturating_mul(a.into())) - // Standard Error: 1_323 - .saturating_add(Weight::from_parts(3_471, 0).saturating_mul(p.into())) + // Standard Error: 1_637 + .saturating_add(Weight::from_parts(166_089, 0).saturating_mul(a.into())) + // Standard Error: 1_691 + .saturating_add(Weight::from_parts(7_593, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -113,13 +113,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `369 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 26_390_000 picoseconds. - Weight::from_parts(27_082_503, 0) + // Minimum execution time: 32_580_000 picoseconds. + Weight::from_parts(33_237_455, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_288 - .saturating_add(Weight::from_parts(146_426, 0).saturating_mul(a.into())) - // Standard Error: 1_331 - .saturating_add(Weight::from_parts(2_081, 0).saturating_mul(p.into())) + // Standard Error: 1_688 + .saturating_add(Weight::from_parts(163_071, 0).saturating_mul(a.into())) + // Standard Error: 1_744 + .saturating_add(Weight::from_parts(4_902, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -135,13 +135,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `386 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 35_010_000 picoseconds. - Weight::from_parts(34_901_875, 0) + // Minimum execution time: 42_110_000 picoseconds. + Weight::from_parts(42_909_019, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_302 - .saturating_add(Weight::from_parts(144_249, 0).saturating_mul(a.into())) - // Standard Error: 1_345 - .saturating_add(Weight::from_parts(35_354, 0).saturating_mul(p.into())) + // Standard Error: 1_820 + .saturating_add(Weight::from_parts(155_324, 0).saturating_mul(a.into())) + // Standard Error: 1_881 + .saturating_add(Weight::from_parts(29_697, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -152,11 +152,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 25_080_000 picoseconds. - Weight::from_parts(25_668_532, 0) + // Minimum execution time: 29_340_000 picoseconds. + Weight::from_parts(29_843_633, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 817 - .saturating_add(Weight::from_parts(40_015, 0).saturating_mul(p.into())) + // Standard Error: 644 + .saturating_add(Weight::from_parts(45_124, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -167,11 +167,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 25_160_000 picoseconds. - Weight::from_parts(25_831_874, 0) + // Minimum execution time: 29_371_000 picoseconds. + Weight::from_parts(30_054_086, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 1_022 - .saturating_add(Weight::from_parts(52_560, 0).saturating_mul(p.into())) + // Standard Error: 867 + .saturating_add(Weight::from_parts(52_403, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -182,11 +182,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 22_510_000 picoseconds. - Weight::from_parts(23_203_299, 0) + // Minimum execution time: 26_590_000 picoseconds. + Weight::from_parts(27_141_250, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 817 - .saturating_add(Weight::from_parts(30_785, 0).saturating_mul(p.into())) + // Standard Error: 808 + .saturating_add(Weight::from_parts(34_054, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -197,11 +197,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4706` - // Minimum execution time: 26_621_000 picoseconds. - Weight::from_parts(27_283_515, 0) + // Minimum execution time: 31_270_000 picoseconds. + Weight::from_parts(31_853_768, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 790 - .saturating_add(Weight::from_parts(11_587, 0).saturating_mul(p.into())) + // Standard Error: 579 + .saturating_add(Weight::from_parts(4_776, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -212,11 +212,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `164 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 23_510_000 picoseconds. - Weight::from_parts(24_104_650, 0) + // Minimum execution time: 27_640_000 picoseconds. + Weight::from_parts(28_381_156, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 735 - .saturating_add(Weight::from_parts(30_110, 0).saturating_mul(p.into())) + // Standard Error: 853 + .saturating_add(Weight::from_parts(33_989, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_session.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_session.rs index da233aac7..45bcbe997 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_session.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_session.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_session` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_session // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -55,8 +55,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `298` // Estimated: `3763` - // Minimum execution time: 18_430_000 picoseconds. - Weight::from_parts(19_000_000, 0) + // Minimum execution time: 24_420_000 picoseconds. + Weight::from_parts(24_810_000, 0) .saturating_add(Weight::from_parts(0, 3763)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3745` - // Minimum execution time: 13_720_000 picoseconds. - Weight::from_parts(13_990_000, 0) + // Minimum execution time: 16_840_000 picoseconds. + Weight::from_parts(17_080_000, 0) .saturating_add(Weight::from_parts(0, 3745)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_timestamp.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_timestamp.rs index cfb1c78d8..a9721649d 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_timestamp.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_timestamp.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_timestamp // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -55,8 +55,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `153` // Estimated: `1493` - // Minimum execution time: 8_960_000 picoseconds. - Weight::from_parts(9_550_000, 0) + // Minimum execution time: 13_010_000 picoseconds. + Weight::from_parts(13_370_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `57` // Estimated: `0` - // Minimum execution time: 3_570_000 picoseconds. - Weight::from_parts(3_820_000, 0) + // Minimum execution time: 6_490_000 picoseconds. + Weight::from_parts(6_640_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_uniques.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_uniques.rs index 1317dd2b4..33b53273b 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_uniques.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_uniques.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_uniques` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_uniques // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -55,8 +55,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `249` // Estimated: `3643` - // Minimum execution time: 31_620_000 picoseconds. - Weight::from_parts(31_890_000, 0) + // Minimum execution time: 37_300_000 picoseconds. + Weight::from_parts(37_750_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3643` - // Minimum execution time: 14_310_000 picoseconds. - Weight::from_parts(14_590_000, 0) + // Minimum execution time: 17_160_000 picoseconds. + Weight::from_parts(17_471_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -98,15 +98,15 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `346 + a * (107 ±0) + m * (56 ±0) + n * (76 ±0)` // Estimated: `3643 + a * (2647 ±0) + m * (2662 ±0) + n * (2597 ±0)` - // Minimum execution time: 3_544_193_000 picoseconds. - Weight::from_parts(3_587_302_000, 0) + // Minimum execution time: 3_745_215_000 picoseconds. + Weight::from_parts(3_761_775_000, 0) .saturating_add(Weight::from_parts(0, 3643)) - // Standard Error: 43_995 - .saturating_add(Weight::from_parts(9_223_959, 0).saturating_mul(n.into())) - // Standard Error: 43_995 - .saturating_add(Weight::from_parts(433_921, 0).saturating_mul(m.into())) - // Standard Error: 43_995 - .saturating_add(Weight::from_parts(634_467, 0).saturating_mul(a.into())) + // Standard Error: 44_115 + .saturating_add(Weight::from_parts(9_590_498, 0).saturating_mul(n.into())) + // Standard Error: 44_115 + .saturating_add(Weight::from_parts(453_300, 0).saturating_mul(m.into())) + // Standard Error: 44_115 + .saturating_add(Weight::from_parts(618_314, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) @@ -131,8 +131,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 37_001_000 picoseconds. - Weight::from_parts(37_390_000, 0) + // Minimum execution time: 43_470_000 picoseconds. + Weight::from_parts(43_881_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -149,8 +149,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `495` // Estimated: `3643` - // Minimum execution time: 37_980_000 picoseconds. - Weight::from_parts(38_550_000, 0) + // Minimum execution time: 44_050_000 picoseconds. + Weight::from_parts(44_670_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) @@ -167,8 +167,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `495` // Estimated: `3643` - // Minimum execution time: 28_120_000 picoseconds. - Weight::from_parts(28_651_000, 0) + // Minimum execution time: 33_400_000 picoseconds. + Weight::from_parts(33_790_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(4)) @@ -182,11 +182,11 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `805 + i * (76 ±0)` // Estimated: `3643 + i * (2597 ±0)` - // Minimum execution time: 13_510_000 picoseconds. - Weight::from_parts(13_640_000, 0) + // Minimum execution time: 15_980_000 picoseconds. + Weight::from_parts(16_281_000, 0) .saturating_add(Weight::from_parts(0, 3643)) - // Standard Error: 22_690 - .saturating_add(Weight::from_parts(20_011_850, 0).saturating_mul(i.into())) + // Standard Error: 24_171 + .saturating_add(Weight::from_parts(21_147_029, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -201,8 +201,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `495` // Estimated: `3643` - // Minimum execution time: 18_190_000 picoseconds. - Weight::from_parts(18_460_000, 0) + // Minimum execution time: 22_890_000 picoseconds. + Weight::from_parts(23_211_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -215,8 +215,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `495` // Estimated: `3643` - // Minimum execution time: 17_880_000 picoseconds. - Weight::from_parts(18_320_000, 0) + // Minimum execution time: 22_841_000 picoseconds. + Weight::from_parts(23_190_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -227,8 +227,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 12_260_000 picoseconds. - Weight::from_parts(12_510_000, 0) + // Minimum execution time: 14_750_000 picoseconds. + Weight::from_parts(15_040_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -239,8 +239,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 12_130_000 picoseconds. - Weight::from_parts(12_560_000, 0) + // Minimum execution time: 14_670_000 picoseconds. + Weight::from_parts(14_900_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -257,8 +257,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `597` // Estimated: `3643` - // Minimum execution time: 27_270_000 picoseconds. - Weight::from_parts(27_891_000, 0) + // Minimum execution time: 33_300_000 picoseconds. + Weight::from_parts(33_841_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(5)) @@ -269,8 +269,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 12_490_000 picoseconds. - Weight::from_parts(12_740_000, 0) + // Minimum execution time: 15_080_000 picoseconds. + Weight::from_parts(15_350_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -283,8 +283,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 16_070_000 picoseconds. - Weight::from_parts(16_460_000, 0) + // Minimum execution time: 18_460_000 picoseconds. + Weight::from_parts(18_800_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -299,8 +299,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `626` // Estimated: `3652` - // Minimum execution time: 41_321_000 picoseconds. - Weight::from_parts(41_991_000, 0) + // Minimum execution time: 47_650_000 picoseconds. + Weight::from_parts(48_200_000, 0) .saturating_add(Weight::from_parts(0, 3652)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -315,8 +315,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `823` // Estimated: `3652` - // Minimum execution time: 40_240_000 picoseconds. - Weight::from_parts(40_860_000, 0) + // Minimum execution time: 46_181_000 picoseconds. + Weight::from_parts(46_811_000, 0) .saturating_add(Weight::from_parts(0, 3652)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -329,8 +329,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `415` // Estimated: `3652` - // Minimum execution time: 30_500_000 picoseconds. - Weight::from_parts(30_780_000, 0) + // Minimum execution time: 35_700_000 picoseconds. + Weight::from_parts(36_080_000, 0) .saturating_add(Weight::from_parts(0, 3652)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -343,8 +343,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `626` // Estimated: `3652` - // Minimum execution time: 32_170_000 picoseconds. - Weight::from_parts(32_680_000, 0) + // Minimum execution time: 37_070_000 picoseconds. + Weight::from_parts(37_460_000, 0) .saturating_add(Weight::from_parts(0, 3652)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -357,8 +357,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 31_140_000 picoseconds. - Weight::from_parts(31_390_000, 0) + // Minimum execution time: 36_360_000 picoseconds. + Weight::from_parts(36_680_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -371,8 +371,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `540` // Estimated: `3643` - // Minimum execution time: 30_860_000 picoseconds. - Weight::from_parts(31_120_000, 0) + // Minimum execution time: 35_810_000 picoseconds. + Weight::from_parts(36_230_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -385,8 +385,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `495` // Estimated: `3643` - // Minimum execution time: 18_570_000 picoseconds. - Weight::from_parts(18_940_000, 0) + // Minimum execution time: 23_110_000 picoseconds. + Weight::from_parts(23_561_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -399,8 +399,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `528` // Estimated: `3643` - // Minimum execution time: 18_980_000 picoseconds. - Weight::from_parts(19_210_000, 0) + // Minimum execution time: 23_230_000 picoseconds. + Weight::from_parts(23_500_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -411,8 +411,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3517` - // Minimum execution time: 14_080_000 picoseconds. - Weight::from_parts(14_351_000, 0) + // Minimum execution time: 16_100_000 picoseconds. + Weight::from_parts(16_450_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -425,8 +425,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `349` // Estimated: `3643` - // Minimum execution time: 15_080_000 picoseconds. - Weight::from_parts(15_340_000, 0) + // Minimum execution time: 19_240_000 picoseconds. + Weight::from_parts(19_511_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -439,8 +439,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `326` // Estimated: `3587` - // Minimum execution time: 14_991_000 picoseconds. - Weight::from_parts(15_200_000, 0) + // Minimum execution time: 18_210_000 picoseconds. + Weight::from_parts(18_540_000, 0) .saturating_add(Weight::from_parts(0, 3587)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -457,8 +457,8 @@ impl pallet_uniques::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `607` // Estimated: `3643` - // Minimum execution time: 36_870_000 picoseconds. - Weight::from_parts(37_550_000, 0) + // Minimum execution time: 42_901_000 picoseconds. + Weight::from_parts(43_570_000, 0) .saturating_add(Weight::from_parts(0, 3643)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_utility.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_utility.rs index 2daca6a0c..e894515aa 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_utility.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_utility.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_utility // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -52,18 +52,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_390_000 picoseconds. - Weight::from_parts(1_959_920, 0) + // Minimum execution time: 6_360_000 picoseconds. + Weight::from_parts(23_611_539, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_500 - .saturating_add(Weight::from_parts(4_659_213, 0).saturating_mul(c.into())) + // Standard Error: 2_463 + .saturating_add(Weight::from_parts(3_639_689, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_160_000 picoseconds. - Weight::from_parts(5_340_000, 0) + // Minimum execution time: 5_630_000 picoseconds. + Weight::from_parts(5_880_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -71,18 +71,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_470_000 picoseconds. - Weight::from_parts(2_761_325, 0) + // Minimum execution time: 6_420_000 picoseconds. + Weight::from_parts(13_540_551, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_284 - .saturating_add(Weight::from_parts(4_879_499, 0).saturating_mul(c.into())) + // Standard Error: 1_391 + .saturating_add(Weight::from_parts(3_896_741, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_640_000 picoseconds. - Weight::from_parts(7_950_000, 0) + // Minimum execution time: 8_700_000 picoseconds. + Weight::from_parts(9_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -90,10 +90,10 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_380_000 picoseconds. - Weight::from_parts(1_669_062, 0) + // Minimum execution time: 6_460_000 picoseconds. + Weight::from_parts(13_884_233, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_527 - .saturating_add(Weight::from_parts(4_651_949, 0).saturating_mul(c.into())) + // Standard Error: 1_436 + .saturating_add(Weight::from_parts(3_635_079, 0).saturating_mul(c.into())) } } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_vesting.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_vesting.rs index 5ea57e7ad..17a783534 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_vesting.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_vesting.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_vesting` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_vesting // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -61,13 +61,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `381 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 37_680_000 picoseconds. - Weight::from_parts(37_096_954, 0) + // Minimum execution time: 45_460_000 picoseconds. + Weight::from_parts(44_376_585, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 633 - .saturating_add(Weight::from_parts(25_389, 0).saturating_mul(l.into())) - // Standard Error: 1_126 - .saturating_add(Weight::from_parts(73_076, 0).saturating_mul(s.into())) + // Standard Error: 462 + .saturating_add(Weight::from_parts(38_046, 0).saturating_mul(l.into())) + // Standard Error: 823 + .saturating_add(Weight::from_parts(75_814, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -87,13 +87,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `381 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 39_680_000 picoseconds. - Weight::from_parts(39_340_475, 0) + // Minimum execution time: 47_360_000 picoseconds. + Weight::from_parts(47_062_478, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 529 - .saturating_add(Weight::from_parts(28_719, 0).saturating_mul(l.into())) - // Standard Error: 942 - .saturating_add(Weight::from_parts(63_470, 0).saturating_mul(s.into())) + // Standard Error: 500 + .saturating_add(Weight::from_parts(30_953, 0).saturating_mul(l.into())) + // Standard Error: 891 + .saturating_add(Weight::from_parts(62_592, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -115,13 +115,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `484 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 40_910_000 picoseconds. - Weight::from_parts(40_032_076, 0) + // Minimum execution time: 49_311_000 picoseconds. + Weight::from_parts(48_668_395, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 578 - .saturating_add(Weight::from_parts(38_441, 0).saturating_mul(l.into())) - // Standard Error: 1_029 - .saturating_add(Weight::from_parts(77_449, 0).saturating_mul(s.into())) + // Standard Error: 522 + .saturating_add(Weight::from_parts(42_902, 0).saturating_mul(l.into())) + // Standard Error: 929 + .saturating_add(Weight::from_parts(77_962, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -143,13 +143,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `484 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 42_980_000 picoseconds. - Weight::from_parts(42_536_226, 0) + // Minimum execution time: 51_830_000 picoseconds. + Weight::from_parts(51_437_375, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 610 - .saturating_add(Weight::from_parts(32_352, 0).saturating_mul(l.into())) - // Standard Error: 1_085 - .saturating_add(Weight::from_parts(69_096, 0).saturating_mul(s.into())) + // Standard Error: 558 + .saturating_add(Weight::from_parts(33_933, 0).saturating_mul(l.into())) + // Standard Error: 993 + .saturating_add(Weight::from_parts(65_613, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -171,13 +171,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `555 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (37 ±0)` - // Minimum execution time: 79_750_000 picoseconds. - Weight::from_parts(80_006_757, 0) + // Minimum execution time: 91_440_000 picoseconds. + Weight::from_parts(94_991_322, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 838 - .saturating_add(Weight::from_parts(41_178, 0).saturating_mul(l.into())) - // Standard Error: 1_491 - .saturating_add(Weight::from_parts(88_332, 0).saturating_mul(s.into())) + // Standard Error: 2_292 + .saturating_add(Weight::from_parts(52_370, 0).saturating_mul(l.into())) + // Standard Error: 4_079 + .saturating_add(Weight::from_parts(119_616, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -199,13 +199,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `658 + l * (25 ±0) + s * (36 ±0)` // Estimated: `6196 + l * (25 ±0) + s * (37 ±0)` - // Minimum execution time: 82_661_000 picoseconds. - Weight::from_parts(82_840_340, 0) + // Minimum execution time: 95_481_000 picoseconds. + Weight::from_parts(98_871_707, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 863 - .saturating_add(Weight::from_parts(43_549, 0).saturating_mul(l.into())) - // Standard Error: 1_535 - .saturating_add(Weight::from_parts(92_852, 0).saturating_mul(s.into())) + // Standard Error: 2_290 + .saturating_add(Weight::from_parts(57_385, 0).saturating_mul(l.into())) + // Standard Error: 4_075 + .saturating_add(Weight::from_parts(129_235, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -227,13 +227,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `482 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 41_680_000 picoseconds. - Weight::from_parts(40_809_056, 0) + // Minimum execution time: 50_900_000 picoseconds. + Weight::from_parts(49_647_505, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 595 - .saturating_add(Weight::from_parts(36_094, 0).saturating_mul(l.into())) - // Standard Error: 1_100 - .saturating_add(Weight::from_parts(71_033, 0).saturating_mul(s.into())) + // Standard Error: 504 + .saturating_add(Weight::from_parts(44_752, 0).saturating_mul(l.into())) + // Standard Error: 932 + .saturating_add(Weight::from_parts(82_338, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -255,13 +255,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `482 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 44_541_000 picoseconds. - Weight::from_parts(43_679_373, 0) + // Minimum execution time: 53_780_000 picoseconds. + Weight::from_parts(52_613_300, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 537 - .saturating_add(Weight::from_parts(37_043, 0).saturating_mul(l.into())) - // Standard Error: 992 - .saturating_add(Weight::from_parts(69_456, 0).saturating_mul(s.into())) + // Standard Error: 487 + .saturating_add(Weight::from_parts(40_648, 0).saturating_mul(l.into())) + // Standard Error: 899 + .saturating_add(Weight::from_parts(73_712, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) @@ -283,13 +283,13 @@ impl pallet_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `555 + l * (25 ±0) + s * (36 ±0)` // Estimated: `4764 + l * (25 ±0) + s * (36 ±0)` - // Minimum execution time: 46_651_000 picoseconds. - Weight::from_parts(45_657_156, 0) + // Minimum execution time: 55_610_000 picoseconds. + Weight::from_parts(55_082_280, 0) .saturating_add(Weight::from_parts(0, 4764)) - // Standard Error: 700 - .saturating_add(Weight::from_parts(38_659, 0).saturating_mul(l.into())) - // Standard Error: 1_293 - .saturating_add(Weight::from_parts(74_050, 0).saturating_mul(s.into())) + // Standard Error: 459 + .saturating_add(Weight::from_parts(39_863, 0).saturating_mul(l.into())) + // Standard Error: 848 + .saturating_add(Weight::from_parts(68_856, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 25).saturating_mul(l.into())) diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_xcm.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_xcm.rs index dd0db2afb..aa0bed738 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_xcm.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_xcm.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_xcm // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/ +// --output=./asset-hub-polkadot-weights/ // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -51,23 +51,19 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `111` - // Estimated: `3576` - // Minimum execution time: 27_991_000 picoseconds. - Weight::from_parts(29_020_000, 0) - .saturating_add(Weight::from_parts(0, 3576)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 29_860_000 picoseconds. + Weight::from_parts(30_671_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -75,10 +71,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -87,13 +79,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `111` + // Measured: `74` // Estimated: `3593` - // Minimum execution time: 121_281_000 picoseconds. - Weight::from_parts(123_880_000, 0) + // Minimum execution time: 130_001_000 picoseconds. + Weight::from_parts(130_811_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -103,10 +95,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) @@ -115,13 +103,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) fn reserve_transfer_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `333` + // Measured: `296` // Estimated: `6196` - // Minimum execution time: 151_221_000 picoseconds. - Weight::from_parts(152_941_000, 0) + // Minimum execution time: 161_501_000 picoseconds. + Weight::from_parts(162_771_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -135,30 +123,26 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn transfer_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `514` + // Measured: `477` // Estimated: `6208` - // Minimum execution time: 184_962_000 picoseconds. - Weight::from_parts(187_811_000, 0) + // Minimum execution time: 196_592_000 picoseconds. + Weight::from_parts(197_972_000, 0) .saturating_add(Weight::from_parts(0, 6208)) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(7)) + .saturating_add(T::DbWeight::get().reads(10)) + .saturating_add(T::DbWeight::get().writes(6)) } fn execute() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_430_000 picoseconds. - Weight::from_parts(13_670_000, 0) + // Minimum execution time: 13_770_000 picoseconds. + Weight::from_parts(14_070_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) @@ -167,21 +151,18 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_970_000 picoseconds. - Weight::from_parts(8_170_000, 0) + // Minimum execution time: 9_360_000 picoseconds. + Weight::from_parts(9_520_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_540_000 picoseconds. - Weight::from_parts(2_730_000, 0) + // Minimum execution time: 3_090_000 picoseconds. + Weight::from_parts(3_350_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -191,10 +172,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -203,13 +180,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `111` - // Estimated: `3576` - // Minimum execution time: 34_341_000 picoseconds. - Weight::from_parts(34_940_000, 0) - .saturating_add(Weight::from_parts(0, 3576)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 37_560_000 picoseconds. + Weight::from_parts(38_101_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -217,10 +194,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -229,13 +202,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `329` - // Estimated: `3794` - // Minimum execution time: 36_521_000 picoseconds. - Weight::from_parts(37_390_000, 0) - .saturating_add(Weight::from_parts(0, 3794)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `136` + // Estimated: `3601` + // Minimum execution time: 36_810_000 picoseconds. + Weight::from_parts(37_371_000, 0) + .saturating_add(Weight::from_parts(0, 3601)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -243,8 +216,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_590_000 picoseconds. - Weight::from_parts(2_720_000, 0) + // Minimum execution time: 3_240_000 picoseconds. + Weight::from_parts(3_360_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -252,11 +225,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `125` - // Estimated: `13490` - // Minimum execution time: 24_611_000 picoseconds. - Weight::from_parts(25_150_000, 0) - .saturating_add(Weight::from_parts(0, 13490)) + // Measured: `22` + // Estimated: `13387` + // Minimum execution time: 24_551_000 picoseconds. + Weight::from_parts(24_920_000, 0) + .saturating_add(Weight::from_parts(0, 13387)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -264,11 +237,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `129` - // Estimated: `13494` - // Minimum execution time: 24_660_000 picoseconds. - Weight::from_parts(25_201_000, 0) - .saturating_add(Weight::from_parts(0, 13494)) + // Measured: `26` + // Estimated: `13391` + // Minimum execution time: 24_760_000 picoseconds. + Weight::from_parts(25_140_000, 0) + .saturating_add(Weight::from_parts(0, 13391)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -276,11 +249,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `140` - // Estimated: `15980` - // Minimum execution time: 26_690_000 picoseconds. - Weight::from_parts(27_301_000, 0) - .saturating_add(Weight::from_parts(0, 15980)) + // Measured: `37` + // Estimated: `15877` + // Minimum execution time: 27_270_000 picoseconds. + Weight::from_parts(27_560_000, 0) + .saturating_add(Weight::from_parts(0, 15877)) .saturating_add(T::DbWeight::get().reads(6)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) @@ -289,44 +262,40 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `178` - // Estimated: `6118` - // Minimum execution time: 33_140_000 picoseconds. - Weight::from_parts(33_830_000, 0) - .saturating_add(Weight::from_parts(0, 6118)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `75` + // Estimated: `6015` + // Minimum execution time: 36_540_000 picoseconds. + Weight::from_parts(37_370_000, 0) + .saturating_add(Weight::from_parts(0, 6015)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `139` - // Estimated: `11029` - // Minimum execution time: 15_590_000 picoseconds. - Weight::from_parts(15_880_000, 0) - .saturating_add(Weight::from_parts(0, 11029)) + // Measured: `36` + // Estimated: `10926` + // Minimum execution time: 17_350_000 picoseconds. + Weight::from_parts(17_720_000, 0) + .saturating_add(Weight::from_parts(0, 10926)) .saturating_add(T::DbWeight::get().reads(4)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `136` - // Estimated: `13501` - // Minimum execution time: 24_840_000 picoseconds. - Weight::from_parts(25_310_000, 0) - .saturating_add(Weight::from_parts(0, 13501)) + // Measured: `33` + // Estimated: `13398` + // Minimum execution time: 24_660_000 picoseconds. + Weight::from_parts(25_300_000, 0) + .saturating_add(Weight::from_parts(0, 13398)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -336,23 +305,19 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `178` - // Estimated: `13543` - // Minimum execution time: 44_551_000 picoseconds. - Weight::from_parts(45_160_000, 0) - .saturating_add(Weight::from_parts(0, 13543)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `75` + // Estimated: `13440` + // Minimum execution time: 48_760_000 picoseconds. + Weight::from_parts(49_330_000, 0) + .saturating_add(Weight::from_parts(0, 13440)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -360,11 +325,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn new_query() -> Weight { // Proof Size summary in bytes: - // Measured: `69` - // Estimated: `1554` - // Minimum execution time: 6_080_000 picoseconds. - Weight::from_parts(6_310_000, 0) - .saturating_add(Weight::from_parts(0, 1554)) + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 3_470_000 picoseconds. + Weight::from_parts(3_710_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -372,11 +337,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn take_response() -> Weight { // Proof Size summary in bytes: - // Measured: `7706` - // Estimated: `11171` - // Minimum execution time: 31_640_000 picoseconds. - Weight::from_parts(32_030_000, 0) - .saturating_add(Weight::from_parts(0, 11171)) + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 33_640_000 picoseconds. + Weight::from_parts(34_211_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -384,11 +349,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `126` - // Estimated: `3591` - // Minimum execution time: 49_720_000 picoseconds. - Weight::from_parts(50_601_000, 0) - .saturating_add(Weight::from_parts(0, 3591)) + // Measured: `23` + // Estimated: `3488` + // Minimum execution time: 50_670_000 picoseconds. + Weight::from_parts(51_520_000, 0) + .saturating_add(Weight::from_parts(0, 3488)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/asset-hub-paseo/src/weights/pallet_xcm_bridge_hub_router.rs b/system-parachains/asset-hub-paseo/src/weights/pallet_xcm_bridge_hub_router.rs index 46ab76417..30f2301af 100644 --- a/system-parachains/asset-hub-paseo/src/weights/pallet_xcm_bridge_hub_router.rs +++ b/system-parachains/asset-hub-paseo/src/weights/pallet_xcm_bridge_hub_router.rs @@ -17,13 +17,13 @@ //! Autogenerated weights for `pallet_xcm_bridge_hub_router` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet // --chain=./asset-hub-polkadot-chain-spec.json @@ -57,8 +57,8 @@ impl pallet_xcm_bridge_hub_router::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `226` // Estimated: `5487` - // Minimum execution time: 11_170_000 picoseconds. - Weight::from_parts(11_720_000, 0) + // Minimum execution time: 19_600_000 picoseconds. + Weight::from_parts(20_010_000, 0) .saturating_add(Weight::from_parts(0, 5487)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -71,8 +71,8 @@ impl pallet_xcm_bridge_hub_router::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `111` // Estimated: `5487` - // Minimum execution time: 5_310_000 picoseconds. - Weight::from_parts(5_410_000, 0) + // Minimum execution time: 8_771_000 picoseconds. + Weight::from_parts(8_930_000, 0) .saturating_add(Weight::from_parts(0, 5487)) .saturating_add(T::DbWeight::get().reads(2)) } @@ -82,44 +82,10 @@ impl pallet_xcm_bridge_hub_router::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `150` // Estimated: `1502` - // Minimum execution time: 12_570_000 picoseconds. - Weight::from_parts(12_960_000, 0) + // Minimum execution time: 15_080_000 picoseconds. + Weight::from_parts(15_471_000, 0) .saturating_add(Weight::from_parts(0, 1502)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) - /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: UNKNOWN KEY `0x3302afcb67e838a3f960251b417b9a4f` (r:1 w:0) - /// Proof: UNKNOWN KEY `0x3302afcb67e838a3f960251b417b9a4f` (r:1 w:0) - /// Storage: UNKNOWN KEY `0x0973fe64c85043ba1c965cbc38eb63c7` (r:1 w:0) - /// Proof: UNKNOWN KEY `0x0973fe64c85043ba1c965cbc38eb63c7` (r:1 w:0) - /// Storage: `ToKusamaXcmRouter::Bridge` (r:1 w:1) - /// Proof: `ToKusamaXcmRouter::Bridge` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) - /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) - /// Storage: `PolkadotXcm::SupportedVersion` (r:2 w:0) - /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) - /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) - /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0) - /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) - /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) - fn send_message() -> Weight { - // Proof Size summary in bytes: - // Measured: `486` - // Estimated: `6426` - // Minimum execution time: 59_481_000 picoseconds. - Weight::from_parts(60_690_000, 0) - .saturating_add(Weight::from_parts(0, 6426)) - .saturating_add(T::DbWeight::get().reads(12)) - .saturating_add(T::DbWeight::get().writes(4)) - } } diff --git a/system-parachains/asset-hub-paseo/src/weights/xcm/mod.rs b/system-parachains/asset-hub-paseo/src/weights/xcm/mod.rs index 2864aa093..1b72853d0 100644 --- a/system-parachains/asset-hub-paseo/src/weights/xcm/mod.rs +++ b/system-parachains/asset-hub-paseo/src/weights/xcm/mod.rs @@ -24,13 +24,13 @@ use sp_std::prelude::*; use xcm::{latest::prelude::*, DoubleEncoded}; trait WeighAssets { - fn weigh_multi_assets(&self, weight: Weight) -> Weight; + fn weigh_assets(&self, weight: Weight) -> Weight; } const MAX_ASSETS: u64 = 100; impl WeighAssets for AssetFilter { - fn weigh_multi_assets(&self, weight: Weight) -> Weight { + fn weigh_assets(&self, weight: Weight) -> Weight { match self { Self::Definite(assets) => weight.saturating_mul(assets.inner().iter().count() as u64), Self::Wild(asset) => match asset { @@ -50,7 +50,7 @@ impl WeighAssets for AssetFilter { } impl WeighAssets for Assets { - fn weigh_multi_assets(&self, weight: Weight) -> Weight { + fn weigh_assets(&self, weight: Weight) -> Weight { weight.saturating_mul(self.inner().iter().count() as u64) } } @@ -58,13 +58,13 @@ impl WeighAssets for Assets { pub struct AssetHubPolkadotXcmWeight(core::marker::PhantomData); impl XcmWeightInfo for AssetHubPolkadotXcmWeight { fn withdraw_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::withdraw_asset()) + assets.weigh_assets(XcmFungibleWeight::::withdraw_asset()) } fn reserve_asset_deposited(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::reserve_asset_deposited()) + assets.weigh_assets(XcmFungibleWeight::::reserve_asset_deposited()) } fn receive_teleported_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::receive_teleported_asset()) + assets.weigh_assets(XcmFungibleWeight::::receive_teleported_asset()) } fn query_response( _query_id: &u64, @@ -75,10 +75,10 @@ impl XcmWeightInfo for AssetHubPolkadotXcmWeight { XcmGeneric::::query_response() } fn transfer_asset(assets: &Assets, _dest: &Location) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::transfer_asset()) + assets.weigh_assets(XcmFungibleWeight::::transfer_asset()) } fn transfer_reserve_asset(assets: &Assets, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::transfer_reserve_asset()) + assets.weigh_assets(XcmFungibleWeight::::transfer_reserve_asset()) } fn transact( _origin_type: &OriginKind, @@ -114,10 +114,10 @@ impl XcmWeightInfo for AssetHubPolkadotXcmWeight { } fn deposit_asset(assets: &AssetFilter, _dest: &Location) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::deposit_asset()) + assets.weigh_assets(XcmFungibleWeight::::deposit_asset()) } fn deposit_reserve_asset(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::deposit_reserve_asset()) + assets.weigh_assets(XcmFungibleWeight::::deposit_reserve_asset()) } fn exchange_asset(_give: &AssetFilter, _receive: &Assets, _maximal: &bool) -> Weight { Weight::MAX @@ -127,10 +127,10 @@ impl XcmWeightInfo for AssetHubPolkadotXcmWeight { _reserve: &Location, _xcm: &Xcm<()>, ) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::initiate_reserve_withdraw()) + assets.weigh_assets(XcmFungibleWeight::::initiate_reserve_withdraw()) } fn initiate_teleport(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::initiate_teleport()) + assets.weigh_assets(XcmFungibleWeight::::initiate_teleport()) } fn report_holding(_response_info: &QueryResponseInfo, _assets: &AssetFilter) -> Weight { XcmGeneric::::report_holding() @@ -163,10 +163,10 @@ impl XcmWeightInfo for AssetHubPolkadotXcmWeight { XcmGeneric::::unsubscribe_version() } fn burn_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmGeneric::::burn_asset()) + assets.weigh_assets(XcmGeneric::::burn_asset()) } fn expect_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmGeneric::::expect_asset()) + assets.weigh_assets(XcmGeneric::::expect_asset()) } fn expect_origin(_origin: &Option) -> Weight { XcmGeneric::::expect_origin() diff --git a/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs index 17d08f823..9cf6cf717 100644 --- a/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +++ b/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::fungible` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_xcm_benchmarks::fungible // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/xcm/pallet_xcm_benchmarks_fungible.rs +// --output=./asset-hub-polkadot-weights/xcm/pallet_xcm_benchmarks_fungible.rs // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -53,8 +53,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `3593` - // Minimum execution time: 37_400_000 picoseconds. - Weight::from_parts(37_750_000, 0) + // Minimum execution time: 42_110_000 picoseconds. + Weight::from_parts(42_700_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `153` // Estimated: `6196` - // Minimum execution time: 47_030_000 picoseconds. - Weight::from_parts(47_700_000, 0) + // Minimum execution time: 54_461_000 picoseconds. + Weight::from_parts(55_000_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,34 +79,27 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn transfer_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `264` + // Measured: `227` // Estimated: `8799` - // Minimum execution time: 114_311_000 picoseconds. - Weight::from_parts(114_991_000, 0) + // Minimum execution time: 126_831_000 picoseconds. + Weight::from_parts(127_541_000, 0) .saturating_add(Weight::from_parts(0, 8799)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) - /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) pub(crate) fn reserve_asset_deposited() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `1489` - // Minimum execution time: 3_900_000 picoseconds. - Weight::from_parts(4_040_000, 0) - .saturating_add(Weight::from_parts(0, 1489)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `0` + // Minimum execution time: 1_800_000 picoseconds. + Weight::from_parts(1_940_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -114,10 +107,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -126,20 +115,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_reserve_withdraw() -> Weight { // Proof Size summary in bytes: - // Measured: `212` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 120_531_000 picoseconds. - Weight::from_parts(122_081_000, 0) + // Minimum execution time: 132_561_000 picoseconds. + Weight::from_parts(133_421_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } pub(crate) fn receive_teleported_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_010_000 picoseconds. - Weight::from_parts(4_240_000, 0) + // Minimum execution time: 4_120_000 picoseconds. + Weight::from_parts(4_390_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `System::Account` (r:1 w:1) @@ -148,8 +137,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 29_890_000 picoseconds. - Weight::from_parts(30_670_000, 0) + // Minimum execution time: 35_160_000 picoseconds. + Weight::from_parts(35_500_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -160,10 +149,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -172,13 +157,13 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn deposit_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `163` + // Measured: `126` // Estimated: `6196` - // Minimum execution time: 93_180_000 picoseconds. - Weight::from_parts(94_890_000, 0) + // Minimum execution time: 105_511_000 picoseconds. + Weight::from_parts(106_471_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -186,10 +171,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -198,12 +179,12 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_teleport() -> Weight { // Proof Size summary in bytes: - // Measured: `111` + // Measured: `74` // Estimated: `3593` - // Minimum execution time: 54_470_000 picoseconds. - Weight::from_parts(55_210_000, 0) + // Minimum execution time: 61_881_000 picoseconds. + Weight::from_parts(62_530_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } } diff --git a/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index ce77458b1..350a0e52b 100644 --- a/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -17,23 +17,23 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::generic` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./asset-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// ./target/production/polkadot-parachain // benchmark // pallet -// --chain=./asset-hub-paseo-chain-spec.json +// --chain=./asset-hub-polkadot-chain-spec.json // --steps=50 // --repeat=20 // --pallet=pallet_xcm_benchmarks::generic // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=./asset-hub-paseo-weights/xcm/pallet_xcm_benchmarks_generic.rs +// --output=./asset-hub-polkadot-weights/xcm/pallet_xcm_benchmarks_generic.rs // --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -53,10 +53,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -65,87 +61,87 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_holding() -> Weight { // Proof Size summary in bytes: - // Measured: `212` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 111_681_000 picoseconds. - Weight::from_parts(113_161_000, 0) + // Minimum execution time: 123_401_000 picoseconds. + Weight::from_parts(124_480_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } pub(crate) fn buy_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_430_000 picoseconds. - Weight::from_parts(1_490_000, 0) + // Minimum execution time: 950_000 picoseconds. + Weight::from_parts(1_050_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::Queries` (r:1 w:0) /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn query_response() -> Weight { // Proof Size summary in bytes: - // Measured: `69` - // Estimated: `3534` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_220_000, 0) - .saturating_add(Weight::from_parts(0, 3534)) + // Measured: `0` + // Estimated: `3465` + // Minimum execution time: 6_830_000 picoseconds. + Weight::from_parts(7_130_000, 0) + .saturating_add(Weight::from_parts(0, 3465)) .saturating_add(T::DbWeight::get().reads(1)) } pub(crate) fn transact() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_480_000 picoseconds. - Weight::from_parts(9_760_000, 0) + // Minimum execution time: 9_260_000 picoseconds. + Weight::from_parts(9_460_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn refund_surplus() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_040_000 picoseconds. - Weight::from_parts(4_190_000, 0) + // Minimum execution time: 3_720_000 picoseconds. + Weight::from_parts(3_860_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_error_handler() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_450_000 picoseconds. - Weight::from_parts(1_530_000, 0) + // Minimum execution time: 1_020_000 picoseconds. + Weight::from_parts(1_090_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_appendix() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_470_000 picoseconds. - Weight::from_parts(1_510_000, 0) + // Minimum execution time: 990_000 picoseconds. + Weight::from_parts(1_070_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_420_000 picoseconds. - Weight::from_parts(1_460_000, 0) + // Minimum execution time: 930_000 picoseconds. + Weight::from_parts(980_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn descend_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_460_000 picoseconds. - Weight::from_parts(1_560_000, 0) + // Minimum execution time: 1_060_000 picoseconds. + Weight::from_parts(1_120_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_400_000 picoseconds. - Weight::from_parts(1_470_000, 0) + // Minimum execution time: 980_000 picoseconds. + Weight::from_parts(1_070_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -154,10 +150,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -166,23 +158,23 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_error() -> Weight { // Proof Size summary in bytes: - // Measured: `212` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 71_980_000 picoseconds. - Weight::from_parts(72_741_000, 0) + // Minimum execution time: 81_581_000 picoseconds. + Weight::from_parts(82_290_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn claim_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `126` - // Estimated: `3591` - // Minimum execution time: 13_360_000 picoseconds. - Weight::from_parts(13_550_000, 0) - .saturating_add(Weight::from_parts(0, 3591)) + // Measured: `23` + // Estimated: `3488` + // Minimum execution time: 13_090_000 picoseconds. + Weight::from_parts(13_240_000, 0) + .saturating_add(Weight::from_parts(0, 3488)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -190,8 +182,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_410_000 picoseconds. - Weight::from_parts(1_480_000, 0) + // Minimum execution time: 900_000 picoseconds. + Weight::from_parts(960_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1) @@ -200,23 +192,19 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn subscribe_version() -> Weight { // Proof Size summary in bytes: - // Measured: `111` - // Estimated: `3576` - // Minimum execution time: 28_910_000 picoseconds. - Weight::from_parts(29_520_000, 0) - .saturating_add(Weight::from_parts(0, 3576)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 30_890_000 picoseconds. + Weight::from_parts(31_561_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -224,8 +212,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_750_000 picoseconds. - Weight::from_parts(3_920_000, 0) + // Minimum execution time: 3_760_000 picoseconds. + Weight::from_parts(3_930_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -233,40 +221,40 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 29_990_000 picoseconds. - Weight::from_parts(30_271_000, 0) + // Minimum execution time: 29_430_000 picoseconds. + Weight::from_parts(29_720_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_900_000 picoseconds. - Weight::from_parts(9_010_000, 0) + // Minimum execution time: 8_890_000 picoseconds. + Weight::from_parts(9_150_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_450_000 picoseconds. - Weight::from_parts(1_490_000, 0) + // Minimum execution time: 960_000 picoseconds. + Weight::from_parts(1_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_450_000 picoseconds. - Weight::from_parts(1_500_000, 0) + // Minimum execution time: 960_000 picoseconds. + Weight::from_parts(1_010_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_660_000 picoseconds. - Weight::from_parts(1_731_000, 0) + // Minimum execution time: 1_150_000 picoseconds. + Weight::from_parts(1_220_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -275,10 +263,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -287,20 +271,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn query_pallet() -> Weight { // Proof Size summary in bytes: - // Measured: `212` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 77_610_000 picoseconds. - Weight::from_parts(78_890_000, 0) + // Minimum execution time: 88_351_000 picoseconds. + Weight::from_parts(89_201_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } pub(crate) fn expect_pallet() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_430_000 picoseconds. - Weight::from_parts(5_540_000, 0) + // Minimum execution time: 5_520_000 picoseconds. + Weight::from_parts(5_720_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -309,10 +293,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -321,46 +301,46 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_transact_status() -> Weight { // Proof Size summary in bytes: - // Measured: `212` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 71_640_000 picoseconds. - Weight::from_parts(73_081_000, 0) + // Minimum execution time: 81_610_000 picoseconds. + Weight::from_parts(82_570_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } pub(crate) fn clear_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_530_000 picoseconds. - Weight::from_parts(1_571_000, 0) + // Minimum execution time: 970_000 picoseconds. + Weight::from_parts(1_050_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_370_000 picoseconds. - Weight::from_parts(1_460_000, 0) + // Minimum execution time: 940_000 picoseconds. + Weight::from_parts(990_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_430_000 picoseconds. - Weight::from_parts(1_490_000, 0) + // Minimum execution time: 920_000 picoseconds. + Weight::from_parts(970_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) pub(crate) fn universal_origin() -> Weight { // Proof Size summary in bytes: - // Measured: `0` + // Measured: `32` // Estimated: `1489` - // Minimum execution time: 3_360_000 picoseconds. - Weight::from_parts(3_480_000, 0) + // Minimum execution time: 7_440_000 picoseconds. + Weight::from_parts(7_700_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -368,16 +348,16 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_380_000 picoseconds. - Weight::from_parts(1_480_000, 0) + // Minimum execution time: 900_000 picoseconds. + Weight::from_parts(950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn unpaid_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_440_000 picoseconds. - Weight::from_parts(1_500_000, 0) + // Minimum execution time: 980_000 picoseconds. + Weight::from_parts(1_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/asset-hub-paseo/src/xcm_config.rs b/system-parachains/asset-hub-paseo/src/xcm_config.rs index 78385abbe..8c6a4f776 100644 --- a/system-parachains/asset-hub-paseo/src/xcm_config.rs +++ b/system-parachains/asset-hub-paseo/src/xcm_config.rs @@ -21,7 +21,7 @@ use super::{ }; use crate::ForeignAssetsInstance; use assets_common::{ - matching::{FromNetwork, FromSiblingParachain, IsForeignConcreteAsset}, + matching::{FromNetwork, FromSiblingParachain, IsForeignConcreteAsset, ParentLocation}, TrustBackedAssetsAsLocation, }; use frame_support::{ @@ -41,7 +41,7 @@ use parachains_common::xcm_config::{ use polkadot_parachain_primitives::primitives::Sibling; use paseo_runtime_constants::system_parachain; use snowbridge_router_primitives::inbound::GlobalConsensusEthereumConvertsFor; -use sp_runtime::traits::{AccountIdConversion, ConvertInto}; +use sp_runtime::traits::{AccountIdConversion, ConvertInto, TryConvertInto}; use system_parachains_constants::TREASURY_PALLET_ID; use xcm::latest::prelude::*; use xcm_builder::{ @@ -49,12 +49,13 @@ use xcm_builder::{ AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, DenyReserveTransferToRelayChain, DenyThenTry, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, FrameTransactionalProcessor, FungibleAdapter, FungiblesAdapter, GlobalConsensusParachainConvertsFor, HashedDescription, - IsConcrete, LocalMint, NoChecking, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, - SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, - SignedToAccountId32, SovereignPaidRemoteExporter, SovereignSignedViaLocation, StartsWith, - StartsWithExplicitGlobalConsensus, TakeWeightCredit, TrailingSetTopicAsId, UsingComponents, - WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, XcmFeeManagerFromComponents, - XcmFeeToAccount, + IsConcrete, LocalMint, MatchedConvertedConcreteId, NoChecking, ParentAsSuperuser, + ParentIsPreset, RelayChainAsNative, SendXcmFeeToAccount, SiblingParachainAsNative, + SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32, + SingleAssetExchangeAdapter, SovereignPaidRemoteExporter, SovereignSignedViaLocation, + StartsWith, StartsWithExplicitGlobalConsensus, TakeWeightCredit, TrailingSetTopicAsId, + UsingComponents, WeightInfoBounds, WithComputedOrigin, WithLatestLocationConverter, + WithUniqueTopic, XcmFeeManagerFromComponents, }; use xcm_executor::{traits::ConvertLocation, XcmExecutor}; @@ -196,6 +197,29 @@ pub type PoolFungiblesTransactor = FungiblesAdapter< pub type AssetTransactors = (FungibleTransactor, FungiblesTransactor, ForeignFungiblesTransactor, PoolFungiblesTransactor); +/// Asset converter for pool assets. +/// Used to convert one asset to another, when there is a pool available between the two. +/// This type thus allows paying delivery fees with any asset as long as there is a pool between +/// said asset and the asset required for fee payment. +pub type PoolAssetsExchanger = SingleAssetExchangeAdapter< + AssetConversion, + NativeAndAssets, + ( + TrustBackedAssetsAsLocation, + ForeignAssetsConvertedConcreteId, + // `ForeignAssetsConvertedConcreteId` doesn't include Relay token, so we handle it + // explicitly here. + MatchedConvertedConcreteId< + xcm::v4::Location, + Balance, + Equals, + WithLatestLocationConverter, + TryConvertInto, + >, + ), + AccountId, +>; + /// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance, /// ready for dispatching a transaction with Xcm's `Transact`. /// @@ -227,6 +251,64 @@ parameter_types! { pub XcmAssetFeesReceiver: Option = Authorship::author(); } +pub struct FellowshipEntities; +impl Contains for FellowshipEntities { + fn contains(location: &Location) -> bool { + matches!( + location.unpack(), + ( + 1, + [ + Parachain(system_parachain::COLLECTIVES_ID), + Plurality { id: BodyId::Technical, .. } + ] + ) | ( + 1, + [ + Parachain(system_parachain::COLLECTIVES_ID), + PalletInstance( + collectives_polkadot_runtime_constants::FELLOWSHIP_SALARY_PALLET_INDEX + ) + ] + ) | ( + 1, + [ + Parachain(system_parachain::COLLECTIVES_ID), + PalletInstance( + collectives_polkadot_runtime_constants::FELLOWSHIP_TREASURY_PALLET_INDEX + ) + ] + ) + ) + } +} + +pub struct AmbassadorEntities; +impl Contains for AmbassadorEntities { + fn contains(location: &Location) -> bool { + matches!( + location.unpack(), + ( + 1, + [ + Parachain(system_parachain::COLLECTIVES_ID), + PalletInstance( + collectives_polkadot_runtime_constants::AMBASSADOR_SALARY_PALLET_INDEX + ) + ] + ) | ( + 1, + [ + Parachain(system_parachain::COLLECTIVES_ID), + PalletInstance( + collectives_polkadot_runtime_constants::AMBASSADOR_TREASURY_PALLET_INDEX + ) + ] + ) + ) + } +} + pub struct ParentOrParentsPlurality; impl Contains for ParentOrParentsPlurality { fn contains(location: &Location) -> bool { @@ -252,8 +334,10 @@ pub type Barrier = TrailingSetTopicAsId< // sibling bridge hub get free execution. AllowExplicitUnpaidExecutionFrom<( ParentOrParentsPlurality, + FellowshipEntities, Equals, Equals, + AmbassadorEntities, )>, // Subscriptions for version tracking are OK. AllowSubscriptionsFrom, @@ -277,7 +361,9 @@ pub type AssetFeeAsExistentialDepositMultiplierFeeCharger = AssetFeeAsExistentia /// We only waive fees for system functions, which these locations represent. pub type WaivedLocations = ( RelayOrOtherSystemParachains, - Equals + Equals, + FellowshipEntities, + AmbassadorEntities, ); /// Cases where a remote origin is accepted as trusted Teleporter for a given asset: @@ -302,7 +388,7 @@ pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { type RuntimeCall = RuntimeCall; type XcmSender = XcmRouter; - type XcmRecorder = (); + type XcmRecorder = PolkadotXcm; type AssetTransactor = AssetTransactors; type OriginConverter = XcmOriginToTransactDispatchOrigin; // Asset Hub trusts only particular, pre-configured bridged locations from a different consensus @@ -381,10 +467,10 @@ impl xcm_executor::Config for XcmConfig { type PalletInstancesInfo = AllPalletsWithSystem; type MaxAssetsIntoHolding = MaxAssetsIntoHolding; type AssetLocker = (); - type AssetExchanger = (); + type AssetExchanger = PoolAssetsExchanger; type FeeManager = XcmFeeManagerFromComponents< WaivedLocations, - XcmFeeToAccount, + SendXcmFeeToAccount, >; type MessageExporter = (); type UniversalAliases = diff --git a/system-parachains/asset-hub-paseo/tests/tests.rs b/system-parachains/asset-hub-paseo/tests/tests.rs index d88154a76..4c45302f3 100644 --- a/system-parachains/asset-hub-paseo/tests/tests.rs +++ b/system-parachains/asset-hub-paseo/tests/tests.rs @@ -24,29 +24,32 @@ use asset_hub_paseo_runtime::{ RelayTreasuryLocation, RelayTreasuryPalletAccount, StakingPot, TrustBackedAssetsPalletLocation, XcmConfig, }, - AllPalletsWithoutSystem, AssetConversion, AssetDeposit, Assets, Balances, ExistentialDeposit, - ForeignAssets, ForeignAssetsInstance, MetadataDepositBase, MetadataDepositPerByte, - ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, SessionKeys, - ToKusamaXcmRouterInstance, TrustBackedAssetsInstance, XcmpQueue, SLOT_DURATION, + AllPalletsWithoutSystem, AssetConversion, AssetDeposit, Assets, Balances, Block, + ExistentialDeposit, ForeignAssets, ForeignAssetsInstance, MetadataDepositBase, + MetadataDepositPerByte, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, + RuntimeOrigin, SessionKeys, ToKusamaXcmRouterInstance, TrustBackedAssetsInstance, XcmpQueue, + SLOT_DURATION, }; use asset_test_utils::{ - test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys, ExtBuilder, + test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys, + ExtBuilder, SlotDurations, }; use codec::{Decode, Encode}; use frame_support::{assert_ok, traits::fungibles::InspectEnumerable}; use parachains_common::{ - AccountId, AuraId, AssetIdForTrustBackedAssets, Balance, + AccountId, AssetHubPolkadotAuraId as AuraId, AssetIdForTrustBackedAssets, Balance, }; -use parachains_runtimes_test_utils::SlotDurations; use sp_consensus_aura::SlotDuration; +use sp_core::crypto::Ss58Codec; use sp_runtime::traits::MaybeEquivalence; use sp_std::ops::Mul; use system_parachains_constants::{ - paseo::consensus::RELAY_CHAIN_SLOT_DURATION_MILLIS, paseo::fee::WeightToFee, + kusama::consensus::RELAY_CHAIN_SLOT_DURATION_MILLIS, polkadot::fee::WeightToFee, }; use xcm::latest::prelude::{Assets as XcmAssets, *}; use xcm_builder::WithLatestLocationConverter; use xcm_executor::traits::{ConvertLocation, JustTry}; +use xcm_runtime_apis::conversions::LocationToAccountHelper; const ALICE: [u8; 32] = [1u8; 32]; const SOME_ASSET_ADMIN: [u8; 32] = [5u8; 32]; @@ -60,7 +63,7 @@ fn collator_session_key(account: [u8; 32]) -> CollatorSessionKey { CollatorSessionKey::new( AccountId::from(account), AccountId::from(account), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(account)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(account)) }, ) } @@ -128,11 +131,11 @@ fn test_ed_is_one_hundredth_of_relay() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { - let relay_ed = paseo_runtime_constants::currency::EXISTENTIAL_DEPOSIT; + let relay_ed = polkadot_runtime_constants::currency::EXISTENTIAL_DEPOSIT; let asset_hub_ed = ExistentialDeposit::get(); assert_eq!(relay_ed / 100, asset_hub_ed); }); @@ -147,7 +150,7 @@ fn test_assets_balances_api_works() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -262,7 +265,7 @@ asset_test_utils::include_teleports_for_native_asset_works!( ExistentialDeposit::get(), Box::new(|runtime_event_encoded: Vec| { match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) { - Ok(RuntimeEvent::PolkadotXcm(event)) => Some(event), + Ok(RuntimeEvent::PolkadotXcm(event)) => Some(event), _ => None, } }), @@ -283,7 +286,7 @@ include_teleports_for_foreign_assets_works!( ExistentialDeposit::get(), Box::new(|runtime_event_encoded: Vec| { match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) { - Ok(RuntimeEvent::PolkadotXcm(event)) => Some(event), + Ok(RuntimeEvent::PolkadotXcm(event)) => Some(event), _ => None, } }), @@ -379,181 +382,179 @@ asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_p }) ); -// fn bridging_to_asset_hub_kusama() -> TestBridgingConfig { -// PolkadotXcm::force_xcm_version( -// RuntimeOrigin::root(), -// Box::new(bridging::to_kusama::AssetHubKusama::get()), -// XCM_VERSION, -// ) -// .expect("version saved!"); -// TestBridgingConfig { -// bridged_network: bridging::to_kusama::KusamaNetwork::get(), -// local_bridge_hub_para_id: bridging::SiblingBridgeHubParaId::get(), -// local_bridge_hub_location: bridging::SiblingBridgeHub::get(), -// bridged_target_location: bridging::to_kusama::AssetHubKusama::get(), -// } -// } - - -//#[test] -//fn limited_reserve_transfer_assets_for_native_asset_to_asset_hub_kusama_works() { -// asset_test_utils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::< -// Runtime, -// AllPalletsWithoutSystem, -// XcmConfig, -// ParachainSystem, -// XcmpQueue, -// LocationToAccountId, -// >( -// collator_session_keys(), -// slot_durations(), -// ExistentialDeposit::get(), -// AccountId::from(ALICE), -// Box::new(|runtime_event_encoded: Vec| { -// match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) { -// Ok(RuntimeEvent::PolkadotXcm(event)) => Some(event), -// _ => None, -// } -// }), -// Box::new(|runtime_event_encoded: Vec| { -// match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) { -// Ok(RuntimeEvent::XcmpQueue(event)) => Some(event), -// _ => None, -// } -// }), -// //bridging_to_asset_hub_kusama, -// WeightLimit::Unlimited, -// //Some(XcmBridgeHubRouterFeeAssetId::get()), -// Some(RelayTreasuryPalletAccount::get()), -// ) -//} -// -//#[test] -//fn receive_reserve_asset_deposited_ksm_from_asset_hub_kusama_fees_paid_by_pool_swap_works() { -// const BLOCK_AUTHOR_ACCOUNT: [u8; 32] = [13; 32]; -// let block_author_account = AccountId::from(BLOCK_AUTHOR_ACCOUNT); -// let staking_pot = StakingPot::get(); -// -// -// let foreign_asset_id_location = -// xcm::v3::Location::new(2, [xcm::v3::Junction::GlobalConsensus(xcm::v3::NetworkId::Kusama)]); -// let foreign_asset_id_minimum_balance = 1_000_000_000; -// // sovereign account as foreign asset owner (can be whoever for this scenario) -// let foreign_asset_owner = LocationToAccountId::convert_location(&Location::parent()).unwrap(); -// let foreign_asset_create_params = -// (foreign_asset_owner, foreign_asset_id_location, foreign_asset_id_minimum_balance); -// -// asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::< -// Runtime, -// AllPalletsWithoutSystem, -// XcmConfig, -// ForeignAssetsInstance, -// >( -// collator_session_keys().add(collator_session_key(BLOCK_AUTHOR_ACCOUNT)), -// ExistentialDeposit::get(), -// AccountId::from([73; 32]), -// block_author_account.clone(), -// // receiving KSMs -// foreign_asset_create_params.clone(), -// 1000000000000, -// || { -// // setup pool for paying fees to touch `SwapFirstAssetTrader` -// setup_pool_for_paying_fees_with_foreign_assets(foreign_asset_create_params); -// // staking pot account for collecting local native fees from `BuyExecution` -// let _ = Balances::force_set_balance(RuntimeOrigin::root(), StakingPot::get().into(), ExistentialDeposit::get()); -// // prepare bridge configuration -// //bridging_to_asset_hub_kusama() -// }, -// ( -// [PalletInstance(bp_bridge_hub_paseo::WITH_BRIDGE_POLKAPAS_TO_KUSAMA_MESSAGES_PALLET_INDEX)].into(), -// GlobalConsensus(Kusama), -// [Parachain(1000)].into() -// ), -// || { -// // check staking pot for ED -// assert_eq!(Balances::free_balance(&staking_pot), ExistentialDeposit::get()); -// // check now foreign asset for staking pot -// assert_eq!( -// ForeignAssets::balance( -// foreign_asset_id_location, -// &staking_pot -// ), -// 0 -// ); -// }, -// || { -// // `SwapFirstAssetTrader` - staking pot receives xcm fees in KSMs -// assert!( -// Balances::free_balance(&staking_pot) > ExistentialDeposit::get() -// ); -// // staking pot receives no foreign assets -// assert_eq!( -// ForeignAssets::balance( -// foreign_asset_id_location, -// &staking_pot -// ), -// 0 -// ); -// } -// ) -//} - -// #[test] -// fn receive_reserve_asset_deposited_ksm_from_asset_hub_kusama_fees_paid_by_sufficient_asset_works() { -// const BLOCK_AUTHOR_ACCOUNT: [u8; 32] = [13; 32]; -// let block_author_account = AccountId::from(BLOCK_AUTHOR_ACCOUNT); -// let staking_pot = >::account_id(); -// -// let foreign_asset_id_location = -// xcm::v3::Location::new(2, [xcm::v3::Junction::GlobalConsensus(xcm::v3::NetworkId::Kusama)]); -// let foreign_asset_id_minimum_balance = 1_000_000_000; -// // sovereign account as foreign asset owner (can be whoever for this scenario) -// let foreign_asset_owner = LocationToAccountId::convert_location(&Location::parent()).unwrap(); -// let foreign_asset_create_params = -// (foreign_asset_owner, foreign_asset_id_location, foreign_asset_id_minimum_balance); -// -// asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::< -// Runtime, -// AllPalletsWithoutSystem, -// XcmConfig, -// ForeignAssetsInstance, -// >( -// collator_session_keys().add(collator_session_key(BLOCK_AUTHOR_ACCOUNT)), -// ExistentialDeposit::get(), -// AccountId::from([73; 32]), -// block_author_account.clone(), -// // receiving KSMs -// foreign_asset_create_params, -// 1000000000000, -// //bridging_to_asset_hub_kusama, -// ( -// PalletInstance(bp_bridge_hub_paseo::WITH_BRIDGE_POLKAPAS_TO_KUSAMA_MESSAGES_PALLET_INDEX).into(), -// GlobalConsensus(Kusama), -// Parachain(1000).into() -// ), -// || { -// // check block author before -// assert_eq!( -// ForeignAssets::balance( -// foreign_asset_id_location, -// &block_author_account -// ), -// 0 -// ); -// }, -// || { -// // `TakeFirstAssetTrader` puts fees to the block author -// assert!( -// ForeignAssets::balance( -// foreign_asset_id_location, -// &block_author_account -// ) > 0 -// ); -// // nothing adds fees to stakting_pot (e.g. `SwapFirstAssetTrader`, ...) -// assert_eq!(Balances::free_balance(&staking_pot), 0); -// } -// ) -// } +fn bridging_to_asset_hub_kusama() -> TestBridgingConfig { + PolkadotXcm::force_xcm_version( + RuntimeOrigin::root(), + Box::new(bridging::to_kusama::AssetHubKusama::get()), + XCM_VERSION, + ) + .expect("version saved!"); + TestBridgingConfig { + bridged_network: bridging::to_kusama::KusamaNetwork::get(), + local_bridge_hub_para_id: bridging::SiblingBridgeHubParaId::get(), + local_bridge_hub_location: bridging::SiblingBridgeHub::get(), + bridged_target_location: bridging::to_kusama::AssetHubKusama::get(), + } +} + +#[test] +fn limited_reserve_transfer_assets_for_native_asset_to_asset_hub_kusama_works() { + asset_test_utils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::< + Runtime, + AllPalletsWithoutSystem, + XcmConfig, + ParachainSystem, + XcmpQueue, + LocationToAccountId, + >( + collator_session_keys(), + slot_durations(), + ExistentialDeposit::get(), + AccountId::from(ALICE), + Box::new(|runtime_event_encoded: Vec| { + match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) { + Ok(RuntimeEvent::PolkadotXcm(event)) => Some(event), + _ => None, + } + }), + Box::new(|runtime_event_encoded: Vec| { + match RuntimeEvent::decode(&mut &runtime_event_encoded[..]) { + Ok(RuntimeEvent::XcmpQueue(event)) => Some(event), + _ => None, + } + }), + bridging_to_asset_hub_kusama, + WeightLimit::Unlimited, + Some(XcmBridgeHubRouterFeeAssetId::get()), + Some(RelayTreasuryPalletAccount::get()), + ) +} + +#[test] +fn receive_reserve_asset_deposited_ksm_from_asset_hub_kusama_fees_paid_by_pool_swap_works() { + const BLOCK_AUTHOR_ACCOUNT: [u8; 32] = [13; 32]; + let block_author_account = AccountId::from(BLOCK_AUTHOR_ACCOUNT); + let staking_pot = StakingPot::get(); + + let foreign_asset_id_location = + xcm::v4::Location::new(2, [xcm::v4::Junction::GlobalConsensus(xcm::v4::NetworkId::Kusama)]); + let foreign_asset_id_minimum_balance = 1_000_000_000; + // sovereign account as foreign asset owner (can be whoever for this scenario) + let foreign_asset_owner = LocationToAccountId::convert_location(&Location::parent()).unwrap(); + let foreign_asset_create_params = + (foreign_asset_owner, foreign_asset_id_location.clone(), foreign_asset_id_minimum_balance); + + remove_when_updated_to_stable2409::receive_reserve_asset_deposited_from_different_consensus_works::< + Runtime, + AllPalletsWithoutSystem, + XcmConfig, + ForeignAssetsInstance, + >( + collator_session_keys().add(collator_session_key(BLOCK_AUTHOR_ACCOUNT)), + ExistentialDeposit::get(), + AccountId::from([73; 32]), + block_author_account.clone(), + // receiving KSMs + foreign_asset_create_params.clone(), + 1000000000000, + || { + // setup pool for paying fees to touch `SwapFirstAssetTrader` + setup_pool_for_paying_fees_with_foreign_assets(foreign_asset_create_params); + // staking pot account for collecting local native fees from `BuyExecution` + let _ = Balances::force_set_balance(RuntimeOrigin::root(), StakingPot::get().into(), ExistentialDeposit::get()); + // prepare bridge configuration + bridging_to_asset_hub_kusama() + }, + ( + [PalletInstance(bp_bridge_hub_polkadot::WITH_BRIDGE_POLKADOT_TO_KUSAMA_MESSAGES_PALLET_INDEX)].into(), + GlobalConsensus(Kusama), + [Parachain(1000)].into() + ), + || { + // check staking pot for ED + assert_eq!(Balances::free_balance(&staking_pot), ExistentialDeposit::get()); + // check now foreign asset for staking pot + assert_eq!( + ForeignAssets::balance( + foreign_asset_id_location.clone(), + &staking_pot + ), + 0 + ); + }, + || { + // `SwapFirstAssetTrader` - staking pot receives xcm fees in KSMs + assert!( + Balances::free_balance(&staking_pot) > ExistentialDeposit::get() + ); + // staking pot receives no foreign assets + assert_eq!( + ForeignAssets::balance( + foreign_asset_id_location.clone(), + &staking_pot + ), + 0 + ); + } + ) +} + +#[test] +fn receive_reserve_asset_deposited_ksm_from_asset_hub_kusama_fees_paid_by_sufficient_asset_works() { + const BLOCK_AUTHOR_ACCOUNT: [u8; 32] = [13; 32]; + let block_author_account = AccountId::from(BLOCK_AUTHOR_ACCOUNT); + let staking_pot = >::account_id(); + + let foreign_asset_id_location = + xcm::v4::Location::new(2, [xcm::v4::Junction::GlobalConsensus(xcm::v4::NetworkId::Kusama)]); + let foreign_asset_id_minimum_balance = 1_000_000_000; + // sovereign account as foreign asset owner (can be whoever for this scenario) + let foreign_asset_owner = LocationToAccountId::convert_location(&Location::parent()).unwrap(); + let foreign_asset_create_params = + (foreign_asset_owner, foreign_asset_id_location.clone(), foreign_asset_id_minimum_balance); + + remove_when_updated_to_stable2409::receive_reserve_asset_deposited_from_different_consensus_works::< + Runtime, + AllPalletsWithoutSystem, + XcmConfig, + ForeignAssetsInstance, + >( + collator_session_keys().add(collator_session_key(BLOCK_AUTHOR_ACCOUNT)), + ExistentialDeposit::get(), + AccountId::from([73; 32]), + block_author_account.clone(), + // receiving KSMs + foreign_asset_create_params, + 1000000000000, + bridging_to_asset_hub_kusama, + ( + PalletInstance(bp_bridge_hub_polkadot::WITH_BRIDGE_POLKADOT_TO_KUSAMA_MESSAGES_PALLET_INDEX).into(), + GlobalConsensus(Kusama), + Parachain(1000).into() + ), + || { + // check block author before + assert_eq!( + ForeignAssets::balance( + foreign_asset_id_location.clone(), + &block_author_account + ), + 0 + ); + }, + || { + // `TakeFirstAssetTrader` puts fees to the block author + assert!( + ForeignAssets::balance( + foreign_asset_id_location.clone(), + &block_author_account + ) > 0 + ); + // nothing adds fees to stakting_pot (e.g. `SwapFirstAssetTrader`, ...) + assert_eq!(Balances::free_balance(&staking_pot), 0); + } + ) +} #[test] fn reserve_transfer_native_asset_to_non_teleport_para_works() { @@ -585,27 +586,21 @@ fn reserve_transfer_native_asset_to_non_teleport_para_works() { ); } -// #[test] -// fn report_bridge_status_from_xcm_bridge_router_for_kusama_works() { -// asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::< -// Runtime, -// AllPalletsWithoutSystem, -// XcmConfig, -// LocationToAccountId, -// //ToKusamaXcmRouterInstance, -// >( -// collator_session_keys(), -// //bridging_to_asset_hub_kusama, -// || { -// Decode::decode(&mut &bp_asset_hub_paseo::CongestedMessage::get().encode()[..]) -// .unwrap() -// }, -// || { -// Decode::decode(&mut &bp_asset_hub_paseo::UncongestedMessage::get().encode()[..]) -// .unwrap() -// }, -// ) -// } +#[test] +fn report_bridge_status_from_xcm_bridge_router_for_kusama_works() { + asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::< + Runtime, + AllPalletsWithoutSystem, + XcmConfig, + LocationToAccountId, + ToKusamaXcmRouterInstance, + >( + collator_session_keys(), + bridging_to_asset_hub_kusama, + || bp_asset_hub_polkadot::build_congestion_message(Default::default(), true).into(), + || bp_asset_hub_polkadot::build_congestion_message(Default::default(), false).into(), + ) +} #[test] fn test_report_bridge_status_call_compatibility() { @@ -626,20 +621,20 @@ fn test_report_bridge_status_call_compatibility() { ) } -// #[test] -// fn check_sane_weight_report_bridge_status() { -// use pallet_xcm_bridge_hub_router::WeightInfo; -// let actual = >::WeightInfo::report_bridge_status(); -// let max_weight = bp_asset_hub_paseo::XcmBridgeHubRouterTransactCallMaxWeight::get(); -// assert!( -// actual.all_lte(max_weight), -// "max_weight: {:?} should be adjusted to actual {:?}", -// max_weight, -// actual -// ); -// } +#[test] +fn check_sane_weight_report_bridge_status() { + use pallet_xcm_bridge_hub_router::WeightInfo; + let actual = >::WeightInfo::report_bridge_status(); + let max_weight = bp_asset_hub_paseo::XcmBridgeHubRouterTransactCallMaxWeight::get(); + assert!( + actual.all_lte(max_weight), + "max_weight: {:?} should be adjusted to actual {:?}", + max_weight, + actual + ); +} #[test] fn change_xcm_bridge_hub_router_base_fee_by_governance_works() { @@ -1329,3 +1324,120 @@ pub mod remove_when_updated_to_stable2409 { }) } } + +#[test] +fn location_conversion_works() { + let alice_32 = + AccountId32 { network: None, id: polkadot_core_primitives::AccountId::from(ALICE).into() }; + let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; + + // the purpose of hardcoded values is to catch an unintended location conversion logic change. + struct TestCase { + description: &'static str, + location: Location, + expected_account_id_str: &'static str, + } + + let test_cases = vec![ + // DescribeTerminus + TestCase { + description: "DescribeTerminus Parent", + location: Location::new(1, Here), + expected_account_id_str: "5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG", + }, + TestCase { + description: "DescribeTerminus Sibling", + location: Location::new(1, [Parachain(1111)]), + expected_account_id_str: "5Eg2fnssmmJnF3z1iZ1NouAuzciDaaDQH7qURAy3w15jULDk", + }, + // DescribePalletTerminal + TestCase { + description: "DescribePalletTerminal Parent", + location: Location::new(1, [PalletInstance(50)]), + expected_account_id_str: "5CnwemvaAXkWFVwibiCvf2EjqwiqBi29S5cLLydZLEaEw6jZ", + }, + TestCase { + description: "DescribePalletTerminal Sibling", + location: Location::new(1, [Parachain(1111), PalletInstance(50)]), + expected_account_id_str: "5GFBgPjpEQPdaxEnFirUoa51u5erVx84twYxJVuBRAT2UP2g", + }, + // DescribeAccountId32Terminal + TestCase { + description: "DescribeAccountId32Terminal Parent", + location: Location::new(1, [alice_32]), + expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4", + }, + TestCase { + description: "DescribeAccountId32Terminal Sibling", + location: Location::new(1, [Parachain(1111), alice_32]), + expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg", + }, + // DescribeAccountKey20Terminal + TestCase { + description: "DescribeAccountKey20Terminal Parent", + location: Location::new(1, [bob_20]), + expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n", + }, + TestCase { + description: "DescribeAccountKey20Terminal Sibling", + location: Location::new(1, [Parachain(1111), bob_20]), + expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp", + }, + // DescribeTreasuryVoiceTerminal + TestCase { + description: "DescribeTreasuryVoiceTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Treasury, part: BodyPart::Voice }]), + expected_account_id_str: "5CUjnE2vgcUCuhxPwFoQ5r7p1DkhujgvMNDHaF2bLqRp4D5F", + }, + TestCase { + description: "DescribeTreasuryVoiceTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Treasury, part: BodyPart::Voice }], + ), + expected_account_id_str: "5G6TDwaVgbWmhqRUKjBhRRnH4ry9L9cjRymUEmiRsLbSE4gB", + }, + // DescribeBodyTerminal + TestCase { + description: "DescribeBodyTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Unit, part: BodyPart::Voice }]), + expected_account_id_str: "5EBRMTBkDisEXsaN283SRbzx9Xf2PXwUxxFCJohSGo4jYe6B", + }, + TestCase { + description: "DescribeBodyTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Unit, part: BodyPart::Voice }], + ), + expected_account_id_str: "5DBoExvojy8tYnHgLL97phNH975CyT45PWTZEeGoBZfAyRMH", + }, + ]; + + for tc in test_cases { + let expected = polkadot_core_primitives::AccountId::from_string(tc.expected_account_id_str) + .expect("Invalid AccountId string"); + + let got = LocationToAccountHelper::::convert_location( + tc.location.into(), + ) + .unwrap(); + + assert_eq!(got, expected, "{}", tc.description); + } +} + +#[test] +fn xcm_payment_api_works() { + parachains_runtimes_test_utils::test_cases::xcm_payment_api_with_native_token_works::< + Runtime, + RuntimeCall, + RuntimeOrigin, + Block, + >(); + asset_test_utils::test_cases::xcm_payment_api_with_pools_works::< + Runtime, + RuntimeCall, + RuntimeOrigin, + Block, + >(); +} diff --git a/system-parachains/asset-hub-paseo/tests/weight_trader.rs b/system-parachains/asset-hub-paseo/tests/weight_trader.rs index 0e9780de2..20da6d491 100644 --- a/system-parachains/asset-hub-paseo/tests/weight_trader.rs +++ b/system-parachains/asset-hub-paseo/tests/weight_trader.rs @@ -34,7 +34,7 @@ use frame_support::{ }, weights::WeightToFee as WeightToFeeT, }; -use parachains_common::{AccountId, AuraId}; +use parachains_common::{AccountId, AssetHubPolkadotAuraId as AuraId}; use sp_runtime::traits::MaybeEquivalence; use system_parachains_constants::paseo::{currency::*, fee::WeightToFee}; use xcm::latest::prelude::*; @@ -55,7 +55,7 @@ fn test_asset_xcm_trader() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -136,7 +136,7 @@ fn test_asset_xcm_trader_with_refund() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -220,7 +220,7 @@ fn test_asset_xcm_trader_refund_not_possible_since_amount_less_than_ed() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -276,7 +276,7 @@ fn test_that_buying_ed_refund_does_not_refund() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -342,7 +342,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -405,7 +405,7 @@ fn test_buy_and_refund_weight_with_native() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -463,7 +463,7 @@ fn test_buy_and_refund_weight_with_swap_local_asset_xcm_trader() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { @@ -562,7 +562,7 @@ fn test_buy_and_refund_weight_with_swap_foreign_asset_xcm_trader() { .with_session_keys(vec![( AccountId::from(ALICE), AccountId::from(ALICE), - SessionKeys { aura: AuraId::from(sp_core::sr25519::Public::from_raw(ALICE)) }, + SessionKeys { aura: AuraId::from(sp_core::ed25519::Public::from_raw(ALICE)) }, )]) .build() .execute_with(|| { diff --git a/system-parachains/bridge-hub-paseo/Cargo.toml b/system-parachains/bridge-hub-paseo/Cargo.toml index 50a33b008..65dd648d9 100644 --- a/system-parachains/bridge-hub-paseo/Cargo.toml +++ b/system-parachains/bridge-hub-paseo/Cargo.toml @@ -98,6 +98,8 @@ bp-relayers = { workspace = true } bp-runtime = { workspace = true } bp-kusama = { workspace = true } bp-polkadot = { workspace = true } +bp-xcm-bridge-hub = { workspace = true } +bp-xcm-bridge-hub-router = { workspace = true } bridge-hub-common = { workspace = true } bridge-runtime-common = { workspace = true } pallet-bridge-grandpa = { workspace = true } @@ -125,9 +127,11 @@ bridge-hub-test-utils = { workspace = true } bridge-runtime-common = { features = [ "integrity-test", ], workspace = true, default-features = true } +pallet-bridge-relayers = { workspace = true, features = ["integrity-test"] } sp-keyring = { workspace = true } static_assertions = { workspace = true } snowbridge-runtime-test-common = { workspace = true } +snowbridge-pallet-ethereum-client-fixtures = { workspace = true } parachains-runtimes-test-utils = { workspace = true } [features] @@ -147,6 +151,8 @@ std = [ "bp-polkadot/std", "bp-relayers/std", "bp-runtime/std", + "bp-xcm-bridge-hub-router/std", + "bp-xcm-bridge-hub/std", "bridge-hub-common/std", "bridge-runtime-common/std", "codec/std", @@ -259,6 +265,7 @@ runtime-benchmarks = [ "polkadot-parachain-primitives/runtime-benchmarks", "polkadot-runtime-common/runtime-benchmarks", "snowbridge-core/runtime-benchmarks", + "snowbridge-pallet-ethereum-client-fixtures/runtime-benchmarks", "snowbridge-pallet-ethereum-client/runtime-benchmarks", "snowbridge-pallet-inbound-queue/runtime-benchmarks", "snowbridge-pallet-outbound-queue/runtime-benchmarks", diff --git a/system-parachains/bridge-hub-paseo/primitives/src/lib.rs b/system-parachains/bridge-hub-paseo/primitives/src/lib.rs index fbd5da1bd..2a779f5cd 100644 --- a/system-parachains/bridge-hub-paseo/primitives/src/lib.rs +++ b/system-parachains/bridge-hub-paseo/primitives/src/lib.rs @@ -25,7 +25,7 @@ use bp_runtime::{ decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Parachain, }; use frame_support::dispatch::DispatchClass; -use sp_runtime::{FixedPointNumber, FixedU128, RuntimeDebug, Saturating}; +use sp_runtime::{FixedPointNumber, FixedU128, RuntimeDebug, Saturating, StateVersion}; /// BridgeHubPaseo parachain. #[derive(RuntimeDebug)] @@ -33,6 +33,7 @@ pub struct BridgeHubPaseo; impl Chain for BridgeHubPaseo { const ID: ChainId = *b"bhpd"; + const STATE_VERSION: StateVersion = StateVersion::V1; type BlockNumber = BlockNumber; type Hash = Hash; @@ -66,8 +67,11 @@ impl ChainWithMessages for BridgeHubPaseo { WITH_BRIDGE_HUB_POLKAPAS_MESSAGES_PALLET_NAME; const MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX: MessageNonce = MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX; - const MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX: MessageNonce = - MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX; + /// This constant limits the maximum number of messages in `receive_messages_proof`. + /// We need to adjust it from 4096 to 2024 due to the actual weights identified by + /// `check_message_lane_weights`. A higher value can be set once we switch + /// `max_extrinsic_weight` to `BlockWeightsForAsyncBacking`. + const MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX: MessageNonce = 2024; } /// Identifier of BridgeHubPaseo in the Paseo relay chain. @@ -84,7 +88,7 @@ pub const WITH_BRIDGE_HUB_POLKAPAS_RELAYERS_PALLET_NAME: &str = "BridgeRelayers" pub const WITH_BRIDGE_POLKAPAS_TO_KUSAMA_MESSAGES_PALLET_INDEX: u8 = 53; decl_bridge_finality_runtime_apis!(bridge_hub_paseo); -decl_bridge_messages_runtime_apis!(bridge_hub_paseo); +decl_bridge_messages_runtime_apis!(bridge_hub_paseo, LegacyLaneId); frame_support::parameter_types! { /// The XCM fee that is paid for executing XCM program (with `ExportMessage` instruction) at the Paseo @@ -130,7 +134,7 @@ pub fn estimate_paseo_to_kusama_byte_fee() -> Balance { // 2) the second part is the payment for bytes of the message delivery transaction, which is // "mined" at Kusama Bridge Hub. Hence, we need to use byte fees from that chain and convert // it to PASs here. - convert_from_uksm_to_udot(paseo_runtime_constants::fee::TRANSACTION_BYTE_FEE) + convert_from_uksm_to_udot(paseo_runtime_constants::fee::TRANSACTION_BYTE_FEE) // TODO } /// Convert from uKSMs to uPASs. @@ -155,7 +159,7 @@ pub mod snowbridge { use frame_support::parameter_types; use snowbridge_core::{PricingParameters, Rewards, U256}; use sp_runtime::FixedU128; - use xcm::latest::NetworkId; + use xcm::latest::{Location, NetworkId}; parameter_types! { /// Should match the `ForeignAssets::create` index on Asset Hub. @@ -186,6 +190,7 @@ pub mod snowbridge { /// /// pub EthereumNetwork: NetworkId = NetworkId::Ethereum { chain_id: 11155111 }; + pub EthereumLocation: Location = Location::new(2, EthereumNetwork::get()); } } diff --git a/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs b/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs index c086b0acb..bb3a3bc2d 100644 --- a/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs +++ b/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs @@ -15,13 +15,12 @@ // along with Cumulus. If not, see . use crate::{ - xcm_config, - xcm_config::{RelayTreasuryPalletAccount, UniversalLocation}, + xcm_config::{self, RelayNetwork, RelayTreasuryPalletAccount, UniversalLocation}, Balances, EthereumInboundQueue, EthereumOutboundQueue, EthereumSystem, MessageQueue, Runtime, RuntimeEvent, TransactionByteFee, }; -pub use bp_bridge_hub_paseo::snowbridge::EthereumNetwork; use bp_bridge_hub_paseo::snowbridge::{CreateAssetCall, InboundQueuePalletInstance, Parameters}; +pub use bp_bridge_hub_paseo::snowbridge::{EthereumLocation, EthereumNetwork}; use frame_support::{parameter_types, weights::ConstantMultiplier}; use pallet_xcm::EnsureXcm; use parachains_common::{AccountId, Balance}; @@ -31,6 +30,7 @@ use snowbridge_router_primitives::{inbound::MessageToXcm, outbound::EthereumBlob use sp_core::H160; use sp_runtime::traits::{ConstU32, ConstU8, Keccak256}; use system_parachains_constants::paseo::fee::WeightToFee; +use xcm::prelude::{GlobalConsensus, InteriorLocation, Location, Parachain}; /// Exports message to the Ethereum Gateway contract. pub type SnowbridgeExporter = EthereumBlobExporter< @@ -38,11 +38,14 @@ pub type SnowbridgeExporter = EthereumBlobExporter< EthereumNetwork, snowbridge_pallet_outbound_queue::Pallet, snowbridge_core::AgentIdOf, + EthereumSystem, >; parameter_types! { // The gateway address is set by governance. pub storage EthereumGatewayAddress: H160 = H160::zero(); + pub AssetHubFromEthereum: Location = Location::new(1,[GlobalConsensus(RelayNetwork::get()),Parachain(paseo_runtime_constants::system_parachain::ASSET_HUB_ID)]); + pub EthereumUniversalLocation: InteriorLocation = [GlobalConsensus(EthereumNetwork::get())].into(); } impl snowbridge_pallet_inbound_queue::Config for Runtime { @@ -63,6 +66,9 @@ impl snowbridge_pallet_inbound_queue::Config for Runtime { InboundQueuePalletInstance, AccountId, Balance, + EthereumSystem, + EthereumUniversalLocation, + AssetHubFromEthereum, >; type WeightToFee = WeightToFee; type LengthToFee = ConstantMultiplier; @@ -139,9 +145,12 @@ parameter_types! { }; } +pub const SLOTS_PER_EPOCH: u32 = snowbridge_pallet_ethereum_client::config::SLOTS_PER_EPOCH as u32; + impl snowbridge_pallet_ethereum_client::Config for Runtime { type RuntimeEvent = RuntimeEvent; type ForkVersions = ChainForkVersions; + type FreeHeadersInterval = ConstU32; type WeightInfo = crate::weights::snowbridge_pallet_ethereum_client::WeightInfo; } @@ -157,6 +166,8 @@ impl snowbridge_pallet_system::Config for Runtime { type Helper = Runtime; type DefaultPricingParameters = Parameters; type InboundDeliveryCost = EthereumInboundQueue; + type UniversalLocation = UniversalLocation; + type EthereumLocation = EthereumLocation; } #[cfg(feature = "runtime-benchmarks")] diff --git a/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs b/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs index ce693eabf..6dac6180e 100644 --- a/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs +++ b/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs @@ -20,35 +20,32 @@ use crate::{ weights, xcm_config::{UniversalLocation, XcmRouter}, AccountId, Balance, Balances, BlockNumber, BridgeKusamaMessages, PolkadotXcm, Runtime, - RuntimeEvent, RuntimeOrigin, XcmOverBridgeHubKusama, + RuntimeEvent, RuntimeHoldReason, XcmOverBridgeHubKusama, XcmpQueue, +}; + +use bp_messages::{ + source_chain::FromBridgedChainMessagesDeliveryProof, + target_chain::FromBridgedChainMessagesProof, LegacyLaneId, }; -use bp_messages::LaneId; use bp_parachains::SingleParaStoredHeaderDataBuilder; use bp_runtime::Chain; -use bridge_runtime_common::{ - extensions::refund_relayer_extension::{ - ActualFeeRefund, RefundBridgedParachainMessages, RefundSignedExtensionAdapter, - RefundableMessagesLane, RefundableParachain, - }, - messages, - messages::{ - source::{FromBridgedChainMessagesDeliveryProof, TargetHeaderChainAdapter}, - target::{FromBridgedChainMessagesProof, SourceHeaderChainAdapter}, - MessageBridge, ThisChainWithMessages, UnderlyingChainProvider, - }, - messages_xcm_extension::{ - SenderAndLane, XcmAsPlainPayload, XcmBlobHauler, XcmBlobHaulerAdapter, - XcmBlobMessageDispatch, XcmVersionOfDestAndRemoteBridge, - }, +use bridge_hub_common::xcm_version::XcmVersionOfDestAndRemoteBridge; +use frame_support::{ + parameter_types, + traits::{ConstU128, PalletInfoAccess}, }; -use frame_support::{parameter_types, traits::PalletInfoAccess}; +use frame_system::{EnsureNever, EnsureRoot}; +use pallet_bridge_messages::LaneIdOf; +use pallet_bridge_relayers::extension::{ + BridgeRelayersSignedExtension, WithMessagesExtensionConfig, +}; +use pallet_xcm_bridge_hub::{BridgeId, XcmAsPlainPayload}; +use parachains_common::xcm_config::{AllSiblingSystemParachains, RelayOrOtherSystemParachains}; +use polkadot_parachain_primitives::primitives::Sibling; use paseo_runtime_constants as constants; -use sp_runtime::{traits::ConstU32, RuntimeDebug}; +use sp_runtime::traits::ConstU32; use xcm::latest::prelude::*; -use xcm_builder::BridgeBlobDispatcher; - -/// Lane identifier, used to connect Polkadot Asset Hub and Kusama Asset Hub. -pub const XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA: LaneId = LaneId([0, 0, 0, 1]); +use xcm_builder::{BridgeBlobDispatcher, ParentIsPreset, SiblingParachainConvertsVia}; // Parameters that may be changed by the governance. parameter_types! { @@ -82,7 +79,7 @@ parameter_types! { /// Identifier of the sibling Polkadot Asset Hub parachain. pub AssetHubPaseoParaId: cumulus_primitives_core::ParaId = paseo_runtime_constants::system_parachain::ASSET_HUB_ID.into(); - /// Identifier of the bridged Kusama Asset Hub parachain. + /// Identifier of the sibling Kusama Asset Hub parachain. pub AssetHubKusamaParaId: cumulus_primitives_core::ParaId = kusama_runtime_constants::system_parachain::ASSET_HUB_ID.into(); /// Location of the bridged Kusama Bridge Hub parachain. pub BridgeHubKusamaLocation: Location = Location { @@ -92,28 +89,28 @@ parameter_types! { Parachain(::PARACHAIN_ID) ].into() }; +} - /// A route (XCM location and bridge lane) that the Polkadot Asset Hub -> Kusama Asset Hub - /// message is following. - pub FromAssetHubPolkadotToAssetHubKusamaRoute: SenderAndLane = SenderAndLane::new( - ParentThen(Parachain(AssetHubPaseoParaId::get().into()).into()).into(), - XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA, - ); - - /// Lane identifier, used to connect Polkadot Asset Hub and Kusama Asset Hub. - pub const AssetHubPolkadotToAssetHubKusamaMessagesLane: bp_messages::LaneId - = XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA; - /// All active lanes that the current bridge supports. - pub ActiveOutboundLanesToBridgeHubKusama: &'static [bp_messages::LaneId] - = &[XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA]; - - /// Lanes - pub ActiveLanes: sp_std::vec::Vec<(SenderAndLane, (NetworkId, InteriorLocation))> = sp_std::vec![ - ( - FromAssetHubPolkadotToAssetHubKusamaRoute::get(), - (KusamaGlobalConsensusNetwork::get(), Parachain(AssetHubKusamaParaId::get().into()).into()) - ) - ]; +pub type RelayersForLegacyLaneIdsMessagesInstance = (); +/// Allows collect and claim rewards for relayers. +impl pallet_bridge_relayers::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Reward = Balance; + type PaymentProcedure = bp_relayers::PayRewardFromAccount< + pallet_balances::Pallet, + AccountId, + Self::LaneId, + >; + type StakeAndSlash = pallet_bridge_relayers::StakeAndSlashNamed< + AccountId, + BlockNumber, + Balances, + RelayerStakeReserveId, + RequiredStakeForStakeAndSlash, + RelayerStakeLease, + >; + type LaneId = LegacyLaneId; + type WeightInfo = weights::pallet_bridge_relayers::WeightInfo; } // Parameters, used by bridge transport code. @@ -136,29 +133,43 @@ parameter_types! { /// Name of the `paras` pallet at Kusama that tracks all parachain heads. pub const ParachainPalletNameAtKusama: &'static str = bp_kusama::PARAS_PALLET_NAME; - /// Maximal number of entries in the unrewarded relayers vector at the Polkadot Bridge Hub. It matches the - /// maximal number of unrewarded relayers that the single confirmation transaction at Kusama Bridge - /// Hub may process. - pub const MaxUnrewardedRelayerEntriesAtInboundLane: bp_messages::MessageNonce = - bp_bridge_hub_kusama::MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX; - /// Maximal number of unconfirmed messages at the Polkadot Bridge Hub. It matches the maximal number of - /// uncinfirmed messages that the single confirmation transaction at Kusama Bridge Hub may process. - pub const MaxUnconfirmedMessagesAtInboundLane: bp_messages::MessageNonce = - bp_bridge_hub_kusama::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX; - /// Reserve identifier, used by the `pallet_bridge_relayers` to hold funds of registered relayer. pub const RelayerStakeReserveId: [u8; 8] = *b"brdgrlrs"; /// Minimal period of relayer registration. Roughly, it is the 1 hour of real time. pub const RelayerStakeLease: u32 = 300; - // see the `FEE_BOOST_PER_RELAY_HEADER` constant get the meaning of this value - pub PriorityBoostPerRelayHeader: u64 = 220_053_724_053; - // see the `FEE_BOOST_PER_PARACHAIN_HEADER` constant get the meaning of this value - pub PriorityBoostPerParachainHeader: u64 = 9_182_241_758_241; // see the `FEE_BOOST_PER_MESSAGE` constant to get the meaning of this value pub PriorityBoostPerMessage: u64 = 1_820_444_444_444; } +/// Proof of messages, coming from Kusama. +pub type FromKusamaBridgeHubMessagesProof = + FromBridgedChainMessagesProof>; +/// Messages delivery proof for Kusama Bridge Hub -> Paseo Bridge Hub messages. +pub type ToKusamaBridgeHubMessagesDeliveryProof = + FromBridgedChainMessagesDeliveryProof>; + +/// Dispatches received XCM messages from other bridge +pub type FromKusamaMessageBlobDispatcher = BridgeBlobDispatcher< + XcmRouter, + UniversalLocation, + BridgePolkadotToKusamaMessagesPalletInstance, +>; + +/// Signed extension that refunds relayers that are delivering messages from the Kusama parachain. +pub type OnBridgeHubPaseoRefundBridgeHubKusamaMessages = BridgeRelayersSignedExtension< + Runtime, + WithMessagesExtensionConfig< + StrOnBridgeHubPaseoRefundBridgeHubKusamaMessages, + Runtime, + WithBridgeHubKusamaMessagesInstance, + RelayersForLegacyLaneIdsMessagesInstance, + PriorityBoostPerMessage, + >, + LaneIdOf, +>; +bp_runtime::generate_static_str_provider!(OnBridgeHubPaseoRefundBridgeHubKusamaMessages); + /// Add GRANDPA bridge pallet to track Kusama relay chain. pub type BridgeGrandpaKusamaInstance = pallet_bridge_grandpa::Instance1; impl pallet_bridge_grandpa::Config for Runtime { @@ -183,88 +194,41 @@ impl pallet_bridge_parachains::Config for Runtime type MaxParaHeadDataSize = MaxParaHeadDataSize; } -/// Allows collect and claim rewards for relayers. -impl pallet_bridge_relayers::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type Reward = Balance; - type PaymentProcedure = - bp_relayers::PayRewardFromAccount, AccountId>; - type StakeAndSlash = pallet_bridge_relayers::StakeAndSlashNamed< - AccountId, - BlockNumber, - Balances, - RelayerStakeReserveId, - RequiredStakeForStakeAndSlash, - RelayerStakeLease, - >; - type WeightInfo = weights::pallet_bridge_relayers::WeightInfo; -} - /// Add XCM messages support for exchanging messages with BridgeHubKusama. pub type WithBridgeHubKusamaMessagesInstance = pallet_bridge_messages::Instance1; impl pallet_bridge_messages::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = weights::pallet_bridge_messages::WeightInfo; - type BridgedChainId = BridgeHubKusamaChainId; - type ActiveOutboundLanes = ActiveOutboundLanesToBridgeHubKusama; - type MaxUnrewardedRelayerEntriesAtInboundLane = MaxUnrewardedRelayerEntriesAtInboundLane; - type MaxUnconfirmedMessagesAtInboundLane = MaxUnconfirmedMessagesAtInboundLane; - type MaximalOutboundPayloadSize = ToBridgeHubKusamaMaximalOutboundPayloadSize; - type OutboundPayload = XcmAsPlainPayload; + type ThisChain = bp_bridge_hub_paseo::BridgeHubPaseo; + type BridgedChain = bp_bridge_hub_kusama::BridgeHubKusama; + type BridgedHeaderChain = pallet_bridge_parachains::ParachainHeaders< + Runtime, + BridgeParachainKusamaInstance, + bp_bridge_hub_kusama::BridgeHubKusama, + >; + type OutboundPayload = XcmAsPlainPayload; type InboundPayload = XcmAsPlainPayload; - type InboundRelayer = AccountId; - type DeliveryPayments = (); + type LaneId = LegacyLaneId; - type TargetHeaderChain = TargetHeaderChainAdapter; + type DeliveryPayments = (); type DeliveryConfirmationPayments = pallet_bridge_relayers::DeliveryConfirmationPaymentsAdapter< Runtime, WithBridgeHubKusamaMessagesInstance, + RelayersForLegacyLaneIdsMessagesInstance, DeliveryRewardInBalance, >; - type SourceHeaderChain = SourceHeaderChainAdapter; - type MessageDispatch = XcmBlobMessageDispatch< - FromKusamaMessageBlobDispatcher, - Self::WeightInfo, - cumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider< - AssetHubPaseoParaId, - Runtime, - >, - >; - type OnMessagesDelivered = OnMessagesDeliveredFromKusama; -} - -/// Proof of messages, coming from Kusama. -pub type FromKusamaBridgeHubMessagesProof = - FromBridgedChainMessagesProof; -/// Messages delivery proof for Polkadot Bridge Hub -> Kusama Bridge Hub messages. -pub type ToKusamaBridgeHubMessagesDeliveryProof = - FromBridgedChainMessagesDeliveryProof; - -/// Dispatches received XCM messages from Kusama BridgeHub. -type FromKusamaMessageBlobDispatcher = BridgeBlobDispatcher< - XcmRouter, - UniversalLocation, - BridgePolkadotToKusamaMessagesPalletInstance, ->; - -/// Export XCM messages to be relayed to the other side -pub type ToBridgeHubKusamaHaulBlobExporter = XcmOverBridgeHubKusama; -pub struct ToBridgeHubKusamaXcmBlobHauler; -impl XcmBlobHauler for ToBridgeHubKusamaXcmBlobHauler { - type Runtime = Runtime; - type MessagesInstance = WithBridgeHubKusamaMessagesInstance; - - type ToSourceChainSender = XcmRouter; - type CongestedMessage = bp_asset_hub_paseo::CongestedMessage; - type UncongestedMessage = bp_asset_hub_paseo::UncongestedMessage; + type MessageDispatch = XcmOverBridgeHubKusama; + type OnMessagesDelivered = XcmOverBridgeHubKusama; } /// Add support for the export and dispatch of XCM programs. pub type XcmOverBridgeHubKusamaInstance = pallet_xcm_bridge_hub::Instance1; impl pallet_xcm_bridge_hub::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type UniversalLocation = UniversalLocation; type BridgedNetwork = KusamaGlobalConsensusNetworkLocation; type BridgeMessagesPalletInstance = WithBridgeHubKusamaMessagesInstance; @@ -273,79 +237,117 @@ impl pallet_xcm_bridge_hub::Config for Runtime { // covered by the measured weight of the `ExportMessage` instruction. type MessageExportPrice = (); type DestinationVersion = XcmVersionOfDestAndRemoteBridge; - type Lanes = ActiveLanes; - type LanesSupport = ToBridgeHubKusamaXcmBlobHauler; -} -/// On messages delivered callback. -type OnMessagesDeliveredFromKusama = - XcmBlobHaulerAdapter; - -/// Messaging Bridge configuration for BridgeHubPolkadot -> BridgeHubKusama -pub struct WithBridgeHubKusamaMessageBridge; -impl MessageBridge for WithBridgeHubKusamaMessageBridge { - const BRIDGED_MESSAGES_PALLET_NAME: &'static str = - bp_bridge_hub_polkadot::WITH_BRIDGE_HUB_POLKADOT_MESSAGES_PALLET_NAME; - type ThisChain = BridgeHubPolkadot; - type BridgedChain = BridgeHubKusama; - type BridgedHeaderChain = pallet_bridge_parachains::ParachainHeaders< - Runtime, - BridgeParachainKusamaInstance, - bp_bridge_hub_kusama::BridgeHubKusama, - >; + type ForceOrigin = EnsureRoot; + // We don't want to allow creating bridges for this instance with `LegacyLaneId`. + type OpenBridgeOrigin = EnsureNever; + // Converter aligned with `OpenBridgeOrigin`. + type BridgeOriginAccountIdConverter = + (ParentIsPreset, SiblingParachainConvertsVia); + + // We do not allow creating bridges here (see `T::OpenBridgeOrigin` above), so there is no need + // to set a deposit. + type BridgeDeposit = ConstU128<0>; + type Currency = Balances; + type RuntimeHoldReason = RuntimeHoldReason; + type AllowWithoutBridgeDeposit = + RelayOrOtherSystemParachains; + + type LocalXcmChannelManager = CongestionManager; + type BlobDispatcher = FromKusamaMessageBlobDispatcher; } -/// Maximal outbound payload size of BridgeHubPolkadot -> BridgeHubKusama messages. -pub type ToBridgeHubKusamaMaximalOutboundPayloadSize = - messages::source::FromThisChainMaximalOutboundPayloadSize; +/// Implementation of `bp_xcm_bridge_hub::LocalXcmChannelManager` for congestion management. +pub struct CongestionManager; +impl pallet_xcm_bridge_hub::LocalXcmChannelManager for CongestionManager { + type Error = SendError; + + fn is_congested(with: &Location) -> bool { + // This is used to check the inbound bridge queue/messages to determine if they can be + // dispatched and sent to the sibling parachain. Therefore, checking outbound `XcmpQueue` + // is sufficient here. + use bp_xcm_bridge_hub_router::XcmChannelStatusProvider; + cumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::::is_congested( + with, + ) + } -/// BridgeHubKusama chain from message lane point of view. -#[derive(RuntimeDebug, Clone, Copy)] -pub struct BridgeHubKusama; + fn suspend_bridge(local_origin: &Location, bridge: BridgeId) -> Result<(), Self::Error> { + // This bridge is intended for AH<>AH communication with a hard-coded/static lane, + // so `local_origin` is expected to represent only the local AH. + send_xcm::( + local_origin.clone(), + bp_asset_hub_kusama::build_congestion_message(bridge.inner(), true).into(), + ) + .map(|_| ()) + } -impl UnderlyingChainProvider for BridgeHubKusama { - type Chain = bp_bridge_hub_kusama::BridgeHubKusama; + fn resume_bridge(local_origin: &Location, bridge: BridgeId) -> Result<(), Self::Error> { + // This bridge is intended for AH<>AH communication with a hard-coded/static lane, + // so `local_origin` is expected to represent only the local AH. + send_xcm::( + local_origin.clone(), + bp_asset_hub_kusama::build_congestion_message(bridge.inner(), false).into(), + ) + .map(|_| ()) + } } -impl messages::BridgedChainWithMessages for BridgeHubKusama {} - -/// BridgeHubPolkadot chain from message lane point of view. -#[derive(RuntimeDebug, Clone, Copy)] -pub struct BridgeHubPolkadot; - -impl UnderlyingChainProvider for BridgeHubPolkadot { - type Chain = bp_bridge_hub_paseo::BridgeHubPaseo; -} +#[cfg(feature = "runtime-benchmarks")] +pub(crate) fn open_bridge_for_benchmarks( + with: pallet_xcm_bridge_hub::LaneIdOf, + sibling_para_id: u32, +) -> InteriorLocation +where + R: pallet_xcm_bridge_hub::Config, + XBHI: 'static, + C: xcm_executor::traits::ConvertLocation< + bp_runtime::AccountIdOf>, + >, +{ + use pallet_xcm_bridge_hub::{Bridge, BridgeId, BridgeState}; + use sp_runtime::traits::Zero; + use xcm::VersionedInteriorLocation; + + // insert bridge metadata + let lane_id = with; + let sibling_parachain = Location::new(1, [Parachain(sibling_para_id)]); + let universal_source = [GlobalConsensus(Paseo), Parachain(sibling_para_id)].into(); + let universal_destination = [GlobalConsensus(Kusama), Parachain(2075)].into(); + let bridge_id = BridgeId::new(&universal_source, &universal_destination); + + // insert only bridge metadata, because the benchmarks create lanes + pallet_xcm_bridge_hub::Bridges::::insert( + bridge_id, + Bridge { + bridge_origin_relative_location: sp_std::boxed::Box::new( + sibling_parachain.clone().into(), + ), + bridge_origin_universal_location: sp_std::boxed::Box::new( + VersionedInteriorLocation::from(universal_source.clone()), + ), + bridge_destination_universal_location: sp_std::boxed::Box::new( + VersionedInteriorLocation::from(universal_destination), + ), + state: BridgeState::Opened, + bridge_owner_account: C::convert_location(&sibling_parachain).expect("valid AccountId"), + deposit: Zero::zero(), + lane_id, + }, + ); + pallet_xcm_bridge_hub::LaneToBridge::::insert(lane_id, bridge_id); -impl ThisChainWithMessages for BridgeHubPolkadot { - type RuntimeOrigin = RuntimeOrigin; + universal_source } -/// Signed extension that refunds relayers that are delivering messages from the Kusama parachain. -pub type RefundBridgeHubKusamaMessages = RefundSignedExtensionAdapter< - RefundBridgedParachainMessages< - Runtime, - RefundableParachain, - RefundableMessagesLane< - WithBridgeHubKusamaMessagesInstance, - AssetHubPolkadotToAssetHubKusamaMessagesLane, - >, - ActualFeeRefund, - PriorityBoostPerMessage, - StrRefundBridgeHubKusamaMessages, - >, ->; -bp_runtime::generate_static_str_provider!(RefundBridgeHubKusamaMessages); - #[cfg(test)] mod tests { use super::*; use bridge_runtime_common::{ assert_complete_bridge_types, integrity::{ - assert_complete_bridge_constants, check_message_lane_weights, - AssertBridgeMessagesPalletConstants, AssertBridgePalletNames, AssertChainConstants, - AssertCompleteBridgeConstants, + assert_complete_with_parachain_bridge_constants, check_message_lane_weights, + AssertChainConstants, AssertCompleteBridgeConstants, }, }; @@ -359,13 +361,10 @@ mod tests { /// We want this tip to be large enough (delivery transactions with more messages = less /// operational costs and a faster bridge), so this value should be significant. const FEE_BOOST_PER_MESSAGE: Balance = 2 * constants::currency::UNITS; - // see `FEE_BOOST_PER_MESSAGE` comment - const FEE_BOOST_PER_RELAY_HEADER: Balance = 2 * constants::currency::UNITS; - // see `FEE_BOOST_PER_MESSAGE` comment - const FEE_BOOST_PER_PARACHAIN_HEADER: Balance = 2 * constants::currency::UNITS; #[test] fn ensure_bridge_hub_polkadot_message_lane_weights_are_correct() { + use bp_messages::ChainWithMessages; check_message_lane_weights::< bp_bridge_hub_polkadot::BridgeHubPolkadot, Runtime, @@ -382,52 +381,23 @@ mod tests { fn ensure_bridge_integrity() { assert_complete_bridge_types!( runtime: Runtime, - with_bridged_chain_grandpa_instance: BridgeGrandpaKusamaInstance, with_bridged_chain_messages_instance: WithBridgeHubKusamaMessagesInstance, - bridge: WithBridgeHubKusamaMessageBridge, this_chain: bp_polkadot::Polkadot, bridged_chain: bp_kusama::Kusama, ); - assert_complete_bridge_constants::< + assert_complete_with_parachain_bridge_constants::< Runtime, BridgeGrandpaKusamaInstance, WithBridgeHubKusamaMessagesInstance, - WithBridgeHubKusamaMessageBridge, >(AssertCompleteBridgeConstants { this_chain_constants: AssertChainConstants { block_length: bp_bridge_hub_polkadot::BlockLength::get(), block_weights: bp_bridge_hub_polkadot::BlockWeights::get(), }, - messages_pallet_constants: AssertBridgeMessagesPalletConstants { - max_unrewarded_relayers_in_bridged_confirmation_tx: - bp_bridge_hub_kusama::MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX, - max_unconfirmed_messages_in_bridged_confirmation_tx: - bp_bridge_hub_kusama::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX, - bridged_chain_id: bp_bridge_hub_kusama::BridgeHubKusama::ID, - }, - pallet_names: AssertBridgePalletNames { - with_this_chain_messages_pallet_name: - bp_bridge_hub_polkadot::WITH_BRIDGE_HUB_POLKADOT_MESSAGES_PALLET_NAME, - with_bridged_chain_grandpa_pallet_name: bp_kusama::WITH_KUSAMA_GRANDPA_PALLET_NAME, - with_bridged_chain_messages_pallet_name: - bp_bridge_hub_kusama::WITH_BRIDGE_HUB_KUSAMA_MESSAGES_PALLET_NAME, - }, }); - bridge_runtime_common::extensions::priority_calculator::per_relay_header::ensure_priority_boost_is_sane::< - Runtime, - BridgeGrandpaKusamaInstance, - PriorityBoostPerRelayHeader, - >(FEE_BOOST_PER_RELAY_HEADER); - - bridge_runtime_common::extensions::priority_calculator::per_parachain_header::ensure_priority_boost_is_sane::< - Runtime, - RefundableParachain, - PriorityBoostPerParachainHeader, - >(FEE_BOOST_PER_PARACHAIN_HEADER); - - bridge_runtime_common::extensions::priority_calculator::per_message::ensure_priority_boost_is_sane::< + pallet_bridge_relayers::extension::per_message::ensure_priority_boost_is_sane::< Runtime, WithBridgeHubKusamaMessagesInstance, PriorityBoostPerMessage, @@ -444,3 +414,27 @@ mod tests { .starts_with(&KusamaGlobalConsensusNetworkLocation::get())); } } + +/// Contains the migration for the AssetHubPaseo<>AssetHubKusama bridge. +pub mod migration { + use super::*; + use frame_support::traits::ConstBool; + + parameter_types! { + pub AssetHubPaseoToAssetHubKusamaMessagesLane: LegacyLaneId = LegacyLaneId([0, 0, 0, 1]); + pub AssetHubPaseoLocation: Location = Location::new(1, [Parachain(bp_asset_hub_paseo::ASSET_HUB_PASEO_PARACHAIN_ID)]); + pub AssetHubKusamaUniversalLocation: InteriorLocation = [GlobalConsensus(KusamaGlobalConsensusNetwork::get()), Parachain(bp_asset_hub_kusama::ASSET_HUB_KUSAMA_PARACHAIN_ID)].into(); + } + + /// Ensure that the existing lanes for the AHR<>AHW bridge are correctly configured. + pub type StaticToDynamicLanes = pallet_xcm_bridge_hub::migration::OpenBridgeForLane< + Runtime, + XcmOverBridgeHubKusamaInstance, + AssetHubPaseoToAssetHubKusamaMessagesLane, + // the lanes are already created for AHP<>AHK, but we need to link them to the bridge + // structs + ConstBool, + AssetHubPaseoLocation, + AssetHubKusamaUniversalLocation, + >; +} diff --git a/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs b/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs index 2e2d4c11e..17589522c 100644 --- a/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs +++ b/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs @@ -28,6 +28,7 @@ fn bridge_hub_paseo_genesis( invulnerables: Vec<(AccountId, AuraId)>, endowed_accounts: Vec, id: ParaId, + opened_bridges: Vec<(Location, InteriorLocation, Option)>, ) -> serde_json::Value { serde_json::json!({ "balances": BalancesConfig { @@ -57,6 +58,7 @@ fn bridge_hub_paseo_genesis( ) }) .collect(), + ..Default::default() }, "sudo": { "key": Some(get_account_id_from_seed::("Alice")) @@ -64,6 +66,7 @@ fn bridge_hub_paseo_genesis( "polkadotXcm": { "safeXcmVersion": Some(SAFE_XCM_VERSION), }, + "xcmOverBridgeHubKusama": XcmOverBridgeHubKusamaConfig { opened_bridges, ..Default::default() }, "ethereumSystem": EthereumSystemConfig { para_id: id, asset_hub_para_id: paseo_runtime_constants::system_parachain::ASSET_HUB_ID.into(), @@ -74,14 +77,6 @@ fn bridge_hub_paseo_genesis( }) } -pub fn bridge_hub_paseo_local_testnet_genesis(para_id: ParaId) -> serde_json::Value { - bridge_hub_paseo_genesis(invulnerables(), testnet_accounts(), para_id) -} - -fn bridge_hub_paseo_development_genesis(para_id: ParaId) -> serde_json::Value { - bridge_hub_paseo_local_testnet_genesis(para_id) -} - /// Provides the names of the predefined genesis configs for this runtime. pub fn preset_names() -> Vec { vec![PresetId::from("development"), PresetId::from("local_testnet")] @@ -90,8 +85,18 @@ pub fn preset_names() -> Vec { /// Provides the JSON representation of predefined genesis config for given `id`. pub fn get_preset(id: &sp_genesis_builder::PresetId) -> Option> { let patch = match id.try_into() { - Ok("development") => bridge_hub_paseo_development_genesis(1002.into()), - Ok("local_testnet") => bridge_hub_paseo_local_testnet_genesis(1002.into()), + Ok("development") => + bridge_hub_paseo_genesis(invulnerables(), testnet_accounts(), 1002.into(), vec![]), + Ok("local_testnet") => bridge_hub_paseo_genesis( + invulnerables(), + testnet_accounts(), + 1002.into(), + vec![( + Location::new(1, [Parachain(1000)]), + Junctions::from([GlobalConsensus(Kusama), Parachain(1000)]), + Some(bp_messages::LegacyLaneId([0, 0, 0, 1])), + )], + ), _ => return None, }; Some( diff --git a/system-parachains/bridge-hub-paseo/src/lib.rs b/system-parachains/bridge-hub-paseo/src/lib.rs index 8f76fcb48..8cfb844ce 100644 --- a/system-parachains/bridge-hub-paseo/src/lib.rs +++ b/system-parachains/bridge-hub-paseo/src/lib.rs @@ -59,8 +59,8 @@ use frame_support::{ genesis_builder_helper::{build_state, get_preset}, parameter_types, traits::{ - tokens::imbalance::ResolveTo, ConstBool, ConstU32, ConstU64, ConstU8, EitherOfDiverse, - Everything, TransformOrigin, + tokens::imbalance::ResolveTo, ConstBool, ConstU32, ConstU64, ConstU8, Contains, + EitherOfDiverse, TransformOrigin, }, weights::{ConstantMultiplier, Weight, WeightToFee as _}, PalletId, @@ -122,7 +122,7 @@ pub type SignedExtra = ( frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, BridgeRejectObsoleteHeadersAndMessages, - bridge_to_kusama_config::RefundBridgeHubKusamaMessages, + bridge_to_kusama_config::OnBridgeHubPaseoRefundBridgeHubKusamaMessages, frame_metadata_hash_extension::CheckMetadataHash, ); @@ -140,10 +140,29 @@ bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! { pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; +parameter_types! { + pub const BridgeKusamaMessagesPalletName: &'static str = "BridgeKusamaMessages"; + pub const OutboundLanesCongestedSignalsKey: &'static str = "OutboundLanesCongestedSignals"; +} + /// Migrations to apply on runtime upgrade. pub type Migrations = ( // unreleased and/or un-applied cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, + pallet_bridge_messages::migration::v1::MigrationToV1< + Runtime, + bridge_to_kusama_config::WithBridgeHubKusamaMessagesInstance, + >, + bridge_to_kusama_config::migration::StaticToDynamicLanes, + frame_support::migrations::RemoveStorage< + BridgeKusamaMessagesPalletName, + OutboundLanesCongestedSignalsKey, + RocksDbWeight, + >, + pallet_bridge_relayers::migration::v1::MigrationToV1< + Runtime, + bridge_to_kusama_config::RelayersForLegacyLaneIdsMessagesInstance, + >, // permanent pallet_xcm::migration::MigrateToLatestXcmVersion, ); @@ -169,7 +188,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("bridge-hub-paseo"), impl_name: create_runtime_str!("bridge-hub-paseo"), authoring_version: 1, - spec_version: 1_003_003, + spec_version: 1_004_000, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 4, @@ -207,6 +226,24 @@ parameter_types! { pub const SS58Prefix: u8 = 0; } +/// Disables extrinsics matching the specified calls. +pub struct BaseFilter; +impl Contains for BaseFilter { + fn contains(call: &RuntimeCall) -> bool { + // Disallow these Snowbridge system calls. + if matches!( + call, + RuntimeCall::EthereumSystem(snowbridge_pallet_system::Call::create_agent { .. }) | + RuntimeCall::EthereumSystem( + snowbridge_pallet_system::Call::create_channel { .. } + ) + ) { + return false; + } + true + } +} + // Configure FRAME pallets to include in runtime. impl frame_system::Config for Runtime { @@ -244,7 +281,7 @@ impl frame_system::Config for Runtime { /// The weight of database operations that the runtime can invoke. type DbWeight = RocksDbWeight; /// The basic call filter to use in dispatchable. - type BaseCallFilter = Everything; + type BaseCallFilter = BaseFilter; /// Weight information for the extrinsics of this pallet. type SystemWeightInfo = weights::frame_system::WeightInfo; /// Block & extrinsics weights: base values and limits. @@ -574,6 +611,9 @@ construct_runtime!( } ); +#[cfg(feature = "runtime-benchmarks")] +use pallet_bridge_messages::LaneIdOf; + #[cfg(feature = "runtime-benchmarks")] mod benches { frame_benchmarking::define_benchmarks!( @@ -760,7 +800,8 @@ impl_runtime_apis! { } fn query_weight_to_asset_fee(weight: Weight, asset: VersionedAssetId) -> Result { - match asset.try_as::() { + let latest_asset_id: Result = asset.clone().try_into(); + match latest_asset_id { Ok(asset_id) if asset_id.0 == xcm_config::DotRelayLocation::get() => { // for native token Ok(WeightToFee::weight_to_fee(&weight)) @@ -859,7 +900,7 @@ impl_runtime_apis! { impl bp_bridge_hub_kusama::FromBridgeHubKusamaInboundLaneApi for Runtime { fn message_details( - lane: bp_messages::LaneId, + lane: bp_messages::LegacyLaneId, messages: Vec<(bp_messages::MessagePayload, bp_messages::OutboundMessageDetails)>, ) -> Vec { bridge_runtime_common::messages_api::inbound_message_details::< @@ -871,7 +912,7 @@ impl_runtime_apis! { impl bp_bridge_hub_kusama::ToBridgeHubKusamaOutboundLaneApi for Runtime { fn message_details( - lane: bp_messages::LaneId, + lane: bp_messages::LegacyLaneId, begin: bp_messages::MessageNonce, end: bp_messages::MessageNonce, ) -> Vec { @@ -951,6 +992,7 @@ impl_runtime_apis! { config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; + use frame_support::traits::WhitelistedStorageKeys; use sp_storage::TrackedStorageKey; use frame_system_benchmarking::Pallet as SystemBench; @@ -1132,11 +1174,36 @@ impl_runtime_apis! { ); BenchmarkError::Stop("XcmVersion was not stored!") })?; + + let sibling_system_parachain_id = Parachain(1000); + let remote_parachain_id = Parachain(8765); + let sibling_parachain_location = Location::new(1, [sibling_system_parachain_id]); + + // open bridge + let bridge_destination_universal_location: InteriorLocation = [GlobalConsensus(NetworkId::Kusama), remote_parachain_id].into(); + let locations = XcmOverBridgeHubKusama::bridge_locations( + sibling_parachain_location.clone(), + bridge_destination_universal_location.clone(), + )?; + XcmOverBridgeHubKusama::do_open_bridge( + locations, + bp_messages::LegacyLaneId([1, 2, 3, 4]), + true, + ).map_err(|e| { + log::error!( + "Failed to `XcmOverBridgeHubRococo::open_bridge`({:?}, {:?})`, error: {:?}", + sibling_parachain_location, + bridge_destination_universal_location, + e + ); + BenchmarkError::Stop("Bridge was not opened!") + })?; + Ok( ( - bridge_to_kusama_config::FromAssetHubPolkadotToAssetHubKusamaRoute::get().location, + sibling_parachain_location, NetworkId::Kusama, - Parachain(bridge_to_kusama_config::AssetHubKusamaParaId::get().into()).into() + [remote_parachain_id].into() ) ) } @@ -1160,12 +1227,13 @@ impl_runtime_apis! { impl BridgeRelayersConfig for Runtime { fn prepare_rewards_account( - account_params: bp_relayers::RewardsAccountParams, + account_params: bp_relayers::RewardsAccountParams>, reward: Balance, ) { let rewards_account = bp_relayers::PayRewardFromAccount::< Balances, - AccountId + AccountId, + LaneIdOf >::rewards_account(account_params); Self::deposit_account(rewards_account, reward); } @@ -1188,17 +1256,17 @@ impl_runtime_apis! { fn prepare_parachain_heads_proof( parachains: &[bp_polkadot_core::parachains::ParaId], parachain_head_size: u32, - proof_size: bp_runtime::StorageProofSize, + proof_params: bp_runtime::UnverifiedStorageProofParams, ) -> ( - pallet_bridge_parachains::RelayBlockNumber, - pallet_bridge_parachains::RelayBlockHash, + bp_parachains::RelayBlockNumber, + bp_parachains::RelayBlockHash, bp_polkadot_core::parachains::ParaHeadsProof, Vec<(bp_polkadot_core::parachains::ParaId, bp_polkadot_core::parachains::ParaHash)>, ) { prepare_parachain_heads_proof::( parachains, parachain_head_size, - proof_size, + proof_params, ) } } @@ -1217,8 +1285,9 @@ impl_runtime_apis! { impl BridgeMessagesConfig for Runtime { fn is_relayer_rewarded(relayer: &Self::AccountId) -> bool { let bench_lane_id = >::bench_lane_id(); - let bridged_chain_id = bridge_to_kusama_config::BridgeHubKusamaChainId::get(); - pallet_bridge_relayers::Pallet::::relayer_reward( + use bp_runtime::Chain; + let bridged_chain_id =>::BridgedChain::ID; + pallet_bridge_relayers::Pallet::::relayer_reward( relayer, bp_relayers::RewardsAccountParams::new( bench_lane_id, @@ -1229,25 +1298,48 @@ impl_runtime_apis! { } fn prepare_message_proof( - params: MessageProofParams, - ) -> (bridge_to_kusama_config::FromKusamaBridgeHubMessagesProof, Weight) { + params: MessageProofParams>, + ) -> (bridge_to_kusama_config::FromKusamaBridgeHubMessagesProof, Weight) { use cumulus_primitives_core::XcmpMessageSource; assert!(XcmpQueue::take_outbound_messages(usize::MAX).is_empty()); ParachainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(42.into()); + let _ = PolkadotXcm::force_xcm_version( + RuntimeOrigin::root(), + Box::new(Location::new(1, Parachain(42))), + XCM_VERSION, + ).map_err(|e| { + log::error!( + "Failed to dispatch `force_xcm_version({:?}, {:?}, {:?})`, error: {:?}", + RuntimeOrigin::root(), + Location::new(1, Parachain(42)), + XCM_VERSION, + e + ); + }).expect("XcmVersion stored!"); + let universal_source = bridge_to_kusama_config::open_bridge_for_benchmarks::< + Runtime, + bridge_to_kusama_config::XcmOverBridgeHubKusamaInstance, + xcm_config::LocationToAccountId, + >(params.lane, 42); prepare_message_proof_from_parachain::< Runtime, bridge_to_kusama_config::BridgeGrandpaKusamaInstance, - bridge_to_kusama_config::WithBridgeHubKusamaMessageBridge, - >(params, generate_xcm_builder_bridge_message_sample([GlobalConsensus(Polkadot), Parachain(42)].into())) + bridge_to_kusama_config::WithBridgeHubKusamaMessagesInstance, + >(params, generate_xcm_builder_bridge_message_sample(universal_source)) } fn prepare_message_delivery_proof( - params: MessageDeliveryProofParams, - ) -> bridge_to_kusama_config::ToKusamaBridgeHubMessagesDeliveryProof { + params: MessageDeliveryProofParams>, + ) -> bridge_to_kusama_config::ToKusamaBridgeHubMessagesDeliveryProof { + let _ = bridge_to_kusama_config::open_bridge_for_benchmarks::< + Runtime, + bridge_to_kusama_config::XcmOverBridgeHubKusamaInstance, + xcm_config::LocationToAccountId, + >(params.lane, 42); prepare_message_delivery_proof_from_parachain::< Runtime, bridge_to_kusama_config::BridgeGrandpaKusamaInstance, - bridge_to_kusama_config::WithBridgeHubKusamaMessageBridge, + bridge_to_kusama_config::WithBridgeHubKusamaMessagesInstance, >(params) } diff --git a/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs b/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs index 21b476d45..be9dbe989 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `cumulus_pallet_parachain_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -62,11 +62,11 @@ impl cumulus_pallet_parachain_system::WeightInfo for We // Proof Size summary in bytes: // Measured: `49` // Estimated: `3601` - // Minimum execution time: 2_830_000 picoseconds. - Weight::from_parts(2_860_000, 0) + // Minimum execution time: 4_920_000 picoseconds. + Weight::from_parts(5_000_000, 0) .saturating_add(Weight::from_parts(0, 3601)) - // Standard Error: 36_967 - .saturating_add(Weight::from_parts(191_456_755, 0).saturating_mul(n.into())) + // Standard Error: 55_006 + .saturating_add(Weight::from_parts(187_029_411, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) diff --git a/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs b/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs index 005c1a924..574ca9ab7 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `cumulus_pallet_xcmp_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `109` // Estimated: `1497` - // Minimum execution time: 4_970_000 picoseconds. - Weight::from_parts(5_160_000, 0) + // Minimum execution time: 7_380_000 picoseconds. + Weight::from_parts(7_640_000, 0) .saturating_add(Weight::from_parts(0, 1497)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -73,8 +73,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `115` // Estimated: `5487` - // Minimum execution time: 12_800_000 picoseconds. - Weight::from_parts(13_070_000, 0) + // Minimum execution time: 16_990_000 picoseconds. + Weight::from_parts(17_380_000, 0) .saturating_add(Weight::from_parts(0, 5487)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -85,8 +85,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `109` // Estimated: `2767` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_180_000, 0) + // Minimum execution time: 4_940_000 picoseconds. + Weight::from_parts(5_150_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -97,8 +97,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `144` // Estimated: `2767` - // Minimum execution time: 4_060_000 picoseconds. - Weight::from_parts(4_180_000, 0) + // Minimum execution time: 6_500_000 picoseconds. + Weight::from_parts(6_650_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,8 +107,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_490_000 picoseconds. - Weight::from_parts(7_600_000, 0) + // Minimum execution time: 7_680_000 picoseconds. + Weight::from_parts(7_770_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) @@ -129,8 +129,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65744` // Estimated: `69209` - // Minimum execution time: 111_571_000 picoseconds. - Weight::from_parts(113_411_000, 0) + // Minimum execution time: 113_291_000 picoseconds. + Weight::from_parts(114_011_000, 0) .saturating_add(Weight::from_parts(0, 69209)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -143,8 +143,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65743` // Estimated: `69208` - // Minimum execution time: 59_670_000 picoseconds. - Weight::from_parts(60_200_000, 0) + // Minimum execution time: 55_430_000 picoseconds. + Weight::from_parts(55_941_000, 0) .saturating_add(Weight::from_parts(0, 69208)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/frame_system.rs b/system-parachains/bridge-hub-paseo/src/weights/frame_system.rs index 46998bfb0..1d5c52e9a 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/frame_system.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/frame_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,22 +52,22 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_160_000 picoseconds. - Weight::from_parts(2_250_000, 0) + // Minimum execution time: 2_650_000 picoseconds. + Weight::from_parts(2_810_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 - .saturating_add(Weight::from_parts(440, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(369, 0).saturating_mul(b.into())) } /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_810_000 picoseconds. - Weight::from_parts(6_020_000, 0) + // Minimum execution time: 6_780_000 picoseconds. + Weight::from_parts(6_930_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_763, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_705, 0).saturating_mul(b.into())) } /// Storage: `System::Digest` (r:1 w:1) /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -77,8 +77,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_770_000 picoseconds. - Weight::from_parts(3_920_000, 0) + // Minimum execution time: 5_570_000 picoseconds. + Weight::from_parts(5_830_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -99,8 +99,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `165` // Estimated: `1650` - // Minimum execution time: 113_812_975_000 picoseconds. - Weight::from_parts(118_522_107_000, 0) + // Minimum execution time: 113_458_722_000 picoseconds. + Weight::from_parts(117_451_588_000, 0) .saturating_add(Weight::from_parts(0, 1650)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -112,11 +112,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_250_000 picoseconds. - Weight::from_parts(2_280_000, 0) + // Minimum execution time: 2_710_000 picoseconds. + Weight::from_parts(2_780_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_628 - .saturating_add(Weight::from_parts(868_710, 0).saturating_mul(i.into())) + // Standard Error: 2_970 + .saturating_add(Weight::from_parts(880_740, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -126,11 +126,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_130_000 picoseconds. - Weight::from_parts(2_230_000, 0) + // Minimum execution time: 2_690_000 picoseconds. + Weight::from_parts(2_760_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_104 - .saturating_add(Weight::from_parts(659_734, 0).saturating_mul(i.into())) + // Standard Error: 1_129 + .saturating_add(Weight::from_parts(662_951, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -138,13 +138,13 @@ impl frame_system::WeightInfo for WeightInfo { /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `64 + p * (69 ±0)` - // Estimated: `73 + p * (70 ±0)` - // Minimum execution time: 4_260_000 picoseconds. - Weight::from_parts(4_351_000, 0) - .saturating_add(Weight::from_parts(0, 73)) - // Standard Error: 1_412 - .saturating_add(Weight::from_parts(1_321_966, 0).saturating_mul(p.into())) + // Measured: `70 + p * (69 ±0)` + // Estimated: `71 + p * (70 ±0)` + // Minimum execution time: 5_390_000 picoseconds. + Weight::from_parts(5_490_000, 0) + .saturating_add(Weight::from_parts(0, 71)) + // Standard Error: 1_418 + .saturating_add(Weight::from_parts(1_506_860, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -155,8 +155,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 19_681_000 picoseconds. - Weight::from_parts(20_880_000, 0) + // Minimum execution time: 23_060_000 picoseconds. + Weight::from_parts(24_900_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -178,8 +178,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `187` // Estimated: `1672` - // Minimum execution time: 118_324_964_000 picoseconds. - Weight::from_parts(121_289_509_000, 0) + // Minimum execution time: 115_871_336_000 picoseconds. + Weight::from_parts(118_365_763_000, 0) .saturating_add(Weight::from_parts(0, 1672)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_balances.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_balances.rs index c0365f438..2fef70e91 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_balances.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_balances.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 50_470_000 picoseconds. - Weight::from_parts(50_981_000, 0) + // Minimum execution time: 59_700_000 picoseconds. + Weight::from_parts(60_240_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 39_460_000 picoseconds. - Weight::from_parts(40_170_000, 0) + // Minimum execution time: 47_590_000 picoseconds. + Weight::from_parts(48_220_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 14_870_000 picoseconds. - Weight::from_parts(15_300_000, 0) + // Minimum execution time: 19_530_000 picoseconds. + Weight::from_parts(19_860_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 20_430_000 picoseconds. - Weight::from_parts(20_900_000, 0) + // Minimum execution time: 27_910_000 picoseconds. + Weight::from_parts(28_460_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -101,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `6196` - // Minimum execution time: 52_280_000 picoseconds. - Weight::from_parts(53_031_000, 0) + // Minimum execution time: 62_051_000 picoseconds. + Weight::from_parts(62_390_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -113,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 49_920_000 picoseconds. - Weight::from_parts(50_241_000, 0) + // Minimum execution time: 58_820_000 picoseconds. + Weight::from_parts(59_230_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 18_120_000 picoseconds. - Weight::from_parts(18_550_000, 0) + // Minimum execution time: 23_060_000 picoseconds. + Weight::from_parts(23_410_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -138,40 +138,37 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (136 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 17_040_000 picoseconds. - Weight::from_parts(17_250_000, 0) + // Minimum execution time: 21_120_000 picoseconds. + Weight::from_parts(21_380_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 12_566 - .saturating_add(Weight::from_parts(15_341_564, 0).saturating_mul(u.into())) + // Standard Error: 12_710 + .saturating_add(Weight::from_parts(17_235_282, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) } - /// Storage: `Balances::InactiveIssuance` (r:1 w:0) - /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn force_adjust_total_issuance() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `1501` - // Minimum execution time: 6_350_000 picoseconds. - Weight::from_parts(6_550_000, 0) - .saturating_add(Weight::from_parts(0, 1501)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `0` + // Minimum execution time: 7_590_000 picoseconds. + Weight::from_parts(7_800_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn burn_allow_death() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 31_440_000 picoseconds. - Weight::from_parts(31_930_000, 0) + // Minimum execution time: 36_500_000 picoseconds. + Weight::from_parts(36_960_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 20_970_000 picoseconds. - Weight::from_parts(21_160_000, 0) + // Minimum execution time: 25_250_000 picoseconds. + Weight::from_parts(25_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_grandpa.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_grandpa.rs index d7135b866..344d9c79f 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_grandpa.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_grandpa.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_bridge_grandpa` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,6 @@ impl pallet_bridge_grandpa::WeightInfo for WeightInfo pallet_bridge_grandpa::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: - // Measured: `390 + p * (60 ±0)` + // Measured: `31 + p * (60 ±0)` // Estimated: `51735` - // Minimum execution time: 372_413_000 picoseconds. - Weight::from_parts(21_696_821, 0) + // Minimum execution time: 384_542_000 picoseconds. + Weight::from_parts(21_154_104, 0) .saturating_add(Weight::from_parts(0, 51735)) - // Standard Error: 3_943 - .saturating_add(Weight::from_parts(49_076_781, 0).saturating_mul(p.into())) - // Standard Error: 13_159 - .saturating_add(Weight::from_parts(3_021_868, 0).saturating_mul(v.into())) - .saturating_add(T::DbWeight::get().reads(6)) + // Standard Error: 4_259 + .saturating_add(Weight::from_parts(49_218_414, 0).saturating_mul(p.into())) + // Standard Error: 14_213 + .saturating_add(Weight::from_parts(3_129_115, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) } /// Storage: `BridgeKusamaGrandpa::CurrentAuthoritySet` (r:1 w:1) @@ -89,10 +87,10 @@ impl pallet_bridge_grandpa::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: - // Measured: `391` + // Measured: `84` // Estimated: `51735` - // Minimum execution time: 65_691_000 picoseconds. - Weight::from_parts(67_801_000, 0) + // Minimum execution time: 65_760_000 picoseconds. + Weight::from_parts(67_200_000, 0) .saturating_add(Weight::from_parts(0, 51735)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(6)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_messages.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_messages.rs index bc58d0982..8a704c512 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_messages.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_messages.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_bridge_messages` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -49,98 +49,104 @@ pub struct WeightInfo(PhantomData); impl pallet_bridge_messages::WeightInfo for WeightInfo { /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) - /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::InboundLanes` (r:1 w:1) /// Proof: `BridgeKusamaMessages::InboundLanes` (`max_values`: None, `max_size`: Some(49180), added: 51655, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn receive_single_message_proof() -> Weight { // Proof Size summary in bytes: - // Measured: `595` + // Measured: `899` // Estimated: `52645` - // Minimum execution time: 55_650_000 picoseconds. - Weight::from_parts(56_750_000, 0) + // Minimum execution time: 82_741_000 picoseconds. + Weight::from_parts(83_821_000, 0) .saturating_add(Weight::from_parts(0, 52645)) - .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) - /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::InboundLanes` (r:1 w:1) /// Proof: `BridgeKusamaMessages::InboundLanes` (`max_values`: None, `max_size`: Some(49180), added: 51655, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - fn receive_two_messages_proof() -> Weight { + /// The range of component `n` is `[1, 4076]`. + fn receive_n_messages_proof(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `595` + // Measured: `899` // Estimated: `52645` - // Minimum execution time: 71_851_000 picoseconds. - Weight::from_parts(72_520_000, 0) + // Minimum execution time: 82_100_000 picoseconds. + Weight::from_parts(82_781_000, 0) .saturating_add(Weight::from_parts(0, 52645)) - .saturating_add(T::DbWeight::get().reads(5)) + // Standard Error: 15_462 + .saturating_add(Weight::from_parts(14_282_274, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) - /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::InboundLanes` (r:1 w:1) /// Proof: `BridgeKusamaMessages::InboundLanes` (`max_values`: None, `max_size`: Some(49180), added: 51655, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn receive_single_message_proof_with_outbound_lane_state() -> Weight { // Proof Size summary in bytes: - // Measured: `595` + // Measured: `899` // Estimated: `52645` - // Minimum execution time: 62_220_000 picoseconds. - Weight::from_parts(63_270_000, 0) + // Minimum execution time: 87_280_000 picoseconds. + Weight::from_parts(87_801_000, 0) .saturating_add(Weight::from_parts(0, 52645)) - .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) - /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::InboundLanes` (r:1 w:1) /// Proof: `BridgeKusamaMessages::InboundLanes` (`max_values`: None, `max_size`: Some(49180), added: 51655, mode: `MaxEncodedLen`) - fn receive_single_message_proof_1_kb() -> Weight { - // Proof Size summary in bytes: - // Measured: `563` - // Estimated: `52645` - // Minimum execution time: 54_011_000 picoseconds. - Weight::from_parts(54_860_000, 0) - .saturating_add(Weight::from_parts(0, 52645)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) - /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) - /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) - /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) - /// Storage: `BridgeKusamaMessages::InboundLanes` (r:1 w:1) - /// Proof: `BridgeKusamaMessages::InboundLanes` (`max_values`: None, `max_size`: Some(49180), added: 51655, mode: `MaxEncodedLen`) - fn receive_single_message_proof_16_kb() -> Weight { + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 16384]`. + fn receive_single_n_bytes_message_proof(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `563` + // Measured: `899` // Estimated: `52645` - // Minimum execution time: 87_801_000 picoseconds. - Weight::from_parts(88_701_000, 0) + // Minimum execution time: 78_521_000 picoseconds. + Weight::from_parts(80_664_182, 0) .saturating_add(Weight::from_parts(0, 52645)) - .saturating_add(T::DbWeight::get().reads(4)) + // Standard Error: 4 + .saturating_add(Weight::from_parts(2_232, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) @@ -148,94 +154,112 @@ impl pallet_bridge_messages::WeightInfo for WeightInfo< /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::OutboundLanes` (r:1 w:1) - /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: Some(1), `max_size`: Some(44), added: 539, mode: `MaxEncodedLen`) + /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x6e0a18b62a1de81c5f519181cc611e18` (r:1 w:0) /// Proof: UNKNOWN KEY `0x6e0a18b62a1de81c5f519181cc611e18` (r:1 w:0) /// Storage: `BridgeRelayers::RelayerRewards` (r:1 w:1) /// Proof: `BridgeRelayers::RelayerRewards` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `BridgeKusamaMessages::OutboundMessages` (r:0 w:1) + /// Proof: `BridgeKusamaMessages::OutboundMessages` (`max_values`: None, `max_size`: Some(65568), added: 68043, mode: `MaxEncodedLen`) fn receive_delivery_proof_for_single_message() -> Weight { // Proof Size summary in bytes: - // Measured: `432` - // Estimated: `3897` - // Minimum execution time: 40_001_000 picoseconds. - Weight::from_parts(40_480_000, 0) - .saturating_add(Weight::from_parts(0, 3897)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `736` + // Estimated: `5354` + // Minimum execution time: 68_070_000 picoseconds. + Weight::from_parts(68_640_000, 0) + .saturating_add(Weight::from_parts(0, 5354)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::OutboundLanes` (r:1 w:1) - /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: Some(1), `max_size`: Some(44), added: 539, mode: `MaxEncodedLen`) + /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x6e0a18b62a1de81c5f519181cc611e18` (r:1 w:0) /// Proof: UNKNOWN KEY `0x6e0a18b62a1de81c5f519181cc611e18` (r:1 w:0) /// Storage: `BridgeRelayers::RelayerRewards` (r:1 w:1) /// Proof: `BridgeRelayers::RelayerRewards` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `BridgeKusamaMessages::OutboundMessages` (r:0 w:2) + /// Proof: `BridgeKusamaMessages::OutboundMessages` (`max_values`: None, `max_size`: Some(65568), added: 68043, mode: `MaxEncodedLen`) fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight { // Proof Size summary in bytes: - // Measured: `432` - // Estimated: `3897` - // Minimum execution time: 39_841_000 picoseconds. - Weight::from_parts(40_431_000, 0) - .saturating_add(Weight::from_parts(0, 3897)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `736` + // Estimated: `5354` + // Minimum execution time: 69_661_000 picoseconds. + Weight::from_parts(70_140_000, 0) + .saturating_add(Weight::from_parts(0, 5354)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::OutboundLanes` (r:1 w:1) - /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: Some(1), `max_size`: Some(44), added: 539, mode: `MaxEncodedLen`) + /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x6e0a18b62a1de81c5f519181cc611e18` (r:1 w:0) /// Proof: UNKNOWN KEY `0x6e0a18b62a1de81c5f519181cc611e18` (r:1 w:0) /// Storage: `BridgeRelayers::RelayerRewards` (r:2 w:2) /// Proof: `BridgeRelayers::RelayerRewards` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `BridgeKusamaMessages::OutboundMessages` (r:0 w:2) + /// Proof: `BridgeKusamaMessages::OutboundMessages` (`max_values`: None, `max_size`: Some(65568), added: 68043, mode: `MaxEncodedLen`) fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight { // Proof Size summary in bytes: - // Measured: `432` + // Measured: `736` // Estimated: `6086` - // Minimum execution time: 45_101_000 picoseconds. - Weight::from_parts(45_661_000, 0) + // Minimum execution time: 74_821_000 picoseconds. + Weight::from_parts(75_841_000, 0) .saturating_add(Weight::from_parts(0, 6086)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(5)) } /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) - /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:1 w:0) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::InboundLanes` (r:1 w:1) /// Proof: `BridgeKusamaMessages::InboundLanes` (`max_values`: None, `max_size`: Some(49180), added: 51655, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::LaneToBridge` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::LaneToBridge` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`) /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0) /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0) /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`) - /// The range of component `i` is `[128, 2048]`. - fn receive_single_message_proof_with_dispatch(i: u32, ) -> Weight { + /// The range of component `n` is `[1, 16384]`. + fn receive_single_n_bytes_message_proof_with_dispatch(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `764` + // Measured: `1022` // Estimated: `52645` - // Minimum execution time: 76_271_000 picoseconds. - Weight::from_parts(77_166_260, 0) + // Minimum execution time: 98_430_000 picoseconds. + Weight::from_parts(103_905_453, 0) .saturating_add(Weight::from_parts(0, 52645)) - // Standard Error: 43 - .saturating_add(Weight::from_parts(8_417, 0).saturating_mul(i.into())) + // Standard Error: 7 + .saturating_add(Weight::from_parts(7_422, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes(3)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_parachains.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_parachains.rs index 9991e3330..fa9873383 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_parachains.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_parachains.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_bridge_parachains` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -55,20 +55,18 @@ impl pallet_bridge_parachains::WeightInfo for WeightInf /// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1) /// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(600), `max_size`: Some(64), added: 1549, mode: `MaxEncodedLen`) - /// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1) - /// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 2]`. fn submit_parachain_heads_with_n_parachains(_p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `72` // Estimated: `2543` - // Minimum execution time: 43_600_000 picoseconds. - Weight::from_parts(45_081_626, 0) + // Minimum execution time: 44_380_000 picoseconds. + Weight::from_parts(45_521_732, 0) .saturating_add(Weight::from_parts(0, 2543)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) @@ -78,19 +76,17 @@ impl pallet_bridge_parachains::WeightInfo for WeightInf /// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1) /// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(600), `max_size`: Some(64), added: 1549, mode: `MaxEncodedLen`) - /// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1) - /// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) fn submit_parachain_heads_with_1kb_proof() -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `72` // Estimated: `2543` - // Minimum execution time: 44_831_000 picoseconds. - Weight::from_parts(45_871_000, 0) + // Minimum execution time: 45_480_000 picoseconds. + Weight::from_parts(46_220_000, 0) .saturating_add(Weight::from_parts(0, 2543)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `BridgeKusamaParachains::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaParachains::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) @@ -100,18 +96,16 @@ impl pallet_bridge_parachains::WeightInfo for WeightInf /// Proof: `BridgeKusamaParachains::ParasInfo` (`max_values`: Some(1), `max_size`: Some(60), added: 555, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHashes` (r:1 w:1) /// Proof: `BridgeKusamaParachains::ImportedParaHashes` (`max_values`: Some(600), `max_size`: Some(64), added: 1549, mode: `MaxEncodedLen`) - /// Storage: `BridgeKusamaGrandpa::FreeHeadersRemaining` (r:1 w:1) - /// Proof: `BridgeKusamaGrandpa::FreeHeadersRemaining` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaParachains::ImportedParaHeads` (r:0 w:1) /// Proof: `BridgeKusamaParachains::ImportedParaHeads` (`max_values`: Some(600), `max_size`: Some(196), added: 1681, mode: `MaxEncodedLen`) fn submit_parachain_heads_with_16kb_proof() -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `72` // Estimated: `2543` - // Minimum execution time: 79_031_000 picoseconds. - Weight::from_parts(79_781_000, 0) + // Minimum execution time: 73_471_000 picoseconds. + Weight::from_parts(74_270_000, 0) .saturating_add(Weight::from_parts(0, 2543)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_relayers.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_relayers.rs index 75024d1c1..e441ab221 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_relayers.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_relayers.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_bridge_relayers` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -53,10 +53,10 @@ impl pallet_bridge_relayers::WeightInfo for WeightInfo< /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn claim_rewards() -> Weight { // Proof Size summary in bytes: - // Measured: `278` + // Measured: `205` // Estimated: `3593` - // Minimum execution time: 52_900_000 picoseconds. - Weight::from_parts(53_890_000, 0) + // Minimum execution time: 61_060_000 picoseconds. + Weight::from_parts(61_590_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,10 +69,10 @@ impl pallet_bridge_relayers::WeightInfo for WeightInfo< /// Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) fn register() -> Weight { // Proof Size summary in bytes: - // Measured: `115` + // Measured: `42` // Estimated: `4714` - // Minimum execution time: 29_010_000 picoseconds. - Weight::from_parts(29_490_000, 0) + // Minimum execution time: 33_050_000 picoseconds. + Weight::from_parts(33_500_000, 0) .saturating_add(Weight::from_parts(0, 4714)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -83,10 +83,10 @@ impl pallet_bridge_relayers::WeightInfo for WeightInfo< /// Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) fn deregister() -> Weight { // Proof Size summary in bytes: - // Measured: `231` + // Measured: `158` // Estimated: `4714` - // Minimum execution time: 29_811_000 picoseconds. - Weight::from_parts(30_400_000, 0) + // Minimum execution time: 34_041_000 picoseconds. + Weight::from_parts(34_710_000, 0) .saturating_add(Weight::from_parts(0, 4714)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -99,10 +99,10 @@ impl pallet_bridge_relayers::WeightInfo for WeightInfo< /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn slash_and_deregister() -> Weight { // Proof Size summary in bytes: - // Measured: `334` + // Measured: `261` // Estimated: `4714` - // Minimum execution time: 32_641_000 picoseconds. - Weight::from_parts(33_221_000, 0) + // Minimum execution time: 38_080_000 picoseconds. + Weight::from_parts(38_470_000, 0) .saturating_add(Weight::from_parts(0, 4714)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -111,10 +111,10 @@ impl pallet_bridge_relayers::WeightInfo for WeightInfo< /// Proof: `BridgeRelayers::RelayerRewards` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn register_relayer_reward() -> Weight { // Proof Size summary in bytes: - // Measured: `76` + // Measured: `3` // Estimated: `3538` - // Minimum execution time: 6_700_000 picoseconds. - Weight::from_parts(6_880_000, 0) + // Minimum execution time: 8_380_000 picoseconds. + Weight::from_parts(8_640_000, 0) .saturating_add(Weight::from_parts(0, 3538)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_collator_selection.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_collator_selection.rs index b97226f02..3cfc91b6c 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_collator_selection.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_collator_selection.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_collator_selection` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -56,11 +56,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `196 + b * (79 ±0)` // Estimated: `1187 + b * (2555 ±0)` - // Minimum execution time: 13_830_000 picoseconds. - Weight::from_parts(10_562_072, 0) + // Minimum execution time: 17_750_000 picoseconds. + Weight::from_parts(13_409_878, 0) .saturating_add(Weight::from_parts(0, 1187)) - // Standard Error: 6_398 - .saturating_add(Weight::from_parts(3_819_578, 0).saturating_mul(b.into())) + // Standard Error: 10_434 + .saturating_add(Weight::from_parts(4_937_229, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2555).saturating_mul(b.into())) @@ -79,13 +79,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `794 + b * (32 ±0) + c * (53 ±0)` // Estimated: `6287 + b * (37 ±0) + c * (53 ±0)` - // Minimum execution time: 43_701_000 picoseconds. - Weight::from_parts(43_331_721, 0) + // Minimum execution time: 55_461_000 picoseconds. + Weight::from_parts(55_724_506, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 3_956 - .saturating_add(Weight::from_parts(51_294, 0).saturating_mul(b.into())) - // Standard Error: 749 - .saturating_add(Weight::from_parts(83_080, 0).saturating_mul(c.into())) + // Standard Error: 5_565 + .saturating_add(Weight::from_parts(57_811, 0).saturating_mul(b.into())) + // Standard Error: 1_055 + .saturating_add(Weight::from_parts(99_569, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(b.into())) @@ -100,11 +100,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `119 + b * (32 ±0)` // Estimated: `6287` - // Minimum execution time: 13_060_000 picoseconds. - Weight::from_parts(13_351_309, 0) + // Minimum execution time: 16_750_000 picoseconds. + Weight::from_parts(16_996_888, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 1_283 - .saturating_add(Weight::from_parts(71_481, 0).saturating_mul(b.into())) + // Standard Error: 1_172 + .saturating_add(Weight::from_parts(61_801, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -114,8 +114,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_010_000 picoseconds. - Weight::from_parts(5_210_000, 0) + // Minimum execution time: 6_440_000 picoseconds. + Weight::from_parts(6_580_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -133,13 +133,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0 + c * (182 ±0) + k * (115 ±0)` // Estimated: `6287 + c * (901 ±29) + k * (901 ±29)` - // Minimum execution time: 11_150_000 picoseconds. - Weight::from_parts(11_410_000, 0) + // Minimum execution time: 14_890_000 picoseconds. + Weight::from_parts(15_030_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 184_142 - .saturating_add(Weight::from_parts(6_077_560, 0).saturating_mul(c.into())) - // Standard Error: 184_142 - .saturating_add(Weight::from_parts(5_843_314, 0).saturating_mul(k.into())) + // Standard Error: 205_215 + .saturating_add(Weight::from_parts(6_821_730, 0).saturating_mul(c.into())) + // Standard Error: 205_215 + .saturating_add(Weight::from_parts(6_528_829, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -156,11 +156,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `319 + c * (49 ±0)` // Estimated: `6287` - // Minimum execution time: 29_780_000 picoseconds. - Weight::from_parts(30_694_447, 0) + // Minimum execution time: 36_060_000 picoseconds. + Weight::from_parts(36_919_575, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 792 - .saturating_add(Weight::from_parts(73_587, 0).saturating_mul(c.into())) + // Standard Error: 1_037 + .saturating_add(Weight::from_parts(67_207, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -179,11 +179,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `764 + c * (52 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 39_790_000 picoseconds. - Weight::from_parts(41_596_263, 0) + // Minimum execution time: 52_860_000 picoseconds. + Weight::from_parts(54_405_507, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 640 - .saturating_add(Weight::from_parts(95_467, 0).saturating_mul(c.into())) + // Standard Error: 760 + .saturating_add(Weight::from_parts(96_827, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -205,11 +205,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `904 + c * (53 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 57_781_000 picoseconds. - Weight::from_parts(59_714_616, 0) + // Minimum execution time: 72_821_000 picoseconds. + Weight::from_parts(74_607_227, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 2_292 - .saturating_add(Weight::from_parts(129_253, 0).saturating_mul(c.into())) + // Standard Error: 1_269 + .saturating_add(Weight::from_parts(102_231, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -225,29 +225,27 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `347 + c * (48 ±0)` // Estimated: `6287` - // Minimum execution time: 32_380_000 picoseconds. - Weight::from_parts(33_467_657, 0) + // Minimum execution time: 38_480_000 picoseconds. + Weight::from_parts(39_620_310, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 807 - .saturating_add(Weight::from_parts(85_843, 0).saturating_mul(c.into())) + // Standard Error: 993 + .saturating_add(Weight::from_parts(79_253, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn note_author() -> Weight { // Proof Size summary in bytes: // Measured: `155` // Estimated: `6196` - // Minimum execution time: 44_800_000 picoseconds. - Weight::from_parts(45_251_000, 0) + // Minimum execution time: 52_541_000 picoseconds. + Weight::from_parts(53_010_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) @@ -257,8 +255,6 @@ impl pallet_collator_selection::WeightInfo for WeightIn /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:97 w:97) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. @@ -267,14 +263,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2302 + c * (97 ±0) + r * (114 ±0)` // Estimated: `6287 + c * (2519 ±0) + r * (2603 ±0)` - // Minimum execution time: 22_240_000 picoseconds. - Weight::from_parts(22_520_000, 0) + // Minimum execution time: 26_910_000 picoseconds. + Weight::from_parts(27_430_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 321_659 - .saturating_add(Weight::from_parts(14_058_565, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(5)) + // Standard Error: 355_415 + .saturating_add(Weight::from_parts(16_386_268, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(r.into())) diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_message_queue.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_message_queue.rs index f09e1bed9..68c35c249 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_message_queue.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_message_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_message_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `223` // Estimated: `6212` - // Minimum execution time: 14_780_000 picoseconds. - Weight::from_parts(15_280_000, 0) + // Minimum execution time: 17_810_000 picoseconds. + Weight::from_parts(18_340_000, 0) .saturating_add(Weight::from_parts(0, 6212)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `218` // Estimated: `6212` - // Minimum execution time: 12_900_000 picoseconds. - Weight::from_parts(13_251_000, 0) + // Minimum execution time: 16_290_000 picoseconds. + Weight::from_parts(16_510_000, 0) .saturating_add(Weight::from_parts(0, 6212)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -81,8 +81,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `6` // Estimated: `3601` - // Minimum execution time: 4_470_000 picoseconds. - Weight::from_parts(4_650_000, 0) + // Minimum execution time: 6_210_000 picoseconds. + Weight::from_parts(6_340_000, 0) .saturating_add(Weight::from_parts(0, 3601)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -93,8 +93,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `72` // Estimated: `69078` - // Minimum execution time: 6_580_000 picoseconds. - Weight::from_parts(6_800_000, 0) + // Minimum execution time: 8_760_000 picoseconds. + Weight::from_parts(8_940_000, 0) .saturating_add(Weight::from_parts(0, 69078)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -105,8 +105,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `72` // Estimated: `69078` - // Minimum execution time: 6_691_000 picoseconds. - Weight::from_parts(6_880_000, 0) + // Minimum execution time: 8_960_000 picoseconds. + Weight::from_parts(9_240_000, 0) .saturating_add(Weight::from_parts(0, 69078)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -119,8 +119,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 161_652_000 picoseconds. - Weight::from_parts(162_502_000, 0) + // Minimum execution time: 156_291_000 picoseconds. + Weight::from_parts(157_421_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -132,8 +132,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `171` // Estimated: `3601` - // Minimum execution time: 8_310_000 picoseconds. - Weight::from_parts(8_660_000, 0) + // Minimum execution time: 10_460_000 picoseconds. + Weight::from_parts(10_880_000, 0) .saturating_add(Weight::from_parts(0, 3601)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -146,8 +146,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69078` - // Minimum execution time: 58_181_000 picoseconds. - Weight::from_parts(59_081_000, 0) + // Minimum execution time: 58_250_000 picoseconds. + Weight::from_parts(59_000_000, 0) .saturating_add(Weight::from_parts(0, 69078)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -160,8 +160,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69078` - // Minimum execution time: 77_720_000 picoseconds. - Weight::from_parts(78_511_000, 0) + // Minimum execution time: 79_661_000 picoseconds. + Weight::from_parts(80_820_000, 0) .saturating_add(Weight::from_parts(0, 69078)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -174,8 +174,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69078` - // Minimum execution time: 112_711_000 picoseconds. - Weight::from_parts(113_741_000, 0) + // Minimum execution time: 113_240_000 picoseconds. + Weight::from_parts(114_700_000, 0) .saturating_add(Weight::from_parts(0, 69078)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_multisig.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_multisig.rs index 4a73ae659..a56013b4d 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_multisig.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_multisig.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_multisig` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,11 +52,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_460_000 picoseconds. - Weight::from_parts(13_885_255, 0) + // Minimum execution time: 13_870_000 picoseconds. + Weight::from_parts(14_269_207, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1 - .saturating_add(Weight::from_parts(586, 0).saturating_mul(z.into())) + // Standard Error: 2 + .saturating_add(Weight::from_parts(465, 0).saturating_mul(z.into())) } /// Storage: `Multisig::Multisigs` (r:1 w:1) /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) @@ -66,13 +66,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `296 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 42_990_000 picoseconds. - Weight::from_parts(35_758_527, 0) + // Minimum execution time: 48_540_000 picoseconds. + Weight::from_parts(41_286_683, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 321 - .saturating_add(Weight::from_parts(81_056, 0).saturating_mul(s.into())) + // Standard Error: 359 + .saturating_add(Weight::from_parts(79_958, 0).saturating_mul(s.into())) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_555, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_433, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -84,13 +84,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `315` // Estimated: `6811` - // Minimum execution time: 27_790_000 picoseconds. - Weight::from_parts(20_496_888, 0) + // Minimum execution time: 31_050_000 picoseconds. + Weight::from_parts(23_988_631, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 252 - .saturating_add(Weight::from_parts(78_289, 0).saturating_mul(s.into())) + // Standard Error: 241 + .saturating_add(Weight::from_parts(74_408, 0).saturating_mul(s.into())) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_574, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_459, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -104,13 +104,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `421 + s * (33 ±0)` // Estimated: `6811` - // Minimum execution time: 48_571_000 picoseconds. - Weight::from_parts(38_704_555, 0) + // Minimum execution time: 53_641_000 picoseconds. + Weight::from_parts(44_048_352, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 454 - .saturating_add(Weight::from_parts(104_358, 0).saturating_mul(s.into())) - // Standard Error: 4 - .saturating_add(Weight::from_parts(1_610, 0).saturating_mul(z.into())) + // Standard Error: 347 + .saturating_add(Weight::from_parts(105_990, 0).saturating_mul(s.into())) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_505, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -121,11 +121,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `296 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 32_681_000 picoseconds. - Weight::from_parts(33_774_929, 0) + // Minimum execution time: 38_070_000 picoseconds. + Weight::from_parts(39_221_804, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 421 - .saturating_add(Weight::from_parts(83_726, 0).saturating_mul(s.into())) + // Standard Error: 512 + .saturating_add(Weight::from_parts(82_273, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -136,11 +136,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `315` // Estimated: `6811` - // Minimum execution time: 17_910_000 picoseconds. - Weight::from_parts(18_832_996, 0) + // Minimum execution time: 21_640_000 picoseconds. + Weight::from_parts(22_428_316, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 373 - .saturating_add(Weight::from_parts(81_578, 0).saturating_mul(s.into())) + // Standard Error: 318 + .saturating_add(Weight::from_parts(75_691, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,11 +151,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `487 + s * (1 ±0)` // Estimated: `6811` - // Minimum execution time: 32_550_000 picoseconds. - Weight::from_parts(34_070_696, 0) + // Minimum execution time: 39_271_000 picoseconds. + Weight::from_parts(40_256_518, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 502 - .saturating_add(Weight::from_parts(83_187, 0).saturating_mul(s.into())) + // Standard Error: 404 + .saturating_add(Weight::from_parts(79_438, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_session.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_session.rs index 175242538..48cfedf4d 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_session.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_session.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_session` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `297` // Estimated: `3762` - // Minimum execution time: 19_620_000 picoseconds. - Weight::from_parts(20_050_000, 0) + // Minimum execution time: 24_351_000 picoseconds. + Weight::from_parts(24_880_000, 0) .saturating_add(Weight::from_parts(0, 3762)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `279` // Estimated: `3744` - // Minimum execution time: 14_270_000 picoseconds. - Weight::from_parts(14_670_000, 0) + // Minimum execution time: 17_851_000 picoseconds. + Weight::from_parts(18_370_000, 0) .saturating_add(Weight::from_parts(0, 3744)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_timestamp.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_timestamp.rs index aff38a80a..93e50a9d8 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_timestamp.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_timestamp.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `49` // Estimated: `1493` - // Minimum execution time: 6_830_000 picoseconds. - Weight::from_parts(7_080_000, 0) + // Minimum execution time: 10_350_000 picoseconds. + Weight::from_parts(10_610_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `57` // Estimated: `0` - // Minimum execution time: 3_430_000 picoseconds. - Weight::from_parts(3_610_000, 0) + // Minimum execution time: 5_720_000 picoseconds. + Weight::from_parts(5_870_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_utility.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_utility.rs index f8efb938b..431d2bf53 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_utility.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_utility.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,18 +52,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_170_000 picoseconds. - Weight::from_parts(29_211_171, 0) + // Minimum execution time: 6_320_000 picoseconds. + Weight::from_parts(45_125_001, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_815 - .saturating_add(Weight::from_parts(3_874_829, 0).saturating_mul(c.into())) + // Standard Error: 3_816 + .saturating_add(Weight::from_parts(3_913_724, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_060_000 picoseconds. - Weight::from_parts(5_211_000, 0) + // Minimum execution time: 5_730_000 picoseconds. + Weight::from_parts(5_940_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -71,18 +71,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_010_000 picoseconds. - Weight::from_parts(14_689_758, 0) + // Minimum execution time: 6_330_000 picoseconds. + Weight::from_parts(16_859_477, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_108 - .saturating_add(Weight::from_parts(4_096_990, 0).saturating_mul(c.into())) + // Standard Error: 2_157 + .saturating_add(Weight::from_parts(4_202_857, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_240_000 picoseconds. - Weight::from_parts(7_510_000, 0) + // Minimum execution time: 8_620_000 picoseconds. + Weight::from_parts(8_850_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -90,10 +90,10 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_950_000 picoseconds. - Weight::from_parts(17_579_000, 0) + // Minimum execution time: 6_150_000 picoseconds. + Weight::from_parts(17_066_551, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_304 - .saturating_add(Weight::from_parts(3_887_298, 0).saturating_mul(c.into())) + // Standard Error: 2_031 + .saturating_add(Weight::from_parts(3_940_892, 0).saturating_mul(c.into())) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/pallet_xcm.rs b/system-parachains/bridge-hub-paseo/src/weights/pallet_xcm.rs index 3f71487f4..ac6787319 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/pallet_xcm.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/pallet_xcm.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -51,34 +51,28 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `75` - // Estimated: `3540` - // Minimum execution time: 24_561_000 picoseconds. - Weight::from_parts(25_350_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `43` + // Estimated: `3508` + // Minimum execution time: 28_071_000 picoseconds. + Weight::from_parts(28_610_000, 0) + .saturating_add(Weight::from_parts(0, 3508)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -87,13 +81,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `107` + // Measured: `75` // Estimated: `3593` - // Minimum execution time: 99_911_000 picoseconds. - Weight::from_parts(101_171_000, 0) + // Minimum execution time: 111_040_000 picoseconds. + Weight::from_parts(112_271_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -107,14 +101,12 @@ impl pallet_xcm::WeightInfo for WeightInfo { } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -123,21 +115,24 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn transfer_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `107` + // Measured: `75` // Estimated: `3593` - // Minimum execution time: 102_381_000 picoseconds. - Weight::from_parts(103_271_000, 0) + // Minimum execution time: 113_221_000 picoseconds. + Weight::from_parts(114_210_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `0` - // Minimum execution time: 11_750_000 picoseconds. - Weight::from_parts(12_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Estimated: `1485` + // Minimum execution time: 16_090_000 picoseconds. + Weight::from_parts(16_390_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -145,21 +140,18 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_430_000 picoseconds. - Weight::from_parts(7_530_000, 0) + // Minimum execution time: 9_080_000 picoseconds. + Weight::from_parts(9_290_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_450_000 picoseconds. - Weight::from_parts(2_550_000, 0) + // Minimum execution time: 3_250_000 picoseconds. + Weight::from_parts(3_380_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -169,10 +161,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -181,13 +169,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `75` - // Estimated: `3540` - // Minimum execution time: 31_511_000 picoseconds. - Weight::from_parts(32_051_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `43` + // Estimated: `3508` + // Minimum execution time: 35_670_000 picoseconds. + Weight::from_parts(36_101_000, 0) + .saturating_add(Weight::from_parts(0, 3508)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -195,10 +183,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -207,13 +191,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `293` - // Estimated: `3758` - // Minimum execution time: 35_271_000 picoseconds. - Weight::from_parts(35_921_000, 0) - .saturating_add(Weight::from_parts(0, 3758)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `137` + // Estimated: `3602` + // Minimum execution time: 37_101_000 picoseconds. + Weight::from_parts(37_610_000, 0) + .saturating_add(Weight::from_parts(0, 3602)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -221,8 +205,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_470_000 picoseconds. - Weight::from_parts(2_620_000, 0) + // Minimum execution time: 3_230_000 picoseconds. + Weight::from_parts(3_360_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -230,11 +214,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `89` - // Estimated: `13454` - // Minimum execution time: 21_521_000 picoseconds. - Weight::from_parts(21_780_000, 0) - .saturating_add(Weight::from_parts(0, 13454)) + // Measured: `23` + // Estimated: `13388` + // Minimum execution time: 22_600_000 picoseconds. + Weight::from_parts(23_110_000, 0) + .saturating_add(Weight::from_parts(0, 13388)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -242,11 +226,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `93` - // Estimated: `13458` - // Minimum execution time: 21_300_000 picoseconds. - Weight::from_parts(21_720_000, 0) - .saturating_add(Weight::from_parts(0, 13458)) + // Measured: `27` + // Estimated: `13392` + // Minimum execution time: 22_311_000 picoseconds. + Weight::from_parts(22_690_000, 0) + .saturating_add(Weight::from_parts(0, 13392)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -254,11 +238,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `106` - // Estimated: `15946` - // Minimum execution time: 23_501_000 picoseconds. - Weight::from_parts(23_860_000, 0) - .saturating_add(Weight::from_parts(0, 15946)) + // Measured: `40` + // Estimated: `15880` + // Minimum execution time: 24_700_000 picoseconds. + Weight::from_parts(24_910_000, 0) + .saturating_add(Weight::from_parts(0, 15880)) .saturating_add(T::DbWeight::get().reads(6)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) @@ -267,44 +251,40 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `143` - // Estimated: `6083` - // Minimum execution time: 32_071_000 picoseconds. - Weight::from_parts(32_340_000, 0) - .saturating_add(Weight::from_parts(0, 6083)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `77` + // Estimated: `6017` + // Minimum execution time: 34_420_000 picoseconds. + Weight::from_parts(34_850_000, 0) + .saturating_add(Weight::from_parts(0, 6017)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `10993` - // Minimum execution time: 13_990_000 picoseconds. - Weight::from_parts(14_180_000, 0) - .saturating_add(Weight::from_parts(0, 10993)) + // Measured: `37` + // Estimated: `10927` + // Minimum execution time: 15_500_000 picoseconds. + Weight::from_parts(15_750_000, 0) + .saturating_add(Weight::from_parts(0, 10927)) .saturating_add(T::DbWeight::get().reads(4)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `100` - // Estimated: `13465` - // Minimum execution time: 21_420_000 picoseconds. - Weight::from_parts(21_690_000, 0) - .saturating_add(Weight::from_parts(0, 13465)) + // Measured: `34` + // Estimated: `13399` + // Minimum execution time: 23_210_000 picoseconds. + Weight::from_parts(23_550_000, 0) + .saturating_add(Weight::from_parts(0, 13399)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -314,23 +294,19 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `143` - // Estimated: `13508` - // Minimum execution time: 42_301_000 picoseconds. - Weight::from_parts(43_071_000, 0) - .saturating_add(Weight::from_parts(0, 13508)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `77` + // Estimated: `13442` + // Minimum execution time: 45_750_000 picoseconds. + Weight::from_parts(46_350_000, 0) + .saturating_add(Weight::from_parts(0, 13442)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -338,11 +314,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn new_query() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `1517` - // Minimum execution time: 4_490_000 picoseconds. - Weight::from_parts(4_580_000, 0) - .saturating_add(Weight::from_parts(0, 1517)) + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 4_220_000 picoseconds. + Weight::from_parts(4_350_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -350,24 +326,26 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn take_response() -> Weight { // Proof Size summary in bytes: - // Measured: `7669` - // Estimated: `11134` - // Minimum execution time: 29_451_000 picoseconds. - Weight::from_parts(29_880_000, 0) - .saturating_add(Weight::from_parts(0, 11134)) + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 31_260_000 picoseconds. + Weight::from_parts(31_660_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `90` - // Estimated: `3555` - // Minimum execution time: 44_571_000 picoseconds. - Weight::from_parts(45_681_000, 0) - .saturating_add(Weight::from_parts(0, 3555)) - .saturating_add(T::DbWeight::get().reads(1)) + // Measured: `24` + // Estimated: `3489` + // Minimum execution time: 50_950_000 picoseconds. + Weight::from_parts(51_570_000, 0) + .saturating_add(Weight::from_parts(0, 3489)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_ethereum_client.rs b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_ethereum_client.rs index 62519545b..e9b75fcd0 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_ethereum_client.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_ethereum_client.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `snowbridge_pallet_ethereum_client` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -65,10 +65,10 @@ impl snowbridge_pallet_ethereum_client::WeightInfo for /// Proof: `EthereumBeaconClient::FinalizedBeaconState` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) fn force_checkpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `114` + // Measured: `4` // Estimated: `3501` - // Minimum execution time: 134_915_214_000 picoseconds. - Weight::from_parts(135_208_808_000, 0) + // Minimum execution time: 123_696_664_000 picoseconds. + Weight::from_parts(124_154_578_000, 0) .saturating_add(Weight::from_parts(0, 3501)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(8)) @@ -85,14 +85,16 @@ impl snowbridge_pallet_ethereum_client::WeightInfo for /// Proof: `EthereumBeaconClient::CurrentSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`) /// Storage: `EthereumBeaconClient::ValidatorsRoot` (r:1 w:0) /// Proof: `EthereumBeaconClient::ValidatorsRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (r:1 w:0) + /// Proof: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn submit() -> Weight { // Proof Size summary in bytes: - // Measured: `92787` + // Measured: `92700` // Estimated: `93857` - // Minimum execution time: 34_052_037_000 picoseconds. - Weight::from_parts(34_143_677_000, 0) + // Minimum execution time: 32_452_194_000 picoseconds. + Weight::from_parts(32_576_714_000, 0) .saturating_add(Weight::from_parts(0, 93857)) - .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads(7)) } /// Storage: `EthereumBeaconClient::OperatingMode` (r:1 w:0) /// Proof: `EthereumBeaconClient::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) @@ -106,14 +108,16 @@ impl snowbridge_pallet_ethereum_client::WeightInfo for /// Proof: `EthereumBeaconClient::CurrentSyncCommittee` (`max_values`: Some(1), `max_size`: Some(92372), added: 92867, mode: `MaxEncodedLen`) /// Storage: `EthereumBeaconClient::ValidatorsRoot` (r:1 w:0) /// Proof: `EthereumBeaconClient::ValidatorsRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (r:1 w:1) + /// Proof: `EthereumBeaconClient::LatestSyncCommitteeUpdatePeriod` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn submit_with_sync_committee() -> Weight { // Proof Size summary in bytes: - // Measured: `92787` + // Measured: `92700` // Estimated: `93857` - // Minimum execution time: 169_086_936_000 picoseconds. - Weight::from_parts(169_539_621_000, 0) + // Minimum execution time: 156_547_111_000 picoseconds. + Weight::from_parts(156_887_733_000, 0) .saturating_add(Weight::from_parts(0, 93857)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_inbound_queue.rs b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_inbound_queue.rs index 2f5dcaa00..0f0d55fd8 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_inbound_queue.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_inbound_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `snowbridge_pallet_inbound_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -65,11 +65,11 @@ impl snowbridge_pallet_inbound_queue::WeightInfo for We /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn submit() -> Weight { // Proof Size summary in bytes: - // Measured: `768` - // Estimated: `4233` - // Minimum execution time: 176_982_000 picoseconds. - Weight::from_parts(177_971_000, 0) - .saturating_add(Weight::from_parts(0, 4233)) + // Measured: `625` + // Estimated: `4090` + // Minimum execution time: 194_761_000 picoseconds. + Weight::from_parts(198_562_000, 0) + .saturating_add(Weight::from_parts(0, 4090)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_outbound_queue.rs b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_outbound_queue.rs index 13e916fdd..1c1ac88b9 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_outbound_queue.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_outbound_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `snowbridge_pallet_outbound_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -59,8 +59,8 @@ impl snowbridge_pallet_outbound_queue::WeightInfo for W // Proof Size summary in bytes: // Measured: `80` // Estimated: `3513` - // Minimum execution time: 34_940_000 picoseconds. - Weight::from_parts(35_370_000, 0) + // Minimum execution time: 41_600_000 picoseconds. + Weight::from_parts(42_240_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -73,8 +73,8 @@ impl snowbridge_pallet_outbound_queue::WeightInfo for W // Proof Size summary in bytes: // Measured: `1057` // Estimated: `2542` - // Minimum execution time: 32_030_000 picoseconds. - Weight::from_parts(32_320_000, 0) + // Minimum execution time: 35_320_000 picoseconds. + Weight::from_parts(35_650_000, 0) .saturating_add(Weight::from_parts(0, 2542)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -87,8 +87,8 @@ impl snowbridge_pallet_outbound_queue::WeightInfo for W // Proof Size summary in bytes: // Measured: `64` // Estimated: `1549` - // Minimum execution time: 9_271_000 picoseconds. - Weight::from_parts(9_690_000, 0) + // Minimum execution time: 12_560_000 picoseconds. + Weight::from_parts(12_770_000, 0) .saturating_add(Weight::from_parts(0, 1549)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_system.rs b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_system.rs index 963dc3de5..0518c1778 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_system.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `snowbridge_pallet_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-polkadot-chain-spec.json")`, DB CACHE: 1024 @@ -61,8 +61,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `218` // Estimated: `3601` - // Minimum execution time: 39_180_000 picoseconds. - Weight::from_parts(40_091_000, 0) + // Minimum execution time: 46_281_000 picoseconds. + Weight::from_parts(47_110_000, 0) .saturating_add(Weight::from_parts(0, 3601)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -81,8 +81,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `218` // Estimated: `3601` - // Minimum execution time: 29_571_000 picoseconds. - Weight::from_parts(30_701_000, 0) + // Minimum execution time: 36_331_000 picoseconds. + Weight::from_parts(36_670_000, 0) .saturating_add(Weight::from_parts(0, 3601)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -101,8 +101,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `218` // Estimated: `3601` - // Minimum execution time: 34_990_000 picoseconds. - Weight::from_parts(36_021_000, 0) + // Minimum execution time: 42_511_000 picoseconds. + Weight::from_parts(43_050_000, 0) .saturating_add(Weight::from_parts(0, 3601)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) @@ -127,8 +127,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `484` // Estimated: `6196` - // Minimum execution time: 79_201_000 picoseconds. - Weight::from_parts(80_031_000, 0) + // Minimum execution time: 91_490_000 picoseconds. + Weight::from_parts(92_381_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) @@ -151,8 +151,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `929` // Estimated: `69078` - // Minimum execution time: 91_831_000 picoseconds. - Weight::from_parts(92_721_000, 0) + // Minimum execution time: 110_640_000 picoseconds. + Weight::from_parts(111_820_000, 0) .saturating_add(Weight::from_parts(0, 69078)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(5)) @@ -175,8 +175,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `715` // Estimated: `6212` - // Minimum execution time: 86_921_000 picoseconds. - Weight::from_parts(87_611_000, 0) + // Minimum execution time: 104_901_000 picoseconds. + Weight::from_parts(105_931_000, 0) .saturating_add(Weight::from_parts(0, 6212)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(5)) @@ -195,8 +195,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `547` // Estimated: `6212` - // Minimum execution time: 45_931_000 picoseconds. - Weight::from_parts(46_540_000, 0) + // Minimum execution time: 54_080_000 picoseconds. + Weight::from_parts(54_550_000, 0) .saturating_add(Weight::from_parts(0, 6212)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -221,8 +221,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `814` // Estimated: `6212` - // Minimum execution time: 92_000_000 picoseconds. - Weight::from_parts(93_011_000, 0) + // Minimum execution time: 110_881_000 picoseconds. + Weight::from_parts(111_531_000, 0) .saturating_add(Weight::from_parts(0, 6212)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(5)) @@ -243,8 +243,8 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `569` // Estimated: `6212` - // Minimum execution time: 51_901_000 picoseconds. - Weight::from_parts(52_551_000, 0) + // Minimum execution time: 60_350_000 picoseconds. + Weight::from_parts(61_010_000, 0) .saturating_add(Weight::from_parts(0, 6212)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -263,10 +263,38 @@ impl snowbridge_pallet_system::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `218` // Estimated: `3601` - // Minimum execution time: 32_390_000 picoseconds. - Weight::from_parts(33_160_000, 0) + // Minimum execution time: 38_510_000 picoseconds. + Weight::from_parts(39_180_000, 0) .saturating_add(Weight::from_parts(0, 3601)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `EthereumSystem::ForeignToNativeId` (r:1 w:1) + /// Proof: `EthereumSystem::ForeignToNativeId` (`max_values`: None, `max_size`: Some(650), added: 3125, mode: `MaxEncodedLen`) + /// Storage: `EthereumSystem::Channels` (r:1 w:0) + /// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`) + /// Storage: `EthereumSystem::PricingParameters` (r:1 w:0) + /// Proof: `EthereumSystem::PricingParameters` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`) + /// Storage: `EthereumOutboundQueue::OperatingMode` (r:1 w:0) + /// Proof: `EthereumOutboundQueue::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::BookStateFor` (r:1 w:1) + /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::ServiceHead` (r:1 w:1) + /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + /// Storage: `MessageQueue::Pages` (r:0 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65613), added: 68088, mode: `MaxEncodedLen`) + /// Storage: `EthereumSystem::NativeToForeignId` (r:0 w:1) + /// Proof: `EthereumSystem::NativeToForeignId` (`max_values`: None, `max_size`: Some(650), added: 3125, mode: `MaxEncodedLen`) + fn register_token() -> Weight { + // Proof Size summary in bytes: + // Measured: `256` + // Estimated: `4115` + // Minimum execution time: 61_610_000 picoseconds. + Weight::from_parts(62_461_000, 0) + .saturating_add(Weight::from_parts(0, 4115)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) + } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/xcm/mod.rs b/system-parachains/bridge-hub-paseo/src/weights/xcm/mod.rs index 8f60b012e..0892a9ba4 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/xcm/mod.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/xcm/mod.rs @@ -25,13 +25,13 @@ use sp_std::prelude::*; use xcm::{latest::prelude::*, DoubleEncoded}; trait WeighAssets { - fn weigh_multi_assets(&self, weight: Weight) -> Weight; + fn weigh_assets(&self, weight: Weight) -> Weight; } const MAX_ASSETS: u64 = 100; impl WeighAssets for AssetFilter { - fn weigh_multi_assets(&self, weight: Weight) -> Weight { + fn weigh_assets(&self, weight: Weight) -> Weight { match self { Self::Definite(assets) => weight.saturating_mul(assets.inner().iter().count() as u64), Self::Wild(asset) => match asset { @@ -51,7 +51,7 @@ impl WeighAssets for AssetFilter { } impl WeighAssets for Assets { - fn weigh_multi_assets(&self, weight: Weight) -> Weight { + fn weigh_assets(&self, weight: Weight) -> Weight { weight.saturating_mul(self.inner().iter().count() as u64) } } @@ -59,13 +59,13 @@ impl WeighAssets for Assets { pub struct BridgeHubPolkadotXcmWeight(core::marker::PhantomData); impl XcmWeightInfo for BridgeHubPolkadotXcmWeight { fn withdraw_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::withdraw_asset()) + assets.weigh_assets(XcmFungibleWeight::::withdraw_asset()) } fn reserve_asset_deposited(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::reserve_asset_deposited()) + assets.weigh_assets(XcmFungibleWeight::::reserve_asset_deposited()) } fn receive_teleported_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::receive_teleported_asset()) + assets.weigh_assets(XcmFungibleWeight::::receive_teleported_asset()) } fn query_response( _query_id: &u64, @@ -76,10 +76,10 @@ impl XcmWeightInfo for BridgeHubPolkadotXcmWeight { XcmGeneric::::query_response() } fn transfer_asset(assets: &Assets, _dest: &Location) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::transfer_asset()) + assets.weigh_assets(XcmFungibleWeight::::transfer_asset()) } fn transfer_reserve_asset(assets: &Assets, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::transfer_reserve_asset()) + assets.weigh_assets(XcmFungibleWeight::::transfer_reserve_asset()) } fn transact( _origin_type: &OriginKind, @@ -115,10 +115,10 @@ impl XcmWeightInfo for BridgeHubPolkadotXcmWeight { } fn deposit_asset(assets: &AssetFilter, _dest: &Location) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::deposit_asset()) + assets.weigh_assets(XcmFungibleWeight::::deposit_asset()) } fn deposit_reserve_asset(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::deposit_reserve_asset()) + assets.weigh_assets(XcmFungibleWeight::::deposit_reserve_asset()) } fn exchange_asset(_give: &AssetFilter, _receive: &Assets, _maximal: &bool) -> Weight { Weight::MAX @@ -128,10 +128,10 @@ impl XcmWeightInfo for BridgeHubPolkadotXcmWeight { _reserve: &Location, _xcm: &Xcm<()>, ) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::initiate_reserve_withdraw()) + assets.weigh_assets(XcmFungibleWeight::::initiate_reserve_withdraw()) } fn initiate_teleport(assets: &AssetFilter, _dest: &Location, _xcm: &Xcm<()>) -> Weight { - assets.weigh_multi_assets(XcmFungibleWeight::::initiate_teleport()) + assets.weigh_assets(XcmFungibleWeight::::initiate_teleport()) } fn report_holding(_response_info: &QueryResponseInfo, _assets: &AssetFilter) -> Weight { XcmGeneric::::report_holding() @@ -164,10 +164,10 @@ impl XcmWeightInfo for BridgeHubPolkadotXcmWeight { XcmGeneric::::unsubscribe_version() } fn burn_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmGeneric::::burn_asset()) + assets.weigh_assets(XcmGeneric::::burn_asset()) } fn expect_asset(assets: &Assets) -> Weight { - assets.weigh_multi_assets(XcmGeneric::::expect_asset()) + assets.weigh_assets(XcmGeneric::::expect_asset()) } fn expect_origin(_origin: &Option) -> Weight { XcmGeneric::::expect_origin() diff --git a/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs index 6de01b616..6af1db4f6 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::fungible` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `3593` - // Minimum execution time: 32_810_000 picoseconds. - Weight::from_parts(33_330_000, 0) + // Minimum execution time: 39_250_000 picoseconds. + Weight::from_parts(39_840_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `153` // Estimated: `6196` - // Minimum execution time: 43_890_000 picoseconds. - Weight::from_parts(44_861_000, 0) + // Minimum execution time: 52_790_000 picoseconds. + Weight::from_parts(53_540_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,23 +79,19 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn transfer_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `260` + // Measured: `228` // Estimated: `8799` - // Minimum execution time: 94_691_000 picoseconds. - Weight::from_parts(96_081_000, 0) + // Minimum execution time: 106_831_000 picoseconds. + Weight::from_parts(107_860_000, 0) .saturating_add(Weight::from_parts(0, 8799)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -113,10 +109,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -125,20 +117,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_reserve_withdraw() -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `176` // Estimated: `6196` - // Minimum execution time: 60_110_000 picoseconds. - Weight::from_parts(60_900_000, 0) + // Minimum execution time: 67_730_000 picoseconds. + Weight::from_parts(68_900_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn receive_teleported_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_310_000 picoseconds. - Weight::from_parts(3_430_000, 0) + // Minimum execution time: 3_860_000 picoseconds. + Weight::from_parts(4_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `System::Account` (r:1 w:1) @@ -147,8 +139,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 25_160_000 picoseconds. - Weight::from_parts(25_710_000, 0) + // Minimum execution time: 30_930_000 picoseconds. + Weight::from_parts(31_490_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -159,10 +151,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -171,13 +159,13 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn deposit_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `159` + // Measured: `127` // Estimated: `6196` - // Minimum execution time: 68_380_000 picoseconds. - Weight::from_parts(69_740_000, 0) + // Minimum execution time: 78_170_000 picoseconds. + Weight::from_parts(79_031_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -185,10 +173,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -197,12 +181,12 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_teleport() -> Weight { // Proof Size summary in bytes: - // Measured: `107` + // Measured: `75` // Estimated: `3593` - // Minimum execution time: 32_480_000 picoseconds. - Weight::from_parts(33_290_000, 0) + // Minimum execution time: 36_440_000 picoseconds. + Weight::from_parts(37_270_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index 6ce844b52..5a5c8dfdd 100644 --- a/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::generic` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./bridge-hub-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,11 +52,7 @@ impl WeightInfo { /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PaseoXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -65,87 +61,87 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_holding() -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `176` // Estimated: `6196` - // Minimum execution time: 58_621_000 picoseconds. - Weight::from_parts(59_751_000, 0) + // Minimum execution time: 66_301_000 picoseconds. + Weight::from_parts(67_010_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn buy_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_230_000 picoseconds. - Weight::from_parts(1_310_000, 0) + // Minimum execution time: 1_380_000 picoseconds. + Weight::from_parts(1_460_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::Queries` (r:1 w:0) /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn query_response() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `3497` - // Minimum execution time: 7_760_000 picoseconds. - Weight::from_parts(8_040_000, 0) - .saturating_add(Weight::from_parts(0, 3497)) + // Measured: `0` + // Estimated: `3465` + // Minimum execution time: 8_130_000 picoseconds. + Weight::from_parts(8_380_000, 0) + .saturating_add(Weight::from_parts(0, 3465)) .saturating_add(T::DbWeight::get().reads(1)) } pub(crate) fn transact() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_530_000 picoseconds. - Weight::from_parts(8_820_000, 0) + // Minimum execution time: 10_050_000 picoseconds. + Weight::from_parts(10_470_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn refund_surplus() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_120_000 picoseconds. - Weight::from_parts(2_270_000, 0) + // Minimum execution time: 2_380_000 picoseconds. + Weight::from_parts(2_500_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_error_handler() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_280_000 picoseconds. - Weight::from_parts(1_330_000, 0) + // Minimum execution time: 1_380_000 picoseconds. + Weight::from_parts(1_450_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_appendix() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_270_000 picoseconds. - Weight::from_parts(1_320_000, 0) + // Minimum execution time: 1_420_000 picoseconds. + Weight::from_parts(1_470_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_220_000 picoseconds. - Weight::from_parts(1_280_000, 0) + // Minimum execution time: 1_360_000 picoseconds. + Weight::from_parts(1_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn descend_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_290_000 picoseconds. - Weight::from_parts(1_350_000, 0) + // Minimum execution time: 1_430_000 picoseconds. + Weight::from_parts(1_500_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_240_000 picoseconds. - Weight::from_parts(1_270_000, 0) + // Minimum execution time: 1_340_000 picoseconds. + Weight::from_parts(1_430_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -153,11 +149,7 @@ impl WeightInfo { /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PaseoXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -166,23 +158,23 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_error() -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `176` // Estimated: `6196` - // Minimum execution time: 54_700_000 picoseconds. - Weight::from_parts(55_340_000, 0) + // Minimum execution time: 62_061_000 picoseconds. + Weight::from_parts(62_621_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn claim_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `90` - // Estimated: `3555` - // Minimum execution time: 11_300_000 picoseconds. - Weight::from_parts(11_580_000, 0) - .saturating_add(Weight::from_parts(0, 3555)) + // Measured: `24` + // Estimated: `3489` + // Minimum execution time: 12_410_000 picoseconds. + Weight::from_parts(12_660_000, 0) + .saturating_add(Weight::from_parts(0, 3489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -190,8 +182,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_240_000 picoseconds. - Weight::from_parts(1_270_000, 0) + // Minimum execution time: 1_340_000 picoseconds. + Weight::from_parts(1_440_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1) @@ -199,24 +191,20 @@ impl WeightInfo { /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PaseoXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn subscribe_version() -> Weight { // Proof Size summary in bytes: - // Measured: `75` - // Estimated: `3540` - // Minimum execution time: 25_720_000 picoseconds. - Weight::from_parts(26_510_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `43` + // Estimated: `3508` + // Minimum execution time: 29_131_000 picoseconds. + Weight::from_parts(29_740_000, 0) + .saturating_add(Weight::from_parts(0, 3508)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -224,8 +212,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_610_000 picoseconds. - Weight::from_parts(3_730_000, 0) + // Minimum execution time: 4_140_000 picoseconds. + Weight::from_parts(4_320_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -233,40 +221,40 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_730_000 picoseconds. - Weight::from_parts(1_820_000, 0) + // Minimum execution time: 2_030_000 picoseconds. + Weight::from_parts(2_150_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_300_000 picoseconds. - Weight::from_parts(1_410_000, 0) + // Minimum execution time: 1_540_000 picoseconds. + Weight::from_parts(1_600_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_240_000 picoseconds. - Weight::from_parts(1_320_000, 0) + // Minimum execution time: 1_350_000 picoseconds. + Weight::from_parts(1_450_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_240_000 picoseconds. - Weight::from_parts(1_300_000, 0) + // Minimum execution time: 1_370_000 picoseconds. + Weight::from_parts(1_410_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_470_000 picoseconds. - Weight::from_parts(1_540_000, 0) + // Minimum execution time: 1_600_000 picoseconds. + Weight::from_parts(1_680_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -274,11 +262,7 @@ impl WeightInfo { /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PaseoXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -287,20 +271,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn query_pallet() -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `176` // Estimated: `6196` - // Minimum execution time: 59_871_000 picoseconds. - Weight::from_parts(61_230_000, 0) + // Minimum execution time: 67_980_000 picoseconds. + Weight::from_parts(68_651_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn expect_pallet() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_030_000 picoseconds. - Weight::from_parts(5_110_000, 0) + // Minimum execution time: 5_800_000 picoseconds. + Weight::from_parts(5_940_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -308,11 +292,7 @@ impl WeightInfo { /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) - /// Proof: `PaseoXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -321,60 +301,60 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_transact_status() -> Weight { // Proof Size summary in bytes: - // Measured: `208` + // Measured: `176` // Estimated: `6196` - // Minimum execution time: 54_591_000 picoseconds. - Weight::from_parts(55_350_000, 0) + // Minimum execution time: 62_230_000 picoseconds. + Weight::from_parts(62_791_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn clear_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_260_000 picoseconds. - Weight::from_parts(1_350_000, 0) + // Minimum execution time: 1_420_000 picoseconds. + Weight::from_parts(1_510_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_220_000 picoseconds. - Weight::from_parts(1_260_000, 0) + // Minimum execution time: 1_290_000 picoseconds. + Weight::from_parts(1_390_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_210_000 picoseconds. - Weight::from_parts(1_270_000, 0) + // Minimum execution time: 1_360_000 picoseconds. + Weight::from_parts(1_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `PaseoXcm::SupportedVersion` (r:2 w:0) - /// Proof: `PaseoXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `XcmOverBridgeHubKusama::Bridges` (r:1 w:0) + /// Proof: `XcmOverBridgeHubKusama::Bridges` (`max_values`: None, `max_size`: Some(1889), added: 4364, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:2 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `BridgeKusamaMessages::PalletOperatingMode` (r:1 w:0) /// Proof: `BridgeKusamaMessages::PalletOperatingMode` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::OutboundLanes` (r:1 w:1) - /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: Some(1), `max_size`: Some(44), added: 539, mode: `MaxEncodedLen`) - /// Storage: `BridgeKusamaMessages::OutboundLanesCongestedSignals` (r:1 w:0) - /// Proof: `BridgeKusamaMessages::OutboundLanesCongestedSignals` (`max_values`: Some(1), `max_size`: Some(21), added: 516, mode: `MaxEncodedLen`) + /// Proof: `BridgeKusamaMessages::OutboundLanes` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) /// Storage: `BridgeKusamaMessages::OutboundMessages` (r:0 w:1) - /// Proof: `BridgeKusamaMessages::OutboundMessages` (`max_values`: None, `max_size`: Some(2621472), added: 2623947, mode: `MaxEncodedLen`) + /// Proof: `BridgeKusamaMessages::OutboundMessages` (`max_values`: None, `max_size`: Some(65568), added: 68043, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 1000]`. pub(crate) fn export_message(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `227` - // Estimated: `6167` - // Minimum execution time: 45_660_000 picoseconds. - Weight::from_parts(46_626_263, 0) - .saturating_add(Weight::from_parts(0, 6167)) - // Standard Error: 37 - .saturating_add(Weight::from_parts(51_861, 0).saturating_mul(x.into())) + // Measured: `473` + // Estimated: `6413` + // Minimum execution time: 66_221_000 picoseconds. + Weight::from_parts(66_556_981, 0) + .saturating_add(Weight::from_parts(0, 6413)) + // Standard Error: 334 + .saturating_add(Weight::from_parts(53_743, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -382,16 +362,16 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_200_000 picoseconds. - Weight::from_parts(1_250_000, 0) + // Minimum execution time: 1_370_000 picoseconds. + Weight::from_parts(1_440_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn unpaid_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_270_000 picoseconds. - Weight::from_parts(1_300_000, 0) + // Minimum execution time: 1_390_000 picoseconds. + Weight::from_parts(1_490_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/bridge-hub-paseo/src/xcm_config.rs b/system-parachains/bridge-hub-paseo/src/xcm_config.rs index c5af4a8fe..711db50d0 100644 --- a/system-parachains/bridge-hub-paseo/src/xcm_config.rs +++ b/system-parachains/bridge-hub-paseo/src/xcm_config.rs @@ -14,18 +14,19 @@ // You should have received a copy of the GNU General Public License // along with Cumulus. If not, see . +use crate::XcmOverBridgeHubKusama; + use super::{ - bridge_to_ethereum_config::EthereumNetwork, - bridge_to_kusama_config::ToBridgeHubKusamaHaulBlobExporter, AccountId, AllPalletsWithSystem, - Balances, CollatorSelection, ParachainInfo, ParachainSystem, PolkadotXcm, - PriceForParentDelivery, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, WeightToFee, - XcmpQueue, + bridge_to_ethereum_config::EthereumNetwork, AccountId, AllPalletsWithSystem, Balances, + CollatorSelection, ParachainInfo, ParachainSystem, PolkadotXcm, PriceForParentDelivery, + Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, WeightToFee, XcmpQueue, }; use frame_support::{ parameter_types, traits::{tokens::imbalance::ResolveTo, ConstU32, Contains, Equals, Everything, Nothing}, }; use frame_system::EnsureRoot; +use pallet_collator_selection::StakingPotAccountId; use pallet_xcm::XcmPassthrough; use parachains_common::xcm_config::{ AllSiblingSystemParachains, ConcreteAssetFromSystem, ParentRelayOrSiblingParachains, @@ -39,14 +40,14 @@ use sp_std::marker::PhantomData; use system_parachains_constants::TREASURY_PALLET_ID; use xcm::latest::prelude::*; use xcm_builder::{ - AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, - AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, DenyReserveTransferToRelayChain, - DenyThenTry, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, FrameTransactionalProcessor, - FungibleAdapter, HandleFee, HashedDescription, IsConcrete, ParentAsSuperuser, ParentIsPreset, - RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, - TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, - XcmFeeToAccount, + AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowHrmpNotificationsFromRelayChain, + AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, + DenyReserveTransferToRelayChain, DenyThenTry, DescribeAllTerminal, DescribeFamily, + EnsureXcmOrigin, FrameTransactionalProcessor, FungibleAdapter, HandleFee, HashedDescription, + IsConcrete, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, SendXcmFeeToAccount, + SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, + SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, + UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, }; use xcm_executor::{ traits::{ConvertLocation, FeeManager, FeeReason, FeeReason::Export}, @@ -172,6 +173,8 @@ pub type Barrier = TrailingSetTopicAsId< )>, // Subscriptions for version tracking are OK. AllowSubscriptionsFrom, + // HRMP notifications from the relay chain are OK. + AllowHrmpNotificationsFromRelayChain, ), UniversalLocation, ConstU32<8>, @@ -197,7 +200,6 @@ pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { type RuntimeCall = RuntimeCall; type XcmSender = XcmRouter; - type XcmRecorder = (); type AssetTransactor = FungibleTransactor; type OriginConverter = XcmOriginToTransactDispatchOrigin; // BridgeHub does not recognize a reserve location for any asset. Users must teleport PAS @@ -216,16 +218,16 @@ impl xcm_executor::Config for XcmConfig { DotRelayLocation, AccountId, Balances, - ResolveTo, + ResolveTo, Balances>, >; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; + type AssetLocker = (); + type AssetExchanger = (); type AssetClaims = PolkadotXcm; type SubscriptionService = PolkadotXcm; type PalletInstancesInfo = AllPalletsWithSystem; type MaxAssetsIntoHolding = MaxAssetsIntoHolding; - type AssetLocker = (); - type AssetExchanger = (); type FeeManager = XcmFeeManagerFromComponentsBridgeHub< WaivedLocations, ( @@ -237,11 +239,11 @@ impl xcm_executor::Config for XcmConfig { Self::AssetTransactor, crate::EthereumOutboundQueue, >, - XcmFeeToAccount, + SendXcmFeeToAccount, ), >; type MessageExporter = - (ToBridgeHubKusamaHaulBlobExporter, crate::bridge_to_ethereum_config::SnowbridgeExporter); + (XcmOverBridgeHubKusama, crate::bridge_to_ethereum_config::SnowbridgeExporter); type UniversalAliases = Nothing; type CallDispatcher = RuntimeCall; type SafeCallFilter = Everything; @@ -250,6 +252,7 @@ impl xcm_executor::Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); + type XcmRecorder = PolkadotXcm; } /// Converts a local signed origin into an XCM `Location`. @@ -267,9 +270,9 @@ pub type XcmRouter = WithUniqueTopic<( impl pallet_xcm::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type XcmRouter = XcmRouter; // We want to disallow users sending (arbitrary) XCMs from this chain. type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = XcmRouter; // Any local signed origin can execute XCM messages. type ExecuteXcmOrigin = EnsureXcmOrigin; type XcmExecuteFilter = Everything; diff --git a/system-parachains/bridge-hub-paseo/tests/snowbridge.rs b/system-parachains/bridge-hub-paseo/tests/snowbridge.rs index 6d08474e3..35cad72c9 100644 --- a/system-parachains/bridge-hub-paseo/tests/snowbridge.rs +++ b/system-parachains/bridge-hub-paseo/tests/snowbridge.rs @@ -19,7 +19,7 @@ use bp_polkadot_core::Signature; use bridge_hub_paseo_runtime::{ bridge_to_ethereum_config::{EthereumGatewayAddress, EthereumNetwork}, - bridge_to_kusama_config::RefundBridgeHubKusamaMessages, + bridge_to_kusama_config::OnBridgeHubPaseoRefundBridgeHubKusamaMessages, xcm_config::{XcmConfig, XcmFeeManagerFromComponentsBridgeHub}, AllPalletsWithoutSystem, BridgeRejectObsoleteHeadersAndMessages, Executive, MessageQueueServiceWeight, Runtime, RuntimeCall, RuntimeEvent, SessionKeys, SignedExtra, @@ -27,26 +27,34 @@ use bridge_hub_paseo_runtime::{ }; use codec::{Decode, Encode}; use cumulus_primitives_core::XcmError::{FailedToTransactAsset, TooExpensive}; -use frame_support::{parameter_types, traits::Contains}; +use frame_support::{ + assert_err, assert_ok, parameter_types, + traits::{fungible::Mutate, Contains}, +}; use parachains_common::{AccountId, AuraId, Balance}; pub use parachains_runtimes_test_utils::test_cases::change_storage_constant_by_governance_works; +use parachains_runtimes_test_utils::{ + AccountIdOf, BalanceOf, CollatorSessionKeys, ExtBuilder, ValidatorIdOf, +}; use snowbridge_pallet_ethereum_client::WeightInfo; -use sp_core::H160; +use snowbridge_pallet_ethereum_client_fixtures::*; +use sp_core::{Get, H160}; use sp_keyring::AccountKeyring::Alice; use sp_runtime::{ generic::{Era, SignedPayload}, - AccountId32, + AccountId32, SaturatedConversion, }; use xcm::latest::prelude::*; use xcm_builder::HandleFee; use xcm_executor::traits::{FeeManager, FeeReason}; - parameter_types! { pub const DefaultBridgeHubEthereumBaseFee: Balance = 2_750_872_500_000; } +type RuntimeHelper = + parachains_runtimes_test_utils::RuntimeHelper; -fn collator_session_keys() -> bridge_hub_test_utils::CollatorSessionKeys { - bridge_hub_test_utils::CollatorSessionKeys::new( +fn collator_session_keys() -> CollatorSessionKeys { + CollatorSessionKeys::new( AccountId::from(Alice), AccountId::from(Alice), SessionKeys { aura: AuraId::from(Alice.public()) }, @@ -196,13 +204,10 @@ fn max_message_queue_service_weight_is_more_than_beacon_extrinsic_weights() { max_message_queue_weight.all_gt(submit_checkpoint); } +// FAIL-CI @bkontur can you help me to check why it's exceeding the weight limits? #[test] fn ethereum_client_consensus_extrinsics_work() { - snowbridge_runtime_test_common::ethereum_extrinsic( - collator_session_keys(), - 1013, - construct_and_apply_extrinsic, - ); + ethereum_extrinsic(collator_session_keys(), 1013, construct_and_apply_extrinsic); } #[test] @@ -237,6 +242,146 @@ fn ethereum_outbound_queue_processes_messages_before_message_queue_works() { ) } +// TODO replace with snowbridge runtime common method in stable-2412 release. +pub fn ethereum_extrinsic( + collator_session_key: CollatorSessionKeys, + runtime_para_id: u32, + construct_and_apply_extrinsic: fn( + sp_keyring::AccountKeyring, + ::RuntimeCall, + ) -> sp_runtime::DispatchOutcome, +) where + Runtime: frame_system::Config + + pallet_balances::Config + + pallet_session::Config + + pallet_xcm::Config + + pallet_utility::Config + + parachain_info::Config + + pallet_collator_selection::Config + + cumulus_pallet_parachain_system::Config + + snowbridge_pallet_outbound_queue::Config + + snowbridge_pallet_system::Config + + snowbridge_pallet_ethereum_client::Config + + pallet_timestamp::Config, + ValidatorIdOf: From>, + ::RuntimeCall: + From>, + ::RuntimeCall: From>, + AccountIdOf: From, +{ + ExtBuilder::::default() + .with_collators(collator_session_key.collators()) + .with_session_keys(collator_session_key.session_keys()) + .with_para_id(runtime_para_id.into()) + .with_tracing() + .build() + .execute_with(|| { + let initial_checkpoint = make_checkpoint(); + let update = make_finalized_header_update(); + let sync_committee_update = make_sync_committee_update(); + let mut invalid_update = make_finalized_header_update(); + let mut invalid_sync_committee_update = make_sync_committee_update(); + invalid_update.finalized_header.slot = 4354; + invalid_sync_committee_update.finalized_header.slot = 4354; + + let alice = Alice; + let alice_account = alice.to_account_id(); + >::mint_into( + &alice_account.clone().into(), + 10_000_000_000_000_u128.saturated_into::>(), + ) + .unwrap(); + let alice_account: ::AccountId = alice_account.into(); + let balance_before = >::free_balance(&alice_account); + + assert_ok!(>::force_checkpoint( + RuntimeHelper::::root_origin(), + initial_checkpoint.clone(), + )); + let balance_after_checkpoint = + >::free_balance(&alice_account); + + let update_call: ::RuntimeCall = + snowbridge_pallet_ethereum_client::Call::::submit { + update: Box::new(*update.clone()), + } + .into(); + + let invalid_update_call: ::RuntimeCall = + snowbridge_pallet_ethereum_client::Call::::submit { + update: Box::new(*invalid_update), + } + .into(); + + let update_sync_committee_call: ::RuntimeCall = + snowbridge_pallet_ethereum_client::Call::::submit { + update: Box::new(*sync_committee_update), + } + .into(); + + let invalid_update_sync_committee_call: ::RuntimeCall = + snowbridge_pallet_ethereum_client::Call::::submit { + update: Box::new(*invalid_sync_committee_update), + } + .into(); + + // Finalized header update + let update_outcome = construct_and_apply_extrinsic(alice, update_call.into()); + assert_ok!(update_outcome); + let balance_after_update = + >::free_balance(&alice_account); + + // All the extrinsics in this test do no fit into 1 block + let _ = RuntimeHelper::::run_to_block(2, AccountId::from(alice).into()); + + // Invalid finalized header update + let invalid_update_outcome = + construct_and_apply_extrinsic(alice, invalid_update_call.into()); + assert_err!( + invalid_update_outcome, + snowbridge_pallet_ethereum_client::Error::::InvalidUpdateSlot + ); + let balance_after_invalid_update = + >::free_balance(&alice_account); + + // Sync committee update + let sync_committee_outcome = + construct_and_apply_extrinsic(alice, update_sync_committee_call.into()); + assert_ok!(sync_committee_outcome); + let balance_after_sync_com_update = + >::free_balance(&alice_account); + + // Invalid sync committee update + let invalid_sync_committee_outcome = + construct_and_apply_extrinsic(alice, invalid_update_sync_committee_call.into()); + assert_err!( + invalid_sync_committee_outcome, + snowbridge_pallet_ethereum_client::Error::::InvalidUpdateSlot + ); + let balance_after_invalid_sync_com_update = + >::free_balance(&alice_account); + + // Assert paid operations are charged and free operations are free + // Checkpoint is a free operation + assert!(balance_before == balance_after_checkpoint); + let gap = + ::FreeHeadersInterval::get(); + // Large enough header gap is free + if update.finalized_header.slot >= initial_checkpoint.header.slot + gap as u64 { + assert!(balance_after_checkpoint == balance_after_update); + } else { + // Otherwise paid + assert!(balance_after_checkpoint > balance_after_update); + } + // An invalid update is paid + assert!(balance_after_update > balance_after_invalid_update); + // A successful sync committee update is free + assert!(balance_after_invalid_update == balance_after_sync_com_update); + // An invalid sync committee update is paid + assert!(balance_after_sync_com_update > balance_after_invalid_sync_com_update); + }); +} + fn construct_extrinsic( sender: sp_keyring::AccountKeyring, call: RuntimeCall, @@ -254,7 +399,7 @@ fn construct_extrinsic( frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), BridgeRejectObsoleteHeadersAndMessages, - (RefundBridgeHubKusamaMessages::default()), + (OnBridgeHubPaseoRefundBridgeHubKusamaMessages::default()), frame_metadata_hash_extension::CheckMetadataHash::::new(false), ); let payload = SignedPayload::new(call.clone(), extra.clone()).unwrap(); diff --git a/system-parachains/bridge-hub-paseo/tests/tests.rs b/system-parachains/bridge-hub-paseo/tests/tests.rs index a47be887b..2299c8185 100644 --- a/system-parachains/bridge-hub-paseo/tests/tests.rs +++ b/system-parachains/bridge-hub-paseo/tests/tests.rs @@ -15,28 +15,30 @@ // along with Cumulus. If not, see . use bp_bridge_hub_kusama::Perbill; +use bp_messages::LegacyLaneId; use bp_polkadot_core::Signature; use bridge_hub_paseo_runtime::{ bridge_to_kusama_config::{ - AssetHubKusamaParaId, BridgeGrandpaKusamaInstance, BridgeHubKusamaChainId, - BridgeHubKusamaLocation, BridgeParachainKusamaInstance, DeliveryRewardInBalance, - KusamaGlobalConsensusNetwork, RefundBridgeHubKusamaMessages, RequiredStakeForStakeAndSlash, - WithBridgeHubKusamaMessageBridge, WithBridgeHubKusamaMessagesInstance, - XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA, + AssetHubKusamaParaId, BridgeGrandpaKusamaInstance, BridgeHubKusamaLocation, + BridgeParachainKusamaInstance, DeliveryRewardInBalance, KusamaGlobalConsensusNetwork, + OnBridgeHubPaseoRefundBridgeHubKusamaMessages, RelayersForLegacyLaneIdsMessagesInstance, + RequiredStakeForStakeAndSlash, WithBridgeHubKusamaMessagesInstance, + XcmOverBridgeHubKusamaInstance, }, xcm_config::{ DotRelayLocation, LocationToAccountId, RelayNetwork, RelayTreasuryLocation, RelayTreasuryPalletAccount, XcmConfig, }, - AllPalletsWithoutSystem, BridgeRejectObsoleteHeadersAndMessages, Executive, ExistentialDeposit, - ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, SessionKeys, - SignedExtra, TransactionPayment, UncheckedExtrinsic, SLOT_DURATION, + AllPalletsWithoutSystem, Block, BridgeRejectObsoleteHeadersAndMessages, Executive, + ExistentialDeposit, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, + RuntimeOrigin, SessionKeys, SignedExtra, TransactionPayment, UncheckedExtrinsic, SLOT_DURATION, }; use bridge_hub_test_utils::{test_cases::from_parachain, SlotDurations}; use codec::{Decode, Encode}; use frame_support::{dispatch::GetDispatchInfo, parameter_types, traits::ConstU8}; use parachains_common::{AccountId, AuraId, Balance}; use sp_consensus_aura::SlotDuration; +use sp_core::crypto::Ss58Codec; use sp_keyring::AccountKeyring::Alice; use sp_runtime::{ generic::{Era, SignedPayload}, @@ -47,9 +49,20 @@ use system_parachains_constants::paseo::{ }; use xcm::latest::prelude::*; use xcm_executor::traits::ConvertLocation; +use xcm_runtime_apis::conversions::LocationToAccountHelper; // Para id of sibling chain used in tests. pub const SIBLING_PARACHAIN_ID: u32 = 1000; +// Random para id of sibling chain used in tests. +pub const SIBLING_SYSTEM_PARACHAIN_ID: u32 = 1008; +// Random para id of bridged chain from different global consensus used in tests. +pub const BRIDGED_LOCATION_PARACHAIN_ID: u32 = 1000; + +parameter_types! { + pub SiblingParachainLocation: Location = Location::new(1, [Parachain(SIBLING_PARACHAIN_ID)]); + pub SiblingSystemParachainLocation: Location = Location::new(1, [Parachain(SIBLING_SYSTEM_PARACHAIN_ID)]); + pub BridgedUniversalLocation: InteriorLocation = [GlobalConsensus(KusamaGlobalConsensusNetwork::get()), Parachain(BRIDGED_LOCATION_PARACHAIN_ID)].into(); +} // Runtime from tests PoV type RuntimeTestsAdapter = from_parachain::WithRemoteParachainHelperAdapter< @@ -58,7 +71,7 @@ type RuntimeTestsAdapter = from_parachain::WithRemoteParachainHelperAdapter< BridgeGrandpaKusamaInstance, BridgeParachainKusamaInstance, WithBridgeHubKusamaMessagesInstance, - WithBridgeHubKusamaMessageBridge, + RelayersForLegacyLaneIdsMessagesInstance, >; parameter_types! { @@ -82,7 +95,7 @@ fn construct_extrinsic( frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), BridgeRejectObsoleteHeadersAndMessages, - (RefundBridgeHubKusamaMessages::default()), + (OnBridgeHubPaseoRefundBridgeHubKusamaMessages::default()), frame_metadata_hash_extension::CheckMetadataHash::::new(false), ); let payload = SignedPayload::new(call.clone(), extra.clone()).unwrap(); @@ -228,11 +241,30 @@ fn handle_export_message_from_system_parachain_add_to_outbound_queue_works() { } }), || ExportMessage { network: Kusama, destination: Parachain(AssetHubKusamaParaId::get().into()).into(), xcm: Xcm(vec![]) }, - XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA, Some((DotRelayLocation::get(), ExistentialDeposit::get()).into()), // value should be >= than value generated by `can_calculate_weight_for_paid_export_message_with_reserve_transfer` Some((DotRelayLocation::get(), bp_bridge_hub_polkadot::BridgeHubPolkadotBaseXcmFeeInDots::get()).into()), - || PolkadotXcm::force_xcm_version(RuntimeOrigin::root(), Box::new(BridgeHubKusamaLocation::get()), XCM_VERSION).expect("version saved!"), + || { + PolkadotXcm::force_xcm_version(RuntimeOrigin::root(), Box::new(BridgeHubKusamaLocation::get()), XCM_VERSION).expect("version saved!"); + + // we need to create lane between sibling parachain and remote destination + bridge_hub_test_utils::ensure_opened_bridge::< + Runtime, + XcmOverBridgeHubKusamaInstance, + LocationToAccountId, + DotRelayLocation, + >( + SiblingParachainLocation::get(), + BridgedUniversalLocation::get(), + false, + |locations, _fee| { + bridge_hub_test_utils::open_bridge_with_storage::< + Runtime, + XcmOverBridgeHubKusamaInstance + >(locations, LegacyLaneId([0, 0, 0, 1])) + } + ).1 + }, ) } @@ -264,7 +296,6 @@ fn message_dispatch_routing_works() { _ => None, } }), - XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA, || (), ) } @@ -276,12 +307,30 @@ fn relayed_incoming_message_works() { slot_durations(), bp_bridge_hub_polkadot::BRIDGE_HUB_POLKADOT_PARACHAIN_ID, bp_bridge_hub_kusama::BRIDGE_HUB_KUSAMA_PARACHAIN_ID, - BridgeHubKusamaChainId::get(), SIBLING_PARACHAIN_ID, Polkadot, - XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA, - || (), + || { + // we need to create lane between sibling parachain and remote destination + bridge_hub_test_utils::ensure_opened_bridge::< + Runtime, + XcmOverBridgeHubKusamaInstance, + LocationToAccountId, + DotRelayLocation, + >( + SiblingParachainLocation::get(), + BridgedUniversalLocation::get(), + false, + |locations, _fee| { + bridge_hub_test_utils::open_bridge_with_storage::< + Runtime, + XcmOverBridgeHubKusamaInstance, + >(locations, LegacyLaneId([0, 0, 0, 1])) + }, + ) + .1 + }, construct_and_apply_extrinsic, + true, ) } @@ -293,12 +342,30 @@ fn free_relay_extrinsic_works() { slot_durations(), bp_bridge_hub_polkadot::BRIDGE_HUB_POLKADOT_PARACHAIN_ID, bp_bridge_hub_kusama::BRIDGE_HUB_KUSAMA_PARACHAIN_ID, - BridgeHubKusamaChainId::get(), SIBLING_PARACHAIN_ID, Polkadot, - XCM_LANE_FOR_ASSET_HUB_POLKADOT_TO_ASSET_HUB_KUSAMA, - || (), + || { + // we need to create lane between sibling parachain and remote destination + bridge_hub_test_utils::ensure_opened_bridge::< + Runtime, + XcmOverBridgeHubKusamaInstance, + LocationToAccountId, + DotRelayLocation, + >( + SiblingParachainLocation::get(), + BridgedUniversalLocation::get(), + false, + |locations, _fee| { + bridge_hub_test_utils::open_bridge_with_storage::< + Runtime, + XcmOverBridgeHubKusamaInstance, + >(locations, LegacyLaneId([0, 0, 0, 1])) + }, + ) + .1 + }, construct_and_apply_extrinsic, + true, ) } @@ -368,3 +435,116 @@ fn treasury_pallet_account_not_none() { LocationToAccountId::convert_location(&RelayTreasuryLocation::get()).unwrap() ) } + +#[test] +fn location_conversion_works() { + let alice_32 = xcm::prelude::AccountId32 { + network: None, + id: paseo_core_primitives::AccountId::from(Alice).into(), + }; + let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; + + // the purpose of hardcoded values is to catch an unintended location conversion logic change. + struct TestCase { + description: &'static str, + location: Location, + expected_account_id_str: &'static str, + } + + let test_cases = vec![ + // DescribeTerminus + TestCase { + description: "DescribeTerminus Parent", + location: Location::new(1, Here), + expected_account_id_str: "5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG", + }, + TestCase { + description: "DescribeTerminus Sibling", + location: Location::new(1, [Parachain(1111)]), + expected_account_id_str: "5Eg2fnssmmJnF3z1iZ1NouAuzciDaaDQH7qURAy3w15jULDk", + }, + // DescribePalletTerminal + TestCase { + description: "DescribePalletTerminal Parent", + location: Location::new(1, [PalletInstance(50)]), + expected_account_id_str: "5CnwemvaAXkWFVwibiCvf2EjqwiqBi29S5cLLydZLEaEw6jZ", + }, + TestCase { + description: "DescribePalletTerminal Sibling", + location: Location::new(1, [Parachain(1111), PalletInstance(50)]), + expected_account_id_str: "5GFBgPjpEQPdaxEnFirUoa51u5erVx84twYxJVuBRAT2UP2g", + }, + // DescribeAccountId32Terminal + TestCase { + description: "DescribeAccountId32Terminal Parent", + location: Location::new(1, [alice_32]), + expected_account_id_str: "5EueAXd4h8u75nSbFdDJbC29cmi4Uo1YJssqEL9idvindxFL", + }, + TestCase { + description: "DescribeAccountId32Terminal Sibling", + location: Location::new(1, [Parachain(1111), alice_32]), + expected_account_id_str: "5Dmbuiq48fU4iW58FKYqoGbbfxFHjbAeGLMtjFg6NNCw3ssr", + }, + // DescribeAccountKey20Terminal + TestCase { + description: "DescribeAccountKey20Terminal Parent", + location: Location::new(1, [bob_20]), + expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n", + }, + TestCase { + description: "DescribeAccountKey20Terminal Sibling", + location: Location::new(1, [Parachain(1111), bob_20]), + expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp", + }, + // DescribeTreasuryVoiceTerminal + TestCase { + description: "DescribeTreasuryVoiceTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Treasury, part: BodyPart::Voice }]), + expected_account_id_str: "5CUjnE2vgcUCuhxPwFoQ5r7p1DkhujgvMNDHaF2bLqRp4D5F", + }, + TestCase { + description: "DescribeTreasuryVoiceTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Treasury, part: BodyPart::Voice }], + ), + expected_account_id_str: "5G6TDwaVgbWmhqRUKjBhRRnH4ry9L9cjRymUEmiRsLbSE4gB", + }, + // DescribeBodyTerminal + TestCase { + description: "DescribeBodyTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Unit, part: BodyPart::Voice }]), + expected_account_id_str: "5EBRMTBkDisEXsaN283SRbzx9Xf2PXwUxxFCJohSGo4jYe6B", + }, + TestCase { + description: "DescribeBodyTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Unit, part: BodyPart::Voice }], + ), + expected_account_id_str: "5DBoExvojy8tYnHgLL97phNH975CyT45PWTZEeGoBZfAyRMH", + }, + ]; + + for tc in test_cases { + let expected = paseo_core_primitives::AccountId::from_string(tc.expected_account_id_str) + .expect("Invalid AccountId string"); + + let got = LocationToAccountHelper::::convert_location( + tc.location.into(), + ) + .unwrap(); + + assert_eq!(got, expected, "{}", tc.description); + } +} + +#[test] +fn xcm_payment_api_works() { + parachains_runtimes_test_utils::test_cases::xcm_payment_api_with_native_token_works::< + Runtime, + RuntimeCall, + RuntimeOrigin, + Block, + >(); +} From dce681e56221c4624e9a8abb15a39ec9e36e4b02 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 11 Feb 2025 18:03:26 +0100 Subject: [PATCH 05/14] [WIP]: coretime --- .../coretime-paseo/src/coretime.rs | 20 +- .../src/genesis_config_presets.rs | 38 ++- system-parachains/coretime-paseo/src/lib.rs | 67 +++-- system-parachains/coretime-paseo/src/tests.rs | 116 ++++++++ .../cumulus_pallet_parachain_system.rs | 10 +- .../src/weights/cumulus_pallet_xcmp_queue.rs | 30 +- .../src/weights/frame_system.rs | 60 ++-- .../src/weights/pallet_balances.rs | 57 ++-- .../src/weights/pallet_broker.rs | 260 ++++++++++-------- .../src/weights/pallet_collator_selection.rs | 101 ++++--- .../src/weights/pallet_message_queue.rs | 42 +-- .../src/weights/pallet_multisig.rs | 64 ++--- .../src/weights/pallet_proxy.rs | 98 +++---- .../src/weights/pallet_session.rs | 10 +- .../src/weights/pallet_timestamp.rs | 10 +- .../src/weights/pallet_utility.rs | 34 +-- .../coretime-paseo/src/weights/pallet_xcm.rs | 235 +++++++--------- .../xcm/pallet_xcm_benchmarks_fungible.rs | 74 ++--- .../xcm/pallet_xcm_benchmarks_generic.rs | 180 ++++++------ .../coretime-paseo/src/xcm_config.rs | 8 +- 20 files changed, 842 insertions(+), 672 deletions(-) diff --git a/system-parachains/coretime-paseo/src/coretime.rs b/system-parachains/coretime-paseo/src/coretime.rs index ef2dcd16f..29cd39572 100644 --- a/system-parachains/coretime-paseo/src/coretime.rs +++ b/system-parachains/coretime-paseo/src/coretime.rs @@ -28,12 +28,15 @@ use frame_support::{ weights::constants::{WEIGHT_PROOF_SIZE_PER_KB, WEIGHT_REF_TIME_PER_MICROS}, }; use frame_system::Pallet as System; -use pallet_broker::{CoreAssignment, CoreIndex, CoretimeInterface, PartsOf57600, RCBlockNumberOf}; +use pallet_broker::{ + CoreAssignment, CoreIndex, CoretimeInterface, PartsOf57600, RCBlockNumberOf, TaskId, +}; use parachains_common::{AccountId, Balance}; use paseo_runtime_constants::{system_parachain::coretime, time::DAYS as RELAY_DAYS}; -use sp_runtime::traits::AccountIdConversion; +use sp_runtime::traits::{AccountIdConversion, MaybeConvert}; use xcm::latest::prelude::*; -use xcm_executor::traits::TransactAsset; +use xcm_config::LocationToAccountId; +use xcm_executor::traits::{ConvertLocation, TransactAsset}; /// A type containing the encoding of the coretime pallet in the Relay chain runtime. Used to /// construct any remote calls. The codec index must correspond to the index of `Coretime` in the @@ -323,6 +326,15 @@ parameter_types! { pub const BrokerPalletId: PalletId = PalletId(*b"py/broke"); } +pub struct SovereignAccountOf; +impl MaybeConvert for SovereignAccountOf { + fn maybe_convert(id: TaskId) -> Option { + // Currently all tasks are parachains + let location = Location::new(1, [Parachain(id)]); + LocationToAccountId::convert_location(&location) + } +} + impl pallet_broker::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Currency = Balances; @@ -335,5 +347,7 @@ impl pallet_broker::Config for Runtime { type WeightInfo = weights::pallet_broker::WeightInfo; type PalletId = BrokerPalletId; type AdminOrigin = EnsureRoot; + type SovereignAccountOf = SovereignAccountOf; + type MaxAutoRenewals = ConstU32<100>; type PriceAdapter = pallet_broker::CenterTargetPrice; } diff --git a/system-parachains/coretime-paseo/src/genesis_config_presets.rs b/system-parachains/coretime-paseo/src/genesis_config_presets.rs index 5537f0bc4..c8bac1657 100644 --- a/system-parachains/coretime-paseo/src/genesis_config_presets.rs +++ b/system-parachains/coretime-paseo/src/genesis_config_presets.rs @@ -59,6 +59,7 @@ fn coretime_paseo_genesis( ) }) .collect(), + ..Default::default() }, "sudo": { "key": Some(get_account_id_from_seed::("Alice")) @@ -95,7 +96,42 @@ fn coretime_paseo_live_genesis(para_id: ParaId) -> serde_json::Value { hex!("0cf6762e28ed1505f5595a7845d153b1853b026d0b620a70a564378043c33b18").into(), hex!("7e126fa970a75ae2cd371d01ee32e9387f0b256832e408ca8ea7b254e6bcde7d") .unchecked_into(), - ) + ), + // Stakeworld.io + // 13Jpq4n3PXXaSAbJTMmFD78mXAzs8PzgUUQd5ve8saw7HQS5 + ( + hex!("6610a5024c2a5db3d02056d4344d120ec7be283100d71a6715f09275167e4f38").into(), + hex!("dcaa0b4c6840028f6d4fa8c460d5a7d687d1f81c9de453ef2f5ead88767fd22a") + .unchecked_into(), + ), + // STKD + // 173Wc3mSdXa9ja9nv7C1z6GQHEBK4HZ9U4NGhHnvmTfJaJb + ( + hex!("049bec59fb5fe6adea4578250578e89dd7e51ad88c7c92493d6f451c6680925c").into(), + hex!("7283ea6b8648673305a3e06be6dd83b7bc1840081d50d4deef1ce53eba21e914") + .unchecked_into(), + ), + // Staker Space + // 1k4vuCxwbNcHfsNdQ3MgTGixwvrT7wbLc2XiZj68Gru6bLM + ( + hex!("20d8c795eef2620fba2bde74dbc36461c07998ebf600ed265b746c1e05c70606").into(), + hex!("248dbf89d86998772b66900d78e98980ea2afc3c8fe5b93f4b38052f3018a230") + .unchecked_into(), + ), + // openbitlab_ + // 12iho9gjSMvF9smJjnihmn9j9Qqr3S1LFD97e8Lkcw4R6Yeb + ( + hex!("4c0aa0240b2d7485675e52cdb283a87973652f6acb42c830a5a5faa80f7a707e").into(), + hex!("1c346cb44aa03f8995eeee230970772d6268cd7606740f269bb4e609a01a3a15") + .unchecked_into(), + ), + // Math Crypto + // 112FKz5UNxjXqe3Wowe73a8FHnR5B4R9qi2pbMaXJczGNJsx + ( + hex!("00f379b621bd73c45c7d155d2a1fe6a04649e3ece7c7e03b70b3a6242bc7c127").into(), + hex!("e063247ca37058db551a8d99f2f15cfede61fc796acc464a9cdce4c18f6a4659") + .unchecked_into(), + ), ], Vec::new(), para_id, diff --git a/system-parachains/coretime-paseo/src/lib.rs b/system-parachains/coretime-paseo/src/lib.rs index 2bbaba9f6..7327c2b59 100644 --- a/system-parachains/coretime-paseo/src/lib.rs +++ b/system-parachains/coretime-paseo/src/lib.rs @@ -118,7 +118,7 @@ pub type UncheckedExtrinsic = pub type Migrations = ( // permanent pallet_xcm::migration::MigrateToLatestXcmVersion, - //migrations::FixMigration, + migrations::FixMigration, ); /// Executive: handles dispatch to the various modules. @@ -142,7 +142,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("coretime-paseo"), impl_name: create_runtime_str!("coretime-paseo"), authoring_version: 1, - spec_version: 1_003_003, + spec_version: 1_004_000, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 0, @@ -180,10 +180,10 @@ parameter_types! { pub const SS58Prefix: u8 = 0; } -/// Filter out credit purchase calls until the credit system is implemented. -/// -/// Otherwise, users may have chance of locking their funds forever on purchased credits they cannot -/// use. Also filter the interlace call until the relay can support this fully. +/// Filter: +/// - Credit purchase calls until the credit system is implemented. Otherwise, users may have chance +/// of locking their funds forever on purchased credits they cannot use. +/// - The interlace call until the relay can support this fully pub struct IsFilteredBrokerCall; impl Contains for IsFilteredBrokerCall { fn contains(c: &RuntimeCall) -> bool { @@ -820,7 +820,8 @@ impl_runtime_apis! { } fn query_weight_to_asset_fee(weight: Weight, asset: VersionedAssetId) -> Result { - match asset.try_as::() { + let latest_asset_id: Result = asset.clone().try_into(); + match latest_asset_id { Ok(asset_id) if asset_id.0 == xcm_config::DotRelayLocation::get() => { // for native token Ok(WeightToFee::weight_to_fee(&weight)) @@ -909,7 +910,9 @@ impl_runtime_apis! { config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; + use frame_support::traits::WhitelistedStorageKeys; use sp_storage::TrackedStorageKey; + use pallet_broker::CoreMask; use frame_system_benchmarking::Pallet as SystemBench; impl frame_system_benchmarking::Config for Runtime { @@ -934,15 +937,25 @@ impl_runtime_apis! { DotRelayLocation::get(), ExistentialDeposit::get() ).into()); + pub const RandomParaId: ParaId = ParaId::new(43211234); } use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark; impl pallet_xcm::benchmarking::Config for Runtime { - type DeliveryHelper = cumulus_primitives_utility::ToParentDeliveryHelper< + type DeliveryHelper = ( + cumulus_primitives_utility::ToParentDeliveryHelper< xcm_config::XcmConfig, ExistentialDepositAsset, PriceForParentDelivery, - >; + >, + paseo_runtime_common::xcm_sender::ToParachainDeliveryHelper< + xcm_config::XcmConfig, + ExistentialDepositAsset, + PriceForSiblingParachainDelivery, + RandomParaId, + ParachainSystem, + > + ); fn reachable_dest() -> Option { Some(Parent.into()) @@ -960,8 +973,21 @@ impl_runtime_apis! { } fn reserve_transferable_asset_and_dest() -> Option<(Asset, Location)> { - // Reserve transfers are disabled - None + // Coretime chain can reserve transfer regions to some random parachain. + + // Properties of a mock region: + let core = 0; + let begin = 0; + let end = 42; + + let region_id = pallet_broker::Pallet::::issue(core, begin, CoreMask::complete(), end, None, None); + Some(( + Asset { + fun: NonFungible(Index(region_id.into())), + id: AssetId(xcm_config::BrokerPalletLocation::get()) + }, + ParentThen(Parachain(RandomParaId::get().into()).into()).into(), + )) } fn get_asset() -> Asset { @@ -974,11 +1000,20 @@ impl_runtime_apis! { impl pallet_xcm_benchmarks::Config for Runtime { type XcmConfig = xcm_config::XcmConfig; - type DeliveryHelper = cumulus_primitives_utility::ToParentDeliveryHelper< - xcm_config::XcmConfig, - ExistentialDepositAsset, - PriceForParentDelivery, - >; + type DeliveryHelper = ( + cumulus_primitives_utility::ToParentDeliveryHelper< + xcm_config::XcmConfig, + ExistentialDepositAsset, + PriceForParentDelivery, + >, + paseo_runtime_common::xcm_sender::ToParachainDeliveryHelper< + xcm_config::XcmConfig, + ExistentialDepositAsset, + PriceForSiblingParachainDelivery, + RandomParaId, + ParachainSystem, + > + ); type AccountIdConverter = xcm_config::LocationToAccountId; fn valid_destination() -> Result { Ok(DotRelayLocation::get()) diff --git a/system-parachains/coretime-paseo/src/tests.rs b/system-parachains/coretime-paseo/src/tests.rs index a0a4ddffd..e4a8e4c30 100644 --- a/system-parachains/coretime-paseo/src/tests.rs +++ b/system-parachains/coretime-paseo/src/tests.rs @@ -16,6 +16,7 @@ use crate::{ coretime::{BrokerPalletId, CoretimeBurnAccount}, + xcm_config::LocationToAccountId, *, }; use coretime::CoretimeAllocator; @@ -29,7 +30,11 @@ use frame_support::{ use pallet_broker::{ConfigRecordOf, RCBlockNumberOf, SaleInfo}; use parachains_runtimes_test_utils::ExtBuilder; use paseo_runtime_constants::system_parachain::coretime::TIMESLICE_PERIOD; +use sp_core::crypto::Ss58Codec; use sp_runtime::traits::AccountIdConversion; +use xcm_runtime_apis::conversions::LocationToAccountHelper; + +const ALICE: [u8; 32] = [1u8; 32]; fn advance_to(b: BlockNumber) { while System::block_number() < b { @@ -110,3 +115,114 @@ fn timeslice_period_is_sane() { #[cfg(not(feature = "fast-runtime"))] assert_eq!(TIMESLICE_PERIOD, 80); } + +#[test] +fn location_conversion_works() { + let alice_32 = + AccountId32 { network: None, id: paseo_core_primitives::AccountId::from(ALICE).into() }; + let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; + + // the purpose of hardcoded values is to catch an unintended location conversion logic change. + struct TestCase { + description: &'static str, + location: Location, + expected_account_id_str: &'static str, + } + + let test_cases = vec![ + // DescribeTerminus + TestCase { + description: "DescribeTerminus Parent", + location: Location::new(1, Here), + expected_account_id_str: "5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG", + }, + TestCase { + description: "DescribeTerminus Sibling", + location: Location::new(1, [Parachain(1111)]), + expected_account_id_str: "5Eg2fnssmmJnF3z1iZ1NouAuzciDaaDQH7qURAy3w15jULDk", + }, + // DescribePalletTerminal + TestCase { + description: "DescribePalletTerminal Parent", + location: Location::new(1, [PalletInstance(50)]), + expected_account_id_str: "5CnwemvaAXkWFVwibiCvf2EjqwiqBi29S5cLLydZLEaEw6jZ", + }, + TestCase { + description: "DescribePalletTerminal Sibling", + location: Location::new(1, [Parachain(1111), PalletInstance(50)]), + expected_account_id_str: "5GFBgPjpEQPdaxEnFirUoa51u5erVx84twYxJVuBRAT2UP2g", + }, + // DescribeAccountId32Terminal + TestCase { + description: "DescribeAccountId32Terminal Parent", + location: Location::new(1, [alice_32]), + expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4", + }, + TestCase { + description: "DescribeAccountId32Terminal Sibling", + location: Location::new(1, [Parachain(1111), alice_32]), + expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg", + }, + // DescribeAccountKey20Terminal + TestCase { + description: "DescribeAccountKey20Terminal Parent", + location: Location::new(1, [bob_20]), + expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n", + }, + TestCase { + description: "DescribeAccountKey20Terminal Sibling", + location: Location::new(1, [Parachain(1111), bob_20]), + expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp", + }, + // DescribeTreasuryVoiceTerminal + TestCase { + description: "DescribeTreasuryVoiceTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Treasury, part: BodyPart::Voice }]), + expected_account_id_str: "5CUjnE2vgcUCuhxPwFoQ5r7p1DkhujgvMNDHaF2bLqRp4D5F", + }, + TestCase { + description: "DescribeTreasuryVoiceTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Treasury, part: BodyPart::Voice }], + ), + expected_account_id_str: "5G6TDwaVgbWmhqRUKjBhRRnH4ry9L9cjRymUEmiRsLbSE4gB", + }, + // DescribeBodyTerminal + TestCase { + description: "DescribeBodyTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Unit, part: BodyPart::Voice }]), + expected_account_id_str: "5EBRMTBkDisEXsaN283SRbzx9Xf2PXwUxxFCJohSGo4jYe6B", + }, + TestCase { + description: "DescribeBodyTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Unit, part: BodyPart::Voice }], + ), + expected_account_id_str: "5DBoExvojy8tYnHgLL97phNH975CyT45PWTZEeGoBZfAyRMH", + }, + ]; + + for tc in test_cases { + let expected = paseo_core_primitives::AccountId::from_string(tc.expected_account_id_str) + .expect("Invalid AccountId string"); + + let got = LocationToAccountHelper::::convert_location( + tc.location.into(), + ) + .unwrap(); + + assert_eq!(got, expected, "{}", tc.description); + } +} + +#[test] +fn xcm_payment_api_works() { + parachains_runtimes_test_utils::test_cases::xcm_payment_api_with_native_token_works::< + Runtime, + RuntimeCall, + RuntimeOrigin, + Block, + >(); +} diff --git a/system-parachains/coretime-paseo/src/weights/cumulus_pallet_parachain_system.rs b/system-parachains/coretime-paseo/src/weights/cumulus_pallet_parachain_system.rs index 3922dac22..804c62514 100644 --- a/system-parachains/coretime-paseo/src/weights/cumulus_pallet_parachain_system.rs +++ b/system-parachains/coretime-paseo/src/weights/cumulus_pallet_parachain_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `cumulus_pallet_parachain_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -62,11 +62,11 @@ impl cumulus_pallet_parachain_system::WeightInfo for We // Proof Size summary in bytes: // Measured: `48` // Estimated: `3517` - // Minimum execution time: 2_800_000 picoseconds. - Weight::from_parts(2_870_000, 0) + // Minimum execution time: 3_660_000 picoseconds. + Weight::from_parts(3_840_000, 0) .saturating_add(Weight::from_parts(0, 3517)) - // Standard Error: 52_791 - .saturating_add(Weight::from_parts(190_765_792, 0).saturating_mul(n.into())) + // Standard Error: 54_139 + .saturating_add(Weight::from_parts(187_086_196, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) diff --git a/system-parachains/coretime-paseo/src/weights/cumulus_pallet_xcmp_queue.rs b/system-parachains/coretime-paseo/src/weights/cumulus_pallet_xcmp_queue.rs index e81e6cfdd..240060574 100644 --- a/system-parachains/coretime-paseo/src/weights/cumulus_pallet_xcmp_queue.rs +++ b/system-parachains/coretime-paseo/src/weights/cumulus_pallet_xcmp_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `cumulus_pallet_xcmp_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `76` // Estimated: `1497` - // Minimum execution time: 4_920_000 picoseconds. - Weight::from_parts(5_130_000, 0) + // Minimum execution time: 6_840_000 picoseconds. + Weight::from_parts(7_060_000, 0) .saturating_add(Weight::from_parts(0, 1497)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -73,8 +73,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `82` // Estimated: `5487` - // Minimum execution time: 12_830_000 picoseconds. - Weight::from_parts(13_170_000, 0) + // Minimum execution time: 18_660_000 picoseconds. + Weight::from_parts(18_910_000, 0) .saturating_add(Weight::from_parts(0, 5487)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -85,8 +85,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `76` // Estimated: `2767` - // Minimum execution time: 3_050_000 picoseconds. - Weight::from_parts(3_140_000, 0) + // Minimum execution time: 4_220_000 picoseconds. + Weight::from_parts(4_380_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -97,8 +97,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `111` // Estimated: `2767` - // Minimum execution time: 4_080_000 picoseconds. - Weight::from_parts(4_190_000, 0) + // Minimum execution time: 5_720_000 picoseconds. + Weight::from_parts(5_870_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,8 +107,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_450_000 picoseconds. - Weight::from_parts(7_620_000, 0) + // Minimum execution time: 7_430_000 picoseconds. + Weight::from_parts(7_640_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) @@ -129,8 +129,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65711` // Estimated: `69176` - // Minimum execution time: 107_290_000 picoseconds. - Weight::from_parts(108_550_000, 0) + // Minimum execution time: 115_701_000 picoseconds. + Weight::from_parts(116_530_000, 0) .saturating_add(Weight::from_parts(0, 69176)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -143,8 +143,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65710` // Estimated: `69175` - // Minimum execution time: 50_181_000 picoseconds. - Weight::from_parts(50_760_000, 0) + // Minimum execution time: 61_681_000 picoseconds. + Weight::from_parts(62_381_000, 0) .saturating_add(Weight::from_parts(0, 69175)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/coretime-paseo/src/weights/frame_system.rs b/system-parachains/coretime-paseo/src/weights/frame_system.rs index 66fd75785..6d8c50830 100644 --- a/system-parachains/coretime-paseo/src/weights/frame_system.rs +++ b/system-parachains/coretime-paseo/src/weights/frame_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,22 +52,22 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_020_000 picoseconds. - Weight::from_parts(2_110_000, 0) + // Minimum execution time: 2_550_000 picoseconds. + Weight::from_parts(2_700_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 - .saturating_add(Weight::from_parts(382, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(384, 0).saturating_mul(b.into())) } /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_650_000 picoseconds. - Weight::from_parts(5_770_000, 0) + // Minimum execution time: 6_660_000 picoseconds. + Weight::from_parts(6_830_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_778, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_787, 0).saturating_mul(b.into())) } /// Storage: `System::Digest` (r:1 w:1) /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -77,8 +77,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_640_000 picoseconds. - Weight::from_parts(3_760_000, 0) + // Minimum execution time: 4_460_000 picoseconds. + Weight::from_parts(4_700_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -99,8 +99,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `164` // Estimated: `1649` - // Minimum execution time: 118_780_773_000 picoseconds. - Weight::from_parts(122_722_799_000, 0) + // Minimum execution time: 116_981_311_000 picoseconds. + Weight::from_parts(120_994_458_000, 0) .saturating_add(Weight::from_parts(0, 1649)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -112,11 +112,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_060_000 picoseconds. - Weight::from_parts(2_120_000, 0) + // Minimum execution time: 2_540_000 picoseconds. + Weight::from_parts(2_650_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_258 - .saturating_add(Weight::from_parts(857_022, 0).saturating_mul(i.into())) + // Standard Error: 2_641 + .saturating_add(Weight::from_parts(870_835, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -126,11 +126,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_110_000 picoseconds. - Weight::from_parts(2_170_000, 0) + // Minimum execution time: 2_600_000 picoseconds. + Weight::from_parts(2_670_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_093 - .saturating_add(Weight::from_parts(661_080, 0).saturating_mul(i.into())) + // Standard Error: 1_079 + .saturating_add(Weight::from_parts(663_514, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -138,13 +138,13 @@ impl frame_system::WeightInfo for WeightInfo { /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `76 + p * (69 ±0)` - // Estimated: `77 + p * (70 ±0)` - // Minimum execution time: 4_080_000 picoseconds. - Weight::from_parts(4_180_000, 0) - .saturating_add(Weight::from_parts(0, 77)) - // Standard Error: 1_497 - .saturating_add(Weight::from_parts(1_336_878, 0).saturating_mul(p.into())) + // Measured: `78 + p * (69 ±0)` + // Estimated: `74 + p * (70 ±0)` + // Minimum execution time: 4_950_000 picoseconds. + Weight::from_parts(5_050_000, 0) + .saturating_add(Weight::from_parts(0, 74)) + // Standard Error: 1_516 + .saturating_add(Weight::from_parts(1_513_844, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -155,8 +155,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 20_690_000 picoseconds. - Weight::from_parts(22_920_000, 0) + // Minimum execution time: 23_050_000 picoseconds. + Weight::from_parts(24_990_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -178,8 +178,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `186` // Estimated: `1671` - // Minimum execution time: 122_321_126_000 picoseconds. - Weight::from_parts(126_620_944_000, 0) + // Minimum execution time: 120_993_998_000 picoseconds. + Weight::from_parts(123_723_385_000, 0) .saturating_add(Weight::from_parts(0, 1671)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/system-parachains/coretime-paseo/src/weights/pallet_balances.rs b/system-parachains/coretime-paseo/src/weights/pallet_balances.rs index fd506d75a..f52eceb39 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_balances.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_balances.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 52_610_000 picoseconds. - Weight::from_parts(53_031_000, 0) + // Minimum execution time: 62_091_000 picoseconds. + Weight::from_parts(63_371_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 41_580_000 picoseconds. - Weight::from_parts(42_130_000, 0) + // Minimum execution time: 50_380_000 picoseconds. + Weight::from_parts(50_951_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 15_060_000 picoseconds. - Weight::from_parts(15_380_000, 0) + // Minimum execution time: 20_140_000 picoseconds. + Weight::from_parts(20_580_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 20_520_000 picoseconds. - Weight::from_parts(20_760_000, 0) + // Minimum execution time: 28_570_000 picoseconds. + Weight::from_parts(28_910_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -101,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `155` // Estimated: `6196` - // Minimum execution time: 54_091_000 picoseconds. - Weight::from_parts(54_670_000, 0) + // Minimum execution time: 65_481_000 picoseconds. + Weight::from_parts(66_230_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -113,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 51_701_000 picoseconds. - Weight::from_parts(52_140_000, 0) + // Minimum execution time: 61_640_000 picoseconds. + Weight::from_parts(62_340_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 18_140_000 picoseconds. - Weight::from_parts(18_450_000, 0) + // Minimum execution time: 23_570_000 picoseconds. + Weight::from_parts(24_061_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -138,40 +138,37 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (136 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 17_041_000 picoseconds. - Weight::from_parts(17_200_000, 0) + // Minimum execution time: 20_540_000 picoseconds. + Weight::from_parts(20_830_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 13_048 - .saturating_add(Weight::from_parts(15_460_275, 0).saturating_mul(u.into())) + // Standard Error: 12_738 + .saturating_add(Weight::from_parts(17_486_540, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) } - /// Storage: `Balances::InactiveIssuance` (r:1 w:0) - /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn force_adjust_total_issuance() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `1501` - // Minimum execution time: 6_230_000 picoseconds. - Weight::from_parts(6_400_000, 0) - .saturating_add(Weight::from_parts(0, 1501)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `0` + // Minimum execution time: 7_430_000 picoseconds. + Weight::from_parts(7_730_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn burn_allow_death() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 31_740_000 picoseconds. - Weight::from_parts(32_170_000, 0) + // Minimum execution time: 37_010_000 picoseconds. + Weight::from_parts(37_340_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 21_330_000 picoseconds. - Weight::from_parts(21_630_000, 0) + // Minimum execution time: 25_300_000 picoseconds. + Weight::from_parts(25_600_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/coretime-paseo/src/weights/pallet_broker.rs b/system-parachains/coretime-paseo/src/weights/pallet_broker.rs index 80aeb730d..88814fd16 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_broker.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_broker.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_broker` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_600_000 picoseconds. - Weight::from_parts(2_730_000, 0) + // Minimum execution time: 3_270_000 picoseconds. + Weight::from_parts(3_440_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -64,8 +64,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `10888` // Estimated: `13506` - // Minimum execution time: 28_640_000 picoseconds. - Weight::from_parts(29_100_000, 0) + // Minimum execution time: 31_941_000 picoseconds. + Weight::from_parts(32_480_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -76,8 +76,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `12090` // Estimated: `13506` - // Minimum execution time: 27_170_000 picoseconds. - Weight::from_parts(27_680_000, 0) + // Minimum execution time: 30_910_000 picoseconds. + Weight::from_parts(31_250_000, 0) .saturating_add(Weight::from_parts(0, 13506)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -92,8 +92,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `506` // Estimated: `1991` - // Minimum execution time: 13_220_000 picoseconds. - Weight::from_parts(13_480_000, 0) + // Minimum execution time: 18_541_000 picoseconds. + Weight::from_parts(18_980_000, 0) .saturating_add(Weight::from_parts(0, 1991)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -108,10 +108,6 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -122,6 +118,8 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Broker::InstaPoolIo` (r:3 w:3) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) /// Storage: `Broker::Status` (r:0 w:1) @@ -131,14 +129,14 @@ impl pallet_broker::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 1000]`. fn start_sales(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `12639` - // Estimated: `15093 + n * (2 ±0)` - // Minimum execution time: 50_950_000 picoseconds. - Weight::from_parts(157_424_047, 0) - .saturating_add(Weight::from_parts(0, 15093)) - // Standard Error: 2_906 - .saturating_add(Weight::from_parts(27_470, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(14)) + // Measured: `12607` + // Estimated: `15061 + n * (2 ±0)` + // Minimum execution time: 61_311_000 picoseconds. + Weight::from_parts(172_346_933, 0) + .saturating_add(Weight::from_parts(0, 15061)) + // Standard Error: 3_027 + .saturating_add(Weight::from_parts(28_474, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(62)) .saturating_add(Weight::from_parts(0, 2).saturating_mul(n.into())) } @@ -154,8 +152,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `371` // Estimated: `3593` - // Minimum execution time: 59_920_000 picoseconds. - Weight::from_parts(61_020_000, 0) + // Minimum execution time: 68_511_000 picoseconds. + Weight::from_parts(69_461_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -176,8 +174,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `624` // Estimated: `4698` - // Minimum execution time: 99_041_000 picoseconds. - Weight::from_parts(106_060_000, 0) + // Minimum execution time: 123_691_000 picoseconds. + Weight::from_parts(128_801_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -188,8 +186,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 16_870_000 picoseconds. - Weight::from_parts(17_260_000, 0) + // Minimum execution time: 20_320_000 picoseconds. + Weight::from_parts(20_640_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -200,8 +198,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 18_590_000 picoseconds. - Weight::from_parts(18_920_000, 0) + // Minimum execution time: 22_010_000 picoseconds. + Weight::from_parts(22_490_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -212,8 +210,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `358` // Estimated: `3551` - // Minimum execution time: 20_140_000 picoseconds. - Weight::from_parts(20_470_000, 0) + // Minimum execution time: 23_650_000 picoseconds. + Weight::from_parts(24_150_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) @@ -230,8 +228,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `939` // Estimated: `4681` - // Minimum execution time: 30_771_000 picoseconds. - Weight::from_parts(31_420_000, 0) + // Minimum execution time: 42_731_000 picoseconds. + Weight::from_parts(43_490_000, 0) .saturating_add(Weight::from_parts(0, 4681)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -250,8 +248,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1005` // Estimated: `5996` - // Minimum execution time: 37_280_000 picoseconds. - Weight::from_parts(37_810_000, 0) + // Minimum execution time: 50_921_000 picoseconds. + Weight::from_parts(51_350_000, 0) .saturating_add(Weight::from_parts(0, 5996)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -265,13 +263,13 @@ impl pallet_broker::WeightInfo for WeightInfo { /// The range of component `m` is `[1, 3]`. fn claim_revenue(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `652` + // Measured: `671` // Estimated: `6196 + m * (2520 ±0)` - // Minimum execution time: 66_560_000 picoseconds. - Weight::from_parts(66_057_752, 0) + // Minimum execution time: 83_730_000 picoseconds. + Weight::from_parts(83_014_268, 0) .saturating_add(Weight::from_parts(0, 6196)) - // Standard Error: 24_295 - .saturating_add(Weight::from_parts(1_482_574, 0).saturating_mul(m.into())) + // Standard Error: 32_427 + .saturating_add(Weight::from_parts(1_972_070, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -283,8 +281,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 44_871_000 picoseconds. - Weight::from_parts(45_320_000, 0) + // Minimum execution time: 51_241_000 picoseconds. + Weight::from_parts(51_481_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -297,8 +295,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `466` // Estimated: `3551` - // Minimum execution time: 51_721_000 picoseconds. - Weight::from_parts(69_191_000, 0) + // Minimum execution time: 60_091_000 picoseconds. + Weight::from_parts(69_601_000, 0) .saturating_add(Weight::from_parts(0, 3551)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -313,8 +311,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `463` // Estimated: `3533` - // Minimum execution time: 68_830_000 picoseconds. - Weight::from_parts(87_120_000, 0) + // Minimum execution time: 76_201_000 picoseconds. + Weight::from_parts(99_411_000, 0) .saturating_add(Weight::from_parts(0, 3533)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -329,10 +327,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn drop_history() -> Weight { // Proof Size summary in bytes: - // Measured: `960` + // Measured: `979` // Estimated: `3593` - // Minimum execution time: 83_850_000 picoseconds. - Weight::from_parts(138_931_000, 0) + // Minimum execution time: 93_970_000 picoseconds. + Weight::from_parts(110_981_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) @@ -345,8 +343,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `890` // Estimated: `4698` - // Minimum execution time: 49_270_000 picoseconds. - Weight::from_parts(57_281_000, 0) + // Minimum execution time: 59_681_000 picoseconds. + Weight::from_parts(61_900_000, 0) .saturating_add(Weight::from_parts(0, 4698)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -355,10 +353,6 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -366,13 +360,13 @@ impl pallet_broker::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 1000]`. fn request_core_count(_n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `74` - // Estimated: `3539` - // Minimum execution time: 23_590_000 picoseconds. - Weight::from_parts(24_449_052, 0) - .saturating_add(Weight::from_parts(0, 3539)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 25_870_000 picoseconds. + Weight::from_parts(26_991_865, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::CoreCountInbox` (r:1 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -381,11 +375,11 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266` // Estimated: `1487` - // Minimum execution time: 7_050_000 picoseconds. - Weight::from_parts(7_394_987, 0) + // Minimum execution time: 11_340_000 picoseconds. + Weight::from_parts(11_660_727, 0) .saturating_add(Weight::from_parts(0, 1487)) - // Standard Error: 11 - .saturating_add(Weight::from_parts(39, 0).saturating_mul(n.into())) + // Standard Error: 9 + .saturating_add(Weight::from_parts(25, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -397,10 +391,10 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn process_revenue() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `500` // Estimated: `6196` - // Minimum execution time: 55_480_000 picoseconds. - Weight::from_parts(56_840_000, 0) + // Minimum execution time: 66_040_000 picoseconds. + Weight::from_parts(66_940_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -411,20 +405,34 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`) /// Storage: `Broker::Leases` (r:1 w:1) /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(441), added: 936, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:100 w:200) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:101 w:100) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Broker::SaleInfo` (r:0 w:1) /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) - /// Storage: `Broker::Workplan` (r:0 w:65) + /// Storage: `Broker::Workplan` (r:0 w:1000) /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 1000]`. - fn rotate_sale(_n: u32, ) -> Weight { + fn rotate_sale(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `12554` - // Estimated: `13506` - // Minimum execution time: 126_081_000 picoseconds. - Weight::from_parts(127_414_317, 0) - .saturating_add(Weight::from_parts(0, 13506)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(70)) + // Measured: `32704` + // Estimated: `227970 + n * (206 ±13)` + // Minimum execution time: 31_430_000 picoseconds. + Weight::from_parts(2_878_405_756, 0) + .saturating_add(Weight::from_parts(0, 227970)) + // Standard Error: 180_740 + .saturating_add(Weight::from_parts(4_738_530, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(122)) + .saturating_add(T::DbWeight::get().writes(175)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) + .saturating_add(Weight::from_parts(0, 206).saturating_mul(n.into())) } /// Storage: `Broker::InstaPoolIo` (r:1 w:0) /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) @@ -434,8 +442,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3493` - // Minimum execution time: 7_350_000 picoseconds. - Weight::from_parts(7_580_000, 0) + // Minimum execution time: 9_210_000 picoseconds. + Weight::from_parts(9_700_000, 0) .saturating_add(Weight::from_parts(0, 3493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -448,45 +456,37 @@ impl pallet_broker::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn process_core_schedule() -> Weight { // Proof Size summary in bytes: - // Measured: `1321` - // Estimated: `4786` - // Minimum execution time: 38_320_000 picoseconds. - Weight::from_parts(38_780_000, 0) - .saturating_add(Weight::from_parts(0, 4786)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `1289` + // Estimated: `4754` + // Minimum execution time: 41_740_000 picoseconds. + Weight::from_parts(42_420_000, 0) + .saturating_add(Weight::from_parts(0, 4754)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn request_revenue_info_at() -> Weight { // Proof Size summary in bytes: - // Measured: `74` - // Estimated: `3539` - // Minimum execution time: 18_490_000 picoseconds. - Weight::from_parts(18_900_000, 0) - .saturating_add(Weight::from_parts(0, 3539)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 20_361_000 picoseconds. + Weight::from_parts(20_841_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Broker::CoreCountInbox` (r:0 w:1) /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -494,8 +494,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_180_000 picoseconds. - Weight::from_parts(2_320_000, 0) + // Minimum execution time: 2_980_000 picoseconds. + Weight::from_parts(3_120_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -505,8 +505,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_400_000 picoseconds. - Weight::from_parts(2_580_000, 0) + // Minimum execution time: 3_220_000 picoseconds. + Weight::from_parts(3_380_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -524,8 +524,8 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `408` // Estimated: `1893` - // Minimum execution time: 13_100_000 picoseconds. - Weight::from_parts(13_520_000, 0) + // Minimum execution time: 19_780_000 picoseconds. + Weight::from_parts(20_160_000, 0) .saturating_add(Weight::from_parts(0, 1893)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) @@ -536,20 +536,56 @@ impl pallet_broker::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `502` // Estimated: `1926` - // Minimum execution time: 7_960_000 picoseconds. - Weight::from_parts(8_210_000, 0) + // Minimum execution time: 11_190_000 picoseconds. + Weight::from_parts(11_451_000, 0) .saturating_add(Weight::from_parts(0, 1926)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Broker::SaleInfo` (r:1 w:1) + /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`) + /// Storage: `Broker::PotentialRenewals` (r:1 w:2) + /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) + /// Storage: `Broker::Configuration` (r:1 w:0) + /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`) + /// Storage: `Broker::Status` (r:1 w:0) + /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`) + /// Storage: `Broker::Workplan` (r:0 w:1) + /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`) + fn enable_auto_renew() -> Weight { + // Proof Size summary in bytes: + // Measured: `2895` + // Estimated: `6196` + // Minimum execution time: 177_001_000 picoseconds. + Weight::from_parts(187_351_000, 0) + .saturating_add(Weight::from_parts(0, 6196)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `Broker::AutoRenewals` (r:1 w:1) + /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`) + fn disable_auto_renew() -> Weight { + // Proof Size summary in bytes: + // Measured: `1307` + // Estimated: `2487` + // Minimum execution time: 23_470_000 picoseconds. + Weight::from_parts(24_930_000, 0) + .saturating_add(Weight::from_parts(0, 2487)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } /// Storage: `System::Account` (r:1 w:0) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn on_new_timeslice() -> Weight { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 5_450_000 picoseconds. - Weight::from_parts(5_570_000, 0) + // Minimum execution time: 6_990_000 picoseconds. + Weight::from_parts(7_230_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) } diff --git a/system-parachains/coretime-paseo/src/weights/pallet_collator_selection.rs b/system-parachains/coretime-paseo/src/weights/pallet_collator_selection.rs index 11d101042..a44480b3c 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_collator_selection.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_collator_selection.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_collator_selection` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -56,11 +56,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `197 + b * (79 ±0)` // Estimated: `1188 + b * (2555 ±0)` - // Minimum execution time: 13_750_000 picoseconds. - Weight::from_parts(10_287_377, 0) + // Minimum execution time: 18_010_000 picoseconds. + Weight::from_parts(13_894_417, 0) .saturating_add(Weight::from_parts(0, 1188)) - // Standard Error: 5_985 - .saturating_add(Weight::from_parts(3_786_275, 0).saturating_mul(b.into())) + // Standard Error: 7_754 + .saturating_add(Weight::from_parts(4_928_059, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2555).saturating_mul(b.into())) @@ -79,13 +79,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `795 + b * (32 ±0) + c * (53 ±0)` // Estimated: `6287 + b * (37 ±0) + c * (53 ±0)` - // Minimum execution time: 43_020_000 picoseconds. - Weight::from_parts(43_284_060, 0) + // Minimum execution time: 53_650_000 picoseconds. + Weight::from_parts(52_659_417, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 3_959 - .saturating_add(Weight::from_parts(37_028, 0).saturating_mul(b.into())) - // Standard Error: 750 - .saturating_add(Weight::from_parts(91_896, 0).saturating_mul(c.into())) + // Standard Error: 8_675 + .saturating_add(Weight::from_parts(89_999, 0).saturating_mul(b.into())) + // Standard Error: 1_644 + .saturating_add(Weight::from_parts(115_653, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(b.into())) @@ -100,11 +100,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `119 + b * (32 ±0)` // Estimated: `6287` - // Minimum execution time: 13_191_000 picoseconds. - Weight::from_parts(13_423_604, 0) + // Minimum execution time: 18_310_000 picoseconds. + Weight::from_parts(18_521_206, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 1_180 - .saturating_add(Weight::from_parts(72_525, 0).saturating_mul(b.into())) + // Standard Error: 1_129 + .saturating_add(Weight::from_parts(60_644, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -114,8 +114,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_900_000 picoseconds. - Weight::from_parts(5_130_000, 0) + // Minimum execution time: 6_170_000 picoseconds. + Weight::from_parts(6_410_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -133,13 +133,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0 + c * (182 ±0) + k * (116 ±0)` // Estimated: `6287 + c * (901 ±29) + k * (901 ±29)` - // Minimum execution time: 11_160_000 picoseconds. - Weight::from_parts(11_420_000, 0) + // Minimum execution time: 16_080_000 picoseconds. + Weight::from_parts(16_440_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 181_630 - .saturating_add(Weight::from_parts(6_002_954, 0).saturating_mul(c.into())) - // Standard Error: 181_630 - .saturating_add(Weight::from_parts(5_776_695, 0).saturating_mul(k.into())) + // Standard Error: 204_713 + .saturating_add(Weight::from_parts(6_807_363, 0).saturating_mul(c.into())) + // Standard Error: 204_713 + .saturating_add(Weight::from_parts(6_513_925, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -156,11 +156,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `320 + c * (49 ±0)` // Estimated: `6287` - // Minimum execution time: 30_120_000 picoseconds. - Weight::from_parts(30_914_629, 0) + // Minimum execution time: 37_610_000 picoseconds. + Weight::from_parts(38_135_427, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 747 - .saturating_add(Weight::from_parts(70_375, 0).saturating_mul(c.into())) + // Standard Error: 1_029 + .saturating_add(Weight::from_parts(80_220, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -179,11 +179,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `765 + c * (52 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 39_821_000 picoseconds. - Weight::from_parts(41_903_347, 0) + // Minimum execution time: 50_350_000 picoseconds. + Weight::from_parts(52_000_011, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 687 - .saturating_add(Weight::from_parts(98_450, 0).saturating_mul(c.into())) + // Standard Error: 747 + .saturating_add(Weight::from_parts(105_349, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -205,11 +205,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `905 + c * (53 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 57_401_000 picoseconds. - Weight::from_parts(59_561_036, 0) + // Minimum execution time: 73_720_000 picoseconds. + Weight::from_parts(75_465_224, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 2_229 - .saturating_add(Weight::from_parts(134_564, 0).saturating_mul(c.into())) + // Standard Error: 1_337 + .saturating_add(Weight::from_parts(120_045, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -225,29 +225,27 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `347 + c * (48 ±0)` // Estimated: `6287` - // Minimum execution time: 32_150_000 picoseconds. - Weight::from_parts(33_304_879, 0) + // Minimum execution time: 40_241_000 picoseconds. + Weight::from_parts(41_169_890, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 828 - .saturating_add(Weight::from_parts(86_292, 0).saturating_mul(c.into())) + // Standard Error: 917 + .saturating_add(Weight::from_parts(91_199, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn note_author() -> Weight { // Proof Size summary in bytes: // Measured: `155` // Estimated: `6196` - // Minimum execution time: 44_420_000 picoseconds. - Weight::from_parts(44_890_000, 0) + // Minimum execution time: 53_800_000 picoseconds. + Weight::from_parts(54_470_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) @@ -257,8 +255,6 @@ impl pallet_collator_selection::WeightInfo for WeightIn /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:97 w:97) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. @@ -267,14 +263,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2268 + c * (97 ±0) + r * (115 ±0)` // Estimated: `6287 + c * (2519 ±0) + r * (2603 ±0)` - // Minimum execution time: 21_780_000 picoseconds. - Weight::from_parts(22_210_000, 0) + // Minimum execution time: 28_630_000 picoseconds. + Weight::from_parts(28_790_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 320_591 - .saturating_add(Weight::from_parts(14_050_985, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(5)) + // Standard Error: 355_993 + .saturating_add(Weight::from_parts(16_373_083, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(r.into())) diff --git a/system-parachains/coretime-paseo/src/weights/pallet_message_queue.rs b/system-parachains/coretime-paseo/src/weights/pallet_message_queue.rs index fa04f95bb..bb4ce1a1c 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_message_queue.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_message_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_message_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `223` // Estimated: `6044` - // Minimum execution time: 14_121_000 picoseconds. - Weight::from_parts(14_551_000, 0) + // Minimum execution time: 19_090_000 picoseconds. + Weight::from_parts(19_490_000, 0) .saturating_add(Weight::from_parts(0, 6044)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `218` // Estimated: `6044` - // Minimum execution time: 12_300_000 picoseconds. - Weight::from_parts(12_721_000, 0) + // Minimum execution time: 17_320_000 picoseconds. + Weight::from_parts(17_840_000, 0) .saturating_add(Weight::from_parts(0, 6044)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -81,8 +81,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `6` // Estimated: `3517` - // Minimum execution time: 4_190_000 picoseconds. - Weight::from_parts(4_280_000, 0) + // Minimum execution time: 5_370_000 picoseconds. + Weight::from_parts(5_500_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -93,8 +93,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `72` // Estimated: `69050` - // Minimum execution time: 6_300_000 picoseconds. - Weight::from_parts(6_550_000, 0) + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_140_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -105,8 +105,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `72` // Estimated: `69050` - // Minimum execution time: 6_570_000 picoseconds. - Weight::from_parts(6_750_000, 0) + // Minimum execution time: 8_280_000 picoseconds. + Weight::from_parts(8_500_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -119,8 +119,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 155_631_000 picoseconds. - Weight::from_parts(156_451_000, 0) + // Minimum execution time: 156_011_000 picoseconds. + Weight::from_parts(156_921_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -132,8 +132,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `171` // Estimated: `3517` - // Minimum execution time: 8_190_000 picoseconds. - Weight::from_parts(8_510_000, 0) + // Minimum execution time: 12_280_000 picoseconds. + Weight::from_parts(12_701_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -146,8 +146,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69050` - // Minimum execution time: 52_981_000 picoseconds. - Weight::from_parts(53_590_000, 0) + // Minimum execution time: 61_510_000 picoseconds. + Weight::from_parts(61_891_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -160,8 +160,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69050` - // Minimum execution time: 70_340_000 picoseconds. - Weight::from_parts(71_050_000, 0) + // Minimum execution time: 82_760_000 picoseconds. + Weight::from_parts(83_470_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -174,8 +174,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69050` - // Minimum execution time: 104_350_000 picoseconds. - Weight::from_parts(105_701_000, 0) + // Minimum execution time: 115_531_000 picoseconds. + Weight::from_parts(116_540_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/coretime-paseo/src/weights/pallet_multisig.rs b/system-parachains/coretime-paseo/src/weights/pallet_multisig.rs index 18105a2ad..f5d19d235 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_multisig.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_multisig.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_multisig` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,11 +52,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_575_167, 0) + // Minimum execution time: 13_360_000 picoseconds. + Weight::from_parts(13_891_378, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1 - .saturating_add(Weight::from_parts(510, 0).saturating_mul(z.into())) + // Standard Error: 2 + .saturating_add(Weight::from_parts(469, 0).saturating_mul(z.into())) } /// Storage: `Multisig::Multisigs` (r:1 w:1) /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) @@ -66,13 +66,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `263 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 42_680_000 picoseconds. - Weight::from_parts(35_147_874, 0) + // Minimum execution time: 49_820_000 picoseconds. + Weight::from_parts(42_244_252, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 349 - .saturating_add(Weight::from_parts(81_434, 0).saturating_mul(s.into())) + // Standard Error: 344 + .saturating_add(Weight::from_parts(83_264, 0).saturating_mul(s.into())) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_472, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_468, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -84,13 +84,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `282` // Estimated: `6811` - // Minimum execution time: 27_161_000 picoseconds. - Weight::from_parts(19_703_120, 0) + // Minimum execution time: 31_401_000 picoseconds. + Weight::from_parts(24_520_793, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 260 - .saturating_add(Weight::from_parts(78_833, 0).saturating_mul(s.into())) + // Standard Error: 277 + .saturating_add(Weight::from_parts(74_950, 0).saturating_mul(s.into())) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_496, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_458, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -104,13 +104,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388 + s * (33 ±0)` // Estimated: `6811` - // Minimum execution time: 47_821_000 picoseconds. - Weight::from_parts(37_672_150, 0) + // Minimum execution time: 55_211_000 picoseconds. + Weight::from_parts(45_605_065, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 378 - .saturating_add(Weight::from_parts(104_915, 0).saturating_mul(s.into())) + // Standard Error: 345 + .saturating_add(Weight::from_parts(101_441, 0).saturating_mul(s.into())) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_525, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_490, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -121,11 +121,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `263 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 31_871_000 picoseconds. - Weight::from_parts(33_241_107, 0) + // Minimum execution time: 39_560_000 picoseconds. + Weight::from_parts(40_542_215, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 456 - .saturating_add(Weight::from_parts(85_264, 0).saturating_mul(s.into())) + // Standard Error: 470 + .saturating_add(Weight::from_parts(83_754, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -136,11 +136,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `282` // Estimated: `6811` - // Minimum execution time: 17_450_000 picoseconds. - Weight::from_parts(18_501_749, 0) + // Minimum execution time: 21_871_000 picoseconds. + Weight::from_parts(22_997_576, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 333 - .saturating_add(Weight::from_parts(80_028, 0).saturating_mul(s.into())) + // Standard Error: 340 + .saturating_add(Weight::from_parts(74_651, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,11 +151,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `454 + s * (1 ±0)` // Estimated: `6811` - // Minimum execution time: 32_230_000 picoseconds. - Weight::from_parts(33_660_144, 0) + // Minimum execution time: 40_551_000 picoseconds. + Weight::from_parts(41_824_815, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 507 - .saturating_add(Weight::from_parts(86_011, 0).saturating_mul(s.into())) + // Standard Error: 426 + .saturating_add(Weight::from_parts(77_606, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/coretime-paseo/src/weights/pallet_proxy.rs b/system-parachains/coretime-paseo/src/weights/pallet_proxy.rs index 505a7119a..fbb83de42 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_proxy.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_proxy.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_proxy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -54,11 +54,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 15_220_000 picoseconds. - Weight::from_parts(15_872_420, 0) + // Minimum execution time: 19_251_000 picoseconds. + Weight::from_parts(19_846_885, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 948 - .saturating_add(Weight::from_parts(33_485, 0).saturating_mul(p.into())) + // Standard Error: 1_075 + .saturating_add(Weight::from_parts(32_734, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `Proxy::Proxies` (r:1 w:0) @@ -73,13 +73,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `454 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 39_110_000 picoseconds. - Weight::from_parts(39_056_811, 0) + // Minimum execution time: 48_371_000 picoseconds. + Weight::from_parts(48_281_877, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_382 - .saturating_add(Weight::from_parts(154_030, 0).saturating_mul(a.into())) - // Standard Error: 1_428 - .saturating_add(Weight::from_parts(31_452, 0).saturating_mul(p.into())) + // Standard Error: 1_683 + .saturating_add(Weight::from_parts(161_837, 0).saturating_mul(a.into())) + // Standard Error: 1_738 + .saturating_add(Weight::from_parts(34_311, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -93,13 +93,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `369 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 26_900_000 picoseconds. - Weight::from_parts(27_442_296, 0) + // Minimum execution time: 33_681_000 picoseconds. + Weight::from_parts(34_391_857, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_247 - .saturating_add(Weight::from_parts(155_001, 0).saturating_mul(a.into())) - // Standard Error: 1_288 - .saturating_add(Weight::from_parts(5_806, 0).saturating_mul(p.into())) + // Standard Error: 1_693 + .saturating_add(Weight::from_parts(164_323, 0).saturating_mul(a.into())) + // Standard Error: 1_749 + .saturating_add(Weight::from_parts(6_344, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -113,13 +113,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `369 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 27_040_000 picoseconds. - Weight::from_parts(27_290_346, 0) + // Minimum execution time: 33_580_000 picoseconds. + Weight::from_parts(34_574_606, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_300 - .saturating_add(Weight::from_parts(156_027, 0).saturating_mul(a.into())) - // Standard Error: 1_343 - .saturating_add(Weight::from_parts(9_710, 0).saturating_mul(p.into())) + // Standard Error: 1_596 + .saturating_add(Weight::from_parts(160_710, 0).saturating_mul(a.into())) + // Standard Error: 1_649 + .saturating_add(Weight::from_parts(1_802, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -135,13 +135,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `386 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 35_350_000 picoseconds. - Weight::from_parts(35_288_702, 0) + // Minimum execution time: 43_420_000 picoseconds. + Weight::from_parts(43_570_010, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_279 - .saturating_add(Weight::from_parts(148_035, 0).saturating_mul(a.into())) - // Standard Error: 1_321 - .saturating_add(Weight::from_parts(37_904, 0).saturating_mul(p.into())) + // Standard Error: 1_608 + .saturating_add(Weight::from_parts(165_205, 0).saturating_mul(a.into())) + // Standard Error: 1_662 + .saturating_add(Weight::from_parts(39_160, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -152,11 +152,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 25_590_000 picoseconds. - Weight::from_parts(26_101_220, 0) + // Minimum execution time: 30_810_000 picoseconds. + Weight::from_parts(31_347_311, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 864 - .saturating_add(Weight::from_parts(39_811, 0).saturating_mul(p.into())) + // Standard Error: 759 + .saturating_add(Weight::from_parts(34_243, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -167,11 +167,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 25_400_000 picoseconds. - Weight::from_parts(26_030_034, 0) + // Minimum execution time: 30_671_000 picoseconds. + Weight::from_parts(31_667_335, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 979 - .saturating_add(Weight::from_parts(56_472, 0).saturating_mul(p.into())) + // Standard Error: 916 + .saturating_add(Weight::from_parts(42_653, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -182,11 +182,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 22_951_000 picoseconds. - Weight::from_parts(23_604_770, 0) + // Minimum execution time: 27_720_000 picoseconds. + Weight::from_parts(28_442_381, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 813 - .saturating_add(Weight::from_parts(35_473, 0).saturating_mul(p.into())) + // Standard Error: 789 + .saturating_add(Weight::from_parts(28_321, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -197,11 +197,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4706` - // Minimum execution time: 26_810_000 picoseconds. - Weight::from_parts(27_644_911, 0) + // Minimum execution time: 32_640_000 picoseconds. + Weight::from_parts(33_318_411, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 728 - .saturating_add(Weight::from_parts(5_498, 0).saturating_mul(p.into())) + // Standard Error: 715 + .saturating_add(Weight::from_parts(5_991, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -212,11 +212,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `164 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 23_790_000 picoseconds. - Weight::from_parts(24_487_221, 0) + // Minimum execution time: 28_720_000 picoseconds. + Weight::from_parts(29_422_765, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 962 - .saturating_add(Weight::from_parts(34_464, 0).saturating_mul(p.into())) + // Standard Error: 835 + .saturating_add(Weight::from_parts(29_392, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/coretime-paseo/src/weights/pallet_session.rs b/system-parachains/coretime-paseo/src/weights/pallet_session.rs index 0edc9359e..9df65bcea 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_session.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_session.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_session` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `298` // Estimated: `3763` - // Minimum execution time: 19_360_000 picoseconds. - Weight::from_parts(20_000_000, 0) + // Minimum execution time: 25_250_000 picoseconds. + Weight::from_parts(26_160_000, 0) .saturating_add(Weight::from_parts(0, 3763)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3745` - // Minimum execution time: 14_361_000 picoseconds. - Weight::from_parts(14_880_000, 0) + // Minimum execution time: 18_610_000 picoseconds. + Weight::from_parts(18_940_000, 0) .saturating_add(Weight::from_parts(0, 3745)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/coretime-paseo/src/weights/pallet_timestamp.rs b/system-parachains/coretime-paseo/src/weights/pallet_timestamp.rs index ff8e2fbe2..4d8cc7e02 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_timestamp.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_timestamp.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `49` // Estimated: `1493` - // Minimum execution time: 7_210_000 picoseconds. - Weight::from_parts(7_380_000, 0) + // Minimum execution time: 10_060_000 picoseconds. + Weight::from_parts(10_390_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `57` // Estimated: `0` - // Minimum execution time: 3_400_000 picoseconds. - Weight::from_parts(3_680_000, 0) + // Minimum execution time: 4_700_000 picoseconds. + Weight::from_parts(4_800_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/coretime-paseo/src/weights/pallet_utility.rs b/system-parachains/coretime-paseo/src/weights/pallet_utility.rs index 99b89caa2..92983e35d 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_utility.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_utility.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,18 +52,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_010_000 picoseconds. - Weight::from_parts(30_389_734, 0) + // Minimum execution time: 6_310_000 picoseconds. + Weight::from_parts(22_295_642, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_974 - .saturating_add(Weight::from_parts(3_287_461, 0).saturating_mul(c.into())) + // Standard Error: 1_829 + .saturating_add(Weight::from_parts(3_397_179, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_660_000 picoseconds. - Weight::from_parts(4_870_000, 0) + // Minimum execution time: 5_390_000 picoseconds. + Weight::from_parts(5_520_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -71,18 +71,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_990_000 picoseconds. - Weight::from_parts(10_736_086, 0) + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(11_217_191, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 647 - .saturating_add(Weight::from_parts(3_524_052, 0).saturating_mul(c.into())) + // Standard Error: 630 + .saturating_add(Weight::from_parts(3_670_833, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_930_000 picoseconds. - Weight::from_parts(7_110_000, 0) + // Minimum execution time: 8_070_000 picoseconds. + Weight::from_parts(8_370_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -90,10 +90,10 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_920_000 picoseconds. - Weight::from_parts(8_177_438, 0) + // Minimum execution time: 6_070_000 picoseconds. + Weight::from_parts(8_984_029, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 733 - .saturating_add(Weight::from_parts(3_300_112, 0).saturating_mul(c.into())) + // Standard Error: 592 + .saturating_add(Weight::from_parts(3_422_511, 0).saturating_mul(c.into())) } } diff --git a/system-parachains/coretime-paseo/src/weights/pallet_xcm.rs b/system-parachains/coretime-paseo/src/weights/pallet_xcm.rs index 846c39b91..d2f88639c 100644 --- a/system-parachains/coretime-paseo/src/weights/pallet_xcm.rs +++ b/system-parachains/coretime-paseo/src/weights/pallet_xcm.rs @@ -17,24 +17,21 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-02-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: -// ./target/production/paseo-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --chain=./coretime-paseo-chain-spec.json -// --steps=50 -// --repeat=20 +// --runtime=target/production/wbuild/coretime-paseo-runtime/coretime_paseo_runtime.wasm // --pallet=pallet_xcm -// --extrinsic=* -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./coretime-paseo-weights/ -// --header=./file_header.txt +// --extrinsic= +// --output=system-parachains/coretime/coretime-paseo/src/weights/ +// --header=.github/scripts/cmd/file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -51,34 +48,28 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `74` - // Estimated: `3539` - // Minimum execution time: 24_701_000 picoseconds. - Weight::from_parts(25_710_000, 0) - .saturating_add(Weight::from_parts(0, 3539)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 27_430_000 picoseconds. + Weight::from_parts(28_050_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0) /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -87,13 +78,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `106` + // Measured: `74` // Estimated: `3593` - // Minimum execution time: 99_940_000 picoseconds. - Weight::from_parts(101_560_000, 0) + // Minimum execution time: 110_581_000 picoseconds. + Weight::from_parts(112_051_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -115,13 +106,16 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `0` - // Minimum execution time: 10_900_000 picoseconds. - Weight::from_parts(11_220_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Estimated: `1485` + // Minimum execution time: 14_150_000 picoseconds. + Weight::from_parts(14_501_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -129,21 +123,18 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_560_000 picoseconds. - Weight::from_parts(7_650_000, 0) + // Minimum execution time: 9_110_000 picoseconds. + Weight::from_parts(9_400_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_530_000 picoseconds. - Weight::from_parts(2_650_000, 0) + // Minimum execution time: 3_060_000 picoseconds. + Weight::from_parts(3_240_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -153,10 +144,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -165,13 +152,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `74` - // Estimated: `3539` - // Minimum execution time: 31_600_000 picoseconds. - Weight::from_parts(32_120_000, 0) - .saturating_add(Weight::from_parts(0, 3539)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 35_100_000 picoseconds. + Weight::from_parts(35_461_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -179,10 +166,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -191,13 +174,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `292` - // Estimated: `3757` - // Minimum execution time: 35_460_000 picoseconds. - Weight::from_parts(36_360_000, 0) - .saturating_add(Weight::from_parts(0, 3757)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `136` + // Estimated: `3601` + // Minimum execution time: 38_441_000 picoseconds. + Weight::from_parts(38_921_000, 0) + .saturating_add(Weight::from_parts(0, 3601)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -205,8 +188,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_520_000 picoseconds. - Weight::from_parts(2_670_000, 0) + // Minimum execution time: 3_160_000 picoseconds. + Weight::from_parts(3_260_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -214,11 +197,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `89` - // Estimated: `13454` - // Minimum execution time: 20_850_000 picoseconds. - Weight::from_parts(21_330_000, 0) - .saturating_add(Weight::from_parts(0, 13454)) + // Measured: `23` + // Estimated: `13388` + // Minimum execution time: 21_630_000 picoseconds. + Weight::from_parts(21_991_000, 0) + .saturating_add(Weight::from_parts(0, 13388)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -226,11 +209,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `93` - // Estimated: `13458` - // Minimum execution time: 21_050_000 picoseconds. - Weight::from_parts(21_400_000, 0) - .saturating_add(Weight::from_parts(0, 13458)) + // Measured: `27` + // Estimated: `13392` + // Minimum execution time: 21_830_000 picoseconds. + Weight::from_parts(22_170_000, 0) + .saturating_add(Weight::from_parts(0, 13392)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -238,11 +221,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `106` - // Estimated: `15946` - // Minimum execution time: 22_990_000 picoseconds. - Weight::from_parts(23_360_000, 0) - .saturating_add(Weight::from_parts(0, 15946)) + // Measured: `40` + // Estimated: `15880` + // Minimum execution time: 23_841_000 picoseconds. + Weight::from_parts(24_380_000, 0) + .saturating_add(Weight::from_parts(0, 15880)) .saturating_add(T::DbWeight::get().reads(6)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) @@ -251,44 +234,40 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `142` - // Estimated: `6082` - // Minimum execution time: 32_260_000 picoseconds. - Weight::from_parts(33_041_000, 0) - .saturating_add(Weight::from_parts(0, 6082)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `76` + // Estimated: `6016` + // Minimum execution time: 35_320_000 picoseconds. + Weight::from_parts(35_891_000, 0) + .saturating_add(Weight::from_parts(0, 6016)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `10993` - // Minimum execution time: 14_221_000 picoseconds. - Weight::from_parts(14_600_000, 0) - .saturating_add(Weight::from_parts(0, 10993)) + // Measured: `37` + // Estimated: `10927` + // Minimum execution time: 15_630_000 picoseconds. + Weight::from_parts(16_071_000, 0) + .saturating_add(Weight::from_parts(0, 10927)) .saturating_add(T::DbWeight::get().reads(4)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `100` - // Estimated: `13465` - // Minimum execution time: 21_541_000 picoseconds. - Weight::from_parts(22_180_000, 0) - .saturating_add(Weight::from_parts(0, 13465)) + // Measured: `34` + // Estimated: `13399` + // Minimum execution time: 22_120_000 picoseconds. + Weight::from_parts(22_451_000, 0) + .saturating_add(Weight::from_parts(0, 13399)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -298,23 +277,19 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `142` - // Estimated: `13507` - // Minimum execution time: 42_870_000 picoseconds. - Weight::from_parts(43_560_000, 0) - .saturating_add(Weight::from_parts(0, 13507)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `76` + // Estimated: `13441` + // Minimum execution time: 46_960_000 picoseconds. + Weight::from_parts(47_750_000, 0) + .saturating_add(Weight::from_parts(0, 13441)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -322,11 +297,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn new_query() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `1517` - // Minimum execution time: 4_510_000 picoseconds. - Weight::from_parts(4_700_000, 0) - .saturating_add(Weight::from_parts(0, 1517)) + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 3_450_000 picoseconds. + Weight::from_parts(3_560_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -334,24 +309,26 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn take_response() -> Weight { // Proof Size summary in bytes: - // Measured: `7669` - // Estimated: `11134` - // Minimum execution time: 31_020_000 picoseconds. - Weight::from_parts(31_550_000, 0) - .saturating_add(Weight::from_parts(0, 11134)) + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 30_781_000 picoseconds. + Weight::from_parts(31_650_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0) + /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `90` - // Estimated: `3555` - // Minimum execution time: 43_620_000 picoseconds. - Weight::from_parts(44_320_000, 0) - .saturating_add(Weight::from_parts(0, 3555)) - .saturating_add(T::DbWeight::get().reads(1)) + // Measured: `24` + // Estimated: `3489` + // Minimum execution time: 49_560_000 picoseconds. + Weight::from_parts(50_251_000, 0) + .saturating_add(Weight::from_parts(0, 3489)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs index 020b2a85b..a9c1177aa 100644 --- a/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +++ b/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::fungible` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `3593` - // Minimum execution time: 32_431_000 picoseconds. - Weight::from_parts(32_780_000, 0) + // Minimum execution time: 37_830_000 picoseconds. + Weight::from_parts(38_450_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `153` // Estimated: `6196` - // Minimum execution time: 44_380_000 picoseconds. - Weight::from_parts(44_811_000, 0) + // Minimum execution time: 54_540_000 picoseconds. + Weight::from_parts(55_040_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,23 +79,19 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn transfer_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `259` + // Measured: `227` // Estimated: `8799` - // Minimum execution time: 95_571_000 picoseconds. - Weight::from_parts(96_700_000, 0) + // Minimum execution time: 108_361_000 picoseconds. + Weight::from_parts(109_561_000, 0) .saturating_add(Weight::from_parts(0, 8799)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -113,10 +109,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -125,20 +117,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_reserve_withdraw() -> Weight { // Proof Size summary in bytes: - // Measured: `207` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 60_110_000 picoseconds. - Weight::from_parts(60_870_000, 0) + // Minimum execution time: 68_261_000 picoseconds. + Weight::from_parts(69_101_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn receive_teleported_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_850_000 picoseconds. - Weight::from_parts(2_960_000, 0) + // Minimum execution time: 3_460_000 picoseconds. + Weight::from_parts(3_670_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `System::Account` (r:1 w:1) @@ -147,8 +139,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 25_190_000 picoseconds. - Weight::from_parts(25_680_000, 0) + // Minimum execution time: 29_820_000 picoseconds. + Weight::from_parts(30_101_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -159,10 +151,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -171,13 +159,13 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn deposit_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `158` + // Measured: `126` // Estimated: `6196` - // Minimum execution time: 69_170_000 picoseconds. - Weight::from_parts(70_310_000, 0) + // Minimum execution time: 78_421_000 picoseconds. + Weight::from_parts(79_590_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -185,10 +173,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -197,12 +181,12 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_teleport() -> Weight { // Proof Size summary in bytes: - // Measured: `106` + // Measured: `74` // Estimated: `3593` - // Minimum execution time: 32_650_000 picoseconds. - Weight::from_parts(33_411_000, 0) + // Minimum execution time: 37_170_000 picoseconds. + Weight::from_parts(37_830_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index dcdd63ef8..171e6d49d 100644 --- a/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/system-parachains/coretime-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::generic` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./coretime-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,10 +53,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -65,87 +61,87 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_holding() -> Weight { // Proof Size summary in bytes: - // Measured: `207` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 58_350_000 picoseconds. - Weight::from_parts(59_611_000, 0) + // Minimum execution time: 67_870_000 picoseconds. + Weight::from_parts(68_970_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn buy_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 780_000 picoseconds. - Weight::from_parts(810_000, 0) + // Minimum execution time: 880_000 picoseconds. + Weight::from_parts(1_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::Queries` (r:1 w:0) /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn query_response() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `3497` - // Minimum execution time: 7_230_000 picoseconds. - Weight::from_parts(7_531_000, 0) - .saturating_add(Weight::from_parts(0, 3497)) + // Measured: `0` + // Estimated: `3465` + // Minimum execution time: 6_810_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(Weight::from_parts(0, 3465)) .saturating_add(T::DbWeight::get().reads(1)) } pub(crate) fn transact() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_200_000 picoseconds. - Weight::from_parts(7_480_000, 0) + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(9_200_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn refund_surplus() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_630_000 picoseconds. - Weight::from_parts(1_720_000, 0) + // Minimum execution time: 1_870_000 picoseconds. + Weight::from_parts(1_950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_error_handler() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 740_000 picoseconds. - Weight::from_parts(810_000, 0) + // Minimum execution time: 900_000 picoseconds. + Weight::from_parts(1_010_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_appendix() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 780_000 picoseconds. - Weight::from_parts(840_000, 0) + // Minimum execution time: 920_000 picoseconds. + Weight::from_parts(1_000_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 720_000 picoseconds. - Weight::from_parts(770_000, 0) + // Minimum execution time: 830_000 picoseconds. + Weight::from_parts(950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn descend_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 770_000 picoseconds. - Weight::from_parts(830_000, 0) + // Minimum execution time: 940_000 picoseconds. + Weight::from_parts(1_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 740_000 picoseconds. - Weight::from_parts(810_000, 0) + // Minimum execution time: 800_000 picoseconds. + Weight::from_parts(950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -154,10 +150,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -166,23 +158,23 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_error() -> Weight { // Proof Size summary in bytes: - // Measured: `207` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 54_220_000 picoseconds. - Weight::from_parts(54_680_000, 0) + // Minimum execution time: 63_271_000 picoseconds. + Weight::from_parts(64_050_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn claim_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `90` - // Estimated: `3555` - // Minimum execution time: 10_700_000 picoseconds. - Weight::from_parts(10_910_000, 0) - .saturating_add(Weight::from_parts(0, 3555)) + // Measured: `24` + // Estimated: `3489` + // Minimum execution time: 10_860_000 picoseconds. + Weight::from_parts(11_180_000, 0) + .saturating_add(Weight::from_parts(0, 3489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -190,8 +182,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 720_000 picoseconds. - Weight::from_parts(800_000, 0) + // Minimum execution time: 910_000 picoseconds. + Weight::from_parts(980_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1) @@ -200,23 +192,19 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn subscribe_version() -> Weight { // Proof Size summary in bytes: - // Measured: `74` - // Estimated: `3539` - // Minimum execution time: 25_341_000 picoseconds. - Weight::from_parts(25_811_000, 0) - .saturating_add(Weight::from_parts(0, 3539)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `42` + // Estimated: `3507` + // Minimum execution time: 28_180_000 picoseconds. + Weight::from_parts(28_770_000, 0) + .saturating_add(Weight::from_parts(0, 3507)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -224,8 +212,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_080_000 picoseconds. - Weight::from_parts(3_260_000, 0) + // Minimum execution time: 3_500_000 picoseconds. + Weight::from_parts(3_570_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -233,40 +221,40 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_270_000 picoseconds. - Weight::from_parts(1_340_000, 0) + // Minimum execution time: 1_450_000 picoseconds. + Weight::from_parts(1_590_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 920_000 picoseconds. - Weight::from_parts(970_000, 0) + // Minimum execution time: 1_030_000 picoseconds. + Weight::from_parts(1_110_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 720_000 picoseconds. - Weight::from_parts(790_000, 0) + // Minimum execution time: 840_000 picoseconds. + Weight::from_parts(950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 740_000 picoseconds. - Weight::from_parts(770_000, 0) + // Minimum execution time: 870_000 picoseconds. + Weight::from_parts(950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 930_000 picoseconds. - Weight::from_parts(1_010_000, 0) + // Minimum execution time: 1_120_000 picoseconds. + Weight::from_parts(1_180_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -275,10 +263,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -287,20 +271,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn query_pallet() -> Weight { // Proof Size summary in bytes: - // Measured: `207` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 58_821_000 picoseconds. - Weight::from_parts(59_690_000, 0) + // Minimum execution time: 68_021_000 picoseconds. + Weight::from_parts(68_631_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn expect_pallet() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_890_000 picoseconds. - Weight::from_parts(3_970_000, 0) + // Minimum execution time: 4_480_000 picoseconds. + Weight::from_parts(4_730_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -309,10 +293,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -321,52 +301,52 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_transact_status() -> Weight { // Proof Size summary in bytes: - // Measured: `207` + // Measured: `175` // Estimated: `6196` - // Minimum execution time: 54_440_000 picoseconds. - Weight::from_parts(55_121_000, 0) + // Minimum execution time: 62_470_000 picoseconds. + Weight::from_parts(63_590_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn clear_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 800_000 picoseconds. - Weight::from_parts(870_000, 0) + // Minimum execution time: 950_000 picoseconds. + Weight::from_parts(1_050_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 730_000 picoseconds. - Weight::from_parts(780_000, 0) + // Minimum execution time: 850_000 picoseconds. + Weight::from_parts(930_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 730_000 picoseconds. - Weight::from_parts(770_000, 0) + // Minimum execution time: 850_000 picoseconds. + Weight::from_parts(940_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_fees_mode() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 730_000 picoseconds. - Weight::from_parts(780_000, 0) + // Minimum execution time: 830_000 picoseconds. + Weight::from_parts(940_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn unpaid_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 800_000 picoseconds. - Weight::from_parts(850_000, 0) + // Minimum execution time: 900_000 picoseconds. + Weight::from_parts(970_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/coretime-paseo/src/xcm_config.rs b/system-parachains/coretime-paseo/src/xcm_config.rs index 151b6c333..cc3cd9044 100644 --- a/system-parachains/coretime-paseo/src/xcm_config.rs +++ b/system-parachains/coretime-paseo/src/xcm_config.rs @@ -40,11 +40,11 @@ use xcm_builder::{ AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, DenyReserveTransferToRelayChain, DenyThenTry, DescribeAllTerminal, DescribeFamily, DescribeTerminus, EnsureXcmOrigin, FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsConcrete, - NonFungibleAdapter, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, + NonFungibleAdapter, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, SendXcmFeeToAccount, SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, - XcmFeeManagerFromComponents, XcmFeeToAccount, + XcmFeeManagerFromComponents, }; use xcm_executor::{traits::ConvertLocation, XcmExecutor}; @@ -212,7 +212,7 @@ pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { type RuntimeCall = RuntimeCall; type XcmSender = XcmRouter; - type XcmRecorder = (); + type XcmRecorder = PolkadotXcm; type AssetTransactor = AssetTransactors; type OriginConverter = XcmOriginToTransactDispatchOrigin; // Coretime chain does not recognize a reserve location for any asset. Users must teleport DOT @@ -244,7 +244,7 @@ impl xcm_executor::Config for XcmConfig { type AssetExchanger = (); type FeeManager = XcmFeeManagerFromComponents< WaivedLocations, - XcmFeeToAccount, + SendXcmFeeToAccount, >; type MessageExporter = (); type UniversalAliases = Nothing; From 0ab218e4d08607d6453ee492562344ae138b7a8b Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 11 Feb 2025 18:06:43 +0100 Subject: [PATCH 06/14] [WIP] people --- Cargo.lock | 1 + system-parachains/people-paseo/Cargo.toml | 3 + .../src/genesis_config_presets.rs | 1 + system-parachains/people-paseo/src/lib.rs | 14 +- system-parachains/people-paseo/src/tests.rs | 133 ++++++++++++ .../cumulus_pallet_parachain_system.rs | 10 +- .../src/weights/cumulus_pallet_xcmp_queue.rs | 30 +-- .../people-paseo/src/weights/frame_system.rs | 62 +++--- .../src/weights/pallet_balances.rs | 57 +++-- .../src/weights/pallet_collator_selection.rs | 101 ++++----- .../src/weights/pallet_identity.rs | 166 +++++++------- .../src/weights/pallet_message_queue.rs | 42 ++-- .../src/weights/pallet_multisig.rs | 62 +++--- .../people-paseo/src/weights/pallet_proxy.rs | 98 ++++----- .../src/weights/pallet_session.rs | 10 +- .../src/weights/pallet_timestamp.rs | 10 +- .../src/weights/pallet_utility.rs | 34 +-- .../people-paseo/src/weights/pallet_xcm.rs | 205 ++++++++---------- .../xcm/pallet_xcm_benchmarks_fungible.rs | 78 +++---- .../xcm/pallet_xcm_benchmarks_generic.rs | 180 +++++++-------- .../people-paseo/src/xcm_config.rs | 12 +- 21 files changed, 692 insertions(+), 617 deletions(-) create mode 100644 system-parachains/people-paseo/src/tests.rs diff --git a/Cargo.lock b/Cargo.lock index 90878a7ee..90229cdc9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8023,6 +8023,7 @@ dependencies = [ "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", "paseo-runtime-constants", "polkadot-parachain-primitives", diff --git a/system-parachains/people-paseo/Cargo.toml b/system-parachains/people-paseo/Cargo.toml index f2734aadd..94bda30b1 100644 --- a/system-parachains/people-paseo/Cargo.toml +++ b/system-parachains/people-paseo/Cargo.toml @@ -78,6 +78,9 @@ parachain-info = { workspace = true } parachains-common = { workspace = true } system-parachains-constants = { workspace = true } +[dev-dependencies] +parachains-runtimes-test-utils = { workspace = true } + [build-dependencies] substrate-wasm-builder = { optional = true, workspace = true } diff --git a/system-parachains/people-paseo/src/genesis_config_presets.rs b/system-parachains/people-paseo/src/genesis_config_presets.rs index 978e48e32..98c7971b5 100644 --- a/system-parachains/people-paseo/src/genesis_config_presets.rs +++ b/system-parachains/people-paseo/src/genesis_config_presets.rs @@ -57,6 +57,7 @@ fn people_paseo_genesis( ) }) .collect(), + ..Default::default() }, "sudo": { "key": Some(get_account_id_from_seed::("Alice")) diff --git a/system-parachains/people-paseo/src/lib.rs b/system-parachains/people-paseo/src/lib.rs index 1c02e1a4e..77fd74cbf 100644 --- a/system-parachains/people-paseo/src/lib.rs +++ b/system-parachains/people-paseo/src/lib.rs @@ -21,6 +21,8 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); // Genesis preset configurations. pub mod genesis_config_presets; pub mod people; +#[cfg(test)] +mod tests; mod weights; pub mod xcm_config; @@ -147,7 +149,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("people-paseo"), impl_name: create_runtime_str!("people-paseo"), authoring_version: 1, - spec_version: 1_003_003, + spec_version: 1_004_000, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 0, @@ -454,7 +456,11 @@ impl InstanceFilter for ProxyType { c, RuntimeCall::Balances { .. } | // `request_judgement` puts up a deposit to transfer to a registrar - RuntimeCall::Identity(pallet_identity::Call::request_judgement { .. }) + RuntimeCall::Identity(pallet_identity::Call::request_judgement { .. }) | + // `set_subs` and `add_sub` will take and repatriate deposits from the proxied + // account, should not be allowed. + RuntimeCall::Identity(pallet_identity::Call::add_sub { .. }) | + RuntimeCall::Identity(pallet_identity::Call::set_subs { .. }) ), ProxyType::CancelProxy => matches!( c, @@ -756,7 +762,8 @@ impl_runtime_apis! { } fn query_weight_to_asset_fee(weight: Weight, asset: VersionedAssetId) -> Result { - match asset.try_as::() { + let latest_asset_id: Result = asset.clone().try_into(); + match latest_asset_id { Ok(asset_id) if asset_id.0 == xcm_config::RelayLocation::get() => { // for native token Ok(WeightToFee::weight_to_fee(&weight)) @@ -857,6 +864,7 @@ impl_runtime_apis! { config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; + use frame_support::traits::WhitelistedStorageKeys; use sp_storage::TrackedStorageKey; use frame_system_benchmarking::Pallet as SystemBench; diff --git a/system-parachains/people-paseo/src/tests.rs b/system-parachains/people-paseo/src/tests.rs new file mode 100644 index 000000000..512b79fea --- /dev/null +++ b/system-parachains/people-paseo/src/tests.rs @@ -0,0 +1,133 @@ +// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md +// for a list of specific contributors. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use crate::{xcm_config::LocationToAccountId, Block, Runtime, RuntimeCall, RuntimeOrigin}; +use cumulus_primitives_core::relay_chain::AccountId; +use sp_core::crypto::Ss58Codec; +use xcm::prelude::*; +use xcm_runtime_apis::conversions::LocationToAccountHelper; + +const ALICE: [u8; 32] = [1u8; 32]; + +#[test] +fn location_conversion_works() { + let alice_32 = AccountId32 { network: None, id: AccountId::from(ALICE).into() }; + let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; + + // the purpose of hardcoded values is to catch an unintended location conversion logic change. + struct TestCase { + description: &'static str, + location: Location, + expected_account_id_str: &'static str, + } + + let test_cases = vec![ + // DescribeTerminus + TestCase { + description: "DescribeTerminus Parent", + location: Location::new(1, Here), + expected_account_id_str: "5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG", + }, + TestCase { + description: "DescribeTerminus Sibling", + location: Location::new(1, [Parachain(1111)]), + expected_account_id_str: "5Eg2fnssmmJnF3z1iZ1NouAuzciDaaDQH7qURAy3w15jULDk", + }, + // DescribePalletTerminal + TestCase { + description: "DescribePalletTerminal Parent", + location: Location::new(1, [PalletInstance(50)]), + expected_account_id_str: "5CnwemvaAXkWFVwibiCvf2EjqwiqBi29S5cLLydZLEaEw6jZ", + }, + TestCase { + description: "DescribePalletTerminal Sibling", + location: Location::new(1, [Parachain(1111), PalletInstance(50)]), + expected_account_id_str: "5GFBgPjpEQPdaxEnFirUoa51u5erVx84twYxJVuBRAT2UP2g", + }, + // DescribeAccountId32Terminal + TestCase { + description: "DescribeAccountId32Terminal Parent", + location: Location::new(1, [alice_32]), + expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4", + }, + TestCase { + description: "DescribeAccountId32Terminal Sibling", + location: Location::new(1, [Parachain(1111), alice_32]), + expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg", + }, + // DescribeAccountKey20Terminal + TestCase { + description: "DescribeAccountKey20Terminal Parent", + location: Location::new(1, [bob_20]), + expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n", + }, + TestCase { + description: "DescribeAccountKey20Terminal Sibling", + location: Location::new(1, [Parachain(1111), bob_20]), + expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp", + }, + // DescribeTreasuryVoiceTerminal + TestCase { + description: "DescribeTreasuryVoiceTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Treasury, part: BodyPart::Voice }]), + expected_account_id_str: "5CUjnE2vgcUCuhxPwFoQ5r7p1DkhujgvMNDHaF2bLqRp4D5F", + }, + TestCase { + description: "DescribeTreasuryVoiceTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Treasury, part: BodyPart::Voice }], + ), + expected_account_id_str: "5G6TDwaVgbWmhqRUKjBhRRnH4ry9L9cjRymUEmiRsLbSE4gB", + }, + // DescribeBodyTerminal + TestCase { + description: "DescribeBodyTerminal Parent", + location: Location::new(1, [Plurality { id: BodyId::Unit, part: BodyPart::Voice }]), + expected_account_id_str: "5EBRMTBkDisEXsaN283SRbzx9Xf2PXwUxxFCJohSGo4jYe6B", + }, + TestCase { + description: "DescribeBodyTerminal Sibling", + location: Location::new( + 1, + [Parachain(1111), Plurality { id: BodyId::Unit, part: BodyPart::Voice }], + ), + expected_account_id_str: "5DBoExvojy8tYnHgLL97phNH975CyT45PWTZEeGoBZfAyRMH", + }, + ]; + + for tc in test_cases { + let expected = + AccountId::from_string(tc.expected_account_id_str).expect("Invalid AccountId string"); + + let got = LocationToAccountHelper::::convert_location( + tc.location.into(), + ) + .unwrap(); + + assert_eq!(got, expected, "{}", tc.description); + } +} + +#[test] +fn xcm_payment_api_works() { + parachains_runtimes_test_utils::test_cases::xcm_payment_api_with_native_token_works::< + Runtime, + RuntimeCall, + RuntimeOrigin, + Block, + >(); +} diff --git a/system-parachains/people-paseo/src/weights/cumulus_pallet_parachain_system.rs b/system-parachains/people-paseo/src/weights/cumulus_pallet_parachain_system.rs index 9daea1328..43a1fe142 100644 --- a/system-parachains/people-paseo/src/weights/cumulus_pallet_parachain_system.rs +++ b/system-parachains/people-paseo/src/weights/cumulus_pallet_parachain_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `cumulus_pallet_parachain_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -62,11 +62,11 @@ impl cumulus_pallet_parachain_system::WeightInfo for We // Proof Size summary in bytes: // Measured: `12` // Estimated: `3517` - // Minimum execution time: 2_150_000 picoseconds. - Weight::from_parts(2_190_000, 0) + // Minimum execution time: 2_870_000 picoseconds. + Weight::from_parts(3_000_000, 0) .saturating_add(Weight::from_parts(0, 3517)) - // Standard Error: 21_539 - .saturating_add(Weight::from_parts(185_199_324, 0).saturating_mul(n.into())) + // Standard Error: 20_473 + .saturating_add(Weight::from_parts(185_383_262, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) diff --git a/system-parachains/people-paseo/src/weights/cumulus_pallet_xcmp_queue.rs b/system-parachains/people-paseo/src/weights/cumulus_pallet_xcmp_queue.rs index 07350c51f..793d66d1a 100644 --- a/system-parachains/people-paseo/src/weights/cumulus_pallet_xcmp_queue.rs +++ b/system-parachains/people-paseo/src/weights/cumulus_pallet_xcmp_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `cumulus_pallet_xcmp_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `76` // Estimated: `1497` - // Minimum execution time: 5_060_000 picoseconds. - Weight::from_parts(5_210_000, 0) + // Minimum execution time: 8_200_000 picoseconds. + Weight::from_parts(8_490_000, 0) .saturating_add(Weight::from_parts(0, 1497)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -73,8 +73,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `82` // Estimated: `5487` - // Minimum execution time: 14_010_000 picoseconds. - Weight::from_parts(14_420_000, 0) + // Minimum execution time: 18_480_000 picoseconds. + Weight::from_parts(18_810_000, 0) .saturating_add(Weight::from_parts(0, 5487)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -85,8 +85,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `76` // Estimated: `2767` - // Minimum execution time: 3_030_000 picoseconds. - Weight::from_parts(3_180_000, 0) + // Minimum execution time: 5_640_000 picoseconds. + Weight::from_parts(5_880_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -97,8 +97,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `111` // Estimated: `2767` - // Minimum execution time: 4_210_000 picoseconds. - Weight::from_parts(4_310_000, 0) + // Minimum execution time: 7_160_000 picoseconds. + Weight::from_parts(7_330_000, 0) .saturating_add(Weight::from_parts(0, 2767)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,8 +107,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_480_000 picoseconds. - Weight::from_parts(7_570_000, 0) + // Minimum execution time: 8_290_000 picoseconds. + Weight::from_parts(8_400_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1) @@ -129,8 +129,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65711` // Estimated: `69176` - // Minimum execution time: 108_881_000 picoseconds. - Weight::from_parts(109_741_000, 0) + // Minimum execution time: 117_151_000 picoseconds. + Weight::from_parts(118_091_000, 0) .saturating_add(Weight::from_parts(0, 69176)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -143,8 +143,8 @@ impl cumulus_pallet_xcmp_queue::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `65710` // Estimated: `69175` - // Minimum execution time: 49_880_000 picoseconds. - Weight::from_parts(50_571_000, 0) + // Minimum execution time: 60_560_000 picoseconds. + Weight::from_parts(61_150_000, 0) .saturating_add(Weight::from_parts(0, 69175)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/people-paseo/src/weights/frame_system.rs b/system-parachains/people-paseo/src/weights/frame_system.rs index 5ac34e1ab..e844dc486 100644 --- a/system-parachains/people-paseo/src/weights/frame_system.rs +++ b/system-parachains/people-paseo/src/weights/frame_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,22 +52,22 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_140_000 picoseconds. - Weight::from_parts(2_220_000, 0) + // Minimum execution time: 2_710_000 picoseconds. + Weight::from_parts(2_800_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 - .saturating_add(Weight::from_parts(385, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(371, 0).saturating_mul(b.into())) } /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_690_000 picoseconds. - Weight::from_parts(5_930_000, 0) + // Minimum execution time: 7_030_000 picoseconds. + Weight::from_parts(7_181_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3 - .saturating_add(Weight::from_parts(1_798, 0).saturating_mul(b.into())) + // Standard Error: 2 + .saturating_add(Weight::from_parts(1_709, 0).saturating_mul(b.into())) } /// Storage: `System::Digest` (r:1 w:1) /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -77,8 +77,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_680_000 picoseconds. - Weight::from_parts(3_890_000, 0) + // Minimum execution time: 4_790_000 picoseconds. + Weight::from_parts(5_040_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -99,8 +99,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127` // Estimated: `1612` - // Minimum execution time: 118_417_397_000 picoseconds. - Weight::from_parts(121_170_417_000, 0) + // Minimum execution time: 112_862_305_000 picoseconds. + Weight::from_parts(116_362_469_000, 0) .saturating_add(Weight::from_parts(0, 1612)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -112,11 +112,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_200_000 picoseconds. - Weight::from_parts(2_280_000, 0) + // Minimum execution time: 2_620_000 picoseconds. + Weight::from_parts(2_750_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_811 - .saturating_add(Weight::from_parts(856_674, 0).saturating_mul(i.into())) + // Standard Error: 2_854 + .saturating_add(Weight::from_parts(875_664, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -126,11 +126,11 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_191_000 picoseconds. - Weight::from_parts(2_290_000, 0) + // Minimum execution time: 2_710_000 picoseconds. + Weight::from_parts(2_770_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 1_124 - .saturating_add(Weight::from_parts(657_582, 0).saturating_mul(i.into())) + // Standard Error: 1_129 + .saturating_add(Weight::from_parts(659_470, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -138,13 +138,13 @@ impl frame_system::WeightInfo for WeightInfo { /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `73 + p * (69 ±0)` - // Estimated: `73 + p * (70 ±0)` - // Minimum execution time: 4_250_000 picoseconds. - Weight::from_parts(4_420_000, 0) - .saturating_add(Weight::from_parts(0, 73)) - // Standard Error: 1_535 - .saturating_add(Weight::from_parts(1_338_717, 0).saturating_mul(p.into())) + // Measured: `75 + p * (69 ±0)` + // Estimated: `70 + p * (70 ±0)` + // Minimum execution time: 4_980_000 picoseconds. + Weight::from_parts(5_240_000, 0) + .saturating_add(Weight::from_parts(0, 70)) + // Standard Error: 1_387 + .saturating_add(Weight::from_parts(1_503_519, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -155,8 +155,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 22_940_000 picoseconds. - Weight::from_parts(23_901_000, 0) + // Minimum execution time: 20_741_000 picoseconds. + Weight::from_parts(22_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -178,8 +178,8 @@ impl frame_system::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `149` // Estimated: `1634` - // Minimum execution time: 122_467_634_000 picoseconds. - Weight::from_parts(124_822_100_000, 0) + // Minimum execution time: 115_525_073_000 picoseconds. + Weight::from_parts(117_094_913_000, 0) .saturating_add(Weight::from_parts(0, 1634)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) diff --git a/system-parachains/people-paseo/src/weights/pallet_balances.rs b/system-parachains/people-paseo/src/weights/pallet_balances.rs index 892286187..ce5e139e7 100644 --- a/system-parachains/people-paseo/src/weights/pallet_balances.rs +++ b/system-parachains/people-paseo/src/weights/pallet_balances.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 50_860_000 picoseconds. - Weight::from_parts(51_710_000, 0) + // Minimum execution time: 58_591_000 picoseconds. + Weight::from_parts(59_260_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 39_940_000 picoseconds. - Weight::from_parts(40_350_000, 0) + // Minimum execution time: 46_650_000 picoseconds. + Weight::from_parts(47_110_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 16_200_000 picoseconds. - Weight::from_parts(16_480_000, 0) + // Minimum execution time: 19_900_000 picoseconds. + Weight::from_parts(20_160_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 21_520_000 picoseconds. - Weight::from_parts(21_980_000, 0) + // Minimum execution time: 28_200_000 picoseconds. + Weight::from_parts(28_631_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -101,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `6196` - // Minimum execution time: 52_410_000 picoseconds. - Weight::from_parts(53_041_000, 0) + // Minimum execution time: 63_691_000 picoseconds. + Weight::from_parts(64_190_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -113,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 49_630_000 picoseconds. - Weight::from_parts(50_700_000, 0) + // Minimum execution time: 57_601_000 picoseconds. + Weight::from_parts(58_160_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 19_330_000 picoseconds. - Weight::from_parts(19_610_000, 0) + // Minimum execution time: 23_610_000 picoseconds. + Weight::from_parts(23_770_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -138,40 +138,37 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (136 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 16_960_000 picoseconds. - Weight::from_parts(17_240_000, 0) + // Minimum execution time: 21_830_000 picoseconds. + Weight::from_parts(21_960_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 12_081 - .saturating_add(Weight::from_parts(15_329_339, 0).saturating_mul(u.into())) + // Standard Error: 13_689 + .saturating_add(Weight::from_parts(17_397_958, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) } - /// Storage: `Balances::InactiveIssuance` (r:1 w:0) - /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn force_adjust_total_issuance() -> Weight { // Proof Size summary in bytes: // Measured: `0` - // Estimated: `1501` - // Minimum execution time: 6_400_000 picoseconds. - Weight::from_parts(6_550_000, 0) - .saturating_add(Weight::from_parts(0, 1501)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `0` + // Minimum execution time: 7_700_000 picoseconds. + Weight::from_parts(7_851_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn burn_allow_death() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 31_360_000 picoseconds. - Weight::from_parts(31_830_000, 0) + // Minimum execution time: 36_670_000 picoseconds. + Weight::from_parts(36_970_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 21_090_000 picoseconds. - Weight::from_parts(21_320_000, 0) + // Minimum execution time: 25_140_000 picoseconds. + Weight::from_parts(25_480_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/people-paseo/src/weights/pallet_collator_selection.rs b/system-parachains/people-paseo/src/weights/pallet_collator_selection.rs index 59d781466..66a9f9cc4 100644 --- a/system-parachains/people-paseo/src/weights/pallet_collator_selection.rs +++ b/system-parachains/people-paseo/src/weights/pallet_collator_selection.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_collator_selection` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -56,11 +56,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `197 + b * (79 ±0)` // Estimated: `1188 + b * (2555 ±0)` - // Minimum execution time: 13_771_000 picoseconds. - Weight::from_parts(10_716_435, 0) + // Minimum execution time: 18_300_000 picoseconds. + Weight::from_parts(14_426_248, 0) .saturating_add(Weight::from_parts(0, 1188)) - // Standard Error: 7_359 - .saturating_add(Weight::from_parts(3_851_361, 0).saturating_mul(b.into())) + // Standard Error: 9_460 + .saturating_add(Weight::from_parts(4_937_384, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2555).saturating_mul(b.into())) @@ -79,13 +79,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `795 + b * (32 ±0) + c * (53 ±0)` // Estimated: `6287 + b * (37 ±0) + c * (53 ±0)` - // Minimum execution time: 43_040_000 picoseconds. - Weight::from_parts(42_778_908, 0) + // Minimum execution time: 53_710_000 picoseconds. + Weight::from_parts(53_950_794, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 6_295 - .saturating_add(Weight::from_parts(54_289, 0).saturating_mul(b.into())) - // Standard Error: 1_193 - .saturating_add(Weight::from_parts(91_172, 0).saturating_mul(c.into())) + // Standard Error: 11_850 + .saturating_add(Weight::from_parts(12_535, 0).saturating_mul(b.into())) + // Standard Error: 2_246 + .saturating_add(Weight::from_parts(148_388, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(b.into())) @@ -100,11 +100,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `119 + b * (32 ±0)` // Estimated: `6287` - // Minimum execution time: 13_590_000 picoseconds. - Weight::from_parts(13_654_717, 0) + // Minimum execution time: 18_600_000 picoseconds. + Weight::from_parts(18_841_483, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 1_134 - .saturating_add(Weight::from_parts(61_133, 0).saturating_mul(b.into())) + // Standard Error: 1_084 + .saturating_add(Weight::from_parts(63_875, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -114,8 +114,8 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_160_000, 0) + // Minimum execution time: 6_180_000 picoseconds. + Weight::from_parts(6_410_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -133,13 +133,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `0 + c * (182 ±0) + k * (115 ±0)` // Estimated: `6287 + c * (901 ±29) + k * (901 ±29)` - // Minimum execution time: 11_220_000 picoseconds. - Weight::from_parts(11_420_000, 0) + // Minimum execution time: 16_420_000 picoseconds. + Weight::from_parts(16_720_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 182_208 - .saturating_add(Weight::from_parts(6_025_107, 0).saturating_mul(c.into())) - // Standard Error: 182_208 - .saturating_add(Weight::from_parts(5_791_624, 0).saturating_mul(k.into())) + // Standard Error: 205_137 + .saturating_add(Weight::from_parts(6_832_008, 0).saturating_mul(c.into())) + // Standard Error: 205_137 + .saturating_add(Weight::from_parts(6_516_957, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -156,11 +156,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `319 + c * (49 ±0)` // Estimated: `6287` - // Minimum execution time: 30_281_000 picoseconds. - Weight::from_parts(30_887_685, 0) + // Minimum execution time: 37_870_000 picoseconds. + Weight::from_parts(38_481_754, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 1_232 - .saturating_add(Weight::from_parts(69_649, 0).saturating_mul(c.into())) + // Standard Error: 1_098 + .saturating_add(Weight::from_parts(85_543, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -179,11 +179,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `765 + c * (52 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 39_550_000 picoseconds. - Weight::from_parts(41_705_596, 0) + // Minimum execution time: 48_841_000 picoseconds. + Weight::from_parts(50_603_010, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 659 - .saturating_add(Weight::from_parts(97_446, 0).saturating_mul(c.into())) + // Standard Error: 790 + .saturating_add(Weight::from_parts(95_552, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -205,11 +205,11 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `905 + c * (53 ±0)` // Estimated: `6287 + c * (54 ±0)` - // Minimum execution time: 60_450_000 picoseconds. - Weight::from_parts(62_198_322, 0) + // Minimum execution time: 73_170_000 picoseconds. + Weight::from_parts(74_824_723, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 1_072 - .saturating_add(Weight::from_parts(98_895, 0).saturating_mul(c.into())) + // Standard Error: 1_286 + .saturating_add(Weight::from_parts(101_747, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 54).saturating_mul(c.into())) @@ -225,29 +225,27 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `347 + c * (48 ±0)` // Estimated: `6287` - // Minimum execution time: 32_190_000 picoseconds. - Weight::from_parts(33_449_337, 0) + // Minimum execution time: 40_310_000 picoseconds. + Weight::from_parts(41_368_558, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 735 - .saturating_add(Weight::from_parts(78_554, 0).saturating_mul(c.into())) + // Standard Error: 1_056 + .saturating_add(Weight::from_parts(93_476, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `System::Account` (r:2 w:2) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn note_author() -> Weight { // Proof Size summary in bytes: // Measured: `155` // Estimated: `6196` - // Minimum execution time: 45_980_000 picoseconds. - Weight::from_parts(46_391_000, 0) + // Minimum execution time: 54_461_000 picoseconds. + Weight::from_parts(54_921_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `CollatorSelection::CandidateList` (r:1 w:0) /// Proof: `CollatorSelection::CandidateList` (`max_values`: Some(1), `max_size`: Some(4802), added: 5297, mode: `MaxEncodedLen`) @@ -257,8 +255,6 @@ impl pallet_collator_selection::WeightInfo for WeightIn /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`) /// Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) /// Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `System::BlockWeight` (r:1 w:1) - /// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:97 w:97) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. @@ -267,14 +263,13 @@ impl pallet_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2302 + c * (97 ±0) + r * (114 ±0)` // Estimated: `6287 + c * (2519 ±0) + r * (2603 ±0)` - // Minimum execution time: 22_170_000 picoseconds. - Weight::from_parts(22_580_000, 0) + // Minimum execution time: 28_441_000 picoseconds. + Weight::from_parts(28_720_000, 0) .saturating_add(Weight::from_parts(0, 6287)) - // Standard Error: 321_099 - .saturating_add(Weight::from_parts(14_055_204, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(5)) + // Standard Error: 357_899 + .saturating_add(Weight::from_parts(16_442_467, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(r.into())) diff --git a/system-parachains/people-paseo/src/weights/pallet_identity.rs b/system-parachains/people-paseo/src/weights/pallet_identity.rs index e8305ea4e..3bb4408b5 100644 --- a/system-parachains/people-paseo/src/weights/pallet_identity.rs +++ b/system-parachains/people-paseo/src/weights/pallet_identity.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_identity` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -54,11 +54,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `32 + r * (57 ±0)` // Estimated: `2626` - // Minimum execution time: 10_050_000 picoseconds. - Weight::from_parts(10_724_634, 0) + // Minimum execution time: 13_500_000 picoseconds. + Weight::from_parts(14_119_865, 0) .saturating_add(Weight::from_parts(0, 2626)) - // Standard Error: 1_551 - .saturating_add(Weight::from_parts(93_004, 0).saturating_mul(r.into())) + // Standard Error: 1_389 + .saturating_add(Weight::from_parts(73_675, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -69,11 +69,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `442 + r * (5 ±0)` // Estimated: `4303` - // Minimum execution time: 21_340_000 picoseconds. - Weight::from_parts(22_101_905, 0) + // Minimum execution time: 24_700_000 picoseconds. + Weight::from_parts(25_293_271, 0) .saturating_add(Weight::from_parts(0, 4303)) - // Standard Error: 1_435 - .saturating_add(Weight::from_parts(84_024, 0).saturating_mul(r.into())) + // Standard Error: 975 + .saturating_add(Weight::from_parts(56_493, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -88,11 +88,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `6723 + s * (2589 ±0)` - // Minimum execution time: 11_110_000 picoseconds. - Weight::from_parts(25_561_473, 0) + // Minimum execution time: 14_150_000 picoseconds. + Weight::from_parts(31_201_956, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 3_624 - .saturating_add(Weight::from_parts(3_729_411, 0).saturating_mul(s.into())) + // Standard Error: 4_513 + .saturating_add(Weight::from_parts(4_290_278, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -110,11 +110,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `194 + p * (32 ±0)` // Estimated: `6723` - // Minimum execution time: 11_060_000 picoseconds. - Weight::from_parts(25_852_274, 0) + // Minimum execution time: 13_970_000 picoseconds. + Weight::from_parts(31_169_288, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 3_422 - .saturating_add(Weight::from_parts(1_553_892, 0).saturating_mul(p.into())) + // Standard Error: 3_900 + .saturating_add(Weight::from_parts(1_626_094, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) @@ -131,13 +131,13 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `534 + r * (5 ±0) + s * (32 ±0)` // Estimated: `6723` - // Minimum execution time: 32_270_000 picoseconds. - Weight::from_parts(33_264_327, 0) + // Minimum execution time: 36_160_000 picoseconds. + Weight::from_parts(37_097_591, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 4_519 - .saturating_add(Weight::from_parts(64_517, 0).saturating_mul(r.into())) - // Standard Error: 881 - .saturating_add(Weight::from_parts(1_577_229, 0).saturating_mul(s.into())) + // Standard Error: 4_174 + .saturating_add(Weight::from_parts(97_914, 0).saturating_mul(r.into())) + // Standard Error: 814 + .saturating_add(Weight::from_parts(1_617_452, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) @@ -151,11 +151,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `432 + r * (57 ±0)` // Estimated: `4303` - // Minimum execution time: 32_560_000 picoseconds. - Weight::from_parts(33_413_682, 0) + // Minimum execution time: 38_530_000 picoseconds. + Weight::from_parts(39_244_850, 0) .saturating_add(Weight::from_parts(0, 4303)) - // Standard Error: 1_610 - .saturating_add(Weight::from_parts(105_811, 0).saturating_mul(r.into())) + // Standard Error: 1_584 + .saturating_add(Weight::from_parts(103_912, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -166,11 +166,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `463` // Estimated: `4303` - // Minimum execution time: 30_420_000 picoseconds. - Weight::from_parts(31_060_812, 0) + // Minimum execution time: 34_840_000 picoseconds. + Weight::from_parts(35_635_215, 0) .saturating_add(Weight::from_parts(0, 4303)) - // Standard Error: 1_374 - .saturating_add(Weight::from_parts(56_831, 0).saturating_mul(r.into())) + // Standard Error: 1_034 + .saturating_add(Weight::from_parts(41_004, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -181,11 +181,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + r * (57 ±0)` // Estimated: `2626` - // Minimum execution time: 7_720_000 picoseconds. - Weight::from_parts(8_122_095, 0) + // Minimum execution time: 10_530_000 picoseconds. + Weight::from_parts(10_843_938, 0) .saturating_add(Weight::from_parts(0, 2626)) - // Standard Error: 1_076 - .saturating_add(Weight::from_parts(87_398, 0).saturating_mul(r.into())) + // Standard Error: 763 + .saturating_add(Weight::from_parts(73_969, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -196,11 +196,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + r * (57 ±0)` // Estimated: `2626` - // Minimum execution time: 7_930_000 picoseconds. - Weight::from_parts(8_326_933, 0) + // Minimum execution time: 9_060_000 picoseconds. + Weight::from_parts(9_372_437, 0) .saturating_add(Weight::from_parts(0, 2626)) - // Standard Error: 1_064 - .saturating_add(Weight::from_parts(85_842, 0).saturating_mul(r.into())) + // Standard Error: 768 + .saturating_add(Weight::from_parts(72_113, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -211,11 +211,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `89 + r * (57 ±0)` // Estimated: `2626` - // Minimum execution time: 7_890_000 picoseconds. - Weight::from_parts(8_249_663, 0) + // Minimum execution time: 8_730_000 picoseconds. + Weight::from_parts(9_092_717, 0) .saturating_add(Weight::from_parts(0, 2626)) - // Standard Error: 1_146 - .saturating_add(Weight::from_parts(78_451, 0).saturating_mul(r.into())) + // Standard Error: 787 + .saturating_add(Weight::from_parts(69_808, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -228,11 +228,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `510 + r * (57 ±0)` // Estimated: `4303` - // Minimum execution time: 23_760_000 picoseconds. - Weight::from_parts(24_247_182, 0) + // Minimum execution time: 28_331_000 picoseconds. + Weight::from_parts(28_955_347, 0) .saturating_add(Weight::from_parts(0, 4303)) - // Standard Error: 1_114 - .saturating_add(Weight::from_parts(95_451, 0).saturating_mul(r.into())) + // Standard Error: 1_170 + .saturating_add(Weight::from_parts(83_657, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -252,13 +252,13 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `773 + r * (5 ±0) + s * (32 ±0)` // Estimated: `6723` - // Minimum execution time: 94_661_000 picoseconds. - Weight::from_parts(97_350_663, 0) + // Minimum execution time: 110_080_000 picoseconds. + Weight::from_parts(114_165_621, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 6_210 - .saturating_add(Weight::from_parts(112_060, 0).saturating_mul(r.into())) - // Standard Error: 1_211 - .saturating_add(Weight::from_parts(1_594_651, 0).saturating_mul(s.into())) + // Standard Error: 7_559 + .saturating_add(Weight::from_parts(84_472, 0).saturating_mul(r.into())) + // Standard Error: 1_475 + .saturating_add(Weight::from_parts(1_656_063, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) @@ -274,11 +274,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `475 + s * (36 ±0)` // Estimated: `6723` - // Minimum execution time: 30_410_000 picoseconds. - Weight::from_parts(35_348_381, 0) + // Minimum execution time: 36_500_000 picoseconds. + Weight::from_parts(42_807_140, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 1_208 - .saturating_add(Weight::from_parts(61_309, 0).saturating_mul(s.into())) + // Standard Error: 1_460 + .saturating_add(Weight::from_parts(71_209, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -291,11 +291,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `591 + s * (3 ±0)` // Estimated: `4303` - // Minimum execution time: 15_320_000 picoseconds. - Weight::from_parts(17_750_443, 0) + // Minimum execution time: 19_470_000 picoseconds. + Weight::from_parts(22_641_323, 0) .saturating_add(Weight::from_parts(0, 4303)) - // Standard Error: 577 - .saturating_add(Weight::from_parts(20_097, 0).saturating_mul(s.into())) + // Standard Error: 753 + .saturating_add(Weight::from_parts(23_259, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -310,11 +310,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `638 + s * (35 ±0)` // Estimated: `6723` - // Minimum execution time: 35_060_000 picoseconds. - Weight::from_parts(37_704_910, 0) + // Minimum execution time: 41_770_000 picoseconds. + Weight::from_parts(45_502_061, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 683 - .saturating_add(Weight::from_parts(44_398, 0).saturating_mul(s.into())) + // Standard Error: 877 + .saturating_add(Weight::from_parts(48_190, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -329,11 +329,11 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `704 + s * (37 ±0)` // Estimated: `6723` - // Minimum execution time: 25_371_000 picoseconds. - Weight::from_parts(28_076_552, 0) + // Minimum execution time: 33_590_000 picoseconds. + Weight::from_parts(36_533_756, 0) .saturating_add(Weight::from_parts(0, 6723)) - // Standard Error: 803 - .saturating_add(Weight::from_parts(51_137, 0).saturating_mul(s.into())) + // Standard Error: 1_010 + .saturating_add(Weight::from_parts(61_282, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -343,8 +343,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_870_000 picoseconds. - Weight::from_parts(7_080_000, 0) + // Minimum execution time: 8_590_000 picoseconds. + Weight::from_parts(8_960_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -354,8 +354,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `80` // Estimated: `3517` - // Minimum execution time: 10_031_000 picoseconds. - Weight::from_parts(10_260_000, 0) + // Minimum execution time: 14_460_000 picoseconds. + Weight::from_parts(14_840_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -372,8 +372,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `80` // Estimated: `4303` - // Minimum execution time: 75_941_000 picoseconds. - Weight::from_parts(76_990_000, 0) + // Minimum execution time: 83_481_000 picoseconds. + Weight::from_parts(84_201_000, 0) .saturating_add(Weight::from_parts(0, 4303)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -388,8 +388,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `115` // Estimated: `4303` - // Minimum execution time: 23_730_000 picoseconds. - Weight::from_parts(24_081_000, 0) + // Minimum execution time: 30_210_000 picoseconds. + Weight::from_parts(30_730_000, 0) .saturating_add(Weight::from_parts(0, 4303)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) @@ -400,8 +400,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3550` - // Minimum execution time: 13_990_000 picoseconds. - Weight::from_parts(14_630_000, 0) + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(20_080_000, 0) .saturating_add(Weight::from_parts(0, 3550)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -414,8 +414,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `258` // Estimated: `4303` - // Minimum execution time: 19_770_000 picoseconds. - Weight::from_parts(20_060_000, 0) + // Minimum execution time: 26_110_000 picoseconds. + Weight::from_parts(26_621_000, 0) .saturating_add(Weight::from_parts(0, 4303)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -428,8 +428,8 @@ impl pallet_identity::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `98` // Estimated: `4303` - // Minimum execution time: 12_370_000 picoseconds. - Weight::from_parts(12_620_000, 0) + // Minimum execution time: 18_240_000 picoseconds. + Weight::from_parts(18_490_000, 0) .saturating_add(Weight::from_parts(0, 4303)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/system-parachains/people-paseo/src/weights/pallet_message_queue.rs b/system-parachains/people-paseo/src/weights/pallet_message_queue.rs index f8e472b85..d7061cd50 100644 --- a/system-parachains/people-paseo/src/weights/pallet_message_queue.rs +++ b/system-parachains/people-paseo/src/weights/pallet_message_queue.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_message_queue` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `223` // Estimated: `6044` - // Minimum execution time: 14_280_000 picoseconds. - Weight::from_parts(14_780_000, 0) + // Minimum execution time: 19_290_000 picoseconds. + Weight::from_parts(19_670_000, 0) .saturating_add(Weight::from_parts(0, 6044)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `218` // Estimated: `6044` - // Minimum execution time: 12_500_000 picoseconds. - Weight::from_parts(12_770_000, 0) + // Minimum execution time: 17_301_000 picoseconds. + Weight::from_parts(17_810_000, 0) .saturating_add(Weight::from_parts(0, 6044)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -81,8 +81,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `6` // Estimated: `3517` - // Minimum execution time: 4_220_000 picoseconds. - Weight::from_parts(4_320_000, 0) + // Minimum execution time: 5_321_000 picoseconds. + Weight::from_parts(5_560_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -93,8 +93,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `72` // Estimated: `69050` - // Minimum execution time: 6_450_000 picoseconds. - Weight::from_parts(6_590_000, 0) + // Minimum execution time: 9_670_000 picoseconds. + Weight::from_parts(9_830_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -105,8 +105,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `72` // Estimated: `69050` - // Minimum execution time: 6_650_000 picoseconds. - Weight::from_parts(6_890_000, 0) + // Minimum execution time: 9_570_000 picoseconds. + Weight::from_parts(9_890_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -119,8 +119,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 157_351_000 picoseconds. - Weight::from_parts(158_431_000, 0) + // Minimum execution time: 159_001_000 picoseconds. + Weight::from_parts(160_171_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -132,8 +132,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `171` // Estimated: `3517` - // Minimum execution time: 8_060_000 picoseconds. - Weight::from_parts(8_380_000, 0) + // Minimum execution time: 12_140_000 picoseconds. + Weight::from_parts(12_420_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -146,8 +146,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69050` - // Minimum execution time: 53_670_000 picoseconds. - Weight::from_parts(53_970_000, 0) + // Minimum execution time: 61_870_000 picoseconds. + Weight::from_parts(62_570_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -160,8 +160,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69050` - // Minimum execution time: 72_580_000 picoseconds. - Weight::from_parts(73_191_000, 0) + // Minimum execution time: 78_981_000 picoseconds. + Weight::from_parts(79_650_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -174,8 +174,8 @@ impl pallet_message_queue::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `65667` // Estimated: `69050` - // Minimum execution time: 108_251_000 picoseconds. - Weight::from_parts(109_080_000, 0) + // Minimum execution time: 114_151_000 picoseconds. + Weight::from_parts(115_161_000, 0) .saturating_add(Weight::from_parts(0, 69050)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/people-paseo/src/weights/pallet_multisig.rs b/system-parachains/people-paseo/src/weights/pallet_multisig.rs index 6a655c5dd..8b59a2d65 100644 --- a/system-parachains/people-paseo/src/weights/pallet_multisig.rs +++ b/system-parachains/people-paseo/src/weights/pallet_multisig.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_multisig` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,11 +52,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_180_000 picoseconds. - Weight::from_parts(13_624_055, 0) + // Minimum execution time: 13_860_000 picoseconds. + Weight::from_parts(14_417_642, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 1 - .saturating_add(Weight::from_parts(500, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(527, 0).saturating_mul(z.into())) } /// Storage: `Multisig::Multisigs` (r:1 w:1) /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`) @@ -66,13 +66,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `263 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 42_830_000 picoseconds. - Weight::from_parts(35_643_091, 0) + // Minimum execution time: 50_211_000 picoseconds. + Weight::from_parts(43_023_734, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 334 - .saturating_add(Weight::from_parts(80_921, 0).saturating_mul(s.into())) + // Standard Error: 338 + .saturating_add(Weight::from_parts(81_371, 0).saturating_mul(s.into())) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_504, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_476, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -84,13 +84,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `282` // Estimated: `6811` - // Minimum execution time: 27_690_000 picoseconds. - Weight::from_parts(20_548_912, 0) + // Minimum execution time: 31_861_000 picoseconds. + Weight::from_parts(24_971_419, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 240 - .saturating_add(Weight::from_parts(79_854, 0).saturating_mul(s.into())) + // Standard Error: 221 + .saturating_add(Weight::from_parts(73_722, 0).saturating_mul(s.into())) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_495, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_488, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -104,13 +104,13 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `388 + s * (33 ±0)` // Estimated: `6811` - // Minimum execution time: 48_770_000 picoseconds. - Weight::from_parts(38_846_936, 0) + // Minimum execution time: 55_631_000 picoseconds. + Weight::from_parts(46_481_129, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 428 - .saturating_add(Weight::from_parts(104_010, 0).saturating_mul(s.into())) + // Standard Error: 431 + .saturating_add(Weight::from_parts(100_556, 0).saturating_mul(s.into())) // Standard Error: 4 - .saturating_add(Weight::from_parts(1_522, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_530, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -121,11 +121,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `263 + s * (2 ±0)` // Estimated: `6811` - // Minimum execution time: 32_700_000 picoseconds. - Weight::from_parts(33_871_685, 0) + // Minimum execution time: 39_860_000 picoseconds. + Weight::from_parts(40_947_887, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 498 - .saturating_add(Weight::from_parts(82_576, 0).saturating_mul(s.into())) + // Standard Error: 441 + .saturating_add(Weight::from_parts(85_764, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -136,11 +136,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `282` // Estimated: `6811` - // Minimum execution time: 18_180_000 picoseconds. - Weight::from_parts(19_061_166, 0) + // Minimum execution time: 22_540_000 picoseconds. + Weight::from_parts(23_274_735, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 355 - .saturating_add(Weight::from_parts(82_114, 0).saturating_mul(s.into())) + // Standard Error: 309 + .saturating_add(Weight::from_parts(76_618, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,11 +151,11 @@ impl pallet_multisig::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `454 + s * (1 ±0)` // Estimated: `6811` - // Minimum execution time: 33_381_000 picoseconds. - Weight::from_parts(34_510_388, 0) + // Minimum execution time: 40_920_000 picoseconds. + Weight::from_parts(42_355_652, 0) .saturating_add(Weight::from_parts(0, 6811)) - // Standard Error: 466 - .saturating_add(Weight::from_parts(86_308, 0).saturating_mul(s.into())) + // Standard Error: 402 + .saturating_add(Weight::from_parts(81_380, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/people-paseo/src/weights/pallet_proxy.rs b/system-parachains/people-paseo/src/weights/pallet_proxy.rs index e0ade29b3..cef930d68 100644 --- a/system-parachains/people-paseo/src/weights/pallet_proxy.rs +++ b/system-parachains/people-paseo/src/weights/pallet_proxy.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_proxy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -54,11 +54,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 15_430_000 picoseconds. - Weight::from_parts(15_926_842, 0) + // Minimum execution time: 18_090_000 picoseconds. + Weight::from_parts(18_568_780, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 751 - .saturating_add(Weight::from_parts(38_711, 0).saturating_mul(p.into())) + // Standard Error: 1_617 + .saturating_add(Weight::from_parts(29_935, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `Proxy::Proxies` (r:1 w:0) @@ -73,13 +73,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `454 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 39_350_000 picoseconds. - Weight::from_parts(38_749_826, 0) + // Minimum execution time: 46_580_000 picoseconds. + Weight::from_parts(47_027_601, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_280 - .saturating_add(Weight::from_parts(162_365, 0).saturating_mul(a.into())) - // Standard Error: 1_323 - .saturating_add(Weight::from_parts(41_605, 0).saturating_mul(p.into())) + // Standard Error: 2_770 + .saturating_add(Weight::from_parts(156_068, 0).saturating_mul(a.into())) + // Standard Error: 2_862 + .saturating_add(Weight::from_parts(38_049, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -93,13 +93,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `369 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 27_120_000 picoseconds. - Weight::from_parts(27_404_544, 0) + // Minimum execution time: 32_430_000 picoseconds. + Weight::from_parts(33_037_539, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_318 - .saturating_add(Weight::from_parts(155_012, 0).saturating_mul(a.into())) - // Standard Error: 1_362 - .saturating_add(Weight::from_parts(5_052, 0).saturating_mul(p.into())) + // Standard Error: 1_551 + .saturating_add(Weight::from_parts(166_431, 0).saturating_mul(a.into())) + // Standard Error: 1_603 + .saturating_add(Weight::from_parts(7_731, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -113,13 +113,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `369 + a * (68 ±0)` // Estimated: `5698` - // Minimum execution time: 26_700_000 picoseconds. - Weight::from_parts(27_341_778, 0) + // Minimum execution time: 32_350_000 picoseconds. + Weight::from_parts(33_252_784, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_259 - .saturating_add(Weight::from_parts(157_200, 0).saturating_mul(a.into())) - // Standard Error: 1_300 - .saturating_add(Weight::from_parts(3_816, 0).saturating_mul(p.into())) + // Standard Error: 1_599 + .saturating_add(Weight::from_parts(163_560, 0).saturating_mul(a.into())) + // Standard Error: 1_652 + .saturating_add(Weight::from_parts(5_835, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -135,13 +135,13 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `386 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5698` - // Minimum execution time: 35_130_000 picoseconds. - Weight::from_parts(35_052_557, 0) + // Minimum execution time: 42_041_000 picoseconds. + Weight::from_parts(42_416_846, 0) .saturating_add(Weight::from_parts(0, 5698)) - // Standard Error: 1_315 - .saturating_add(Weight::from_parts(149_684, 0).saturating_mul(a.into())) - // Standard Error: 1_358 - .saturating_add(Weight::from_parts(33_102, 0).saturating_mul(p.into())) + // Standard Error: 1_650 + .saturating_add(Weight::from_parts(157_310, 0).saturating_mul(a.into())) + // Standard Error: 1_705 + .saturating_add(Weight::from_parts(43_428, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -152,11 +152,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 25_130_000 picoseconds. - Weight::from_parts(25_814_928, 0) + // Minimum execution time: 29_300_000 picoseconds. + Weight::from_parts(29_690_248, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 833 - .saturating_add(Weight::from_parts(44_616, 0).saturating_mul(p.into())) + // Standard Error: 612 + .saturating_add(Weight::from_parts(44_465, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -167,11 +167,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 25_271_000 picoseconds. - Weight::from_parts(25_992_603, 0) + // Minimum execution time: 29_051_000 picoseconds. + Weight::from_parts(29_876_177, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 972 - .saturating_add(Weight::from_parts(51_334, 0).saturating_mul(p.into())) + // Standard Error: 880 + .saturating_add(Weight::from_parts(64_318, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -182,11 +182,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `127 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 22_910_000 picoseconds. - Weight::from_parts(23_504_949, 0) + // Minimum execution time: 26_420_000 picoseconds. + Weight::from_parts(27_053_968, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 843 - .saturating_add(Weight::from_parts(35_300, 0).saturating_mul(p.into())) + // Standard Error: 776 + .saturating_add(Weight::from_parts(36_424, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -197,11 +197,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4706` - // Minimum execution time: 26_641_000 picoseconds. - Weight::from_parts(27_339_030, 0) + // Minimum execution time: 31_280_000 picoseconds. + Weight::from_parts(31_818_219, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 796 - .saturating_add(Weight::from_parts(9_071, 0).saturating_mul(p.into())) + // Standard Error: 578 + .saturating_add(Weight::from_parts(8_660, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -212,11 +212,11 @@ impl pallet_proxy::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `164 + p * (37 ±0)` // Estimated: `4706` - // Minimum execution time: 23_480_000 picoseconds. - Weight::from_parts(24_209_891, 0) + // Minimum execution time: 27_431_000 picoseconds. + Weight::from_parts(28_318_863, 0) .saturating_add(Weight::from_parts(0, 4706)) - // Standard Error: 622 - .saturating_add(Weight::from_parts(37_759, 0).saturating_mul(p.into())) + // Standard Error: 804 + .saturating_add(Weight::from_parts(34_889, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/people-paseo/src/weights/pallet_session.rs b/system-parachains/people-paseo/src/weights/pallet_session.rs index 87a7f9dd3..b2a213260 100644 --- a/system-parachains/people-paseo/src/weights/pallet_session.rs +++ b/system-parachains/people-paseo/src/weights/pallet_session.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_session` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `298` // Estimated: `3763` - // Minimum execution time: 19_710_000 picoseconds. - Weight::from_parts(20_171_000, 0) + // Minimum execution time: 23_831_000 picoseconds. + Weight::from_parts(24_370_000, 0) .saturating_add(Weight::from_parts(0, 3763)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl pallet_session::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3745` - // Minimum execution time: 14_160_000 picoseconds. - Weight::from_parts(14_550_000, 0) + // Minimum execution time: 16_890_000 picoseconds. + Weight::from_parts(17_300_000, 0) .saturating_add(Weight::from_parts(0, 3745)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) diff --git a/system-parachains/people-paseo/src/weights/pallet_timestamp.rs b/system-parachains/people-paseo/src/weights/pallet_timestamp.rs index e97c07a06..52378a3d8 100644 --- a/system-parachains/people-paseo/src/weights/pallet_timestamp.rs +++ b/system-parachains/people-paseo/src/weights/pallet_timestamp.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `49` // Estimated: `1493` - // Minimum execution time: 7_270_000 picoseconds. - Weight::from_parts(7_500_000, 0) + // Minimum execution time: 11_950_000 picoseconds. + Weight::from_parts(12_300_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `57` // Estimated: `0` - // Minimum execution time: 3_530_000 picoseconds. - Weight::from_parts(3_690_000, 0) + // Minimum execution time: 4_740_000 picoseconds. + Weight::from_parts(4_940_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/people-paseo/src/weights/pallet_utility.rs b/system-parachains/people-paseo/src/weights/pallet_utility.rs index f59059e09..ae33d09a1 100644 --- a/system-parachains/people-paseo/src/weights/pallet_utility.rs +++ b/system-parachains/people-paseo/src/weights/pallet_utility.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -52,18 +52,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_960_000 picoseconds. - Weight::from_parts(11_671_515, 0) + // Minimum execution time: 6_320_000 picoseconds. + Weight::from_parts(33_632_226, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 866 - .saturating_add(Weight::from_parts(3_312_957, 0).saturating_mul(c.into())) + // Standard Error: 2_863 + .saturating_add(Weight::from_parts(3_493_538, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_610_000 picoseconds. - Weight::from_parts(4_750_000, 0) + // Minimum execution time: 5_550_000 picoseconds. + Weight::from_parts(5_681_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -71,18 +71,18 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_990_000 picoseconds. - Weight::from_parts(6_825_044, 0) + // Minimum execution time: 6_331_000 picoseconds. + Weight::from_parts(13_392_684, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 658 - .saturating_add(Weight::from_parts(3_551_804, 0).saturating_mul(c.into())) + // Standard Error: 712 + .saturating_add(Weight::from_parts(3_759_502, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_110_000 picoseconds. - Weight::from_parts(7_220_000, 0) + // Minimum execution time: 8_750_000 picoseconds. + Weight::from_parts(8_920_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -90,10 +90,10 @@ impl pallet_utility::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_870_000 picoseconds. - Weight::from_parts(7_175_008, 0) + // Minimum execution time: 6_191_000 picoseconds. + Weight::from_parts(11_455_296, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 620 - .saturating_add(Weight::from_parts(3_320_462, 0).saturating_mul(c.into())) + // Standard Error: 583 + .saturating_add(Weight::from_parts(3_506_507, 0).saturating_mul(c.into())) } } diff --git a/system-parachains/people-paseo/src/weights/pallet_xcm.rs b/system-parachains/people-paseo/src/weights/pallet_xcm.rs index c212a2ace..1b440331c 100644 --- a/system-parachains/people-paseo/src/weights/pallet_xcm.rs +++ b/system-parachains/people-paseo/src/weights/pallet_xcm.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -51,23 +51,19 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `38` - // Estimated: `3503` - // Minimum execution time: 24_630_000 picoseconds. - Weight::from_parts(25_360_000, 0) - .saturating_add(Weight::from_parts(0, 3503)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `6` + // Estimated: `3471` + // Minimum execution time: 26_681_000 picoseconds. + Weight::from_parts(27_260_000, 0) + .saturating_add(Weight::from_parts(0, 3471)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -75,10 +71,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -87,13 +79,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `70` + // Measured: `38` // Estimated: `3593` - // Minimum execution time: 99_051_000 picoseconds. - Weight::from_parts(100_211_000, 0) + // Minimum execution time: 108_381_000 picoseconds. + Weight::from_parts(109_301_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -119,8 +111,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_560_000 picoseconds. - Weight::from_parts(11_881_000, 0) + // Minimum execution time: 13_520_000 picoseconds. + Weight::from_parts(13_871_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) @@ -129,21 +121,18 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_770_000 picoseconds. - Weight::from_parts(7_900_000, 0) + // Minimum execution time: 9_280_000 picoseconds. + Weight::from_parts(9_480_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_560_000 picoseconds. - Weight::from_parts(2_690_000, 0) + // Minimum execution time: 3_170_000 picoseconds. + Weight::from_parts(3_350_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -153,10 +142,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -165,13 +150,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `38` - // Estimated: `3503` - // Minimum execution time: 31_381_000 picoseconds. - Weight::from_parts(31_800_000, 0) - .saturating_add(Weight::from_parts(0, 3503)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `6` + // Estimated: `3471` + // Minimum execution time: 34_220_000 picoseconds. + Weight::from_parts(34_950_000, 0) + .saturating_add(Weight::from_parts(0, 3471)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -179,10 +164,6 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) @@ -191,13 +172,13 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { // Proof Size summary in bytes: - // Measured: `255` - // Estimated: `3720` - // Minimum execution time: 35_060_000 picoseconds. - Weight::from_parts(36_051_000, 0) - .saturating_add(Weight::from_parts(0, 3720)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `99` + // Estimated: `3564` + // Minimum execution time: 35_901_000 picoseconds. + Weight::from_parts(36_320_000, 0) + .saturating_add(Weight::from_parts(0, 3564)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -205,8 +186,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_580_000 picoseconds. - Weight::from_parts(2_720_000, 0) + // Minimum execution time: 3_270_000 picoseconds. + Weight::from_parts(3_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -214,11 +195,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { // Proof Size summary in bytes: - // Measured: `89` - // Estimated: `13454` - // Minimum execution time: 21_240_000 picoseconds. - Weight::from_parts(21_650_000, 0) - .saturating_add(Weight::from_parts(0, 13454)) + // Measured: `23` + // Estimated: `13388` + // Minimum execution time: 21_620_000 picoseconds. + Weight::from_parts(22_000_000, 0) + .saturating_add(Weight::from_parts(0, 13388)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -226,11 +207,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { // Proof Size summary in bytes: - // Measured: `93` - // Estimated: `13458` - // Minimum execution time: 21_360_000 picoseconds. - Weight::from_parts(21_681_000, 0) - .saturating_add(Weight::from_parts(0, 13458)) + // Measured: `27` + // Estimated: `13392` + // Minimum execution time: 22_100_000 picoseconds. + Weight::from_parts(22_440_000, 0) + .saturating_add(Weight::from_parts(0, 13392)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -238,11 +219,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { // Proof Size summary in bytes: - // Measured: `106` - // Estimated: `15946` - // Minimum execution time: 23_380_000 picoseconds. - Weight::from_parts(23_630_000, 0) - .saturating_add(Weight::from_parts(0, 15946)) + // Measured: `40` + // Estimated: `15880` + // Minimum execution time: 25_030_000 picoseconds. + Weight::from_parts(25_440_000, 0) + .saturating_add(Weight::from_parts(0, 15880)) .saturating_add(T::DbWeight::get().reads(6)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) @@ -251,44 +232,40 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `106` - // Estimated: `6046` - // Minimum execution time: 31_170_000 picoseconds. - Weight::from_parts(31_860_000, 0) - .saturating_add(Weight::from_parts(0, 6046)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `40` + // Estimated: `5980` + // Minimum execution time: 34_520_000 picoseconds. + Weight::from_parts(35_140_000, 0) + .saturating_add(Weight::from_parts(0, 5980)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `10993` - // Minimum execution time: 14_260_000 picoseconds. - Weight::from_parts(14_500_000, 0) - .saturating_add(Weight::from_parts(0, 10993)) + // Measured: `37` + // Estimated: `10927` + // Minimum execution time: 15_680_000 picoseconds. + Weight::from_parts(15_930_000, 0) + .saturating_add(Weight::from_parts(0, 10927)) .saturating_add(T::DbWeight::get().reads(4)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `100` - // Estimated: `13465` - // Minimum execution time: 21_380_000 picoseconds. - Weight::from_parts(21_891_000, 0) - .saturating_add(Weight::from_parts(0, 13465)) + // Measured: `34` + // Estimated: `13399` + // Minimum execution time: 22_000_000 picoseconds. + Weight::from_parts(22_250_000, 0) + .saturating_add(Weight::from_parts(0, 13399)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -298,23 +275,19 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `106` - // Estimated: `13471` - // Minimum execution time: 41_920_000 picoseconds. - Weight::from_parts(42_530_000, 0) - .saturating_add(Weight::from_parts(0, 13471)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `40` + // Estimated: `13405` + // Minimum execution time: 45_931_000 picoseconds. + Weight::from_parts(46_680_000, 0) + .saturating_add(Weight::from_parts(0, 13405)) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -322,11 +295,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn new_query() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `1517` - // Minimum execution time: 4_450_000 picoseconds. - Weight::from_parts(4_630_000, 0) - .saturating_add(Weight::from_parts(0, 1517)) + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 3_280_000 picoseconds. + Weight::from_parts(3_440_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -334,11 +307,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn take_response() -> Weight { // Proof Size summary in bytes: - // Measured: `7669` - // Estimated: `11134` - // Minimum execution time: 32_150_000 picoseconds. - Weight::from_parts(32_940_000, 0) - .saturating_add(Weight::from_parts(0, 11134)) + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 33_170_000 picoseconds. + Weight::from_parts(33_890_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -346,11 +319,11 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `90` - // Estimated: `3555` - // Minimum execution time: 44_251_000 picoseconds. - Weight::from_parts(44_940_000, 0) - .saturating_add(Weight::from_parts(0, 3555)) + // Measured: `24` + // Estimated: `3489` + // Minimum execution time: 48_131_000 picoseconds. + Weight::from_parts(48_920_000, 0) + .saturating_add(Weight::from_parts(0, 3489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs index f3f0f2f3e..dc6c8e43d 100644 --- a/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +++ b/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::fungible` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `101` // Estimated: `3593` - // Minimum execution time: 32_330_000 picoseconds. - Weight::from_parts(33_010_000, 0) + // Minimum execution time: 40_301_000 picoseconds. + Weight::from_parts(40_661_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `153` // Estimated: `6196` - // Minimum execution time: 45_431_000 picoseconds. - Weight::from_parts(46_090_000, 0) + // Minimum execution time: 54_580_000 picoseconds. + Weight::from_parts(55_260_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -79,23 +79,19 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn transfer_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `223` + // Measured: `191` // Estimated: `8799` - // Minimum execution time: 94_681_000 picoseconds. - Weight::from_parts(95_390_000, 0) + // Minimum execution time: 107_591_000 picoseconds. + Weight::from_parts(109_291_000, 0) .saturating_add(Weight::from_parts(0, 8799)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -113,10 +109,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -125,20 +117,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_reserve_withdraw() -> Weight { // Proof Size summary in bytes: - // Measured: `171` + // Measured: `139` // Estimated: `6196` - // Minimum execution time: 58_461_000 picoseconds. - Weight::from_parts(59_780_000, 0) + // Minimum execution time: 68_620_000 picoseconds. + Weight::from_parts(69_730_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn receive_teleported_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_820_000 picoseconds. - Weight::from_parts(3_010_000, 0) + // Minimum execution time: 3_800_000 picoseconds. + Weight::from_parts(3_890_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `System::Account` (r:1 w:1) @@ -147,8 +139,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `52` // Estimated: `3593` - // Minimum execution time: 25_090_000 picoseconds. - Weight::from_parts(25_510_000, 0) + // Minimum execution time: 30_360_000 picoseconds. + Weight::from_parts(30_720_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -159,10 +151,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`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: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -171,13 +159,13 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn deposit_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `122` + // Measured: `90` // Estimated: `3593` - // Minimum execution time: 62_961_000 picoseconds. - Weight::from_parts(64_081_000, 0) + // Minimum execution time: 73_270_000 picoseconds. + Weight::from_parts(74_421_000, 0) .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -185,22 +173,18 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn initiate_teleport() -> Weight { // Proof Size summary in bytes: - // Measured: `70` - // Estimated: `3535` - // Minimum execution time: 26_761_000 picoseconds. - Weight::from_parts(27_530_000, 0) - .saturating_add(Weight::from_parts(0, 3535)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `38` + // Estimated: `3503` + // Minimum execution time: 31_140_000 picoseconds. + Weight::from_parts(31_530_000, 0) + .saturating_add(Weight::from_parts(0, 3503)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index b9e8642f7..95891c688 100644 --- a/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_xcm_benchmarks::generic` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-08-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-01-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ggwpez-ref-hw`, CPU: `AMD EPYC 7232P 8-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./people-paseo-chain-spec.json")`, DB CACHE: 1024 @@ -53,10 +53,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -65,87 +61,87 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_holding() -> Weight { // Proof Size summary in bytes: - // Measured: `171` + // Measured: `139` // Estimated: `6196` - // Minimum execution time: 58_251_000 picoseconds. - Weight::from_parts(59_340_000, 0) + // Minimum execution time: 66_681_000 picoseconds. + Weight::from_parts(67_461_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn buy_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 830_000 picoseconds. - Weight::from_parts(890_000, 0) + // Minimum execution time: 920_000 picoseconds. + Weight::from_parts(1_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::Queries` (r:1 w:0) /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn query_response() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `3497` - // Minimum execution time: 7_411_000 picoseconds. - Weight::from_parts(7_640_000, 0) - .saturating_add(Weight::from_parts(0, 3497)) + // Measured: `0` + // Estimated: `3465` + // Minimum execution time: 7_020_000 picoseconds. + Weight::from_parts(7_171_000, 0) + .saturating_add(Weight::from_parts(0, 3465)) .saturating_add(T::DbWeight::get().reads(1)) } pub(crate) fn transact() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_460_000 picoseconds. - Weight::from_parts(7_720_000, 0) + // Minimum execution time: 8_861_000 picoseconds. + Weight::from_parts(9_180_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn refund_surplus() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_620_000 picoseconds. - Weight::from_parts(1_740_000, 0) + // Minimum execution time: 1_830_000 picoseconds. + Weight::from_parts(2_020_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_error_handler() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 810_000 picoseconds. - Weight::from_parts(870_000, 0) + // Minimum execution time: 940_000 picoseconds. + Weight::from_parts(1_050_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_appendix() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 850_000 picoseconds. - Weight::from_parts(900_000, 0) + // Minimum execution time: 930_000 picoseconds. + Weight::from_parts(1_070_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 770_000 picoseconds. - Weight::from_parts(840_000, 0) + // Minimum execution time: 870_000 picoseconds. + Weight::from_parts(960_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn descend_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 830_000 picoseconds. - Weight::from_parts(930_000, 0) + // Minimum execution time: 1_010_000 picoseconds. + Weight::from_parts(1_050_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 790_000 picoseconds. - Weight::from_parts(850_000, 0) + // Minimum execution time: 900_000 picoseconds. + Weight::from_parts(1_010_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -154,10 +150,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -166,23 +158,23 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_error() -> Weight { // Proof Size summary in bytes: - // Measured: `171` + // Measured: `139` // Estimated: `6196` - // Minimum execution time: 53_671_000 picoseconds. - Weight::from_parts(54_970_000, 0) + // Minimum execution time: 61_810_000 picoseconds. + Weight::from_parts(62_611_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1) /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`) pub(crate) fn claim_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `90` - // Estimated: `3555` - // Minimum execution time: 10_940_000 picoseconds. - Weight::from_parts(11_150_000, 0) - .saturating_add(Weight::from_parts(0, 3555)) + // Measured: `24` + // Estimated: `3489` + // Minimum execution time: 11_170_000 picoseconds. + Weight::from_parts(11_480_000, 0) + .saturating_add(Weight::from_parts(0, 3489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -190,8 +182,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 790_000 picoseconds. - Weight::from_parts(830_000, 0) + // Minimum execution time: 880_000 picoseconds. + Weight::from_parts(950_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:1 w:1) @@ -200,23 +192,19 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn subscribe_version() -> Weight { // Proof Size summary in bytes: - // Measured: `38` - // Estimated: `3503` - // Minimum execution time: 25_030_000 picoseconds. - Weight::from_parts(25_541_000, 0) - .saturating_add(Weight::from_parts(0, 3503)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `6` + // Estimated: `3471` + // Minimum execution time: 27_670_000 picoseconds. + Weight::from_parts(28_130_000, 0) + .saturating_add(Weight::from_parts(0, 3471)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:0 w:1) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -224,8 +212,8 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_160_000 picoseconds. - Weight::from_parts(3_340_000, 0) + // Minimum execution time: 3_780_000 picoseconds. + Weight::from_parts(3_891_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -233,40 +221,40 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_290_000 picoseconds. - Weight::from_parts(1_400_000, 0) + // Minimum execution time: 1_610_000 picoseconds. + Weight::from_parts(1_710_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 890_000 picoseconds. - Weight::from_parts(1_020_000, 0) + // Minimum execution time: 1_100_000 picoseconds. + Weight::from_parts(1_190_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 800_000 picoseconds. - Weight::from_parts(860_000, 0) + // Minimum execution time: 980_000 picoseconds. + Weight::from_parts(1_060_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 780_000 picoseconds. - Weight::from_parts(850_000, 0) + // Minimum execution time: 920_000 picoseconds. + Weight::from_parts(1_040_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn expect_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_050_000 picoseconds. - Weight::from_parts(1_100_000, 0) + // Minimum execution time: 1_180_000 picoseconds. + Weight::from_parts(1_280_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -275,10 +263,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -287,20 +271,20 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn query_pallet() -> Weight { // Proof Size summary in bytes: - // Measured: `171` + // Measured: `139` // Estimated: `6196` - // Minimum execution time: 58_391_000 picoseconds. - Weight::from_parts(59_740_000, 0) + // Minimum execution time: 67_461_000 picoseconds. + Weight::from_parts(68_381_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn expect_pallet() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_890_000 picoseconds. - Weight::from_parts(4_000_000, 0) + // Minimum execution time: 4_540_000 picoseconds. + Weight::from_parts(4_760_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) @@ -309,10 +293,6 @@ impl WeightInfo { /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) - /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) - /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) @@ -321,52 +301,52 @@ impl WeightInfo { /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) pub(crate) fn report_transact_status() -> Weight { // Proof Size summary in bytes: - // Measured: `171` + // Measured: `139` // Estimated: `6196` - // Minimum execution time: 54_191_000 picoseconds. - Weight::from_parts(54_711_000, 0) + // Minimum execution time: 62_021_000 picoseconds. + Weight::from_parts(63_140_000, 0) .saturating_add(Weight::from_parts(0, 6196)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(2)) } pub(crate) fn clear_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 870_000 picoseconds. - Weight::from_parts(931_000, 0) + // Minimum execution time: 990_000 picoseconds. + Weight::from_parts(1_100_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 810_000 picoseconds. - Weight::from_parts(850_000, 0) + // Minimum execution time: 910_000 picoseconds. + Weight::from_parts(990_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn clear_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 790_000 picoseconds. - Weight::from_parts(840_000, 0) + // Minimum execution time: 900_000 picoseconds. + Weight::from_parts(1_010_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn set_fees_mode() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 800_000 picoseconds. - Weight::from_parts(850_000, 0) + // Minimum execution time: 910_000 picoseconds. + Weight::from_parts(960_000, 0) .saturating_add(Weight::from_parts(0, 0)) } pub(crate) fn unpaid_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 820_000 picoseconds. - Weight::from_parts(900_000, 0) + // Minimum execution time: 980_000 picoseconds. + Weight::from_parts(1_090_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/system-parachains/people-paseo/src/xcm_config.rs b/system-parachains/people-paseo/src/xcm_config.rs index 7ba939b17..1dea19454 100644 --- a/system-parachains/people-paseo/src/xcm_config.rs +++ b/system-parachains/people-paseo/src/xcm_config.rs @@ -40,10 +40,10 @@ use xcm_builder::{ AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, DenyReserveTransferToRelayChain, DenyThenTry, DescribeAllTerminal, DescribeFamily, DescribeTerminus, EnsureXcmOrigin, FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsConcrete, ParentAsSuperuser, - ParentIsPreset, RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, - TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, - XcmFeeManagerFromComponents, XcmFeeToAccount, + ParentIsPreset, RelayChainAsNative, SendXcmFeeToAccount, SiblingParachainAsNative, + SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32, + SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, UsingComponents, + WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, XcmFeeManagerFromComponents, }; use xcm_executor::{traits::ConvertLocation, XcmExecutor}; @@ -246,7 +246,7 @@ impl xcm_executor::Config for XcmConfig { type AssetExchanger = (); type FeeManager = XcmFeeManagerFromComponents< WaivedLocations, - XcmFeeToAccount, + SendXcmFeeToAccount, >; type MessageExporter = (); type UniversalAliases = Nothing; @@ -257,7 +257,7 @@ impl xcm_executor::Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); - type XcmRecorder = (); + type XcmRecorder = PolkadotXcm; } /// Converts a local signed origin into an XCM `Location`. Forms the basis for local origins From 5bb12523dab24e94776aca2fe9c0f8a8f7eda6a0 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 11 Feb 2025 18:41:42 +0100 Subject: [PATCH 07/14] [WIP] chain-specs --- chain-spec-generator/src/main.rs | 4 ++-- chain-spec-generator/src/system_parachains_specs.rs | 9 +++------ .../bridge-hub-paseo/src/genesis_config_presets.rs | 7 +++++++ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/chain-spec-generator/src/main.rs b/chain-spec-generator/src/main.rs index c8d7b3827..5c72d3879 100644 --- a/chain-spec-generator/src/main.rs +++ b/chain-spec-generator/src/main.rs @@ -47,7 +47,7 @@ fn main() -> Result<(), String> { ), ( "bridge-hub-paseo-local", - Box::new(|| system_parachains_specs::bridge_hub_paseo_local_testnet_config()) + Box::new(system_parachains_specs::bridge_hub_paseo_local_testnet_config) as Box<_>, ), ( @@ -56,7 +56,7 @@ fn main() -> Result<(), String> { ), ( "coretime-paseo-local", - Box::new(|| system_parachains_specs::coretime_paseo_local_testnet_config()) as Box<_>, + Box::new(system_parachains_specs::coretime_paseo_local_testnet_config) as Box<_>, ), ( "coretime-paseo-tot", diff --git a/chain-spec-generator/src/system_parachains_specs.rs b/chain-spec-generator/src/system_parachains_specs.rs index c06580bf8..109622593 100644 --- a/chain-spec-generator/src/system_parachains_specs.rs +++ b/chain-spec-generator/src/system_parachains_specs.rs @@ -16,7 +16,9 @@ // along with Polkadot. If not, see . use sc_chain_spec::{ChainSpec, ChainSpecExtension, ChainSpecGroup, ChainType}; +use sc_network::config::MultiaddrWithPeerId; use serde::{Deserialize, Serialize}; +use std::str::FromStr; /// Generic extensions for Parachain ChainSpecs. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ChainSpecGroup, ChainSpecExtension)] @@ -50,12 +52,7 @@ pub fn asset_hub_paseo_local_testnet_config() -> Result, Stri .with_name("Asset Hub Paseo Local") .with_id("asset-hub-paseo-local") .with_chain_type(ChainType::Local) - .with_protocol_id("ah-pas") - .with_genesis_config_patch( - asset_hub_paseo_runtime::genesis_config_presets::asset_hub_paseo_local_testnet_genesis( - 1000.into(), - ), - ) + .with_genesis_config_preset_name("local_testnet") .with_properties(properties) .build(), )) diff --git a/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs b/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs index 17589522c..39732e8bd 100644 --- a/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs +++ b/system-parachains/bridge-hub-paseo/src/genesis_config_presets.rs @@ -77,6 +77,13 @@ fn bridge_hub_paseo_genesis( }) } +pub fn bridge_hub_paseo_local_testnet_genesis(para_id: ParaId) -> serde_json::Value { + bridge_hub_paseo_genesis(invulnerables(), testnet_accounts(), para_id, vec![]) +} + +fn bridge_hub_paseo_development_genesis(para_id: ParaId) -> serde_json::Value { + bridge_hub_paseo_local_testnet_genesis(para_id) +} /// Provides the names of the predefined genesis configs for this runtime. pub fn preset_names() -> Vec { vec![PresetId::from("development"), PresetId::from("local_testnet")] From 53c982881fe192a1d46cfe9eb2371856d4e0dfdf Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Wed, 12 Feb 2025 12:03:03 +0100 Subject: [PATCH 08/14] [WIP] collectives --- Cargo.lock | 2512 ++++++++++------- Cargo.toml | 2 +- .../collectives-paseo/src/genesis.rs | 20 +- .../collectives/collectives-paseo/src/lib.rs | 24 +- .../collectives-paseo/Cargo.toml | 8 +- .../collectives-paseo/constants/Cargo.toml | 2 +- .../collectives-paseo/src/fellowship/mod.rs | 2 +- .../collectives-paseo/src/lib.rs | 4 +- .../collectives-paseo/src/xcm_config.rs | 4 +- 9 files changed, 1495 insertions(+), 1083 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90229cdc9..c33cc13fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,18 +23,18 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.21.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ - "gimli 0.28.1", + "gimli 0.31.1", ] [[package]] -name = "adler" -version = "1.0.2" +name = "adler2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] name = "aead" @@ -48,9 +48,9 @@ dependencies = [ [[package]] name = "aes" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac1f845298e95f983ff1944b728ae08b8cebab80d684f0a832ed0fc74dfa27e2" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if", "cipher 0.4.4", @@ -68,7 +68,7 @@ dependencies = [ "cipher 0.4.4", "ctr", "ghash", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -77,19 +77,19 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom", + "getrandom 0.2.15", "once_cell", "version_check", ] [[package]] name = "ahash" -version = "0.8.8" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "getrandom", + "getrandom 0.2.15", "once_cell", "version_check", "zerocopy", @@ -97,18 +97,18 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] name = "allocator-api2" -version = "0.2.16" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "alloy-primitives" @@ -120,7 +120,7 @@ dependencies = [ "bytes", "cfg-if", "const-hex", - "derive_more", + "derive_more 0.99.19", "hex-literal", "itoa", "proptest", @@ -132,9 +132,9 @@ dependencies = [ [[package]] name = "alloy-rlp" -version = "0.3.4" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d58d9f5da7b40e9bfff0b7e7816700be4019db97d4b6359fe7f94a9e22e42ac" +checksum = "3d6c1d995bff8d011f7cd6c81820d51825e6e06d6db73914c1630ecf544d83d6" dependencies = [ "arrayvec", "bytes", @@ -186,57 +186,59 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.11" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", + "is_terminal_polyfill", "utf8parse", ] [[package]] name = "anstyle" -version = "1.0.4" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.3" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.0.2" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.2" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" +checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "once_cell", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.83" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25bdb32cbbdce2b519a9cd7df3a678443100e265d5e25ca763b7572a5104f5f3" +checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" [[package]] name = "approx" @@ -335,7 +337,7 @@ dependencies = [ "num-bigint", "num-traits", "paste", - "rustc_version 0.4.0", + "rustc_version 0.4.1", "zeroize", ] @@ -452,21 +454,21 @@ dependencies = [ [[package]] name = "array-bytes" -version = "6.2.2" +version = "6.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f840fb7195bcfc5e17ea40c26e5ce6d5b9ce5d584466e17703209657e459ae0" +checksum = "5d5dde061bd34119e902bbb2d9b90c5692635cf59fb91d582c2b68043f1b8293" [[package]] name = "arrayref" -version = "0.3.7" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" [[package]] name = "arrayvec" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" [[package]] name = "asn1-rs" @@ -480,23 +482,23 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] [[package]] name = "asn1-rs" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ad1373757efa0f70ec53939aabc7152e1591cb485208052993070ac8d2429d" +checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048" dependencies = [ - "asn1-rs-derive 0.5.0", + "asn1-rs-derive 0.5.1", "asn1-rs-impl 0.2.0", "displaydoc", "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -514,9 +516,9 @@ dependencies = [ [[package]] name = "asn1-rs-derive" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7378575ff571966e99a744addeff0bff98b8ada0dedf1956d59e634db95eaac1" +checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ "proc-macro2", "quote", @@ -578,7 +580,7 @@ dependencies = [ "bp-bridge-hub-kusama", "bp-bridge-hub-paseo", "bp-bridge-hub-polkadot", - "collectives-polkadot-runtime-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", + "collectives-polkadot-runtime-constants", "cumulus-pallet-aura-ext", "cumulus-pallet-parachain-system", "cumulus-pallet-session-benchmarking", @@ -725,9 +727,9 @@ dependencies = [ [[package]] name = "async-io" -version = "2.2.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6d3b15875ba253d1110c740755e246537483f152fa334f91abd7fe84c88b3ff" +checksum = "43a2b323ccce0a1d90b449fd71f2a06ca7faa7c54c2751f06c9bd851fc061059" dependencies = [ "async-lock", "cfg-if", @@ -736,28 +738,28 @@ dependencies = [ "futures-lite", "parking", "polling", - "rustix 0.38.31", + "rustix 0.38.44", "slab", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "async-lock" -version = "3.2.0" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7125e42787d53db9dd54261812ef17e937c95a51e4d291373b670342fa44310c" +checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" dependencies = [ - "event-listener 4.0.0", + "event-listener 5.4.0", "event-listener-strategy", - "pin-project-lite 0.2.13", + "pin-project-lite", ] [[package]] name = "async-trait" -version = "0.1.80" +version = "0.1.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" +checksum = "644dd749086bf3771a2fbc5f256fdb982d53f011c7d5d560304eafeecebce79d" dependencies = [ "proc-macro2", "quote", @@ -774,7 +776,7 @@ dependencies = [ "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.13", + "pin-project-lite", ] [[package]] @@ -789,16 +791,16 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d9a9bf8b79a749ee0b911b91b671cc2b6c670bdbc7e3dfd537576ddc94bb2a2" dependencies = [ - "http 0.2.11", + "http 0.2.12", "log", "url", ] [[package]] name = "auto_impl" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" +checksum = "e12882f59de5360c748c4cbf569a042d5fb0eb515f7bea9c1f470b47f6ffbd73" dependencies = [ "proc-macro2", "quote", @@ -807,23 +809,23 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.1.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ - "addr2line 0.21.0", - "cc", + "addr2line 0.24.2", "cfg-if", "libc", "miniz_oxide", - "object 0.32.2", + "object 0.36.7", "rustc-demangle", + "windows-targets 0.52.6", ] [[package]] @@ -846,9 +848,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.6" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c79fed4cdb43e993fcdadc7e58a09fd0e3e649c4436fa11da71c9f1f3ee7feb9" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "base64" @@ -920,9 +922,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" [[package]] name = "bitvec" @@ -960,9 +962,9 @@ dependencies = [ [[package]] name = "blake2b_simd" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23285ad32269793932e830392f2fe2f83e26488fd3ec778883a93c8323735780" +checksum = "06e903a20b159e944f91ec8499fe1e55651480c541ea0a584f5d967c49ad9d99" dependencies = [ "arrayref", "arrayvec", @@ -971,9 +973,9 @@ dependencies = [ [[package]] name = "blake2s_simd" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94230421e395b9920d23df13ea5d77a20e1725331f90fbbf6df6040b33f756ae" +checksum = "e90f7deecfac93095eb874a40febd69427776e24e1bd7f87f33ac62d6f0174df" dependencies = [ "arrayref", "arrayvec", @@ -982,9 +984,9 @@ dependencies = [ [[package]] name = "blake3" -version = "1.5.0" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0231f06152bf547e9c2b5194f247cd97aacf6dcd8b15d8e5ec0663f64580da87" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" dependencies = [ "arrayref", "arrayvec", @@ -1013,9 +1015,9 @@ dependencies = [ [[package]] name = "bounded-collections" -version = "0.2.0" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d32385ecb91a31bddaf908e8dcf4a15aef1bcd3913cc03ebfad02ff6d568abc1" +checksum = "32ed0a820ed50891d36358e997d27741a6142e382242df40ff01c89bcdcc7a2b" dependencies = [ "log", "parity-scale-codec", @@ -1615,9 +1617,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.14.0" +version = "3.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" [[package]] name = "byte-slice-cast" @@ -1633,9 +1635,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "bytemuck" -version = "1.14.0" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" [[package]] name = "byteorder" @@ -1645,9 +1647,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.6.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" +checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" [[package]] name = "c2-chacha" @@ -1661,18 +1663,18 @@ dependencies = [ [[package]] name = "camino" -version = "1.1.6" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" +checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.6" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceed8ef69d8518a5dda55c07425450b58a4e1946f4951eab6d7191ee86c2443d" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" dependencies = [ "serde", ] @@ -1685,20 +1687,21 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.18", + "semver 1.0.25", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cc" -version = "1.0.83" +version = "1.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda" dependencies = [ "jobserver", "libc", + "shlex", ] [[package]] @@ -1709,9 +1712,9 @@ checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" [[package]] name = "cfg-expr" -version = "0.15.5" +version = "0.15.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03915af431787e6ffdcc74c645077518c6b6e01f80b761e0fbbfa288536311b3" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" dependencies = [ "smallvec", ] @@ -1789,16 +1792,16 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.31" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.48.5", + "windows-targets 0.52.6", ] [[package]] @@ -1849,9 +1852,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.0" +version = "4.5.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80c21025abd42669a92efc996ef13cfb2c5c627858421ea58d5c3b331a6c134f" +checksum = "8acebd8ad879283633b343856142139f2da2317c96b05b4dd6181c61e2480184" dependencies = [ "clap_builder", "clap_derive", @@ -1859,9 +1862,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.0" +version = "4.5.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "458bf1f341769dfcf849846f65dffdf9146daa56bcd2a47cb4e1de9915567c99" +checksum = "f6ba32cbda51c7e1dfd49acc1457ba1a7dec5b64fe360e828acb13ca8dc9c2f9" dependencies = [ "anstream", "anstyle", @@ -1871,11 +1874,11 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.0" +version = "4.5.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "307bc0538d5f0f83b8248db3087aa92fe504e4691294d0c96c0eabc33f47ba47" +checksum = "bf4ced95c6f4a675af3da73304b9ac4ed991640c36374e4b46795c49e17cf1ed" dependencies = [ - "heck 0.4.1", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.98", @@ -1883,9 +1886,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.0" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "codespan-reporting" @@ -1894,7 +1897,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" dependencies = [ "termcolor", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] @@ -1913,7 +1916,8 @@ dependencies = [ name = "collectives-paseo-runtime" version = "1.0.0" dependencies = [ - "collectives-polkadot-runtime-constants 1.0.0 (git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0)", + "collectives-paseo-runtime-constants", + "collectives-polkadot-runtime-constants", "cumulus-pallet-aura-ext", "cumulus-pallet-parachain-system", "cumulus-pallet-session-benchmarking", @@ -1949,6 +1953,7 @@ dependencies = [ "pallet-salary", "pallet-scheduler", "pallet-session", + "pallet-sudo", "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", @@ -1990,7 +1995,7 @@ dependencies = [ ] [[package]] -name = "collectives-polkadot-runtime-constants" +name = "collectives-paseo-runtime-constants" version = "1.0.0" [[package]] @@ -2000,9 +2005,9 @@ source = "git+https://github.com/polkadot-fellows/runtimes?tag=v1.4.0#f947ebfb69 [[package]] name = "colorchoice" -version = "1.0.0" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "combine" @@ -2022,31 +2027,31 @@ checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" [[package]] name = "concurrent-queue" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16048cd947b08fa32c24458a22f5dc5e835264f689f4f5653210c69fd107363" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" dependencies = [ "crossbeam-utils", ] [[package]] name = "console" -version = "0.15.8" +version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +checksum = "ea3c6ecd8059b57859df5c69830340ed3c41d30e3da0c1cbed90a96ac853041b" dependencies = [ "encode_unicode", - "lazy_static", "libc", - "unicode-width", - "windows-sys 0.52.0", + "once_cell", + "unicode-width 0.2.0", + "windows-sys 0.59.0", ] [[package]] name = "const-hex" -version = "1.11.1" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efbd12d49ab0eaf8193ba9175e45f56bbc2e4b27d57b8cfe62aa47942a46b9a9" +checksum = "4b0485bab839b018a8f1723fc5391819fea5f8f0f32288ef8a735fd096b6160c" dependencies = [ "cfg-if", "cpufeatures", @@ -2057,15 +2062,15 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.9.5" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "const-random" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaf16c9c2c612020bcfd042e170f6e32de9b9d75adb5277cdbbd2e2c8c8299a" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" dependencies = [ "const-random-macro", ] @@ -2076,16 +2081,36 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom", + "getrandom 0.2.15", "once_cell", "tiny-keccak", ] +[[package]] +name = "const_format" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126f97965c8ad46d6d9163268ff28432e8f6a1196a55578867832e3049df63dd" +dependencies = [ + "const_format_proc_macros", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + [[package]] name = "constant_time_eq" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "constcat" @@ -2111,9 +2136,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core2" @@ -2245,9 +2270,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.11" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" dependencies = [ "libc", ] @@ -2367,18 +2392,18 @@ checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] [[package]] name = "crossbeam-deque" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" dependencies = [ "crossbeam-epoch", "crossbeam-utils", @@ -2395,15 +2420,15 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" [[package]] name = "crunchy" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929" [[package]] name = "crypto-bigint" @@ -2413,7 +2438,7 @@ checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", "rand_core", - "subtle 2.5.0", + "subtle 2.6.1", "zeroize", ] @@ -2445,7 +2470,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ "generic-array 0.14.7", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -2518,7 +2543,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "befbaf3a1ce23ac8476481484fef5f4d500cbd15b4dad6380ce1d28134b0c1f7" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -2680,8 +2705,8 @@ dependencies = [ "curve25519-dalek-derive", "digest 0.10.7", "fiat-crypto", - "rustc_version 0.4.0", - "subtle 2.5.0", + "rustc_version 0.4.1", + "subtle 2.6.1", "zeroize", ] @@ -2698,59 +2723,74 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.110" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7129e341034ecb940c9072817cd9007974ea696844fc4dd582dc1653a7fbe2e8" +checksum = "dc49567e08c72902f4cbc7242ee8d874ec9cbe97fbabf77b4e0e1f447513e13a" dependencies = [ "cc", + "cxxbridge-cmd", "cxxbridge-flags", "cxxbridge-macro", + "foldhash", "link-cplusplus", ] [[package]] name = "cxx-build" -version = "1.0.110" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2a24f3f5f8eed71936f21e570436f024f5c2e25628f7496aa7ccd03b90109d5" +checksum = "fe46b5309c99e9775e7a338c98e4097455f52db5b684fd793ca22848fde6e371" dependencies = [ "cc", "codespan-reporting", - "once_cell", "proc-macro2", "quote", "scratch", "syn 2.0.98", ] +[[package]] +name = "cxxbridge-cmd" +version = "1.0.140" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4315c4ce8d23c26d87f2f83698725fd5718d8e6ace4a9093da2664d23294d372" +dependencies = [ + "clap", + "codespan-reporting", + "proc-macro2", + "quote", + "syn 2.0.98", +] + [[package]] name = "cxxbridge-flags" -version = "1.0.110" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06fdd177fc61050d63f67f5bd6351fac6ab5526694ea8e359cd9cd3b75857f44" +checksum = "f55d69deb3a92f610a60ecc524a72c7374b6dc822f8fb7bb4e5d9473f10530c4" [[package]] name = "cxxbridge-macro" -version = "1.0.110" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "587663dd5fb3d10932c8aecfe7c844db1bcf0aee93eeab08fac13dc1212c2e7f" +checksum = "5bee7a1d9b5091462002c2b8de2a4ed0f0fde011d503cc272633f66075bd5141" dependencies = [ "proc-macro2", "quote", + "rustversion", "syn 2.0.98", ] [[package]] name = "data-encoding" -version = "2.5.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" +checksum = "575f75dfd25738df5b91b8e43e14d44bda14637a58fae779fd2b064f8bf3e010" [[package]] name = "data-encoding-macro" -version = "0.1.14" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20c01c06f5f429efdf2bae21eb67c28b3df3cf85b7dd2d8ef09c0838dac5d33e" +checksum = "9f9724adfcf41f45bf652b3995837669d73c4d49a1b5ac1ff82905ac7d9b5558" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -2758,19 +2798,19 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.12" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0047d07f2c89b17dd631c80450d69841a6b5d7fb17278cbc43d7e4cfcf2576f3" +checksum = "18e4fdb82bd54a12e42fb58a800dcae6b9e13982238ce2296dc3570b92148e1f" dependencies = [ "data-encoding", - "syn 1.0.109", + "syn 2.0.98", ] [[package]] name = "der" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" +checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", "zeroize", @@ -2796,7 +2836,7 @@ version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5cd0a5c643689626bec213c4d8bd4d96acc8ffdb4ad4bb6bc16abf27d5f4b553" dependencies = [ - "asn1-rs 0.6.1", + "asn1-rs 0.6.2", "displaydoc", "nom", "num-bigint", @@ -2806,9 +2846,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.10" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eb30d70a07a3b04884d2677f06bec33509dc67ca60d92949e5535352d3191dc" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" dependencies = [ "powerfmt", ] @@ -2837,15 +2877,35 @@ dependencies = [ [[package]] name = "derive_more" -version = "0.99.17" +version = "0.99.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +checksum = "3da29a38df43d6f156149c9b43ded5e018ddff2a855cf2cfd62e8cd7d079c69f" dependencies = [ "convert_case", "proc-macro2", "quote", - "rustc_version 0.4.0", - "syn 1.0.109", + "rustc_version 0.4.1", + "syn 2.0.98", +] + +[[package]] +name = "derive_more" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", ] [[package]] @@ -2881,7 +2941,7 @@ dependencies = [ "block-buffer 0.10.4", "const-oid", "crypto-common", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -2907,9 +2967,9 @@ dependencies = [ [[package]] name = "displaydoc" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", @@ -2918,18 +2978,18 @@ dependencies = [ [[package]] name = "docify" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a2f138ad521dc4a2ced1a4576148a6a610b4c5923933b062a263130a6802ce" +checksum = "a772b62b1837c8f060432ddcc10b17aae1453ef17617a99bc07789252d2a5896" dependencies = [ "docify_macros", ] [[package]] name = "docify_macros" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a081e51fb188742f5a7a1164ad752121abcb22874b21e2c3b0dd040c515fdad" +checksum = "60e6be249b0a462a14784a99b19bf35a667bb5e09de611738bb7362fa4c95ff7" dependencies = [ "common-path", "derive-syn-parse", @@ -2939,7 +2999,7 @@ dependencies = [ "regex", "syn 2.0.98", "termcolor", - "toml 0.8.12", + "toml 0.8.20", "walkdir", ] @@ -2957,15 +3017,15 @@ checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" [[package]] name = "dunce" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "dyn-clonable" -version = "0.9.0" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4" +checksum = "a36efbb9bfd58e1723780aa04b61aba95ace6a05d9ffabfdb0b43672552f0805" dependencies = [ "dyn-clonable-impl", "dyn-clone", @@ -2973,20 +3033,20 @@ dependencies = [ [[package]] name = "dyn-clonable-impl" -version = "0.9.0" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" +checksum = "7e8671d54058979a37a26f3511fbf8d198ba1aa35ffb202c42587d918d77213a" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.98", ] [[package]] name = "dyn-clone" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" +checksum = "feeef44e73baff3a26d371801df019877a9866a8c493d315ab00177843314f35" [[package]] name = "ecdsa" @@ -3024,7 +3084,7 @@ dependencies = [ "rand_core", "serde", "sha2 0.10.8", - "subtle 2.5.0", + "subtle 2.6.1", "zeroize", ] @@ -3036,7 +3096,7 @@ checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek", "ed25519", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "hex", "rand_core", "sha2 0.10.8", @@ -3045,9 +3105,9 @@ dependencies = [ [[package]] name = "either" -version = "1.11.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "elliptic-curve" @@ -3065,7 +3125,7 @@ dependencies = [ "rand_core", "sec1", "serdect", - "subtle 2.5.0", + "subtle 2.6.1", "zeroize", ] @@ -3107,9 +3167,9 @@ dependencies = [ [[package]] name = "encode_unicode" -version = "0.3.6" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" [[package]] name = "enum-as-inner" @@ -3125,11 +3185,11 @@ dependencies = [ [[package]] name = "enum-as-inner" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ffccbb6966c05b32ef8fbac435df276c4ae4d3dc55a8cd0eb9745e6c12f546a" +checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" dependencies = [ - "heck 0.4.1", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.98", @@ -3137,18 +3197,18 @@ dependencies = [ [[package]] name = "enumflags2" -version = "0.7.8" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5998b4f30320c9d93aed72f63af821bfdac50465b75428fce77b48ec482c3939" +checksum = "ba2f4b465f5318854c6f8dd686ede6c0a9dc67d4b1ac241cf0eb51521a309147" dependencies = [ "enumflags2_derive", ] [[package]] name = "enumflags2_derive" -version = "0.7.8" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246" +checksum = "fc4caf64a58d7a6d65ab00639b046ff54399a39f5f2554728895ace4b297cd79" dependencies = [ "proc-macro2", "quote", @@ -3157,9 +3217,9 @@ dependencies = [ [[package]] name = "enumn" -version = "0.1.12" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" +checksum = "2f9ed6b3789237c8a0c1c505af1c7eb2c560df6186f01b098c3a1064ea532f38" dependencies = [ "proc-macro2", "quote", @@ -3168,9 +3228,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece" +checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" dependencies = [ "humantime", "is-terminal", @@ -3193,12 +3253,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.8" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3250,33 +3310,35 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "event-listener" -version = "4.0.0" +version = "5.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "770d968249b5d99410d61f5bf89057f3199a077a04d087092f58e7d10692baae" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.13", + "pin-project-lite", ] [[package]] name = "event-listener-strategy" -version = "0.4.0" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" dependencies = [ - "event-listener 4.0.0", - "pin-project-lite 0.2.13", + "event-listener 5.4.0", + "pin-project-lite", ] [[package]] name = "expander" -version = "2.0.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f86a749cf851891866c10515ef6c299b5c69661465e9c3bbe7e07a2b77fb0f7" +checksum = "e2c470c71d91ecbd179935b24170459e926382eaaa86b590b78814e180d8a8e2" dependencies = [ "blake2 0.10.6", + "file-guard", "fs-err", + "prettyplease 0.2.29", "proc-macro2", "quote", "syn 2.0.98", @@ -3296,9 +3358,9 @@ checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" [[package]] name = "fastrand" -version = "2.0.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "fastrlp" @@ -3311,6 +3373,17 @@ dependencies = [ "bytes", ] +[[package]] +name = "fastrlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce8dba4714ef14b8274c371879b175aa55b16b30f269663f19d576f380018dc4" +dependencies = [ + "arrayvec", + "auto_impl", + "bytes", +] + [[package]] name = "ff" version = "0.13.0" @@ -3318,14 +3391,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] name = "fiat-crypto" -version = "0.2.6" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "file-guard" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1676f435fc1dadde4d03e43f5d62b259e1ce5f40bd4ffb21db2b42ebe59c1382" +checksum = "21ef72acf95ec3d7dbf61275be556299490a245f017cf084bd23b4f68cf9407c" +dependencies = [ + "libc", + "winapi", +] [[package]] name = "file-per-thread-logger" @@ -3339,21 +3422,21 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.23" +version = "0.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" +checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.4.1", - "windows-sys 0.52.0", + "libredox", + "windows-sys 0.59.0", ] [[package]] name = "finality-grandpa" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36530797b9bf31cd4ff126dcfee8170f86b00cfdcea3269d73133cc0415945c3" +checksum = "b4f8f43dc520133541781ec03a8cab158ae8b7f7169cdf22e9050aa6cf0fbdfc" dependencies = [ "either", "futures", @@ -3398,6 +3481,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f" + [[package]] name = "foreign-types" version = "0.3.2" @@ -3415,9 +3504,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "fork-tree" -version = "13.0.0" +version = "13.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad4cc2314d3be8b49c555f6a7e550f5559e73ffd6ef9690ffbd9a706774452e0" +checksum = "e6736bef9fd175fafbb97495565456651c43ccac2ae550faee709e11534e3621" dependencies = [ "parity-scale-codec", ] @@ -3468,7 +3557,7 @@ version = "14.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8156f209055d352994ecd49e19658c6b469d7c6de923bd79868957d0dcfb6f71" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -3617,7 +3706,7 @@ dependencies = [ "frame-support-procedural-tools", "itertools 0.11.0", "macro_magic", - "proc-macro-warning 1.0.0", + "proc-macro-warning 1.0.2", "proc-macro2", "quote", "sp-crypto-hashing", @@ -3626,12 +3715,12 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" -version = "13.0.0" +version = "13.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bead15a320be1764cdd50458c4cfacb23e0cee65f64f500f8e34136a94c7eeca" +checksum = "81a088fd6fda5f53ff0c17fc7551ce8bd0ead14ba742228443c8196296a7369b" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -3724,9 +3813,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -3749,9 +3838,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -3759,15 +3848,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -3777,25 +3866,25 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-lite" -version = "2.1.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aeee267a1883f7ebef3700f262d2d54de95dfaf38189015a74fdc4e0c7ad8143" +checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532" dependencies = [ "futures-core", - "pin-project-lite 0.2.13", + "pin-project-lite", ] [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", @@ -3809,20 +3898,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35bd3cf68c183738046838e300353e4716c674dc5e56890de4826801a6622a28" dependencies = [ "futures-io", - "rustls 0.21.10", + "rustls 0.21.12", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-timer" @@ -3832,9 +3921,9 @@ checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -3843,7 +3932,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.13", + "pin-project-lite", "pin-utils", "slab", ] @@ -3879,13 +3968,25 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" dependencies = [ "cfg-if", "libc", - "wasi", + "wasi 0.13.3+wasi-0.2.2", + "windows-targets 0.52.6", ] [[package]] @@ -3900,11 +4001,11 @@ dependencies = [ [[package]] name = "ghash" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" +checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1" dependencies = [ - "opaque-debug 0.3.0", + "opaque-debug 0.3.1", "polyval", ] @@ -3929,6 +4030,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" + [[package]] name = "group" version = "0.13.0" @@ -3937,22 +4044,22 @@ checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] name = "h2" -version = "0.3.22" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", "futures-core", "futures-sink", "futures-util", - "http 0.2.11", - "indexmap 2.2.6", + "http 0.2.12", + "indexmap 2.7.1", "slab", "tokio", "tokio-util", @@ -3961,17 +4068,17 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.5" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab" +checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" dependencies = [ "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "http 1.1.0", - "indexmap 2.2.6", + "http 1.2.0", + "indexmap 2.7.1", "slab", "tokio", "tokio-util", @@ -4008,17 +4115,28 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.8", + "ahash 0.8.11", ] [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash 0.8.11", + "allocator-api2", +] + +[[package]] +name = "hashbrown" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" dependencies = [ - "ahash 0.8.8", "allocator-api2", + "equivalent", + "foldhash", ] [[package]] @@ -4027,7 +4145,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" dependencies = [ - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -4044,9 +4162,15 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" + +[[package]] +name = "hermit-abi" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" [[package]] name = "hex" @@ -4107,11 +4231,11 @@ dependencies = [ [[package]] name = "home" -version = "0.5.9" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -4127,9 +4251,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ "bytes", "fnv", @@ -4138,9 +4262,9 @@ dependencies = [ [[package]] name = "http" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" dependencies = [ "bytes", "fnv", @@ -4149,13 +4273,13 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", - "http 0.2.11", - "pin-project-lite 0.2.13", + "http 0.2.12", + "pin-project-lite", ] [[package]] @@ -4165,7 +4289,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", - "http 1.1.0", + "http 1.2.0", ] [[package]] @@ -4176,16 +4300,16 @@ checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", "futures-util", - "http 1.1.0", + "http 1.2.0", "http-body 1.0.1", - "pin-project-lite 0.2.13", + "pin-project-lite", ] [[package]] name = "httparse" -version = "1.8.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" +checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" [[package]] name = "httpdate" @@ -4201,22 +4325,22 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.27" +version = "0.14.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" +checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" dependencies = [ "bytes", "futures-channel", "futures-core", "futures-util", - "h2 0.3.22", - "http 0.2.11", - "http-body 0.4.5", + "h2 0.3.26", + "http 0.2.12", + "http-body 0.4.6", "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.13", - "socket2 0.4.10", + "pin-project-lite", + "socket2 0.5.8", "tokio", "tower-service", "tracing", @@ -4225,19 +4349,20 @@ dependencies = [ [[package]] name = "hyper" -version = "1.4.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" +checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.5", - "http 1.1.0", + "h2 0.4.7", + "http 1.2.0", "http-body 1.0.1", "httparse", + "httpdate", "itoa", - "pin-project-lite 0.2.13", + "pin-project-lite", "smallvec", "tokio", "want", @@ -4245,54 +4370,53 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.2" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155" +checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" dependencies = [ "futures-util", - "http 1.1.0", - "hyper 1.4.1", + "http 1.2.0", + "hyper 1.6.0", "hyper-util", "log", - "rustls 0.23.11", + "rustls 0.23.23", "rustls-pki-types", "tokio", - "tokio-rustls 0.26.0", + "tokio-rustls 0.26.1", "tower-service", ] [[package]] name = "hyper-util" -version = "0.1.6" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" dependencies = [ "bytes", "futures-channel", "futures-util", - "http 1.1.0", + "http 1.2.0", "http-body 1.0.1", - "hyper 1.4.1", - "pin-project-lite 0.2.13", - "socket2 0.5.7", + "hyper 1.6.0", + "pin-project-lite", + "socket2 0.5.8", "tokio", - "tower", "tower-service", "tracing", ] [[package]] name = "iana-time-zone" -version = "0.1.58" +version = "0.1.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "windows-core", + "windows-core 0.52.0", ] [[package]] @@ -4305,34 +4429,163 @@ dependencies = [ ] [[package]] -name = "idna" -version = "0.2.3" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", ] [[package]] -name = "idna" -version = "0.4.0" +name = "icu_locid" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", ] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_locid_transform" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "idna" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +dependencies = [ + "matches", + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "idna" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", ] [[package]] @@ -4347,9 +4600,9 @@ dependencies = [ [[package]] name = "if-watch" -version = "3.2.0" +version = "3.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6b0422c86d7ce0e97169cc42e04ae643caf278874a7a3c87b8150a220dc7e1e" +checksum = "cdf9d64cfcf380606e64f9a0bcf493616b65331199f984151a6fa11a7b3cde38" dependencies = [ "async-io", "core-foundation", @@ -4358,6 +4611,10 @@ dependencies = [ "if-addrs", "ipnet", "log", + "netlink-packet-core", + "netlink-packet-route", + "netlink-proto", + "netlink-sys", "rtnetlink", "system-configuration", "tokio", @@ -4374,8 +4631,8 @@ dependencies = [ "attohttpc", "bytes", "futures", - "http 0.2.11", - "hyper 0.14.27", + "http 0.2.12", + "hyper 0.14.32", "log", "rand", "tokio", @@ -4423,29 +4680,29 @@ dependencies = [ [[package]] name = "impl-trait-for-tuples" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" +checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.98", ] [[package]] name = "include_dir" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18762faeff7122e89e0857b02f7ce6fcc0d101d5e9ad2ad7846cc01d61b7f19e" +checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" dependencies = [ "include_dir_macros", ] [[package]] name = "include_dir_macros" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b139284b5cf57ecfa712bcc66950bb635b31aff41c188e8a4cfc758eca374a3f" +checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" dependencies = [ "proc-macro2", "quote", @@ -4464,25 +4721,25 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", - "hashbrown 0.14.3", + "hashbrown 0.15.2", ] [[package]] name = "indicatif" -version = "0.17.7" +version = "0.17.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25" +checksum = "183b3088984b400f4cfac3620d5e076c84da5364016b4f49473de574b2586235" dependencies = [ "console", - "instant", "number_prefix", "portable-atomic", - "unicode-width", + "unicode-width 0.2.0", + "web-time", ] [[package]] @@ -4496,9 +4753,9 @@ dependencies = [ [[package]] name = "instant" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", ] @@ -4532,7 +4789,7 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi", + "hermit-abi 0.3.9", "libc", "windows-sys 0.48.0", ] @@ -4549,7 +4806,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.5.7", + "socket2 0.5.8", "widestring", "windows-sys 0.48.0", "winreg", @@ -4557,21 +4814,27 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.9.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" [[package]] name = "is-terminal" -version = "0.4.9" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" +checksum = "e19b23d53f35ce9f56aebc7d1bb4e6ac1e9c0db7ac85c8d1760c04379edced37" dependencies = [ - "hermit-abi", - "rustix 0.38.31", - "windows-sys 0.48.0", + "hermit-abi 0.4.0", + "libc", + "windows-sys 0.59.0", ] +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + [[package]] name = "itertools" version = "0.10.5" @@ -4601,9 +4864,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.10" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "jni" @@ -4615,7 +4878,7 @@ dependencies = [ "combine", "jni-sys", "log", - "thiserror", + "thiserror 1.0.69", "walkdir", ] @@ -4627,19 +4890,20 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "jobserver" -version = "0.1.27" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.66" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -4665,16 +4929,16 @@ checksum = "def0fd41e2f53118bd1620478d12305b2c75feef57ea1f93ef70568c98081b7e" dependencies = [ "base64 0.22.1", "futures-util", - "http 1.1.0", + "http 1.2.0", "jsonrpsee-core", "pin-project", - "rustls 0.23.11", + "rustls 0.23.23", "rustls-pki-types", "rustls-platform-verifier", - "soketto 0.8.0", - "thiserror", + "soketto", + "thiserror 1.0.69", "tokio", - "tokio-rustls 0.26.0", + "tokio-rustls 0.26.1", "tokio-util", "tracing", "url", @@ -4690,7 +4954,7 @@ dependencies = [ "bytes", "futures-timer", "futures-util", - "http 1.1.0", + "http 1.2.0", "http-body 1.0.1", "http-body-util", "jsonrpsee-types", @@ -4700,7 +4964,7 @@ dependencies = [ "rustc-hash 2.1.1", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "tracing", @@ -4715,16 +4979,16 @@ dependencies = [ "async-trait", "base64 0.22.1", "http-body 1.0.1", - "hyper 1.4.1", + "hyper 1.6.0", "hyper-rustls", "hyper-util", "jsonrpsee-core", "jsonrpsee-types", - "rustls 0.23.11", + "rustls 0.23.23", "rustls-platform-verifier", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tower", "tracing", @@ -4738,7 +5002,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6fcae0c6c159e11541080f1f829873d8f374f81eda0abc67695a13fc8dc1a580" dependencies = [ "heck 0.5.0", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -4750,10 +5014,10 @@ version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ddb81adb1a5ae9182df379e374a79e24e992334e7346af4d065ae5b2acb8d4c6" dependencies = [ - "http 1.1.0", + "http 1.2.0", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -4762,7 +5026,7 @@ version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f4f3642a292f5b76d8a16af5c88c16a0860f2ccc778104e5c848b28183d9538" dependencies = [ - "http 1.1.0", + "http 1.2.0", "jsonrpsee-client-transport", "jsonrpsee-core", "jsonrpsee-types", @@ -4771,9 +5035,9 @@ dependencies = [ [[package]] name = "k256" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" +checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b" dependencies = [ "cfg-if", "ecdsa", @@ -4785,9 +5049,9 @@ dependencies = [ [[package]] name = "keccak" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" dependencies = [ "cpufeatures", ] @@ -4824,21 +5088,21 @@ dependencies = [ [[package]] name = "lazy_static" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.152" +version = "0.2.169" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" [[package]] name = "libm" -version = "0.2.8" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "libp2p" @@ -4850,7 +5114,7 @@ dependencies = [ "either", "futures", "futures-timer", - "getrandom", + "getrandom 0.2.15", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -4871,10 +5135,10 @@ dependencies = [ "libp2p-wasm-ext", "libp2p-websocket", "libp2p-yamux", - "multiaddr 0.18.1", + "multiaddr 0.18.2", "pin-project", "rw-stream-sink", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -4914,8 +5178,8 @@ dependencies = [ "instant", "libp2p-identity", "log", - "multiaddr 0.18.1", - "multihash 0.19.1", + "multiaddr 0.18.2", + "multihash 0.19.3", "multistream-select", "once_cell", "parking_lot 0.12.3", @@ -4924,7 +5188,7 @@ dependencies = [ "rand", "rw-stream-sink", "smallvec", - "thiserror", + "thiserror 1.0.69", "unsigned-varint 0.7.2", "void", ] @@ -4960,11 +5224,11 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "lru 0.12.3", + "lru 0.12.5", "quick-protobuf", "quick-protobuf-codec", "smallvec", - "thiserror", + "thiserror 1.0.69", "void", ] @@ -4977,11 +5241,11 @@ dependencies = [ "bs58 0.5.1", "ed25519-dalek", "hkdf", - "multihash 0.19.1", + "multihash 0.19.3", "quick-protobuf", "rand", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", "tracing", "zeroize", ] @@ -5009,7 +5273,7 @@ dependencies = [ "rand", "sha2 0.10.8", "smallvec", - "thiserror", + "thiserror 1.0.69", "uint", "unsigned-varint 0.7.2", "void", @@ -5030,7 +5294,7 @@ dependencies = [ "log", "rand", "smallvec", - "socket2 0.5.7", + "socket2 0.5.8", "tokio", "trust-dns-proto 0.22.0", "void", @@ -5065,15 +5329,15 @@ dependencies = [ "libp2p-core", "libp2p-identity", "log", - "multiaddr 0.18.1", - "multihash 0.19.1", + "multiaddr 0.18.2", + "multihash 0.19.3", "once_cell", "quick-protobuf", "rand", "sha2 0.10.8", "snow", "static_assertions", - "thiserror", + "thiserror 1.0.69", "x25519-dalek", "zeroize", ] @@ -5114,9 +5378,9 @@ dependencies = [ "quinn 0.10.2", "rand", "ring 0.16.20", - "rustls 0.21.10", - "socket2 0.5.7", - "thiserror", + "rustls 0.21.12", + "socket2 0.5.8", + "thiserror 1.0.69", "tokio", ] @@ -5187,7 +5451,7 @@ dependencies = [ "libp2p-core", "libp2p-identity", "log", - "socket2 0.5.7", + "socket2 0.5.8", "tokio", ] @@ -5203,9 +5467,9 @@ dependencies = [ "libp2p-identity", "rcgen", "ring 0.16.20", - "rustls 0.21.10", + "rustls 0.21.12", "rustls-webpki 0.101.7", - "thiserror", + "thiserror 1.0.69", "x509-parser 0.15.1", "yasna", ] @@ -5242,9 +5506,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3facf0691bab65f571bc97c6c65ffa836248ca631d631b7691ac91deb7fceb5f" +checksum = "004ee9c4a4631435169aee6aad2f62e3984dc031c43b6d29731e8e82a016c538" dependencies = [ "either", "futures", @@ -5253,9 +5517,10 @@ dependencies = [ "libp2p-identity", "log", "parking_lot 0.12.3", - "quicksink", + "pin-project-lite", "rw-stream-sink", - "soketto 0.7.1", + "soketto", + "thiserror 1.0.69", "url", "webpki-roots 0.25.4", ] @@ -5269,19 +5534,19 @@ dependencies = [ "futures", "libp2p-core", "log", - "thiserror", + "thiserror 1.0.69", "yamux", ] [[package]] name = "libredox" -version = "0.0.1" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8" +checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "libc", - "redox_syscall 0.4.1", + "redox_syscall 0.5.8", ] [[package]] @@ -5311,7 +5576,7 @@ checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" dependencies = [ "crunchy", "digest 0.9.0", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -5349,18 +5614,18 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "linked_hash_set" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47186c6da4d81ca383c7c47c1bfc80f4b95f4720514d860a5407aaf4233f9588" +checksum = "bae85b5be22d9843c80e5fc80e9b64c8a3b1f98f867c709956eca3efff4e92e2" dependencies = [ "linked-hash-map", ] [[package]] name = "linregress" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4de04dcecc58d366391f9920245b85ffa684558a5ef6e7736e754347c3aea9c2" +checksum = "a9eda9dcf4f2a99787827661f312ac3219292549c2ee992bf9a6248ffb066bf7" dependencies = [ "nalgebra", ] @@ -5373,9 +5638,9 @@ checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" [[package]] name = "linux-raw-sys" -version = "0.4.12" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] name = "lioness" @@ -5389,6 +5654,12 @@ dependencies = [ "keystream", ] +[[package]] +name = "litemap" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" + [[package]] name = "litep2p" version = "0.6.2" @@ -5403,7 +5674,7 @@ dependencies = [ "futures", "futures-timer", "hex-literal", - "indexmap 2.2.6", + "indexmap 2.7.1", "libc", "mockall 0.12.1", "multiaddr 0.17.1", @@ -5424,10 +5695,10 @@ dependencies = [ "simple-dns", "smallvec", "snow", - "socket2 0.5.7", + "socket2 0.5.8", "static_assertions", "str0m", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "tokio-tungstenite", @@ -5446,9 +5717,9 @@ dependencies = [ [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -5471,11 +5742,11 @@ dependencies = [ [[package]] name = "lru" -version = "0.12.3" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" dependencies = [ - "hashbrown 0.14.3", + "hashbrown 0.15.2", ] [[package]] @@ -5573,9 +5844,9 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "matrixmultiply" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7574c1cf36da4798ab73da5b215bbf444f50718207754cb522201d78d1cd0ff2" +checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a" dependencies = [ "autocfg", "rawpointer", @@ -5583,9 +5854,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memfd" @@ -5593,14 +5864,14 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.31", + "rustix 0.38.44", ] [[package]] name = "memmap2" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322" +checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" dependencies = [ "libc", ] @@ -5657,22 +5928,22 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" dependencies = [ - "adler", + "adler2", ] [[package]] name = "mio" -version = "0.8.10" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", - "wasi", - "windows-sys 0.48.0", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.52.0", ] [[package]] @@ -5695,8 +5966,8 @@ dependencies = [ "rand", "rand_chacha", "rand_distr", - "subtle 2.5.0", - "thiserror", + "subtle 2.6.1", + "thiserror 1.0.69", "zeroize", ] @@ -5726,7 +5997,7 @@ dependencies = [ "fragile", "lazy_static", "mockall_derive 0.12.1", - "predicates 3.1.0", + "predicates 3.1.3", "predicates-tree", ] @@ -5775,20 +6046,20 @@ dependencies = [ [[package]] name = "multiaddr" -version = "0.18.1" +version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b852bc02a2da5feed68cd14fa50d0774b92790a5bdbfa932a813926c8472070" +checksum = "fe6351f60b488e04c1d21bc69e56b89cb3f5e8f5d22557d6e8031bdfd79b6961" dependencies = [ "arrayref", "byteorder", "data-encoding", "libp2p-identity", "multibase", - "multihash 0.19.1", + "multihash 0.19.3", "percent-encoding", "serde", "static_assertions", - "unsigned-varint 0.7.2", + "unsigned-varint 0.8.0", "url", ] @@ -5839,21 +6110,21 @@ dependencies = [ [[package]] name = "multihash" -version = "0.19.1" +version = "0.19.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076d548d76a0e2a0d4ab471d0b1c36c577786dfc4471242035d97a12a735c492" +checksum = "6b430e7953c29dd6a09afc29ff0bb69c6e306329ee6794700aee27b76a1aea8d" dependencies = [ "core2", - "unsigned-varint 0.7.2", + "unsigned-varint 0.8.0", ] [[package]] name = "multihash-derive" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc076939022111618a5026d3be019fd8b366e76314538ff9a1b59ffbcbf98bcd" +checksum = "1d6d4752e6230d8ef7adf7bd5d8c4b1f6561c1014c5ba9a37445ccefe18aa1db" dependencies = [ - "proc-macro-crate 1.3.1", + "proc-macro-crate 1.1.3", "proc-macro-error", "proc-macro2", "quote", @@ -5867,6 +6138,12 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" +[[package]] +name = "multimap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" + [[package]] name = "multistream-select" version = "0.13.0" @@ -5883,13 +6160,12 @@ dependencies = [ [[package]] name = "nalgebra" -version = "0.32.3" +version = "0.33.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "307ed9b18cc2423f29e83f84fd23a8e73628727990181f18641a8b5dc2ab1caa" +checksum = "26aecdf64b707efd1310e3544d709c5c0ac61c13756046aaaba41be5c4f66a3b" dependencies = [ "approx", "matrixmultiply", - "nalgebra-macros", "num-complex", "num-rational", "num-traits", @@ -5897,34 +6173,22 @@ dependencies = [ "typenum", ] -[[package]] -name = "nalgebra-macros" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91761aed67d03ad966ef783ae962ef9bbaca728d2dd7ceb7939ec110fffad998" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "netlink-packet-core" -version = "0.4.2" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345b8ab5bd4e71a2986663e88c56856699d060e78e152e6e9d7966fcd5491297" +checksum = "72724faf704479d67b388da142b186f916188505e7e0b26719019c525882eda4" dependencies = [ "anyhow", "byteorder", - "libc", "netlink-packet-utils", ] [[package]] name = "netlink-packet-route" -version = "0.12.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9ea4302b9759a7a88242299225ea3688e63c85ea136371bb6cf94fd674efaab" +checksum = "053998cea5a306971f88580d0829e90f270f940befd7cf928da179d4187a5a66" dependencies = [ "anyhow", "bitflags 1.3.2", @@ -5943,29 +6207,28 @@ dependencies = [ "anyhow", "byteorder", "paste", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "netlink-proto" -version = "0.10.0" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65b4b14489ab424703c092062176d52ba55485a89c076b4f9db05092b7223aa6" +checksum = "72452e012c2f8d612410d89eea01e2d9b56205274abb35d53f60200b2ec41d60" dependencies = [ "bytes", "futures", "log", "netlink-packet-core", "netlink-sys", - "thiserror", - "tokio", + "thiserror 2.0.11", ] [[package]] name = "netlink-sys" -version = "0.8.5" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6471bf08e7ac0135876a9581bf3217ef0333c191c128d34878079f42ee150411" +checksum = "16c903aa70590cb93691bf97a767c8d1d6122d2cc9070433deb3bbf36ce8bd23" dependencies = [ "bytes", "futures", @@ -5982,15 +6245,15 @@ checksum = "a4a43439bf756eed340bdf8feba761e2d50c7d47175d87545cd5cbe4a137c4d1" dependencies = [ "cc", "libc", - "thiserror", + "thiserror 1.0.69", "winapi", ] [[package]] name = "nix" -version = "0.24.3" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" dependencies = [ "bitflags 1.3.2", "cfg-if", @@ -6031,20 +6294,19 @@ dependencies = [ [[package]] name = "num-bigint" -version = "0.4.4" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" dependencies = [ - "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-complex" -version = "0.4.4" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" dependencies = [ "num-traits", ] @@ -6067,30 +6329,29 @@ dependencies = [ [[package]] name = "num-integer" -version = "0.1.45" +version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ - "autocfg", "num-traits", ] [[package]] name = "num-rational" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" dependencies = [ - "autocfg", + "num-bigint", "num-integer", "num-traits", ] [[package]] name = "num-traits" -version = "0.2.17" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", "libm", @@ -6102,7 +6363,7 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi", + "hermit-abi 0.3.9", "libc", ] @@ -6133,6 +6394,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.36.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" +dependencies = [ + "memchr", +] + [[package]] name = "oid-registry" version = "0.6.1" @@ -6144,18 +6414,18 @@ dependencies = [ [[package]] name = "oid-registry" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c958dd45046245b9c3c2547369bb634eb461670b2e7e0de552905801a648d1d" +checksum = "a8d8034d9489cdaf79228eb9f6a3b8d7bb32ba00d6645ebd48eef4077ceb5bd9" dependencies = [ - "asn1-rs 0.6.1", + "asn1-rs 0.6.2", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" [[package]] name = "opaque-debug" @@ -6165,17 +6435,17 @@ checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" [[package]] name = "opaque-debug" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "openssl" -version = "0.10.64" +version = "0.10.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" +checksum = "61cfb4e166a8bb8c9b55c500bc2308550148ece889be90f609377e58140f42c6" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "cfg-if", "foreign-types", "libc", @@ -6197,24 +6467,24 @@ dependencies = [ [[package]] name = "openssl-probe" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" [[package]] name = "openssl-src" -version = "300.3.1+3.3.1" +version = "300.4.2+3.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7259953d42a81bf137fbbd73bd30a8e1914d6dce43c2b90ed575783a22608b91" +checksum = "168ce4e058f975fe43e89d9ccf78ca668601887ae736090aacc23ae353c298e2" dependencies = [ "cc", ] [[package]] name = "openssl-sys" -version = "0.9.102" +version = "0.9.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" +checksum = "8b22d5b84be05a8d6947c7cb71f7c849aa0f112acd4bf51c2a7c1c988ac0a9dc" dependencies = [ "cc", "libc", @@ -7221,7 +7491,7 @@ version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db5e6b1d8ee9d3f6894c5abd8c3e17737ed738c9854f87bfd16239741b7f4d5d" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -7582,29 +7852,31 @@ checksum = "16b56e3a2420138bdb970f84dfb9c774aea80fa0e7371549eedec0d80c209c67" [[package]] name = "parity-scale-codec" -version = "3.6.12" +version = "3.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" +checksum = "c9fde3d0718baf5bc92f577d652001da0f8d54cd03a7974e118d04fc888dc23d" dependencies = [ "arrayvec", "bitvec", "byte-slice-cast", "bytes", + "const_format", "impl-trait-for-tuples", "parity-scale-codec-derive", + "rustversion", "serde", ] [[package]] name = "parity-scale-codec-derive" -version = "3.6.12" +version = "3.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" +checksum = "581c837bb6b9541ce7faa9377c20616e4fb7650f6b0f68bc93c827ee504fb7b3" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.98", ] [[package]] @@ -7644,9 +7916,9 @@ checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" [[package]] name = "parking" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" [[package]] name = "parking_lot" @@ -7666,7 +7938,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", - "parking_lot_core 0.9.9", + "parking_lot_core 0.9.10", ] [[package]] @@ -7685,15 +7957,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.4.1", + "redox_syscall 0.5.8", "smallvec", - "windows-targets 0.48.5", + "windows-targets 0.52.6", ] [[package]] @@ -7864,7 +8136,7 @@ checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" dependencies = [ "base64ct", "rand_core", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -8061,39 +8333,39 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.7" +version = "2.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "219c0dcc30b6a27553f9cc242972b67f75b60eb0db71f0b5462f38b058c41546" +checksum = "8b7cafe60d6cf8e62e1b9b2ea516a089c008945bb5a275416789e7db0bc199dc" dependencies = [ "memchr", - "thiserror", + "thiserror 2.0.11", "ucd-trie", ] [[package]] name = "petgraph" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.2.6", + "indexmap 2.7.1", ] [[package]] name = "pin-project" -version = "1.1.3" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" +checksum = "dfe2e71e1471fe07709406bf725f710b02927c9c54b2b5b2ec0e8087d97c327d" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.3" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" +checksum = "f6e859e6e5bd50440ab63c47e3ebabc90f26251f7c73c3d3e837b74a1cc3fa67" dependencies = [ "proc-macro2", "quote", @@ -8102,15 +8374,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" - -[[package]] -name = "pin-project-lite" -version = "0.2.13" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -8130,9 +8396,9 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.28" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" [[package]] name = "polkadot-ckb-merkle-mountain-range" @@ -8163,7 +8429,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52b5648a2e8ce1f9a0f8c41c38def670cefd91932cd793468e1a5b0b0b4e4af1" dependencies = [ "bounded-collections", - "derive_more", + "derive_more 0.99.19", "parity-scale-codec", "polkadot-core-primitives", "scale-info", @@ -8314,7 +8580,7 @@ checksum = "1d4cdf181c2419b35c2cbde813da2d8ee777b69b4a6fa346b962d144e3521976" dependencies = [ "bitflags 1.3.2", "bitvec", - "derive_more", + "derive_more 0.99.19", "frame-benchmarking", "frame-support", "frame-system", @@ -8426,7 +8692,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c7be503e60cf56c0eb785f90aaba4b583b36bff00e93997d93fef97f9553c39" dependencies = [ "gimli 0.28.1", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "log", "object 0.32.2", "polkavm-common", @@ -8442,16 +8708,17 @@ checksum = "26e85d3456948e650dff0cfc85603915847faf893ed1e66b020bb82ef4557120" [[package]] name = "polling" -version = "3.5.0" +version = "3.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24f040dee2588b4963afb4e420540439d126f73fdacf4a9c486a96d840bac3c9" +checksum = "a604568c3202727d1507653cb121dbd627a58684eb09a820fd746bee38b4442f" dependencies = [ "cfg-if", "concurrent-queue", - "pin-project-lite 0.2.13", - "rustix 0.38.31", + "hermit-abi 0.4.0", + "pin-project-lite", + "rustix 0.38.44", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -8461,27 +8728,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" dependencies = [ "cpufeatures", - "opaque-debug 0.3.0", + "opaque-debug 0.3.1", "universal-hash", ] [[package]] name = "polyval" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" dependencies = [ "cfg-if", "cpufeatures", - "opaque-debug 0.3.0", + "opaque-debug 0.3.1", "universal-hash", ] [[package]] name = "portable-atomic" -version = "1.6.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6" [[package]] name = "powerfmt" @@ -8491,9 +8758,12 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] [[package]] name = "predicates" @@ -8511,9 +8781,9 @@ dependencies = [ [[package]] name = "predicates" -version = "3.1.0" +version = "3.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b87bfd4605926cdfefc1c3b5f8fe560e3feca9d5552cf68c466d3d8236c7e8" +checksum = "a5d19ee57562043d37e82899fade9a22ebab7be9cef5026b07fda9cdd4293573" dependencies = [ "anstyle", "predicates-core", @@ -8521,15 +8791,15 @@ dependencies = [ [[package]] name = "predicates-core" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" +checksum = "727e462b119fe9c93fd0eb1429a5f7647394014cf3c04ab2c0350eeb09095ffa" [[package]] name = "predicates-tree" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" +checksum = "72dd2d6d381dfb73a193c7fca536518d7caee39fc8503f74e7dc0be0531b425c" dependencies = [ "predicates-core", "termtree", @@ -8547,9 +8817,9 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.16" +version = "0.2.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5" +checksum = "6924ced06e1f7dfe3fa48d57b9f74f55d8915f5036121bef647ef4b204895fac" dependencies = [ "proc-macro2", "syn 2.0.98", @@ -8572,21 +8842,21 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "1.3.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" dependencies = [ - "once_cell", - "toml_edit 0.19.15", + "thiserror 1.0.69", + "toml 0.5.11", ] [[package]] name = "proc-macro-crate" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" dependencies = [ - "toml_edit 0.21.0", + "toml_edit", ] [[package]] @@ -8626,9 +8896,9 @@ dependencies = [ [[package]] name = "proc-macro-warning" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b698b0b09d40e9b7c1a47b132d66a8b54bcd20583d9b6d06e4535e383b4405c" +checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" dependencies = [ "proc-macro2", "quote", @@ -8646,16 +8916,16 @@ dependencies = [ [[package]] name = "prometheus" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "449811d15fbdf5ceb5c1144416066429cf82316e2ec8ce0c1f6f8a02e7bbcf8c" +checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" dependencies = [ "cfg-if", "fnv", "lazy_static", "memchr", "parking_lot 0.12.3", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -8683,19 +8953,19 @@ dependencies = [ [[package]] name = "proptest" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31b476131c3c86cb68032fdc5cb6d5a1045e3e42d96b69fa599fd77701e1f5bf" +checksum = "b4c2511913b88df1637da85cc8d96ec8e43a3f8bb8ccb71ee1ac240d6f3df58d" dependencies = [ "bit-set", "bit-vec", - "bitflags 2.6.0", + "bitflags 2.8.0", "lazy_static", "num-traits", "rand", "rand_chacha", "rand_xorshift", - "regex-syntax 0.8.2", + "regex-syntax 0.8.5", "rusty-fork", "tempfile", "unarray", @@ -8732,7 +9002,7 @@ dependencies = [ "itertools 0.10.5", "lazy_static", "log", - "multimap", + "multimap 0.8.3", "petgraph", "prettyplease 0.1.25", "prost 0.11.9", @@ -8753,10 +9023,10 @@ dependencies = [ "heck 0.5.0", "itertools 0.12.1", "log", - "multimap", + "multimap 0.10.0", "once_cell", "petgraph", - "prettyplease 0.2.16", + "prettyplease 0.2.29", "prost 0.12.6", "prost-types 0.12.6", "regex", @@ -8810,9 +9080,9 @@ dependencies = [ [[package]] name = "psm" -version = "0.1.21" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" +checksum = "200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810" dependencies = [ "cc", ] @@ -8841,21 +9111,10 @@ dependencies = [ "asynchronous-codec", "bytes", "quick-protobuf", - "thiserror", + "thiserror 1.0.69", "unsigned-varint 0.7.2", ] -[[package]] -name = "quicksink" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858" -dependencies = [ - "futures-core", - "futures-sink", - "pin-project-lite 0.1.12", -] - [[package]] name = "quinn" version = "0.9.4" @@ -8863,12 +9122,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e8b432585672228923edbbf64b8b12c14e1112f62e88737655b4a083dbcd78e" dependencies = [ "bytes", - "pin-project-lite 0.2.13", + "pin-project-lite", "quinn-proto 0.9.6", "quinn-udp 0.3.2", "rustc-hash 1.1.0", "rustls 0.20.9", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "webpki", @@ -8882,12 +9141,12 @@ checksum = "8cc2c5017e4b43d5995dcea317bc46c1e09404c0a9664d2908f7f02dfe943d75" dependencies = [ "bytes", "futures-io", - "pin-project-lite 0.2.13", + "pin-project-lite", "quinn-proto 0.10.6", "quinn-udp 0.4.1", "rustc-hash 1.1.0", - "rustls 0.21.10", - "thiserror", + "rustls 0.21.12", + "thiserror 1.0.69", "tokio", "tracing", ] @@ -8904,7 +9163,7 @@ dependencies = [ "rustc-hash 1.1.0", "rustls 0.20.9", "slab", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tracing", "webpki", @@ -8920,9 +9179,9 @@ dependencies = [ "rand", "ring 0.16.20", "rustc-hash 1.1.0", - "rustls 0.21.10", + "rustls 0.21.12", "slab", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tracing", ] @@ -8948,7 +9207,7 @@ checksum = "055b4e778e8feb9f93c4e439f71dc2156ef13360b432b799e179a8c4cdf0b1d7" dependencies = [ "bytes", "libc", - "socket2 0.5.7", + "socket2 0.5.8", "tracing", "windows-sys 0.48.0", ] @@ -8995,7 +9254,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.15", ] [[package]] @@ -9025,9 +9284,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.8.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" dependencies = [ "either", "rayon-core", @@ -9035,9 +9294,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.12.0" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" dependencies = [ "crossbeam-deque", "crossbeam-utils", @@ -9066,38 +9325,38 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.4.1" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.8.0", ] [[package]] name = "redox_users" -version = "0.4.4" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ - "getrandom", + "getrandom 0.2.15", "libredox", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "ref-cast" -version = "1.0.20" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acde58d073e9c79da00f2b5b84eed919c8326832648a5b109b3fce1bb1175280" +checksum = "ccf0a6f84d5f1d581da8b41b47ec8600871962f2a528115b542b362d4b744931" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.20" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" +checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", @@ -9131,14 +9390,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.4" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.6", - "regex-syntax 0.8.2", + "regex-automata 0.4.9", + "regex-syntax 0.8.5", ] [[package]] @@ -9152,13 +9411,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.2", + "regex-syntax 0.8.5", ] [[package]] @@ -9169,9 +9428,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.2" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "relay-common" @@ -9202,7 +9461,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ "hmac 0.12.1", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -9222,16 +9481,17 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.7" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", - "getrandom", + "cfg-if", + "getrandom 0.2.15", "libc", "spin 0.9.8", "untrusted 0.9.0", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -9246,31 +9506,36 @@ dependencies = [ [[package]] name = "rtnetlink" -version = "0.10.1" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "322c53fd76a18698f1c27381d58091de3a043d356aa5bd0d510608b565f469a0" +checksum = "7a552eb82d19f38c3beed3f786bd23aa434ceb9ac43ab44419ca6d67a7e186c0" dependencies = [ "futures", "log", + "netlink-packet-core", "netlink-packet-route", + "netlink-packet-utils", "netlink-proto", + "netlink-sys", "nix", - "thiserror", + "thiserror 1.0.69", "tokio", ] [[package]] name = "ruint" -version = "1.12.0" +version = "1.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b1d9521f889713d1221270fdd63370feca7e5c71a18745343402fa86e4f04f" +checksum = "f5ef8fb1dd8de3870cb8400d51b4c2023854bbafd5431a3ac7e7317243e22d2f" dependencies = [ "alloy-rlp", "ark-ff 0.3.0", "ark-ff 0.4.2", "bytes", - "fastrlp", + "fastrlp 0.3.1", + "fastrlp 0.4.0", "num-bigint", + "num-integer", "num-traits", "parity-scale-codec", "primitive-types", @@ -9285,15 +9550,15 @@ dependencies = [ [[package]] name = "ruint-macro" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f86854cf50259291520509879a5c294c3c9a4c334e9ff65071c51e42ef1e2343" +checksum = "48fd7bd8a6377e15ad9d42a8ec25371b94ddc67abe7c8b9127bec79bebaaae18" [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" @@ -9324,11 +9589,11 @@ dependencies = [ [[package]] name = "rustc_version" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" dependencies = [ - "semver 1.0.18", + "semver 1.0.25", ] [[package]] @@ -9356,15 +9621,15 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.31" +version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "errno", "libc", - "linux-raw-sys 0.4.12", - "windows-sys 0.52.0", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", ] [[package]] @@ -9380,28 +9645,28 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.10" +version = "0.21.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", - "ring 0.17.7", + "ring 0.17.8", "rustls-webpki 0.101.7", "sct", ] [[package]] name = "rustls" -version = "0.23.11" +version = "0.23.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4828ea528154ae444e5a642dbb7d5623354030dc9822b83fd9bb79683c7399d0" +checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395" dependencies = [ "log", "once_cell", - "ring 0.17.7", + "ring 0.17.8", "rustls-pki-types", - "rustls-webpki 0.102.5", - "subtle 2.5.0", + "rustls-webpki 0.102.8", + "subtle 2.6.1", "zeroize", ] @@ -9419,12 +9684,12 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.7.0" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" +checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5" dependencies = [ "openssl-probe", - "rustls-pemfile 2.1.2", + "rustls-pemfile 2.2.0", "rustls-pki-types", "schannel", "security-framework", @@ -9436,51 +9701,50 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64 0.21.6", + "base64 0.21.7", ] [[package]] name = "rustls-pemfile" -version = "2.1.2" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" dependencies = [ - "base64 0.22.1", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.7.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" +checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" [[package]] name = "rustls-platform-verifier" -version = "0.3.2" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e3beb939bcd33c269f4bf946cc829fcd336370267c4a927ac0399c84a3151a1" +checksum = "afbb878bdfdf63a336a5e63561b1835e7a8c91524f51621db870169eac84b490" dependencies = [ "core-foundation", "core-foundation-sys", "jni", "log", "once_cell", - "rustls 0.23.11", - "rustls-native-certs 0.7.0", + "rustls 0.23.23", + "rustls-native-certs 0.7.3", "rustls-platform-verifier-android", - "rustls-webpki 0.102.5", + "rustls-webpki 0.102.8", "security-framework", "security-framework-sys", - "webpki-roots 0.26.3", + "webpki-roots 0.26.8", "winapi", ] [[package]] name = "rustls-platform-verifier-android" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84e217e7fdc8466b5b35d30f8c0a30febd29173df4a3a0c2115d306b9c4117ad" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" [[package]] name = "rustls-webpki" @@ -9488,26 +9752,26 @@ version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ - "ring 0.17.7", + "ring 0.17.8", "untrusted 0.9.0", ] [[package]] name = "rustls-webpki" -version = "0.102.5" +version = "0.102.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a6fccd794a42c2c105b513a2f62bc3fd8f3ba57a4593677ceb0bd035164d78" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" dependencies = [ - "ring 0.17.7", + "ring 0.17.8", "rustls-pki-types", "untrusted 0.9.0", ] [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" [[package]] name = "rusty-fork" @@ -9534,15 +9798,15 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.16" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" [[package]] name = "safe_arch" -version = "0.7.1" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f398075ce1e6a179b46f51bd88d0598b92b00d3551f1a2d4ac49e771b56ac354" +checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323" dependencies = [ "bytemuck", ] @@ -9565,7 +9829,7 @@ dependencies = [ "log", "sp-core", "sp-wasm-interface", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -9618,7 +9882,7 @@ version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b18cef11d2c69703e0d7c3528202ef4ed1cd2b47a6f063e9e17cad8255b1fa94" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -9674,7 +9938,7 @@ dependencies = [ "sp-runtime", "sp-state-machine", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -9683,7 +9947,7 @@ version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3aaab70cf6f93ceea829ef0a4980ce95d84d5c7f4b5419b29bbed17fa04e1a6" dependencies = [ - "ahash 0.8.8", + "ahash 0.8.11", "array-bytes", "async-trait", "dyn-clone", @@ -9719,7 +9983,7 @@ dependencies = [ "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -9756,7 +10020,7 @@ dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", "sp-wasm-interface", - "thiserror", + "thiserror 1.0.69", "wasm-instrument", ] @@ -9805,7 +10069,7 @@ dependencies = [ "futures-timer", "log", "mixnet", - "multiaddr 0.18.1", + "multiaddr 0.18.2", "parity-scale-codec", "parking_lot 0.12.3", "sc-client-api", @@ -9818,7 +10082,7 @@ dependencies = [ "sp-keystore", "sp-mixnet", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -9864,7 +10128,7 @@ dependencies = [ "sp-core", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "unsigned-varint 0.7.2", @@ -9898,7 +10162,7 @@ version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4086f4ac6b94ff2efd24f1776280c580454c5990b8665aa9f293fcd33c80630" dependencies = [ - "ahash 0.8.8", + "ahash 0.8.11", "futures", "futures-timer", "log", @@ -9945,7 +10209,7 @@ dependencies = [ "sp-core", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", ] @@ -9961,10 +10225,10 @@ dependencies = [ "libp2p-identity", "litep2p", "log", - "multiaddr 0.18.1", - "multihash 0.19.1", + "multiaddr 0.18.2", + "multihash 0.19.3", "rand", - "thiserror", + "thiserror 1.0.69", "zeroize", ] @@ -9986,7 +10250,7 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -10006,7 +10270,7 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "wasm-timer", ] @@ -10024,7 +10288,7 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -10055,11 +10319,11 @@ dependencies = [ [[package]] name = "scale-decode" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b12ebca36cec2a3f983c46295b282b35e5f8496346fb859a8776dad5389e5389" +checksum = "e98f3262c250d90e700bb802eb704e1f841e03331c2eb815e46516c4edbf5b27" dependencies = [ - "derive_more", + "derive_more 0.99.19", "parity-scale-codec", "scale-bits", "scale-type-resolver", @@ -10068,13 +10332,13 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.3" +version = "2.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" +checksum = "346a3b32eba2640d17a9cb5927056b08f3de90f65b72fe09402c2ad07d684d0b" dependencies = [ "bitvec", "cfg-if", - "derive_more", + "derive_more 1.0.0", "parity-scale-codec", "scale-info-derive", "serde", @@ -10082,14 +10346,14 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.11.3" +version = "2.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" +checksum = "c6630024bf739e2179b91fb424b28898baf819414262c5d376677dbff1fe7ebf" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.98", ] [[package]] @@ -10100,11 +10364,11 @@ checksum = "f0cded6518aa0bd6c1be2b88ac81bf7044992f0f154bfbabd5ad34f43512abcb" [[package]] name = "schannel" -version = "0.1.22" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.59.0", ] [[package]] @@ -10113,7 +10377,7 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "356285bbf17bea63d9e52e96bd18f039672ac92b55b8cb997d6162a2a37d1649" dependencies = [ - "ahash 0.8.8", + "ahash 0.8.11", "cfg-if", "hashbrown 0.13.2", ] @@ -10133,7 +10397,7 @@ dependencies = [ "rand_core", "serde_bytes", "sha2 0.10.8", - "subtle 2.5.0", + "subtle 2.6.1", "zeroize", ] @@ -10155,7 +10419,7 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ - "ring 0.17.7", + "ring 0.17.8", "untrusted 0.9.0", ] @@ -10171,7 +10435,7 @@ dependencies = [ "log", "rand", "slab", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -10185,7 +10449,7 @@ dependencies = [ "generic-array 0.14.7", "pkcs8", "serdect", - "subtle 2.5.0", + "subtle 2.6.1", "zeroize", ] @@ -10218,11 +10482,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.11.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "core-foundation-sys", "libc", @@ -10232,9 +10496,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.11.0" +version = "2.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" dependencies = [ "core-foundation-sys", "libc", @@ -10255,14 +10519,14 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ - "semver-parser 0.10.2", + "semver-parser 0.10.3", ] [[package]] name = "semver" -version = "1.0.18" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" +checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" dependencies = [ "serde", ] @@ -10275,9 +10539,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "semver-parser" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +checksum = "9900206b54a3527fdc7b8a938bffd94a568bac4f4aa8113b209df75a09c0dec2" dependencies = [ "pest", ] @@ -10314,9 +10578,9 @@ dependencies = [ [[package]] name = "serde_bytes" -version = "0.11.14" +version = "0.11.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" dependencies = [ "serde", ] @@ -10346,9 +10610,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" dependencies = [ "serde", ] @@ -10363,19 +10627,6 @@ dependencies = [ "serde", ] -[[package]] -name = "sha-1" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" -dependencies = [ - "block-buffer 0.9.0", - "cfg-if", - "cpufeatures", - "digest 0.9.0", - "opaque-debug 0.3.0", -] - [[package]] name = "sha-1" version = "0.10.1" @@ -10418,7 +10669,7 @@ dependencies = [ "cfg-if", "cpufeatures", "digest 0.9.0", - "opaque-debug 0.3.0", + "opaque-debug 0.3.1", ] [[package]] @@ -10451,6 +10702,12 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "signature" version = "2.2.0" @@ -10463,9 +10720,9 @@ dependencies = [ [[package]] name = "simba" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "061507c94fc6ab4ba1c9a0305018408e312e17c041eb63bef8aa726fa33aceae" +checksum = "b3a386a501cd104797982c15ae17aafe8b9261315b5d07e3ec803f2ea26be0fa" dependencies = [ "approx", "num-complex", @@ -10480,7 +10737,7 @@ version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cae9a3fcdadafb6d97f4c0e007e4247b114ee0f119f650c3cbf3a8b3a1479694" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", ] [[package]] @@ -10524,19 +10781,19 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "snow" -version = "0.9.4" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58021967fd0a5eeeb23b08df6cc244a4d4a5b4aec1d27c9e02fad1a58b4cd74e" +checksum = "850948bee068e713b8ab860fe1adc4d109676ab4c3b621fd8147f06b261f2f85" dependencies = [ "aes-gcm", "blake2 0.10.6", "chacha20poly1305", "curve25519-dalek", "rand_core", - "ring 0.17.7", - "rustc_version 0.4.0", + "ring 0.17.8", + "rustc_version 0.4.1", "sha2 0.10.8", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -10877,9 +11134,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" dependencies = [ "libc", "windows-sys 0.52.0", @@ -10887,24 +11144,9 @@ dependencies = [ [[package]] name = "soketto" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" -dependencies = [ - "base64 0.13.1", - "bytes", - "futures", - "httparse", - "log", - "rand", - "sha-1 0.9.8", -] - -[[package]] -name = "soketto" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37468c595637c10857701c990f93a40ce0e357cedb0953d1c26c8d8027f9bb53" +checksum = "2e859df029d160cb88608f5d7df7fb4753fd20fdfb4de5644f3d8b8440841721" dependencies = [ "base64 0.22.1", "bytes", @@ -10935,7 +11177,7 @@ dependencies = [ "sp-state-machine", "sp-trie", "sp-version", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -10947,7 +11189,7 @@ dependencies = [ "Inflector", "blake2 0.10.6", "expander", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -11037,7 +11279,7 @@ dependencies = [ "sp-database", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -11054,7 +11296,7 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -11186,7 +11428,7 @@ dependencies = [ "sp-storage", "ss58-registry", "substrate-bip39", - "thiserror", + "thiserror 1.0.69", "tracing", "w3f-bls", "zeroize", @@ -11273,7 +11515,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -11332,7 +11574,7 @@ version = "11.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0c768c11afbe698a090386876911da4236af199cd38a5866748df4d8628aeff" dependencies = [ - "thiserror", + "thiserror 1.0.69", "zstd 0.12.4", ] @@ -11374,7 +11616,7 @@ dependencies = [ "sp-core", "sp-debug-derive", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -11404,12 +11646,11 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "13.0.0" +version = "13.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8f5a17a0a11de029a8b811cb6e8b32ce7e02183cc04a3e965c383246798c416" +checksum = "81478b3740b357fa0ea10fcdc1ee02ebae7734e50f80342c4743476d9f78eeea" dependencies = [ "backtrace", - "lazy_static", "regex", ] @@ -11479,7 +11720,7 @@ checksum = "0195f32c628fee3ce1dfbbf2e7e52a30ea85f3589da9fe62a8b816d70fc06294" dependencies = [ "Inflector", "expander", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.98", @@ -11544,7 +11785,7 @@ dependencies = [ "sp-externalities", "sp-panic-handler", "sp-trie", - "thiserror", + "thiserror 1.0.69", "tracing", "trie-db", ] @@ -11570,7 +11811,7 @@ dependencies = [ "sp-externalities", "sp-runtime", "sp-runtime-interface", - "thiserror", + "thiserror 1.0.69", "x25519-dalek", ] @@ -11603,7 +11844,7 @@ dependencies = [ "parity-scale-codec", "sp-inherents", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -11634,7 +11875,7 @@ version = "37.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6282aef9f4b6ecd95a67a45bcdb67a71f4a4155c09a53c10add4ffe823db18cd" dependencies = [ - "ahash 0.8.8", + "ahash 0.8.11", "hash-db", "lazy_static", "memory-db", @@ -11646,7 +11887,7 @@ dependencies = [ "schnellru", "sp-core", "sp-externalities", - "thiserror", + "thiserror 1.0.69", "tracing", "trie-db", "trie-root", @@ -11667,7 +11908,7 @@ dependencies = [ "sp-runtime", "sp-std", "sp-version-proc-macro", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -11761,9 +12002,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.47.0" +version = "1.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4743ce898933fbff7bbf414f497c459a782d496269644b3d650a398ae6a487ba" +checksum = "19409f13998e55816d1c728395af0b52ec066206341d939e22e7766df9b494b8" dependencies = [ "Inflector", "num-format", @@ -11921,16 +12162,16 @@ dependencies = [ "openssl-sys", "sctp-proto", "serde", - "sha-1 0.10.1", - "thiserror", + "sha-1", + "thiserror 1.0.69", "tracing", ] [[package]] name = "strsim" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "strum" @@ -11991,14 +12232,16 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.17.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d8fe06b03b8a291c09507c42f92a2c2c10dd3d62975d02c7f64a92d87bfe09b" +checksum = "7b6772e9c3621b8d067a706dfda6a20db6faa7cde39822c58ffc8588d16409c5" dependencies = [ - "hyper 0.14.27", + "http-body-util", + "hyper 1.6.0", + "hyper-util", "log", "prometheus", - "thiserror", + "thiserror 1.0.69", "tokio", ] @@ -12041,7 +12284,7 @@ dependencies = [ "sp-version", "strum 0.26.3", "tempfile", - "toml 0.8.12", + "toml 0.8.20", "walkdir", "wasm-opt", ] @@ -12054,9 +12297,9 @@ checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" [[package]] name = "subtle" -version = "2.5.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" @@ -12117,20 +12360,20 @@ dependencies = [ [[package]] name = "system-configuration" -version = "0.5.1" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.8.0", "core-foundation", "system-configuration-sys", ] [[package]] name = "system-configuration-sys" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" dependencies = [ "core-foundation-sys", "libc", @@ -12178,52 +12421,73 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.12" +version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tempfile" -version = "3.8.1" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" +checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" dependencies = [ "cfg-if", "fastrand", - "redox_syscall 0.4.1", - "rustix 0.38.31", - "windows-sys 0.48.0", + "getrandom 0.3.1", + "once_cell", + "rustix 0.38.44", + "windows-sys 0.59.0", ] [[package]] name = "termcolor" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" dependencies = [ "winapi-util", ] [[package]] name = "termtree" -version = "0.4.1" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" + +[[package]] +name = "thiserror" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] [[package]] name = "thiserror" -version = "1.0.62" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" +dependencies = [ + "thiserror-impl 2.0.11", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2675633b1499176c2dff06b0856a27976a8f9d436737b4cf4f312d4d91d8bbb" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ - "thiserror-impl", + "proc-macro2", + "quote", + "syn 2.0.98", ] [[package]] name = "thiserror-impl" -version = "1.0.62" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d20468752b09f49e909e55a5d338caa8bedf615594e9d80bc4c565d30faf798c" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" dependencies = [ "proc-macro2", "quote", @@ -12232,9 +12496,9 @@ dependencies = [ [[package]] name = "thread_local" -version = "1.1.7" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ "cfg-if", "once_cell", @@ -12280,11 +12544,21 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" -version = "1.6.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" dependencies = [ "tinyvec_macros", ] @@ -12297,27 +12571,26 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.38.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" +checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" dependencies = [ "backtrace", "bytes", "libc", "mio", - "num_cpus", "parking_lot 0.12.3", - "pin-project-lite 0.2.13", - "socket2 0.5.7", + "pin-project-lite", + "socket2 0.5.8", "tokio-macros", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "tokio-macros" -version = "2.3.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", @@ -12341,29 +12614,28 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.10", + "rustls 0.21.12", "tokio", ] [[package]] name = "tokio-rustls" -version = "0.26.0" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" +checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" dependencies = [ - "rustls 0.23.11", - "rustls-pki-types", + "rustls 0.23.23", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.14" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" dependencies = [ "futures-core", - "pin-project-lite 0.2.13", + "pin-project-lite", "tokio", ] @@ -12375,7 +12647,7 @@ checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" dependencies = [ "futures-util", "log", - "rustls 0.21.10", + "rustls 0.21.12", "rustls-native-certs 0.6.3", "tokio", "tokio-rustls 0.24.1", @@ -12384,15 +12656,15 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.11" +version = "0.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" dependencies = [ "bytes", "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.13", + "pin-project-lite", "tokio", ] @@ -12407,58 +12679,36 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.12" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" +checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.12", + "toml_edit", ] [[package]] name = "toml_datetime" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" dependencies = [ "serde", ] [[package]] name = "toml_edit" -version = "0.19.15" +version = "0.22.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" dependencies = [ - "indexmap 2.2.6", - "toml_datetime", - "winnow 0.5.33", -] - -[[package]] -name = "toml_edit" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" -dependencies = [ - "indexmap 2.2.6", - "toml_datetime", - "winnow 0.5.33", -] - -[[package]] -name = "toml_edit" -version = "0.22.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3328d4f68a705b2a4498da1d580585d39a6510f98318a2cec3018a7ec61ddef" -dependencies = [ - "indexmap 2.2.6", + "indexmap 2.7.1", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.0", + "winnow", ] [[package]] @@ -12470,8 +12720,7 @@ dependencies = [ "futures-core", "futures-util", "pin-project", - "pin-project-lite 0.2.13", - "tokio", + "pin-project-lite", "tower-layer", "tower-service", "tracing", @@ -12479,33 +12728,33 @@ dependencies = [ [[package]] name = "tower-layer" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "log", - "pin-project-lite 0.2.13", + "pin-project-lite", "tracing-attributes", "tracing-core", ] [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", @@ -12514,9 +12763,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", "valuable", @@ -12535,9 +12784,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ "matchers", "nu-ansi-term", @@ -12592,7 +12841,7 @@ dependencies = [ "rand", "smallvec", "socket2 0.4.10", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tokio", "tracing", @@ -12608,7 +12857,7 @@ dependencies = [ "async-trait", "cfg-if", "data-encoding", - "enum-as-inner 0.6.0", + "enum-as-inner 0.6.1", "futures-channel", "futures-io", "futures-util", @@ -12617,7 +12866,7 @@ dependencies = [ "once_cell", "rand", "smallvec", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tokio", "tracing", @@ -12639,7 +12888,7 @@ dependencies = [ "rand", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "trust-dns-proto 0.23.2", @@ -12647,9 +12896,9 @@ dependencies = [ [[package]] name = "try-lock" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tt-call" @@ -12666,13 +12915,13 @@ dependencies = [ "byteorder", "bytes", "data-encoding", - "http 0.2.11", + "http 0.2.12", "httparse", "log", "rand", - "rustls 0.21.10", + "rustls 0.21.12", "sha1", - "thiserror", + "thiserror 1.0.69", "url", "utf-8", ] @@ -12703,9 +12952,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "ucd-trie" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" [[package]] name = "uint" @@ -12727,15 +12976,15 @@ checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" [[package]] name = "unicode-bidi" -version = "0.3.14" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" [[package]] name = "unicode-normalization" @@ -12748,15 +12997,21 @@ dependencies = [ [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" + +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" [[package]] name = "unicode-xid" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "universal-hash" @@ -12765,7 +13020,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", - "subtle 2.5.0", + "subtle 2.6.1", ] [[package]] @@ -12804,12 +13059,12 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.0" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", - "idna 0.5.0", + "idna 1.0.3", "percent-encoding", ] @@ -12819,17 +13074,29 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "valuable" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "vcpkg" @@ -12839,9 +13106,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "void" @@ -12851,9 +13118,9 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "w3f-bls" -version = "0.1.3" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7335e4c132c28cc43caef6adb339789e599e39adbe78da0c4d547fad48cbc331" +checksum = "70a3028804c8bbae2a97a15b71ffc0e308c4b01a520994aafa77d56e94e19024" dependencies = [ "ark-bls12-377", "ark-bls12-381", @@ -12869,15 +13136,15 @@ dependencies = [ "rand_core", "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 1.0.69", "zeroize", ] [[package]] name = "wait-timeout" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" +checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" dependencies = [ "libc", ] @@ -12907,25 +13174,35 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.13.3+wasi-0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" -version = "0.2.89" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", + "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.89" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", "syn 2.0.98", @@ -12934,21 +13211,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.39" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.89" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -12956,9 +13234,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.89" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", @@ -12969,9 +13247,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.89" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "wasm-instrument" @@ -12984,16 +13265,16 @@ dependencies = [ [[package]] name = "wasm-opt" -version = "0.116.0" +version = "0.116.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc942673e7684671f0c5708fc18993569d184265fd5223bb51fc8e5b9b6cfd52" +checksum = "2fd87a4c135535ffed86123b6fb0f0a5a0bc89e50416c942c5f0662c645f679c" dependencies = [ "anyhow", "libc", "strum 0.24.1", "strum_macros 0.24.3", "tempfile", - "thiserror", + "thiserror 1.0.69", "wasm-opt-cxx-sys", "wasm-opt-sys", ] @@ -13091,7 +13372,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c86437fa68626fe896e5afc69234bb2b5894949083586535f200385adfd71213" dependencies = [ "anyhow", - "base64 0.21.6", + "base64 0.21.7", "bincode", "directories-next", "file-per-thread-logger", @@ -13120,7 +13401,7 @@ dependencies = [ "log", "object 0.30.4", "target-lexicon", - "thiserror", + "thiserror 1.0.69", "wasmparser", "wasmtime-cranelift-shared", "wasmtime-environ", @@ -13155,7 +13436,7 @@ dependencies = [ "object 0.30.4", "serde", "target-lexicon", - "thiserror", + "thiserror 1.0.69", "wasmparser", "wasmtime-types", ] @@ -13238,15 +13519,25 @@ checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" dependencies = [ "cranelift-entity", "serde", - "thiserror", + "thiserror 1.0.69", "wasmparser", ] [[package]] name = "web-sys" -version = "0.3.66" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ "js-sys", "wasm-bindgen", @@ -13258,7 +13549,7 @@ version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" dependencies = [ - "ring 0.17.7", + "ring 0.17.8", "untrusted 0.9.0", ] @@ -13270,9 +13561,9 @@ checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" [[package]] name = "webpki-roots" -version = "0.26.3" +version = "0.26.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd7c23921eeb1713a4e851530e9b9756e4fb0e89978582942612524cf09f01cd" +checksum = "2210b291f7ea53617fbafcc4939f10914214ec15aace5ba62293a668f322c5c9" dependencies = [ "rustls-pki-types", ] @@ -13286,14 +13577,14 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.31", + "rustix 0.38.44", ] [[package]] name = "wide" -version = "0.7.13" +version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68938b57b33da363195412cfc5fc37c9ed49aa9cfe2156fde64b8d2c9498242" +checksum = "41b5576b9a81633f3e8df296ce0063042a73507636cbe956c61133dd7034ab22" dependencies = [ "bytemuck", "safe_arch", @@ -13301,9 +13592,9 @@ dependencies = [ [[package]] name = "widestring" -version = "1.0.2" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8" +checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311" [[package]] name = "winapi" @@ -13323,11 +13614,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.6" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "winapi", + "windows-sys 0.59.0", ] [[package]] @@ -13338,21 +13629,40 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.51.1" +version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9" +checksum = "efc5cf48f83140dcaab716eeaea345f9e93d0018fb81162753a3f76c3397b538" dependencies = [ - "windows-core", - "windows-targets 0.48.5", + "windows-core 0.53.0", + "windows-targets 0.52.6", ] [[package]] name = "windows-core" -version = "0.51.1" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.48.5", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dcc5b895a6377f1ab9fa55acedab1fd5ac0db66ad1e6c7f47e28a22e446a5dd" +dependencies = [ + "windows-result", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -13394,7 +13704,16 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -13429,17 +13748,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.0", - "windows_aarch64_msvc 0.52.0", - "windows_i686_gnu 0.52.0", - "windows_i686_msvc 0.52.0", - "windows_x86_64_gnu 0.52.0", - "windows_x86_64_gnullvm 0.52.0", - "windows_x86_64_msvc 0.52.0", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] @@ -13456,9 +13776,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" @@ -13474,9 +13794,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" @@ -13492,9 +13812,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.0" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" @@ -13510,9 +13836,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" @@ -13528,9 +13854,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" @@ -13546,9 +13872,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" @@ -13564,24 +13890,15 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.5.33" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7520bbdec7211caa7c4e682eb1fbe07abe20cee6756b6e00f537c82c11816aa" -dependencies = [ - "memchr", -] - -[[package]] -name = "winnow" -version = "0.6.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1dbce9e90e5404c5a52ed82b1d13fc8cfbdad85033b6f57546ffd1265f8451" +checksum = "59690dea168f2198d1a3b0cac23b8063efcd11012f10ae4698f284808c8ef603" dependencies = [ "memchr", ] @@ -13596,6 +13913,27 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "wit-bindgen-rt" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +dependencies = [ + "bitflags 2.8.0", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "wyz" version = "0.5.1" @@ -13607,9 +13945,9 @@ dependencies = [ [[package]] name = "x25519-dalek" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" +checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ "curve25519-dalek", "rand_core", @@ -13630,7 +13968,7 @@ dependencies = [ "nom", "oid-registry 0.6.1", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -13640,14 +13978,14 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcbc162f30700d6f3f82a24bf7cc62ffe7caea42c0b2cba8bf7f3ae50cf51f69" dependencies = [ - "asn1-rs 0.6.1", + "asn1-rs 0.6.2", "data-encoding", "der-parser 9.0.0", "lazy_static", "nom", - "oid-registry 0.7.0", + "oid-registry 0.7.1", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -13728,9 +14066,9 @@ dependencies = [ [[package]] name = "xml-rs" -version = "0.8.20" +version = "0.8.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791978798f0597cfc70478424c2b4fdc2b7a8024aaff78497ef00f24ef674193" +checksum = "c5b940ebc25896e71dd073bad2dbaa2abfe97b0a391415e22ad1326d9c54e3c4" [[package]] name = "xmltree" @@ -13765,24 +14103,70 @@ dependencies = [ "time", ] +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", + "synstructure 0.13.1", +] + [[package]] name = "zerocopy" -version = "0.7.32" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ + "byteorder", "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.32" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" dependencies = [ "proc-macro2", "quote", "syn 2.0.98", + "synstructure 0.13.1", ] [[package]] @@ -13805,6 +14189,28 @@ dependencies = [ "syn 2.0.98", ] +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + [[package]] name = "zstd" version = "0.11.2+zstd.1.5.2" @@ -13845,9 +14251,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.9+zstd.1.5.5" +version = "2.0.13+zstd.1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" dependencies = [ "cc", "pkg-config", diff --git a/Cargo.toml b/Cargo.toml index 8e7171fc2..ee84adc9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ bridge-hub-paseo-runtime = { path = "system-parachains/bridge-hub-paseo", defaul people-paseo-runtime = { path = "system-parachains/people-paseo", default-features = false } coretime-paseo-runtime = { path = "system-parachains/coretime-paseo", default-features = false } collectives-paseo-runtime = { path = "system-parachains/collectives-paseo" } -collectives-paseo-runtime-constants = { path = "system-parachains/collectives/collectives-paseo/constants" } +collectives-paseo-runtime-constants = { path = "system-parachains/collectives-paseo/constants" } # Polkadot SDK bp-bridge-hub-paseo = { path = "system-parachains/bridge-hub-paseo/primitives", default-features = false} diff --git a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs index 7becb87c8..9d3099dd0 100644 --- a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs +++ b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/genesis.rs @@ -23,37 +23,37 @@ use emulated_integration_tests_common::{ use parachains_common::Balance; pub const PARA_ID: u32 = 1001; -pub const ED: Balance = collectives_polkadot_runtime::ExistentialDeposit::get(); +pub const ED: Balance = collectives_paseo_runtime::ExistentialDeposit::get(); pub fn genesis() -> Storage { - let genesis_config = collectives_polkadot_runtime::RuntimeGenesisConfig { - system: collectives_polkadot_runtime::SystemConfig::default(), - balances: collectives_polkadot_runtime::BalancesConfig { + let genesis_config = collectives_paseo_runtime::RuntimeGenesisConfig { + system: collectives_paseo_runtime::SystemConfig::default(), + balances: collectives_paseo_runtime::BalancesConfig { balances: accounts::init_balances().iter().cloned().map(|k| (k, ED * 4096)).collect(), }, - parachain_info: collectives_polkadot_runtime::ParachainInfoConfig { + parachain_info: collectives_paseo_runtime::ParachainInfoConfig { parachain_id: PARA_ID.into(), ..Default::default() }, - collator_selection: collectives_polkadot_runtime::CollatorSelectionConfig { + collator_selection: collectives_paseo_runtime::CollatorSelectionConfig { invulnerables: collators::invulnerables().iter().cloned().map(|(acc, _)| acc).collect(), candidacy_bond: ED * 16, ..Default::default() }, - session: collectives_polkadot_runtime::SessionConfig { + session: collectives_paseo_runtime::SessionConfig { keys: collators::invulnerables() .into_iter() .map(|(acc, aura)| { ( acc.clone(), // account id acc, // validator id - collectives_polkadot_runtime::SessionKeys { aura }, // session keys + collectives_paseo_runtime::SessionKeys { aura }, // session keys ) }) .collect(), ..Default::default() }, - polkadot_xcm: collectives_polkadot_runtime::PolkadotXcmConfig { + polkadot_xcm: collectives_paseo_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), ..Default::default() }, @@ -62,7 +62,7 @@ pub fn genesis() -> Storage { build_genesis_storage( &genesis_config, - collectives_polkadot_runtime::WASM_BINARY + collectives_paseo_runtime::WASM_BINARY .expect("WASM binary was not built, please build it!"), ) } diff --git a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs index d8ffbdcaf..a8eb2e148 100644 --- a/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs +++ b/integration-tests/emulated/chains/parachains/collectives/collectives-paseo/src/lib.rs @@ -26,27 +26,27 @@ use emulated_integration_tests_common::{ // CollectivesPolkadot Parachain declaration decl_test_parachains! { - pub struct CollectivesPolkadot { + pub struct CollectivesPaseo { genesis = genesis::genesis(), on_init = { - collectives_polkadot_runtime::AuraExt::on_initialize(1); + collectives_paseo_runtime::AuraExt::on_initialize(1); }, - runtime = collectives_polkadot_runtime, + runtime = collectives_paseo_runtime, core = { - XcmpMessageHandler: collectives_polkadot_runtime::XcmpQueue, - LocationToAccountId: collectives_polkadot_runtime::xcm_config::LocationToAccountId, - ParachainInfo: collectives_polkadot_runtime::ParachainInfo, + XcmpMessageHandler: collectives_paseo_runtime::XcmpQueue, + LocationToAccountId: collectives_paseo_runtime::xcm_config::LocationToAccountId, + ParachainInfo: collectives_paseo_runtime::ParachainInfo, MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin, }, pallets = { - PolkadotXcm: collectives_polkadot_runtime::PolkadotXcm, - Balances: collectives_polkadot_runtime::Balances, - FellowshipTreasury: collectives_polkadot_runtime::FellowshipTreasury, - AssetRate: collectives_polkadot_runtime::AssetRate, + PolkadotXcm: collectives_paseo_runtime::PolkadotXcm, + Balances: collectives_paseo_runtime::Balances, + FellowshipTreasury: collectives_paseo_runtime::FellowshipTreasury, + AssetRate: collectives_paseo_runtime::AssetRate, } }, } // CollectivesPolkadot implementation -impl_accounts_helpers_for_parachain!(CollectivesPolkadot); -impl_assert_events_helpers_for_parachain!(CollectivesPolkadot); +impl_accounts_helpers_for_parachain!(CollectivesPaseo); +impl_assert_events_helpers_for_parachain!(CollectivesPaseo); diff --git a/system-parachains/collectives-paseo/Cargo.toml b/system-parachains/collectives-paseo/Cargo.toml index 3141f4af4..eac39bd54 100644 --- a/system-parachains/collectives-paseo/Cargo.toml +++ b/system-parachains/collectives-paseo/Cargo.toml @@ -15,6 +15,10 @@ log = { workspace = true } scale-info = { features = ["derive"], workspace = true } serde_json = { features = ["alloc"], workspace = true } +# Local +paseo-runtime-constants = { workspace = true } +collectives-paseo-runtime-constants = { workspace = true } + # Substrate frame-benchmarking = { optional = true, workspace = true } frame-executive = { workspace = true } @@ -27,6 +31,7 @@ frame-try-runtime = { optional = true, workspace = true } pallet-asset-rate = { workspace = true } pallet-alliance = { workspace = true } pallet-aura = { workspace = true } +pallet-sudo = { workspace = true } pallet-authorship = { workspace = true } pallet-balances = { workspace = true } pallet-collective = { workspace = true } @@ -66,7 +71,6 @@ pallet-xcm-benchmarks = { optional = true, workspace = true } polkadot-core-primitives = { workspace = true } polkadot-parachain-primitives = { workspace = true } polkadot-runtime-common = { workspace = true } -paseo-runtime-constants = { workspace = true } xcm = { workspace = true } xcm-builder = { workspace = true } xcm-executor = { workspace = true } @@ -159,6 +163,7 @@ try-runtime = [ "pallet-salary/try-runtime", "pallet-scheduler/try-runtime", "pallet-session/try-runtime", + "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", @@ -204,6 +209,7 @@ std = [ "pallet-salary/std", "pallet-scheduler/std", "pallet-session/std", + "pallet-sudo/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", diff --git a/system-parachains/collectives-paseo/constants/Cargo.toml b/system-parachains/collectives-paseo/constants/Cargo.toml index c6f4b792c..666728a9b 100644 --- a/system-parachains/collectives-paseo/constants/Cargo.toml +++ b/system-parachains/collectives-paseo/constants/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "collectives-polkadot-runtime-constants" +name = "collectives-paseo-runtime-constants" repository.workspace = true version.workspace = true authors.workspace = true diff --git a/system-parachains/collectives-paseo/src/fellowship/mod.rs b/system-parachains/collectives-paseo/src/fellowship/mod.rs index b1354bd64..ecda79179 100644 --- a/system-parachains/collectives-paseo/src/fellowship/mod.rs +++ b/system-parachains/collectives-paseo/src/fellowship/mod.rs @@ -44,7 +44,7 @@ use pallet_xcm::{EnsureXcm, IsVoiceOfBody}; use polkadot_runtime_common::impls::{ LocatableAssetConverter, VersionedLocatableAsset, VersionedLocationConverter, }; -use polkadot_runtime_constants::{currency::GRAND, time::HOURS, xcm::body::FELLOWSHIP_ADMIN_INDEX}; +use paseo_runtime_constants::{currency::GRAND, time::HOURS, xcm::body::FELLOWSHIP_ADMIN_INDEX}; use sp_arithmetic::Permill; use sp_core::{ConstU128, ConstU32}; use sp_runtime::traits::{ diff --git a/system-parachains/collectives-paseo/src/lib.rs b/system-parachains/collectives-paseo/src/lib.rs index cea75a838..c24187ae3 100644 --- a/system-parachains/collectives-paseo/src/lib.rs +++ b/system-parachains/collectives-paseo/src/lib.rs @@ -91,7 +91,7 @@ use parachains_common::{ }; use sp_runtime::RuntimeDebug; use system_parachains_constants::{ - polkadot::{account::*, consensus::*, currency::*, fee::WeightToFee}, + paseo::{account::*, consensus::*, currency::*, fee::WeightToFee}, AVERAGE_ON_INITIALIZE_RATIO, DAYS, HOURS, MAXIMUM_BLOCK_WEIGHT, MINUTES, NORMAL_DISPATCH_RATIO, SLOT_DURATION, }; @@ -238,7 +238,7 @@ impl pallet_balances::Config for Runtime { parameter_types! { /// Relay Chain `TransactionByteFee` / 10 - pub const TransactionByteFee: Balance = system_parachains_constants::polkadot::fee::TRANSACTION_BYTE_FEE; + pub const TransactionByteFee: Balance = system_parachains_constants::paseo::fee::TRANSACTION_BYTE_FEE; } impl pallet_transaction_payment::Config for Runtime { diff --git a/system-parachains/collectives-paseo/src/xcm_config.rs b/system-parachains/collectives-paseo/src/xcm_config.rs index b9e6f996a..3b75d1785 100644 --- a/system-parachains/collectives-paseo/src/xcm_config.rs +++ b/system-parachains/collectives-paseo/src/xcm_config.rs @@ -30,7 +30,7 @@ use parachains_common::xcm_config::{ RelayOrOtherSystemParachains, }; use polkadot_parachain_primitives::primitives::Sibling; -use polkadot_runtime_constants::{ +use paseo_runtime_constants::{ system_parachain::ASSET_HUB_ID, xcm::body::FELLOWSHIP_ADMIN_INDEX, }; use sp_runtime::traits::AccountIdConversion; @@ -58,7 +58,7 @@ parameter_types! { [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().into())].into(); pub CheckingAccount: AccountId = PolkadotXcm::check_account(); pub const GovernanceLocation: Location = Location::parent(); - pub RelayTreasuryLocation: Location = (Parent, PalletInstance(polkadot_runtime_constants::TREASURY_PALLET_ID)).into(); + pub RelayTreasuryLocation: Location = (Parent, PalletInstance(paseo_runtime_constants::TREASURY_PALLET_ID)).into(); pub TreasuryAccount: AccountId = TREASURY_PALLET_ID.into_account_truncating(); pub const TreasurerBodyId: BodyId = BodyId::Treasury; // Test [`treasury_pallet_account_not_none`] ensures that the result of location conversion is From 2ef3781b295ea74adf45caa0393e0fcb0b5ca194 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Wed, 12 Feb 2025 12:43:08 +0100 Subject: [PATCH 09/14] [WIP] integration-tests --- Cargo.lock | 4 + Cargo.toml | 2 +- .../assets/asset-hub-paseo/src/genesis.rs | 9 +- .../bridges/bridge-hub-paseo/Cargo.toml | 4 + .../bridges/bridge-hub-paseo/src/genesis.rs | 13 + .../coretime/coretime-paseo/src/genesis.rs | 1 + .../parachains/people/people-paseo/Cargo.toml | 3 + .../people/people-paseo/src/genesis.rs | 10 +- .../parachains/testing/penpal/src/genesis.rs | 26 +- .../parachains/testing/penpal/src/lib.rs | 2 + .../chains/relays/paseo/src/genesis.rs | 1 + integration-tests/emulated/helpers/src/lib.rs | 1 - .../emulated/networks/paseo-system/Cargo.toml | 1 + .../emulated/networks/paseo-system/src/lib.rs | 4 + .../tests/bridges/bridge-hub-paseo/src/lib.rs | 28 +- .../src/tests/asset_transfers.rs | 539 ++++++++++++++++++ .../src/tests/claim_assets.rs | 2 +- .../bridges/bridge-hub-paseo/src/tests/mod.rs | 207 +++++++ .../src/tests/register_bridged_assets.rs | 128 +++++ .../bridge-hub-paseo/src/tests/send_xcm.rs | 143 +++++ .../bridge-hub-paseo/src/tests/snowbridge.rs | 535 ++++++++++++++--- 21 files changed, 1552 insertions(+), 111 deletions(-) create mode 100644 integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs create mode 100644 integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs create mode 100644 integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs diff --git a/Cargo.lock b/Cargo.lock index c33cc13fa..1bb00dd08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1360,12 +1360,14 @@ dependencies = [ name = "bridge-hub-paseo-emulated-chain" version = "1.0.0" dependencies = [ + "bp-messages", "bridge-hub-common", "bridge-hub-paseo-runtime", "emulated-integration-tests-common", "frame-support", "parachains-common", "sp-core", + "staging-xcm 14.2.0", ] [[package]] @@ -8121,6 +8123,7 @@ version = "1.0.0" dependencies = [ "asset-hub-paseo-emulated-chain", "bridge-hub-paseo-emulated-chain", + "collectives-paseo-emulated-chain", "coretime-paseo-emulated-chain", "emulated-integration-tests-common", "paseo-emulated-chain", @@ -8251,6 +8254,7 @@ dependencies = [ "frame-support", "parachains-common", "paseo-emulated-chain", + "paseo-runtime-constants", "people-paseo-runtime", "sp-core", ] diff --git a/Cargo.toml b/Cargo.toml index ee84adc9a..529d25726 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,7 +59,7 @@ bridge-hub-test-utils = { version = "0.20.0" } bridge-runtime-common = { version = "0.18.2", default-features = false } clap = { version = "4.5.0" } codec = { package = "parity-scale-codec", version = "3.6.9", default-features = false } -collectives-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/collectives-paseo" } +collectives-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/collectives/collectives-paseo" } coretime-paseo-emulated-chain = { path = "integration-tests/emulated/chains/parachains/coretime/coretime-paseo" } cumulus-pallet-aura-ext = { version = "0.17.0", default-features = false } cumulus-pallet-parachain-system = { version = "0.17.1", default-features = false } diff --git a/integration-tests/emulated/chains/parachains/assets/asset-hub-paseo/src/genesis.rs b/integration-tests/emulated/chains/parachains/assets/asset-hub-paseo/src/genesis.rs index 73f9b1b1a..f6b960ad0 100644 --- a/integration-tests/emulated/chains/parachains/assets/asset-hub-paseo/src/genesis.rs +++ b/integration-tests/emulated/chains/parachains/assets/asset-hub-paseo/src/genesis.rs @@ -22,7 +22,7 @@ use emulated_integration_tests_common::{ SAFE_XCM_VERSION, }; use frame_support::sp_runtime::traits::AccountIdConversion; -use parachains_common::{AccountId, AuraId, Balance}; +use parachains_common::{AccountId, AssetHubPolkadotAuraId, Balance}; use polkadot_parachain_primitives::primitives::Sibling; use sp_core::sr25519; use xcm::prelude::*; @@ -51,15 +51,15 @@ frame_support::parameter_types! { pub PenpalBSiblingSovereignAccount: AccountId = Sibling::from(penpal_emulated_chain::PARA_ID_B).into_account_truncating(); } -fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AuraId)> { +fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AssetHubPolkadotAuraId)> { vec![ ( get_account_id_from_seed::("Alice"), - get_from_seed::("Alice"), + get_from_seed::("Alice"), ), ( get_account_id_from_seed::("Bob"), - get_from_seed::("Bob"), + get_from_seed::("Bob"), ), ] } @@ -98,6 +98,7 @@ pub fn genesis() -> Storage { ) }) .collect(), + ..Default::default() }, polkadot_xcm: asset_hub_paseo_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), diff --git a/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/Cargo.toml b/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/Cargo.toml index 0e8eb1635..118d0801e 100644 --- a/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/Cargo.toml +++ b/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/Cargo.toml @@ -13,6 +13,10 @@ publish = false sp-core = { workspace = true, default-features = true } frame-support = { workspace = true, default-features = true } +# Bridges +bp-messages = { workspace = true } +xcm = { workspace = true } + # Cumulus parachains-common = { workspace = true, default-features = true } bridge-hub-common = { workspace = true, default-features = true } diff --git a/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/src/genesis.rs b/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/src/genesis.rs index 1f2b466b9..86a41838b 100644 --- a/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/src/genesis.rs +++ b/integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/src/genesis.rs @@ -21,6 +21,7 @@ use emulated_integration_tests_common::{ accounts, build_genesis_storage, collators, get_account_id_from_seed, SAFE_XCM_VERSION, }; use parachains_common::Balance; +use xcm::latest::prelude::*; pub const ASSET_HUB_PARA_ID: u32 = 1000; pub const PARA_ID: u32 = 1002; @@ -52,6 +53,7 @@ pub fn genesis() -> Storage { ) }) .collect(), + ..Default::default() }, polkadot_xcm: bridge_hub_paseo_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), @@ -70,6 +72,17 @@ pub fn genesis() -> Storage { asset_hub_para_id: ASSET_HUB_PARA_ID.into(), ..Default::default() }, + xcm_over_bridge_hub_kusama: bridge_hub_paseo_runtime::XcmOverBridgeHubKusamaConfig { + opened_bridges: vec![ + // open PAH -> KAH bridge + ( + Location::new(1, [Parachain(1000)]), + Junctions::from([Kusama.into(), Parachain(1000)]), + Some(bp_messages::LegacyLaneId([0, 0, 0, 1])), + ), + ], + ..Default::default() + }, ..Default::default() }; diff --git a/integration-tests/emulated/chains/parachains/coretime/coretime-paseo/src/genesis.rs b/integration-tests/emulated/chains/parachains/coretime/coretime-paseo/src/genesis.rs index 24b1532be..237cb64e9 100644 --- a/integration-tests/emulated/chains/parachains/coretime/coretime-paseo/src/genesis.rs +++ b/integration-tests/emulated/chains/parachains/coretime/coretime-paseo/src/genesis.rs @@ -52,6 +52,7 @@ pub fn genesis() -> Storage { ) }) .collect(), + ..Default::default() }, polkadot_xcm: coretime_paseo_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), diff --git a/integration-tests/emulated/chains/parachains/people/people-paseo/Cargo.toml b/integration-tests/emulated/chains/parachains/people/people-paseo/Cargo.toml index a78eb25fd..1ceedf4e3 100644 --- a/integration-tests/emulated/chains/parachains/people/people-paseo/Cargo.toml +++ b/integration-tests/emulated/chains/parachains/people/people-paseo/Cargo.toml @@ -18,6 +18,9 @@ parachains-common = { workspace = true, default-features = true } cumulus-primitives-core = { workspace = true, default-features = true } emulated-integration-tests-common = { workspace = true } +# Runtimes +paseo-runtime-constants = { workspace = true, default-features = true } + # Local people-paseo-runtime = { workspace = true, default-features = true } paseo-emulated-chain = { workspace = true, default-features = true } diff --git a/integration-tests/emulated/chains/parachains/people/people-paseo/src/genesis.rs b/integration-tests/emulated/chains/parachains/people/people-paseo/src/genesis.rs index a73e4f0b0..f500da4a0 100644 --- a/integration-tests/emulated/chains/parachains/people/people-paseo/src/genesis.rs +++ b/integration-tests/emulated/chains/parachains/people/people-paseo/src/genesis.rs @@ -18,14 +18,21 @@ use sp_core::storage::Storage; // Cumulus use cumulus_primitives_core::ParaId; -use emulated_integration_tests_common::{build_genesis_storage, collators, SAFE_XCM_VERSION}; +use emulated_integration_tests_common::{ + accounts, build_genesis_storage, collators, SAFE_XCM_VERSION, +}; use parachains_common::Balance; +use paseo_runtime_constants::currency::UNITS as PAS; +const ENDOWMENT: u128 = 1_000 * PAS; pub const PARA_ID: u32 = 1004; pub const ED: Balance = people_paseo_runtime::ExistentialDeposit::get(); pub fn genesis() -> Storage { let genesis_config = people_paseo_runtime::RuntimeGenesisConfig { + balances: people_paseo_runtime::BalancesConfig { + balances: accounts::init_balances().iter().cloned().map(|k| (k, ENDOWMENT)).collect(), + }, system: people_paseo_runtime::SystemConfig::default(), parachain_info: people_paseo_runtime::ParachainInfoConfig { parachain_id: ParaId::from(PARA_ID), @@ -47,6 +54,7 @@ pub fn genesis() -> Storage { ) }) .collect(), + ..Default::default() }, polkadot_xcm: people_paseo_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), diff --git a/integration-tests/emulated/chains/parachains/testing/penpal/src/genesis.rs b/integration-tests/emulated/chains/parachains/testing/penpal/src/genesis.rs index fae816b24..c5ba18a90 100644 --- a/integration-tests/emulated/chains/parachains/testing/penpal/src/genesis.rs +++ b/integration-tests/emulated/chains/parachains/testing/penpal/src/genesis.rs @@ -22,12 +22,13 @@ use emulated_integration_tests_common::{ accounts, build_genesis_storage, collators, get_account_id_from_seed, SAFE_XCM_VERSION, }; use parachains_common::{AccountId, Balance}; -use penpal_runtime::xcm_config::{LocalReservableFromAssetHub, RelayLocation}; +use penpal_runtime::xcm_config::{LocalReservableFromAssetHub, RelayLocation, UsdtFromAssetHub}; // Penpal pub const PARA_ID_A: u32 = 2000; pub const PARA_ID_B: u32 = 2001; pub const ED: Balance = penpal_runtime::ExistentialDeposit::get(); +pub const USDT_ED: Balance = 70_000; parameter_types! { pub PenpalSudoAccount: AccountId = get_account_id_from_seed::("Alice"); @@ -60,13 +61,32 @@ pub fn genesis(para_id: u32) -> Storage { ) }) .collect(), + ..Default::default() }, polkadot_xcm: penpal_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), ..Default::default() }, - sudo: penpal_runtime::SudoConfig { - key: Some(get_account_id_from_seed::("Alice")), + sudo: penpal_runtime::SudoConfig { key: Some(PenpalSudoAccount::get()) }, + assets: penpal_runtime::AssetsConfig { + assets: vec![( + penpal_runtime::xcm_config::TELEPORTABLE_ASSET_ID, + PenpalAssetOwner::get(), + false, + ED, + )], + ..Default::default() + }, + foreign_assets: penpal_runtime::ForeignAssetsConfig { + assets: vec![ + // Relay Native asset representation + (RelayLocation::get(), PenpalAssetOwner::get(), true, ED), + // Sufficient AssetHub asset representation + (LocalReservableFromAssetHub::get(), PenpalAssetOwner::get(), true, ED), + // USDT from AssetHub + (UsdtFromAssetHub::get(), PenpalAssetOwner::get(), true, USDT_ED), + ], + ..Default::default() }, ..Default::default() }; diff --git a/integration-tests/emulated/chains/parachains/testing/penpal/src/lib.rs b/integration-tests/emulated/chains/parachains/testing/penpal/src/lib.rs index c0d1f71c7..bcb7bbb4b 100644 --- a/integration-tests/emulated/chains/parachains/testing/penpal/src/lib.rs +++ b/integration-tests/emulated/chains/parachains/testing/penpal/src/lib.rs @@ -59,6 +59,7 @@ decl_test_parachains! { PolkadotXcm: penpal_runtime::PolkadotXcm, Assets: penpal_runtime::Assets, ForeignAssets: penpal_runtime::ForeignAssets, + AssetConversion: penpal_runtime::AssetConversion, Balances: penpal_runtime::Balances, } }, @@ -82,6 +83,7 @@ decl_test_parachains! { PolkadotXcm: penpal_runtime::PolkadotXcm, Assets: penpal_runtime::Assets, ForeignAssets: penpal_runtime::ForeignAssets, + AssetConversion: penpal_runtime::AssetConversion, Balances: penpal_runtime::Balances, } }, diff --git a/integration-tests/emulated/chains/relays/paseo/src/genesis.rs b/integration-tests/emulated/chains/relays/paseo/src/genesis.rs index 4ca83f875..76b8157bc 100644 --- a/integration-tests/emulated/chains/relays/paseo/src/genesis.rs +++ b/integration-tests/emulated/chains/relays/paseo/src/genesis.rs @@ -106,6 +106,7 @@ pub fn genesis() -> Storage { ) }) .collect::>(), + ..Default::default() }, staking: paseo_runtime::StakingConfig { validator_count: validators::initial_authorities().len() as u32, diff --git a/integration-tests/emulated/helpers/src/lib.rs b/integration-tests/emulated/helpers/src/lib.rs index 704a7a7f6..2d247256e 100644 --- a/integration-tests/emulated/helpers/src/lib.rs +++ b/integration-tests/emulated/helpers/src/lib.rs @@ -31,7 +31,6 @@ pub use xcm_emulator::Chain; /// TODO: when bumping to polkadot-sdk v1.8.0, /// remove this crate altogether and get the macros from `emulated-integration-tests-common`. /// TODO: backport this macros to paseo-sdk - #[macro_export] macro_rules! test_relay_is_trusted_teleporter { ( $sender_relay:ty, $sender_xcm_config:ty, vec![$( $receiver_para:ty ),+], ($assets:expr, $amount:expr) ) => { diff --git a/integration-tests/emulated/networks/paseo-system/Cargo.toml b/integration-tests/emulated/networks/paseo-system/Cargo.toml index 781bb296b..afa531168 100644 --- a/integration-tests/emulated/networks/paseo-system/Cargo.toml +++ b/integration-tests/emulated/networks/paseo-system/Cargo.toml @@ -15,6 +15,7 @@ emulated-integration-tests-common = { workspace = true } # Runtimes asset-hub-paseo-emulated-chain = { workspace = true } bridge-hub-paseo-emulated-chain = { workspace = true } +collectives-paseo-emulated-chain = { workspace = true } coretime-paseo-emulated-chain = { workspace = true } penpal-emulated-chain = { workspace = true } paseo-emulated-chain = { workspace = true } diff --git a/integration-tests/emulated/networks/paseo-system/src/lib.rs b/integration-tests/emulated/networks/paseo-system/src/lib.rs index 08e4efb86..47768ba29 100644 --- a/integration-tests/emulated/networks/paseo-system/src/lib.rs +++ b/integration-tests/emulated/networks/paseo-system/src/lib.rs @@ -15,6 +15,7 @@ pub use asset_hub_paseo_emulated_chain; pub use bridge_hub_paseo_emulated_chain; +pub use collectives_paseo_emulated_chain; pub use coretime_paseo_emulated_chain; pub use penpal_emulated_chain; pub use people_paseo_emulated_chain; @@ -22,6 +23,7 @@ pub use paseo_emulated_chain; use asset_hub_paseo_emulated_chain::AssetHubPaseo; use bridge_hub_paseo_emulated_chain::BridgeHubPaseo; +use collectives_paseo_emulated_chain::CollectivesPaseo; use coretime_paseo_emulated_chain::CoretimePaseo; use penpal_emulated_chain::{PenpalA, PenpalB}; use people_paseo_emulated_chain::PeoplePaseo; @@ -39,6 +41,7 @@ decl_test_networks! { parachains = vec![ AssetHubPaseo, BridgeHubPaseo, + CollectivesPaseo, CoretimePaseo, PenpalA, PenpalB, @@ -52,6 +55,7 @@ decl_test_sender_receiver_accounts_parameter_types! { PaseoRelay { sender: ALICE, receiver: BOB }, AssetHubPaseoPara { sender: ALICE, receiver: BOB }, BridgeHubPaseoPara { sender: ALICE, receiver: BOB }, + CollectivesPaseoPara { sender: ALICE, receiver: BOB }, CoretimePaseoPara { sender: ALICE, receiver: BOB }, PenpalAPara { sender: ALICE, receiver: BOB }, PenpalBPara { sender: ALICE, receiver: BOB }, diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs index cdfea304b..80d480c79 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs @@ -14,6 +14,7 @@ // limitations under the License. // Substrate +pub use codec::Encode; pub use frame_support::{assert_err, assert_ok, pallet_prelude::DispatchResult}; pub use sp_runtime::DispatchError; @@ -29,7 +30,7 @@ pub use xcm::{ pub use xcm_executor::traits::TransferType; // Bridges -pub use bp_messages::LaneId; +pub use bp_messages::LegacyLaneId; // Cumulus pub use emulated_integration_tests_common::{ @@ -45,29 +46,36 @@ pub use emulated_integration_tests_common::{ }; pub use paseo_system_emulated_network::{ asset_hub_paseo_emulated_chain::{ - genesis::ED as ASSET_HUB_POLKADOT_ED, AssetHubPaseoParaPallet as AssetHubPaseoPallet, + genesis::{AssetHubPaseoAssetOwner, ED as ASSET_HUB_POLKAPAS_ED}, + AssetHubPaseoParaPallet as AssetHubPaseoPallet, }, bridge_hub_paseo_emulated_chain::{ genesis::ED as BRIDGE_HUB_POLKADOT_ED, BridgeHubPaseoParaPallet as BridgeHubPaseoPallet, }, - paseo_emulated_chain::{genesis::ED as POLKADOT_ED, PaseoRelayPallet as PaseoPallet}, + penpal_emulated_chain::{ + penpal_runtime::xcm_config::{ + CustomizableAssetFromSystemAssetHub as PenpalCustomizableAssetFromSystemAssetHub, + UniversalLocation as PenpalUniversalLocation, + }, + PenpalAssetOwner, PenpalBParaPallet as PenpalBPallet, + }, + paseo_emulated_chain::{genesis::ED as POLKAPAS_ED, PaseoRelayPallet as PaseoPallet}, AssetHubPaseoPara as AssetHubPaseo, AssetHubPaseoParaReceiver as AssetHubPaseoReceiver, AssetHubPaseoParaSender as AssetHubPaseoSender, BridgeHubPaseoPara as BridgeHubPaseo, - BridgeHubPaseoParaSender as BridgeHubPaseoSender, PaseoRelay as Paseo, - PaseoRelayReceiver as PaseoReceiver, PaseoRelaySender as PaseoSender, -}; -pub use parachains_common::{AccountId, Balance}; -pub use paseo_system_emulated_network::{ - penpal_emulated_chain::PenpalBParaPallet as PenpalBPallet, - BridgeHubPaseoParaReceiver as BridgeHubPaseoReceiver, PenpalBPara as PenpalB, + BridgeHubPaseoParaReceiver as BridgeHubPaseoReceiver, + BridgeHubPaseoParaSender as BridgeHubPaseoSender, PenpalBPara as PenpalB, PenpalBParaReceiver as PenpalBReceiver, PenpalBParaSender as PenpalBSender, + PaseoRelay as Paseo, PaseoRelayReceiver as PaseoReceiver, + PaseoRelaySender as PaseoSender, }; +pub use parachains_common::{AccountId, Balance}; pub const ASSET_ID: u32 = 1; pub const ASSET_MIN_BALANCE: u128 = 1000; +pub const USDT_ID: u32 = 1984; #[cfg(test)] mod tests; diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs new file mode 100644 index 000000000..794144a54 --- /dev/null +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs @@ -0,0 +1,539 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use crate::tests::*; + +fn send_assets_over_bridge(send_fn: F) { + // fund the PAH's SA on PBH for paying bridge transport fees + BridgeHubPolkadot::fund_para_sovereign(AssetHubPolkadot::para_id(), 10_000_000_000_000u128); + + // set XCM versions + let local_asset_hub = PenpalB::sibling_location_of(AssetHubPolkadot::para_id()); + PenpalB::force_xcm_version(local_asset_hub.clone(), XCM_VERSION); + AssetHubPolkadot::force_xcm_version(asset_hub_kusama_location(), XCM_VERSION); + BridgeHubPolkadot::force_xcm_version(bridge_hub_kusama_location(), XCM_VERSION); + + // send message over bridge + send_fn(); + + // process and verify intermediary hops + assert_bridge_hub_polkadot_message_accepted(true); + assert_bridge_hub_kusama_message_received(); +} + +fn set_up_dot_for_penpal_polkadot_through_pah_to_kah( + sender: &AccountId, + amount: u128, +) -> (Location, v4::Location) { + let dot_at_polkadot_parachains = dot_at_ah_polkadot(); + let dot_at_asset_hub_kusama = bridged_dot_at_ah_kusama(); + create_foreign_on_ah_kusama(dot_at_asset_hub_kusama.clone(), true); + + let penpal_location = AssetHubPolkadot::sibling_location_of(PenpalB::para_id()); + let sov_penpal_on_pah = AssetHubPolkadot::sovereign_account_id_of(penpal_location); + // fund Penpal's sovereign account on AssetHub + AssetHubPolkadot::fund_accounts(vec![(sov_penpal_on_pah, amount * 2)]); + // fund Penpal's sender account + PenpalB::mint_foreign_asset( + ::RuntimeOrigin::signed(PenpalAssetOwner::get()), + dot_at_polkadot_parachains.clone(), + sender.clone(), + amount * 2, + ); + (dot_at_polkadot_parachains, dot_at_asset_hub_kusama) +} + +fn send_assets_from_penpal_polkadot_through_polkadot_ah_to_kusama_ah( + destination: Location, + assets: (Assets, TransferType), + fees: (AssetId, TransferType), + custom_xcm_on_dest: Xcm<()>, +) { + send_assets_over_bridge(|| { + let sov_penpal_on_pah = AssetHubPolkadot::sovereign_account_id_of( + AssetHubPolkadot::sibling_location_of(PenpalB::para_id()), + ); + let sov_kah_on_pah = + AssetHubPolkadot::sovereign_account_of_parachain_on_other_global_consensus( + Kusama, + AssetHubKusama::para_id(), + ); + + // send message over bridge + assert_ok!(PenpalB::execute_with(|| { + let signed_origin = ::RuntimeOrigin::signed(PenpalBSender::get()); + ::PolkadotXcm::transfer_assets_using_type_and_then( + signed_origin, + bx!(destination.into()), + bx!(assets.0.into()), + bx!(assets.1), + bx!(fees.0.into()), + bx!(fees.1), + bx!(VersionedXcm::from(custom_xcm_on_dest)), + WeightLimit::Unlimited, + ) + })); + // verify intermediary AH Polkadot hop + AssetHubPolkadot::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + AssetHubPolkadot, + vec![ + // Amount to reserve transfer is withdrawn from Penpal's sovereign account + RuntimeEvent::Balances( + pallet_balances::Event::Burned { who, .. } + ) => { + who: *who == sov_penpal_on_pah.clone(), + }, + // Amount deposited in KAH's sovereign account + RuntimeEvent::Balances(pallet_balances::Event::Minted { who, .. }) => { + who: *who == sov_kah_on_pah.clone(), + }, + RuntimeEvent::XcmpQueue( + cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. } + ) => {}, + ] + ); + }); + }); +} + +#[test] +/// Test transfer of DOT, USDT and wETH from AssetHub Polkadot to AssetHub Kusama. +/// +/// This mix of assets should cover the whole range: +/// - native assets: DOT, +/// - trust-based assets: USDT (exists only on Polkadot, Kusama gets it from Polkadot over bridge), +/// - foreign asset / bridged asset (other bridge / Snowfork): wETH (bridged from Ethereum to +/// Polkadot over Snowbridge, then bridged over to Kusama through this bridge). +fn send_dot_usdt_and_weth_from_asset_hub_polkadot_to_asset_hub_kusama() { + let amount = ASSET_HUB_POLKADOT_ED * 1_000; + let sender = AssetHubPolkadotSender::get(); + let receiver = AssetHubKusamaReceiver::get(); + let dot_at_asset_hub_polkadot = dot_at_ah_polkadot(); + let bridged_dot_at_asset_hub_kusama = bridged_dot_at_ah_kusama(); + + create_foreign_on_ah_kusama(bridged_dot_at_asset_hub_kusama.clone(), true); + set_up_pool_with_ksm_on_ah_kusama(bridged_dot_at_asset_hub_kusama.clone(), true); + + //////////////////////////////////////////////////////////// + // Let's first send over just some DOTs as a simple example + //////////////////////////////////////////////////////////// + let sov_kah_on_pah = AssetHubPolkadot::sovereign_account_of_parachain_on_other_global_consensus( + Kusama, + AssetHubKusama::para_id(), + ); + let dot_in_reserve_on_pah_before = + ::account_data_of(sov_kah_on_pah.clone()).free; + let sender_dot_before = ::account_data_of(sender.clone()).free; + let receiver_dot_before = + foreign_balance_on_ah_kusama(bridged_dot_at_asset_hub_kusama.clone(), &receiver); + + // send DOTs, use them for fees + send_assets_over_bridge(|| { + let destination = asset_hub_kusama_location(); + let assets: Assets = (dot_at_asset_hub_polkadot, amount).into(); + let fee_idx = 0; + assert_ok!(send_assets_from_asset_hub_polkadot(destination, assets, fee_idx)); + }); + + // verify expected events on final destination + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + AssetHubKusama, + vec![ + // issue DOTs on KAH + RuntimeEvent::ForeignAssets(pallet_assets::Event::Issued { asset_id, owner, .. }) => { + asset_id: *asset_id == bridged_dot_at_asset_hub_kusama, + owner: *owner == receiver, + }, + // message processed successfully + RuntimeEvent::MessageQueue( + pallet_message_queue::Event::Processed { success: true, .. } + ) => {}, + ] + ); + }); + + let sender_dot_after = ::account_data_of(sender.clone()).free; + let receiver_dot_after = + foreign_balance_on_ah_kusama(bridged_dot_at_asset_hub_kusama, &receiver); + let dot_in_reserve_on_pah_after = + ::account_data_of(sov_kah_on_pah).free; + + // Sender's balance is reduced + assert!(sender_dot_before > sender_dot_after); + // Receiver's balance is increased + assert!(receiver_dot_after > receiver_dot_before); + // Reserve balance is increased by sent amount + assert_eq!(dot_in_reserve_on_pah_after, dot_in_reserve_on_pah_before + amount); + + ///////////////////////////////////////////////////////////// + // Now let's send over USDTs + wETH (and pay fees with USDT) + ///////////////////////////////////////////////////////////// + let usdt_at_asset_hub_polkadot = usdt_at_ah_polkadot(); + let bridged_usdt_at_asset_hub_kusama = bridged_usdt_at_ah_kusama(); + // wETH has same relative location on both Polkadot and Kusama AssetHubs + let bridged_weth_at_ah = weth_at_asset_hubs(); + + // mint USDT in sender's account (USDT already created in genesis) + AssetHubPolkadot::mint_asset( + ::RuntimeOrigin::signed(AssetHubPolkadotAssetOwner::get()), + USDT_ID, + sender.clone(), + amount * 2, + ); + // create wETH at src and dest and prefund sender's account + create_foreign_on_ah_polkadot( + bridged_weth_at_ah.clone(), + true, + vec![(sender.clone(), amount * 2)], + ); + create_foreign_on_ah_kusama(bridged_weth_at_ah.clone(), true); + create_foreign_on_ah_kusama(bridged_usdt_at_asset_hub_kusama.clone(), true); + set_up_pool_with_ksm_on_ah_kusama(bridged_usdt_at_asset_hub_kusama.clone(), true); + + let receiver_usdts_before = + foreign_balance_on_ah_kusama(bridged_usdt_at_asset_hub_kusama.clone(), &receiver); + let receiver_weth_before = foreign_balance_on_ah_kusama(bridged_weth_at_ah.clone(), &receiver); + + // send USDTs and wETHs + let assets: Assets = vec![ + (usdt_at_asset_hub_polkadot.clone(), amount).into(), + (bridged_weth_at_ah.clone(), amount).into(), + ] + .into(); + // use USDT for fees + let fee: AssetId = usdt_at_asset_hub_polkadot.into(); + + // use the more involved transfer extrinsic + let custom_xcm_on_dest = Xcm::<()>(vec![DepositAsset { + assets: Wild(AllCounted(assets.len() as u32)), + beneficiary: AccountId32Junction { network: None, id: receiver.clone().into() }.into(), + }]); + assert_ok!(AssetHubPolkadot::execute_with(|| { + ::PolkadotXcm::transfer_assets_using_type_and_then( + ::RuntimeOrigin::signed(sender), + bx!(asset_hub_kusama_location().into()), + bx!(assets.into()), + bx!(TransferType::LocalReserve), + bx!(fee.into()), + bx!(TransferType::LocalReserve), + bx!(VersionedXcm::from(custom_xcm_on_dest)), + WeightLimit::Unlimited, + ) + })); + // verify hops (also advances the message through the hops) + assert_bridge_hub_polkadot_message_accepted(true); + assert_bridge_hub_kusama_message_received(); + AssetHubKusama::execute_with(|| { + AssetHubKusama::assert_xcmp_queue_success(None); + }); + + let receiver_usdts_after = + foreign_balance_on_ah_kusama(bridged_usdt_at_asset_hub_kusama, &receiver); + let receiver_weth_after = foreign_balance_on_ah_kusama(bridged_weth_at_ah, &receiver); + + // Receiver's USDT balance is increased by almost `amount` (minus fees) + assert!(receiver_usdts_after > receiver_usdts_before); + assert!(receiver_usdts_after < receiver_usdts_before + amount); + // Receiver's wETH balance is increased by sent amount + assert_eq!(receiver_weth_after, receiver_weth_before + amount); +} + +#[test] +/// Send bridged KSM "back" from AssetHub Polkadot to AssetHub Kusama. +fn send_back_ksm_from_asset_hub_polkadot_to_asset_hub_kusama() { + let prefund_amount = 10_000_000_000_000u128; + let amount_to_send = ASSET_HUB_KUSAMA_ED * 1_000; + let sender = AssetHubPolkadotSender::get(); + let receiver = AssetHubKusamaReceiver::get(); + let bridged_ksm_at_asset_hub_polkadot = bridged_ksm_at_ah_polkadot(); + let prefund_accounts = vec![(sender.clone(), prefund_amount)]; + create_foreign_on_ah_polkadot( + bridged_ksm_at_asset_hub_polkadot.clone(), + true, + prefund_accounts, + ); + + // fund the PAH's SA on KAH with the KSM tokens held in reserve + let sov_pah_on_kah = AssetHubKusama::sovereign_account_of_parachain_on_other_global_consensus( + Polkadot, + AssetHubPolkadot::para_id(), + ); + AssetHubKusama::fund_accounts(vec![(sov_pah_on_kah.clone(), prefund_amount)]); + + let ksm_in_reserve_on_kah_before = + ::account_data_of(sov_pah_on_kah.clone()).free; + assert_eq!(ksm_in_reserve_on_kah_before, prefund_amount); + + let sender_ksm_before = + foreign_balance_on_ah_polkadot(bridged_ksm_at_asset_hub_polkadot.clone(), &sender); + assert_eq!(sender_ksm_before, prefund_amount); + let receiver_ksm_before = ::account_data_of(receiver.clone()).free; + + // send back KSMs, use them for fees + send_assets_over_bridge(|| { + let destination = asset_hub_kusama_location(); + let assets: Assets = (bridged_ksm_at_asset_hub_polkadot.clone(), amount_to_send).into(); + let fee_idx = 0; + assert_ok!(send_assets_from_asset_hub_polkadot(destination, assets, fee_idx)); + }); + + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + AssetHubKusama, + vec![ + // KSM is withdrawn from PAH's SA on KAH + RuntimeEvent::Balances( + pallet_balances::Event::Burned { who, amount } + ) => { + who: *who == sov_pah_on_kah, + amount: *amount == amount_to_send, + }, + // KSMs deposited to beneficiary + RuntimeEvent::Balances(pallet_balances::Event::Minted { who, .. }) => { + who: *who == receiver, + }, + // message processed successfully + RuntimeEvent::MessageQueue( + pallet_message_queue::Event::Processed { success: true, .. } + ) => {}, + ] + ); + }); + + let sender_ksm_after = + foreign_balance_on_ah_polkadot(bridged_ksm_at_asset_hub_polkadot, &sender); + let receiver_ksm_after = ::account_data_of(receiver.clone()).free; + let ksm_in_reserve_on_kah_after = + ::account_data_of(sov_pah_on_kah.clone()).free; + + // Sender's balance is reduced + assert!(sender_ksm_before > sender_ksm_after); + // Receiver's balance is increased + assert!(receiver_ksm_after > receiver_ksm_before); + // Reserve balance is reduced by sent amount + assert_eq!(ksm_in_reserve_on_kah_after, ksm_in_reserve_on_kah_before - amount_to_send); +} + +#[test] +fn send_dot_from_penpal_polkadot_through_asset_hub_polkadot_to_asset_hub_kusama() { + let amount = ASSET_HUB_POLKADOT_ED * 10_000_000; + let sender = PenpalBSender::get(); + let receiver = AssetHubKusamaReceiver::get(); + let local_asset_hub = PenpalB::sibling_location_of(AssetHubPolkadot::para_id()); + let (dot_at_polkadot_parachains, dot_at_asset_hub_kusama) = + set_up_dot_for_penpal_polkadot_through_pah_to_kah(&sender, amount); + + let sov_kah_on_pah = AssetHubPolkadot::sovereign_account_of_parachain_on_other_global_consensus( + Kusama, + AssetHubKusama::para_id(), + ); + let dot_in_reserve_on_pah_before = + ::account_data_of(sov_kah_on_pah.clone()).free; + let sender_dot_before = PenpalB::execute_with(|| { + type ForeignAssets = ::ForeignAssets; + >::balance(dot_at_polkadot_parachains.clone(), &sender) + }); + let receiver_dot_before = + foreign_balance_on_ah_kusama(dot_at_asset_hub_kusama.clone(), &receiver); + + // Send DOTs over bridge + { + let destination = asset_hub_kusama_location(); + let assets: Assets = (dot_at_polkadot_parachains.clone(), amount).into(); + let asset_transfer_type = TransferType::RemoteReserve(local_asset_hub.clone().into()); + let fees_id: AssetId = dot_at_polkadot_parachains.clone().into(); + let fees_transfer_type = TransferType::RemoteReserve(local_asset_hub.into()); + let beneficiary: Location = + AccountId32Junction { network: None, id: receiver.clone().into() }.into(); + let custom_xcm_on_dest = Xcm::<()>(vec![DepositAsset { + assets: Wild(AllCounted(assets.len() as u32)), + beneficiary, + }]); + send_assets_from_penpal_polkadot_through_polkadot_ah_to_kusama_ah( + destination, + (assets, asset_transfer_type), + (fees_id, fees_transfer_type), + custom_xcm_on_dest, + ); + } + + // process KAH incoming message and check events + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + AssetHubKusama, + vec![ + // issue DOTs on KAH + RuntimeEvent::ForeignAssets(pallet_assets::Event::Issued { asset_id, owner, .. }) => { + asset_id: *asset_id == dot_at_polkadot_parachains.clone(), + owner: owner == &receiver, + }, + // message processed successfully + RuntimeEvent::MessageQueue( + pallet_message_queue::Event::Processed { success: true, .. } + ) => {}, + ] + ); + }); + + let sender_dot_after = PenpalB::execute_with(|| { + type ForeignAssets = ::ForeignAssets; + >::balance(dot_at_polkadot_parachains, &sender) + }); + let receiver_dot_after = foreign_balance_on_ah_kusama(dot_at_asset_hub_kusama, &receiver); + let dot_in_reserve_on_pah_after = + ::account_data_of(sov_kah_on_pah.clone()).free; + + // Sender's balance is reduced + assert!(sender_dot_after < sender_dot_before); + // Receiver's balance is increased + assert!(receiver_dot_after > receiver_dot_before); + // Reserve balance is increased by sent amount (less fess) + assert!(dot_in_reserve_on_pah_after > dot_in_reserve_on_pah_before); + assert!(dot_in_reserve_on_pah_after <= dot_in_reserve_on_pah_before + amount); +} + +#[test] +fn send_back_ksm_from_penpal_polkadot_through_asset_hub_polkadot_to_asset_hub_kusama() { + let ksm_at_polkadot_parachains = bridged_ksm_at_ah_polkadot(); + let amount = ASSET_HUB_POLKADOT_ED * 10_000_000; + let sender = PenpalBSender::get(); + let receiver = AssetHubKusamaReceiver::get(); + + // set up DOTs for transfer + let (dot_at_polkadot_parachains, _) = + set_up_dot_for_penpal_polkadot_through_pah_to_kah(&sender, amount); + + // set up KSMs for transfer + let penpal_location = AssetHubPolkadot::sibling_location_of(PenpalB::para_id()); + let sov_penpal_on_kah = AssetHubPolkadot::sovereign_account_id_of(penpal_location); + let prefund_accounts = vec![(sov_penpal_on_kah, amount * 2)]; + create_foreign_on_ah_polkadot(ksm_at_polkadot_parachains.clone(), true, prefund_accounts); + let asset_owner: AccountId = AssetHubPolkadot::account_id_of(ALICE); + PenpalB::force_create_foreign_asset( + ksm_at_polkadot_parachains.clone(), + asset_owner.clone(), + true, + ASSET_MIN_BALANCE, + vec![(sender.clone(), amount * 2)], + ); + // Configure source Penpal chain to trust local AH as reserve of bridged KSM + PenpalB::execute_with(|| { + assert_ok!(::System::set_storage( + ::RuntimeOrigin::root(), + vec![( + PenpalCustomizableAssetFromSystemAssetHub::key().to_vec(), + ksm_at_polkadot_parachains.encode(), + )], + )); + }); + + // fund the PAH's SA on KAH with the KSM tokens held in reserve + let sov_pah_on_kah = AssetHubKusama::sovereign_account_of_parachain_on_other_global_consensus( + Polkadot, + AssetHubPolkadot::para_id(), + ); + AssetHubKusama::fund_accounts(vec![(sov_pah_on_kah.clone(), amount * 2)]); + + // balances before + let sender_ksm_before = PenpalB::execute_with(|| { + type ForeignAssets = ::ForeignAssets; + >::balance(ksm_at_polkadot_parachains.clone(), &sender) + }); + let receiver_ksm_before = ::account_data_of(receiver.clone()).free; + + // send KSMs over the bridge, DOTs only used to pay fees on local AH, pay with KSM on remote AH + { + let final_destination = asset_hub_kusama_location(); + let intermediary_hop = PenpalB::sibling_location_of(AssetHubPolkadot::para_id()); + let context = PenpalB::execute_with(PenpalUniversalLocation::get); + + // what happens at final destination + let beneficiary = AccountId32Junction { network: None, id: receiver.clone().into() }.into(); + // use KSM as fees on the final destination (PAH) + let remote_fees: Asset = (ksm_at_polkadot_parachains.clone(), amount).into(); + let remote_fees = remote_fees.reanchored(&final_destination, &context).unwrap(); + // buy execution using KSMs, then deposit all remaining KSMs + let xcm_on_final_dest = Xcm::<()>(vec![ + BuyExecution { fees: remote_fees, weight_limit: WeightLimit::Unlimited }, + DepositAsset { assets: Wild(AllCounted(1)), beneficiary }, + ]); + + // what happens at intermediary hop + // reanchor final dest (Asset Hub Kusama) to the view of hop (Asset Hub Polkadot) + let mut final_destination = final_destination.clone(); + final_destination.reanchor(&intermediary_hop, &context).unwrap(); + // reanchor KSMs to the view of hop (Asset Hub Polkadot) + let asset: Asset = (ksm_at_polkadot_parachains.clone(), amount).into(); + let asset = asset.reanchored(&intermediary_hop, &context).unwrap(); + // on Asset Hub Polkadot, forward a request to withdraw KSMs from reserve on Asset Hub + // Kusama + let xcm_on_hop = Xcm::<()>(vec![InitiateReserveWithdraw { + assets: Definite(asset.into()), // KSMs + reserve: final_destination, // KAH + xcm: xcm_on_final_dest, // XCM to execute on KAH + }]); + // assets to send from Penpal and how they reach the intermediary hop + let assets: Assets = vec![ + (ksm_at_polkadot_parachains.clone(), amount).into(), + (dot_at_polkadot_parachains.clone(), amount).into(), + ] + .into(); + let asset_transfer_type = TransferType::DestinationReserve; + let fees_id: AssetId = dot_at_polkadot_parachains.into(); + let fees_transfer_type = TransferType::DestinationReserve; + + // initiate the transfer + send_assets_from_penpal_polkadot_through_polkadot_ah_to_kusama_ah( + intermediary_hop, + (assets, asset_transfer_type), + (fees_id, fees_transfer_type), + xcm_on_hop, + ); + } + + // process KAH incoming message and check events + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + AssetHubKusama, + vec![ + // issue DOTs on KAH + RuntimeEvent::Balances(pallet_balances::Event::Issued { .. }) => {}, + // message processed successfully + RuntimeEvent::MessageQueue( + pallet_message_queue::Event::Processed { success: true, .. } + ) => {}, + ] + ); + }); + + let sender_ksm_after = PenpalB::execute_with(|| { + type ForeignAssets = ::ForeignAssets; + >::balance(ksm_at_polkadot_parachains, &sender) + }); + let receiver_ksm_after = ::account_data_of(receiver).free; + + // Sender's balance is reduced by sent "amount" + assert_eq!(sender_ksm_after, sender_ksm_before - amount); + // Receiver's balance is increased by no more than "amount" + assert!(receiver_ksm_after > receiver_ksm_before); + assert!(receiver_ksm_after <= receiver_ksm_before + amount); +} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs index c1327b69d..8c7f72f55 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs @@ -29,7 +29,7 @@ fn assets_can_be_claimed() { test_chain_can_claim_assets!( AssetHubPaseo, RuntimeCall, - PaseoId.into(), + NetworkId::Paseo, assets, amount ); diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs index 0786529b4..d77d54340 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs @@ -15,6 +15,213 @@ use crate::*; +mod asset_transfers; mod claim_assets; +mod register_bridged_assets; +mod send_xcm; mod snowbridge; mod teleport; + +pub(crate) fn asset_hub_kusama_location() -> Location { + Location::new(2, [GlobalConsensus(Kusama), Parachain(AssetHubKusama::para_id().into())]) +} + +pub(crate) fn bridge_hub_kusama_location() -> Location { + Location::new(2, [GlobalConsensus(Kusama), Parachain(BridgeHubKusama::para_id().into())]) +} + +// PAS and wPAS +pub(crate) fn dot_at_ah_paseo() -> Location { + Parent.into() +} +pub(crate) fn bridged_dot_at_ah_kusama() -> Location { + Location::new(2, [GlobalConsensus(Paseo)]) +} + +// wKSM +pub(crate) fn bridged_ksm_at_ah_paseo() -> Location { + Location::new(2, [GlobalConsensus(Kusama)]) +} + +// USDT and wUSDT +pub(crate) fn usdt_at_ah_paseo() -> Location { + Location::new(0, [PalletInstance(ASSETS_PALLET_ID), GeneralIndex(USDT_ID.into())]) +} +pub(crate) fn bridged_usdt_at_ah_kusama() -> Location { + Location::new( + 2, + [ + GlobalConsensus(Paseo), + Parachain(AssetHubPaseo::para_id().into()), + PalletInstance(ASSETS_PALLET_ID), + GeneralIndex(USDT_ID.into()), + ], + ) +} + +// wETH has same relative location on both Kusama and Paseo AssetHubs +pub(crate) fn weth_at_asset_hubs() -> Location { + Location::new( + 2, + [ + GlobalConsensus(Ethereum { chain_id: snowbridge::CHAIN_ID }), + AccountKey20 { network: None, key: snowbridge::WETH }, + ], + ) +} + +pub(crate) fn create_foreign_on_ah_kusama(id: v4::Location, sufficient: bool) { + let owner = AssetHubKusama::account_id_of(ALICE); + AssetHubKusama::force_create_foreign_asset(id, owner, sufficient, ASSET_MIN_BALANCE, vec![]); +} + +pub(crate) fn create_foreign_on_ah_paseo( + id: v4::Location, + sufficient: bool, + prefund_accounts: Vec<(AccountId, u128)>, +) { + let owner = AssetHubPaseo::account_id_of(ALICE); + let min = ASSET_MIN_BALANCE; + AssetHubPaseo::force_create_foreign_asset(id, owner, sufficient, min, prefund_accounts); +} + +pub(crate) fn foreign_balance_on_ah_kusama(id: v4::Location, who: &AccountId) -> u128 { + AssetHubKusama::execute_with(|| { + type Assets = ::ForeignAssets; + >::balance(id, who) + }) +} +pub(crate) fn foreign_balance_on_ah_paseo(id: v4::Location, who: &AccountId) -> u128 { + AssetHubPaseo::execute_with(|| { + type Assets = ::ForeignAssets; + >::balance(id, who) + }) +} + +// set up pool +pub(crate) fn set_up_pool_with_ksm_on_ah_kusama(asset: v4::Location, is_foreign: bool) { + let ksm: v4::Location = v4::Parent.into(); + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + let owner = AssetHubKusamaSender::get(); + let signed_owner = ::RuntimeOrigin::signed(owner.clone()); + + if is_foreign { + assert_ok!(::ForeignAssets::mint( + signed_owner.clone(), + asset.clone(), + owner.clone().into(), + 3_000_000_000_000, + )); + } else { + let asset_id = match asset.interior.last() { + Some(v4::Junction::GeneralIndex(id)) => *id as u32, + _ => unreachable!(), + }; + assert_ok!(::Assets::mint( + signed_owner.clone(), + asset_id.into(), + owner.clone().into(), + 3_000_000_000_000, + )); + } + assert_ok!(::AssetConversion::create_pool( + signed_owner.clone(), + Box::new(ksm.clone()), + Box::new(asset.clone()), + )); + assert_expected_events!( + AssetHubKusama, + vec![ + RuntimeEvent::AssetConversion(pallet_asset_conversion::Event::PoolCreated { .. }) => {}, + ] + ); + assert_ok!(::AssetConversion::add_liquidity( + signed_owner.clone(), + Box::new(ksm), + Box::new(asset), + 1_000_000_000_000, + 2_000_000_000_000, + 1, + 1, + owner, + )); + assert_expected_events!( + AssetHubKusama, + vec![ + RuntimeEvent::AssetConversion(pallet_asset_conversion::Event::LiquidityAdded {..}) => {}, + ] + ); + }); +} + +pub(crate) fn send_assets_from_asset_hub_paseo( + destination: Location, + assets: Assets, + fee_idx: u32, +) -> DispatchResult { + let signed_origin = + ::RuntimeOrigin::signed(AssetHubPaseoSender::get()); + let beneficiary: Location = + AccountId32Junction { network: None, id: AssetHubKusamaReceiver::get().into() }.into(); + + AssetHubPaseo::execute_with(|| { + ::PolkadotXcm::limited_reserve_transfer_assets( + signed_origin, + bx!(destination.into()), + bx!(beneficiary.into()), + bx!(assets.into()), + fee_idx, + WeightLimit::Unlimited, + ) + }) +} + +pub(crate) fn assert_bridge_hub_paseo_message_accepted(expected_processed: bool) { + BridgeHubPaseo::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + + if expected_processed { + assert_expected_events!( + BridgeHubPaseo, + vec![ + // pay for bridge fees + RuntimeEvent::Balances(pallet_balances::Event::Burned { .. }) => {}, + // message exported + RuntimeEvent::BridgeKusamaMessages( + pallet_bridge_messages::Event::MessageAccepted { .. } + ) => {}, + // message processed successfully + RuntimeEvent::MessageQueue( + pallet_message_queue::Event::Processed { success: true, .. } + ) => {}, + ] + ); + } else { + assert_expected_events!( + BridgeHubPaseo, + vec![ + RuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { + success: false, + .. + }) => {}, + ] + ); + } + }); +} + +pub(crate) fn assert_bridge_hub_kusama_message_received() { + BridgeHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + BridgeHubKusama, + vec![ + // message sent to destination + RuntimeEvent::XcmpQueue( + cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. } + ) => {}, + ] + ); + }) +} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs new file mode 100644 index 000000000..928b486fd --- /dev/null +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs @@ -0,0 +1,128 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use crate::tests::{ + snowbridge::{CHAIN_ID, WETH}, + *, +}; + +const XCM_FEE: u128 = 40_000_000_000; + +/// Tests the registering of a Polkadot Asset as a bridged asset on Kusama Asset Hub. +#[test] +fn register_polkadot_asset_on_kah_from_pah() { + // Polkadot Asset Hub asset when bridged to Kusama Asset Hub. + let bridged_asset_at_kah = v4::Location::new( + 2, + [ + v4::Junction::GlobalConsensus(v4::NetworkId::Polkadot), + v4::Junction::Parachain(AssetHubPolkadot::para_id().into()), + v4::Junction::PalletInstance(ASSETS_PALLET_ID), + v4::Junction::GeneralIndex(ASSET_ID.into()), + ], + ); + // Register above asset on Kusama AH from Polkadot AH. + register_asset_on_kah_from_pah(bridged_asset_at_kah); +} + +/// Tests the registering of an Ethereum Asset as a bridged asset on Kusama Asset Hub. +#[test] +fn register_ethereum_asset_on_kah_from_pah() { + // Ethereum asset when bridged to Kusama Asset Hub. + let bridged_asset_at_kah = v4::Location::new( + 2, + [ + v4::Junction::GlobalConsensus(v4::NetworkId::Ethereum { chain_id: CHAIN_ID }), + v4::Junction::AccountKey20 { network: None, key: WETH }, + ], + ); + // Register above asset on Kusama AH from Polkadot AH. + register_asset_on_kah_from_pah(bridged_asset_at_kah); +} + +fn register_asset_on_kah_from_pah(bridged_asset_at_kah: v4::Location) { + let sa_of_pah_on_kah = AssetHubKusama::sovereign_account_of_parachain_on_other_global_consensus( + Polkadot, + AssetHubPolkadot::para_id(), + ); + + // Encoded `create_asset` call to be executed in Kusama Asset Hub ForeignAssets pallet. + let call = AssetHubKusama::create_foreign_asset_call( + bridged_asset_at_kah.clone(), + ASSET_MIN_BALANCE, + sa_of_pah_on_kah.clone(), + ); + + let origin_kind = OriginKind::Xcm; + let fee_amount = XCM_FEE; + let fees = (Parent, fee_amount).into(); + + let xcm = xcm_transact_paid_execution(call, origin_kind, fees, sa_of_pah_on_kah.clone()); + + // SA-of-PAH-on-KAH needs to have balance to pay for fees and asset creation deposit + AssetHubKusama::fund_accounts(vec![( + sa_of_pah_on_kah.clone(), + ASSET_HUB_KUSAMA_ED * 10000000000, + )]); + + let destination = asset_hub_kusama_location(); + + // fund the PAH's SA on PBH for paying bridge transport fees + BridgeHubPolkadot::fund_para_sovereign(AssetHubPolkadot::para_id(), 10_000_000_000_000u128); + + // set XCM versions + AssetHubPolkadot::force_xcm_version(destination.clone(), XCM_VERSION); + BridgeHubPolkadot::force_xcm_version(bridge_hub_kusama_location(), XCM_VERSION); + + let root_origin = ::RuntimeOrigin::root(); + AssetHubPolkadot::execute_with(|| { + assert_ok!(::PolkadotXcm::send( + root_origin, + bx!(destination.into()), + bx!(xcm), + )); + + AssetHubPolkadot::assert_xcm_pallet_sent(); + }); + + assert_bridge_hub_polkadot_message_accepted(true); + assert_bridge_hub_kusama_message_received(); + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + AssetHubKusama::assert_xcmp_queue_success(None); + assert_expected_events!( + AssetHubKusama, + vec![ + // Burned the fee + RuntimeEvent::Balances(pallet_balances::Event::Burned { who, amount }) => { + who: *who == sa_of_pah_on_kah.clone(), + amount: *amount == fee_amount, + }, + // Foreign Asset created + RuntimeEvent::ForeignAssets(pallet_assets::Event::Created { asset_id, creator, owner }) => { + asset_id: *asset_id == bridged_asset_at_kah, + creator: *creator == sa_of_pah_on_kah.clone(), + owner: *owner == sa_of_pah_on_kah, + }, + // Unspent fee minted to origin + RuntimeEvent::Balances(pallet_balances::Event::Minted { who, .. }) => { + who: *who == sa_of_pah_on_kah.clone(), + }, + ] + ); + type ForeignAssets = ::ForeignAssets; + assert!(ForeignAssets::asset_exists(bridged_asset_at_kah)); + }); +} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs new file mode 100644 index 000000000..65a0dea67 --- /dev/null +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs @@ -0,0 +1,143 @@ +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use crate::tests::*; + +#[test] +fn send_xcm_from_polkadot_relay_to_kusama_asset_hub_should_fail_on_not_applicable() { + // Init tests variables + // XcmPallet send arguments + let sudo_origin = ::RuntimeOrigin::root(); + let destination = Polkadot::child_location_of(BridgeHubPolkadot::para_id()).into(); + let weight_limit = WeightLimit::Unlimited; + let check_origin = None; + + let remote_xcm = Xcm(vec![ClearOrigin]); + + let xcm = VersionedXcm::from(Xcm(vec![ + UnpaidExecution { weight_limit, check_origin }, + ExportMessage { + network: KusamaId, + destination: [Parachain(AssetHubKusama::para_id().into())].into(), + xcm: remote_xcm, + }, + ])); + + // Polkadot Global Consensus + // Send XCM message from Relay Chain to Bridge Hub source Parachain + Polkadot::execute_with(|| { + assert_ok!(::XcmPallet::send( + sudo_origin, + bx!(destination), + bx!(xcm), + )); + + type RuntimeEvent = ::RuntimeEvent; + + assert_expected_events!( + Polkadot, + vec![ + RuntimeEvent::XcmPallet(pallet_xcm::Event::Sent { .. }) => {}, + ] + ); + }); + // Receive XCM message in Bridge Hub source Parachain, it should fail, because we don't have + // opened bridge/lane. + assert_bridge_hub_polkadot_message_accepted(false); +} + +#[test] +fn send_xcm_through_opened_lane_with_different_xcm_version_on_hops_works() { + // Initially set only default version on all runtimes + let newer_xcm_version = xcm::prelude::XCM_VERSION; + let older_xcm_version = newer_xcm_version - 1; + + AssetHubKusama::force_default_xcm_version(Some(older_xcm_version)); + BridgeHubKusama::force_default_xcm_version(Some(older_xcm_version)); + BridgeHubPolkadot::force_default_xcm_version(Some(older_xcm_version)); + AssetHubPolkadot::force_default_xcm_version(Some(older_xcm_version)); + + // prepare data + let destination = asset_hub_kusama_location(); + let native_token = Location::parent(); + let amount = ASSET_HUB_POLKADOT_ED * 1_000; + + // fund the AHK's SA on BHK for paying bridge transport fees + BridgeHubPolkadot::fund_para_sovereign(AssetHubPolkadot::para_id(), 10_000_000_000_000u128); + // fund sender + AssetHubPolkadot::fund_accounts(vec![(AssetHubPolkadotSender::get(), amount * 10)]); + + // send XCM from AssetHubPolkadot - fails - destination version not known + assert_err!( + send_assets_from_asset_hub_polkadot( + destination.clone(), + (native_token.clone(), amount).into(), + 0 + ), + DispatchError::Module(sp_runtime::ModuleError { + index: 31, + error: [1, 0, 0, 0], + message: Some("SendFailure") + }) + ); + + // set destination version + AssetHubPolkadot::force_xcm_version(destination.clone(), newer_xcm_version); + + // set version with `ExportMessage` for BridgeHubPolkadot + AssetHubPolkadot::force_xcm_version( + ParentThen(Parachain(BridgeHubPolkadot::para_id().into()).into()).into(), + newer_xcm_version, + ); + // send XCM from AssetHubPolkadot - ok + assert_ok!(send_assets_from_asset_hub_polkadot( + destination.clone(), + (native_token.clone(), amount).into(), + 0 + )); + + // `ExportMessage` on local BridgeHub - fails - remote BridgeHub version not known + assert_bridge_hub_polkadot_message_accepted(false); + + // set version for remote BridgeHub on BridgeHubPolkadot + BridgeHubPolkadot::force_xcm_version(bridge_hub_kusama_location(), newer_xcm_version); + // set version for AssetHubKusama on BridgeHubKusama + BridgeHubKusama::force_xcm_version( + ParentThen(Parachain(AssetHubKusama::para_id().into()).into()).into(), + newer_xcm_version, + ); + + // send XCM from AssetHubPolkadot - ok + assert_ok!(send_assets_from_asset_hub_polkadot( + destination.clone(), + (native_token.clone(), amount).into(), + 0 + )); + assert_bridge_hub_polkadot_message_accepted(true); + assert_bridge_hub_kusama_message_received(); + // message delivered and processed at destination + AssetHubKusama::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + assert_expected_events!( + AssetHubKusama, + vec![ + // message processed with failure, but for this scenario it is ok, important is that was delivered + RuntimeEvent::MessageQueue( + pallet_message_queue::Event::Processed { success: false, .. } + ) => {}, + ] + ); + }); +} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs index 390b64778..349fa2488 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs @@ -23,10 +23,11 @@ use bridge_hub_paseo_runtime::{ Runtime, RuntimeOrigin, }; use codec::{Decode, Encode}; -use emulated_integration_tests_common::xcm_emulator::ConvertLocation; +use emulated_integration_tests_common::{xcm_emulator::ConvertLocation, RESERVABLE_ASSET_ID}; use frame_support::pallet_prelude::TypeInfo; use hex_literal::hex; use paseo_system_emulated_network::{ + asset_hub_paseo_emulated_chain::genesis::AssetHubPaseoAssetOwner, penpal_emulated_chain::CustomizableAssetFromSystemAssetHub, BridgeHubPaseoParaSender as BridgeHubPaseoSender, }; @@ -38,7 +39,7 @@ use snowbridge_core::{ inbound::{InboundQueueFixture, Log, Message, Proof}, meth, outbound::OperatingMode, - Rewards, + AssetMetadata, Rewards, TokenIdOf, }; use snowbridge_pallet_system::PricingParametersOf; use snowbridge_router_primitives::inbound::{ @@ -55,7 +56,10 @@ const ETHEREUM_DESTINATION_ADDRESS: [u8; 20] = hex!("44a57ee2f2FCcb85FDa2B0B18EB const GATEWAY_ADDRESS: [u8; 20] = hex!("EDa338E4dC46038493b885327842fD3E301CaB39"); const INSUFFICIENT_XCM_FEE: u128 = 1000; const XCM_FEE: u128 = 4_000_000_000; -const WETH_AMOUNT: u128 = 1_000_000_000; +const TOKEN_AMOUNT: u128 = 100_000_000_000; +const AH_BASE_FEE: u128 = 2_750_872_500_000u128; +const MIN_ETHER_BALANCE: u128 = 15_000_000_000_000; +const ETHER_TOKEN_ADDRESS: [u8; 20] = [0; 20]; #[derive(Encode, Decode, Debug, PartialEq, Eq, Clone, TypeInfo)] pub enum ControlCall { @@ -132,14 +136,14 @@ fn create_agent() { BridgeHubPaseo::execute_with(|| { type RuntimeEvent = ::RuntimeEvent; - // Check that a message was sent to Ethereum to create the agent - assert_expected_events!( - BridgeHubPaseo, - vec![ - RuntimeEvent::EthereumSystem(snowbridge_pallet_system::Event::CreateAgent { - .. - }) => {}, - ] + + let events = BridgeHubPaseo::events(); + assert!( + events.iter().any(|event| !matches!( + event, + RuntimeEvent::EthereumSystem(snowbridge_pallet_system::Event::CreateAgent { .. }) + )), + "Create agent event found while not expected." ); }); } @@ -212,14 +216,13 @@ fn create_channel() { BridgeHubPaseo::execute_with(|| { type RuntimeEvent = ::RuntimeEvent; - // Check that the Channel was created - assert_expected_events!( - BridgeHubPaseo, - vec![ - RuntimeEvent::EthereumSystem(snowbridge_pallet_system::Event::CreateChannel { - .. - }) => {}, - ] + let events = BridgeHubPaseo::events(); + assert!( + events.iter().any(|event| !matches!( + event, + RuntimeEvent::EthereumSystem(snowbridge_pallet_system::Event::CreateChannel { .. }) + )), + "Create channel event found while not expected." ); }); } @@ -240,14 +243,12 @@ fn register_weth_token_from_ethereum_to_asset_hub() { vec![(EthereumGatewayAddress::key().to_vec(), H160(GATEWAY_ADDRESS).encode())], )); // Construct RegisterToken message and sent to inbound queue - let message_id: H256 = [1; 32].into(); let message = VersionedMessage::V1(MessageV1 { chain_id: CHAIN_ID, command: Command::RegisterToken { token: WETH.into(), fee: XCM_FEE }, }); // Convert the message to XCM - let (xcm, _) = EthereumInboundQueue::do_convert(message_id, message).unwrap(); - // Send the XCM + let (xcm, _) = EthereumInboundQueue::do_convert([0; 32].into(), message).unwrap(); let _ = EthereumInboundQueue::send_xcm(xcm, AssetHubPaseo::para_id()).unwrap(); assert_expected_events!( @@ -389,7 +390,7 @@ fn send_token_from_ethereum_to_penpal() { /// Tests the registering of a token as an asset on AssetHub, and then subsequently sending /// a token from Ethereum to AssetHub. #[test] -fn send_token_from_ethereum_to_asset_hub() { +fn send_weth_from_ethereum_to_asset_hub() { BridgeHubPaseo::fund_para_sovereign(AssetHubPaseo::para_id(), INITIAL_FUND); // Fund ethereum sovereign account on AssetHub. AssetHubPaseo::fund_accounts(vec![(ethereum_sovereign_account(), INITIAL_FUND)]); @@ -428,7 +429,7 @@ fn send_token_from_ethereum_to_asset_hub() { destination: Destination::AccountId32 { id: AssetHubPaseoReceiver::get().into(), }, - amount: WETH_AMOUNT, + amount: TOKEN_AMOUNT, fee: XCM_FEE, }, }); @@ -459,22 +460,14 @@ fn send_token_from_ethereum_to_asset_hub() { }); } -/// Tests the full cycle of token transfers: -/// - registering a token on AssetHub -/// - sending a token to AssetHub -/// - returning the token to Ethereum -#[test] -fn send_weth_asset_from_asset_hub_to_ethereum() { - let assethub_sovereign = BridgeHubPaseo::sovereign_account_id_of(Location::new( - 1, - [Parachain(AssetHubPaseo::para_id().into())], - )); - - AssetHubPaseo::force_default_xcm_version(Some(XCM_VERSION)); - BridgeHubPaseo::force_default_xcm_version(Some(XCM_VERSION)); - AssetHubPaseo::force_xcm_version( - Location::new(2, [GlobalConsensus(Ethereum { chain_id: CHAIN_ID })]), - XCM_VERSION, +// Performs a round trip tansfer of a token, asseting success. +fn send_token_from_ethereum_to_asset_hub_and_back_works( + token_address: H160, + amount: u128, + asset_location: Location, +) { + let assethub_sovereign = BridgeHubPaseo::sovereign_account_id_of( + BridgeHubPaseo::sibling_location_of(AssetHubPaseo::para_id()), ); BridgeHubPaseo::fund_accounts(vec![ @@ -486,15 +479,17 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { (ethereum_sovereign_account(), INITIAL_FUND), ]); - let base_fee = 2_750_872_500_000u128; - + // Set base transfer fee to Ethereum on AH. AssetHubPaseo::execute_with(|| { + type RuntimeOrigin = ::RuntimeOrigin; + assert_ok!(::System::set_storage( - ::RuntimeOrigin::root(), - vec![(BridgeHubEthereumBaseFee::key().to_vec(), base_fee.encode())], + RuntimeOrigin::root(), + vec![(BridgeHubEthereumBaseFee::key().to_vec(), AH_BASE_FEE.encode())], )); }); + // Send Token from Bridge Hub (simulates received Command from Ethereum) BridgeHubPaseo::execute_with(|| { type RuntimeEvent = ::RuntimeEvent; @@ -519,32 +514,15 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { )); let message_id: H256 = [1; 32].into(); - let message = VersionedMessage::V1(MessageV1 { - chain_id: CHAIN_ID, - command: Command::RegisterToken { token: WETH.into(), fee: XCM_FEE }, - }); - // Convert the message to XCM - let (xcm, _) = EthereumInboundQueue::do_convert(message_id, message).unwrap(); - // Send the XCM - let _ = EthereumInboundQueue::send_xcm(xcm, AssetHubPaseo::para_id()).unwrap(); - - // Check that the register token message was sent using xcm - assert_expected_events!( - BridgeHubPaseo, - vec![ - RuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. }) => {}, - ] - ); - // Construct SendToken message and sent to inbound queue let message = VersionedMessage::V1(MessageV1 { chain_id: CHAIN_ID, command: Command::SendToken { - token: WETH.into(), + token: token_address, destination: Destination::AccountId32 { id: AssetHubPaseoReceiver::get().into(), }, - amount: WETH_AMOUNT, + amount, fee: XCM_FEE, }, }); @@ -553,7 +531,7 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { // Send the XCM let _ = EthereumInboundQueue::send_xcm(xcm, AssetHubPaseo::para_id()).unwrap(); - // Check that the send token message was sent using xcm + // Check that the message was sent assert_expected_events!( BridgeHubPaseo, vec![ @@ -562,33 +540,31 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ); }); - // check treasury account balance on BH before - let treasury_account_before = BridgeHubPaseo::execute_with(|| { - <::Balances as frame_support::traits::fungible::Inspect<_>>::balance(&RelayTreasuryPalletAccount::get()) - }); - + // Receive Token on Asset Hub. AssetHubPaseo::execute_with(|| { type RuntimeEvent = ::RuntimeEvent; - type RuntimeOrigin = ::RuntimeOrigin; - // Check that AssetHub has issued the foreign asset + // Check that the token was received and issued as a foreign asset on AssetHub assert_expected_events!( AssetHubPaseo, vec![ - RuntimeEvent::ForeignAssets(pallet_assets::Event::Issued { .. }) => {}, + RuntimeEvent::ForeignAssets(pallet_assets::Event::Issued { asset_id, .. }) => { + asset_id: *asset_id == asset_location, + }, ] ); - let assets = vec![Asset { - id: AssetId(Location::new( - 2, - [ - GlobalConsensus(Ethereum { chain_id: CHAIN_ID }), - AccountKey20 { network: None, key: WETH }, - ], - )), - fun: Fungible(WETH_AMOUNT), - }]; - let multi_assets = VersionedAssets::from(Assets::from(assets)); + }); + + let treasury_account_before = BridgeHubPaseo::execute_with(|| { + <::Balances as frame_support::traits::fungible::Inspect<_>>::balance(&RelayTreasuryPalletAccount::get()) + }); + + // Send Token from Asset Hub back to Ethereum. + AssetHubPaseo::execute_with(|| { + type RuntimeOrigin = ::RuntimeOrigin; + + let assets = vec![Asset { id: AssetId(asset_location), fun: Fungible(amount) }]; + let versioned_assets = VersionedAssets::from(Assets::from(assets)); let destination = VersionedLocation::from(Location::new( 2, @@ -604,13 +580,13 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ::Balances::free_balance( AssetHubPaseoReceiver::get(), ); - // Send the Weth back to Ethereum + // Send the Token back to Ethereum assert_ok!( ::PolkadotXcm::limited_reserve_transfer_assets( RuntimeOrigin::signed(AssetHubPaseoReceiver::get()), Box::new(destination), Box::new(beneficiary), - Box::new(multi_assets), + Box::new(versioned_assets), 0, Unlimited, ) @@ -622,13 +598,13 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ); // Assert at least DefaultBridgeHubEthereumBaseFee charged from the sender let free_balance_diff = free_balance_before - free_balance_after; - assert!(free_balance_diff > base_fee); + assert!(free_balance_diff > AH_BASE_FEE); }); + // Check that message with Token was queued on the BridgeHub BridgeHubPaseo::execute_with(|| { type RuntimeEvent = ::RuntimeEvent; - // Check that the transfer token back to Ethereum message was queue in the Ethereum - // Outbound Queue + // check the outbound queue assert_expected_events!( BridgeHubPaseo, vec![ @@ -645,8 +621,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { assert!( events.iter().any(|event| matches!( event, - RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) - if *who == RelayTreasuryPalletAccount::get() && *amount == local_fee + RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: fee_minted }) + if *who == RelayTreasuryPalletAccount::get() && *fee_minted == local_fee )), "Snowbridge sovereign takes local fee." ); @@ -662,6 +638,55 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { }); } +/// Tests sending Ether from Ethereum to Asset Hub and back to Ethereum +#[test] +fn send_eth_asset_from_asset_hub_to_ethereum() { + let ether_location: Location = (Parent, Parent, EthereumNetwork::get()).into(); + + // Register Ether as foreign asset on AH. + AssetHubPaseo::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + type RuntimeOrigin = ::RuntimeOrigin; + + assert_ok!(::ForeignAssets::force_create( + RuntimeOrigin::root(), + ether_location.clone(), + ethereum_sovereign_account().into(), + true, + MIN_ETHER_BALANCE, + )); + + assert_expected_events!( + AssetHubPaseo, + vec![ + RuntimeEvent::ForeignAssets(pallet_assets::Event::ForceCreated { .. }) => {}, + ] + ); + }); + + // Perform a roundtrip transfer of Ether + send_token_from_ethereum_to_asset_hub_and_back_works( + ETHER_TOKEN_ADDRESS.into(), + MIN_ETHER_BALANCE + TOKEN_AMOUNT, + ether_location, + ); +} + +/// Tests the full cycle of token transfers: +/// - registering a token on AssetHub +/// - sending a token to AssetHub +/// - returning the token to Ethereum +#[test] +fn send_weth_asset_from_asset_hub_to_ethereum() { + // Register WETH on Asset Hub + register_weth_token_from_ethereum_to_asset_hub(); + + let weth_location: Location = + (Parent, Parent, EthereumNetwork::get(), AccountKey20 { network: None, key: WETH }).into(); + // Perform a roundtrip transfer of WETH + send_token_from_ethereum_to_asset_hub_and_back_works(WETH.into(), TOKEN_AMOUNT, weth_location); +} + #[test] fn register_weth_token_in_asset_hub_fail_for_insufficient_fee() { BridgeHubPaseo::fund_para_sovereign(AssetHubPaseo::para_id(), INITIAL_FUND); @@ -962,3 +987,333 @@ fn send_token_from_ethereum_to_non_existent_account_on_asset_hub_with_sufficient ); }); } + +#[test] +fn transfer_relay_token() { + let assethub_sovereign = BridgeHubPaseo::sovereign_account_id_of( + BridgeHubPaseo::sibling_location_of(AssetHubPaseo::para_id()), + ); + BridgeHubPaseo::fund_accounts(vec![(assethub_sovereign.clone(), INITIAL_FUND)]); + + let asset_id: Location = Location { parents: 1, interior: [].into() }; + let expected_asset_id: Location = + Location { parents: 1, interior: [GlobalConsensus(Paseo)].into() }; + + let expected_token_id = TokenIdOf::convert_location(&expected_asset_id).unwrap(); + + let ethereum_sovereign: AccountId = + GlobalConsensusEthereumConvertsFor::<[u8; 32]>::convert_location(&Location::new( + 2, + [GlobalConsensus(EthereumNetwork::get())], + )) + .unwrap() + .into(); + + // Register token + BridgeHubPaseo::execute_with(|| { + type RuntimeOrigin = ::RuntimeOrigin; + type RuntimeEvent = ::RuntimeEvent; + + assert_ok!(::Balances::force_set_balance( + RuntimeOrigin::root(), + sp_runtime::MultiAddress::Id(BridgeHubPaseoSender::get()), + INITIAL_FUND * 10, + )); + + assert_ok!(::EthereumSystem::register_token( + RuntimeOrigin::root(), + Box::new(VersionedLocation::V4(asset_id.clone())), + AssetMetadata { + name: "wnd".as_bytes().to_vec().try_into().unwrap(), + symbol: "wnd".as_bytes().to_vec().try_into().unwrap(), + decimals: 12, + }, + )); + // Check that a message was sent to Ethereum to create the agent + assert_expected_events!( + BridgeHubPaseo, + vec![RuntimeEvent::EthereumSystem(snowbridge_pallet_system::Event::RegisterToken { .. }) => {},] + ); + }); + + // Send token to Ethereum + AssetHubPaseo::execute_with(|| { + type RuntimeOrigin = ::RuntimeOrigin; + type RuntimeEvent = ::RuntimeEvent; + + // Set base transfer fee to Ethereum on AH. + assert_ok!(::System::set_storage( + ::RuntimeOrigin::root(), + vec![(BridgeHubEthereumBaseFee::key().to_vec(), AH_BASE_FEE.encode())], + )); + + let assets = vec![Asset { id: AssetId(Location::parent()), fun: Fungible(TOKEN_AMOUNT) }]; + let versioned_assets = VersionedAssets::V4(Assets::from(assets)); + + let destination = VersionedLocation::V4(Location::new( + 2, + [GlobalConsensus(Ethereum { chain_id: CHAIN_ID })], + )); + + let beneficiary = VersionedLocation::V4(Location::new( + 0, + [AccountKey20 { network: None, key: ETHEREUM_DESTINATION_ADDRESS }], + )); + + assert_ok!(::PolkadotXcm::limited_reserve_transfer_assets( + RuntimeOrigin::signed(AssetHubPaseoSender::get()), + Box::new(destination), + Box::new(beneficiary), + Box::new(versioned_assets), + 0, + Unlimited, + )); + + let events = AssetHubPaseo::events(); + // Check that the native asset transferred to some reserved account(sovereign of Ethereum) + assert!( + events.iter().any(|event| matches!( + event, + RuntimeEvent::Balances(pallet_balances::Event::Transfer { amount, to, ..}) + if *amount == TOKEN_AMOUNT && *to == ethereum_sovereign.clone(), + )), + "native token reserved to Ethereum sovereign account." + ); + }); + + // Send token back from ethereum + BridgeHubPaseo::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + + // Check that the transfer token back to Ethereum message was queue in the Ethereum + // Outbound Queue + assert_expected_events!( + BridgeHubPaseo, + vec![RuntimeEvent::EthereumOutboundQueue(snowbridge_pallet_outbound_queue::Event::MessageQueued{ .. }) => {},] + ); + + // Send relay token back to AH + let message_id: H256 = [0; 32].into(); + let message = VersionedMessage::V1(MessageV1 { + chain_id: CHAIN_ID, + command: Command::SendNativeToken { + token_id: expected_token_id, + destination: Destination::AccountId32 { + id: AssetHubPaseoReceiver::get().into(), + }, + amount: TOKEN_AMOUNT, + fee: XCM_FEE, + }, + }); + // Convert the message to XCM + let (xcm, _) = EthereumInboundQueue::do_convert(message_id, message).unwrap(); + // Send the XCM + let _ = EthereumInboundQueue::send_xcm(xcm, AssetHubPaseo::para_id()).unwrap(); + + assert_expected_events!( + BridgeHubPaseo, + vec![RuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. }) => {},] + ); + }); + + AssetHubPaseo::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + + assert_expected_events!( + AssetHubPaseo, + vec![RuntimeEvent::Balances(pallet_balances::Event::Burned{ .. }) => {},] + ); + + let events = AssetHubPaseo::events(); + + // Check that the native token burnt from some reserved account + assert!( + events.iter().any(|event| matches!( + event, + RuntimeEvent::Balances(pallet_balances::Event::Burned { who, ..}) + if *who == ethereum_sovereign.clone(), + )), + "native token burnt from Ethereum sovereign account." + ); + + // Check that the token was minted to beneficiary + assert!( + events.iter().any(|event| matches!( + event, + RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) + if *amount >= TOKEN_AMOUNT && *who == AssetHubPaseoReceiver::get() + )), + "Token minted to beneficiary." + ); + }); +} + +#[test] +fn transfer_ah_token() { + let assethub_sovereign = BridgeHubPaseo::sovereign_account_id_of( + BridgeHubPaseo::sibling_location_of(AssetHubPaseo::para_id()), + ); + BridgeHubPaseo::fund_accounts(vec![(assethub_sovereign.clone(), INITIAL_FUND)]); + + let ethereum_destination = Location::new(2, [GlobalConsensus(Ethereum { chain_id: CHAIN_ID })]); + + let ethereum_sovereign: AccountId = + GlobalConsensusEthereumConvertsFor::<[u8; 32]>::convert_location(ðereum_destination) + .unwrap() + .into(); + AssetHubPaseo::fund_accounts(vec![(ethereum_sovereign.clone(), INITIAL_FUND)]); + + let asset_id: Location = + [PalletInstance(ASSETS_PALLET_ID), GeneralIndex(RESERVABLE_ASSET_ID.into())].into(); + + let asset_id_in_bh: Location = Location::new( + 1, + [ + Parachain(AssetHubPaseo::para_id().into()), + PalletInstance(ASSETS_PALLET_ID), + GeneralIndex(RESERVABLE_ASSET_ID.into()), + ], + ); + + let asset_id_after_reanchored = Location::new( + 1, + [GlobalConsensus(Paseo), Parachain(AssetHubPaseo::para_id().into())], + ) + .appended_with(asset_id.clone().interior) + .unwrap(); + + let token_id = TokenIdOf::convert_location(&asset_id_after_reanchored).unwrap(); + + // Register token + BridgeHubPaseo::execute_with(|| { + type RuntimeOrigin = ::RuntimeOrigin; + + assert_ok!(::EthereumSystem::register_token( + RuntimeOrigin::root(), + Box::new(VersionedLocation::V4(asset_id_in_bh.clone())), + AssetMetadata { + name: "ah_asset".as_bytes().to_vec().try_into().unwrap(), + symbol: "ah_asset".as_bytes().to_vec().try_into().unwrap(), + decimals: 12, + }, + )); + }); + + // Mint some token + AssetHubPaseo::mint_asset( + ::RuntimeOrigin::signed(AssetHubPaseoAssetOwner::get()), + RESERVABLE_ASSET_ID, + AssetHubPaseoSender::get(), + TOKEN_AMOUNT, + ); + + // Send token to Ethereum + AssetHubPaseo::execute_with(|| { + type RuntimeOrigin = ::RuntimeOrigin; + type RuntimeEvent = ::RuntimeEvent; + + // Set base transfer fee to Ethereum on AH. + assert_ok!(::System::set_storage( + ::RuntimeOrigin::root(), + vec![(BridgeHubEthereumBaseFee::key().to_vec(), AH_BASE_FEE.encode())], + )); + + // Send partial of the token, will fail if send all + let assets = vec![Asset { id: AssetId(asset_id.clone()), fun: Fungible(TOKEN_AMOUNT / 2) }]; + let versioned_assets = VersionedAssets::V4(Assets::from(assets)); + + let beneficiary = VersionedLocation::V4(Location::new( + 0, + [AccountKey20 { network: None, key: ETHEREUM_DESTINATION_ADDRESS }], + )); + + assert_ok!(::PolkadotXcm::limited_reserve_transfer_assets( + RuntimeOrigin::signed(AssetHubPaseoSender::get()), + Box::new(VersionedLocation::from(ethereum_destination)), + Box::new(beneficiary), + Box::new(versioned_assets), + 0, + Unlimited, + )); + + assert_expected_events!( + AssetHubPaseo, + vec![RuntimeEvent::Assets(pallet_assets::Event::Transferred{ .. }) => {},] + ); + + let events = AssetHubPaseo::events(); + // Check that the native asset transferred to some reserved account(sovereign of Ethereum) + assert!( + events.iter().any(|event| matches!( + event, + RuntimeEvent::Assets(pallet_assets::Event::Transferred { asset_id, to, ..}) + if *asset_id == RESERVABLE_ASSET_ID && *to == ethereum_sovereign.clone() + )), + "native token reserved to Ethereum sovereign account." + ); + }); + + // Send token back from Ethereum + BridgeHubPaseo::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + + // Check that the transfer token back to Ethereum message was queue in the Ethereum + // Outbound Queue + assert_expected_events!( + BridgeHubPaseo, + vec![RuntimeEvent::EthereumOutboundQueue(snowbridge_pallet_outbound_queue::Event::MessageQueued{ .. }) => {},] + ); + + let message = VersionedMessage::V1(MessageV1 { + chain_id: CHAIN_ID, + command: Command::SendNativeToken { + token_id, + destination: Destination::AccountId32 { + id: AssetHubPaseoReceiver::get().into(), + }, + amount: TOKEN_AMOUNT / 10, + fee: XCM_FEE, + }, + }); + // Convert the message to XCM + let (xcm, _) = EthereumInboundQueue::do_convert([0; 32].into(), message).unwrap(); + // Send the XCM + let _ = EthereumInboundQueue::send_xcm(xcm, AssetHubPaseo::para_id()).unwrap(); + + assert_expected_events!( + BridgeHubPaseo, + vec![RuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. }) => {},] + ); + }); + + AssetHubPaseo::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; + + assert_expected_events!( + AssetHubPaseo, + vec![RuntimeEvent::Assets(pallet_assets::Event::Burned{..}) => {},] + ); + + let events = AssetHubPaseo::events(); + + // Check that the native token burnt from some reserved account + assert!( + events.iter().any(|event| matches!( + event, + RuntimeEvent::Assets(pallet_assets::Event::Burned { owner, .. }) + if *owner == ethereum_sovereign.clone(), + )), + "token burnt from Ethereum sovereign account." + ); + + // Check that the token was minted to beneficiary + assert!( + events.iter().any(|event| matches!( + event, + RuntimeEvent::Assets(pallet_assets::Event::Issued { owner, .. }) + if *owner == AssetHubPaseoReceiver::get() + )), + "Token minted to beneficiary." + ); + }); +} From 9a0b18e78a67775304242603263e5d355f692f42 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Wed, 12 Feb 2025 13:49:56 +0100 Subject: [PATCH 10/14] Trigger workflow From 009bedce6ed10cebbef845fcb90641f2ae0e1994 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Wed, 12 Feb 2025 14:51:11 +0100 Subject: [PATCH 11/14] Trigger workflow From 09fcb845b5a6f1252cfccec0656e85bed8c92af2 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Wed, 12 Feb 2025 16:07:26 +0100 Subject: [PATCH 12/14] Trigger workflow From ccc647a8ebb1b10a02f1a7446a5274baecbdc0b4 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Wed, 12 Feb 2025 18:50:49 +0100 Subject: [PATCH 13/14] update: some tests --- relay/paseo/tests/location_conversion.rs | 2 +- .../asset-hub-paseo/tests/tests.rs | 34 +++++++++---------- .../bridge-hub-paseo/tests/tests.rs | 6 ++-- .../collectives-paseo/src/lib.rs | 4 +-- .../collectives-paseo/tests/asset_rate.rs | 2 +- .../tests/location_conversion.rs | 2 +- .../tests/xcm_payment_api.rs | 2 +- system-parachains/coretime-paseo/src/tests.rs | 6 ++-- 8 files changed, 29 insertions(+), 29 deletions(-) diff --git a/relay/paseo/tests/location_conversion.rs b/relay/paseo/tests/location_conversion.rs index bfa899bf5..54aeda574 100644 --- a/relay/paseo/tests/location_conversion.rs +++ b/relay/paseo/tests/location_conversion.rs @@ -15,7 +15,7 @@ // along with Polkadot. If not, see . use polkadot_primitives::AccountId; -use polkadot_runtime::xcm_config::SovereignAccountOf; +use paseo_runtime::xcm_config::SovereignAccountOf; use sp_core::crypto::Ss58Codec; use xcm::prelude::*; use xcm_runtime_apis::conversions::LocationToAccountHelper; diff --git a/system-parachains/asset-hub-paseo/tests/tests.rs b/system-parachains/asset-hub-paseo/tests/tests.rs index 4c45302f3..d14b691cd 100644 --- a/system-parachains/asset-hub-paseo/tests/tests.rs +++ b/system-parachains/asset-hub-paseo/tests/tests.rs @@ -44,7 +44,7 @@ use sp_core::crypto::Ss58Codec; use sp_runtime::traits::MaybeEquivalence; use sp_std::ops::Mul; use system_parachains_constants::{ - kusama::consensus::RELAY_CHAIN_SLOT_DURATION_MILLIS, polkadot::fee::WeightToFee, + paseo::consensus::RELAY_CHAIN_SLOT_DURATION_MILLIS, paseo::fee::WeightToFee, }; use xcm::latest::prelude::{Assets as XcmAssets, *}; use xcm_builder::WithLatestLocationConverter; @@ -135,7 +135,7 @@ fn test_ed_is_one_hundredth_of_relay() { )]) .build() .execute_with(|| { - let relay_ed = polkadot_runtime_constants::currency::EXISTENTIAL_DEPOSIT; + let relay_ed = paseo_runtime_constants::currency::EXISTENTIAL_DEPOSIT; let asset_hub_ed = ExistentialDeposit::get(); assert_eq!(relay_ed / 100, asset_hub_ed); }); @@ -586,21 +586,21 @@ fn reserve_transfer_native_asset_to_non_teleport_para_works() { ); } -#[test] -fn report_bridge_status_from_xcm_bridge_router_for_kusama_works() { - asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::< - Runtime, - AllPalletsWithoutSystem, - XcmConfig, - LocationToAccountId, - ToKusamaXcmRouterInstance, - >( - collator_session_keys(), - bridging_to_asset_hub_kusama, - || bp_asset_hub_polkadot::build_congestion_message(Default::default(), true).into(), - || bp_asset_hub_polkadot::build_congestion_message(Default::default(), false).into(), - ) -} +// #[test] +// fn report_bridge_status_from_xcm_bridge_router_for_kusama_works() { +// asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::< +// Runtime, +// AllPalletsWithoutSystem, +// XcmConfig, +// LocationToAccountId, +// ToKusamaXcmRouterInstance, +// >( +// collator_session_keys(), +// bridging_to_asset_hub_kusama, +// || bp_asset_hub_polkadot::build_congestion_message(Default::default(), true).into(), +// || bp_asset_hub_polkadot::build_congestion_message(Default::default(), false).into(), +// ) +// } #[test] fn test_report_bridge_status_call_compatibility() { diff --git a/system-parachains/bridge-hub-paseo/tests/tests.rs b/system-parachains/bridge-hub-paseo/tests/tests.rs index 2299c8185..c3b6c9ea9 100644 --- a/system-parachains/bridge-hub-paseo/tests/tests.rs +++ b/system-parachains/bridge-hub-paseo/tests/tests.rs @@ -440,7 +440,7 @@ fn treasury_pallet_account_not_none() { fn location_conversion_works() { let alice_32 = xcm::prelude::AccountId32 { network: None, - id: paseo_core_primitives::AccountId::from(Alice).into(), + id: polkadot_core_primitives::AccountId::from(Alice).into(), }; let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; @@ -527,10 +527,10 @@ fn location_conversion_works() { ]; for tc in test_cases { - let expected = paseo_core_primitives::AccountId::from_string(tc.expected_account_id_str) + let expected = polkadot_core_primitives::AccountId::from_string(tc.expected_account_id_str) .expect("Invalid AccountId string"); - let got = LocationToAccountHelper::::convert_location( + let got = LocationToAccountHelper::::convert_location( tc.location.into(), ) .unwrap(); diff --git a/system-parachains/collectives-paseo/src/lib.rs b/system-parachains/collectives-paseo/src/lib.rs index c24187ae3..8e5f2274a 100644 --- a/system-parachains/collectives-paseo/src/lib.rs +++ b/system-parachains/collectives-paseo/src/lib.rs @@ -1314,14 +1314,14 @@ fn fellowship_treasury_pallet_index() { #[test] fn test_ed_is_one_tenth_of_relay() { - let relay_ed = polkadot_runtime_constants::currency::EXISTENTIAL_DEPOSIT; + let relay_ed = paseo_runtime_constants::currency::EXISTENTIAL_DEPOSIT; let collectives_ed = ExistentialDeposit::get(); assert_eq!(relay_ed / 10, collectives_ed); } #[test] fn test_transasction_byte_fee_is_one_twentieth_of_relay() { - let relay_tbf = polkadot_runtime_constants::fee::TRANSACTION_BYTE_FEE; + let relay_tbf = paseo_runtime_constants::fee::TRANSACTION_BYTE_FEE; let parachain_tbf = TransactionByteFee::get(); assert_eq!(relay_tbf / 20, parachain_tbf); } diff --git a/system-parachains/collectives-paseo/tests/asset_rate.rs b/system-parachains/collectives-paseo/tests/asset_rate.rs index 05d0b7dae..d95a326ac 100644 --- a/system-parachains/collectives-paseo/tests/asset_rate.rs +++ b/system-parachains/collectives-paseo/tests/asset_rate.rs @@ -16,7 +16,7 @@ //! AssetRate pallet instance tests. -use collectives_polkadot_runtime::AssetRateWithNative; +use collectives_paseo_runtime::AssetRateWithNative; use frame_support::traits::tokens::ConversionFromAssetBalance; use polkadot_runtime_common::impls::VersionedLocatableAsset; use xcm::prelude::*; diff --git a/system-parachains/collectives-paseo/tests/location_conversion.rs b/system-parachains/collectives-paseo/tests/location_conversion.rs index 21c331591..0da2f1014 100644 --- a/system-parachains/collectives-paseo/tests/location_conversion.rs +++ b/system-parachains/collectives-paseo/tests/location_conversion.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . -use collectives_polkadot_runtime::xcm_config::LocationToAccountId; +use collectives_paseo_runtime::xcm_config::LocationToAccountId; use polkadot_core_primitives::AccountId; use sp_core::crypto::Ss58Codec; use xcm::prelude::*; diff --git a/system-parachains/collectives-paseo/tests/xcm_payment_api.rs b/system-parachains/collectives-paseo/tests/xcm_payment_api.rs index cd52a183b..f52c69f0d 100644 --- a/system-parachains/collectives-paseo/tests/xcm_payment_api.rs +++ b/system-parachains/collectives-paseo/tests/xcm_payment_api.rs @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -use collectives_polkadot_runtime::{Block, Runtime, RuntimeCall, RuntimeOrigin}; +use collectives_paseo_runtime::{Block, Runtime, RuntimeCall, RuntimeOrigin}; #[test] fn xcm_payment_api_works() { diff --git a/system-parachains/coretime-paseo/src/tests.rs b/system-parachains/coretime-paseo/src/tests.rs index e4a8e4c30..4dda1aed7 100644 --- a/system-parachains/coretime-paseo/src/tests.rs +++ b/system-parachains/coretime-paseo/src/tests.rs @@ -119,7 +119,7 @@ fn timeslice_period_is_sane() { #[test] fn location_conversion_works() { let alice_32 = - AccountId32 { network: None, id: paseo_core_primitives::AccountId::from(ALICE).into() }; + AccountId32 { network: None, id: polkadot_core_primitives::AccountId::from(ALICE).into() }; let bob_20 = AccountKey20 { network: None, key: [123u8; 20] }; // the purpose of hardcoded values is to catch an unintended location conversion logic change. @@ -205,10 +205,10 @@ fn location_conversion_works() { ]; for tc in test_cases { - let expected = paseo_core_primitives::AccountId::from_string(tc.expected_account_id_str) + let expected = polkadot_core_primitives::AccountId::from_string(tc.expected_account_id_str) .expect("Invalid AccountId string"); - let got = LocationToAccountHelper::::convert_location( + let got = LocationToAccountHelper::::convert_location( tc.location.into(), ) .unwrap(); From 6cb591194812c1df958c5581d5962e6ffff9d343 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Thu, 13 Feb 2025 12:04:10 +0100 Subject: [PATCH 14/14] update: tests --- .../tests/bridges/bridge-hub-paseo/src/lib.rs | 2 +- .../src/tests/asset_transfers.rs | 539 ------------------ .../src/tests/claim_assets.rs | 2 +- .../bridges/bridge-hub-paseo/src/tests/mod.rs | 209 +------ .../src/tests/register_bridged_assets.rs | 128 ----- .../bridge-hub-paseo/src/tests/send_xcm.rs | 143 ----- .../bridge-hub-paseo/src/tests/snowbridge.rs | 12 +- .../src/bridge_to_kusama_config.rs | 4 +- 8 files changed, 11 insertions(+), 1028 deletions(-) delete mode 100644 integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs delete mode 100644 integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs delete mode 100644 integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs index 80d480c79..c06d78e98 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs @@ -60,7 +60,7 @@ pub use paseo_system_emulated_network::{ }, PenpalAssetOwner, PenpalBParaPallet as PenpalBPallet, }, - paseo_emulated_chain::{genesis::ED as POLKAPAS_ED, PaseoRelayPallet as PaseoPallet}, + paseo_emulated_chain::{genesis::ED as POLKADOT_ED, PaseoRelayPallet as PaseoPallet}, AssetHubPaseoPara as AssetHubPaseo, AssetHubPaseoParaReceiver as AssetHubPaseoReceiver, AssetHubPaseoParaSender as AssetHubPaseoSender, diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs deleted file mode 100644 index 794144a54..000000000 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/asset_transfers.rs +++ /dev/null @@ -1,539 +0,0 @@ -// Copyright (C) Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -use crate::tests::*; - -fn send_assets_over_bridge(send_fn: F) { - // fund the PAH's SA on PBH for paying bridge transport fees - BridgeHubPolkadot::fund_para_sovereign(AssetHubPolkadot::para_id(), 10_000_000_000_000u128); - - // set XCM versions - let local_asset_hub = PenpalB::sibling_location_of(AssetHubPolkadot::para_id()); - PenpalB::force_xcm_version(local_asset_hub.clone(), XCM_VERSION); - AssetHubPolkadot::force_xcm_version(asset_hub_kusama_location(), XCM_VERSION); - BridgeHubPolkadot::force_xcm_version(bridge_hub_kusama_location(), XCM_VERSION); - - // send message over bridge - send_fn(); - - // process and verify intermediary hops - assert_bridge_hub_polkadot_message_accepted(true); - assert_bridge_hub_kusama_message_received(); -} - -fn set_up_dot_for_penpal_polkadot_through_pah_to_kah( - sender: &AccountId, - amount: u128, -) -> (Location, v4::Location) { - let dot_at_polkadot_parachains = dot_at_ah_polkadot(); - let dot_at_asset_hub_kusama = bridged_dot_at_ah_kusama(); - create_foreign_on_ah_kusama(dot_at_asset_hub_kusama.clone(), true); - - let penpal_location = AssetHubPolkadot::sibling_location_of(PenpalB::para_id()); - let sov_penpal_on_pah = AssetHubPolkadot::sovereign_account_id_of(penpal_location); - // fund Penpal's sovereign account on AssetHub - AssetHubPolkadot::fund_accounts(vec![(sov_penpal_on_pah, amount * 2)]); - // fund Penpal's sender account - PenpalB::mint_foreign_asset( - ::RuntimeOrigin::signed(PenpalAssetOwner::get()), - dot_at_polkadot_parachains.clone(), - sender.clone(), - amount * 2, - ); - (dot_at_polkadot_parachains, dot_at_asset_hub_kusama) -} - -fn send_assets_from_penpal_polkadot_through_polkadot_ah_to_kusama_ah( - destination: Location, - assets: (Assets, TransferType), - fees: (AssetId, TransferType), - custom_xcm_on_dest: Xcm<()>, -) { - send_assets_over_bridge(|| { - let sov_penpal_on_pah = AssetHubPolkadot::sovereign_account_id_of( - AssetHubPolkadot::sibling_location_of(PenpalB::para_id()), - ); - let sov_kah_on_pah = - AssetHubPolkadot::sovereign_account_of_parachain_on_other_global_consensus( - Kusama, - AssetHubKusama::para_id(), - ); - - // send message over bridge - assert_ok!(PenpalB::execute_with(|| { - let signed_origin = ::RuntimeOrigin::signed(PenpalBSender::get()); - ::PolkadotXcm::transfer_assets_using_type_and_then( - signed_origin, - bx!(destination.into()), - bx!(assets.0.into()), - bx!(assets.1), - bx!(fees.0.into()), - bx!(fees.1), - bx!(VersionedXcm::from(custom_xcm_on_dest)), - WeightLimit::Unlimited, - ) - })); - // verify intermediary AH Polkadot hop - AssetHubPolkadot::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - AssetHubPolkadot, - vec![ - // Amount to reserve transfer is withdrawn from Penpal's sovereign account - RuntimeEvent::Balances( - pallet_balances::Event::Burned { who, .. } - ) => { - who: *who == sov_penpal_on_pah.clone(), - }, - // Amount deposited in KAH's sovereign account - RuntimeEvent::Balances(pallet_balances::Event::Minted { who, .. }) => { - who: *who == sov_kah_on_pah.clone(), - }, - RuntimeEvent::XcmpQueue( - cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. } - ) => {}, - ] - ); - }); - }); -} - -#[test] -/// Test transfer of DOT, USDT and wETH from AssetHub Polkadot to AssetHub Kusama. -/// -/// This mix of assets should cover the whole range: -/// - native assets: DOT, -/// - trust-based assets: USDT (exists only on Polkadot, Kusama gets it from Polkadot over bridge), -/// - foreign asset / bridged asset (other bridge / Snowfork): wETH (bridged from Ethereum to -/// Polkadot over Snowbridge, then bridged over to Kusama through this bridge). -fn send_dot_usdt_and_weth_from_asset_hub_polkadot_to_asset_hub_kusama() { - let amount = ASSET_HUB_POLKADOT_ED * 1_000; - let sender = AssetHubPolkadotSender::get(); - let receiver = AssetHubKusamaReceiver::get(); - let dot_at_asset_hub_polkadot = dot_at_ah_polkadot(); - let bridged_dot_at_asset_hub_kusama = bridged_dot_at_ah_kusama(); - - create_foreign_on_ah_kusama(bridged_dot_at_asset_hub_kusama.clone(), true); - set_up_pool_with_ksm_on_ah_kusama(bridged_dot_at_asset_hub_kusama.clone(), true); - - //////////////////////////////////////////////////////////// - // Let's first send over just some DOTs as a simple example - //////////////////////////////////////////////////////////// - let sov_kah_on_pah = AssetHubPolkadot::sovereign_account_of_parachain_on_other_global_consensus( - Kusama, - AssetHubKusama::para_id(), - ); - let dot_in_reserve_on_pah_before = - ::account_data_of(sov_kah_on_pah.clone()).free; - let sender_dot_before = ::account_data_of(sender.clone()).free; - let receiver_dot_before = - foreign_balance_on_ah_kusama(bridged_dot_at_asset_hub_kusama.clone(), &receiver); - - // send DOTs, use them for fees - send_assets_over_bridge(|| { - let destination = asset_hub_kusama_location(); - let assets: Assets = (dot_at_asset_hub_polkadot, amount).into(); - let fee_idx = 0; - assert_ok!(send_assets_from_asset_hub_polkadot(destination, assets, fee_idx)); - }); - - // verify expected events on final destination - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - AssetHubKusama, - vec![ - // issue DOTs on KAH - RuntimeEvent::ForeignAssets(pallet_assets::Event::Issued { asset_id, owner, .. }) => { - asset_id: *asset_id == bridged_dot_at_asset_hub_kusama, - owner: *owner == receiver, - }, - // message processed successfully - RuntimeEvent::MessageQueue( - pallet_message_queue::Event::Processed { success: true, .. } - ) => {}, - ] - ); - }); - - let sender_dot_after = ::account_data_of(sender.clone()).free; - let receiver_dot_after = - foreign_balance_on_ah_kusama(bridged_dot_at_asset_hub_kusama, &receiver); - let dot_in_reserve_on_pah_after = - ::account_data_of(sov_kah_on_pah).free; - - // Sender's balance is reduced - assert!(sender_dot_before > sender_dot_after); - // Receiver's balance is increased - assert!(receiver_dot_after > receiver_dot_before); - // Reserve balance is increased by sent amount - assert_eq!(dot_in_reserve_on_pah_after, dot_in_reserve_on_pah_before + amount); - - ///////////////////////////////////////////////////////////// - // Now let's send over USDTs + wETH (and pay fees with USDT) - ///////////////////////////////////////////////////////////// - let usdt_at_asset_hub_polkadot = usdt_at_ah_polkadot(); - let bridged_usdt_at_asset_hub_kusama = bridged_usdt_at_ah_kusama(); - // wETH has same relative location on both Polkadot and Kusama AssetHubs - let bridged_weth_at_ah = weth_at_asset_hubs(); - - // mint USDT in sender's account (USDT already created in genesis) - AssetHubPolkadot::mint_asset( - ::RuntimeOrigin::signed(AssetHubPolkadotAssetOwner::get()), - USDT_ID, - sender.clone(), - amount * 2, - ); - // create wETH at src and dest and prefund sender's account - create_foreign_on_ah_polkadot( - bridged_weth_at_ah.clone(), - true, - vec![(sender.clone(), amount * 2)], - ); - create_foreign_on_ah_kusama(bridged_weth_at_ah.clone(), true); - create_foreign_on_ah_kusama(bridged_usdt_at_asset_hub_kusama.clone(), true); - set_up_pool_with_ksm_on_ah_kusama(bridged_usdt_at_asset_hub_kusama.clone(), true); - - let receiver_usdts_before = - foreign_balance_on_ah_kusama(bridged_usdt_at_asset_hub_kusama.clone(), &receiver); - let receiver_weth_before = foreign_balance_on_ah_kusama(bridged_weth_at_ah.clone(), &receiver); - - // send USDTs and wETHs - let assets: Assets = vec![ - (usdt_at_asset_hub_polkadot.clone(), amount).into(), - (bridged_weth_at_ah.clone(), amount).into(), - ] - .into(); - // use USDT for fees - let fee: AssetId = usdt_at_asset_hub_polkadot.into(); - - // use the more involved transfer extrinsic - let custom_xcm_on_dest = Xcm::<()>(vec![DepositAsset { - assets: Wild(AllCounted(assets.len() as u32)), - beneficiary: AccountId32Junction { network: None, id: receiver.clone().into() }.into(), - }]); - assert_ok!(AssetHubPolkadot::execute_with(|| { - ::PolkadotXcm::transfer_assets_using_type_and_then( - ::RuntimeOrigin::signed(sender), - bx!(asset_hub_kusama_location().into()), - bx!(assets.into()), - bx!(TransferType::LocalReserve), - bx!(fee.into()), - bx!(TransferType::LocalReserve), - bx!(VersionedXcm::from(custom_xcm_on_dest)), - WeightLimit::Unlimited, - ) - })); - // verify hops (also advances the message through the hops) - assert_bridge_hub_polkadot_message_accepted(true); - assert_bridge_hub_kusama_message_received(); - AssetHubKusama::execute_with(|| { - AssetHubKusama::assert_xcmp_queue_success(None); - }); - - let receiver_usdts_after = - foreign_balance_on_ah_kusama(bridged_usdt_at_asset_hub_kusama, &receiver); - let receiver_weth_after = foreign_balance_on_ah_kusama(bridged_weth_at_ah, &receiver); - - // Receiver's USDT balance is increased by almost `amount` (minus fees) - assert!(receiver_usdts_after > receiver_usdts_before); - assert!(receiver_usdts_after < receiver_usdts_before + amount); - // Receiver's wETH balance is increased by sent amount - assert_eq!(receiver_weth_after, receiver_weth_before + amount); -} - -#[test] -/// Send bridged KSM "back" from AssetHub Polkadot to AssetHub Kusama. -fn send_back_ksm_from_asset_hub_polkadot_to_asset_hub_kusama() { - let prefund_amount = 10_000_000_000_000u128; - let amount_to_send = ASSET_HUB_KUSAMA_ED * 1_000; - let sender = AssetHubPolkadotSender::get(); - let receiver = AssetHubKusamaReceiver::get(); - let bridged_ksm_at_asset_hub_polkadot = bridged_ksm_at_ah_polkadot(); - let prefund_accounts = vec![(sender.clone(), prefund_amount)]; - create_foreign_on_ah_polkadot( - bridged_ksm_at_asset_hub_polkadot.clone(), - true, - prefund_accounts, - ); - - // fund the PAH's SA on KAH with the KSM tokens held in reserve - let sov_pah_on_kah = AssetHubKusama::sovereign_account_of_parachain_on_other_global_consensus( - Polkadot, - AssetHubPolkadot::para_id(), - ); - AssetHubKusama::fund_accounts(vec![(sov_pah_on_kah.clone(), prefund_amount)]); - - let ksm_in_reserve_on_kah_before = - ::account_data_of(sov_pah_on_kah.clone()).free; - assert_eq!(ksm_in_reserve_on_kah_before, prefund_amount); - - let sender_ksm_before = - foreign_balance_on_ah_polkadot(bridged_ksm_at_asset_hub_polkadot.clone(), &sender); - assert_eq!(sender_ksm_before, prefund_amount); - let receiver_ksm_before = ::account_data_of(receiver.clone()).free; - - // send back KSMs, use them for fees - send_assets_over_bridge(|| { - let destination = asset_hub_kusama_location(); - let assets: Assets = (bridged_ksm_at_asset_hub_polkadot.clone(), amount_to_send).into(); - let fee_idx = 0; - assert_ok!(send_assets_from_asset_hub_polkadot(destination, assets, fee_idx)); - }); - - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - AssetHubKusama, - vec![ - // KSM is withdrawn from PAH's SA on KAH - RuntimeEvent::Balances( - pallet_balances::Event::Burned { who, amount } - ) => { - who: *who == sov_pah_on_kah, - amount: *amount == amount_to_send, - }, - // KSMs deposited to beneficiary - RuntimeEvent::Balances(pallet_balances::Event::Minted { who, .. }) => { - who: *who == receiver, - }, - // message processed successfully - RuntimeEvent::MessageQueue( - pallet_message_queue::Event::Processed { success: true, .. } - ) => {}, - ] - ); - }); - - let sender_ksm_after = - foreign_balance_on_ah_polkadot(bridged_ksm_at_asset_hub_polkadot, &sender); - let receiver_ksm_after = ::account_data_of(receiver.clone()).free; - let ksm_in_reserve_on_kah_after = - ::account_data_of(sov_pah_on_kah.clone()).free; - - // Sender's balance is reduced - assert!(sender_ksm_before > sender_ksm_after); - // Receiver's balance is increased - assert!(receiver_ksm_after > receiver_ksm_before); - // Reserve balance is reduced by sent amount - assert_eq!(ksm_in_reserve_on_kah_after, ksm_in_reserve_on_kah_before - amount_to_send); -} - -#[test] -fn send_dot_from_penpal_polkadot_through_asset_hub_polkadot_to_asset_hub_kusama() { - let amount = ASSET_HUB_POLKADOT_ED * 10_000_000; - let sender = PenpalBSender::get(); - let receiver = AssetHubKusamaReceiver::get(); - let local_asset_hub = PenpalB::sibling_location_of(AssetHubPolkadot::para_id()); - let (dot_at_polkadot_parachains, dot_at_asset_hub_kusama) = - set_up_dot_for_penpal_polkadot_through_pah_to_kah(&sender, amount); - - let sov_kah_on_pah = AssetHubPolkadot::sovereign_account_of_parachain_on_other_global_consensus( - Kusama, - AssetHubKusama::para_id(), - ); - let dot_in_reserve_on_pah_before = - ::account_data_of(sov_kah_on_pah.clone()).free; - let sender_dot_before = PenpalB::execute_with(|| { - type ForeignAssets = ::ForeignAssets; - >::balance(dot_at_polkadot_parachains.clone(), &sender) - }); - let receiver_dot_before = - foreign_balance_on_ah_kusama(dot_at_asset_hub_kusama.clone(), &receiver); - - // Send DOTs over bridge - { - let destination = asset_hub_kusama_location(); - let assets: Assets = (dot_at_polkadot_parachains.clone(), amount).into(); - let asset_transfer_type = TransferType::RemoteReserve(local_asset_hub.clone().into()); - let fees_id: AssetId = dot_at_polkadot_parachains.clone().into(); - let fees_transfer_type = TransferType::RemoteReserve(local_asset_hub.into()); - let beneficiary: Location = - AccountId32Junction { network: None, id: receiver.clone().into() }.into(); - let custom_xcm_on_dest = Xcm::<()>(vec![DepositAsset { - assets: Wild(AllCounted(assets.len() as u32)), - beneficiary, - }]); - send_assets_from_penpal_polkadot_through_polkadot_ah_to_kusama_ah( - destination, - (assets, asset_transfer_type), - (fees_id, fees_transfer_type), - custom_xcm_on_dest, - ); - } - - // process KAH incoming message and check events - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - AssetHubKusama, - vec![ - // issue DOTs on KAH - RuntimeEvent::ForeignAssets(pallet_assets::Event::Issued { asset_id, owner, .. }) => { - asset_id: *asset_id == dot_at_polkadot_parachains.clone(), - owner: owner == &receiver, - }, - // message processed successfully - RuntimeEvent::MessageQueue( - pallet_message_queue::Event::Processed { success: true, .. } - ) => {}, - ] - ); - }); - - let sender_dot_after = PenpalB::execute_with(|| { - type ForeignAssets = ::ForeignAssets; - >::balance(dot_at_polkadot_parachains, &sender) - }); - let receiver_dot_after = foreign_balance_on_ah_kusama(dot_at_asset_hub_kusama, &receiver); - let dot_in_reserve_on_pah_after = - ::account_data_of(sov_kah_on_pah.clone()).free; - - // Sender's balance is reduced - assert!(sender_dot_after < sender_dot_before); - // Receiver's balance is increased - assert!(receiver_dot_after > receiver_dot_before); - // Reserve balance is increased by sent amount (less fess) - assert!(dot_in_reserve_on_pah_after > dot_in_reserve_on_pah_before); - assert!(dot_in_reserve_on_pah_after <= dot_in_reserve_on_pah_before + amount); -} - -#[test] -fn send_back_ksm_from_penpal_polkadot_through_asset_hub_polkadot_to_asset_hub_kusama() { - let ksm_at_polkadot_parachains = bridged_ksm_at_ah_polkadot(); - let amount = ASSET_HUB_POLKADOT_ED * 10_000_000; - let sender = PenpalBSender::get(); - let receiver = AssetHubKusamaReceiver::get(); - - // set up DOTs for transfer - let (dot_at_polkadot_parachains, _) = - set_up_dot_for_penpal_polkadot_through_pah_to_kah(&sender, amount); - - // set up KSMs for transfer - let penpal_location = AssetHubPolkadot::sibling_location_of(PenpalB::para_id()); - let sov_penpal_on_kah = AssetHubPolkadot::sovereign_account_id_of(penpal_location); - let prefund_accounts = vec![(sov_penpal_on_kah, amount * 2)]; - create_foreign_on_ah_polkadot(ksm_at_polkadot_parachains.clone(), true, prefund_accounts); - let asset_owner: AccountId = AssetHubPolkadot::account_id_of(ALICE); - PenpalB::force_create_foreign_asset( - ksm_at_polkadot_parachains.clone(), - asset_owner.clone(), - true, - ASSET_MIN_BALANCE, - vec![(sender.clone(), amount * 2)], - ); - // Configure source Penpal chain to trust local AH as reserve of bridged KSM - PenpalB::execute_with(|| { - assert_ok!(::System::set_storage( - ::RuntimeOrigin::root(), - vec![( - PenpalCustomizableAssetFromSystemAssetHub::key().to_vec(), - ksm_at_polkadot_parachains.encode(), - )], - )); - }); - - // fund the PAH's SA on KAH with the KSM tokens held in reserve - let sov_pah_on_kah = AssetHubKusama::sovereign_account_of_parachain_on_other_global_consensus( - Polkadot, - AssetHubPolkadot::para_id(), - ); - AssetHubKusama::fund_accounts(vec![(sov_pah_on_kah.clone(), amount * 2)]); - - // balances before - let sender_ksm_before = PenpalB::execute_with(|| { - type ForeignAssets = ::ForeignAssets; - >::balance(ksm_at_polkadot_parachains.clone(), &sender) - }); - let receiver_ksm_before = ::account_data_of(receiver.clone()).free; - - // send KSMs over the bridge, DOTs only used to pay fees on local AH, pay with KSM on remote AH - { - let final_destination = asset_hub_kusama_location(); - let intermediary_hop = PenpalB::sibling_location_of(AssetHubPolkadot::para_id()); - let context = PenpalB::execute_with(PenpalUniversalLocation::get); - - // what happens at final destination - let beneficiary = AccountId32Junction { network: None, id: receiver.clone().into() }.into(); - // use KSM as fees on the final destination (PAH) - let remote_fees: Asset = (ksm_at_polkadot_parachains.clone(), amount).into(); - let remote_fees = remote_fees.reanchored(&final_destination, &context).unwrap(); - // buy execution using KSMs, then deposit all remaining KSMs - let xcm_on_final_dest = Xcm::<()>(vec![ - BuyExecution { fees: remote_fees, weight_limit: WeightLimit::Unlimited }, - DepositAsset { assets: Wild(AllCounted(1)), beneficiary }, - ]); - - // what happens at intermediary hop - // reanchor final dest (Asset Hub Kusama) to the view of hop (Asset Hub Polkadot) - let mut final_destination = final_destination.clone(); - final_destination.reanchor(&intermediary_hop, &context).unwrap(); - // reanchor KSMs to the view of hop (Asset Hub Polkadot) - let asset: Asset = (ksm_at_polkadot_parachains.clone(), amount).into(); - let asset = asset.reanchored(&intermediary_hop, &context).unwrap(); - // on Asset Hub Polkadot, forward a request to withdraw KSMs from reserve on Asset Hub - // Kusama - let xcm_on_hop = Xcm::<()>(vec![InitiateReserveWithdraw { - assets: Definite(asset.into()), // KSMs - reserve: final_destination, // KAH - xcm: xcm_on_final_dest, // XCM to execute on KAH - }]); - // assets to send from Penpal and how they reach the intermediary hop - let assets: Assets = vec![ - (ksm_at_polkadot_parachains.clone(), amount).into(), - (dot_at_polkadot_parachains.clone(), amount).into(), - ] - .into(); - let asset_transfer_type = TransferType::DestinationReserve; - let fees_id: AssetId = dot_at_polkadot_parachains.into(); - let fees_transfer_type = TransferType::DestinationReserve; - - // initiate the transfer - send_assets_from_penpal_polkadot_through_polkadot_ah_to_kusama_ah( - intermediary_hop, - (assets, asset_transfer_type), - (fees_id, fees_transfer_type), - xcm_on_hop, - ); - } - - // process KAH incoming message and check events - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - AssetHubKusama, - vec![ - // issue DOTs on KAH - RuntimeEvent::Balances(pallet_balances::Event::Issued { .. }) => {}, - // message processed successfully - RuntimeEvent::MessageQueue( - pallet_message_queue::Event::Processed { success: true, .. } - ) => {}, - ] - ); - }); - - let sender_ksm_after = PenpalB::execute_with(|| { - type ForeignAssets = ::ForeignAssets; - >::balance(ksm_at_polkadot_parachains, &sender) - }); - let receiver_ksm_after = ::account_data_of(receiver).free; - - // Sender's balance is reduced by sent "amount" - assert_eq!(sender_ksm_after, sender_ksm_before - amount); - // Receiver's balance is increased by no more than "amount" - assert!(receiver_ksm_after > receiver_ksm_before); - assert!(receiver_ksm_after <= receiver_ksm_before + amount); -} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs index 8c7f72f55..c1327b69d 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/claim_assets.rs @@ -29,7 +29,7 @@ fn assets_can_be_claimed() { test_chain_can_claim_assets!( AssetHubPaseo, RuntimeCall, - NetworkId::Paseo, + PaseoId.into(), assets, amount ); diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs index d77d54340..f155f582e 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/mod.rs @@ -15,213 +15,6 @@ use crate::*; -mod asset_transfers; mod claim_assets; -mod register_bridged_assets; -mod send_xcm; mod snowbridge; -mod teleport; - -pub(crate) fn asset_hub_kusama_location() -> Location { - Location::new(2, [GlobalConsensus(Kusama), Parachain(AssetHubKusama::para_id().into())]) -} - -pub(crate) fn bridge_hub_kusama_location() -> Location { - Location::new(2, [GlobalConsensus(Kusama), Parachain(BridgeHubKusama::para_id().into())]) -} - -// PAS and wPAS -pub(crate) fn dot_at_ah_paseo() -> Location { - Parent.into() -} -pub(crate) fn bridged_dot_at_ah_kusama() -> Location { - Location::new(2, [GlobalConsensus(Paseo)]) -} - -// wKSM -pub(crate) fn bridged_ksm_at_ah_paseo() -> Location { - Location::new(2, [GlobalConsensus(Kusama)]) -} - -// USDT and wUSDT -pub(crate) fn usdt_at_ah_paseo() -> Location { - Location::new(0, [PalletInstance(ASSETS_PALLET_ID), GeneralIndex(USDT_ID.into())]) -} -pub(crate) fn bridged_usdt_at_ah_kusama() -> Location { - Location::new( - 2, - [ - GlobalConsensus(Paseo), - Parachain(AssetHubPaseo::para_id().into()), - PalletInstance(ASSETS_PALLET_ID), - GeneralIndex(USDT_ID.into()), - ], - ) -} - -// wETH has same relative location on both Kusama and Paseo AssetHubs -pub(crate) fn weth_at_asset_hubs() -> Location { - Location::new( - 2, - [ - GlobalConsensus(Ethereum { chain_id: snowbridge::CHAIN_ID }), - AccountKey20 { network: None, key: snowbridge::WETH }, - ], - ) -} - -pub(crate) fn create_foreign_on_ah_kusama(id: v4::Location, sufficient: bool) { - let owner = AssetHubKusama::account_id_of(ALICE); - AssetHubKusama::force_create_foreign_asset(id, owner, sufficient, ASSET_MIN_BALANCE, vec![]); -} - -pub(crate) fn create_foreign_on_ah_paseo( - id: v4::Location, - sufficient: bool, - prefund_accounts: Vec<(AccountId, u128)>, -) { - let owner = AssetHubPaseo::account_id_of(ALICE); - let min = ASSET_MIN_BALANCE; - AssetHubPaseo::force_create_foreign_asset(id, owner, sufficient, min, prefund_accounts); -} - -pub(crate) fn foreign_balance_on_ah_kusama(id: v4::Location, who: &AccountId) -> u128 { - AssetHubKusama::execute_with(|| { - type Assets = ::ForeignAssets; - >::balance(id, who) - }) -} -pub(crate) fn foreign_balance_on_ah_paseo(id: v4::Location, who: &AccountId) -> u128 { - AssetHubPaseo::execute_with(|| { - type Assets = ::ForeignAssets; - >::balance(id, who) - }) -} - -// set up pool -pub(crate) fn set_up_pool_with_ksm_on_ah_kusama(asset: v4::Location, is_foreign: bool) { - let ksm: v4::Location = v4::Parent.into(); - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - let owner = AssetHubKusamaSender::get(); - let signed_owner = ::RuntimeOrigin::signed(owner.clone()); - - if is_foreign { - assert_ok!(::ForeignAssets::mint( - signed_owner.clone(), - asset.clone(), - owner.clone().into(), - 3_000_000_000_000, - )); - } else { - let asset_id = match asset.interior.last() { - Some(v4::Junction::GeneralIndex(id)) => *id as u32, - _ => unreachable!(), - }; - assert_ok!(::Assets::mint( - signed_owner.clone(), - asset_id.into(), - owner.clone().into(), - 3_000_000_000_000, - )); - } - assert_ok!(::AssetConversion::create_pool( - signed_owner.clone(), - Box::new(ksm.clone()), - Box::new(asset.clone()), - )); - assert_expected_events!( - AssetHubKusama, - vec![ - RuntimeEvent::AssetConversion(pallet_asset_conversion::Event::PoolCreated { .. }) => {}, - ] - ); - assert_ok!(::AssetConversion::add_liquidity( - signed_owner.clone(), - Box::new(ksm), - Box::new(asset), - 1_000_000_000_000, - 2_000_000_000_000, - 1, - 1, - owner, - )); - assert_expected_events!( - AssetHubKusama, - vec![ - RuntimeEvent::AssetConversion(pallet_asset_conversion::Event::LiquidityAdded {..}) => {}, - ] - ); - }); -} - -pub(crate) fn send_assets_from_asset_hub_paseo( - destination: Location, - assets: Assets, - fee_idx: u32, -) -> DispatchResult { - let signed_origin = - ::RuntimeOrigin::signed(AssetHubPaseoSender::get()); - let beneficiary: Location = - AccountId32Junction { network: None, id: AssetHubKusamaReceiver::get().into() }.into(); - - AssetHubPaseo::execute_with(|| { - ::PolkadotXcm::limited_reserve_transfer_assets( - signed_origin, - bx!(destination.into()), - bx!(beneficiary.into()), - bx!(assets.into()), - fee_idx, - WeightLimit::Unlimited, - ) - }) -} - -pub(crate) fn assert_bridge_hub_paseo_message_accepted(expected_processed: bool) { - BridgeHubPaseo::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - - if expected_processed { - assert_expected_events!( - BridgeHubPaseo, - vec![ - // pay for bridge fees - RuntimeEvent::Balances(pallet_balances::Event::Burned { .. }) => {}, - // message exported - RuntimeEvent::BridgeKusamaMessages( - pallet_bridge_messages::Event::MessageAccepted { .. } - ) => {}, - // message processed successfully - RuntimeEvent::MessageQueue( - pallet_message_queue::Event::Processed { success: true, .. } - ) => {}, - ] - ); - } else { - assert_expected_events!( - BridgeHubPaseo, - vec![ - RuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { - success: false, - .. - }) => {}, - ] - ); - } - }); -} - -pub(crate) fn assert_bridge_hub_kusama_message_received() { - BridgeHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - BridgeHubKusama, - vec![ - // message sent to destination - RuntimeEvent::XcmpQueue( - cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. } - ) => {}, - ] - ); - }) -} +mod teleport; \ No newline at end of file diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs deleted file mode 100644 index 928b486fd..000000000 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/register_bridged_assets.rs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (C) Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -use crate::tests::{ - snowbridge::{CHAIN_ID, WETH}, - *, -}; - -const XCM_FEE: u128 = 40_000_000_000; - -/// Tests the registering of a Polkadot Asset as a bridged asset on Kusama Asset Hub. -#[test] -fn register_polkadot_asset_on_kah_from_pah() { - // Polkadot Asset Hub asset when bridged to Kusama Asset Hub. - let bridged_asset_at_kah = v4::Location::new( - 2, - [ - v4::Junction::GlobalConsensus(v4::NetworkId::Polkadot), - v4::Junction::Parachain(AssetHubPolkadot::para_id().into()), - v4::Junction::PalletInstance(ASSETS_PALLET_ID), - v4::Junction::GeneralIndex(ASSET_ID.into()), - ], - ); - // Register above asset on Kusama AH from Polkadot AH. - register_asset_on_kah_from_pah(bridged_asset_at_kah); -} - -/// Tests the registering of an Ethereum Asset as a bridged asset on Kusama Asset Hub. -#[test] -fn register_ethereum_asset_on_kah_from_pah() { - // Ethereum asset when bridged to Kusama Asset Hub. - let bridged_asset_at_kah = v4::Location::new( - 2, - [ - v4::Junction::GlobalConsensus(v4::NetworkId::Ethereum { chain_id: CHAIN_ID }), - v4::Junction::AccountKey20 { network: None, key: WETH }, - ], - ); - // Register above asset on Kusama AH from Polkadot AH. - register_asset_on_kah_from_pah(bridged_asset_at_kah); -} - -fn register_asset_on_kah_from_pah(bridged_asset_at_kah: v4::Location) { - let sa_of_pah_on_kah = AssetHubKusama::sovereign_account_of_parachain_on_other_global_consensus( - Polkadot, - AssetHubPolkadot::para_id(), - ); - - // Encoded `create_asset` call to be executed in Kusama Asset Hub ForeignAssets pallet. - let call = AssetHubKusama::create_foreign_asset_call( - bridged_asset_at_kah.clone(), - ASSET_MIN_BALANCE, - sa_of_pah_on_kah.clone(), - ); - - let origin_kind = OriginKind::Xcm; - let fee_amount = XCM_FEE; - let fees = (Parent, fee_amount).into(); - - let xcm = xcm_transact_paid_execution(call, origin_kind, fees, sa_of_pah_on_kah.clone()); - - // SA-of-PAH-on-KAH needs to have balance to pay for fees and asset creation deposit - AssetHubKusama::fund_accounts(vec![( - sa_of_pah_on_kah.clone(), - ASSET_HUB_KUSAMA_ED * 10000000000, - )]); - - let destination = asset_hub_kusama_location(); - - // fund the PAH's SA on PBH for paying bridge transport fees - BridgeHubPolkadot::fund_para_sovereign(AssetHubPolkadot::para_id(), 10_000_000_000_000u128); - - // set XCM versions - AssetHubPolkadot::force_xcm_version(destination.clone(), XCM_VERSION); - BridgeHubPolkadot::force_xcm_version(bridge_hub_kusama_location(), XCM_VERSION); - - let root_origin = ::RuntimeOrigin::root(); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( - root_origin, - bx!(destination.into()), - bx!(xcm), - )); - - AssetHubPolkadot::assert_xcm_pallet_sent(); - }); - - assert_bridge_hub_polkadot_message_accepted(true); - assert_bridge_hub_kusama_message_received(); - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - AssetHubKusama::assert_xcmp_queue_success(None); - assert_expected_events!( - AssetHubKusama, - vec![ - // Burned the fee - RuntimeEvent::Balances(pallet_balances::Event::Burned { who, amount }) => { - who: *who == sa_of_pah_on_kah.clone(), - amount: *amount == fee_amount, - }, - // Foreign Asset created - RuntimeEvent::ForeignAssets(pallet_assets::Event::Created { asset_id, creator, owner }) => { - asset_id: *asset_id == bridged_asset_at_kah, - creator: *creator == sa_of_pah_on_kah.clone(), - owner: *owner == sa_of_pah_on_kah, - }, - // Unspent fee minted to origin - RuntimeEvent::Balances(pallet_balances::Event::Minted { who, .. }) => { - who: *who == sa_of_pah_on_kah.clone(), - }, - ] - ); - type ForeignAssets = ::ForeignAssets; - assert!(ForeignAssets::asset_exists(bridged_asset_at_kah)); - }); -} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs deleted file mode 100644 index 65a0dea67..000000000 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/send_xcm.rs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (C) Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -use crate::tests::*; - -#[test] -fn send_xcm_from_polkadot_relay_to_kusama_asset_hub_should_fail_on_not_applicable() { - // Init tests variables - // XcmPallet send arguments - let sudo_origin = ::RuntimeOrigin::root(); - let destination = Polkadot::child_location_of(BridgeHubPolkadot::para_id()).into(); - let weight_limit = WeightLimit::Unlimited; - let check_origin = None; - - let remote_xcm = Xcm(vec![ClearOrigin]); - - let xcm = VersionedXcm::from(Xcm(vec![ - UnpaidExecution { weight_limit, check_origin }, - ExportMessage { - network: KusamaId, - destination: [Parachain(AssetHubKusama::para_id().into())].into(), - xcm: remote_xcm, - }, - ])); - - // Polkadot Global Consensus - // Send XCM message from Relay Chain to Bridge Hub source Parachain - Polkadot::execute_with(|| { - assert_ok!(::XcmPallet::send( - sudo_origin, - bx!(destination), - bx!(xcm), - )); - - type RuntimeEvent = ::RuntimeEvent; - - assert_expected_events!( - Polkadot, - vec![ - RuntimeEvent::XcmPallet(pallet_xcm::Event::Sent { .. }) => {}, - ] - ); - }); - // Receive XCM message in Bridge Hub source Parachain, it should fail, because we don't have - // opened bridge/lane. - assert_bridge_hub_polkadot_message_accepted(false); -} - -#[test] -fn send_xcm_through_opened_lane_with_different_xcm_version_on_hops_works() { - // Initially set only default version on all runtimes - let newer_xcm_version = xcm::prelude::XCM_VERSION; - let older_xcm_version = newer_xcm_version - 1; - - AssetHubKusama::force_default_xcm_version(Some(older_xcm_version)); - BridgeHubKusama::force_default_xcm_version(Some(older_xcm_version)); - BridgeHubPolkadot::force_default_xcm_version(Some(older_xcm_version)); - AssetHubPolkadot::force_default_xcm_version(Some(older_xcm_version)); - - // prepare data - let destination = asset_hub_kusama_location(); - let native_token = Location::parent(); - let amount = ASSET_HUB_POLKADOT_ED * 1_000; - - // fund the AHK's SA on BHK for paying bridge transport fees - BridgeHubPolkadot::fund_para_sovereign(AssetHubPolkadot::para_id(), 10_000_000_000_000u128); - // fund sender - AssetHubPolkadot::fund_accounts(vec![(AssetHubPolkadotSender::get(), amount * 10)]); - - // send XCM from AssetHubPolkadot - fails - destination version not known - assert_err!( - send_assets_from_asset_hub_polkadot( - destination.clone(), - (native_token.clone(), amount).into(), - 0 - ), - DispatchError::Module(sp_runtime::ModuleError { - index: 31, - error: [1, 0, 0, 0], - message: Some("SendFailure") - }) - ); - - // set destination version - AssetHubPolkadot::force_xcm_version(destination.clone(), newer_xcm_version); - - // set version with `ExportMessage` for BridgeHubPolkadot - AssetHubPolkadot::force_xcm_version( - ParentThen(Parachain(BridgeHubPolkadot::para_id().into()).into()).into(), - newer_xcm_version, - ); - // send XCM from AssetHubPolkadot - ok - assert_ok!(send_assets_from_asset_hub_polkadot( - destination.clone(), - (native_token.clone(), amount).into(), - 0 - )); - - // `ExportMessage` on local BridgeHub - fails - remote BridgeHub version not known - assert_bridge_hub_polkadot_message_accepted(false); - - // set version for remote BridgeHub on BridgeHubPolkadot - BridgeHubPolkadot::force_xcm_version(bridge_hub_kusama_location(), newer_xcm_version); - // set version for AssetHubKusama on BridgeHubKusama - BridgeHubKusama::force_xcm_version( - ParentThen(Parachain(AssetHubKusama::para_id().into()).into()).into(), - newer_xcm_version, - ); - - // send XCM from AssetHubPolkadot - ok - assert_ok!(send_assets_from_asset_hub_polkadot( - destination.clone(), - (native_token.clone(), amount).into(), - 0 - )); - assert_bridge_hub_polkadot_message_accepted(true); - assert_bridge_hub_kusama_message_received(); - // message delivered and processed at destination - AssetHubKusama::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; - assert_expected_events!( - AssetHubKusama, - vec![ - // message processed with failure, but for this scenario it is ok, important is that was delivered - RuntimeEvent::MessageQueue( - pallet_message_queue::Event::Processed { success: false, .. } - ) => {}, - ] - ); - }); -} diff --git a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs index 349fa2488..b60a6e4c9 100644 --- a/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs +++ b/integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs @@ -50,10 +50,10 @@ use sp_runtime::{DispatchError::Token, FixedU128, TokenError::FundsUnavailable}; use system_parachains_constants::paseo::currency::UNITS; const INITIAL_FUND: u128 = 5_000_000_000 * POLKADOT_ED; -const CHAIN_ID: u64 = 11155111; -const WETH: [u8; 20] = hex!("87d1f7fdfEe7f651FaBc8bFCB6E086C278b77A7d"); -const ETHEREUM_DESTINATION_ADDRESS: [u8; 20] = hex!("44a57ee2f2FCcb85FDa2B0B18EBD0D8D2333700e"); -const GATEWAY_ADDRESS: [u8; 20] = hex!("EDa338E4dC46038493b885327842fD3E301CaB39"); +pub const CHAIN_ID: u64 = 11155111; +pub const WETH: [u8; 20] = hex!("87d1f7fdfEe7f651FaBc8bFCB6E086C278b77A7d"); +pub const ETHEREUM_DESTINATION_ADDRESS: [u8; 20] = hex!("44a57ee2f2FCcb85FDa2B0B18EBD0D8D2333700e"); +pub const GATEWAY_ADDRESS: [u8; 20] = hex!("EDa338E4dC46038493b885327842fD3E301CaB39"); const INSUFFICIENT_XCM_FEE: u128 = 1000; const XCM_FEE: u128 = 4_000_000_000; const TOKEN_AMOUNT: u128 = 100_000_000_000; @@ -997,7 +997,7 @@ fn transfer_relay_token() { let asset_id: Location = Location { parents: 1, interior: [].into() }; let expected_asset_id: Location = - Location { parents: 1, interior: [GlobalConsensus(Paseo)].into() }; + Location { parents: 1, interior: [GlobalConsensus(Polkadot)].into() }; let expected_token_id = TokenIdOf::convert_location(&expected_asset_id).unwrap(); @@ -1177,7 +1177,7 @@ fn transfer_ah_token() { let asset_id_after_reanchored = Location::new( 1, - [GlobalConsensus(Paseo), Parachain(AssetHubPaseo::para_id().into())], + [GlobalConsensus(Polkadot), Parachain(AssetHubPaseo::para_id().into())], ) .appended_with(asset_id.clone().interior) .unwrap(); diff --git a/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs b/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs index 6dac6180e..691efcf43 100644 --- a/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs +++ b/system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs @@ -382,8 +382,8 @@ mod tests { assert_complete_bridge_types!( runtime: Runtime, with_bridged_chain_messages_instance: WithBridgeHubKusamaMessagesInstance, - this_chain: bp_polkadot::Polkadot, - bridged_chain: bp_kusama::Kusama, + this_chain: bp_bridge_hub_paseo::BridgeHubPaseo, + bridged_chain: bp_bridge_hub_kusama::BridgeHubKusama, ); assert_complete_with_parachain_bridge_constants::<