From d1f0601a1b3b816d7d5f105a27cb3a29dc90a285 Mon Sep 17 00:00:00 2001 From: Adel Golghalyani <48685760+Ad96el@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:05:57 +0200 Subject: [PATCH] chore: Polkadot 1.7.0 (#655) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## fixes [KILTProtocol/ticket#3439](https://github.com/KILTprotocol/ticket/issues/3439) ### notable Changes - rust version 1.7.4 (Toolchain and gitlab runner are updated) - the preimage_pallet is no longer using deposits, instead it uses [consideration](https://github.com/paritytech/polkadot-sdk/pull/1361), which is an abstration over the balance. The exact footprint of an storage entry is used to calculate the cost storing entries. Might be interesting for our current deposit model. - The pallet-xcm introduced a new benchmarking logic ### Pallets - Removed cumulus_pallet_dmp_queue (Replaced by pallet_message_queue). There is a lazy migration provided, which is running automatically. Once the the [Complete event](https://github.com/paritytech/polkadot-sdk/pull/1246) is emitted, we can delete the pallet. - Treasur introduced a new [spending support](https://github.com/paritytech/polkadot-sdk/pull/1333), which is currently disabled. Might be interesting at some point, if other currencies are available. - `transfer` extrinsic in `pallet_balances` is removed. Will be a breaking change for Sporran. For other new introduced extrinsics, please have a lookin the diffs below. - Tips: A max tip amount has to be specified, which is currently set to 1_000_000 KILT ### Emulated Tests I am quite unhappy with the current state of the emulated tests. I would like to refactor those tests as described in this [issue](https://github.com/KILTprotocol/ticket/issues/3241#issuecomment-2175869215). For this PR, I only fixed problems arised by updating the dependencies. Since the polkadot-runtime is no longer part of the Polkadot-SDK, the relay chain for Spiritnet has been changed to Rococo. The purpose of these tests is to ensure that the expectations of the xcm-configuration match the implementation. The specific relay chain used should not matter. ### XCM - XCM version 4 is out which is also the LTS for XCM. - In version 4 a new instruction `Transfer` is introduced, which needed to be denied by the Barrier - renaming of paramters: The `Multi` is removed: MultiLocation -> Location, MultiAsset -> Asset, ... ### Try-runtime In version 1.7.0 additional try-runtime tests are introduced, where it is tried to decode the whole storage of the chain. This error should only occur for chains which are still running on an ancient SDK version and will be fixed automatically in the next runtime upgrade. ### Weights Since a lot of new extrinsics are introduced, I updated all weights. ### Todos - [x] execute Benchmarking ## Metadata Diff to Develop Branch
Peregrine Diff ``` !!! THE SUBWASM REDUCED DIFFER IS EXPERIMENTAL, DOUBLE CHECK THE RESULTS !!! [≠] pallet 0: System -> 8 change(s) - calls changes: [+] CallDesc { index: 9, name: "authorize_upgrade", signature: SignatureDesc { args: [ArgDesc { name: "code_hash", ty: "T::Hash" }] } } [+] CallDesc { index: 10, name: "authorize_upgrade_without_checks", signature: SignatureDesc { args: [ArgDesc { name: "code_hash", ty: "T::Hash" }] } } [+] CallDesc { index: 11, name: "apply_authorized_upgrade", signature: SignatureDesc { args: [ArgDesc { name: "code", ty: "Vec" }] } } - events changes: [+] EventDesc { index: 6, name: "UpgradeAuthorized", signature: SignatureDesc { args: [ArgDesc { name: "code_hash", ty: "T::Hash" }, ArgDesc { name: "check_version", ty: "bool" }] } } - errors changes: [+] ErrorDesc { index: 6, name: "NothingAuthorized" } [+] ErrorDesc { index: 7, name: "Unauthorized" } - constants changes: [≠] Version: [ 48, 109, 97, 115, 104, 110, 101, 116, 45, 110, 111, 100, 101, 48, 109, 97, 115, 104, 110, 101, 116, 45, 110, 111, 100, 101, 4, 0, 0, 0, 136, 44, ... ] [Value([Changed(38, U8Change(60, 68)), Changed(159, U8Change(234, 215)), Changed(160, U8Change(147, 189)), Changed(161, U8Change(227, 216)), Changed(162, U8Change(241, 162)), Changed(163, U8Change(111, 114)), Changed(164, U8Change(61, 202)), Changed(165, U8Change(105, 13)), Changed(166, U8Change(98, 101)), Changed(167, U8Change(2, 1)), Changed(171, U8Change(38, 234)), Changed(172, U8Change(96, 147)), Changed(173, U8Change(149, 227)), Changed(174, U8Change(85, 241)), Changed(175, U8Change(192, 111)), Changed(176, U8Change(101, 61)), Changed(177, U8Change(102, 105)), Changed(178, U8Change(3, 98)), Changed(183, U8Change(164, 38)), Changed(184, U8Change(123, 96)), Changed(185, U8Change(125, 149)), Changed(186, U8Change(84, 85)), Changed(187, U8Change(73, 192)), Changed(188, U8Change(148, 101)), Changed(189, U8Change(201, 102)), Changed(190, U8Change(155, 3)), Changed(191, U8Change(1, 2)), Changed(195, U8Change(69, 164)), Changed(196, U8Change(191, 123)), Changed(197, U8Change(186, 125)), Changed(198, U8Change(81, 84)), Changed(199, U8Change(163, 73)), Changed(200, U8Change(16, 148)), Changed(201, U8Change(178, 201)), Changed(202, U8Change(35, 155)), Changed(207, U8Change(195, 69)), Changed(208, U8Change(179, 191)), Changed(209, U8Change(232, 186)), Changed(210, U8Change(211, 81)), Changed(211, U8Change(50, 163)), Changed(212, U8Change(115, 16)), Changed(213, U8Change(153, 178)), Changed(214, U8Change(13, 35)), Changed(219, U8Change(8, 195)), Changed(220, U8Change(0, 179)), Changed(221, U8Change(0, 232)), Changed(222, U8Change(0, 211)), Changed(223, U8Change(0, 50)), Added(224, 115), Added(225, 153), Added(226, 13), Added(227, 1), Added(228, 0), Added(229, 0), Added(230, 0), Added(231, 251), Added(232, 197), Added(233, 119), Added(234, 185), Added(235, 215), Added(236, 71), Added(237, 239), Added(238, 214), Added(239, 1), Added(240, 0), Added(241, 0), Added(242, 0), Added(243, 8), Added(244, 0), Added(245, 0), Added(246, 0), Added(247, 0)])] - storages changes: [+] StorageDesc { name: "AuthorizedUpgrade", modifier: "Optional", default_value: [0] } [≠] pallet 6: Balances -> 7 change(s) - calls changes: [+] CallDesc { index: 9, name: "force_adjust_total_issuance", signature: SignatureDesc { args: [ArgDesc { name: "direction", ty: "AdjustmentDirection" }, ArgDesc { name: "delta", ty: "T::Balance" }] } } [-] "set_balance_deprecated" [-] "transfer" - events changes: [+] EventDesc { index: 21, name: "TotalIssuanceForced", signature: SignatureDesc { args: [ArgDesc { name: "old", ty: "T::Balance" }, ArgDesc { name: "new", ty: "T::Balance" }] } } - errors changes: [+] ErrorDesc { index: 10, name: "IssuanceDeactivated" } [+] ErrorDesc { index: 11, name: "DeltaZero" } - constants changes: [-] "MaxHolds" [≠] pallet 8: Sudo -> 4 change(s) - calls changes: [+] CallDesc { index: 4, name: "remove_key", signature: SignatureDesc { args: [] } } - events changes: [≠] 1: KeyChanged ( old_sudoer: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Name(StringChange("old_sudoer", "old"))]), Added(1, ArgDesc { name: "new", ty: "T::AccountId" })] })] [≠] 2: SudoAsDone ( sudo_result: DispatchResult, ) ) [Name(StringChange("SudoAsDone", "KeyRemoved")), Signature(SignatureChange { args: [Removed(0, ArgDesc { name: "sudo_result", ty: "DispatchResult" })] })] [+] EventDesc { index: 3, name: "SudoAsDone", signature: SignatureDesc { args: [ArgDesc { name: "sudo_result", ty: "DispatchResult" }] } } [≠] pallet 24: AuraExt -> 1 change(s) - storages changes: [+] StorageDesc { name: "SlotInfo", modifier: "Optional", default_value: [0] } [≠] pallet 30: Democracy -> 9 change(s) - calls changes: [≠] 7: fast_track ( proposal_hash: H256, voting_period: BlockNumberFor, delay: BlockNumberFor, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 8: veto_external ( proposal_hash: H256, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 16: blacklist ( proposal_hash: H256, maybe_ref_index: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 18: set_metadata ( owner: MetadataOwner, maybe_hash: Option, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("Option", "Option"))])] })] - events changes: [≠] 9: Vetoed ( who: T::AccountId, proposal_hash: H256, until: BlockNumberFor, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 10: Blacklisted ( proposal_hash: H256, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 14: MetadataSet ( owner: MetadataOwner, hash: PreimageHash, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("PreimageHash", "T::Hash"))])] })] [≠] 15: MetadataCleared ( owner: MetadataOwner, hash: PreimageHash, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("PreimageHash", "T::Hash"))])] })] [≠] 16: MetadataTransferred ( prev_owner: MetadataOwner, owner: MetadataOwner, hash: PreimageHash, ) ) [Signature(SignatureChange { args: [Changed(2, [Ty(StringChange("PreimageHash", "T::Hash"))])] })] [≠] pallet 31: Council -> 1 change(s) - errors changes: [+] ErrorDesc { index: 10, name: "PrimeAccountNotMember" } [≠] pallet 32: TechnicalCommittee -> 1 change(s) - errors changes: [+] ErrorDesc { index: 10, name: "PrimeAccountNotMember" } [≠] pallet 35: Treasury -> 20 change(s) - calls changes: [≠] 3: spend ( amount: BalanceOf, beneficiary: AccountIdLookupOf, ) ) [Name(StringChange("spend", "spend_local"))] [+] CallDesc { index: 5, name: "spend", signature: SignatureDesc { args: [ArgDesc { name: "asset_kind", ty: "Box" }, ArgDesc { name: "amount", ty: "AssetBalanceOf" }, ArgDesc { name: "beneficiary", ty: "Box>" }, ArgDesc { name: "valid_from", ty: "Option>" }] } } [+] CallDesc { index: 6, name: "payout", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } [+] CallDesc { index: 7, name: "check_status", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } [+] CallDesc { index: 8, name: "void_spend", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } - events changes: [+] EventDesc { index: 9, name: "AssetSpendApproved", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }, ArgDesc { name: "asset_kind", ty: "T::AssetKind" }, ArgDesc { name: "amount", ty: "AssetBalanceOf" }, ArgDesc { name: "beneficiary", ty: "T::Beneficiary" }, ArgDesc { name: "valid_from", ty: "BlockNumberFor" }, ArgDesc { name: "expire_at", ty: "BlockNumberFor" }] } } [+] EventDesc { index: 10, name: "AssetSpendVoided", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } [+] EventDesc { index: 11, name: "Paid", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }, ArgDesc { name: "payment_id", ty: "::Id" }] } } [+] EventDesc { index: 12, name: "PaymentFailed", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }, ArgDesc { name: "payment_id", ty: "::Id" }] } } [+] EventDesc { index: 13, name: "SpendProcessed", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } - errors changes: [+] ErrorDesc { index: 5, name: "FailedToConvertBalance" } [+] ErrorDesc { index: 6, name: "SpendExpired" } [+] ErrorDesc { index: 7, name: "EarlyPayout" } [+] ErrorDesc { index: 8, name: "AlreadyAttempted" } [+] ErrorDesc { index: 9, name: "PayoutError" } [+] ErrorDesc { index: 10, name: "NotAttempted" } [+] ErrorDesc { index: 11, name: "Inconclusive" } - constants changes: [+] ConstantDesc { name: "PayoutPeriod", value: [192, 75, 3, 0, 0, 0, 0, 0] } - storages changes: [+] StorageDesc { name: "SpendCount", modifier: "Default", default_value: [0, 0, 0, 0] } [+] StorageDesc { name: "Spends", modifier: "Optional", default_value: [0] } [≠] pallet 41: Vesting -> 1 change(s) - calls changes: [+] CallDesc { index: 5, name: "force_remove_vesting_schedule", signature: SignatureDesc { args: [ArgDesc { name: "target", ty: "::Source" }, ArgDesc { name: "schedule_index", ty: "u32" }] } } [≠] pallet 44: Preimage -> 4 change(s) - calls changes: [+] CallDesc { index: 4, name: "ensure_updated", signature: SignatureDesc { args: [ArgDesc { name: "hashes", ty: "Vec" }] } } - errors changes: [+] ErrorDesc { index: 6, name: "TooMany" } [+] ErrorDesc { index: 7, name: "TooFew" } - storages changes: [+] StorageDesc { name: "RequestStatusFor", modifier: "Optional", default_value: [0] } [≠] pallet 46: Tips -> 5 change(s) - errors changes: [≠] 3: NotFinder [Name(StringChange("NotFinder", "MaxTipAmountExceeded"))] [≠] 4: StillOpen [Name(StringChange("StillOpen", "NotFinder"))] [≠] 5: Premature [Name(StringChange("Premature", "StillOpen"))] [+] ErrorDesc { index: 6, name: "Premature" } - constants changes: [+] ConstantDesc { name: "MaxTipAmount", value: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] } [≠] pallet 80: ParachainSystem -> 9 change(s) - events changes: [≠] 3: UpgradeAuthorized ( code_hash: T::Hash, ) ) [Name(StringChange("UpgradeAuthorized", "DownwardMessagesReceived")), Signature(SignatureChange { args: [Changed(0, [Name(StringChange("code_hash", "count")), Ty(StringChange("T::Hash", "u32"))])] })] [≠] 4: DownwardMessagesReceived ( count: u32, ) ) [Name(StringChange("DownwardMessagesReceived", "DownwardMessagesProcessed")), Signature(SignatureChange { args: [Changed(0, [Name(StringChange("count", "weight_used")), Ty(StringChange("u32", "Weight"))]), Added(1, ArgDesc { name: "dmq_head", ty: "relay_chain::Hash" })] })] [≠] 5: DownwardMessagesProcessed ( weight_used: Weight, dmq_head: relay_chain::Hash, ) ) [Name(StringChange("DownwardMessagesProcessed", "UpwardMessageSent")), Signature(SignatureChange { args: [Changed(0, [Name(StringChange("weight_used", "message_hash")), Ty(StringChange("Weight", "Option"))]), Removed(1, ArgDesc { name: "dmq_head", ty: "relay_chain::Hash" })] })] [-] "UpwardMessageSent" - storages changes: [+] StorageDesc { name: "AggregatedUnincludedSegment", modifier: "Optional", default_value: [0] } [+] StorageDesc { name: "UnincludedSegment", modifier: "Default", default_value: [0] } [+] StorageDesc { name: "UpgradeGoAhead", modifier: "Default", default_value: [0] } [+] StorageDesc { name: "UpwardDeliveryFeeFactor", modifier: "Default", default_value: [0, 0, 100, 167, 179, 182, 224, 13, 0, 0, 0, 0, 0, 0, 0, 0] } [-] "AuthorizedUpgrade" [≠] pallet 82: XcmpQueue -> 25 change(s) - calls changes: [-] "service_overweight" [-] "update_threshold_weight" [-] "update_weight_restrict_decay" [-] "update_xcmp_max_individual_weight" - events changes: [≠] 0: Success ( message_hash: XcmHash, message_id: XcmHash, weight: Weight, ) ) [Name(StringChange("Success", "XcmpMessageSent")), Signature(SignatureChange { args: [Removed(1, ArgDesc { name: "message_id", ty: "XcmHash" }), Removed(2, ArgDesc { name: "weight", ty: "Weight" })] })] [-] "Fail" [-] "BadVersion" [-] "BadFormat" [-] "XcmpMessageSent" [-] "OverweightEnqueued" [-] "OverweightServiced" - errors changes: [≠] 0: FailedToSend [Name(StringChange("FailedToSend", "BadQueueConfig"))] [≠] 1: BadXcmOrigin [Name(StringChange("BadXcmOrigin", "AlreadySuspended"))] [≠] 2: BadXcm [Name(StringChange("BadXcm", "AlreadyResumed"))] [-] "BadOverweightIndex" [-] "WeightOverLimit" - constants changes: [+] ConstantDesc { name: "MaxInboundSuspended", value: [0, 0, 0, 0] } - storages changes: [+] StorageDesc { name: "DeliveryFeeFactor", modifier: "Default", default_value: [0, 0, 100, 167, 179, 182, 224, 13, 0, 0, 0, 0, 0, 0, 0, 0] } [+] StorageDesc { name: "InboundXcmpSuspended", modifier: "Default", default_value: [0] } [≠] Default QueueConfig: [2, 0, 0, 0, 5, 0, 0, 0, 1, 0, 0, 0, 130, 26, 6, 0, 0, 8, 0, 7, 0, 200, 23, 168, 4, 2, 0, 4, 0] [DefaultValue([Changed(0, U8Change(2, 32)), Changed(4, U8Change(5, 48)), Changed(8, U8Change(1, 8)), Removed(12, 130), Removed(13, 26), Removed(14, 6), Removed(15, 0), Removed(16, 0), Removed(17, 8), Removed(18, 0), Removed(19, 7), Removed(20, 0), Removed(21, 200), Removed(22, 23), Removed(23, 168), Removed(24, 4), Removed(25, 2), Removed(26, 0), Removed(27, 4), Removed(28, 0)])] [-] "CounterForOverweight" [-] "InboundXcmpMessages" [-] "InboundXcmpStatus" [-] "Overweight" [-] "OverweightCount" [≠] pallet 83: PolkadotXcm -> 35 change(s) - calls changes: [≠] 0: send ( dest: Box, message: Box>, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 1: teleport_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [≠] 2: reserve_transfer_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [≠] 3: execute ( message: Box::RuntimeCall>>, max_weight: Weight, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box::RuntimeCall>>", "Box::RuntimeCall>>"))])] })] [≠] 4: force_xcm_version ( location: Box, version: XcmVersion, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 6: force_subscribe_version_notify ( location: Box, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 7: force_unsubscribe_version_notify ( location: Box, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 8: limited_reserve_transfer_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, weight_limit: WeightLimit, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [≠] 9: limited_teleport_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, weight_limit: WeightLimit, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [+] CallDesc { index: 11, name: "transfer_assets", signature: SignatureDesc { args: [ArgDesc { name: "dest", ty: "Box" }, ArgDesc { name: "beneficiary", ty: "Box" }, ArgDesc { name: "assets", ty: "Box" }, ArgDesc { name: "fee_asset_item", ty: "u32" }, ArgDesc { name: "weight_limit", ty: "WeightLimit" }] } } [+] CallDesc { index: 12, name: "claim_assets", signature: SignatureDesc { args: [ArgDesc { name: "assets", ty: "Box" }, ArgDesc { name: "beneficiary", ty: "Box" }] } } [+] CallDesc { index: 13, name: "transfer_assets_using_type_and_then", signature: SignatureDesc { args: [ArgDesc { name: "dest", ty: "Box" }, ArgDesc { name: "assets", ty: "Box" }, ArgDesc { name: "assets_transfer_type", ty: "Box" }, ArgDesc { name: "remote_fees_id", ty: "Box" }, ArgDesc { name: "fees_transfer_type", ty: "Box" }, ArgDesc { name: "custom_xcm_on_dest", ty: "Box>" }, ArgDesc { name: "weight_limit", ty: "WeightLimit" }] } } - events changes: [≠] 1: Sent ( origin: MultiLocation, destination: MultiLocation, message: Xcm<()>, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 2: UnexpectedResponse ( origin: MultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 8: InvalidResponder ( origin: MultiLocation, query_id: QueryId, expected_location: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("Option", "Option"))])] })] [≠] 9: InvalidResponderVersion ( origin: MultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 11: AssetsTrapped ( hash: H256, origin: MultiLocation, assets: VersionedMultiAssets, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("VersionedMultiAssets", "VersionedAssets"))])] })] [≠] 12: VersionChangeNotified ( destination: MultiLocation, result: XcmVersion, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 13: SupportedVersionChanged ( location: MultiLocation, version: XcmVersion, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 14: NotifyTargetSendFail ( location: MultiLocation, query_id: QueryId, error: XcmError, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 15: NotifyTargetMigrationFail ( location: VersionedMultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("VersionedMultiLocation", "VersionedLocation"))])] })] [≠] 16: InvalidQuerierVersion ( origin: MultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 17: InvalidQuerier ( origin: MultiLocation, query_id: QueryId, expected_querier: MultiLocation, maybe_actual_querier: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("MultiLocation", "Location"))]), Changed(3, [Ty(StringChange("Option", "Option"))])] })] [≠] 18: VersionNotifyStarted ( destination: MultiLocation, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 19: VersionNotifyRequested ( destination: MultiLocation, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 20: VersionNotifyUnrequested ( destination: MultiLocation, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 21: FeesPaid ( paying: MultiLocation, fees: MultiAssets, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 22: AssetsClaimed ( hash: H256, origin: MultiLocation, assets: VersionedMultiAssets, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("VersionedMultiAssets", "VersionedAssets"))])] })] [+] EventDesc { index: 23, name: "VersionMigrationFinished", signature: SignatureDesc { args: [ArgDesc { name: "version", ty: "XcmVersion" }] } } - errors changes: [≠] 13: InvalidAsset [Name(StringChange("InvalidAsset", "CannotCheckOutTeleport"))] [+] ErrorDesc { index: 20, name: "InvalidAssetNotConcrete" } [+] ErrorDesc { index: 21, name: "InvalidAssetUnknownReserve" } [+] ErrorDesc { index: 22, name: "InvalidAssetUnsupportedReserve" } [+] ErrorDesc { index: 23, name: "TooManyReserves" } [+] ErrorDesc { index: 24, name: "LocalExecutionIncomplete" } [+] id: 86 - new pallet: MessageQueue [-] pallet 9: Configuration [-] pallet 85: DmpQueue SUMMARY: - Compatible.......................: false - Require transaction_version bump.: true !!! THE SUBWASM REDUCED DIFFER IS EXPERIMENTAL, DOUBLE CHECK THE RESULTS !!! ```
Spiritnet Diff ``` !!! THE SUBWASM REDUCED DIFFER IS EXPERIMENTAL, DOUBLE CHECK THE RESULTS !!! [≠] pallet 0: System -> 8 change(s) - calls changes: [+] CallDesc { index: 9, name: "authorize_upgrade", signature: SignatureDesc { args: [ArgDesc { name: "code_hash", ty: "T::Hash" }] } } [+] CallDesc { index: 10, name: "authorize_upgrade_without_checks", signature: SignatureDesc { args: [ArgDesc { name: "code_hash", ty: "T::Hash" }] } } [+] CallDesc { index: 11, name: "apply_authorized_upgrade", signature: SignatureDesc { args: [ArgDesc { name: "code", ty: "Vec" }] } } - events changes: [+] EventDesc { index: 6, name: "UpgradeAuthorized", signature: SignatureDesc { args: [ArgDesc { name: "code_hash", ty: "T::Hash" }, ArgDesc { name: "check_version", ty: "bool" }] } } - errors changes: [+] ErrorDesc { index: 6, name: "NothingAuthorized" } [+] ErrorDesc { index: 7, name: "Unauthorized" } - constants changes: [≠] Version: [ 56, 107, 105, 108, 116, 45, 115, 112, 105, 114, 105, 116, 110, 101, 116, 56, 107, 105, 108, 116, 45, 115, 112, 105, 114, 105, 116, 110, 101, 116, 1, 0, ... ] [Value([Changed(42, U8Change(60, 68)), Changed(163, U8Change(234, 215)), Changed(164, U8Change(147, 189)), Changed(165, U8Change(227, 216)), Changed(166, U8Change(241, 162)), Changed(167, U8Change(111, 114)), Changed(168, U8Change(61, 202)), Changed(169, U8Change(105, 13)), Changed(170, U8Change(98, 101)), Changed(171, U8Change(2, 1)), Changed(175, U8Change(38, 234)), Changed(176, U8Change(96, 147)), Changed(177, U8Change(149, 227)), Changed(178, U8Change(85, 241)), Changed(179, U8Change(192, 111)), Changed(180, U8Change(101, 61)), Changed(181, U8Change(102, 105)), Changed(182, U8Change(3, 98)), Changed(187, U8Change(164, 38)), Changed(188, U8Change(123, 96)), Changed(189, U8Change(125, 149)), Changed(190, U8Change(84, 85)), Changed(191, U8Change(73, 192)), Changed(192, U8Change(148, 101)), Changed(193, U8Change(201, 102)), Changed(194, U8Change(155, 3)), Changed(195, U8Change(1, 2)), Changed(199, U8Change(69, 164)), Changed(200, U8Change(191, 123)), Changed(201, U8Change(186, 125)), Changed(202, U8Change(81, 84)), Changed(203, U8Change(163, 73)), Changed(204, U8Change(16, 148)), Changed(205, U8Change(178, 201)), Changed(206, U8Change(35, 155)), Changed(211, U8Change(195, 69)), Changed(212, U8Change(179, 191)), Changed(213, U8Change(232, 186)), Changed(214, U8Change(211, 81)), Changed(215, U8Change(50, 163)), Changed(216, U8Change(115, 16)), Changed(217, U8Change(153, 178)), Changed(218, U8Change(13, 35)), Changed(223, U8Change(8, 195)), Changed(224, U8Change(0, 179)), Changed(225, U8Change(0, 232)), Changed(226, U8Change(0, 211)), Changed(227, U8Change(0, 50)), Added(228, 115), Added(229, 153), Added(230, 13), Added(231, 1), Added(232, 0), Added(233, 0), Added(234, 0), Added(235, 251), Added(236, 197), Added(237, 119), Added(238, 185), Added(239, 215), Added(240, 71), Added(241, 239), Added(242, 214), Added(243, 1), Added(244, 0), Added(245, 0), Added(246, 0), Added(247, 8), Added(248, 0), Added(249, 0), Added(250, 0), Added(251, 0)])] - storages changes: [+] StorageDesc { name: "AuthorizedUpgrade", modifier: "Optional", default_value: [0] } [≠] pallet 6: Balances -> 7 change(s) - calls changes: [+] CallDesc { index: 9, name: "force_adjust_total_issuance", signature: SignatureDesc { args: [ArgDesc { name: "direction", ty: "AdjustmentDirection" }, ArgDesc { name: "delta", ty: "T::Balance" }] } } [-] "set_balance_deprecated" [-] "transfer" - events changes: [+] EventDesc { index: 21, name: "TotalIssuanceForced", signature: SignatureDesc { args: [ArgDesc { name: "old", ty: "T::Balance" }, ArgDesc { name: "new", ty: "T::Balance" }] } } - errors changes: [+] ErrorDesc { index: 10, name: "IssuanceDeactivated" } [+] ErrorDesc { index: 11, name: "DeltaZero" } - constants changes: [-] "MaxHolds" [≠] pallet 24: AuraExt -> 1 change(s) - storages changes: [+] StorageDesc { name: "SlotInfo", modifier: "Optional", default_value: [0] } [≠] pallet 30: Democracy -> 9 change(s) - calls changes: [≠] 7: fast_track ( proposal_hash: H256, voting_period: BlockNumberFor, delay: BlockNumberFor, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 8: veto_external ( proposal_hash: H256, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 16: blacklist ( proposal_hash: H256, maybe_ref_index: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 18: set_metadata ( owner: MetadataOwner, maybe_hash: Option, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("Option", "Option"))])] })] - events changes: [≠] 9: Vetoed ( who: T::AccountId, proposal_hash: H256, until: BlockNumberFor, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 10: Blacklisted ( proposal_hash: H256, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("H256", "T::Hash"))])] })] [≠] 14: MetadataSet ( owner: MetadataOwner, hash: PreimageHash, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("PreimageHash", "T::Hash"))])] })] [≠] 15: MetadataCleared ( owner: MetadataOwner, hash: PreimageHash, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("PreimageHash", "T::Hash"))])] })] [≠] 16: MetadataTransferred ( prev_owner: MetadataOwner, owner: MetadataOwner, hash: PreimageHash, ) ) [Signature(SignatureChange { args: [Changed(2, [Ty(StringChange("PreimageHash", "T::Hash"))])] })] [≠] pallet 31: Council -> 1 change(s) - errors changes: [+] ErrorDesc { index: 10, name: "PrimeAccountNotMember" } [≠] pallet 32: TechnicalCommittee -> 1 change(s) - errors changes: [+] ErrorDesc { index: 10, name: "PrimeAccountNotMember" } [≠] pallet 35: Treasury -> 20 change(s) - calls changes: [≠] 3: spend ( amount: BalanceOf, beneficiary: AccountIdLookupOf, ) ) [Name(StringChange("spend", "spend_local"))] [+] CallDesc { index: 5, name: "spend", signature: SignatureDesc { args: [ArgDesc { name: "asset_kind", ty: "Box" }, ArgDesc { name: "amount", ty: "AssetBalanceOf" }, ArgDesc { name: "beneficiary", ty: "Box>" }, ArgDesc { name: "valid_from", ty: "Option>" }] } } [+] CallDesc { index: 6, name: "payout", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } [+] CallDesc { index: 7, name: "check_status", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } [+] CallDesc { index: 8, name: "void_spend", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } - events changes: [+] EventDesc { index: 9, name: "AssetSpendApproved", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }, ArgDesc { name: "asset_kind", ty: "T::AssetKind" }, ArgDesc { name: "amount", ty: "AssetBalanceOf" }, ArgDesc { name: "beneficiary", ty: "T::Beneficiary" }, ArgDesc { name: "valid_from", ty: "BlockNumberFor" }, ArgDesc { name: "expire_at", ty: "BlockNumberFor" }] } } [+] EventDesc { index: 10, name: "AssetSpendVoided", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } [+] EventDesc { index: 11, name: "Paid", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }, ArgDesc { name: "payment_id", ty: "::Id" }] } } [+] EventDesc { index: 12, name: "PaymentFailed", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }, ArgDesc { name: "payment_id", ty: "::Id" }] } } [+] EventDesc { index: 13, name: "SpendProcessed", signature: SignatureDesc { args: [ArgDesc { name: "index", ty: "SpendIndex" }] } } - errors changes: [+] ErrorDesc { index: 5, name: "FailedToConvertBalance" } [+] ErrorDesc { index: 6, name: "SpendExpired" } [+] ErrorDesc { index: 7, name: "EarlyPayout" } [+] ErrorDesc { index: 8, name: "AlreadyAttempted" } [+] ErrorDesc { index: 9, name: "PayoutError" } [+] ErrorDesc { index: 10, name: "NotAttempted" } [+] ErrorDesc { index: 11, name: "Inconclusive" } - constants changes: [+] ConstantDesc { name: "PayoutPeriod", value: [192, 75, 3, 0, 0, 0, 0, 0] } - storages changes: [+] StorageDesc { name: "SpendCount", modifier: "Default", default_value: [0, 0, 0, 0] } [+] StorageDesc { name: "Spends", modifier: "Optional", default_value: [0] } [≠] pallet 41: Vesting -> 1 change(s) - calls changes: [+] CallDesc { index: 5, name: "force_remove_vesting_schedule", signature: SignatureDesc { args: [ArgDesc { name: "target", ty: "::Source" }, ArgDesc { name: "schedule_index", ty: "u32" }] } } [≠] pallet 44: Preimage -> 4 change(s) - calls changes: [+] CallDesc { index: 4, name: "ensure_updated", signature: SignatureDesc { args: [ArgDesc { name: "hashes", ty: "Vec" }] } } - errors changes: [+] ErrorDesc { index: 6, name: "TooMany" } [+] ErrorDesc { index: 7, name: "TooFew" } - storages changes: [+] StorageDesc { name: "RequestStatusFor", modifier: "Optional", default_value: [0] } [≠] pallet 46: Tips -> 5 change(s) - errors changes: [≠] 3: NotFinder [Name(StringChange("NotFinder", "MaxTipAmountExceeded"))] [≠] 4: StillOpen [Name(StringChange("StillOpen", "NotFinder"))] [≠] 5: Premature [Name(StringChange("Premature", "StillOpen"))] [+] ErrorDesc { index: 6, name: "Premature" } - constants changes: [+] ConstantDesc { name: "MaxTipAmount", value: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] } [≠] pallet 80: ParachainSystem -> 9 change(s) - events changes: [≠] 3: UpgradeAuthorized ( code_hash: T::Hash, ) ) [Name(StringChange("UpgradeAuthorized", "DownwardMessagesReceived")), Signature(SignatureChange { args: [Changed(0, [Name(StringChange("code_hash", "count")), Ty(StringChange("T::Hash", "u32"))])] })] [≠] 4: DownwardMessagesReceived ( count: u32, ) ) [Name(StringChange("DownwardMessagesReceived", "DownwardMessagesProcessed")), Signature(SignatureChange { args: [Changed(0, [Name(StringChange("count", "weight_used")), Ty(StringChange("u32", "Weight"))]), Added(1, ArgDesc { name: "dmq_head", ty: "relay_chain::Hash" })] })] [≠] 5: DownwardMessagesProcessed ( weight_used: Weight, dmq_head: relay_chain::Hash, ) ) [Name(StringChange("DownwardMessagesProcessed", "UpwardMessageSent")), Signature(SignatureChange { args: [Changed(0, [Name(StringChange("weight_used", "message_hash")), Ty(StringChange("Weight", "Option"))]), Removed(1, ArgDesc { name: "dmq_head", ty: "relay_chain::Hash" })] })] [-] "UpwardMessageSent" - storages changes: [+] StorageDesc { name: "AggregatedUnincludedSegment", modifier: "Optional", default_value: [0] } [+] StorageDesc { name: "UnincludedSegment", modifier: "Default", default_value: [0] } [+] StorageDesc { name: "UpgradeGoAhead", modifier: "Default", default_value: [0] } [+] StorageDesc { name: "UpwardDeliveryFeeFactor", modifier: "Default", default_value: [0, 0, 100, 167, 179, 182, 224, 13, 0, 0, 0, 0, 0, 0, 0, 0] } [-] "AuthorizedUpgrade" [≠] pallet 82: XcmpQueue -> 25 change(s) - calls changes: [-] "service_overweight" [-] "update_threshold_weight" [-] "update_weight_restrict_decay" [-] "update_xcmp_max_individual_weight" - events changes: [≠] 0: Success ( message_hash: XcmHash, message_id: XcmHash, weight: Weight, ) ) [Name(StringChange("Success", "XcmpMessageSent")), Signature(SignatureChange { args: [Removed(1, ArgDesc { name: "message_id", ty: "XcmHash" }), Removed(2, ArgDesc { name: "weight", ty: "Weight" })] })] [-] "Fail" [-] "BadVersion" [-] "BadFormat" [-] "XcmpMessageSent" [-] "OverweightEnqueued" [-] "OverweightServiced" - errors changes: [≠] 0: FailedToSend [Name(StringChange("FailedToSend", "BadQueueConfig"))] [≠] 1: BadXcmOrigin [Name(StringChange("BadXcmOrigin", "AlreadySuspended"))] [≠] 2: BadXcm [Name(StringChange("BadXcm", "AlreadyResumed"))] [-] "BadOverweightIndex" [-] "WeightOverLimit" - constants changes: [+] ConstantDesc { name: "MaxInboundSuspended", value: [0, 0, 0, 0] } - storages changes: [+] StorageDesc { name: "DeliveryFeeFactor", modifier: "Default", default_value: [0, 0, 100, 167, 179, 182, 224, 13, 0, 0, 0, 0, 0, 0, 0, 0] } [+] StorageDesc { name: "InboundXcmpSuspended", modifier: "Default", default_value: [0] } [≠] Default QueueConfig: [2, 0, 0, 0, 5, 0, 0, 0, 1, 0, 0, 0, 130, 26, 6, 0, 0, 8, 0, 7, 0, 200, 23, 168, 4, 2, 0, 4, 0] [DefaultValue([Changed(0, U8Change(2, 32)), Changed(4, U8Change(5, 48)), Changed(8, U8Change(1, 8)), Removed(12, 130), Removed(13, 26), Removed(14, 6), Removed(15, 0), Removed(16, 0), Removed(17, 8), Removed(18, 0), Removed(19, 7), Removed(20, 0), Removed(21, 200), Removed(22, 23), Removed(23, 168), Removed(24, 4), Removed(25, 2), Removed(26, 0), Removed(27, 4), Removed(28, 0)])] [-] "CounterForOverweight" [-] "InboundXcmpMessages" [-] "InboundXcmpStatus" [-] "Overweight" [-] "OverweightCount" [≠] pallet 83: PolkadotXcm -> 35 change(s) - calls changes: [≠] 0: send ( dest: Box, message: Box>, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 1: teleport_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [≠] 2: reserve_transfer_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [≠] 3: execute ( message: Box::RuntimeCall>>, max_weight: Weight, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box::RuntimeCall>>", "Box::RuntimeCall>>"))])] })] [≠] 4: force_xcm_version ( location: Box, version: XcmVersion, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 6: force_subscribe_version_notify ( location: Box, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 7: force_unsubscribe_version_notify ( location: Box, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))])] })] [≠] 8: limited_reserve_transfer_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, weight_limit: WeightLimit, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [≠] 9: limited_teleport_assets ( dest: Box, beneficiary: Box, assets: Box, fee_asset_item: u32, weight_limit: WeightLimit, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("Box", "Box"))]), Changed(1, [Ty(StringChange("Box", "Box"))]), Changed(2, [Ty(StringChange("Box", "Box"))])] })] [+] CallDesc { index: 11, name: "transfer_assets", signature: SignatureDesc { args: [ArgDesc { name: "dest", ty: "Box" }, ArgDesc { name: "beneficiary", ty: "Box" }, ArgDesc { name: "assets", ty: "Box" }, ArgDesc { name: "fee_asset_item", ty: "u32" }, ArgDesc { name: "weight_limit", ty: "WeightLimit" }] } } [+] CallDesc { index: 12, name: "claim_assets", signature: SignatureDesc { args: [ArgDesc { name: "assets", ty: "Box" }, ArgDesc { name: "beneficiary", ty: "Box" }] } } [+] CallDesc { index: 13, name: "transfer_assets_using_type_and_then", signature: SignatureDesc { args: [ArgDesc { name: "dest", ty: "Box" }, ArgDesc { name: "assets", ty: "Box" }, ArgDesc { name: "assets_transfer_type", ty: "Box" }, ArgDesc { name: "remote_fees_id", ty: "Box" }, ArgDesc { name: "fees_transfer_type", ty: "Box" }, ArgDesc { name: "custom_xcm_on_dest", ty: "Box>" }, ArgDesc { name: "weight_limit", ty: "WeightLimit" }] } } - events changes: [≠] 1: Sent ( origin: MultiLocation, destination: MultiLocation, message: Xcm<()>, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 2: UnexpectedResponse ( origin: MultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 8: InvalidResponder ( origin: MultiLocation, query_id: QueryId, expected_location: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("Option", "Option"))])] })] [≠] 9: InvalidResponderVersion ( origin: MultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 11: AssetsTrapped ( hash: H256, origin: MultiLocation, assets: VersionedMultiAssets, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("VersionedMultiAssets", "VersionedAssets"))])] })] [≠] 12: VersionChangeNotified ( destination: MultiLocation, result: XcmVersion, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 13: SupportedVersionChanged ( location: MultiLocation, version: XcmVersion, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 14: NotifyTargetSendFail ( location: MultiLocation, query_id: QueryId, error: XcmError, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 15: NotifyTargetMigrationFail ( location: VersionedMultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("VersionedMultiLocation", "VersionedLocation"))])] })] [≠] 16: InvalidQuerierVersion ( origin: MultiLocation, query_id: QueryId, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))])] })] [≠] 17: InvalidQuerier ( origin: MultiLocation, query_id: QueryId, expected_querier: MultiLocation, maybe_actual_querier: Option, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("MultiLocation", "Location"))]), Changed(3, [Ty(StringChange("Option", "Option"))])] })] [≠] 18: VersionNotifyStarted ( destination: MultiLocation, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 19: VersionNotifyRequested ( destination: MultiLocation, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 20: VersionNotifyUnrequested ( destination: MultiLocation, cost: MultiAssets, message_id: XcmHash, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 21: FeesPaid ( paying: MultiLocation, fees: MultiAssets, ) ) [Signature(SignatureChange { args: [Changed(0, [Ty(StringChange("MultiLocation", "Location"))]), Changed(1, [Ty(StringChange("MultiAssets", "Assets"))])] })] [≠] 22: AssetsClaimed ( hash: H256, origin: MultiLocation, assets: VersionedMultiAssets, ) ) [Signature(SignatureChange { args: [Changed(1, [Ty(StringChange("MultiLocation", "Location"))]), Changed(2, [Ty(StringChange("VersionedMultiAssets", "VersionedAssets"))])] })] [+] EventDesc { index: 23, name: "VersionMigrationFinished", signature: SignatureDesc { args: [ArgDesc { name: "version", ty: "XcmVersion" }] } } - errors changes: [≠] 13: InvalidAsset [Name(StringChange("InvalidAsset", "CannotCheckOutTeleport"))] [+] ErrorDesc { index: 20, name: "InvalidAssetNotConcrete" } [+] ErrorDesc { index: 21, name: "InvalidAssetUnknownReserve" } [+] ErrorDesc { index: 22, name: "InvalidAssetUnsupportedReserve" } [+] ErrorDesc { index: 23, name: "TooManyReserves" } [+] ErrorDesc { index: 24, name: "LocalExecutionIncomplete" } [+] id: 86 - new pallet: MessageQueue [-] pallet 85: DmpQueue SUMMARY: - Compatible.......................: false - Require transaction_version bump.: true !!! THE SUBWASM REDUCED DIFFER IS EXPERIMENTAL, DOUBLE CHECK THE RESULTS !!! ```
## Checklist: - [ ] I have verified that the code works - [ ] No panics! (checked arithmetic ops, no indexing `array[3]` use `get(3)`, ...) - [ ] I have verified that the code is easy to understand - [ ] If not, I have left a well-balanced amount of inline comments - [ ] I have [left the code in a better state](https://deviq.com/principles/boy-scout-rule) - [ ] I have documented the changes (where applicable) * Either PR or Ticket to update [the Docs](https://github.com/KILTprotocol/docs) * Link the PR/Ticket here --- .gitlab-ci.yml | 18 +- Cargo.lock | 6940 ++++++++--------- Cargo.toml | 269 +- .../merkle_proofs/v0/provider_state/tests.rs | 1 + .../src/verifier/parachain/v0/mock.rs | 10 +- .../src/verifier/parachain/v0/tests.rs | 59 +- dip-template/nodes/dip-consumer/Cargo.toml | 11 +- .../nodes/dip-consumer/src/chain_spec.rs | 64 +- dip-template/nodes/dip-consumer/src/cli.rs | 4 +- .../nodes/dip-consumer/src/command.rs | 2 +- .../nodes/dip-consumer/src/service.rs | 11 +- dip-template/nodes/dip-provider/Cargo.toml | 11 +- .../nodes/dip-provider/src/chain_spec.rs | 66 +- dip-template/nodes/dip-provider/src/cli.rs | 4 +- .../nodes/dip-provider/src/command.rs | 2 +- .../nodes/dip-provider/src/service.rs | 11 +- dip-template/runtimes/dip-consumer/src/lib.rs | 18 +- .../dip-consumer/src/weights/frame_system.rs | 7 + dip-template/runtimes/dip-provider/Cargo.toml | 1 + dip-template/runtimes/dip-provider/src/lib.rs | 18 +- .../dip-provider/src/weights/frame_system.rs | 6 + integration-tests/emulated/Cargo.toml | 111 +- integration-tests/emulated/src/lib.rs | 7 +- integration-tests/emulated/src/mock/mod.rs | 1 - .../emulated/src/mock/network.rs | 29 +- .../emulated/src/mock/para_chains.rs | 66 +- .../emulated/src/mock/relay_chains.rs | 51 - .../peregrine/did_pallets/association.rs | 36 +- .../peregrine/did_pallets/attestation.rs | 36 +- .../src/tests/peregrine/did_pallets/ctype.rs | 44 +- .../src/tests/peregrine/did_pallets/did.rs | 43 +- .../did_pallets/public_credentials.rs | 36 +- .../did_pallets/unallowed_did_call.rs | 44 +- .../src/tests/peregrine/did_pallets/utils.rs | 12 +- .../src/tests/peregrine/did_pallets/w3n.rs | 36 +- .../src/tests/peregrine/reserve_transfers.rs | 104 +- .../emulated/src/tests/peregrine/sudo.rs | 65 +- .../src/tests/peregrine/teleportation.rs | 36 +- .../src/tests/peregrine/unpaid_execution.rs | 72 +- .../spiritnet/did_pallets/association.rs | 44 +- .../spiritnet/did_pallets/attestation.rs | 44 +- .../src/tests/spiritnet/did_pallets/ctype.rs | 44 +- .../src/tests/spiritnet/did_pallets/did.rs | 51 +- .../did_pallets/public_credentials.rs | 46 +- .../did_pallets/unallowed_did_call.rs | 53 +- .../src/tests/spiritnet/did_pallets/utils.rs | 12 +- .../src/tests/spiritnet/did_pallets/w3n.rs | 49 +- .../src/tests/spiritnet/reserve_transfers.rs | 119 +- .../emulated/src/tests/spiritnet/sudo.rs | 77 +- .../src/tests/spiritnet/teleportation.rs | 41 +- .../src/tests/spiritnet/unpaid_execution.rs | 82 +- nodes/parachain/Cargo.toml | 1 + nodes/parachain/src/chain_spec/mod.rs | 10 - .../parachain/src/chain_spec/peregrine/dev.rs | 29 +- .../parachain/src/chain_spec/peregrine/new.rs | 30 +- .../parachain/src/chain_spec/spiritnet/dev.rs | 29 +- .../parachain/src/chain_spec/spiritnet/new.rs | 30 +- nodes/parachain/src/chain_spec/utils.rs | 13 +- nodes/parachain/src/cli.rs | 2 +- nodes/parachain/src/command.rs | 25 +- nodes/parachain/src/service.rs | 9 +- nodes/standalone/Cargo.toml | 1 + nodes/standalone/src/chain_spec.rs | 61 +- nodes/standalone/src/service.rs | 8 +- pallets/attestation/src/mock.rs | 7 +- pallets/attestation/src/tests/deposit.rs | 2 +- pallets/ctype/src/mock.rs | 3 +- pallets/delegation/src/mock.rs | 7 +- pallets/delegation/src/tests/deposit.rs | 2 +- pallets/did/src/benchmarking.rs | 7 +- pallets/did/src/mock.rs | 4 +- pallets/did/src/tests/create.rs | 2 +- pallets/did/src/tests/deposit.rs | 2 +- pallets/pallet-configuration/src/mock.rs | 4 +- .../src/benchmarking.rs | 1 - .../src/deposit/mock.rs | 3 +- pallets/pallet-deposit-storage/src/mock.rs | 4 +- pallets/pallet-did-lookup/src/mock.rs | 4 +- .../pallet-did-lookup/src/tests/deposit.rs | 2 +- pallets/pallet-dip-consumer/README.md | 2 +- .../pallet-dip-consumer/src/benchmarking.rs | 2 +- pallets/pallet-dip-consumer/src/mock.rs | 3 +- pallets/pallet-dip-provider/README.md | 2 +- .../pallet-dip-provider/src/benchmarking.rs | 1 - pallets/pallet-dip-provider/src/mock.rs | 1 + pallets/pallet-inflation/src/mock.rs | 3 +- pallets/pallet-migration/src/mock.rs | 4 +- .../pallet-relay-store/src/benchmarking.rs | 2 +- pallets/pallet-relay-store/src/mock.rs | 9 +- pallets/pallet-web3-names/src/mock.rs | 4 +- .../pallet-web3-names/src/tests/deposit.rs | 2 +- pallets/pallet-web3-names/src/web3_name.rs | 2 +- pallets/parachain-staking/src/api.rs | 12 +- pallets/parachain-staking/src/lib.rs | 14 +- pallets/parachain-staking/src/mock.rs | 4 +- .../parachain-staking/src/tests/collators.rs | 6 +- pallets/public-credentials/src/mock.rs | 7 +- runtimes/common/Cargo.toml | 14 +- .../src/{benchmarks.rs => benchmarks/mod.rs} | 6 + runtimes/common/src/benchmarks/treasury.rs | 47 + runtimes/common/src/benchmarks/xcm.rs | 48 + runtimes/common/src/constants.rs | 2 + runtimes/common/src/dip/deposit/mock.rs | 3 +- runtimes/common/src/dip/mock.rs | 3 +- runtimes/common/src/fees.rs | 28 +- runtimes/common/src/xcm_config.rs | 51 +- runtimes/kestrel/src/lib.rs | 7 +- runtimes/peregrine/Cargo.toml | 19 +- runtimes/peregrine/src/lib.rs | 127 +- runtimes/peregrine/src/weights/attestation.rs | 175 +- runtimes/peregrine/src/weights/ctype.rs | 55 +- .../cumulus_pallet_parachain_system.rs | 92 + runtimes/peregrine/src/weights/delegation.rs | 333 +- runtimes/peregrine/src/weights/did.rs | 1086 +-- .../peregrine/src/weights/frame_system.rs | 187 +- runtimes/peregrine/src/weights/mod.rs | 4 + .../peregrine/src/weights/pallet_balances.rs | 126 +- .../src/weights/pallet_collective.rs | 385 +- .../peregrine/src/weights/pallet_democracy.rs | 713 +- .../src/weights/pallet_deposit_storage.rs | 22 +- .../src/weights/pallet_did_lookup.rs | 307 +- .../src/weights/pallet_dip_provider.rs | 36 +- .../peregrine/src/weights/pallet_dmp_queue.rs | 182 + .../peregrine/src/weights/pallet_indices.rs | 101 +- .../peregrine/src/weights/pallet_inflation.rs | 35 +- .../src/weights/pallet_membership.rs | 241 +- .../src/weights/pallet_message_queue.rs | 297 + .../peregrine/src/weights/pallet_migration.rs | 117 +- .../peregrine/src/weights/pallet_preimage.rs | 315 +- .../peregrine/src/weights/pallet_proxy.rs | 249 +- .../peregrine/src/weights/pallet_scheduler.rs | 200 +- .../peregrine/src/weights/pallet_session.rs | 51 +- runtimes/peregrine/src/weights/pallet_sudo.rs | 2 + .../peregrine/src/weights/pallet_timestamp.rs | 33 +- runtimes/peregrine/src/weights/pallet_tips.rs | 181 +- .../peregrine/src/weights/pallet_treasury.rs | 272 +- .../peregrine/src/weights/pallet_utility.rs | 47 +- .../peregrine/src/weights/pallet_vesting.rs | 327 +- .../src/weights/pallet_web3_names.rs | 239 +- runtimes/peregrine/src/weights/pallet_xcm.rs | 461 +- .../src/weights/public_credentials.rs | 223 +- runtimes/peregrine/src/xcm_config.rs | 79 +- runtimes/spiritnet/Cargo.toml | 21 +- runtimes/spiritnet/src/lib.rs | 126 +- runtimes/spiritnet/src/weights/attestation.rs | 233 +- runtimes/spiritnet/src/weights/ctype.rs | 88 +- .../src/weights/cumulus_pallet_dmp_queue.rs | 184 + .../cumulus_pallet_parachain_system.rs | 92 + runtimes/spiritnet/src/weights/delegation.rs | 470 +- runtimes/spiritnet/src/weights/did.rs | 1094 +-- .../spiritnet/src/weights/frame_system.rs | 232 +- runtimes/spiritnet/src/weights/mod.rs | 4 + .../spiritnet/src/weights/pallet_balances.rs | 126 +- .../src/weights/pallet_collective.rs | 557 +- .../spiritnet/src/weights/pallet_democracy.rs | 711 +- .../src/weights/pallet_deposit_storage.rs | 22 +- .../src/weights/pallet_did_lookup.rs | 386 +- .../src/weights/pallet_dip_provider.rs | 34 +- .../spiritnet/src/weights/pallet_indices.rs | 170 +- .../spiritnet/src/weights/pallet_inflation.rs | 61 +- .../src/weights/pallet_membership.rs | 331 +- .../src/weights/pallet_message_queue.rs | 297 + .../spiritnet/src/weights/pallet_migration.rs | 117 +- .../spiritnet/src/weights/pallet_preimage.rs | 462 +- .../spiritnet/src/weights/pallet_proxy.rs | 403 +- .../spiritnet/src/weights/pallet_scheduler.rs | 314 +- .../spiritnet/src/weights/pallet_session.rs | 89 +- .../spiritnet/src/weights/pallet_timestamp.rs | 61 +- runtimes/spiritnet/src/weights/pallet_tips.rs | 258 +- .../spiritnet/src/weights/pallet_treasury.rs | 342 +- .../spiritnet/src/weights/pallet_utility.rs | 77 +- .../spiritnet/src/weights/pallet_vesting.rs | 2 + .../src/weights/pallet_web3_names.rs | 308 +- runtimes/spiritnet/src/weights/pallet_xcm.rs | 331 +- .../src/weights/public_credentials.rs | 293 +- runtimes/spiritnet/src/xcm_config.rs | 79 +- rust-toolchain.toml | 2 +- scripts/run_benches_for_runtime.sh | 5 +- 178 files changed, 14708 insertions(+), 10608 deletions(-) delete mode 100644 integration-tests/emulated/src/mock/relay_chains.rs rename runtimes/common/src/{benchmarks.rs => benchmarks/mod.rs} (87%) create mode 100644 runtimes/common/src/benchmarks/treasury.rs create mode 100644 runtimes/common/src/benchmarks/xcm.rs create mode 100644 runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs create mode 100644 runtimes/peregrine/src/weights/pallet_dmp_queue.rs create mode 100644 runtimes/peregrine/src/weights/pallet_message_queue.rs create mode 100644 runtimes/spiritnet/src/weights/cumulus_pallet_dmp_queue.rs create mode 100644 runtimes/spiritnet/src/weights/cumulus_pallet_parachain_system.rs create mode 100644 runtimes/spiritnet/src/weights/pallet_message_queue.rs diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7ad55df9..3a7298e15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ clippy-and-docs: extends: .check_skip_rust interruptible: true timeout: 2 hours - image: paritytech/ci-unified:bullseye-1.70.0 + image: paritytech/ci-unified:bullseye-1.74.0 stage: test script: - cargo clippy --all-features --all-targets --locked -- -D warnings @@ -36,7 +36,7 @@ clippy-and-docs: fmt: interruptible: true extends: .check_skip_rust - image: paritytech/ci-unified:bullseye-1.70.0 + image: paritytech/ci-unified:bullseye-1.74.0 stage: test script: - cargo fmt -- --check @@ -47,7 +47,7 @@ test: interruptible: true extends: .check_skip_rust timeout: 2 hours - image: paritytech/ci-unified:bullseye-1.70.0 + image: paritytech/ci-unified:bullseye-1.74.0 stage: test script: - cargo test --all --all-targets --locked @@ -56,7 +56,7 @@ test-features: extends: .check_skip_rust interruptible: true timeout: 2 hours - image: paritytech/ci-unified:bullseye-1.70.0 + image: paritytech/ci-unified:bullseye-1.74.0 stage: test script: - cargo test --all --all-features --all-targets --locked @@ -65,7 +65,7 @@ integration-tests: extends: .check_skip_integration_tests interruptible: true timeout: 30 minutes - image: paritytech/ci-unified:bullseye-1.70.0 + image: paritytech/ci-unified:bullseye-1.74.0 stage: test variables: CI: "true" @@ -90,7 +90,7 @@ test-try-runtime: - RUNTIME: "spiritnet" ENDPOINT: "wss://spiritnet.kilt.io:443" timeout: 2 hours - image: paritytech/ci-unified:bullseye-1.70.0 + image: paritytech/ci-unified:bullseye-1.74.0 stage: test variables: TRY_RUNTIME_CLI_VERSION_TAG: v0.6.1 @@ -136,7 +136,7 @@ build: build-wasm-peregrine: interruptible: true image: - name: paritytech/srtool:1.70.0 + name: paritytech/srtool:1.74.0 entrypoint: [""] stage: build only: @@ -165,7 +165,7 @@ build-wasm-peregrine: build-wasm-spiritnet: interruptible: true image: - name: paritytech/srtool:1.70.0 + name: paritytech/srtool:1.74.0 entrypoint: [""] stage: build only: @@ -198,7 +198,7 @@ build-wasm-try-runtime: - RUNTIME: "peregrine" - RUNTIME: "spiritnet" image: - name: paritytech/ci-unified:bullseye-1.70.0 + name: paritytech/ci-unified:bullseye-1.74.0 entrypoint: [""] stage: build only: diff --git a/Cargo.lock b/Cargo.lock index a1dacd290..df9c2935a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,11 +23,11 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ - "gimli 0.28.0", + "gimli 0.29.0", ] [[package]] @@ -36,25 +36,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" -[[package]] -name = "aead" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331" -dependencies = [ - "generic-array 0.14.7", -] - -[[package]] -name = "aead" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" -dependencies = [ - "generic-array 0.14.7", - "rand_core 0.6.4", -] - [[package]] name = "aead" version = "0.5.2" @@ -67,105 +48,48 @@ dependencies = [ [[package]] name = "aes" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "884391ef1066acaa41e766ba8f596341b96e93ce34f9a43e7d24bf0a0eaf0561" -dependencies = [ - "aes-soft", - "aesni", - "cipher 0.2.5", -] - -[[package]] -name = "aes" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" -dependencies = [ - "cfg-if", - "cipher 0.3.0", - "cpufeatures", - "opaque-debug 0.3.0", -] - -[[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", "cpufeatures", ] -[[package]] -name = "aes-gcm" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df5f85a83a7d8b0442b6aa7b504b8212c1733da07b98aae43d4bc21b2cb3cdf6" -dependencies = [ - "aead 0.4.3", - "aes 0.7.5", - "cipher 0.3.0", - "ctr 0.8.0", - "ghash 0.4.4", - "subtle", -] - [[package]] name = "aes-gcm" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ - "aead 0.5.2", - "aes 0.8.3", + "aead", + "aes", "cipher 0.4.4", - "ctr 0.9.2", - "ghash 0.5.0", - "subtle", -] - -[[package]] -name = "aes-soft" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be14c7498ea50828a38d0e24a765ed2effe92a705885b57d029cd67d45744072" -dependencies = [ - "cipher 0.2.5", - "opaque-debug 0.3.0", -] - -[[package]] -name = "aesni" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea2e11f5e94c2f7d386164cc2aa1f97823fed6f259e486940a71c174dd01b0ce" -dependencies = [ - "cipher 0.2.5", - "opaque-debug 0.3.0", + "ctr", + "ghash", + "subtle 2.4.1", ] [[package]] name = "ahash" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom 0.2.11", + "getrandom 0.2.15", "once_cell", "version_check", ] [[package]] name = "ahash" -version = "0.8.6" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "getrandom 0.2.11", + "getrandom 0.2.15", "once_cell", "version_check", "zerocopy", @@ -173,9 +97,9 @@ 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", ] @@ -218,57 +142,58 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.4" +version = "0.6.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44" +checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", + "is_terminal_polyfill", "utf8parse", ] [[package]] name = "anstyle" -version = "1.0.4" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" +checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" [[package]] name = "anstyle-parse" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140" +checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.1" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628" +checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" dependencies = [ "anstyle", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "anyhow" -version = "1.0.75" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "approx" @@ -281,29 +206,158 @@ dependencies = [ [[package]] name = "aquamarine" -version = "0.3.3" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1da02abba9f9063d786eab1509833ebb2fac0f966862ca59439c76b9c566760" +checksum = "21cc1548309245035eb18aa7f0967da6bc65587005170c56e6ef2788a4cf3f4e" dependencies = [ "include_dir", "itertools 0.10.5", "proc-macro-error", "proc-macro2", + "quote", + "syn 2.0.66", +] + +[[package]] +name = "ark-bls12-377" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb00293ba84f51ce3bd026bd0de55899c4e68f0a39a5728cebae3a73ffdc0a4f" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-bls12-381" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c775f0d12169cba7aae4caeb547bb6a50781c7449a8aa53793827c9ec4abf488" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-serialize", + "ark-std", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", + "itertools 0.10.5", + "num-traits", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "derivative", + "digest 0.10.7", + "itertools 0.10.5", + "num-bigint", + "num-traits", + "paste", + "rustc_version", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ "quote", "syn 1.0.109", ] [[package]] -name = "arc-swap" -version = "1.6.0" +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand", +] + +[[package]] +name = "array-bytes" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bddcadddf5e9015d310179a59bb28c4d4b9920ad0f11e8e14dbadf654890c9a6" +checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" [[package]] name = "array-bytes" -version = "6.2.0" +version = "6.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de17a919934ad8c5cc99a1a74de4e2dab95d6121a8f27f94755ff525b630382c" +checksum = "5d5dde061bd34119e902bbb2d9b90c5692635cf59fb91d582c2b68043f1b8293" [[package]] name = "arrayref" @@ -320,41 +374,19 @@ dependencies = [ "nodrop", ] -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - [[package]] name = "arrayvec" version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" -[[package]] -name = "asn1-rs" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30ff05a702273012438132f449575dbc804e27b2f3cbe3069aa237d26c98fa33" -dependencies = [ - "asn1-rs-derive 0.1.0", - "asn1-rs-impl", - "displaydoc", - "nom", - "num-traits", - "rusticata-macros", - "thiserror", - "time", -] - [[package]] name = "asn1-rs" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" dependencies = [ - "asn1-rs-derive 0.4.0", + "asn1-rs-derive", "asn1-rs-impl", "displaydoc", "nom", @@ -364,18 +396,6 @@ dependencies = [ "time", ] -[[package]] -name = "asn1-rs-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db8b7511298d5b7784b40b092d9e9dcd3a627a5707e4b5e507931ab0d44eeebf" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "asn1-rs-derive" version = "0.4.0" @@ -385,7 +405,7 @@ dependencies = [ "proc-macro2", "quote", "syn 1.0.109", - "synstructure", + "synstructure 0.12.6", ] [[package]] @@ -406,28 +426,47 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" [[package]] -name = "asset-hub-kusama-runtime" -version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "asset-hub-rococo-emulated-chain" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "asset-hub-rococo-runtime", + "cumulus-primitives-core", + "emulated-integration-tests-common", + "frame-support", + "parachains-common", + "rococo-emulated-chain", + "sp-core", + "testnet-parachains-constants", +] + +[[package]] +name = "asset-hub-rococo-runtime" +version = "0.12.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "assets-common", + "bp-asset-hub-rococo", + "bp-asset-hub-westend", + "bp-bridge-hub-rococo", + "bp-bridge-hub-westend", "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", "cumulus-pallet-parachain-system", "cumulus-pallet-session-benchmarking", "cumulus-pallet-xcm", "cumulus-pallet-xcmp-queue", + "cumulus-primitives-aura", "cumulus-primitives-core", "cumulus-primitives-utility", "frame-benchmarking", "frame-executive", + "frame-metadata-hash-extension", "frame-support", "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal 0.4.1", - "kusama-runtime-constants", "log", "pallet-asset-conversion", "pallet-asset-conversion-tx-payment", @@ -436,6 +475,7 @@ dependencies = [ "pallet-authorship", "pallet-balances", "pallet-collator-selection", + "pallet-message-queue", "pallet-multisig", "pallet-nft-fractionalization", "pallet-nfts", @@ -450,18 +490,20 @@ dependencies = [ "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", + "pallet-xcm-bridge-hub-router", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", "polkadot-parachain-primitives", "polkadot-runtime-common", "primitive-types", + "rococo-runtime-constants", "scale-info", - "smallvec", + "snowbridge-router-primitives", "sp-api", "sp-block-builder", "sp-consensus-aura", "sp-core", + "sp-genesis-builder", "sp-inherents", "sp-offchain", "sp-runtime", @@ -476,70 +518,31 @@ dependencies = [ "staging-xcm-builder", "staging-xcm-executor", "substrate-wasm-builder", + "testnet-parachains-constants", ] [[package]] -name = "asset-hub-polkadot-runtime" -version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "asset-test-utils" +version = "8.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "assets-common", - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", "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", "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-asset-tx-payment", "pallet-assets", - "pallet-aura", - "pallet-authorship", "pallet-balances", "pallet-collator-selection", - "pallet-multisig", - "pallet-nfts", - "pallet-nfts-runtime-api", - "pallet-proxy", "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-uniques", - "pallet-utility", "pallet-xcm", - "pallet-xcm-benchmarks", + "pallet-xcm-bridge-hub-router", "parachains-common", + "parachains-runtimes-test-utils", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "polkadot-runtime-constants", - "scale-info", - "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-offchain", + "sp-io", "sp-runtime", - "sp-session", "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "sp-weights", "staging-parachain-info", "staging-xcm", "staging-xcm-builder", @@ -547,88 +550,16 @@ dependencies = [ "substrate-wasm-builder", ] -[[package]] -name = "asset-hub-westend-runtime" -version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "assets-common", - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "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", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-asset-conversion", - "pallet-asset-conversion-tx-payment", - "pallet-assets", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-multisig", - "pallet-nft-fractionalization", - "pallet-nfts", - "pallet-nfts-runtime-api", - "pallet-proxy", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-uniques", - "pallet-utility", - "pallet-xcm", - "pallet-xcm-benchmarks", - "parachains-common", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "primitive-types", - "scale-info", - "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", - "westend-runtime-constants", -] - [[package]] name = "assets-common" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "frame-support", "impl-trait-for-tuples", "log", "pallet-asset-conversion", - "pallet-asset-tx-payment", "pallet-xcm", "parachains-common", "parity-scale-codec", @@ -655,27 +586,26 @@ dependencies = [ [[package]] name = "async-channel" -version = "2.2.1" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "136d4d23bcc79e27423727b36823d86233aad06dfea531837b038394d11e9928" +checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a" dependencies = [ "concurrent-queue", - "event-listener 5.2.0", - "event-listener-strategy 0.5.1", + "event-listener-strategy", "futures-core", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", ] [[package]] name = "async-executor" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b10202063978b3351199d68f8b22c4e47e4b1b822f8d43fd862d5ea8c006b29a" +checksum = "c8828ec6e544c02b0d6691d21ed9f9218d0384a82542855073c2a3f58304aaf0" dependencies = [ "async-task", "concurrent-queue", - "fastrand 2.0.1", - "futures-lite 2.0.1", + "fastrand 2.1.0", + "futures-lite 2.3.0", "slab", ] @@ -713,22 +643,21 @@ dependencies = [ [[package]] name = "async-io" -version = "2.2.0" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9d5715c2d329bf1b4da8d60455b99b187f27ba726df2883799af9af60997" +checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964" dependencies = [ - "async-lock 3.1.1", + "async-lock 3.4.0", "cfg-if", "concurrent-queue", "futures-io", - "futures-lite 2.0.1", + "futures-lite 2.3.0", "parking", - "polling 3.3.0", - "rustix 0.38.25", + "polling 3.7.2", + "rustix 0.38.34", "slab", "tracing", - "waker-fn", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -742,13 +671,13 @@ dependencies = [ [[package]] name = "async-lock" -version = "3.1.1" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "655b9c7fe787d3b25cc0f804a1a8401790f0c5bc395beb5a64dc77d8de079105" +checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" dependencies = [ - "event-listener 3.1.0", - "event-listener-strategy 0.3.0", - "pin-project-lite 0.2.13", + "event-listener 5.3.1", + "event-listener-strategy", + "pin-project-lite 0.2.14", ] [[package]] @@ -775,54 +704,43 @@ dependencies = [ "cfg-if", "event-listener 3.1.0", "futures-lite 1.13.0", - "rustix 0.38.25", + "rustix 0.38.34", "windows-sys 0.48.0", ] -[[package]] -name = "async-recursion" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd55a5ba1179988837d24ab4c7cc8ed6efdeff578ede0416b4225a5fca35bd0" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "async-signal" -version = "0.2.5" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5" +checksum = "794f185324c2f00e771cd9f1ae8b5ac68be2ca7abb129a87afd6e86d228bc54d" dependencies = [ - "async-io 2.2.0", - "async-lock 2.8.0", + "async-io 2.3.3", + "async-lock 3.4.0", "atomic-waker", "cfg-if", "futures-core", "futures-io", - "rustix 0.38.25", + "rustix 0.38.34", "signal-hook-registry", "slab", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "async-task" -version = "4.7.0" +version = "4.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbb36e985947064623dbd357f727af08ffd077f93d696782f3c56365fa2e2799" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" [[package]] name = "async-trait" -version = "0.1.74" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -835,7 +753,7 @@ dependencies = [ "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", ] [[package]] @@ -872,35 +790,24 @@ dependencies = [ "sp-weights", ] -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", -] - [[package]] name = "autocfg" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" dependencies = [ - "addr2line 0.21.0", + "addr2line 0.22.0", "cc", "cfg-if", "libc", "miniz_oxide", - "object 0.32.1", + "object 0.36.0", "rustc-demangle", ] @@ -910,12 +817,6 @@ version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cbbc9d0964165b47557570cce6c952866c2678457aca742aafc9fb771d30270" -[[package]] -name = "base16ct" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" - [[package]] name = "base16ct" version = "0.2.0" @@ -936,9 +837,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.5" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "base64ct" @@ -957,8 +858,8 @@ dependencies = [ [[package]] name = "binary-merkle-tree" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "hash-db", "log", @@ -985,13 +886,13 @@ dependencies = [ "lazy_static", "lazycell", "peeking_take_while", - "prettyplease 0.2.15", + "prettyplease 0.2.20", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -1001,6 +902,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f2635620bf0b9d4576eb7bb9a38a55df78bd1205d26fa994b25911a69f212f" dependencies = [ "bitcoin_hashes", + "rand", + "rand_core 0.6.4", + "serde", + "unicode-normalization", ] [[package]] @@ -1017,9 +922,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" +checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "bitvec" @@ -1029,10 +934,23 @@ checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" dependencies = [ "funty", "radium", + "serde", "tap", "wyz", ] +[[package]] +name = "blake2" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94cb07b0da6a73955f8fb85d24c466778e70cda767a568229b104f0264089330" +dependencies = [ + "byte-tools", + "crypto-mac 0.7.0", + "digest 0.8.1", + "opaque-debug 0.2.3", +] + [[package]] name = "blake2" version = "0.10.6" @@ -1076,9 +994,9 @@ dependencies = [ [[package]] name = "blake3" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0231f06152bf547e9c2b5194f247cd97aacf6dcd8b15d8e5ec0663f64580da87" +checksum = "30cca6d3674597c30ddf2c587bf8d9d65c9a84d2326d941cc79c9842dfe0ef52" dependencies = [ "arrayref", "arrayvec 0.7.4", @@ -1087,18 +1005,6 @@ dependencies = [ "constant_time_eq 0.3.0", ] -[[package]] -name = "block-buffer" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" -dependencies = [ - "block-padding 0.1.5", - "byte-tools", - "byteorder", - "generic-array 0.12.4", -] - [[package]] name = "block-buffer" version = "0.9.0" @@ -1117,52 +1023,24 @@ dependencies = [ "generic-array 0.14.7", ] -[[package]] -name = "block-modes" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57a0e8073e8baa88212fb5823574c02ebccb395136ba9a164ab89379ec6072f0" -dependencies = [ - "block-padding 0.2.1", - "cipher 0.2.5", -] - -[[package]] -name = "block-padding" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" -dependencies = [ - "byte-tools", -] - -[[package]] -name = "block-padding" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" - [[package]] name = "blocking" -version = "1.5.1" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" +checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea" dependencies = [ - "async-channel 2.2.1", - "async-lock 3.1.1", + "async-channel 2.3.1", "async-task", - "fastrand 2.0.1", "futures-io", - "futures-lite 2.0.1", + "futures-lite 2.3.0", "piper", - "tracing", ] [[package]] name = "bounded-collections" -version = "0.1.9" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca548b6163b872067dc5eb82fd130c56881435e30367d2073594a3d9744120dd" +checksum = "d32385ecb91a31bddaf908e8dcf4a15aef1bcd3913cc03ebfad02ff6d568abc1" dependencies = [ "log", "parity-scale-codec", @@ -1179,10 +1057,32 @@ dependencies = [ "thiserror", ] +[[package]] +name = "bp-asset-hub-rococo" +version = "0.5.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "bp-xcm-bridge-hub-router", + "frame-support", + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "bp-asset-hub-westend" +version = "0.4.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "bp-xcm-bridge-hub-router", + "frame-support", + "parity-scale-codec", + "scale-info", +] + [[package]] name = "bp-bridge-hub-cumulus" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-messages", "bp-polkadot-core", @@ -1196,8 +1096,8 @@ dependencies = [ [[package]] name = "bp-bridge-hub-rococo" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", @@ -1209,9 +1109,9 @@ dependencies = [ ] [[package]] -name = "bp-bridge-hub-wococo" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "bp-bridge-hub-westend" +version = "0.4.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", @@ -1224,8 +1124,8 @@ dependencies = [ [[package]] name = "bp-header-chain" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-runtime", "finality-grandpa", @@ -1241,8 +1141,8 @@ dependencies = [ [[package]] name = "bp-messages" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-header-chain", "bp-runtime", @@ -1256,8 +1156,8 @@ dependencies = [ [[package]] name = "bp-parachains" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1273,8 +1173,8 @@ dependencies = [ [[package]] name = "bp-polkadot-core" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-messages", "bp-runtime", @@ -1291,8 +1191,8 @@ dependencies = [ [[package]] name = "bp-relayers" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-messages", "bp-runtime", @@ -1303,23 +1203,10 @@ dependencies = [ "sp-std", ] -[[package]] -name = "bp-rococo" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "bp-header-chain", - "bp-polkadot-core", - "bp-runtime", - "frame-support", - "sp-api", - "sp-std", -] - [[package]] name = "bp-runtime" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -1341,14 +1228,14 @@ dependencies = [ [[package]] name = "bp-test-utils" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-header-chain", "bp-parachains", "bp-polkadot-core", "bp-runtime", - "ed25519-dalek 1.0.1", + "ed25519-dalek", "finality-grandpa", "parity-scale-codec", "sp-application-crypto", @@ -1360,23 +1247,17 @@ dependencies = [ ] [[package]] -name = "bp-wococo" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "bp-xcm-bridge-hub" +version = "0.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "bp-header-chain", - "bp-polkadot-core", - "bp-rococo", - "bp-runtime", - "frame-support", - "sp-api", "sp-std", ] [[package]] name = "bp-xcm-bridge-hub-router" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.7.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -1385,229 +1266,26 @@ dependencies = [ ] [[package]] -name = "bridge-hub-kusama-runtime" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "bridge-runtime-common" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "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", + "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", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "kusama-runtime-constants", + "hash-db", "log", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-multisig", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", - "pallet-xcm-benchmarks", - "parachains-common", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "scale-info", - "serde", - "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", -] - -[[package]] -name = "bridge-hub-polkadot-runtime" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "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", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-multisig", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", - "pallet-xcm-benchmarks", - "parachains-common", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "polkadot-runtime-constants", - "scale-info", - "serde", - "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", -] - -[[package]] -name = "bridge-hub-rococo-runtime" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "bp-bridge-hub-rococo", - "bp-bridge-hub-wococo", - "bp-header-chain", - "bp-messages", - "bp-parachains", - "bp-polkadot-core", - "bp-relayers", - "bp-rococo", - "bp-runtime", - "bp-wococo", - "bridge-runtime-common", - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "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", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-bridge-grandpa", - "pallet-bridge-messages", - "pallet-bridge-parachains", - "pallet-bridge-relayers", - "pallet-collator-selection", - "pallet-multisig", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", - "pallet-xcm-benchmarks", - "parachains-common", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "rococo-runtime-constants", - "scale-info", - "serde", - "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", -] - -[[package]] -name = "bridge-runtime-common" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "bp-header-chain", - "bp-messages", - "bp-parachains", - "bp-polkadot-core", - "bp-relayers", - "bp-runtime", - "bp-xcm-bridge-hub-router", - "frame-support", - "frame-system", - "hash-db", - "log", - "pallet-bridge-grandpa", - "pallet-bridge-messages", - "pallet-bridge-parachains", - "pallet-bridge-relayers", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", "pallet-transaction-payment", "pallet-utility", "parity-scale-codec", @@ -1637,16 +1315,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "bstr" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c" -dependencies = [ - "memchr", - "serde", -] - [[package]] name = "build-helper" version = "0.1.1" @@ -1658,9 +1326,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.14.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byte-slice-cast" @@ -1676,9 +1344,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "bytemuck" -version = "1.14.0" +version = "1.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6" +checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e" [[package]] name = "byteorder" @@ -1688,9 +1356,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "bzip2-sys" @@ -1703,20 +1371,30 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "c2-chacha" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27dae93fe7b1e0424dc57179ac396908c26b035a87234809f5c4dfd1b47dc80" +dependencies = [ + "cipher 0.2.5", + "ppv-lite86", +] + [[package]] name = "camino" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" +checksum = "e0ec6b951b160caa93cc0c7b209e5a3bff7aae9062213451ac99493cd844c239" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.5" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e34637b3140142bdf929fb439e8aa4ebad7651ebf7b1080b3930aa16ac1459ff" +checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" dependencies = [ "serde", ] @@ -1729,7 +1407,7 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.20", + "semver 1.0.23", "serde", "serde_json", "thiserror", @@ -1737,23 +1415,13 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.83" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +checksum = "96c51067fd44124faa7f870b4b1c969379ad32b2ba805aa959430ceaa384f695" dependencies = [ "jobserver", "libc", -] - -[[package]] -name = "ccm" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aca1a8fbc20b50ac9673ff014abfb2b5f4085ee1a850d408f14a159c5853ac7" -dependencies = [ - "aead 0.3.2", - "cipher 0.2.5", - "subtle", + "once_cell", ] [[package]] @@ -1767,9 +1435,9 @@ dependencies = [ [[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", ] @@ -1786,6 +1454,16 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" +[[package]] +name = "chacha" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddf3c081b5fba1e5615640aae998e0fbd10c24cbd897ee39ed754a77601a4862" +dependencies = [ + "byteorder", + "keystream", +] + [[package]] name = "chacha20" version = "0.9.1" @@ -1803,7 +1481,7 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" dependencies = [ - "aead 0.5.2", + "aead", "chacha20", "cipher 0.4.4", "poly1305", @@ -1812,16 +1490,16 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.31" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.48.5", + "windows-targets 0.52.5", ] [[package]] @@ -1832,7 +1510,7 @@ checksum = "b9b68e3193982cd54187d71afdb2a271ad4cf8af157858e9cb911b91321de143" dependencies = [ "core2", "multibase", - "multihash", + "multihash 0.17.0", "serde", "unsigned-varint", ] @@ -1846,15 +1524,6 @@ dependencies = [ "generic-array 0.14.7", ] -[[package]] -name = "cipher" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" -dependencies = [ - "generic-array 0.14.7", -] - [[package]] name = "cipher" version = "0.4.4" @@ -1877,9 +1546,9 @@ dependencies = [ [[package]] name = "clang-sys" -version = "1.6.1" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" dependencies = [ "glob", "libc", @@ -1888,9 +1557,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.8" +version = "4.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2275f18819641850fa26c89acc84d465c1bf91ce57bc2748b28c420473352f64" +checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f" dependencies = [ "clap_builder", "clap_derive", @@ -1898,43 +1567,43 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.8" +version = "4.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cdf1b148b25c1e1f7a42225e30a0d99a615cd4637eae7365548dd4529b95bc" +checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f" dependencies = [ "anstream", "anstyle", "clap_lex", "strsim", + "terminal_size", ] [[package]] name = "clap_derive" -version = "4.4.7" +version = "4.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" +checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "clap_lex" -version = "0.6.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" +checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" [[package]] name = "coarsetime" -version = "0.1.33" +version = "0.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71367d3385c716342014ad17e3d19f7788ae514885a1f4c24f500260fb365e1a" +checksum = "13b3839cf01bb7960114be3ccf2340f541b6d0c81f8690b007b2b39f750f7e5d" dependencies = [ "libc", - "once_cell", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasix", "wasm-bindgen", ] @@ -1945,93 +1614,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" dependencies = [ "termcolor", - "unicode-width", -] - -[[package]] -name = "collectives-polkadot-runtime" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "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", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-alliance", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-collective", - "pallet-core-fellowship", - "pallet-multisig", - "pallet-preimage", - "pallet-proxy", - "pallet-ranked-collective", - "pallet-referenda", - "pallet-salary", - "pallet-scheduler", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", - "parachains-common", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-common", - "polkadot-runtime-constants", - "scale-info", - "smallvec", - "sp-api", - "sp-arithmetic", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", + "unicode-width", ] [[package]] name = "colorchoice" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" +checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" [[package]] name = "comfy-table" -version = "7.1.0" +version = "7.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c64043d6c7b7a4c58e39e7efccfdea7b93d885a795d0c054a69dbbf4dd52686" +checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7" dependencies = [ - "strum 0.25.0", - "strum_macros 0.25.3", + "strum 0.26.2", + "strum_macros 0.26.4", "unicode-width", ] @@ -2043,37 +1642,37 @@ checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" [[package]] name = "concurrent-queue" -version = "2.3.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f057a694a54f12365049b0958a1685bb52d567f5593b355fbf685838e873d400" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" dependencies = [ "crossbeam-utils", ] [[package]] name = "console" -version = "0.15.7" +version = "0.15.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8" +checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" dependencies = [ "encode_unicode", "lazy_static", "libc", "unicode-width", - "windows-sys 0.45.0", + "windows-sys 0.52.0", ] [[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", ] @@ -2084,7 +1683,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom 0.2.11", + "getrandom 0.2.15", "once_cell", "tiny-keccak", ] @@ -2101,6 +1700,12 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" +[[package]] +name = "constcat" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd7e35aee659887cbfb97aaf227ac12cad1a9d7c71e55ff3376839ed4e282d08" + [[package]] name = "convert_case" version = "0.4.0" @@ -2109,9 +1714,9 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "core-foundation" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ "core-foundation-sys", "libc", @@ -2119,9 +1724,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.4" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "core2" @@ -2153,9 +1758,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" +checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ "libc", ] @@ -2258,72 +1863,48 @@ dependencies = [ "wasmtime-types", ] -[[package]] -name = "crc" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86ec7a15cbe22e59248fc7eadb1907dab5ba09372595da4d73dd805ed4417dfe" -dependencies = [ - "crc-catalog", -] - -[[package]] -name = "crc-catalog" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -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.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" dependencies = [ - "cfg-if", "crossbeam-epoch", "crossbeam-utils", ] [[package]] name = "crossbeam-epoch" -version = "0.9.15" +version = "0.9.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" dependencies = [ - "autocfg", - "cfg-if", "crossbeam-utils", - "memoffset 0.9.0", - "scopeguard", ] [[package]] name = "crossbeam-queue" -version = "0.3.8" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add" +checksum = "df0346b5d5e76ac2fe4e327c5fd1118d6be7c51dfb18f9b7922923f287471e35" dependencies = [ - "cfg-if", "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.16" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" -dependencies = [ - "cfg-if", -] +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crunchy" @@ -2331,18 +1912,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" -[[package]] -name = "crypto-bigint" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" -dependencies = [ - "generic-array 0.14.7", - "rand_core 0.6.4", - "subtle", - "zeroize", -] - [[package]] name = "crypto-bigint" version = "0.5.5" @@ -2351,7 +1920,7 @@ checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", "rand_core 0.6.4", - "subtle", + "subtle 2.4.1", "zeroize", ] @@ -2368,31 +1937,32 @@ dependencies = [ [[package]] name = "crypto-mac" -version = "0.8.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +checksum = "4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5" dependencies = [ - "generic-array 0.14.7", - "subtle", + "generic-array 0.12.4", + "subtle 1.0.0", ] [[package]] name = "crypto-mac" -version = "0.11.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ "generic-array 0.14.7", - "subtle", + "subtle 2.4.1", ] [[package]] -name = "ctr" -version = "0.8.0" +name = "crypto-mac" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" +checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" dependencies = [ - "cipher 0.3.0", + "generic-array 0.14.7", + "subtle 2.4.1", ] [[package]] @@ -2425,8 +1995,8 @@ dependencies = [ [[package]] name = "cumulus-client-cli" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "clap", "parity-scale-codec", @@ -2434,6 +2004,7 @@ dependencies = [ "sc-cli", "sc-client-api", "sc-service", + "sp-blockchain", "sp-core", "sp-runtime", "url", @@ -2441,15 +2012,15 @@ dependencies = [ [[package]] name = "cumulus-client-collator" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", "cumulus-primitives-core", "futures", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", @@ -2464,16 +2035,16 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-aura" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-client-collator", "cumulus-client-consensus-common", "cumulus-client-consensus-proposer", + "cumulus-client-parachain-inherent", "cumulus-primitives-aura", "cumulus-primitives-core", - "cumulus-primitives-parachain-inherent", "cumulus-relay-chain-interface", "futures", "parity-scale-codec", @@ -2506,8 +2077,8 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-common" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-client-pov-recovery", @@ -2535,8 +2106,8 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-proposer" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "anyhow", "async-trait", @@ -2550,15 +2121,15 @@ dependencies = [ [[package]] name = "cumulus-client-network" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-relay-chain-interface", "futures", "futures-timer", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "polkadot-node-primitives", "polkadot-parachain-primitives", "polkadot-primitives", @@ -2572,9 +2143,33 @@ dependencies = [ ] [[package]] -name = "cumulus-client-pov-recovery" +name = "cumulus-client-parachain-inherent" version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "async-trait", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-relay-chain-interface", + "cumulus-test-relay-sproof-builder", + "parity-scale-codec", + "sc-client-api", + "scale-info", + "sp-api", + "sp-crypto-hashing", + "sp-inherents", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-storage", + "sp-trie", + "tracing", +] + +[[package]] +name = "cumulus-client-pov-recovery" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2586,7 +2181,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-overseer", "polkadot-primitives", - "rand 0.8.5", + "rand", "sc-client-api", "sc-consensus", "sp-consensus", @@ -2597,8 +2192,8 @@ dependencies = [ [[package]] name = "cumulus-client-service" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-client-cli", "cumulus-client-collator", @@ -2606,6 +2201,7 @@ dependencies = [ "cumulus-client-network", "cumulus-client-pov-recovery", "cumulus-primitives-core", + "cumulus-primitives-proof-size-hostfunction", "cumulus-relay-chain-inprocess-interface", "cumulus-relay-chain-interface", "cumulus-relay-chain-minimal-node", @@ -2632,8 +2228,8 @@ dependencies = [ [[package]] name = "cumulus-pallet-aura-ext" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-pallet-parachain-system", "frame-support", @@ -2650,10 +2246,11 @@ dependencies = [ [[package]] name = "cumulus-pallet-dmp-queue" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", + "frame-benchmarking", "frame-support", "frame-system", "log", @@ -2667,20 +2264,25 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", + "cumulus-primitives-proof-size-hostfunction", "environmental", + "frame-benchmarking", "frame-support", "frame-system", "impl-trait-for-tuples", "log", + "pallet-message-queue", "parity-scale-codec", "polkadot-parachain-primitives", + "polkadot-runtime-common", + "polkadot-runtime-parachains", "scale-info", "sp-core", "sp-externalities", @@ -2697,19 +2299,19 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system-proc-macro" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "cumulus-pallet-session-benchmarking" -version = "4.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "10.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -2722,8 +2324,8 @@ dependencies = [ [[package]] name = "cumulus-pallet-xcm" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -2738,18 +2340,22 @@ dependencies = [ [[package]] name = "cumulus-pallet-xcmp-queue" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "bounded-collections", + "bp-xcm-bridge-hub-router", "cumulus-primitives-core", "frame-benchmarking", "frame-support", "frame-system", "log", + "pallet-message-queue", "parity-scale-codec", "polkadot-runtime-common", - "rand_chacha 0.3.1", + "polkadot-runtime-parachains", "scale-info", + "sp-core", "sp-io", "sp-runtime", "sp-std", @@ -2759,8 +2365,8 @@ dependencies = [ [[package]] name = "cumulus-primitives-aura" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2773,8 +2379,8 @@ dependencies = [ [[package]] name = "cumulus-primitives-core" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2790,31 +2396,33 @@ dependencies = [ [[package]] name = "cumulus-primitives-parachain-inherent" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-primitives-core", - "cumulus-relay-chain-interface", - "cumulus-test-relay-sproof-builder", "parity-scale-codec", - "sc-client-api", "scale-info", - "sp-api", "sp-core", "sp-inherents", - "sp-runtime", - "sp-state-machine", "sp-std", - "sp-storage", "sp-trie", - "tracing", +] + +[[package]] +name = "cumulus-primitives-proof-size-hostfunction" +version = "0.3.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "sp-externalities", + "sp-runtime-interface", + "sp-trie", ] [[package]] name = "cumulus-primitives-timestamp" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "futures", @@ -2826,14 +2434,16 @@ dependencies = [ [[package]] name = "cumulus-primitives-utility" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "frame-support", "log", + "pallet-asset-conversion", "parity-scale-codec", "polkadot-runtime-common", + "polkadot-runtime-parachains", "sp-io", "sp-runtime", "sp-std", @@ -2844,8 +2454,8 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-inprocess-interface" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2868,8 +2478,8 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-interface" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2886,43 +2496,49 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-minimal-node" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "async-trait", "cumulus-primitives-core", "cumulus-relay-chain-interface", "cumulus-relay-chain-rpc-interface", "futures", + "parking_lot 0.12.3", "polkadot-availability-recovery", "polkadot-collator-protocol", "polkadot-core-primitives", "polkadot-network-bridge", "polkadot-node-collation-generation", + "polkadot-node-core-chain-api", + "polkadot-node-core-prospective-parachains", "polkadot-node-core-runtime-api", "polkadot-node-network-protocol", "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", "sc-authority-discovery", + "sc-client-api", "sc-network", "sc-network-common", "sc-service", "sc-tracing", "sc-utils", - "schnellru", "sp-api", + "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-runtime", + "substrate-prometheus-endpoint", + "tokio", "tracing", ] [[package]] name = "cumulus-relay-chain-rpc-interface" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2934,7 +2550,7 @@ dependencies = [ "parity-scale-codec", "pin-project", "polkadot-overseer", - "rand 0.8.5", + "rand", "sc-client-api", "sc-rpc-api", "sc-service", @@ -2950,6 +2566,7 @@ dependencies = [ "sp-runtime", "sp-state-machine", "sp-storage", + "sp-version", "thiserror", "tokio", "tokio-util", @@ -2959,8 +2576,8 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", @@ -2971,19 +2588,6 @@ dependencies = [ "sp-trie", ] -[[package]] -name = "curve25519-dalek" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" -dependencies = [ - "byteorder", - "digest 0.8.1", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "3.2.0" @@ -2993,24 +2597,23 @@ dependencies = [ "byteorder", "digest 0.9.0", "rand_core 0.5.1", - "subtle", + "subtle 2.4.1", "zeroize", ] [[package]] name = "curve25519-dalek" -version = "4.1.1" +version = "4.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89b8c6a2e4b1f45971ad09761aafb85514a84744b67a95e32c3cc1352d1f65c" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest 0.10.7", "fiat-crypto", - "platforms", "rustc_version", - "subtle", + "subtle 2.4.1", "zeroize", ] @@ -3022,7 +2625,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -3040,9 +2643,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.110" +version = "1.0.124" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7129e341034ecb940c9072817cd9007974ea696844fc4dd582dc1653a7fbe2e8" +checksum = "273dcfd3acd4e1e276af13ed2a43eea7001318823e7a726a6b3ed39b4acc0b82" dependencies = [ "cc", "cxxbridge-flags", @@ -3052,9 +2655,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.110" +version = "1.0.124" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2a24f3f5f8eed71936f21e570436f024f5c2e25628f7496aa7ccd03b90109d5" +checksum = "d8b2766fbd92be34e9ed143898fce6c572dc009de39506ed6903e5a05b68914e" dependencies = [ "cc", "codespan-reporting", @@ -3062,72 +2665,37 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "cxxbridge-flags" -version = "1.0.110" +version = "1.0.124" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06fdd177fc61050d63f67f5bd6351fac6ab5526694ea8e359cd9cd3b75857f44" +checksum = "839fcd5e43464614ffaa989eaf1c139ef1f0c51672a1ed08023307fa1b909ccd" [[package]] name = "cxxbridge-macro" -version = "1.0.110" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "587663dd5fb3d10932c8aecfe7c844db1bcf0aee93eeab08fac13dc1212c2e7f" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - -[[package]] -name = "darling" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.14.4" +version = "1.0.124" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" +checksum = "4b2c1c1776b986979be68bb2285da855f8d8a35851a769fca8740df7c3d07877" dependencies = [ - "fnv", - "ident_case", "proc-macro2", "quote", - "strsim", - "syn 1.0.109", -] - -[[package]] -name = "darling_macro" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" -dependencies = [ - "darling_core", - "quote", - "syn 1.0.109", + "syn 2.0.66", ] [[package]] name = "data-encoding" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" +checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" [[package]] name = "data-encoding-macro" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20c01c06f5f429efdf2bae21eb67c28b3df3cf85b7dd2d8ef09c0838dac5d33e" +checksum = "f1559b6cba622276d6d63706db152618eeb15b89b3e4041446b05876e352e639" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -3135,9 +2703,9 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0047d07f2c89b17dd631c80450d69841a6b5d7fb17278cbc43d7e4cfcf2576f3" +checksum = "332d754c0af53bc87c108fed664d121ecf59207ec4196041f04d6ab9002ad33f" dependencies = [ "data-encoding", "syn 1.0.109", @@ -3169,46 +2737,21 @@ dependencies = [ [[package]] name = "der" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" -dependencies = [ - "const-oid", - "pem-rfc7468", - "zeroize", -] - -[[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", ] -[[package]] -name = "der-parser" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe398ac75057914d7d07307bf67dc7f3f574a26783b4fc7805a20ffa9f506e82" -dependencies = [ - "asn1-rs 0.3.1", - "displaydoc", - "nom", - "num-bigint", - "num-traits", - "rusticata-macros", -] - [[package]] name = "der-parser" version = "8.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" dependencies = [ - "asn1-rs 0.5.2", + "asn1-rs", "displaydoc", "nom", "num-bigint", @@ -3218,9 +2761,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.9" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f32d04922c60427da6f9fef14d042d9edddef64cb9d4ce0d64d0685fbeb1fd3" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" dependencies = [ "powerfmt", ] @@ -3255,51 +2798,20 @@ checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", -] - -[[package]] -name = "derive_builder" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07adf7be193b71cc36b193d0f5fe60b918a3a9db4dad0449f57bcfd519704a3" -dependencies = [ - "derive_builder_macro", -] - -[[package]] -name = "derive_builder_core" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f91d4cfa921f1c05904dc3c57b4a32c38aed3340cce209f3a6fd1478babafc4" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "derive_builder_macro" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f0314b72bed045f3a68671b3c86328386762c93f82d98c65c3cb5e5f573dd68" -dependencies = [ - "derive_builder_core", - "syn 1.0.109", + "syn 2.0.66", ] [[package]] name = "derive_more" -version = "0.99.17" +version = "0.99.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" dependencies = [ "convert_case", "proc-macro2", "quote", "rustc_version", - "syn 1.0.109", + "syn 2.0.66", ] [[package]] @@ -3307,7 +2819,7 @@ name = "did" version = "1.14.0-dev" dependencies = [ "ctype", - "env_logger 0.10.1", + "env_logger 0.10.2", "fluent-uri", "frame-benchmarking", "frame-support", @@ -3359,7 +2871,7 @@ dependencies = [ "block-buffer 0.10.4", "const-oid", "crypto-common", - "subtle", + "subtle 2.4.1", ] [[package]] @@ -3402,6 +2914,7 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde", + "serde_json", "sp-api", "sp-block-builder", "sp-blockchain", @@ -3508,6 +3021,7 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde", + "serde_json", "sp-api", "sp-block-builder", "sp-blockchain", @@ -3575,9 +3089,9 @@ dependencies = [ [[package]] name = "directories" -version = "4.0.1" +version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210" +checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35" dependencies = [ "dirs-sys", ] @@ -3594,13 +3108,14 @@ dependencies = [ [[package]] name = "dirs-sys" -version = "0.3.7" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" dependencies = [ "libc", + "option-ext", "redox_users", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -3622,7 +3137,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -3646,9 +3161,9 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.39", + "syn 2.0.66", "termcolor", - "toml 0.8.8", + "toml 0.8.14", "walkdir", ] @@ -3693,21 +3208,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" - -[[package]] -name = "ecdsa" -version = "0.14.8" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" -dependencies = [ - "der 0.6.1", - "elliptic-curve 0.12.3", - "rfc6979 0.3.1", - "signature 1.6.4", -] +checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "ecdsa" @@ -3715,21 +3218,12 @@ version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ - "der 0.7.8", + "der", "digest 0.10.7", - "elliptic-curve 0.13.8", - "rfc6979 0.4.0", - "signature 2.2.0", - "spki 0.7.2", -] - -[[package]] -name = "ed25519" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" -dependencies = [ - "signature 1.6.4", + "elliptic-curve", + "rfc6979", + "signature", + "spki", ] [[package]] @@ -3738,36 +3232,22 @@ version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ - "pkcs8 0.10.2", - "signature 2.2.0", -] - -[[package]] -name = "ed25519-dalek" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" -dependencies = [ - "curve25519-dalek 3.2.0", - "ed25519 1.5.3", - "rand 0.7.3", - "serde", - "sha2 0.9.9", - "zeroize", + "pkcs8", + "signature", ] [[package]] name = "ed25519-dalek" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f628eaec48bfd21b865dc2950cfa014450c01d2fa2b69a86c2fd5844ec523c0" +checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ - "curve25519-dalek 4.1.1", - "ed25519 2.2.3", + "curve25519-dalek 4.1.3", + "ed25519", "rand_core 0.6.4", "serde", "sha2 0.10.8", - "subtle", + "subtle 2.4.1", "zeroize", ] @@ -3791,9 +3271,9 @@ version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ - "curve25519-dalek 4.1.1", - "ed25519 2.2.3", - "hashbrown 0.14.2", + "curve25519-dalek 4.1.3", + "ed25519", + "hashbrown 0.14.5", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -3802,49 +3282,59 @@ dependencies = [ [[package]] name = "either" -version = "1.9.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" [[package]] name = "elliptic-curve" -version = "0.12.3" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ - "base16ct 0.1.1", - "crypto-bigint 0.4.9", - "der 0.6.1", + "base16ct", + "crypto-bigint", "digest 0.10.7", - "ff 0.12.1", + "ff", "generic-array 0.14.7", - "group 0.12.1", - "hkdf", - "pem-rfc7468", - "pkcs8 0.9.0", + "group", + "pkcs8", "rand_core 0.6.4", - "sec1 0.3.0", - "subtle", + "sec1", + "subtle 2.4.1", "zeroize", ] [[package]] -name = "elliptic-curve" -version = "0.13.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +name = "emulated-integration-tests-common" +version = "4.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "base16ct 0.2.0", - "crypto-bigint 0.5.5", - "digest 0.10.7", - "ff 0.13.0", - "generic-array 0.14.7", - "group 0.13.0", - "pkcs8 0.10.2", - "rand_core 0.6.4", - "sec1 0.7.3", - "subtle", - "zeroize", + "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", + "parity-scale-codec", + "paste", + "polkadot-primitives", + "polkadot-runtime-parachains", + "polkadot-service", + "sc-consensus-grandpa", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-core", + "sp-runtime", + "staging-xcm", + "xcm-emulator", ] [[package]] @@ -3859,7 +3349,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9720bba047d567ffc8a3cba48bf19126600e249ab7f128e9233e6376976a116" dependencies = [ - "heck", + "heck 0.4.1", "proc-macro2", "quote", "syn 1.0.109", @@ -3867,73 +3357,69 @@ dependencies = [ [[package]] name = "enum-iterator" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "600536cfe9e2da0820aa498e570f6b2b9223eec3ce2f835c8ae4861304fa4794" +checksum = "c280b9e6b3ae19e152d8e31cf47f18389781e119d4013a2a2bb0180e5facc635" dependencies = [ "enum-iterator-derive", ] [[package]] name = "enum-iterator-derive" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03cdc46ec28bd728e67540c528013c6a10eb69a02eb31078a1bda695438cbfb8" +checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "enumflags2" -version = "0.7.8" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5998b4f30320c9d93aed72f63af821bfdac50465b75428fce77b48ec482c3939" +checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d" dependencies = [ "enumflags2_derive", ] [[package]] name = "enumflags2_derive" -version = "0.7.8" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246" +checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "enumn" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" +checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] -name = "env_logger" -version = "0.9.3" +name = "env_filter" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea" dependencies = [ - "atty", - "humantime", "log", - "regex", - "termcolor", ] [[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", @@ -3942,6 +3428,18 @@ dependencies = [ "termcolor", ] +[[package]] +name = "env_logger" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b35839ba51819680ba087cd351788c9a3c476841207e0b8cee0b04722343b9" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "log", +] + [[package]] name = "environmental" version = "1.1.4" @@ -3956,12 +3454,22 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.7" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", +] + +[[package]] +name = "ethabi-decode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09d398648d65820a727d6a81e58b962f874473396a047e4c30bafe3240953417" +dependencies = [ + "ethereum-types", + "tiny-keccak", ] [[package]] @@ -3972,8 +3480,10 @@ checksum = "c22d4b5885b6aa2fe5e8b9329fb8d232bf739e434e6b87347c63bdd00c120f60" dependencies = [ "crunchy", "fixed-hash", + "impl-codec", "impl-rlp", "impl-serde", + "scale-info", "tiny-keccak", ] @@ -3985,9 +3495,11 @@ checksum = "02d215cbf040552efcbe99a38372fe80ab9d00268e20012b79fcd0f073edd8ee" dependencies = [ "ethbloom", "fixed-hash", + "impl-codec", "impl-rlp", "impl-serde", "primitive-types", + "scale-info", "uint", ] @@ -4005,38 +3517,28 @@ checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", ] [[package]] name = "event-listener" -version = "5.2.0" +version = "5.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b5fb89194fa3cad959b833185b3063ba881dbfc7030680b314250779fb4cc91" +checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.13", -] - -[[package]] -name = "event-listener-strategy" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96b852f1345da36d551b9473fa1e2b1eb5c5195585c6c018118bc92a8d91160" -dependencies = [ - "event-listener 3.1.0", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", ] [[package]] name = "event-listener-strategy" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "332f51cb23d20b0de8458b86580878211da09bcd4503cb579c225b3d124cabb3" +checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" dependencies = [ - "event-listener 5.2.0", - "pin-project-lite 0.2.13", + "event-listener 5.3.1", + "pin-project-lite 0.2.14", ] [[package]] @@ -4062,35 +3564,19 @@ dependencies = [ [[package]] name = "expander" -version = "0.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3774182a5df13c3d1690311ad32fbe913feef26baba609fa2dd5f72042bd2ab6" -dependencies = [ - "blake2", - "fs-err", - "proc-macro2", - "quote", -] - -[[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", + "blake2 0.10.6", + "file-guard", "fs-err", + "prettyplease 0.2.20", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] -[[package]] -name = "fake-simd" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" - [[package]] name = "fallible-iterator" version = "0.2.0" @@ -4108,9 +3594,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fatality" @@ -4130,7 +3616,7 @@ checksum = "f5aa1e3ae159e592ad222dc90c5acbad632b527779ba88486abe92782ab268bd" dependencies = [ "expander 0.0.4", "indexmap 1.9.3", - "proc-macro-crate", + "proc-macro-crate 1.1.3", "proc-macro2", "quote", "syn 1.0.109", @@ -4139,21 +3625,12 @@ dependencies = [ [[package]] name = "fdlimit" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c4c9e43643f5a3be4ca5b67d26b98031ff9db6806c3440ae32e02e3ceac3f1b" +checksum = "e182f7dbc2ef73d9ef67351c5fbbea084729c48362d3ce9dd44c28e32e277fe5" dependencies = [ "libc", -] - -[[package]] -name = "ff" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" -dependencies = [ - "rand_core 0.6.4", - "subtle", + "thiserror", ] [[package]] @@ -4163,14 +3640,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core 0.6.4", - "subtle", + "subtle 2.4.1", ] [[package]] name = "fiat-crypto" -version = "0.2.5" +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 = "27573eac26f4dd11e2b1916c3fe1baa56407c83c71a773a8ba17ec0bca03b6b7" +checksum = "21ef72acf95ec3d7dbf61275be556299490a245f017cf084bd23b4f68cf9407c" +dependencies = [ + "libc", + "winapi", +] [[package]] name = "file-per-thread-logger" @@ -4178,20 +3665,20 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84f2e425d9790201ba4af4630191feac6dcc98765b118d4d18e91d23c2353866" dependencies = [ - "env_logger 0.10.1", + "env_logger 0.10.2", "log", ] [[package]] name = "filetime" -version = "0.2.22" +version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0" +checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.3.5", - "windows-sys 0.48.0", + "redox_syscall 0.4.1", + "windows-sys 0.52.0", ] [[package]] @@ -4206,7 +3693,7 @@ dependencies = [ "log", "num-traits", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "scale-info", ] @@ -4217,7 +3704,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand 0.8.5", + "rand", "rustc-hex", "static_assertions", ] @@ -4230,9 +3717,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ "crc32fast", "libz-sys", @@ -4265,17 +3752,17 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" -version = "9.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "12.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", ] [[package]] name = "form_urlencoded" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] @@ -4288,8 +3775,8 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-support-procedural", @@ -4313,11 +3800,11 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "33.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "Inflector", - "array-bytes", + "array-bytes 6.2.3", "chrono", "clap", "comfy-table", @@ -4331,7 +3818,7 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "rand 0.8.5", + "rand", "rand_pcg", "sc-block-builder", "sc-cli", @@ -4361,19 +3848,19 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "13.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "frame-election-provider-support" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -4389,8 +3876,8 @@ dependencies = [ [[package]] name = "frame-executive" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -4417,12 +3904,26 @@ dependencies = [ "serde", ] +[[package]] +name = "frame-metadata-hash-extension" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "array-bytes 6.2.3", + "docify", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime", +] + [[package]] name = "frame-remote-externalities" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "async-recursion", "futures", "indicatif", "jsonrpsee", @@ -4430,6 +3931,7 @@ dependencies = [ "parity-scale-codec", "serde", "sp-core", + "sp-crypto-hashing", "sp-io", "sp-runtime", "sp-state-machine", @@ -4441,10 +3943,11 @@ dependencies = [ [[package]] name = "frame-support" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "aquamarine", + "array-bytes 6.2.3", "bitflags 1.3.2", "docify", "environmental", @@ -4463,7 +3966,7 @@ dependencies = [ "sp-api", "sp-arithmetic", "sp-core", - "sp-core-hashing-proc-macro", + "sp-crypto-hashing-proc-macro", "sp-debug-derive", "sp-genesis-builder", "sp-inherents", @@ -4481,50 +3984,52 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse 0.1.5", - "expander 2.0.0", + "expander 2.2.1", "frame-support-procedural-tools", "itertools 0.10.5", "macro_magic", "proc-macro-warning", "proc-macro2", "quote", - "syn 2.0.39", + "sp-crypto-hashing", + "syn 2.0.66", ] [[package]] name = "frame-support-procedural-tools" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "10.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "frame-support-procedural-tools-derive" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "frame-system" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cfg-if", + "docify", "frame-support", "log", "parity-scale-codec", @@ -4540,8 +4045,8 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -4555,8 +4060,8 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "sp-api", @@ -4564,8 +4069,8 @@ dependencies = [ [[package]] name = "frame-try-runtime" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "parity-scale-codec", @@ -4595,11 +4100,11 @@ dependencies = [ [[package]] name = "fs4" -version = "0.6.6" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eeb4ed9e12f43b7fa0baae3f9cdda28352770132ef2e09a23760c29cae8bd47" +checksum = "29f9df8a11882c4e3335eb2d18a0137c505d9ca927470b0cac9c6f0ae07d28f7" dependencies = [ - "rustix 0.38.25", + "rustix 0.38.34", "windows-sys 0.48.0", ] @@ -4611,9 +4116,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335" +checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" dependencies = [ "futures-channel", "futures-core", @@ -4626,9 +4131,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", "futures-sink", @@ -4636,15 +4141,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-executor" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" dependencies = [ "futures-core", "futures-task", @@ -4654,9 +4159,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-lite" @@ -4669,33 +4174,32 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "waker-fn", ] [[package]] name = "futures-lite" -version = "2.0.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3831c2651acb5177cbd83943f3d9c8912c5ad03c76afcc0e9511ba568ec5ebb" +checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" dependencies = [ - "fastrand 2.0.1", + "fastrand 2.1.0", "futures-core", "futures-io", - "memchr", "parking", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", ] [[package]] name = "futures-macro" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" +checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -4706,32 +4210,32 @@ checksum = "d2411eed028cdf8c8034eaf21f9915f956b6c3abec4d4c7949ee67f0721127bd" dependencies = [ "futures-io", "rustls 0.20.9", - "webpki 0.22.4", + "webpki", ] [[package]] name = "futures-sink" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-timer" -version = "3.0.2" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" [[package]] name = "futures-util" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-channel", "futures-core", @@ -4740,7 +4244,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "pin-utils", "slab", ] @@ -4797,9 +4301,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.11" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", @@ -4807,23 +4311,23 @@ dependencies = [ ] [[package]] -name = "ghash" -version = "0.4.4" +name = "getrandom_or_panic" +version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" +checksum = "6ea1015b5a70616b688dc230cfe50c8af89d972cb132d5a622814d29773b10b9" dependencies = [ - "opaque-debug 0.3.0", - "polyval 0.5.3", + "rand", + "rand_core 0.6.4", ] [[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", - "polyval 0.6.1", + "opaque-debug 0.3.1", + "polyval", ] [[package]] @@ -4839,9 +4343,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" +checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" [[package]] name = "glob" @@ -4849,46 +4353,22 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" -[[package]] -name = "globset" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" -dependencies = [ - "aho-corasick", - "bstr", - "fnv", - "log", - "regex", -] - -[[package]] -name = "group" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" -dependencies = [ - "ff 0.12.1", - "rand_core 0.6.4", - "subtle", -] - [[package]] name = "group" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ - "ff 0.13.0", + "ff", "rand_core 0.6.4", - "subtle", + "subtle 2.4.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", @@ -4896,7 +4376,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 2.1.0", + "indexmap 2.2.6", "slab", "tokio", "tokio-util", @@ -4938,7 +4418,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "ahash 0.7.7", + "ahash 0.7.8", ] [[package]] @@ -4947,40 +4427,52 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.11", ] [[package]] name = "hashbrown" -version = "0.14.2" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.11", "allocator-api2", "serde", ] +[[package]] +name = "hashlink" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" +dependencies = [ + "hashbrown 0.14.5", +] + [[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + [[package]] name = "hermit-abi" -version = "0.1.19" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" [[package]] name = "hex" @@ -5002,9 +4494,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", ] @@ -5051,11 +4543,11 @@ dependencies = [ [[package]] name = "home" -version = "0.5.5" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb" +checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -5071,9 +4563,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", @@ -5082,13 +4574,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", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", ] [[package]] @@ -5099,9 +4591,9 @@ checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" [[package]] name = "httparse" -version = "1.8.0" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" +checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" [[package]] name = "httpdate" @@ -5117,9 +4609,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.27" +version = "0.14.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" +checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" dependencies = [ "bytes", "futures-channel", @@ -5131,8 +4623,8 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.13", - "socket2 0.4.10", + "pin-project-lite 0.2.14", + "socket2 0.5.7", "tokio", "tower-service", "tracing", @@ -5149,25 +4641,24 @@ dependencies = [ "http", "hyper", "log", - "rustls 0.21.9", + "rustls 0.21.12", "rustls-native-certs", "tokio", "tokio-rustls", - "webpki-roots 0.25.2", ] [[package]] name = "iana-time-zone" -version = "0.1.58" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "windows-core", + "windows-core 0.52.0", ] [[package]] @@ -5179,12 +4670,6 @@ dependencies = [ "cc", ] -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - [[package]] name = "idna" version = "0.2.3" @@ -5198,9 +4683,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -5222,7 +4707,7 @@ version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6b0422c86d7ce0e97169cc42e04ae643caf278874a7a3c87b8150a220dc7e1e" dependencies = [ - "async-io 2.2.0", + "async-io 2.3.3", "core-foundation", "fnv", "futures", @@ -5286,18 +4771,18 @@ dependencies = [ [[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", @@ -5316,12 +4801,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.1.0" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown 0.14.2", + "hashbrown 0.14.5", ] [[package]] @@ -5332,9 +4817,9 @@ checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] name = "indicatif" -version = "0.17.7" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25" +checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" dependencies = [ "console", "instant", @@ -5354,9 +4839,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", ] @@ -5376,84 +4861,13 @@ dependencies = [ "num-traits", ] -[[package]] -name = "integration-tests-common" -version = "0.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "asset-hub-kusama-runtime", - "asset-hub-polkadot-runtime", - "asset-hub-westend-runtime", - "bp-messages", - "bridge-hub-kusama-runtime", - "bridge-hub-polkadot-runtime", - "bridge-hub-rococo-runtime", - "bridge-runtime-common", - "collectives-polkadot-runtime", - "cumulus-pallet-dmp-queue", - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "frame-support", - "kusama-runtime-constants", - "pallet-assets", - "pallet-bridge-messages", - "pallet-im-online", - "pallet-message-queue", - "pallet-staking", - "pallet-xcm", - "parachains-common", - "parity-scale-codec", - "paste", - "penpal-runtime", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime", - "polkadot-runtime-constants", - "polkadot-runtime-parachains", - "polkadot-service", - "rococo-runtime", - "rococo-runtime-constants", - "sc-consensus-grandpa", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-consensus-beefy", - "sp-core", - "sp-runtime", - "staging-kusama-runtime", - "staging-xcm", - "westend-runtime", - "westend-runtime-constants", - "xcm-emulator", -] - -[[package]] -name = "interceptor" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e8a11ae2da61704edada656798b61c94b35ecac2c58eb955156987d5e6be90b" -dependencies = [ - "async-trait", - "bytes", - "log", - "rand 0.8.5", - "rtcp", - "rtp", - "thiserror", - "tokio", - "waitgroup", - "webrtc-srtp", - "webrtc-util", -] - [[package]] name = "io-lifetimes" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi 0.3.3", + "hermit-abi 0.3.9", "libc", "windows-sys 0.48.0", ] @@ -5470,7 +4884,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.5.5", + "socket2 0.5.7", "widestring", "windows-sys 0.48.0", "winreg", @@ -5484,13 +4898,13 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "is-terminal" -version = "0.4.9" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" +checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" dependencies = [ - "hermit-abi 0.3.3", - "rustix 0.38.25", - "windows-sys 0.48.0", + "hermit-abi 0.3.9", + "libc", + "windows-sys 0.52.0", ] [[package]] @@ -5502,6 +4916,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "is_terminal_polyfill" +version = "1.70.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" + [[package]] name = "itertools" version = "0.10.5" @@ -5520,35 +4940,44 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.27" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.65" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ "wasm-bindgen", ] [[package]] name = "jsonrpsee" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "367a292944c07385839818bb71c8d76611138e2dedb0677d035b8da21d29c78b" +checksum = "affdc52f7596ccb2d7645231fc6163bb314630c989b64998f3699a28b4d5d4dc" dependencies = [ "jsonrpsee-core", "jsonrpsee-http-client", @@ -5556,19 +4985,19 @@ dependencies = [ "jsonrpsee-server", "jsonrpsee-types", "jsonrpsee-ws-client", + "tokio", "tracing", ] [[package]] name = "jsonrpsee-client-transport" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8b3815d9f5d5de348e5f162b316dc9cdf4548305ebb15b4eb9328e66cf27d7a" +checksum = "b5b005c793122d03217da09af68ba9383363caa950b90d3436106df8cabce935" dependencies = [ "futures-util", "http", "jsonrpsee-core", - "jsonrpsee-types", "pin-project", "rustls-native-certs", "soketto", @@ -5577,28 +5006,25 @@ dependencies = [ "tokio-rustls", "tokio-util", "tracing", - "webpki-roots 0.25.2", + "url", ] [[package]] name = "jsonrpsee-core" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b5dde66c53d6dcdc8caea1874a45632ec0fcf5b437789f1e45766a1512ce803" +checksum = "da2327ba8df2fdbd5e897e2b5ed25ce7f299d345b9736b6828814c3dbd1fd47b" dependencies = [ "anyhow", - "arrayvec 0.7.4", "async-lock 2.8.0", "async-trait", "beef", - "futures-channel", "futures-timer", "futures-util", - "globset", "hyper", "jsonrpsee-types", - "parking_lot 0.12.1", - "rand 0.8.5", + "parking_lot 0.12.3", + "rand", "rustc-hash", "serde", "serde_json", @@ -5610,31 +5036,32 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e5f9fabdd5d79344728521bb65e3106b49ec405a78b66fbff073b72b389fa43" +checksum = "5f80c17f62c7653ce767e3d7288b793dfec920f97067ceb189ebdd3570f2bc20" dependencies = [ "async-trait", "hyper", "hyper-rustls", "jsonrpsee-core", "jsonrpsee-types", - "rustc-hash", "serde", "serde_json", "thiserror", "tokio", + "tower", "tracing", + "url", ] [[package]] name = "jsonrpsee-proc-macros" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44e8ab85614a08792b9bff6c8feee23be78c98d0182d4c622c05256ab553892a" +checksum = "29110019693a4fa2dbda04876499d098fa16d70eba06b1e6e2b3f1b251419515" dependencies = [ - "heck", - "proc-macro-crate", + "heck 0.4.1", + "proc-macro-crate 1.1.3", "proc-macro2", "quote", "syn 1.0.109", @@ -5642,19 +5069,20 @@ dependencies = [ [[package]] name = "jsonrpsee-server" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4d945a6008c9b03db3354fb3c83ee02d2faa9f2e755ec1dfb69c3551b8f4ba" +checksum = "82c39a00449c9ef3f50b84fc00fc4acba20ef8f559f07902244abf4c15c5ab9c" dependencies = [ - "futures-channel", "futures-util", "http", "hyper", "jsonrpsee-core", "jsonrpsee-types", + "route-recognizer", "serde", "serde_json", "soketto", + "thiserror", "tokio", "tokio-stream", "tokio-util", @@ -5664,9 +5092,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245ba8e5aa633dd1c1e4fae72bce06e71f42d34c14a2767c6b4d173b57bee5e5" +checksum = "5be0be325642e850ed0bdff426674d2e66b2b7117c9be23a7caef68a2902b7d9" dependencies = [ "anyhow", "beef", @@ -5678,34 +5106,35 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.16.3" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e1b3975ed5d73f456478681a417128597acd6a2487855fdb7b4a3d4d195bf5e" +checksum = "bca9cb3933ccae417eb6b08c3448eb1cb46e39834e5b503e395e5e5bd08546c0" dependencies = [ "http", "jsonrpsee-client-transport", "jsonrpsee-core", "jsonrpsee-types", + "url", ] [[package]] name = "k256" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f01b677d82ef7a676aa37e099defd83a28e15687112cafdd112d60236b6115b" +checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" dependencies = [ "cfg-if", - "ecdsa 0.16.9", - "elliptic-curve 0.13.8", + "ecdsa", + "elliptic-curve", "once_cell", "sha2 0.10.8", ] [[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", ] @@ -5763,6 +5192,12 @@ dependencies = [ "substrate-wasm-builder", ] +[[package]] +name = "keystream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c33070833c9ee02266356de0c43f723152bd38bd96ddf52c82b3af10c9138b28" + [[package]] name = "kilt-asset-dids" version = "1.14.0-dev" @@ -5866,6 +5301,7 @@ dependencies = [ "sp-offchain", "sp-runtime", "sp-session", + "sp-state-machine", "sp-timestamp", "sp-transaction-pool", "spiritnet-runtime", @@ -5934,20 +5370,6 @@ dependencies = [ "sp-weights", ] -[[package]] -name = "kusama-runtime-constants" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "frame-support", - "polkadot-primitives", - "polkadot-runtime-common", - "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", -] - [[package]] name = "kvdb" version = "0.13.0" @@ -5964,7 +5386,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf7a85fe66f9ff9cd74e169fdd2c94c6e1e74c412c99a73b4df3200b5d3760b2" dependencies = [ "kvdb", - "parking_lot 0.12.1", + "parking_lot 0.12.3", ] [[package]] @@ -5975,7 +5397,7 @@ checksum = "b644c70b92285f66bfc2032922a79000ea30af7bc2ab31902992a5dcb9b434f6" dependencies = [ "kvdb", "num_cpus", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "regex", "rocksdb", "smallvec", @@ -5983,9 +5405,9 @@ dependencies = [ [[package]] name = "landlock" -version = "0.2.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520baa32708c4e957d2fc3a186bc5bd8d26637c33137f399ddfc202adb240068" +checksum = "9baa9eeb6e315942429397e617a190f4fdc696ef1ee0342939d641029cbb4ea7" dependencies = [ "enumflags2", "libc", @@ -6006,18 +5428,18 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.150" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "libloading" -version = "0.7.4" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "winapi", + "windows-targets 0.52.5", ] [[package]] @@ -6028,14 +5450,14 @@ checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] name = "libp2p" -version = "0.51.3" +version = "0.51.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f210d259724eae82005b5c48078619b7745edb7b76de370b03f8ba59ea103097" +checksum = "f35eae38201a993ece6bdc823292d6abd1bffed1c4d0f4a3517d2bd8e1d917fe" dependencies = [ "bytes", "futures", "futures-timer", - "getrandom 0.2.11", + "getrandom 0.2.15", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -6053,7 +5475,6 @@ dependencies = [ "libp2p-swarm", "libp2p-tcp", "libp2p-wasm-ext", - "libp2p-webrtc", "libp2p-websocket", "libp2p-yamux", "multiaddr", @@ -6098,13 +5519,13 @@ dependencies = [ "libp2p-identity", "log", "multiaddr", - "multihash", + "multihash 0.17.0", "multistream-select", "once_cell", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "pin-project", "quick-protobuf", - "rand 0.8.5", + "rand", "rw-stream-sink", "smallvec", "thiserror", @@ -6121,7 +5542,7 @@ dependencies = [ "futures", "libp2p-core", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "smallvec", "trust-dns-resolver", ] @@ -6155,12 +5576,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "276bb57e7af15d8f100d3c11cbdd32c6752b7eef4ba7a18ecf464972c07abcce" dependencies = [ "bs58 0.4.0", - "ed25519-dalek 2.1.0", + "ed25519-dalek", "log", "multiaddr", - "multihash", + "multihash 0.17.0", "quick-protobuf", - "rand 0.8.5", + "rand", "sha2 0.10.8", "thiserror", "zeroize", @@ -6185,7 +5606,7 @@ dependencies = [ "libp2p-swarm", "log", "quick-protobuf", - "rand 0.8.5", + "rand", "sha2 0.10.8", "smallvec", "thiserror", @@ -6207,7 +5628,7 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "rand 0.8.5", + "rand", "smallvec", "socket2 0.4.10", "tokio", @@ -6243,7 +5664,7 @@ dependencies = [ "log", "once_cell", "quick-protobuf", - "rand 0.8.5", + "rand", "sha2 0.10.8", "snow", "static_assertions", @@ -6265,7 +5686,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "rand 0.8.5", + "rand", "void", ] @@ -6283,9 +5704,9 @@ dependencies = [ "libp2p-identity", "libp2p-tls", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "quinn-proto", - "rand 0.8.5", + "rand", "rustls 0.20.9", "thiserror", "tokio", @@ -6303,7 +5724,7 @@ dependencies = [ "libp2p-core", "libp2p-identity", "libp2p-swarm", - "rand 0.8.5", + "rand", "smallvec", ] @@ -6322,7 +5743,7 @@ dependencies = [ "libp2p-identity", "libp2p-swarm-derive", "log", - "rand 0.8.5", + "rand", "smallvec", "tokio", "void", @@ -6334,7 +5755,7 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fba456131824ab6acd4c7bf61e9c0f0a3014b5fc9868ccb8e10d344594cdc4f" dependencies = [ - "heck", + "heck 0.4.1", "quote", "syn 1.0.109", ] @@ -6365,12 +5786,12 @@ dependencies = [ "futures-rustls", "libp2p-core", "libp2p-identity", - "rcgen 0.10.0", + "rcgen", "ring 0.16.20", "rustls 0.20.9", "thiserror", - "webpki 0.22.4", - "x509-parser 0.14.0", + "webpki", + "x509-parser", "yasna", ] @@ -6388,37 +5809,6 @@ dependencies = [ "wasm-bindgen-futures", ] -[[package]] -name = "libp2p-webrtc" -version = "0.4.0-alpha.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dba48592edbc2f60b4bc7c10d65445b0c3964c07df26fdf493b6880d33be36f8" -dependencies = [ - "async-trait", - "asynchronous-codec", - "bytes", - "futures", - "futures-timer", - "hex", - "if-watch", - "libp2p-core", - "libp2p-identity", - "libp2p-noise", - "log", - "multihash", - "quick-protobuf", - "quick-protobuf-codec", - "rand 0.8.5", - "rcgen 0.9.3", - "serde", - "stun", - "thiserror", - "tinytemplate", - "tokio", - "tokio-util", - "webrtc", -] - [[package]] name = "libp2p-websocket" version = "0.41.0" @@ -6430,12 +5820,12 @@ dependencies = [ "futures-rustls", "libp2p-core", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "quicksink", "rw-stream-sink", "soketto", "url", - "webpki-roots 0.22.6", + "webpki-roots", ] [[package]] @@ -6453,13 +5843,12 @@ dependencies = [ [[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.4.1", + "bitflags 2.5.0", "libc", - "redox_syscall 0.4.1", ] [[package]] @@ -6490,7 +5879,7 @@ dependencies = [ "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand 0.8.5", + "rand", "serde", "sha2 0.9.9", "typenum", @@ -6504,7 +5893,7 @@ checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" dependencies = [ "crunchy", "digest 0.9.0", - "subtle", + "subtle 2.4.1", ] [[package]] @@ -6527,9 +5916,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.12" +version = "1.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b" +checksum = "c15da26e5af7e25c90b37a2d75cdbf940cf4a55316de9d84c679c9b8bfabf82e" dependencies = [ "cc", "pkg-config", @@ -6583,15 +5972,27 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "linux-raw-sys" -version = "0.4.11" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" + +[[package]] +name = "lioness" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae926706ba42c425c9457121178330d75e273df2e82e28b758faf3de3a9acb9" +dependencies = [ + "arrayref", + "blake2 0.8.1", + "chacha", + "keystream", +] [[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", @@ -6599,9 +6000,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.20" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "lru" @@ -6638,9 +6039,9 @@ dependencies = [ [[package]] name = "lz4" -version = "1.24.0" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e9e2dd86df36ce760a60f6ff6ad526f7ba1f14ba0356f8254fb6905e6494df1" +checksum = "d6eab492fe7f8651add23237ea56dbf11b3c4ff762ab83d40a47f11433421f91" dependencies = [ "libc", "lz4-sys", @@ -6648,9 +6049,9 @@ dependencies = [ [[package]] name = "lz4-sys" -version = "1.9.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900" +checksum = "e9764018d143cc854c9f17f0b907de70f14393b1f502da6375dce70f00514eb3" dependencies = [ "cc", "libc", @@ -6667,50 +6068,50 @@ dependencies = [ [[package]] name = "macro_magic" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aee866bfee30d2d7e83835a4574aad5b45adba4cc807f2a3bbba974e5d4383c9" +checksum = "e03844fc635e92f3a0067e25fa4bf3e3dbf3f2927bf3aa01bb7bc8f1c428949d" dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "macro_magic_core" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e766a20fd9c72bab3e1e64ed63f36bd08410e75803813df210d1ce297d7ad00" +checksum = "468155613a44cfd825f1fb0ffa532b018253920d404e6fca1e8d43155198a46d" dependencies = [ "const-random", "derive-syn-parse 0.1.5", "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "macro_magic_core_macros" -version = "0.4.3" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d710e1214dffbab3b5dacb21475dde7d6ed84c69ff722b3a47a782668d44fbac" +checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "macro_magic_macros" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" +checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -6734,6 +6135,15 @@ dependencies = [ "regex-automata 0.1.10", ] +[[package]] +name = "matchers" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" +dependencies = [ + "regex-automata 0.1.10", +] + [[package]] name = "matches" version = "0.1.10" @@ -6750,21 +6160,11 @@ dependencies = [ "rawpointer", ] -[[package]] -name = "md-5" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" -dependencies = [ - "cfg-if", - "digest 0.10.7", -] - [[package]] name = "memchr" -version = "2.6.4" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memfd" @@ -6772,7 +6172,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.25", + "rustix 0.38.34", ] [[package]] @@ -6785,12 +6185,12 @@ dependencies = [ ] [[package]] -name = "memoffset" -version = "0.6.5" +name = "memmap2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322" dependencies = [ - "autocfg", + "libc", ] [[package]] @@ -6802,15 +6202,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memoffset" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" -dependencies = [ - "autocfg", -] - [[package]] name = "memory-db" version = "0.32.0" @@ -6820,18 +6211,6 @@ dependencies = [ "hash-db", ] -[[package]] -name = "merlin" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42" -dependencies = [ - "byteorder", - "keccak", - "rand_core 0.5.1", - "zeroize", -] - [[package]] name = "merlin" version = "3.0.0" @@ -6851,7 +6230,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69672161530e8aeca1d1400fbf3f1a1747ff60ea604265a4e906c2442df20532" dependencies = [ "futures", - "rand 0.8.5", + "rand", "thrift", ] @@ -6863,28 +6242,53 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.9" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dce281c5e46beae905d4de1870d8b1509a9142b62eedf18b443b011ca8343d0" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.48.0", ] +[[package]] +name = "mixnet" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daa3eb39495d8e2e2947a1d862852c90cc6a4a8845f8b41c8829cb9fcc047f4a" +dependencies = [ + "arrayref", + "arrayvec 0.7.4", + "bitflags 1.3.2", + "blake2 0.10.6", + "c2-chacha", + "curve25519-dalek 4.1.3", + "either", + "hashlink", + "lioness", + "log", + "parking_lot 0.12.3", + "rand", + "rand_chacha 0.3.1", + "rand_distr", + "subtle 2.4.1", + "thiserror", + "zeroize", +] + [[package]] name = "mmr-gadget" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "log", @@ -6902,10 +6306,9 @@ dependencies = [ [[package]] name = "mmr-rpc" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "anyhow", "jsonrpsee", "parity-scale-codec", "serde", @@ -6954,54 +6357,122 @@ dependencies = [ "data-encoding", "log", "multibase", - "multihash", + "multihash 0.17.0", "percent-encoding", "serde", "static_assertions", "unsigned-varint", - "url", + "url", +] + +[[package]] +name = "multibase" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b3539ec3c1f04ac9748a260728e855f261b4977f5c3406612c884564f329404" +dependencies = [ + "base-x", + "data-encoding", + "data-encoding-macro", +] + +[[package]] +name = "multihash" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835d6ff01d610179fbce3de1694d007e500bf33a7f29689838941d6bf783ae40" +dependencies = [ + "blake2b_simd", + "blake2s_simd", + "blake3", + "core2", + "digest 0.10.7", + "multihash-derive 0.8.1", + "sha2 0.10.8", + "sha3", + "unsigned-varint", +] + +[[package]] +name = "multihash" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd8a792c1694c6da4f68db0a9d707c72bd260994da179e6030a5dcee00bb815" +dependencies = [ + "core2", + "digest 0.10.7", + "multihash-derive 0.8.1", + "sha2 0.10.8", + "unsigned-varint", ] [[package]] -name = "multibase" -version = "0.9.1" +name = "multihash" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b3539ec3c1f04ac9748a260728e855f261b4977f5c3406612c884564f329404" +checksum = "076d548d76a0e2a0d4ab471d0b1c36c577786dfc4471242035d97a12a735c492" dependencies = [ - "base-x", - "data-encoding", - "data-encoding-macro", + "core2", + "unsigned-varint", ] [[package]] -name = "multihash" -version = "0.17.0" +name = "multihash-codetable" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835d6ff01d610179fbce3de1694d007e500bf33a7f29689838941d6bf783ae40" +checksum = "f6d815ecb3c8238d00647f8630ede7060a642c9f704761cd6082cb4028af6935" dependencies = [ "blake2b_simd", "blake2s_simd", "blake3", "core2", "digest 0.10.7", - "multihash-derive", + "multihash-derive 0.9.0", + "ripemd", + "serde", + "sha1", "sha2 0.10.8", "sha3", - "unsigned-varint", + "strobe-rs", ] [[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", + "proc-macro-crate 1.1.3", "proc-macro-error", "proc-macro2", "quote", "syn 1.0.109", - "synstructure", + "synstructure 0.12.6", +] + +[[package]] +name = "multihash-derive" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "890e72cb7396cb99ed98c1246a97b243cc16394470d94e0bc8b0c2c11d84290e" +dependencies = [ + "core2", + "multihash 0.19.1", + "multihash-derive-impl", +] + +[[package]] +name = "multihash-derive-impl" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3958713ce794e12f7c6326fac9aa274c68d74c4881dd37b3e2662b8a2046bb19" +dependencies = [ + "proc-macro-crate 2.0.0", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.66", + "synstructure 0.13.1", ] [[package]] @@ -7026,9 +6497,9 @@ dependencies = [ [[package]] name = "nalgebra" -version = "0.32.3" +version = "0.32.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "307ed9b18cc2423f29e83f84fd23a8e73628727990181f18641a8b5dc2ab1caa" +checksum = "7b5c17de023a86f59ed79891b2e5d5a94c705dbe904a5b5c9c952ea6221b03e4" dependencies = [ "approx", "matrixmultiply", @@ -7053,11 +6524,11 @@ dependencies = [ [[package]] name = "names" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7d66043b25d4a6cccb23619d10c19c25304b355a7dccd4a8e11423dd2382146" +checksum = "7bddcd3bf5144b6392de80e04c347cd7fab2508f6df16a85fc496ecd5cec39bc" dependencies = [ - "rand 0.8.5", + "rand", ] [[package]] @@ -7121,9 +6592,9 @@ dependencies = [ [[package]] name = "netlink-sys" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6471bf08e7ac0135876a9581bf3217ef0333c191c128d34878079f42ee150411" +checksum = "416060d346fbaf1f23f9512963e3e878f1a78e707cb699ba9215761754244307" dependencies = [ "bytes", "futures", @@ -7141,7 +6612,17 @@ dependencies = [ "bitflags 1.3.2", "cfg-if", "libc", - "memoffset 0.6.5", +] + +[[package]] +name = "nix" +version = "0.27.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" +dependencies = [ + "bitflags 2.5.0", + "cfg-if", + "libc", ] [[package]] @@ -7178,26 +6659,41 @@ 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" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" 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", ] +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + [[package]] name = "num-format" version = "0.4.4" @@ -7210,21 +6706,19 @@ 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", @@ -7232,11 +6726,12 @@ dependencies = [ [[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", ] [[package]] @@ -7245,7 +6740,7 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.3", + "hermit-abi 0.3.9", "libc", ] @@ -7269,36 +6764,27 @@ dependencies = [ [[package]] name = "object" -version = "0.32.1" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" +checksum = "576dfe1fc8f9df304abb159d767a29d0476f7750fbf8aa7ad07816004a207434" dependencies = [ "memchr", ] -[[package]] -name = "oid-registry" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38e20717fa0541f39bd146692035c37bedfa532b3e5071b35761082407546b2a" -dependencies = [ - "asn1-rs 0.3.1", -] - [[package]] name = "oid-registry" version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" dependencies = [ - "asn1-rs 0.5.2", + "asn1-rs", ] [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opaque-debug" @@ -7308,9 +6794,9 @@ 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-probe" @@ -7318,11 +6804,17 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + [[package]] name = "orchestra" -version = "0.0.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "227585216d05ba65c7ab0a0450a3cf2cbd81a98862a54c4df8e14d5ac6adb015" +checksum = "92829eef0328a3d1cd22a02c0e51deb92a5362df3e7d21a4e9bdc38934694e66" dependencies = [ "async-trait", "dyn-clonable", @@ -7337,14 +6829,15 @@ dependencies = [ [[package]] name = "orchestra-proc-macro" -version = "0.0.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2871aadd82a2c216ee68a69837a526dfe788ecbe74c4c5038a6acdbff6653066" +checksum = "1344346d5af32c95bbddea91b18a88cc83eac394192d20ef2fc4c40a74332355" dependencies = [ - "expander 0.0.6", - "itertools 0.10.5", + "expander 2.2.1", + "indexmap 2.2.6", + "itertools 0.11.0", "petgraph", - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", "syn 1.0.109", @@ -7360,85 +6853,63 @@ dependencies = [ ] [[package]] -name = "p256" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594" -dependencies = [ - "ecdsa 0.14.8", - "elliptic-curve 0.12.3", - "sha2 0.10.8", -] - -[[package]] -name = "p384" -version = "0.11.2" +name = "overload" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc8c5bf642dde52bb9e87c0ecd8ca5a76faac2eeed98dedb7c717997e1080aa" -dependencies = [ - "ecdsa 0.14.8", - "elliptic-curve 0.12.3", - "sha2 0.10.8", -] +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] -name = "pallet-alliance" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "pallet-asset-conversion" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", "frame-benchmarking", "frame-support", "frame-system", - "log", - "pallet-collective", - "pallet-identity", "parity-scale-codec", "scale-info", + "sp-api", + "sp-arithmetic", "sp-core", - "sp-core-hashing", "sp-io", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-asset-conversion" -version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "pallet-asset-conversion-tx-payment" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "frame-benchmarking", "frame-support", "frame-system", + "pallet-asset-conversion", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-io", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-asset-conversion-tx-payment" -version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "pallet-asset-rate" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", - "pallet-asset-conversion", - "pallet-transaction-payment", "parity-scale-codec", "scale-info", + "sp-core", "sp-runtime", "sp-std", ] [[package]] name = "pallet-asset-tx-payment" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7455,8 +6926,8 @@ dependencies = [ [[package]] name = "pallet-assets" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7471,8 +6942,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -7488,8 +6959,8 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -7504,8 +6975,8 @@ dependencies = [ [[package]] name = "pallet-authorship" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -7518,8 +6989,8 @@ dependencies = [ [[package]] name = "pallet-babe" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7542,8 +7013,8 @@ dependencies = [ [[package]] name = "pallet-bags-list" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "aquamarine", "docify", @@ -7564,9 +7035,10 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "docify", "frame-benchmarking", "frame-support", "frame-system", @@ -7579,8 +7051,8 @@ dependencies = [ [[package]] name = "pallet-beefy" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -7599,10 +7071,10 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "binary-merkle-tree", "frame-support", "frame-system", @@ -7624,8 +7096,8 @@ dependencies = [ [[package]] name = "pallet-bounties" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7642,8 +7114,8 @@ dependencies = [ [[package]] name = "pallet-bridge-grandpa" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-header-chain", "bp-runtime", @@ -7663,8 +7135,8 @@ dependencies = [ [[package]] name = "pallet-bridge-messages" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-messages", "bp-runtime", @@ -7675,15 +7147,14 @@ dependencies = [ "num-traits", "parity-scale-codec", "scale-info", - "sp-core", "sp-runtime", "sp-std", ] [[package]] name = "pallet-bridge-parachains" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-header-chain", "bp-parachains", @@ -7703,8 +7174,8 @@ dependencies = [ [[package]] name = "pallet-bridge-relayers" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bp-messages", "bp-relayers", @@ -7721,10 +7192,28 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-broker" +version = "0.7.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "bitvec", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-child-bounties" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7742,17 +7231,18 @@ dependencies = [ [[package]] name = "pallet-collator-selection" -version = "4.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "10.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", "pallet-authorship", + "pallet-balances", "pallet-session", "parity-scale-codec", - "rand 0.8.5", + "rand", "scale-info", "sp-runtime", "sp-staking", @@ -7761,8 +7251,8 @@ dependencies = [ [[package]] name = "pallet-collective" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7797,8 +7287,8 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "assert_matches", "frame-benchmarking", @@ -7812,28 +7302,10 @@ dependencies = [ "sp-std", ] -[[package]] -name = "pallet-core-fellowship" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - [[package]] name = "pallet-democracy" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7872,8 +7344,8 @@ name = "pallet-did-lookup" version = "1.14.0-dev" dependencies = [ "base58", - "blake2", - "env_logger 0.10.1", + "blake2 0.10.6", + "env_logger 0.10.2", "frame-benchmarking", "frame-support", "frame-system", @@ -7934,8 +7406,8 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7944,7 +7416,7 @@ dependencies = [ "log", "pallet-election-provider-support-benchmarking", "parity-scale-codec", - "rand 0.8.5", + "rand", "scale-info", "sp-arithmetic", "sp-core", @@ -7957,8 +7429,8 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7971,8 +7443,8 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -7990,8 +7462,8 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "docify", "frame-benchmarking", @@ -8009,8 +7481,8 @@ dependencies = [ [[package]] name = "pallet-grandpa" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8032,13 +7504,14 @@ dependencies = [ [[package]] name = "pallet-identity" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "enumflags2", "frame-benchmarking", "frame-support", "frame-system", + "log", "parity-scale-codec", "scale-info", "sp-io", @@ -8048,8 +7521,8 @@ dependencies = [ [[package]] name = "pallet-im-online" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8068,8 +7541,8 @@ dependencies = [ [[package]] name = "pallet-indices" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8101,8 +7574,8 @@ dependencies = [ [[package]] name = "pallet-membership" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8118,9 +7591,10 @@ dependencies = [ [[package]] name = "pallet-message-queue" -version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "32.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "environmental", "frame-benchmarking", "frame-support", "frame-system", @@ -8143,7 +7617,7 @@ dependencies = [ "ctype", "delegation", "did", - "env_logger 0.10.1", + "env_logger 0.10.2", "frame-benchmarking", "frame-support", "frame-system", @@ -8169,8 +7643,8 @@ dependencies = [ [[package]] name = "pallet-mmr" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8187,8 +7661,8 @@ dependencies = [ [[package]] name = "pallet-multisig" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8203,8 +7677,8 @@ dependencies = [ [[package]] name = "pallet-nft-fractionalization" -version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8220,8 +7694,8 @@ dependencies = [ [[package]] name = "pallet-nfts" -version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "23.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "enumflags2", "frame-benchmarking", @@ -8238,18 +7712,19 @@ dependencies = [ [[package]] name = "pallet-nfts-runtime-api" -version = "9.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "pallet-nfts", "parity-scale-codec", "sp-api", + "sp-std", ] [[package]] name = "pallet-nis" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8264,8 +7739,8 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "26.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -8283,8 +7758,8 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -8303,8 +7778,8 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" -version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", @@ -8314,8 +7789,8 @@ dependencies = [ [[package]] name = "pallet-offences" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -8331,8 +7806,8 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -8367,8 +7842,8 @@ dependencies = [ [[package]] name = "pallet-preimage" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8384,8 +7859,8 @@ dependencies = [ [[package]] name = "pallet-proxy" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8399,12 +7874,13 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", + "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", @@ -8417,8 +7893,8 @@ dependencies = [ [[package]] name = "pallet-recovery" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8432,8 +7908,8 @@ dependencies = [ [[package]] name = "pallet-referenda" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "assert_matches", "frame-benchmarking", @@ -8470,17 +7946,14 @@ dependencies = [ ] [[package]] -name = "pallet-salary" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "pallet-root-testing" +version = "5.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "frame-benchmarking", "frame-support", "frame-system", - "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", "sp-core", "sp-io", "sp-runtime", @@ -8489,8 +7962,8 @@ dependencies = [ [[package]] name = "pallet-scheduler" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "docify", "frame-benchmarking", @@ -8507,8 +7980,8 @@ dependencies = [ [[package]] name = "pallet-session" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -8529,8 +8002,8 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8538,7 +8011,7 @@ dependencies = [ "pallet-session", "pallet-staking", "parity-scale-codec", - "rand 0.8.5", + "rand", "sp-runtime", "sp-session", "sp-std", @@ -8546,8 +8019,8 @@ dependencies = [ [[package]] name = "pallet-society" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8564,8 +8037,8 @@ dependencies = [ [[package]] name = "pallet-staking" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -8587,19 +8060,19 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "pallet-staking-reward-fn" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "log", "sp-arithmetic", @@ -8607,17 +8080,18 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" -version = "9.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "15.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "sp-api", + "sp-staking", ] [[package]] name = "pallet-state-trie-migration" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8633,9 +8107,10 @@ dependencies = [ [[package]] name = "pallet-sudo" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "docify", "frame-benchmarking", "frame-support", "frame-system", @@ -8648,9 +8123,10 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "docify", "frame-benchmarking", "frame-support", "frame-system", @@ -8667,8 +8143,8 @@ dependencies = [ [[package]] name = "pallet-tips" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8686,8 +8162,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -8702,8 +8178,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" -version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "31.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -8718,8 +8194,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -8730,9 +8206,10 @@ dependencies = [ [[package]] name = "pallet-treasury" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "docify", "frame-benchmarking", "frame-support", "frame-system", @@ -8741,14 +8218,15 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", + "sp-core", "sp-runtime", "sp-std", ] [[package]] name = "pallet-uniques" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8762,8 +8240,8 @@ dependencies = [ [[package]] name = "pallet-utility" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8778,8 +8256,8 @@ dependencies = [ [[package]] name = "pallet-vesting" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8812,8 +8290,8 @@ dependencies = [ [[package]] name = "pallet-whitelist" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8827,14 +8305,15 @@ dependencies = [ [[package]] name = "pallet-xcm" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.5" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bounded-collections", "frame-benchmarking", "frame-support", "frame-system", "log", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", @@ -8843,13 +8322,14 @@ dependencies = [ "sp-runtime", "sp-std", "staging-xcm", + "staging-xcm-builder", "staging-xcm-executor", ] [[package]] name = "pallet-xcm-benchmarks" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-benchmarking", "frame-support", @@ -8862,7 +8342,26 @@ dependencies = [ "sp-std", "staging-xcm", "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm-executor", +] + +[[package]] +name = "pallet-xcm-bridge-hub-router" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "bp-xcm-bridge-hub-router", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-builder", ] [[package]] @@ -8893,65 +8392,97 @@ dependencies = [ [[package]] name = "parachains-common" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-utility", "frame-support", "frame-system", - "kusama-runtime-constants", "log", - "num-traits", "pallet-asset-tx-payment", "pallet-assets", "pallet-authorship", "pallet-balances", "pallet-collator-selection", + "pallet-message-queue", + "pallet-xcm", "parity-scale-codec", - "polkadot-core-primitives", "polkadot-primitives", - "polkadot-runtime-constants", - "rococo-runtime-constants", "scale-info", - "smallvec", "sp-consensus-aura", "sp-core", "sp-io", "sp-runtime", "sp-std", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-executor", + "substrate-wasm-builder", +] + +[[package]] +name = "parachains-runtimes-test-utils" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +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-xcm", + "parity-scale-codec", + "polkadot-parachain-primitives", + "sp-consensus-aura", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "sp-tracing", + "staging-parachain-info", "staging-xcm", - "staging-xcm-builder", "staging-xcm-executor", "substrate-wasm-builder", - "westend-runtime-constants", ] +[[package]] +name = "parity-bytes" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b56e3a2420138bdb970f84dfb9c774aea80fa0e7371549eedec0d80c209c67" + [[package]] name = "parity-db" -version = "0.4.12" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59e9ab494af9e6e813c72170f0d3c1de1500990d62c97cc05cc7576f91aa402f" +checksum = "592a28a24b09c9dc20ac8afaa6839abc417c720afe42c12e1e4a9d6aa2508d2e" dependencies = [ - "blake2", + "blake2 0.10.6", "crc32fast", "fs2", "hex", "libc", "log", "lz4", - "memmap2", - "parking_lot 0.12.1", - "rand 0.8.5", + "memmap2 0.5.10", + "parking_lot 0.12.3", + "rand", "siphasher", "snap", + "winapi", ] [[package]] name = "parity-scale-codec" -version = "3.6.5" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dec8a8073036902368c2cdc0387e85ff9a37054d7e7c98e592145e0c92cd4fb" +checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -8964,11 +8495,11 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.6.5" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "312270ee71e1cd70289dacf597cab7b207aa107d2f28191c2ae45b2ece18a260" +checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", "syn 1.0.109", @@ -8992,7 +8523,7 @@ dependencies = [ "impl-trait-for-tuples", "lru 0.8.1", "parity-util-mem-derive", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "primitive-types", "smallvec", "winapi", @@ -9006,7 +8537,7 @@ checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ "proc-macro2", "syn 1.0.109", - "synstructure", + "synstructure 0.12.6", ] [[package]] @@ -9034,12 +8565,12 @@ dependencies = [ [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", - "parking_lot_core 0.9.9", + "parking_lot_core 0.9.10", ] [[package]] @@ -9058,15 +8589,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.2", "smallvec", - "windows-targets 0.48.5", + "windows-targets 0.52.5", ] [[package]] @@ -9077,9 +8608,9 @@ checksum = "7924d1d0ad836f665c9065e26d016c673ece3993f30d340068b16f282afc1156" [[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" @@ -9090,15 +8621,6 @@ dependencies = [ "crypto-mac 0.11.1", ] -[[package]] -name = "pbkdf2" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" -dependencies = [ - "digest 0.10.7", -] - [[package]] name = "pbkdf2" version = "0.12.2" @@ -9123,80 +8645,11 @@ dependencies = [ "base64 0.13.1", ] -[[package]] -name = "pem-rfc7468" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d159833a9105500e0398934e205e0773f0b27529557134ecfc51c27646adac" -dependencies = [ - "base64ct", -] - -[[package]] -name = "penpal-runtime" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "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", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-asset-tx-payment", - "pallet-assets", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collator-selection", - "pallet-session", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-xcm", - "parachains-common", - "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-common", - "scale-info", - "smallvec", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", -] - [[package]] name = "percent-encoding" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "peregrine-runtime" @@ -9241,6 +8694,7 @@ dependencies = [ "pallet-indices", "pallet-inflation", "pallet-membership", + "pallet-message-queue", "pallet-migration", "pallet-multisig", "pallet-preimage", @@ -9258,7 +8712,9 @@ dependencies = [ "pallet-web3-names", "pallet-xcm", "parachain-staking", + "parachains-common", "parity-scale-codec", + "polkadot-runtime-common", "public-credentials", "runtime-common", "scale-info", @@ -9266,6 +8722,7 @@ dependencies = [ "sp-block-builder", "sp-consensus-aura", "sp-core", + "sp-genesis-builder", "sp-inherents", "sp-io", "sp-offchain", @@ -9284,9 +8741,9 @@ dependencies = [ [[package]] name = "pest" -version = "2.7.5" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae9cee2a55a544be8b89dc6848072af97a20f2422603c10865be2a42b580fff5" +checksum = "560131c633294438da9f7c4b08189194b20946c8274c6b9e38881a7874dc8ee8" dependencies = [ "memchr", "thiserror", @@ -9295,9 +8752,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.7.5" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81d78524685f5ef2a3b3bd1cafbc9fcabb036253d9b1463e726a91cd16e2dfc2" +checksum = "26293c9193fbca7b1a3bf9b79dc1e388e927e6cacaa78b4a3ab705a1d3d41459" dependencies = [ "pest", "pest_generator", @@ -9305,22 +8762,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.5" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68bd1206e71118b5356dae5ddc61c8b11e28b09ef6a31acbd15ea48a28e0c227" +checksum = "3ec22af7d3fb470a85dd2ca96b7c577a1eb4ef6f1683a9fe9a8c16e136c04687" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "pest_meta" -version = "2.7.5" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c747191d4ad9e4a4ab9c8798f1e82a39affe7ef9648390b7e5548d18e099de6" +checksum = "d7a240022f37c361ec1878d646fc5b7d7c4d28d5946e1a80ad5a7a4f4ca0bdcd" dependencies = [ "once_cell", "pest", @@ -9329,32 +8786,32 @@ dependencies = [ [[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.1.0", + "indexmap 2.2.6", ] [[package]] name = "pin-project" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -9365,9 +8822,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -9377,54 +8834,40 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "piper" -version = "0.2.1" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "668d31b1c4eba19242f2088b2bf3316b82ca31082a8335764db4e083db7485d4" +checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391" dependencies = [ "atomic-waker", - "fastrand 2.0.1", + "fastrand 2.1.0", "futures-io", ] -[[package]] -name = "pkcs8" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" -dependencies = [ - "der 0.6.1", - "spki 0.6.0", -] - [[package]] name = "pkcs8" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ - "der 0.7.8", - "spki 0.7.2", + "der", + "spki", ] [[package]] name = "pkg-config" -version = "0.3.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" - -[[package]] -name = "platforms" -version = "3.2.0" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14e6ab3f592e6fb464fc9712d8d6e6912de6473954635fd76a589d832cffcbb0" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] name = "polkadot-approval-distribution" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "bitvec", "futures", "futures-timer", + "itertools 0.10.5", "polkadot-node-jaeger", "polkadot-node-metrics", "polkadot-node-network-protocol", @@ -9432,14 +8875,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand 0.8.5", + "rand", "tracing-gum", ] [[package]] name = "polkadot-availability-bitfield-distribution" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "always-assert", "futures", @@ -9448,14 +8891,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand 0.8.5", + "rand", "tracing-gum", ] [[package]] name = "polkadot-availability-distribution" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "derive_more", "fatality", @@ -9467,7 +8910,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand 0.8.5", + "rand", "schnellru", "sp-core", "sp-keystore", @@ -9477,9 +8920,10 @@ dependencies = [ [[package]] name = "polkadot-availability-recovery" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "async-trait", "fatality", "futures", "parity-scale-codec", @@ -9489,24 +8933,26 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand 0.8.5", + "rand", "sc-network", "schnellru", "thiserror", + "tokio", "tracing-gum", ] [[package]] name = "polkadot-cli" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "cfg-if", "clap", "frame-benchmarking-cli", "futures", "log", "polkadot-node-metrics", - "polkadot-performance-test", + "polkadot-node-primitives", "polkadot-service", "sc-cli", "sc-executor", @@ -9525,8 +8971,8 @@ dependencies = [ [[package]] name = "polkadot-collator-protocol" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "fatality", @@ -9547,8 +8993,8 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -9559,14 +9005,14 @@ dependencies = [ [[package]] name = "polkadot-dispute-distribution" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "derive_more", "fatality", "futures", "futures-timer", - "indexmap 1.9.3", + "indexmap 2.2.6", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -9584,8 +9030,8 @@ dependencies = [ [[package]] name = "polkadot-erasure-coding" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "polkadot-node-primitives", @@ -9598,8 +9044,8 @@ dependencies = [ [[package]] name = "polkadot-gossip-support" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "futures-timer", @@ -9607,20 +9053,21 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand 0.8.5", + "rand", "rand_chacha 0.3.1", "sc-network", "sc-network-common", "sp-application-crypto", "sp-core", + "sp-crypto-hashing", "sp-keystore", "tracing-gum", ] [[package]] name = "polkadot-network-bridge" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "always-assert", "async-trait", @@ -9628,7 +9075,7 @@ dependencies = [ "fatality", "futures", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "polkadot-node-metrics", "polkadot-node-network-protocol", "polkadot-node-subsystem", @@ -9642,8 +9089,8 @@ dependencies = [ [[package]] name = "polkadot-node-collation-generation" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "parity-scale-codec", @@ -9660,15 +9107,16 @@ dependencies = [ [[package]] name = "polkadot-node-core-approval-voting" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "derive_more", "futures", "futures-timer", + "itertools 0.10.5", "kvdb", - "merlin 2.0.1", + "merlin", "parity-scale-codec", "polkadot-node-jaeger", "polkadot-node-primitives", @@ -9676,9 +9124,12 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", + "rand", + "rand_chacha 0.3.1", + "rand_core 0.6.4", "sc-keystore", "schnellru", - "schnorrkel 0.9.1", + "schnorrkel 0.11.4", "sp-application-crypto", "sp-consensus", "sp-consensus-slots", @@ -9689,8 +9140,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-av-store" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "futures", @@ -9711,8 +9162,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-backing" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "fatality", @@ -9723,6 +9174,7 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-primitives", "polkadot-statement-table", + "schnellru", "sp-keystore", "thiserror", "tracing-gum", @@ -9730,8 +9182,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-bitfield-signing" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "polkadot-node-subsystem", @@ -9745,8 +9197,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-validation" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -9766,23 +9218,22 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-api" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "polkadot-node-metrics", "polkadot-node-subsystem", - "polkadot-primitives", + "polkadot-node-subsystem-types", "sc-client-api", "sc-consensus-babe", - "sp-blockchain", "tracing-gum", ] [[package]] name = "polkadot-node-core-chain-selection" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "futures-timer", @@ -9798,8 +9249,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-dispute-coordinator" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "fatality", "futures", @@ -9817,8 +9268,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-parachains-inherent" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -9834,8 +9285,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-prospective-parachains" -version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "7.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "fatality", @@ -9851,8 +9302,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "fatality", @@ -9868,12 +9319,16 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "always-assert", + "array-bytes 6.2.3", + "blake3", + "cfg-if", "futures", "futures-timer", + "is_executable", "libc", "parity-scale-codec", "pin-project", @@ -9881,23 +9336,24 @@ dependencies = [ "polkadot-node-core-pvf-common", "polkadot-node-metrics", "polkadot-node-primitives", + "polkadot-node-subsystem", "polkadot-parachain-primitives", "polkadot-primitives", - "rand 0.8.5", + "rand", "slotmap", "sp-core", "sp-maybe-compressed-blob", "sp-wasm-interface", - "substrate-build-script-utils", "tempfile", + "thiserror", "tokio", "tracing-gum", ] [[package]] name = "polkadot-node-core-pvf-checker" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "polkadot-node-primitives", @@ -9912,54 +9368,35 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-common" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "cfg-if", "cpu-time", "futures", "landlock", "libc", + "nix 0.27.1", "parity-scale-codec", "polkadot-parachain-primitives", "polkadot-primitives", "sc-executor", "sc-executor-common", "sc-executor-wasmtime", + "seccompiler", "sp-core", + "sp-crypto-hashing", "sp-externalities", "sp-io", "sp-tracing", - "tokio", - "tracing-gum", -] - -[[package]] -name = "polkadot-node-core-pvf-prepare-worker" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "futures", - "libc", - "parity-scale-codec", - "polkadot-node-core-pvf-common", - "polkadot-parachain-primitives", - "polkadot-primitives", - "rayon", - "sc-executor", - "sc-executor-common", - "sc-executor-wasmtime", - "sp-io", - "sp-maybe-compressed-blob", - "sp-tracing", - "tikv-jemalloc-ctl", - "tokio", + "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-runtime-api" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "polkadot-node-metrics", @@ -9973,14 +9410,14 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "lazy_static", "log", "mick-jaeger", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "polkadot-node-primitives", "polkadot-primitives", "sc-network", @@ -9991,8 +9428,8 @@ dependencies = [ [[package]] name = "polkadot-node-metrics" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bs58 0.5.1", "futures", @@ -10010,8 +9447,8 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-channel 1.9.0", "async-trait", @@ -10024,7 +9461,7 @@ dependencies = [ "polkadot-node-jaeger", "polkadot-node-primitives", "polkadot-primitives", - "rand 0.8.5", + "rand", "sc-authority-discovery", "sc-network", "strum 0.24.1", @@ -10034,15 +9471,16 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "bitvec", "bounded-vec", "futures", "parity-scale-codec", "polkadot-parachain-primitives", "polkadot-primitives", - "schnorrkel 0.9.1", + "schnorrkel 0.11.4", "serde", "sp-application-crypto", "sp-consensus-babe", @@ -10056,8 +9494,8 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "polkadot-node-jaeger", "polkadot-node-subsystem-types", @@ -10066,10 +9504,11 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", + "bitvec", "derive_more", "futures", "orchestra", @@ -10078,20 +9517,23 @@ dependencies = [ "polkadot-node-primitives", "polkadot-primitives", "polkadot-statement-table", + "sc-client-api", "sc-network", "sc-transaction-pool-api", "smallvec", "sp-api", "sp-authority-discovery", + "sp-blockchain", "sp-consensus-babe", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "polkadot-node-subsystem-util" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "derive_more", @@ -10102,17 +9544,19 @@ dependencies = [ "kvdb", "parity-db", "parity-scale-codec", - "parking_lot 0.11.2", + "parking_lot 0.12.3", "pin-project", "polkadot-node-jaeger", "polkadot-node-metrics", "polkadot-node-network-protocol", "polkadot-node-primitives", "polkadot-node-subsystem", + "polkadot-node-subsystem-types", "polkadot-overseer", "polkadot-primitives", "prioritized-metered-channel", - "rand 0.8.5", + "rand", + "sc-client-api", "schnellru", "sp-application-crypto", "sp-core", @@ -10123,21 +9567,20 @@ dependencies = [ [[package]] name = "polkadot-overseer" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", "futures-timer", "orchestra", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "polkadot-node-metrics", "polkadot-node-network-protocol", "polkadot-node-primitives", "polkadot-node-subsystem-types", "polkadot-primitives", "sc-client-api", - "schnellru", "sp-api", "sp-core", "tikv-jemalloc-ctl", @@ -10146,12 +9589,11 @@ dependencies = [ [[package]] name = "polkadot-parachain-primitives" -version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "7.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bounded-collections", "derive_more", - "frame-support", "parity-scale-codec", "polkadot-core-primitives", "scale-info", @@ -10159,33 +9601,17 @@ dependencies = [ "sp-core", "sp-runtime", "sp-std", -] - -[[package]] -name = "polkadot-performance-test" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "env_logger 0.9.3", - "log", - "polkadot-erasure-coding", - "polkadot-node-core-pvf-prepare-worker", - "polkadot-node-primitives", - "polkadot-primitives", - "quote", - "sc-executor-common", - "sp-maybe-compressed-blob", - "staging-kusama-runtime", - "thiserror", + "sp-weights", ] [[package]] name = "polkadot-primitives" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "hex-literal 0.4.1", + "log", "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain-primitives", @@ -10207,8 +9633,8 @@ dependencies = [ [[package]] name = "polkadot-rpc" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "jsonrpsee", "mmr-rpc", @@ -10224,6 +9650,7 @@ dependencies = [ "sc-consensus-grandpa", "sc-consensus-grandpa-rpc", "sc-rpc", + "sc-rpc-spec-v2", "sc-sync-state-rpc", "sc-transaction-pool-api", "sp-api", @@ -10237,107 +9664,10 @@ dependencies = [ "substrate-state-trie-migration-rpc", ] -[[package]] -name = "polkadot-runtime" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "bitvec", - "frame-benchmarking", - "frame-election-provider-support", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-bags-list", - "pallet-balances", - "pallet-bounties", - "pallet-child-bounties", - "pallet-collective", - "pallet-conviction-voting", - "pallet-democracy", - "pallet-election-provider-multi-phase", - "pallet-election-provider-support-benchmarking", - "pallet-elections-phragmen", - "pallet-fast-unstake", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-message-queue", - "pallet-multisig", - "pallet-nomination-pools", - "pallet-nomination-pools-benchmarking", - "pallet-nomination-pools-runtime-api", - "pallet-offences", - "pallet-offences-benchmarking", - "pallet-preimage", - "pallet-proxy", - "pallet-referenda", - "pallet-scheduler", - "pallet-session", - "pallet-session-benchmarking", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-staking-runtime-api", - "pallet-timestamp", - "pallet-tips", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "pallet-whitelist", - "pallet-xcm", - "pallet-xcm-benchmarks", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-constants", - "polkadot-runtime-parachains", - "rustc-hex", - "scale-info", - "serde", - "serde_derive", - "smallvec", - "sp-api", - "sp-arithmetic", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-consensus-beefy", - "sp-core", - "sp-inherents", - "sp-io", - "sp-mmr-primitives", - "sp-npos-elections", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-version", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "static_assertions", - "substrate-wasm-builder", -] - [[package]] name = "polkadot-runtime-common" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitvec", "frame-benchmarking", @@ -10347,11 +9677,14 @@ dependencies = [ "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-staking-reward-fn", @@ -10377,27 +9710,15 @@ dependencies = [ "sp-staking", "sp-std", "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", ] -[[package]] -name = "polkadot-runtime-constants" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "frame-support", - "polkadot-primitives", - "polkadot-runtime-common", - "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", -] - [[package]] name = "polkadot-runtime-metrics" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bs58 0.5.1", "frame-benchmarking", @@ -10409,8 +9730,8 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bitflags 1.3.2", "bitvec", @@ -10424,22 +9745,25 @@ dependencies = [ "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", - "rand 0.8.5", + "rand", "rand_chacha 0.3.1", "rustc-hex", "scale-info", "serde", "sp-api", "sp-application-crypto", + "sp-arithmetic", "sp-core", "sp-inherents", "sp-io", @@ -10455,8 +9779,8 @@ dependencies = [ [[package]] name = "polkadot-service" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "frame-benchmarking", @@ -10478,6 +9802,7 @@ dependencies = [ "pallet-transaction-payment-rpc-runtime-api", "parity-db", "parity-scale-codec", + "parking_lot 0.12.3", "polkadot-approval-distribution", "polkadot-availability-bitfield-distribution", "polkadot-availability-distribution", @@ -10511,8 +9836,6 @@ dependencies = [ "polkadot-parachain-primitives", "polkadot-primitives", "polkadot-rpc", - "polkadot-runtime", - "polkadot-runtime-common", "polkadot-runtime-parachains", "polkadot-statement-distribution", "rococo-runtime", @@ -10541,130 +9864,68 @@ dependencies = [ "sc-transaction-pool-api", "schnellru", "serde", - "serde_json", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-consensus-beefy", - "sp-consensus-grandpa", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keyring", - "sp-keystore", - "sp-mmr-primitives", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-state-machine", - "sp-storage", - "sp-timestamp", - "sp-transaction-pool", - "sp-version", - "sp-weights", - "staging-kusama-runtime", - "substrate-prometheus-endpoint", - "thiserror", - "tracing-gum", - "westend-runtime", -] - -[[package]] -name = "polkadot-statement-distribution" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "arrayvec 0.7.4", - "bitvec", - "fatality", - "futures", - "futures-timer", - "indexmap 1.9.3", - "parity-scale-codec", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-types", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-keystore", - "sp-staking", - "thiserror", - "tracing-gum", -] - -[[package]] -name = "polkadot-statement-table" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "parity-scale-codec", - "polkadot-primitives", - "sp-core", -] - -[[package]] -name = "polkadot-test-runtime" -version = "0.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "bitvec", - "frame-election-provider-support", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-grandpa", - "pallet-indices", - "pallet-offences", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-vesting", - "pallet-xcm", - "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "rustc-hex", - "scale-info", - "serde", - "serde_derive", - "smallvec", + "serde_json", "sp-api", "sp-authority-discovery", "sp-block-builder", + "sp-blockchain", + "sp-consensus", "sp-consensus-babe", "sp-consensus-beefy", + "sp-consensus-grandpa", "sp-core", "sp-inherents", "sp-io", + "sp-keyring", + "sp-keystore", "sp-mmr-primitives", "sp-offchain", "sp-runtime", "sp-session", - "sp-staking", - "sp-std", + "sp-state-machine", + "sp-storage", + "sp-timestamp", "sp-transaction-pool", "sp-version", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", - "test-runtime-constants", + "sp-weights", + "substrate-prometheus-endpoint", + "thiserror", + "tracing-gum", + "westend-runtime", +] + +[[package]] +name = "polkadot-statement-distribution" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "arrayvec 0.7.4", + "bitvec", + "fatality", + "futures", + "futures-timer", + "indexmap 2.2.6", + "parity-scale-codec", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-keystore", + "sp-staking", + "thiserror", + "tracing-gum", +] + +[[package]] +name = "polkadot-statement-table" +version = "8.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "parity-scale-codec", + "polkadot-primitives", + "sp-core", + "tracing-gum", ] [[package]] @@ -10679,22 +9940,23 @@ dependencies = [ "concurrent-queue", "libc", "log", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "windows-sys 0.48.0", ] [[package]] name = "polling" -version = "3.3.0" +version = "3.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531" +checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b" dependencies = [ "cfg-if", "concurrent-queue", - "pin-project-lite 0.2.13", - "rustix 0.38.25", + "hermit-abi 0.4.0", + "pin-project-lite 0.2.14", + "rustix 0.38.34", "tracing", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -10704,39 +9966,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" dependencies = [ "cpufeatures", - "opaque-debug 0.3.0", - "universal-hash 0.5.1", -] - -[[package]] -name = "polyval" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" -dependencies = [ - "cfg-if", - "cpufeatures", - "opaque-debug 0.3.0", - "universal-hash 0.4.1", + "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", - "universal-hash 0.5.1", + "opaque-debug 0.3.1", + "universal-hash", ] [[package]] name = "portable-atomic" -version = "1.5.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bccab0e7fd7cc19f820a1c8c91720af652d0c88dc9664dd72aef2614f04af3b" +checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" [[package]] name = "powerfmt" @@ -10792,12 +10042,12 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.15" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" +checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" dependencies = [ "proc-macro2", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -10817,9 +10067,9 @@ dependencies = [ [[package]] name = "prioritized-metered-channel" -version = "0.2.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382698e48a268c832d0b181ed438374a6bb708a82a8ca273bb0f61c74cf209c4" +checksum = "a172e6cc603231f2cf004232eabcecccc0da53ba576ab286ef7baa0cfc7927ad" dependencies = [ "coarsetime", "crossbeam-queue", @@ -10833,12 +10083,30 @@ 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", + "toml 0.5.11", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" +dependencies = [ + "toml_edit 0.20.7", +] + +[[package]] +name = "proc-macro-crate" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +dependencies = [ + "toml_edit 0.21.1", ] [[package]] @@ -10867,35 +10135,35 @@ dependencies = [ [[package]] name = "proc-macro-warning" -version = "0.4.2" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" +checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "proc-macro2" -version = "1.0.69" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" +checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" dependencies = [ "unicode-ident", ] [[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.1", + "parking_lot 0.12.3", "thiserror", ] @@ -10907,7 +10175,7 @@ checksum = "5d6fa99d535dd930d1249e6c79cb3c2915f9172a540fe2b02a4c8f9ca954721e" dependencies = [ "dtoa", "itoa", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "prometheus-client-derive-encode", ] @@ -10919,7 +10187,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -10929,7 +10197,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" dependencies = [ "bytes", - "prost-derive", + "prost-derive 0.11.9", +] + +[[package]] +name = "prost" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" +dependencies = [ + "bytes", + "prost-derive 0.12.6", ] [[package]] @@ -10939,14 +10217,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" dependencies = [ "bytes", - "heck", + "heck 0.4.1", "itertools 0.10.5", "lazy_static", "log", "multimap", "petgraph", "prettyplease 0.1.25", - "prost", + "prost 0.11.9", "prost-types", "regex", "syn 1.0.109", @@ -10967,13 +10245,26 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "prost-derive" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" +dependencies = [ + "anyhow", + "itertools 0.12.1", + "proc-macro2", + "quote", + "syn 2.0.66", +] + [[package]] name = "prost-types" version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13" dependencies = [ - "prost", + "prost 0.11.9", ] [[package]] @@ -11052,7 +10343,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94b0b33c13a79f669c85defaf4c275dc86a0c0372807d0ca3d78e0bb87274863" dependencies = [ "bytes", - "rand 0.8.5", + "rand", "ring 0.16.20", "rustc-hash", "rustls 0.20.9", @@ -11060,14 +10351,14 @@ dependencies = [ "thiserror", "tinyvec", "tracing", - "webpki 0.22.4", + "webpki", ] [[package]] name = "quote" -version = "1.0.33" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -11078,19 +10369,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - [[package]] name = "rand" version = "0.8.5" @@ -11137,16 +10415,17 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.11", + "getrandom 0.2.15", ] [[package]] -name = "rand_hc" -version = "0.2.0" +name = "rand_distr" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" dependencies = [ - "rand_core 0.5.1", + "num-traits", + "rand", ] [[package]] @@ -11166,9 +10445,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", @@ -11176,27 +10455,14 @@ 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", ] -[[package]] -name = "rcgen" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6413f3de1edee53342e6138e75b56d32e7bc6e332b3bd62d497b1929d4cfbcdd" -dependencies = [ - "pem", - "ring 0.16.20", - "time", - "x509-parser 0.13.2", - "yasna", -] - [[package]] name = "rcgen" version = "0.10.0" @@ -11220,64 +10486,63 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.3.5" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "redox_syscall" -version = "0.4.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.5.0", ] [[package]] name = "redox_users" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" +checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" dependencies = [ - "getrandom 0.2.11", + "getrandom 0.2.15", "libredox", "thiserror", ] [[package]] name = "reed-solomon-novelpoly" -version = "1.0.2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58130877ca403ab42c864fbac74bb319a0746c07a634a92a5cfc7f54af272582" +checksum = "87413ebb313323d431e85d0afc5a68222aaed972843537cbfe5f061cf1b4bcab" dependencies = [ "derive_more", "fs-err", - "itertools 0.11.0", "static_init", "thiserror", ] [[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", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -11294,14 +10559,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.2" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.3", - "regex-syntax 0.8.2", + "regex-automata 0.4.7", + "regex-syntax 0.8.4", ] [[package]] @@ -11315,13 +10580,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.3" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.2", + "regex-syntax 0.8.4", ] [[package]] @@ -11332,9 +10597,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "resolv-conf" @@ -11346,17 +10611,6 @@ dependencies = [ "quick-error", ] -[[package]] -name = "rfc6979" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" -dependencies = [ - "crypto-bigint 0.4.9", - "hmac 0.12.1", - "zeroize", -] - [[package]] name = "rfc6979" version = "0.4.0" @@ -11364,7 +10618,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ "hmac 0.12.1", - "subtle", + "subtle 2.4.1", ] [[package]] @@ -11384,16 +10638,26 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.5" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", - "getrandom 0.2.11", + "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]] +name = "ripemd" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" +dependencies = [ + "digest 0.10.7", ] [[package]] @@ -11416,14 +10680,32 @@ dependencies = [ "librocksdb-sys", ] +[[package]] +name = "rococo-emulated-chain" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "emulated-integration-tests-common", + "parachains-common", + "polkadot-primitives", + "rococo-runtime", + "rococo-runtime-constants", + "sc-consensus-grandpa", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-consensus-beefy", + "sp-core", +] + [[package]] name = "rococo-runtime" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "binary-merkle-tree", "frame-benchmarking", "frame-executive", + "frame-metadata-hash-extension", "frame-support", "frame-system", "frame-system-benchmarking", @@ -11431,6 +10713,7 @@ dependencies = [ "frame-try-runtime", "hex-literal 0.4.1", "log", + "pallet-asset-rate", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", @@ -11440,6 +10723,7 @@ dependencies = [ "pallet-bounties", "pallet-child-bounties", "pallet-collective", + "pallet-conviction-voting", "pallet-democracy", "pallet-elections-phragmen", "pallet-grandpa", @@ -11454,7 +10738,10 @@ dependencies = [ "pallet-offences", "pallet-preimage", "pallet-proxy", + "pallet-ranked-collective", "pallet-recovery", + "pallet-referenda", + "pallet-root-testing", "pallet-scheduler", "pallet-session", "pallet-society", @@ -11468,6 +10755,7 @@ dependencies = [ "pallet-treasury", "pallet-utility", "pallet-vesting", + "pallet-whitelist", "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", @@ -11481,11 +10769,13 @@ dependencies = [ "serde_derive", "smallvec", "sp-api", + "sp-arithmetic", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", "sp-consensus-beefy", "sp-core", + "sp-genesis-builder", "sp-inherents", "sp-io", "sp-mmr-primitives", @@ -11506,8 +10796,8 @@ dependencies = [ [[package]] name = "rococo-runtime-constants" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "polkadot-primitives", @@ -11516,8 +10806,16 @@ dependencies = [ "sp-core", "sp-runtime", "sp-weights", + "staging-xcm", + "staging-xcm-builder", ] +[[package]] +name = "route-recognizer" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afab94fb28594581f62d981211a9a4d53cc8130bbcbbb89a0440d9b8e81a7746" + [[package]] name = "rpassword" version = "7.3.1" @@ -11529,17 +10827,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "rtcp" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1919efd6d4a6a85d13388f9487549bb8e359f17198cc03ffd72f79b553873691" -dependencies = [ - "bytes", - "thiserror", - "webrtc-util", -] - [[package]] name = "rtnetlink" version = "0.10.1" @@ -11550,7 +10837,7 @@ dependencies = [ "log", "netlink-packet-route", "netlink-proto", - "nix", + "nix 0.24.3", "thiserror", "tokio", ] @@ -11565,26 +10852,11 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "rtp" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2a095411ff00eed7b12e4c6a118ba984d113e1079582570d56a5ee723f11f80" -dependencies = [ - "async-trait", - "bytes", - "rand 0.8.5", - "serde", - "thiserror", - "webrtc-util", -] - [[package]] name = "runtime-common" version = "1.14.0-dev" dependencies = [ "attestation", - "cumulus-pallet-dmp-queue", "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", @@ -11610,6 +10882,7 @@ dependencies = [ "parachain-staking", "parity-scale-codec", "polkadot-parachain-primitives", + "polkadot-runtime-common", "public-credentials", "scale-info", "smallvec", @@ -11627,9 +10900,9 @@ dependencies = [ [[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" @@ -11649,7 +10922,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.20", + "semver 1.0.23", ] [[package]] @@ -11691,28 +10964,15 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.25" +version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.5.0", "errno", "libc", - "linux-raw-sys 0.4.11", - "windows-sys 0.48.0", -] - -[[package]] -name = "rustls" -version = "0.19.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" -dependencies = [ - "base64 0.13.1", - "log", - "ring 0.16.20", - "sct 0.6.1", - "webpki 0.21.4", + "linux-raw-sys 0.4.14", + "windows-sys 0.52.0", ] [[package]] @@ -11723,20 +10983,20 @@ checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" dependencies = [ "log", "ring 0.16.20", - "sct 0.7.1", - "webpki 0.22.4", + "sct", + "webpki", ] [[package]] name = "rustls" -version = "0.21.9" +version = "0.21.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "629648aced5775d558af50b2b4c7b02983a04b312126d45eeead26e7caa498b9" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", - "ring 0.17.5", + "ring 0.17.8", "rustls-webpki", - "sct 0.7.1", + "sct", ] [[package]] @@ -11757,7 +11017,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64 0.21.5", + "base64 0.21.7", ] [[package]] @@ -11766,15 +11026,15 @@ version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ - "ring 0.17.5", + "ring 0.17.8", "untrusted 0.9.0", ] [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "ruzstd" @@ -11800,15 +11060,15 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.15" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "safe_arch" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f398075ce1e6a179b46f51bd88d0598b92b00d3551f1a2d4ac49e771b56ac354" +checksum = "c3460605018fdc9612bce72735cba0d27efbcd9904780d44c7e3a9948f96148a" dependencies = [ "bytemuck", ] @@ -11824,8 +11084,8 @@ dependencies = [ [[package]] name = "sc-allocator" -version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "log", "sp-core", @@ -11835,8 +11095,8 @@ dependencies = [ [[package]] name = "sc-authority-discovery" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -11844,11 +11104,12 @@ dependencies = [ "ip_network", "libp2p", "log", - "multihash", + "multihash 0.18.1", + "multihash-codetable", "parity-scale-codec", - "prost", + "prost 0.12.6", "prost-build", - "rand 0.8.5", + "rand", "sc-client-api", "sc-network", "sp-api", @@ -11863,15 +11124,14 @@ dependencies = [ [[package]] name = "sc-basic-authorship" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "futures-timer", "log", "parity-scale-codec", "sc-block-builder", - "sc-client-api", "sc-proposer-metrics", "sc-telemetry", "sc-transaction-pool-api", @@ -11886,25 +11146,29 @@ dependencies = [ [[package]] name = "sc-block-builder" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", - "sc-client-api", "sp-api", "sp-block-builder", "sp-blockchain", "sp-core", "sp-inherents", "sp-runtime", + "sp-trie", ] [[package]] name = "sc-chain-spec" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "memmap2", + "array-bytes 6.2.3", + "docify", + "log", + "memmap2 0.9.4", + "parity-scale-codec", "sc-chain-spec-derive", "sc-client-api", "sc-executor", @@ -11914,41 +11178,47 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-core", + "sp-crypto-hashing", + "sp-genesis-builder", + "sp-io", "sp-runtime", "sp-state-machine", ] [[package]] name = "sc-chain-spec-derive" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "sc-cli" -version = "0.31.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.37.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", + "bip39", "chrono", "clap", "fdlimit", "futures", + "itertools 0.10.5", "libp2p-identity", "log", "names", "parity-scale-codec", - "rand 0.8.5", + "rand", "regex", "rpassword", "sc-client-api", "sc-client-db", "sc-keystore", + "sc-mixnet", "sc-network", "sc-service", "sc-telemetry", @@ -11964,20 +11234,19 @@ dependencies = [ "sp-runtime", "sp-version", "thiserror", - "tiny-bip39", "tokio", ] [[package]] name = "sc-client-api" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "fnv", "futures", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-executor", "sc-transaction-pool-api", "sc-utils", @@ -11991,13 +11260,14 @@ dependencies = [ "sp-state-machine", "sp-statement-store", "sp-storage", + "sp-trie", "substrate-prometheus-endpoint", ] [[package]] name = "sc-client-db" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "hash-db", "kvdb", @@ -12007,7 +11277,7 @@ dependencies = [ "log", "parity-db", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-client-api", "sc-state-db", "schnellru", @@ -12022,8 +11292,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -12031,7 +11301,7 @@ dependencies = [ "libp2p-identity", "log", "mockall", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-client-api", "sc-utils", "serde", @@ -12047,8 +11317,8 @@ dependencies = [ [[package]] name = "sc-consensus-aura" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -12076,8 +11346,8 @@ dependencies = [ [[package]] name = "sc-consensus-babe" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "fork-tree", @@ -12087,14 +11357,13 @@ dependencies = [ "num-rational", "num-traits", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-client-api", "sc-consensus", "sc-consensus-epochs", "sc-consensus-slots", "sc-telemetry", "sc-transaction-pool-api", - "scale-info", "sp-api", "sp-application-crypto", "sp-block-builder", @@ -12103,6 +11372,7 @@ dependencies = [ "sp-consensus-babe", "sp-consensus-slots", "sp-core", + "sp-crypto-hashing", "sp-inherents", "sp-keystore", "sp-runtime", @@ -12112,8 +11382,8 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "jsonrpsee", @@ -12134,17 +11404,17 @@ dependencies = [ [[package]] name = "sc-consensus-beefy" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "async-channel 1.9.0", "async-trait", "fnv", "futures", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-client-api", "sc-consensus", "sc-network", @@ -12158,24 +11428,26 @@ dependencies = [ "sp-consensus", "sp-consensus-beefy", "sp-core", + "sp-crypto-hashing", "sp-keystore", "sp-mmr-primitives", "sp-runtime", "substrate-prometheus-endpoint", "thiserror", + "tokio", "wasm-timer", ] [[package]] name = "sc-consensus-beefy-rpc" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-consensus-beefy", "sc-rpc", "serde", @@ -12187,8 +11459,8 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "fork-tree", "parity-scale-codec", @@ -12200,11 +11472,11 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" -version = "0.14.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.20.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "ahash 0.8.6", - "array-bytes", + "ahash 0.8.11", + "array-bytes 6.2.3", "async-trait", "dyn-clone", "finality-grandpa", @@ -12213,8 +11485,8 @@ dependencies = [ "futures-timer", "log", "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", + "parking_lot 0.12.3", + "rand", "sc-block-builder", "sc-chain-spec", "sc-client-api", @@ -12222,6 +11494,7 @@ dependencies = [ "sc-network", "sc-network-common", "sc-network-gossip", + "sc-network-sync", "sc-telemetry", "sc-transaction-pool-api", "sc-utils", @@ -12233,6 +11506,7 @@ dependencies = [ "sp-consensus", "sp-consensus-grandpa", "sp-core", + "sp-crypto-hashing", "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", @@ -12241,8 +11515,8 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa-rpc" -version = "0.14.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.20.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "finality-grandpa", "futures", @@ -12261,8 +11535,8 @@ dependencies = [ [[package]] name = "sc-consensus-slots" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -12284,11 +11558,11 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.27.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-executor-common", "sc-executor-wasmtime", "schnellru", @@ -12306,8 +11580,8 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.24.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.30.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -12318,13 +11592,14 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" -version = "0.24.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.30.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "anyhow", "cfg-if", "libc", "log", + "parking_lot 0.12.3", "rustix 0.36.17", "sc-allocator", "sc-executor-common", @@ -12335,8 +11610,8 @@ dependencies = [ [[package]] name = "sc-informant" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "ansi_term", "futures", @@ -12345,17 +11620,18 @@ dependencies = [ "sc-client-api", "sc-network", "sc-network-common", + "sc-network-sync", "sp-blockchain", "sp-runtime", ] [[package]] name = "sc-keystore" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "26.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", - "parking_lot 0.12.1", + "array-bytes 6.2.3", + "parking_lot 0.12.3", "serde_json", "sp-application-crypto", "sp-core", @@ -12363,12 +11639,41 @@ dependencies = [ "thiserror", ] +[[package]] +name = "sc-mixnet" +version = "0.5.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "array-bytes 4.2.0", + "arrayvec 0.7.4", + "blake2 0.10.6", + "bytes", + "futures", + "futures-timer", + "libp2p-identity", + "log", + "mixnet", + "multiaddr", + "parity-scale-codec", + "parking_lot 0.12.3", + "sc-client-api", + "sc-network", + "sc-transaction-pool-api", + "sp-api", + "sp-consensus", + "sp-core", + "sp-keystore", + "sp-mixnet", + "sp-runtime", + "thiserror", +] + [[package]] name = "sc-network" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "async-channel 1.9.0", "async-trait", "asynchronous-codec", @@ -12383,10 +11688,10 @@ dependencies = [ "log", "mockall", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "partial_sort", "pin-project", - "rand 0.8.5", + "rand", "sc-client-api", "sc-network-common", "sc-utils", @@ -12399,6 +11704,8 @@ dependencies = [ "sp-runtime", "substrate-prometheus-endpoint", "thiserror", + "tokio", + "tokio-stream", "unsigned-varint", "wasm-timer", "zeroize", @@ -12406,15 +11713,15 @@ dependencies = [ [[package]] name = "sc-network-bitswap" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-channel 1.9.0", "cid", "futures", "libp2p-identity", "log", - "prost", + "prost 0.12.6", "prost-build", "sc-client-api", "sc-network", @@ -12426,8 +11733,8 @@ dependencies = [ [[package]] name = "sc-network-common" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -12443,16 +11750,17 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.11", "futures", "futures-timer", "libp2p", "log", "sc-network", "sc-network-common", + "sc-network-sync", "schnellru", "sp-runtime", "substrate-prometheus-endpoint", @@ -12461,16 +11769,16 @@ dependencies = [ [[package]] name = "sc-network-light" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "async-channel 1.9.0", "futures", "libp2p-identity", "log", "parity-scale-codec", - "prost", + "prost 0.12.6", "prost-build", "sc-client-api", "sc-network", @@ -12482,10 +11790,10 @@ dependencies = [ [[package]] name = "sc-network-sync" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "async-channel 1.9.0", "async-trait", "fork-tree", @@ -12495,7 +11803,7 @@ dependencies = [ "log", "mockall", "parity-scale-codec", - "prost", + "prost 0.12.6", "prost-build", "sc-client-api", "sc-consensus", @@ -12512,20 +11820,23 @@ dependencies = [ "sp-runtime", "substrate-prometheus-endpoint", "thiserror", + "tokio", + "tokio-stream", ] [[package]] name = "sc-network-transactions" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "futures", "libp2p", "log", "parity-scale-codec", "sc-network", "sc-network-common", + "sc-network-sync", "sc-utils", "sp-consensus", "sp-runtime", @@ -12534,10 +11845,10 @@ dependencies = [ [[package]] name = "sc-offchain" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "bytes", "fnv", "futures", @@ -12549,8 +11860,8 @@ dependencies = [ "num_cpus", "once_cell", "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", + "parking_lot 0.12.3", + "rand", "sc-client-api", "sc-network", "sc-network-common", @@ -12568,8 +11879,8 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.14.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -12577,17 +11888,18 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-block-builder", "sc-chain-spec", "sc-client-api", + "sc-mixnet", "sc-rpc-api", "sc-tracing", "sc-transaction-pool-api", @@ -12608,12 +11920,13 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "jsonrpsee", "parity-scale-codec", "sc-chain-spec", + "sc-mixnet", "sc-transaction-pool-api", "scale-info", "serde", @@ -12627,8 +11940,8 @@ dependencies = [ [[package]] name = "sc-rpc-server" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "12.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "http", "jsonrpsee", @@ -12642,25 +11955,27 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", + "array-bytes 6.2.3", "futures", "futures-util", "hex", "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-chain-spec", "sc-client-api", + "sc-rpc", "sc-transaction-pool-api", "sc-utils", "serde", "sp-api", "sp-blockchain", "sp-core", + "sp-rpc", "sp-runtime", "sp-version", "thiserror", @@ -12670,8 +11985,8 @@ dependencies = [ [[package]] name = "sc-service" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "directories", @@ -12681,10 +11996,9 @@ dependencies = [ "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "pin-project", - "rand 0.8.5", - "sc-block-builder", + "rand", "sc-chain-spec", "sc-client-api", "sc-client-db", @@ -12734,24 +12048,23 @@ dependencies = [ [[package]] name = "sc-state-db" -version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.31.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sp-core", ] [[package]] name = "sc-storage-monitor" -version = "0.11.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "clap", "fs4", "log", - "sc-client-db", "sp-core", "thiserror", "tokio", @@ -12759,8 +12072,8 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -12778,35 +12091,37 @@ dependencies = [ [[package]] name = "sc-sysinfo" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "derive_more", "futures", "libc", "log", - "rand 0.8.5", + "rand", "rand_pcg", "regex", "sc-telemetry", "serde", "serde_json", "sp-core", + "sp-crypto-hashing", "sp-io", "sp-std", ] [[package]] name = "sc-telemetry" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "chrono", "futures", "libp2p", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "pin-project", - "rand 0.8.5", + "rand", "sc-utils", "serde", "serde_json", @@ -12816,16 +12131,17 @@ dependencies = [ [[package]] name = "sc-tracing" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "ansi_term", - "atty", "chrono", + "is-terminal", "lazy_static", "libc", "log", - "parking_lot 0.12.1", + "parity-scale-codec", + "parking_lot 0.12.3", "regex", "rustc-hash", "sc-client-api", @@ -12839,25 +12155,25 @@ dependencies = [ "sp-tracing", "thiserror", "tracing", - "tracing-log", - "tracing-subscriber", + "tracing-log 0.1.4", + "tracing-subscriber 0.2.25", ] [[package]] name = "sc-tracing-proc-macro" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "sc-transaction-pool" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -12865,7 +12181,7 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sc-client-api", "sc-transaction-pool-api", "sc-utils", @@ -12873,6 +12189,7 @@ dependencies = [ "sp-api", "sp-blockchain", "sp-core", + "sp-crypto-hashing", "sp-runtime", "sp-tracing", "sp-transaction-pool", @@ -12882,8 +12199,8 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -12898,24 +12215,24 @@ dependencies = [ [[package]] name = "sc-utils" -version = "9.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-channel 1.9.0", "futures", "futures-timer", "lazy_static", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "prometheus", "sp-arithmetic", ] [[package]] name = "scale-info" -version = "2.10.0" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7d66a1128282b7ef025a8ead62a4a9fcf017382ec53b8ffbf4d7bf77bd3c60" +checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" dependencies = [ "bitvec", "cfg-if", @@ -12927,11 +12244,11 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.10.0" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abf2c68b89cafb3b8d918dd07b42be0da66ff202cf1155c5739a4e0c1ea0dc19" +checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", "syn 1.0.109", @@ -12939,55 +12256,56 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "schnellru" -version = "0.2.1" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" +checksum = "c9a8ef13a93c54d20580de1e5c413e624e53121d42fc7e2c11d10ef7f8b02367" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.11", "cfg-if", "hashbrown 0.13.2", ] [[package]] name = "schnorrkel" -version = "0.9.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" +checksum = "844b7645371e6ecdf61ff246ba1958c29e802881a749ae3fb1993675d210d28d" dependencies = [ "arrayref", - "arrayvec 0.5.2", - "curve25519-dalek 2.1.3", - "getrandom 0.1.16", - "merlin 2.0.1", - "rand 0.7.3", - "rand_core 0.5.1", - "sha2 0.8.2", - "subtle", + "arrayvec 0.7.4", + "curve25519-dalek-ng", + "merlin", + "rand_core 0.6.4", + "sha2 0.9.9", + "subtle-ng", "zeroize", ] [[package]] name = "schnorrkel" -version = "0.10.2" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "844b7645371e6ecdf61ff246ba1958c29e802881a749ae3fb1993675d210d28d" +checksum = "8de18f6d8ba0aad7045f5feae07ec29899c1112584a38509a84ad7b04451eaa0" dependencies = [ + "aead", "arrayref", "arrayvec 0.7.4", - "curve25519-dalek-ng", - "merlin 3.0.0", + "curve25519-dalek 4.1.3", + "getrandom_or_panic", + "merlin", "rand_core 0.6.4", - "sha2 0.9.9", - "subtle-ng", + "serde_bytes", + "sha2 0.10.8", + "subtle 2.4.1", "zeroize", ] @@ -13003,80 +12321,53 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" -[[package]] -name = "sct" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" -dependencies = [ - "ring 0.16.20", - "untrusted 0.7.1", -] - [[package]] name = "sct" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ - "ring 0.17.5", + "ring 0.17.8", "untrusted 0.9.0", ] -[[package]] -name = "sdp" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d22a5ef407871893fd72b4562ee15e4742269b173959db4b8df6f538c414e13" -dependencies = [ - "rand 0.8.5", - "substring", - "thiserror", - "url", -] - [[package]] name = "sec1" -version = "0.3.0" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ - "base16ct 0.1.1", - "der 0.6.1", + "base16ct", + "der", "generic-array 0.14.7", - "pkcs8 0.9.0", - "subtle", + "pkcs8", + "subtle 2.4.1", "zeroize", ] [[package]] -name = "sec1" -version = "0.7.3" +name = "seccompiler" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +checksum = "345a3e4dddf721a478089d4697b83c6c0a8f5bf16086f6c13397e4534eb6e2e5" dependencies = [ - "base16ct 0.2.0", - "der 0.7.8", - "generic-array 0.14.7", - "pkcs8 0.10.2", - "subtle", - "zeroize", + "libc", ] [[package]] name = "secp256k1" -version = "0.24.3" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" +checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10" dependencies = [ "secp256k1-sys", ] [[package]] name = "secp256k1-sys" -version = "0.6.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83080e2c2fc1006e625be82e5d1eb6a43b7fd9578b617fcc55814daf286bba4b" +checksum = "e5d1746aae42c19d583c3c1a8c646bfad910498e2051c551a7f2e3c0c9fbb7eb" dependencies = [ "cc", ] @@ -13092,11 +12383,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.2" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" +checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.5.0", "core-foundation", "core-foundation-sys", "libc", @@ -13105,9 +12396,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" +checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" dependencies = [ "core-foundation-sys", "libc", @@ -13124,9 +12415,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.20" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" dependencies = [ "serde", ] @@ -13139,29 +12430,47 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.193" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" +checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ "serde_derive", ] +[[package]] +name = "serde-big-array" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd31f59f6fe2b0c055371bb2f16d7f0aa7d8881676c04a55b1596d1a17cd10a4" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_bytes" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +dependencies = [ + "serde", +] + [[package]] name = "serde_derive" -version = "1.0.193" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" +checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "serde_json" -version = "1.0.108" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", "ryu", @@ -13170,9 +12479,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.4" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12022b835073e5b11e90a14f86838ceb1c8fb0325b72416845c487ac0fa95e80" +checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" dependencies = [ "serde", ] @@ -13187,7 +12496,7 @@ dependencies = [ "cfg-if", "cpufeatures", "digest 0.9.0", - "opaque-debug 0.3.0", + "opaque-debug 0.3.1", ] [[package]] @@ -13201,18 +12510,6 @@ dependencies = [ "digest 0.10.7", ] -[[package]] -name = "sha2" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - [[package]] name = "sha2" version = "0.9.9" @@ -13223,7 +12520,7 @@ dependencies = [ "cfg-if", "cpufeatures", "digest 0.9.0", - "opaque-debug 0.3.0", + "opaque-debug 0.3.1", ] [[package]] @@ -13258,29 +12555,19 @@ dependencies = [ [[package]] name = "shlex" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "signal-hook-registry" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] -[[package]] -name = "signature" -version = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" -dependencies = [ - "digest 0.10.7", - "rand_core 0.6.4", -] - [[package]] name = "signature" version = "2.2.0" @@ -13304,6 +12591,12 @@ dependencies = [ "wide", ] +[[package]] +name = "simple-mermaid" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "620a1d43d70e142b1d46a929af51d44f383db9c7a2ec122de2cd992ccfcf3c18" + [[package]] name = "siphasher" version = "0.3.11" @@ -13327,8 +12620,8 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "slot-range-helper" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "enumn", "parity-scale-codec", @@ -13339,18 +12632,18 @@ dependencies = [ [[package]] name = "slotmap" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1e08e261d0e8f5c43123b7adf3e4ca1690d655377ac93a03b2c9d3e98de1342" +checksum = "dbff4acf519f630b3a3ddcfaea6c06b42174d9a44bc70c620e9ed1649d58b82a" dependencies = [ "version_check", ] [[package]] name = "smallvec" -version = "1.11.2" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "smol" @@ -13378,7 +12671,7 @@ dependencies = [ "arrayvec 0.7.4", "async-lock 2.8.0", "atomic-take", - "base64 0.21.5", + "base64 0.21.7", "bip39", "blake2-rfc", "bs58 0.5.1", @@ -13391,12 +12684,12 @@ dependencies = [ "fnv", "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.2", + "hashbrown 0.14.5", "hex", "hmac 0.12.1", "itertools 0.11.0", "libsecp256k1", - "merlin 3.0.0", + "merlin", "no-std-net", "nom", "num-bigint", @@ -13405,7 +12698,7 @@ dependencies = [ "pbkdf2 0.12.2", "pin-project", "poly1305", - "rand 0.8.5", + "rand", "rand_chacha 0.3.1", "ruzstd", "schnorrkel 0.10.2", @@ -13419,7 +12712,7 @@ dependencies = [ "soketto", "twox-hash", "wasmi", - "x25519-dalek 2.0.0", + "x25519-dalek 2.0.1", "zeroize", ] @@ -13431,7 +12724,7 @@ checksum = "256b5bad1d6b49045e95fe87492ce73d5af81545d8b4d8318a872d2007024c33" dependencies = [ "async-channel 1.9.0", "async-lock 2.8.0", - "base64 0.21.5", + "base64 0.21.7", "blake2-rfc", "derive_more", "either", @@ -13440,15 +12733,15 @@ dependencies = [ "futures-channel", "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.2", + "hashbrown 0.14.5", "hex", "itertools 0.11.0", "log", "lru 0.11.1", "no-std-net", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "pin-project", - "rand 0.8.5", + "rand", "rand_chacha 0.3.1", "serde", "serde_json", @@ -13460,26 +12753,143 @@ dependencies = [ ] [[package]] -name = "snap" -version = "1.1.0" +name = "snap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b6b67fb9a61334225b5b790716f609cd58395f895b3fe8b328786812a40bc3b" + +[[package]] +name = "snow" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "850948bee068e713b8ab860fe1adc4d109676ab4c3b621fd8147f06b261f2f85" +dependencies = [ + "aes-gcm", + "blake2 0.10.6", + "chacha20poly1305", + "curve25519-dalek 4.1.3", + "rand_core 0.6.4", + "ring 0.17.8", + "rustc_version", + "sha2 0.10.8", + "subtle 2.4.1", +] + +[[package]] +name = "snowbridge-amcl" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460a9ed63cdf03c1b9847e8a12a5f5ba19c4efd5869e4a737e05be25d7c427e5" +dependencies = [ + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "snowbridge-beacon-primitives" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "byte-slice-cast", + "frame-support", + "frame-system", + "hex", + "parity-scale-codec", + "rlp", + "scale-info", + "serde", + "snowbridge-ethereum", + "snowbridge-milagro-bls", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "ssz_rs", + "ssz_rs_derive", + "static_assertions", +] + +[[package]] +name = "snowbridge-core" +version = "0.1.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "ethabi-decode", + "frame-support", + "frame-system", + "hex-literal 0.4.1", + "parity-scale-codec", + "polkadot-parachain-primitives", + "scale-info", + "serde", + "snowbridge-beacon-primitives", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-builder", +] + +[[package]] +name = "snowbridge-ethereum" +version = "0.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "ethabi-decode", + "ethbloom", + "ethereum-types", + "hex-literal 0.4.1", + "parity-bytes", + "parity-scale-codec", + "rlp", + "rustc-hex", + "scale-info", + "serde", + "serde-big-array", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "snowbridge-milagro-bls" +version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" +checksum = "026aa8638f690a53e3f7676024b9e913b1cab0111d1b7b92669d40a188f9d7e6" +dependencies = [ + "hex", + "lazy_static", + "parity-scale-codec", + "rand", + "scale-info", + "snowbridge-amcl", + "zeroize", +] [[package]] -name = "snow" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58021967fd0a5eeeb23b08df6cc244a4d4a5b4aec1d27c9e02fad1a58b4cd74e" +name = "snowbridge-router-primitives" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "aes-gcm 0.10.3", - "blake2", - "chacha20poly1305", - "curve25519-dalek 4.1.1", - "rand_core 0.6.4", - "ring 0.17.5", - "rustc_version", - "sha2 0.10.8", - "subtle", + "ethabi-decode", + "frame-support", + "frame-system", + "hex-literal 0.4.1", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "snowbridge-core", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -13494,12 +12904,12 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.5" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -13515,14 +12925,14 @@ dependencies = [ "http", "httparse", "log", - "rand 0.8.5", + "rand", "sha-1", ] [[package]] name = "sp-api" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "hash-db", "log", @@ -13542,22 +12952,22 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "15.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "Inflector", - "blake2", - "expander 2.0.0", - "proc-macro-crate", + "blake2 0.10.6", + "expander 2.2.1", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "sp-application-crypto" -version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "31.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -13569,8 +12979,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "integer-sqrt", "num-traits", @@ -13583,8 +12993,8 @@ dependencies = [ [[package]] name = "sp-authority-discovery" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -13596,8 +13006,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "sp-api", "sp-inherents", @@ -13607,13 +13017,13 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "futures", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "schnellru", "sp-api", "sp-consensus", @@ -13625,8 +13035,8 @@ dependencies = [ [[package]] name = "sp-consensus" -version = "0.27.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "futures", @@ -13640,8 +13050,8 @@ dependencies = [ [[package]] name = "sp-consensus-aura" -version = "0.27.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "parity-scale-codec", @@ -13657,8 +13067,8 @@ dependencies = [ [[package]] name = "sp-consensus-babe" -version = "0.27.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "parity-scale-codec", @@ -13676,8 +13086,8 @@ dependencies = [ [[package]] name = "sp-consensus-beefy" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "lazy_static", "parity-scale-codec", @@ -13686,6 +13096,7 @@ dependencies = [ "sp-api", "sp-application-crypto", "sp-core", + "sp-crypto-hashing", "sp-io", "sp-mmr-primitives", "sp-runtime", @@ -13695,8 +13106,8 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "finality-grandpa", "log", @@ -13713,8 +13124,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.27.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -13725,13 +13136,13 @@ dependencies = [ [[package]] name = "sp-core" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "array-bytes", - "arrayvec 0.7.4", + "array-bytes 6.2.3", + "bip39", "bitflags 1.3.2", - "blake2", + "blake2 0.10.6", "bounded-collections", "bs58 0.5.1", "dyn-clonable", @@ -13740,22 +13151,21 @@ dependencies = [ "hash-db", "hash256-std-hasher", "impl-serde", - "lazy_static", + "itertools 0.10.5", "libsecp256k1", "log", - "merlin 2.0.1", + "merlin", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "paste", "primitive-types", - "rand 0.8.5", - "regex", + "rand", "scale-info", - "schnorrkel 0.9.1", + "schnorrkel 0.11.4", "secp256k1", "secrecy", "serde", - "sp-core-hashing", + "sp-crypto-hashing", "sp-debug-derive", "sp-externalities", "sp-runtime-interface", @@ -13764,15 +13174,15 @@ dependencies = [ "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39", "tracing", + "w3f-bls", "zeroize", ] [[package]] -name = "sp-core-hashing" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "sp-crypto-hashing" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "blake2b_simd", "byteorder", @@ -13783,38 +13193,38 @@ dependencies = [ ] [[package]] -name = "sp-core-hashing-proc-macro" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "sp-crypto-hashing-proc-macro" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "quote", - "sp-core-hashing", - "syn 2.0.39", + "sp-crypto-hashing", + "syn 2.0.66", ] [[package]] name = "sp-database" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "10.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "kvdb", - "parking_lot 0.12.1", + "parking_lot 0.12.3", ] [[package]] name = "sp-debug-derive" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "sp-externalities" -version = "0.21.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.26.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "environmental", "parity-scale-codec", @@ -13824,8 +13234,8 @@ dependencies = [ [[package]] name = "sp-genesis-builder" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "serde_json", "sp-api", @@ -13835,8 +13245,8 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -13849,17 +13259,18 @@ dependencies = [ [[package]] name = "sp-io" -version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "31.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bytes", - "ed25519-dalek 2.1.0", + "ed25519-dalek", "libsecp256k1", "log", "parity-scale-codec", "rustversion", "secp256k1", "sp-core", + "sp-crypto-hashing", "sp-externalities", "sp-keystore", "sp-runtime-interface", @@ -13873,10 +13284,9 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "32.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "lazy_static", "sp-core", "sp-runtime", "strum 0.24.1", @@ -13884,11 +13294,11 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "sp-core", "sp-externalities", "thiserror", @@ -13896,8 +13306,8 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "thiserror", "zstd 0.12.4", @@ -13905,8 +13315,8 @@ dependencies = [ [[package]] name = "sp-metadata-ir" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-metadata", "parity-scale-codec", @@ -13914,10 +13324,22 @@ dependencies = [ "sp-std", ] +[[package]] +name = "sp-mixnet" +version = "0.5.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-application-crypto", + "sp-std", +] + [[package]] name = "sp-mmr-primitives" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -13934,8 +13356,8 @@ dependencies = [ [[package]] name = "sp-npos-elections" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -13948,8 +13370,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "sp-api", "sp-core", @@ -13958,8 +13380,8 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "13.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "backtrace", "lazy_static", @@ -13968,8 +13390,8 @@ dependencies = [ [[package]] name = "sp-rpc" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "rustc-hash", "serde", @@ -13978,18 +13400,20 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "32.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "docify", "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", "paste", - "rand 0.8.5", + "rand", "scale-info", "serde", + "simple-mermaid", "sp-application-crypto", "sp-arithmetic", "sp-core", @@ -14000,8 +13424,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "25.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -14018,20 +13442,21 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "Inflector", - "proc-macro-crate", + "expander 2.2.1", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "sp-session" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "scale-info", @@ -14045,8 +13470,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -14059,14 +13484,14 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "hash-db", "log", "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", + "parking_lot 0.12.3", + "rand", "smallvec", "sp-core", "sp-externalities", @@ -14080,37 +13505,38 @@ dependencies = [ [[package]] name = "sp-statement-store" -version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "aes-gcm 0.10.3", - "curve25519-dalek 4.1.1", - "ed25519-dalek 2.1.0", + "aes-gcm", + "curve25519-dalek 4.1.3", + "ed25519-dalek", "hkdf", "parity-scale-codec", - "rand 0.8.5", + "rand", "scale-info", "sha2 0.10.8", "sp-api", "sp-application-crypto", "sp-core", + "sp-crypto-hashing", "sp-externalities", "sp-runtime", "sp-runtime-interface", "sp-std", "thiserror", - "x25519-dalek 2.0.0", + "x25519-dalek 2.0.1", ] [[package]] name = "sp-std" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" [[package]] name = "sp-storage" -version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "impl-serde", "parity-scale-codec", @@ -14122,8 +13548,8 @@ dependencies = [ [[package]] name = "sp-timestamp" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "parity-scale-codec", @@ -14135,20 +13561,20 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "sp-std", "tracing", "tracing-core", - "tracing-subscriber", + "tracing-subscriber 0.2.25", ] [[package]] name = "sp-transaction-pool" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "sp-api", "sp-runtime", @@ -14156,8 +13582,8 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "parity-scale-codec", @@ -14171,20 +13597,21 @@ dependencies = [ [[package]] name = "sp-trie" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "ahash 0.8.6", + "ahash 0.8.11", "hash-db", - "hashbrown 0.13.2", "lazy_static", "memory-db", "nohash-hasher", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.3", + "rand", "scale-info", "schnellru", "sp-core", + "sp-externalities", "sp-std", "thiserror", "tracing", @@ -14194,15 +13621,15 @@ dependencies = [ [[package]] name = "sp-version" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "impl-serde", "parity-scale-codec", "parity-wasm", "scale-info", "serde", - "sp-core-hashing-proc-macro", + "sp-crypto-hashing-proc-macro", "sp-runtime", "sp-std", "sp-version-proc-macro", @@ -14211,19 +13638,19 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "13.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "sp-wasm-interface" -version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -14235,15 +13662,15 @@ dependencies = [ [[package]] name = "sp-weights" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "bounded-collections", "parity-scale-codec", "scale-info", "serde", "smallvec", "sp-arithmetic", - "sp-core", "sp-debug-derive", "sp-std", ] @@ -14314,6 +13741,7 @@ dependencies = [ "pallet-indices", "pallet-inflation", "pallet-membership", + "pallet-message-queue", "pallet-migration", "pallet-multisig", "pallet-preimage", @@ -14330,181 +13758,91 @@ dependencies = [ "pallet-web3-names", "pallet-xcm", "parachain-staking", + "parachains-common", "parity-scale-codec", + "polkadot-runtime-common", "public-credentials", "runtime-common", "scale-info", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-transaction-pool", - "sp-version", - "sp-weights", - "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "substrate-wasm-builder", -] - -[[package]] -name = "spki" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" -dependencies = [ - "base64ct", - "der 0.6.1", -] - -[[package]] -name = "spki" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" -dependencies = [ - "base64ct", - "der 0.7.8", -] - -[[package]] -name = "ss58-registry" -version = "1.44.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35935738370302d5e33963665b77541e4b990a3e919ec904c837a56cfc891de1" -dependencies = [ - "Inflector", - "num-format", - "proc-macro2", - "quote", - "serde", - "serde_json", - "unicode-xid", -] - -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - -[[package]] -name = "staging-kusama-runtime" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" -dependencies = [ - "binary-merkle-tree", - "bitvec", - "frame-benchmarking", - "frame-election-provider-support", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "hex-literal 0.4.1", - "kusama-runtime-constants", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-bags-list", - "pallet-balances", - "pallet-beefy", - "pallet-beefy-mmr", - "pallet-bounties", - "pallet-child-bounties", - "pallet-collective", - "pallet-conviction-voting", - "pallet-democracy", - "pallet-election-provider-multi-phase", - "pallet-election-provider-support-benchmarking", - "pallet-elections-phragmen", - "pallet-fast-unstake", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-message-queue", - "pallet-mmr", - "pallet-multisig", - "pallet-nis", - "pallet-nomination-pools", - "pallet-nomination-pools-benchmarking", - "pallet-nomination-pools-runtime-api", - "pallet-offences", - "pallet-offences-benchmarking", - "pallet-preimage", - "pallet-proxy", - "pallet-ranked-collective", - "pallet-recovery", - "pallet-referenda", - "pallet-scheduler", - "pallet-session", - "pallet-session-benchmarking", - "pallet-society", - "pallet-staking", - "pallet-staking-runtime-api", - "pallet-state-trie-migration", - "pallet-timestamp", - "pallet-tips", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "pallet-whitelist", - "pallet-xcm", - "pallet-xcm-benchmarks", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "rustc-hex", - "scale-info", - "serde", - "serde_derive", - "smallvec", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-authority-discovery", + "sp-api", "sp-block-builder", - "sp-consensus-babe", - "sp-consensus-beefy", + "sp-consensus-aura", "sp-core", + "sp-genesis-builder", "sp-inherents", "sp-io", - "sp-mmr-primitives", - "sp-npos-elections", "sp-offchain", "sp-runtime", "sp-session", - "sp-staking", "sp-std", - "sp-storage", "sp-transaction-pool", "sp-version", + "sp-weights", + "staging-parachain-info", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", - "static_assertions", "substrate-wasm-builder", ] +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "ss58-registry" +version = "1.47.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4743ce898933fbff7bbf414f497c459a782d496269644b3d650a398ae6a487ba" +dependencies = [ + "Inflector", + "num-format", + "proc-macro2", + "quote", + "serde", + "serde_json", + "unicode-xid", +] + +[[package]] +name = "ssz_rs" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "057291e5631f280978fa9c8009390663ca4613359fc1318e36a8c24c392f6d1f" +dependencies = [ + "bitvec", + "num-bigint", + "sha2 0.9.9", + "ssz_rs_derive", +] + +[[package]] +name = "ssz_rs_derive" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f07d54c4d01a1713eb363b55ba51595da15f6f1211435b71466460da022aa140" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + [[package]] name = "staging-parachain-info" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -14517,9 +13855,10 @@ dependencies = [ [[package]] name = "staging-xcm" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ + "array-bytes 6.2.3", "bounded-collections", "derivative", "environmental", @@ -14534,8 +13873,8 @@ dependencies = [ [[package]] name = "staging-xcm-builder" -version = "2.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "frame-system", @@ -14556,8 +13895,8 @@ dependencies = [ [[package]] name = "staging-xcm-executor" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "environmental", "frame-benchmarking", @@ -14565,6 +13904,7 @@ dependencies = [ "impl-trait-for-tuples", "log", "parity-scale-codec", + "scale-info", "sp-arithmetic", "sp-core", "sp-io", @@ -14604,6 +13944,7 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-transaction-pool-api", + "serde_json", "sp-api", "sp-block-builder", "sp-blockchain", @@ -14654,11 +13995,24 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "strobe-rs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabb238a1cccccfa4c4fb703670c0d157e1256c1ba695abf1b93bd2bb14bab2d" +dependencies = [ + "bitflags 1.3.2", + "byteorder", + "keccak", + "subtle 2.4.1", + "zeroize", +] + [[package]] name = "strsim" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "strum" @@ -14671,9 +14025,9 @@ dependencies = [ [[package]] name = "strum" -version = "0.25.0" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" +checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29" [[package]] name = "strum_macros" @@ -14681,7 +14035,7 @@ version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" dependencies = [ - "heck", + "heck 0.4.1", "proc-macro2", "quote", "rustversion", @@ -14690,58 +14044,39 @@ dependencies = [ [[package]] name = "strum_macros" -version = "0.25.3" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", "rustversion", - "syn 2.0.39", -] - -[[package]] -name = "stun" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7e94b1ec00bad60e6410e058b52f1c66de3dc5fe4d62d09b3e52bb7d3b73e25" -dependencies = [ - "base64 0.13.1", - "crc", - "lazy_static", - "md-5", - "rand 0.8.5", - "ring 0.16.20", - "subtle", - "thiserror", - "tokio", - "url", - "webrtc-util", + "syn 2.0.66", ] [[package]] name = "substrate-bip39" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e620c7098893ba667438b47169c00aacdd9e7c10e042250ce2b60b087ec97328" +checksum = "6a7590dc041b9bc2825e52ce5af8416c73dbe9d0654402bfd4b4941938b94d8f" dependencies = [ "hmac 0.11.0", "pbkdf2 0.8.0", - "schnorrkel 0.9.1", + "schnorrkel 0.11.4", "sha2 0.9.9", "zeroize", ] [[package]] name = "substrate-build-script-utils" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "11.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" [[package]] name = "substrate-frame-rpc-system" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -14759,8 +14094,8 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.14.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "hyper", "log", @@ -14771,8 +14106,8 @@ dependencies = [ [[package]] name = "substrate-rpc-client" -version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.34.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "jsonrpsee", @@ -14784,8 +14119,8 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -14801,30 +14136,27 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" -version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "18.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "ansi_term", "build-helper", "cargo_metadata", + "console", "filetime", "parity-wasm", "sp-maybe-compressed-blob", "strum 0.24.1", "tempfile", - "toml 0.7.8", + "toml 0.8.14", "walkdir", "wasm-opt", ] [[package]] -name = "substring" -version = "1.4.5" +name = "subtle" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ee6433ecef213b2e72f587ef64a2f5943e7cd16fbd82dbe8bc07486c534c86" -dependencies = [ - "autocfg", -] +checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" [[package]] name = "subtle" @@ -14851,9 +14183,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.39" +version = "2.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" +checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" dependencies = [ "proc-macro2", "quote", @@ -14872,6 +14204,17 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.66", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -14901,32 +14244,41 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.12" +version = "0.12.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" +checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" [[package]] name = "tempfile" -version = "3.8.1" +version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" +checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ "cfg-if", - "fastrand 2.0.1", - "redox_syscall 0.4.1", - "rustix 0.38.25", - "windows-sys 0.48.0", + "fastrand 2.1.0", + "rustix 0.38.34", + "windows-sys 0.52.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 = "terminal_size" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" +dependencies = [ + "rustix 0.38.34", + "windows-sys 0.48.0", +] + [[package]] name = "termtree" version = "0.4.1" @@ -14935,34 +14287,45 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "test-log" -version = "0.2.13" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dffced63c2b5c7be278154d76b479f9f9920ed34e7574201407f0b14e2bbb93" +dependencies = [ + "env_logger 0.11.3", + "test-log-macros", + "tracing-subscriber 0.3.18", +] + +[[package]] +name = "test-log-macros" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f66edd6b6cd810743c0c71e1d085e92b01ce6a72782032e3f794c8284fe4bcdd" +checksum = "5999e24eaa32083191ba4e425deb75cdf25efefabe5aaccb7446dd0d4122a3f5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] -name = "test-runtime-constants" -version = "0.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +name = "testnet-parachains-constants" +version = "1.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", - "polkadot-primitives", - "polkadot-runtime-common", + "polkadot-core-primitives", + "rococo-runtime-constants", "smallvec", - "sp-core", "sp-runtime", - "sp-weights", + "staging-xcm", + "westend-runtime-constants", ] [[package]] name = "thiserror" -version = "1.0.50" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" +checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" dependencies = [ "thiserror-impl", ] @@ -14984,18 +14347,18 @@ checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "thiserror-impl" -version = "1.0.50" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" +checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -15006,9 +14369,9 @@ checksum = "3bf63baf9f5039dadc247375c29eb13706706cfde997d0330d05aa63a77d8820" [[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", @@ -15059,12 +14422,13 @@ dependencies = [ [[package]] name = "time" -version = "0.3.30" +version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ "deranged", "itoa", + "num-conv", "powerfmt", "serde", "time-core", @@ -15079,32 +14443,14 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.15" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ + "num-conv", "time-core", ] -[[package]] -name = "tiny-bip39" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62cc94d358b5a1e84a5cb9109f559aa3c4d634d2b1b4de3d0fa4adc7c78e2861" -dependencies = [ - "anyhow", - "hmac 0.12.1", - "once_cell", - "pbkdf2 0.11.0", - "rand 0.8.5", - "rustc-hash", - "sha2 0.10.8", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-keccak" version = "2.0.2" @@ -15114,16 +14460,6 @@ dependencies = [ "crunchy", ] -[[package]] -name = "tinytemplate" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" -dependencies = [ - "serde", - "serde_json", -] - [[package]] name = "tinyvec" version = "1.6.0" @@ -15141,32 +14477,32 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.34.0" +version = "1.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0c014766411e834f7af5b8f4cf46257aab4036ca95e9d2c144a10f59ad6f5b9" +checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" dependencies = [ "backtrace", "bytes", "libc", "mio", "num_cpus", - "parking_lot 0.12.1", - "pin-project-lite 0.2.13", + "parking_lot 0.12.3", + "pin-project-lite 0.2.14", "signal-hook-registry", - "socket2 0.5.5", + "socket2 0.5.7", "tokio-macros", "windows-sys 0.48.0", ] [[package]] name = "tokio-macros" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" +checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -15176,7 +14512,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f57eb36ecbe0fc510036adff84824dd3c24bb781e21bfa67b69d556aa85214f" dependencies = [ "pin-project", - "rand 0.8.5", + "rand", "tokio", ] @@ -15186,35 +14522,34 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.9", + "rustls 0.21.12", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" +checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" dependencies = [ "futures-core", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "tokio", "tokio-util", ] [[package]] name = "tokio-util" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ "bytes", "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "tokio", - "tracing", ] [[package]] @@ -15228,61 +14563,58 @@ dependencies = [ [[package]] name = "toml" -version = "0.7.8" +version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" +checksum = "6f49eb2ab21d2f26bd6db7bf383edc527a7ebaee412d17af4d40fdccd442f335" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.19.15", + "toml_edit 0.22.14", ] [[package]] -name = "toml" -version = "0.8.8" +name = "toml_datetime" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35" +checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" dependencies = [ "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.21.0", ] [[package]] -name = "toml_datetime" -version = "0.6.5" +name = "toml_edit" +version = "0.20.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" dependencies = [ - "serde", + "indexmap 2.2.6", + "toml_datetime", + "winnow 0.5.40", ] [[package]] name = "toml_edit" -version = "0.19.15" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" dependencies = [ - "indexmap 2.1.0", - "serde", - "serde_spanned", + "indexmap 2.2.6", "toml_datetime", - "winnow", + "winnow 0.5.40", ] [[package]] name = "toml_edit" -version = "0.21.0" +version = "0.22.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" +checksum = "f21c7aaf97f1bd9ca9d4f9e73b0a6c74bd5afef56f2bc931943a6e1c37e04e38" dependencies = [ - "indexmap 2.1.0", + "indexmap 2.2.6", "serde", "serde_spanned", "toml_datetime", - "winnow", + "winnow 0.6.13", ] [[package]] @@ -15291,6 +14623,10 @@ version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" dependencies = [ + "futures-core", + "futures-util", + "pin-project", + "pin-project-lite 0.2.14", "tower-layer", "tower-service", "tracing", @@ -15302,14 +14638,14 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.5.0", "bytes", "futures-core", "futures-util", "http", "http-body", "http-range-header", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "tower-layer", "tower-service", ] @@ -15333,7 +14669,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ "log", - "pin-project-lite 0.2.13", + "pin-project-lite 0.2.14", "tracing-attributes", "tracing-core", ] @@ -15346,7 +14682,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -15371,11 +14707,10 @@ dependencies = [ [[package]] name = "tracing-gum" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "coarsetime", - "polkadot-node-jaeger", "polkadot-primitives", "tracing", "tracing-gum-proc-macro", @@ -15383,14 +14718,14 @@ dependencies = [ [[package]] name = "tracing-gum-proc-macro" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "5.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ - "expander 2.0.0", - "proc-macro-crate", + "expander 2.2.1", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -15404,6 +14739,17 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + [[package]] name = "tracing-serde" version = "0.1.3" @@ -15423,7 +14769,7 @@ dependencies = [ "ansi_term", "chrono", "lazy_static", - "matchers", + "matchers 0.0.1", "parking_lot 0.11.2", "regex", "serde", @@ -15433,15 +14779,32 @@ dependencies = [ "thread_local", "tracing", "tracing-core", - "tracing-log", + "tracing-log 0.1.4", "tracing-serde", ] +[[package]] +name = "tracing-subscriber" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +dependencies = [ + "matchers 0.1.0", + "nu-ansi-term", + "once_cell", + "regex", + "sharded-slab", + "thread_local", + "tracing", + "tracing-core", + "tracing-log 0.2.0", +] + [[package]] name = "trie-db" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" +checksum = "ff28e0f815c2fea41ebddf148e008b077d2faddb026c9555b29696114d602642" dependencies = [ "hash-db", "hashbrown 0.13.2", @@ -15475,7 +14838,7 @@ dependencies = [ "idna 0.2.3", "ipnet", "lazy_static", - "rand 0.8.5", + "rand", "smallvec", "socket2 0.4.10", "thiserror", @@ -15496,7 +14859,7 @@ dependencies = [ "ipconfig", "lazy_static", "lru-cache", - "parking_lot 0.12.1", + "parking_lot 0.12.3", "resolv-conf", "smallvec", "thiserror", @@ -15507,14 +14870,14 @@ 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 = "try-runtime-cli" -version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.39.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "async-trait", "clap", @@ -15553,25 +14916,6 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" -[[package]] -name = "turn" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4712ee30d123ec7ae26d1e1b218395a16c87cdbaf4b3925d170d684af62ea5e8" -dependencies = [ - "async-trait", - "base64 0.13.1", - "futures", - "log", - "md-5", - "rand 0.8.5", - "ring 0.16.20", - "stun", - "thiserror", - "tokio", - "webrtc-util", -] - [[package]] name = "twox-hash" version = "1.6.3" @@ -15580,7 +14924,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand 0.8.5", + "rand", "static_assertions", ] @@ -15610,9 +14954,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" @@ -15631,9 +14975,9 @@ dependencies = [ [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" [[package]] name = "unicode-xid" @@ -15641,16 +14985,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" -[[package]] -name = "universal-hash" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" -dependencies = [ - "generic-array 0.14.7", - "subtle", -] - [[package]] name = "universal-hash" version = "0.5.1" @@ -15658,7 +14992,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", - "subtle", + "subtle 2.4.1", ] [[package]] @@ -15687,29 +15021,20 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.4.1" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" +checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" dependencies = [ "form_urlencoded", - "idna 0.4.0", + "idna 0.5.0", "percent-encoding", ] [[package]] name = "utf8parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" - -[[package]] -name = "uuid" -version = "1.6.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" -dependencies = [ - "getrandom 0.2.11", -] +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "valuable" @@ -15736,25 +15061,40 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] -name = "waitgroup" -version = "0.1.2" +name = "w3f-bls" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1f50000a783467e6c0200f9d10642f4bc424e39efc1b770203e88b488f79292" +checksum = "9c5da5fa2c6afa2c9158eaa7cd9aee249765eb32b5fb0c63ad8b9e79336a47ec" dependencies = [ - "atomic-waker", + "ark-bls12-377", + "ark-bls12-381", + "ark-ec", + "ark-ff", + "ark-serialize", + "ark-serialize-derive", + "arrayref", + "constcat", + "digest 0.10.7", + "rand", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "sha2 0.10.8", + "sha3", + "thiserror", + "zeroize", ] [[package]] name = "waker-fn" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c4517f54858c779bbcbf228f4fca63d121bf85fbecb2dc578cdf4a39395690" +checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" [[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", @@ -15781,11 +15121,20 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasix" +version = "0.12.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1fbb4ef9bbca0c1170e0b00dd28abc9e3b68669821600cad1caaed606583c6d" +dependencies = [ + "wasi 0.11.0+wasi-snapshot-preview1", +] + [[package]] name = "wasm-bindgen" -version = "0.2.88" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -15793,24 +15142,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.88" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.38" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9afec9963e3d0994cac82455b2b3502b81a7f40f9a0d32181f7528d9f4b43e02" +checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" dependencies = [ "cfg-if", "js-sys", @@ -15820,9 +15169,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.88" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -15830,37 +15179,37 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.88" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.88" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "wasm-instrument" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa1dafb3e60065305741e83db35c6c2584bb3725b692b5b66148a38d72ace6cd" +checksum = "2a47ecb37b9734d1085eaa5ae1a81e60801fd8c28d4cabdd8aedb982021918bc" dependencies = [ "parity-wasm", ] [[package]] name = "wasm-opt" -version = "0.114.2" +version = "0.116.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "effbef3bd1dde18acb401f73e740a6f3d4a1bc651e9773bddc512fe4d8d68f67" +checksum = "2fd87a4c135535ffed86123b6fb0f0a5a0bc89e50416c942c5f0662c645f679c" dependencies = [ "anyhow", "libc", @@ -15874,9 +15223,9 @@ dependencies = [ [[package]] name = "wasm-opt-cxx-sys" -version = "0.114.2" +version = "0.116.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c09e24eb283919ace2ed5733bda4842a59ce4c8de110ef5c6d98859513d17047" +checksum = "8c57b28207aa724318fcec6575fe74803c23f6f266fce10cbc9f3f116762f12e" dependencies = [ "anyhow", "cxx", @@ -15886,9 +15235,9 @@ dependencies = [ [[package]] name = "wasm-opt-sys" -version = "0.114.2" +version = "0.116.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36f2f817bed2e8d65eb779fa37317e74de15585751f903c9118342d1970703a4" +checksum = "8a1cce564dc768dacbdb718fc29df2dba80bd21cb47d8f77ae7e3d95ceb98cbe" dependencies = [ "anyhow", "cc", @@ -15954,9 +15303,9 @@ dependencies = [ [[package]] name = "wasmparser-nostd" -version = "0.100.1" +version = "0.100.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157cab83003221bfd385833ab587a039f5d6fa7304854042ba358a3b09e0724" +checksum = "d5a015fe95f3504a94bb1462c717aae75253e39b9dd6c3fb1062c934535c64aa" dependencies = [ "indexmap-nostd", ] @@ -16005,7 +15354,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c86437fa68626fe896e5afc69234bb2b5894949083586535f200385adfd71213" dependencies = [ "anyhow", - "base64 0.21.5", + "base64 0.21.7", "bincode", "directories-next", "file-per-thread-logger", @@ -16134,9 +15483,9 @@ dependencies = [ "log", "mach", "memfd", - "memoffset 0.8.0", + "memoffset", "paste", - "rand 0.8.5", + "rand", "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", @@ -16158,31 +15507,21 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.65" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85" +checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" dependencies = [ "js-sys", "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.21.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" -dependencies = [ - "ring 0.16.20", - "untrusted 0.7.1", -] - [[package]] name = "webpki" version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" dependencies = [ - "ring 0.17.5", + "ring 0.17.8", "untrusted 0.9.0", ] @@ -16192,233 +15531,20 @@ version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" dependencies = [ - "webpki 0.22.4", -] - -[[package]] -name = "webpki-roots" -version = "0.25.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc" - -[[package]] -name = "webrtc" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d3bc9049bdb2cea52f5fd4f6f728184225bdb867ed0dc2410eab6df5bdd67bb" -dependencies = [ - "arc-swap", - "async-trait", - "bytes", - "hex", - "interceptor", - "lazy_static", - "log", - "rand 0.8.5", - "rcgen 0.9.3", - "regex", - "ring 0.16.20", - "rtcp", - "rtp", - "rustls 0.19.1", - "sdp", - "serde", - "serde_json", - "sha2 0.10.8", - "stun", - "thiserror", - "time", - "tokio", - "turn", - "url", - "waitgroup", - "webrtc-data", - "webrtc-dtls", - "webrtc-ice", - "webrtc-mdns", - "webrtc-media", - "webrtc-sctp", - "webrtc-srtp", - "webrtc-util", -] - -[[package]] -name = "webrtc-data" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef36a4d12baa6e842582fe9ec16a57184ba35e1a09308307b67d43ec8883100" -dependencies = [ - "bytes", - "derive_builder", - "log", - "thiserror", - "tokio", - "webrtc-sctp", - "webrtc-util", -] - -[[package]] -name = "webrtc-dtls" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a00f4242f2db33307347bd5be53263c52a0331c96c14292118c9a6bb48d267" -dependencies = [ - "aes 0.6.0", - "aes-gcm 0.10.3", - "async-trait", - "bincode", - "block-modes", - "byteorder", - "ccm", - "curve25519-dalek 3.2.0", - "der-parser 8.2.0", - "elliptic-curve 0.12.3", - "hkdf", - "hmac 0.12.1", - "log", - "p256", - "p384", - "rand 0.8.5", - "rand_core 0.6.4", - "rcgen 0.10.0", - "ring 0.16.20", - "rustls 0.19.1", - "sec1 0.3.0", - "serde", - "sha1", - "sha2 0.10.8", - "signature 1.6.4", - "subtle", - "thiserror", - "tokio", - "webpki 0.21.4", - "webrtc-util", - "x25519-dalek 2.0.0", - "x509-parser 0.13.2", -] - -[[package]] -name = "webrtc-ice" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "465a03cc11e9a7d7b4f9f99870558fe37a102b65b93f8045392fef7c67b39e80" -dependencies = [ - "arc-swap", - "async-trait", - "crc", - "log", - "rand 0.8.5", - "serde", - "serde_json", - "stun", - "thiserror", - "tokio", - "turn", - "url", - "uuid", - "waitgroup", - "webrtc-mdns", - "webrtc-util", -] - -[[package]] -name = "webrtc-mdns" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f08dfd7a6e3987e255c4dbe710dde5d94d0f0574f8a21afa95d171376c143106" -dependencies = [ - "log", - "socket2 0.4.10", - "thiserror", - "tokio", - "webrtc-util", -] - -[[package]] -name = "webrtc-media" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f72e1650a8ae006017d1a5280efb49e2610c19ccc3c0905b03b648aee9554991" -dependencies = [ - "byteorder", - "bytes", - "rand 0.8.5", - "rtp", - "thiserror", -] - -[[package]] -name = "webrtc-sctp" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d47adcd9427eb3ede33d5a7f3424038f63c965491beafcc20bc650a2f6679c0" -dependencies = [ - "arc-swap", - "async-trait", - "bytes", - "crc", - "log", - "rand 0.8.5", - "thiserror", - "tokio", - "webrtc-util", -] - -[[package]] -name = "webrtc-srtp" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6183edc4c1c6c0175f8812eefdce84dfa0aea9c3ece71c2bf6ddd3c964de3da5" -dependencies = [ - "aead 0.4.3", - "aes 0.7.5", - "aes-gcm 0.9.4", - "async-trait", - "byteorder", - "bytes", - "ctr 0.8.0", - "hmac 0.11.0", - "log", - "rtcp", - "rtp", - "sha-1", - "subtle", - "thiserror", - "tokio", - "webrtc-util", -] - -[[package]] -name = "webrtc-util" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93f1db1727772c05cf7a2cfece52c3aca8045ca1e176cd517d323489aa3c6d87" -dependencies = [ - "async-trait", - "bitflags 1.3.2", - "bytes", - "cc", - "ipnet", - "lazy_static", - "libc", - "log", - "nix", - "rand 0.8.5", - "thiserror", - "tokio", - "winapi", + "webpki", ] [[package]] name = "westend-runtime" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "binary-merkle-tree", "bitvec", "frame-benchmarking", "frame-election-provider-support", "frame-executive", + "frame-metadata-hash-extension", "frame-support", "frame-system", "frame-system-benchmarking", @@ -16426,6 +15552,7 @@ dependencies = [ "frame-try-runtime", "hex-literal 0.4.1", "log", + "pallet-asset-rate", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", @@ -16434,6 +15561,7 @@ dependencies = [ "pallet-beefy", "pallet-beefy-mmr", "pallet-collective", + "pallet-conviction-voting", "pallet-democracy", "pallet-election-provider-multi-phase", "pallet-election-provider-support-benchmarking", @@ -16455,6 +15583,8 @@ dependencies = [ "pallet-preimage", "pallet-proxy", "pallet-recovery", + "pallet-referenda", + "pallet-root-testing", "pallet-scheduler", "pallet-session", "pallet-session-benchmarking", @@ -16470,6 +15600,7 @@ dependencies = [ "pallet-treasury", "pallet-utility", "pallet-vesting", + "pallet-whitelist", "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", @@ -16484,11 +15615,13 @@ dependencies = [ "smallvec", "sp-api", "sp-application-crypto", + "sp-arithmetic", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", "sp-consensus-beefy", "sp-core", + "sp-genesis-builder", "sp-inherents", "sp-io", "sp-mmr-primitives", @@ -16510,8 +15643,8 @@ dependencies = [ [[package]] name = "westend-runtime-constants" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "frame-support", "polkadot-primitives", @@ -16520,6 +15653,8 @@ dependencies = [ "sp-core", "sp-runtime", "sp-weights", + "staging-xcm", + "staging-xcm-builder", ] [[package]] @@ -16531,14 +15666,14 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.25", + "rustix 0.38.34", ] [[package]] name = "wide" -version = "0.7.13" +version = "0.7.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68938b57b33da363195412cfc5fc37c9ed49aa9cfe2156fde64b8d2c9498242" +checksum = "8a040b111774ab63a19ef46bbc149398ab372b4ccdcfd719e9814dbd7dfd76c8" dependencies = [ "bytemuck", "safe_arch", @@ -16546,9 +15681,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" @@ -16568,11 +15703,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" +checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" dependencies = [ - "winapi", + "windows-sys 0.52.0", ] [[package]] @@ -16587,7 +15722,7 @@ version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9" dependencies = [ - "windows-core", + "windows-core 0.51.1", "windows-targets 0.48.5", ] @@ -16600,6 +15735,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.5", +] + [[package]] name = "windows-sys" version = "0.45.0" @@ -16618,6 +15762,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.5", +] + [[package]] name = "windows-targets" version = "0.42.2" @@ -16648,6 +15801,22 @@ dependencies = [ "windows_x86_64_msvc 0.48.5", ] +[[package]] +name = "windows-targets" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" +dependencies = [ + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", +] + [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" @@ -16660,6 +15829,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -16672,6 +15847,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" + [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -16684,6 +15865,18 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" + [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -16696,6 +15889,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -16708,6 +15907,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -16720,6 +15925,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -16732,11 +15943,26 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + [[package]] name = "winnow" -version = "0.5.19" +version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" +checksum = "59b5e5f6c299a3c7890b876a2a587f3115162487e704907d9b6cd29473052ba1" dependencies = [ "memchr", ] @@ -16773,48 +15999,29 @@ 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 4.1.1", + "curve25519-dalek 4.1.3", "rand_core 0.6.4", "serde", "zeroize", ] -[[package]] -name = "x509-parser" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb9bace5b5589ffead1afb76e43e34cff39cd0f3ce7e170ae0c29e53b88eb1c" -dependencies = [ - "asn1-rs 0.3.1", - "base64 0.13.1", - "data-encoding", - "der-parser 7.0.0", - "lazy_static", - "nom", - "oid-registry 0.4.0", - "ring 0.16.20", - "rusticata-macros", - "thiserror", - "time", -] - [[package]] name = "x509-parser" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" dependencies = [ - "asn1-rs 0.5.2", + "asn1-rs", "base64 0.13.1", "data-encoding", - "der-parser 8.2.0", + "der-parser", "lazy_static", "nom", - "oid-registry 0.6.1", + "oid-registry", "rusticata-macros", "thiserror", "time", @@ -16822,10 +16029,11 @@ dependencies = [ [[package]] name = "xcm-emulator" -version = "0.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", @@ -16844,6 +16052,7 @@ dependencies = [ "polkadot-runtime-parachains", "sp-arithmetic", "sp-core", + "sp-crypto-hashing", "sp-io", "sp-runtime", "sp-std", @@ -16856,39 +16065,28 @@ dependencies = [ name = "xcm-integration-tests" version = "1.14.0-dev" dependencies = [ - "asset-hub-kusama-runtime", - "asset-hub-polkadot-runtime", - "asset-hub-westend-runtime", + "asset-hub-rococo-emulated-chain", + "asset-hub-rococo-runtime", "attestation", - "bridge-hub-kusama-runtime", - "bridge-hub-polkadot-runtime", - "bridge-hub-rococo-runtime", - "collectives-polkadot-runtime", "ctype", - "cumulus-pallet-dmp-queue", - "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "did", + "emulated-integration-tests-common", "frame-support", "frame-system", - "integration-tests-common", "kilt-asset-dids", - "pallet-bags-list", "pallet-did-lookup", "pallet-message-queue", "pallet-web3-names", "pallet-xcm", "parity-scale-codec", - "penpal-runtime", "peregrine-runtime", "polkadot-parachain-primitives", "polkadot-primitives", - "polkadot-runtime", - "polkadot-runtime-constants", "polkadot-runtime-parachains", "polkadot-service", - "polkadot-test-runtime", "public-credentials", + "rococo-emulated-chain", "rococo-runtime", "runtime-common", "sc-consensus-grandpa", @@ -16907,13 +16105,13 @@ dependencies = [ [[package]] name = "xcm-procedural" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.1.0#72dd732e5aebfa97dbb774cd3345d9ed6ee8aaf0" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -16925,8 +16123,8 @@ dependencies = [ "futures", "log", "nohash-hasher", - "parking_lot 0.12.1", - "rand 0.8.5", + "parking_lot 0.12.3", + "rand", "static_assertions", ] @@ -16941,29 +16139,29 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.26" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e97e415490559a91254a2979b4829267a57d2fcd741a98eee8b722fb57289aa0" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.26" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" dependencies = [ "zeroize_derive", ] @@ -16976,7 +16174,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.66", ] [[package]] @@ -17019,9 +16217,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.9+zstd.1.5.5" +version = "2.0.11+zstd.1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656" +checksum = "75652c55c0b6f3e6f12eb786fe1bc960396bf05a1eb3bf1f3691c3610ac2e6d4" dependencies = [ "cc", "pkg-config", diff --git a/Cargo.toml b/Cargo.toml index d3b24e741..b2802bd27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ members = [ "runtimes/*", "support", ] +resolver = "2" [workspace.package] authors = ["KILT "] @@ -24,7 +25,7 @@ version = "1.14.0-dev" [workspace.dependencies] # Build deps -substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } +substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } # External (without extra features and with default disabled if necessary) base58 = { version = "0.2.0", default-features = false } @@ -38,7 +39,7 @@ futures = { version = "0.3.21", default-features = false } hash-db = { version = "0.16.0", default-features = false } hex = { version = "0.4.0", default-features = false } hex-literal = { version = "0.3.4" } -jsonrpsee = { version = "0.16.2" } +jsonrpsee = { version = "0.20.3" } libsecp256k1 = { version = "0.7", default-features = false } log = { version = "0.4.17" } parity-scale-codec = { version = "3.1.5", default-features = false } @@ -91,149 +92,149 @@ peregrine-runtime = { path = "runtimes/peregrine", default-features = false } spiritnet-runtime = { path = "runtimes/spiritnet", default-features = false } # Benchmarking (with default disabled) -cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } +cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } # Cumulus (with default disabled) -cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-pallet-dmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-primitives-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } +cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-pallet-dmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-primitives-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +parachains-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } # XCM Emulator tests -asset-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -asset-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -asset-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -asset-hub-westend-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -bridge-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -bridge-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -bridge-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -collectives-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -integration-tests-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -penpal-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -xcm-emulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } +asset-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +asset-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +asset-hub-rococo-emulated-chain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +asset-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +asset-hub-westend-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +bridge-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +bridge-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +bridge-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +collectives-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +emulated-integration-tests-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +penpal-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +rococo-emulated-chain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +xcm-emulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } # Substrate (with default disabled) -frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-support = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-bags-list = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-democracy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-indices = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-tips = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -pallet-vesting = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-authority-discovery = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-state-machine = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-std = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-version = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -try-runtime-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } +frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-support = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-democracy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-indices = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-tips = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-vesting = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-authority-discovery = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-state-machine = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-std = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-version = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +try-runtime-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } # Polkadot (with default disabled) -pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -polkadot-parachain = { package = "polkadot-parachain-primitives", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -polkadot-runtime-constants = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -polkadot-test-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -rococo-runtime-constants = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } -xcm-simulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.1.0" } +pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +polkadot-parachain = { package = "polkadot-parachain-primitives", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +xcm-simulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } # Client-only (with default enabled) -cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-client-collator = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-client-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-client-consensus-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-client-consensus-proposer = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-client-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-primitives-parachain-inherent = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-relay-chain-inprocess-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-relay-chain-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-relay-chain-minimal-node = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -polkadot-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-sysinfo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } -substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.1.0" } +cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-collator = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-consensus-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-consensus-proposer = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-primitives-parachain-inherent = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-relay-chain-inprocess-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-relay-chain-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-relay-chain-minimal-node = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +polkadot-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-sysinfo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } [profile] diff --git a/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs b/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs index cf3fdf8ab..3e8ede9cb 100644 --- a/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs +++ b/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs @@ -239,6 +239,7 @@ mod dip_did_proof_with_verified_relay_state_root { ); impl frame_system::Config for TestProviderRuntime { + type RuntimeTask = (); type AccountData = (); type AccountId = AccountId32; type BaseCallFilter = Everything; diff --git a/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs b/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs index ce7ef8049..7794951ec 100644 --- a/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs +++ b/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs @@ -17,13 +17,14 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org use cumulus_pallet_parachain_system::{ParachainSetCode, RelayNumberStrictlyIncreases}; -use cumulus_primitives_core::ParaId; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId}; use did::{ did_details::{DidPublicKeyDetails, DidVerificationKey}, DidIdentifierOf, DidVerificationKeyRelationship, KeyIdOf, }; use frame_support::{ - construct_runtime, pallet_prelude::ValueQuery, parameter_types, storage_alias, traits::Everything, Twox64Concat, + construct_runtime, pallet_prelude::ValueQuery, parameter_types, storage_alias, traits::EnqueueWithOrigin, + traits::Everything, Twox64Concat, }; use frame_system::{mocking::MockBlock, pallet_prelude::BlockNumberFor, EnsureSigned}; use hex_literal::hex; @@ -76,6 +77,7 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); @@ -83,11 +85,12 @@ impl frame_system::Config for TestRuntime { parameter_types! { pub const ParachainId: ParaId = ParaId::new(2_001); + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } impl cumulus_pallet_parachain_system::Config for TestRuntime { type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases; - type DmpMessageHandler = (); + type DmpQueue = EnqueueWithOrigin<(), RelayOrigin>; type OnSystemEvent = (); type OutboundXcmpMessageSource = (); type ReservedDmpWeight = (); @@ -96,6 +99,7 @@ impl cumulus_pallet_parachain_system::Config for TestRuntime { type SelfParaId = ParachainId; type XcmpMessageHandler = (); type ConsensusHook = cumulus_pallet_parachain_system::consensus_hook::RequireParentIncluded; + type WeightInfo = (); } impl pallet_relay_store::Config for TestRuntime { diff --git a/crates/kilt-dip-primitives/src/verifier/parachain/v0/tests.rs b/crates/kilt-dip-primitives/src/verifier/parachain/v0/tests.rs index 76a53ee91..1fbb05f86 100644 --- a/crates/kilt-dip-primitives/src/verifier/parachain/v0/tests.rs +++ b/crates/kilt-dip-primitives/src/verifier/parachain/v0/tests.rs @@ -64,13 +64,10 @@ fn verify_proof_for_call_against_details_relay_proof_too_many_leaves() { let leaves_count = proof.provider_head_proof.proof.len(); // Extend the relaychain proof to include MAX + 1 leaves, causing the proof // verification to fail - proof.provider_head_proof.proof.extend( - vec![ - vec![0u8; MAX_PROVIDER_HEAD_PROOF_LEAVE_SIZE as usize]; - MAX_PROVIDER_HEAD_PROOF_LEAVE_COUNT as usize - leaves_count + 1 - ] - .into_iter(), - ); + proof.provider_head_proof.proof.extend(vec![ + vec![0u8; MAX_PROVIDER_HEAD_PROOF_LEAVE_SIZE as usize]; + MAX_PROVIDER_HEAD_PROOF_LEAVE_COUNT as usize - leaves_count + 1 + ]); proof }; @@ -97,7 +94,10 @@ fn verify_proof_for_call_against_details_relay_proof_leaf_too_large() { let last_leave_size = last_leave.len(); // Extend the last leaf of the relaychain proof to include MAX + 1 bytes, // causing the proof verification to fail - last_leave.extend(vec![0u8; MAX_PROVIDER_HEAD_PROOF_LEAVE_SIZE as usize - last_leave_size + 1].into_iter()); + last_leave.extend(vec![ + 0u8; + MAX_PROVIDER_HEAD_PROOF_LEAVE_SIZE as usize - last_leave_size + 1 + ]); proof }; @@ -171,13 +171,10 @@ fn verify_proof_for_call_against_details_parachain_proof_too_many_leaves() { let leaves_count = proof.dip_commitment_proof.0.len(); // Extend the DIP commitment proof to include MAX + 1 leaves, causing the proof // verification to fail - proof.dip_commitment_proof.0.extend( - vec![ - vec![0u8; MAX_DIP_COMMITMENT_PROOF_LEAVE_SIZE as usize]; - MAX_DIP_COMMITMENT_PROOF_LEAVE_COUNT as usize - leaves_count + 1 - ] - .into_iter(), - ); + proof.dip_commitment_proof.0.extend(vec![ + vec![0u8; MAX_DIP_COMMITMENT_PROOF_LEAVE_SIZE as usize]; + MAX_DIP_COMMITMENT_PROOF_LEAVE_COUNT as usize - leaves_count + 1 + ]); proof }; @@ -207,7 +204,10 @@ fn verify_proof_for_call_against_details_parachain_proof_leaf_too_large() { let last_leave_size = last_leave.len(); // Extend the last leaf of the parachain proof to include MAX + 1 bytes, // causing the proof verification to fail - last_leave.extend(vec![0u8; MAX_DIP_COMMITMENT_PROOF_LEAVE_SIZE as usize - last_leave_size + 1].into_iter()); + last_leave.extend(vec![ + 0u8; + MAX_DIP_COMMITMENT_PROOF_LEAVE_SIZE as usize - last_leave_size + 1 + ]); proof }; @@ -265,13 +265,10 @@ fn verify_proof_for_call_against_details_dip_proof_too_many_leaves() { let leaves_count = proof.dip_proof.blinded.len(); // Extend the DIP proof to include MAX + 1 leaves, causing the proof // verification to fail - proof.dip_proof.blinded.extend( - vec![ - vec![0u8; MAX_DID_MERKLE_PROOF_LEAVE_SIZE as usize]; - MAX_DID_MERKLE_PROOF_LEAVE_COUNT as usize - leaves_count + 1 - ] - .into_iter(), - ); + proof.dip_proof.blinded.extend(vec![ + vec![0u8; MAX_DID_MERKLE_PROOF_LEAVE_SIZE as usize]; + MAX_DID_MERKLE_PROOF_LEAVE_COUNT as usize - leaves_count + 1 + ]); proof }; @@ -301,7 +298,10 @@ fn verify_proof_for_call_against_details_dip_proof_leaf_too_large() { let last_leave_size = last_leave.len(); // Extend the last leaf of the parachain proof to include MAX + 1 bytes, // causing the proof verification to fail - last_leave.extend(vec![0u8; MAX_DIP_COMMITMENT_PROOF_LEAVE_SIZE as usize - last_leave_size + 1].into_iter()); + last_leave.extend(vec![ + 0u8; + MAX_DIP_COMMITMENT_PROOF_LEAVE_SIZE as usize - last_leave_size + 1 + ]); proof }; @@ -330,13 +330,10 @@ fn verify_proof_for_call_against_details_dip_proof_too_many_revealed_keys() { let leaves_count = proof.dip_proof.revealed.len(); // Extend the DIP proof to include MAX + 1 revealed leaves, causing the proof // verification to fail - proof.dip_proof.revealed.extend( - vec![ - RevealedAccountId(AccountId32::new([100; 32]).into()).into(); - MAX_DID_MERKLE_LEAVES_REVEALED as usize - leaves_count + 1 - ] - .into_iter(), - ); + proof.dip_proof.revealed.extend(vec![ + RevealedAccountId(AccountId32::new([100; 32]).into()).into(); + MAX_DID_MERKLE_LEAVES_REVEALED as usize - leaves_count + 1 + ]); proof }; diff --git a/dip-template/nodes/dip-consumer/Cargo.toml b/dip-template/nodes/dip-consumer/Cargo.toml index 8c733ced4..bf6bb7231 100644 --- a/dip-template/nodes/dip-consumer/Cargo.toml +++ b/dip-template/nodes/dip-consumer/Cargo.toml @@ -15,11 +15,12 @@ version = { workspace = true } substrate-build-script-utils = { workspace = true } [dependencies] -clap = { workspace = true, features = ["derive", "std"] } -futures = { workspace = true } -jsonrpsee = { workspace = true, features = ["server"] } -log = { workspace = true, features = ["std"] } -serde = { workspace = true, features = ["derive", "std"] } +clap = { workspace = true, features = ["derive", "std"] } +futures = { workspace = true } +jsonrpsee = { workspace = true, features = ["server"] } +log = { workspace = true, features = ["std"] } +serde = { workspace = true, features = ["derive", "std"] } +serde_json = { workspace = true } # Internal dependencies dip-consumer-runtime-template = { workspace = true, features = ["std"] } diff --git a/dip-template/nodes/dip-consumer/src/chain_spec.rs b/dip-template/nodes/dip-consumer/src/chain_spec.rs index 81f7b2e21..d1291d775 100644 --- a/dip-template/nodes/dip-consumer/src/chain_spec.rs +++ b/dip-template/nodes/dip-consumer/src/chain_spec.rs @@ -19,11 +19,12 @@ use cumulus_primitives_core::ParaId; use dip_consumer_runtime_template::{ AccountId, AuraId, BalancesConfig, CollatorSelectionConfig, ParachainInfoConfig, RuntimeGenesisConfig, - SessionConfig, SessionKeys, Signature, SudoConfig, SystemConfig, EXISTENTIAL_DEPOSIT, SS58_PREFIX, WASM_BINARY, + SessionConfig, SessionKeys, Signature, SudoConfig, EXISTENTIAL_DEPOSIT, SS58_PREFIX, WASM_BINARY, }; use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup, Properties}; use sc_service::{ChainType, GenericChainSpec}; use serde::{Deserialize, Serialize}; +use serde_json::to_value; use sp_core::{sr25519, Pair, Public}; use sp_runtime::traits::{IdentifyAccount, Verify}; @@ -72,12 +73,6 @@ fn testnet_genesis( id: ParaId, ) -> RuntimeGenesisConfig { RuntimeGenesisConfig { - system: SystemConfig { - code: WASM_BINARY - .expect("WASM binary was not build, please build it!") - .to_vec(), - ..Default::default() - }, parachain_system: Default::default(), parachain_info: ParachainInfoConfig { parachain_id: id, @@ -101,46 +96,45 @@ fn testnet_genesis( .map(|(acc, aura)| (acc.clone(), acc, template_session_keys(aura))) .collect(), }, - aura: Default::default(), - aura_ext: Default::default(), + ..Default::default() } } pub fn development_config() -> ChainSpec { + let wasm_binary = WASM_BINARY.expect("WASM binary was not build, please build it!"); let mut properties = Properties::new(); properties.insert("tokenSymbol".into(), "REILT".into()); properties.insert("tokenDecimals".into(), 12.into()); properties.insert("ss58Format".into(), SS58_PREFIX.into()); - ChainSpec::from_genesis( - "DIP consumer dev", - "dip-consumer-dev", - ChainType::Development, - move || { - testnet_genesis( - vec![( - get_account_id_from_seed::("Alice"), - get_collator_keys_from_seed("Alice"), - )], - vec![ - get_account_id_from_seed::("Alice"), - get_account_id_from_seed::("Alice//stash"), - get_account_id_from_seed::("Bob"), - get_account_id_from_seed::("Bob//stash"), - get_account_id_from_seed::("Charlie"), - get_account_id_from_seed::("Charlie//stash"), - ], - PARA_ID.into(), - ) - }, - Vec::new(), - None, - "dip-consumer-dev".into(), - None, - None, + let genesis = testnet_genesis( + vec![( + get_account_id_from_seed::("Alice"), + get_collator_keys_from_seed("Alice"), + )], + vec![ + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Bob//stash"), + get_account_id_from_seed::("Charlie"), + get_account_id_from_seed::("Charlie//stash"), + ], + PARA_ID.into(), + ); + + ChainSpec::builder( + wasm_binary, Extensions { relay_chain: "rococo-local".into(), para_id: PARA_ID, }, ) + .with_name("DIP consumer dev") + .with_id("dip-consumer-dev") + .with_chain_type(ChainType::Development) + .with_protocol_id("dip-consumer-dev") + .with_properties(properties) + .with_genesis_config(to_value(genesis).unwrap()) + .build() } diff --git a/dip-template/nodes/dip-consumer/src/cli.rs b/dip-template/nodes/dip-consumer/src/cli.rs index dcfab8623..0f962b460 100644 --- a/dip-template/nodes/dip-consumer/src/cli.rs +++ b/dip-template/nodes/dip-consumer/src/cli.rs @@ -18,7 +18,7 @@ use std::path::PathBuf; -use cumulus_client_cli::{ExportGenesisStateCommand, ExportGenesisWasmCommand, PurgeChainCmd}; +use cumulus_client_cli::{ExportGenesisHeadCommand, ExportGenesisWasmCommand, PurgeChainCmd}; use polkadot_cli::RunCmd; use sc_cli::{BuildSpecCmd, CheckBlockCmd, ExportBlocksCmd, ExportStateCmd, ImportBlocksCmd, RevertCmd}; use sc_service::Configuration; @@ -42,7 +42,7 @@ pub enum Subcommand { PurgeChain(PurgeChainCmd), - ExportGenesisState(ExportGenesisStateCommand), + ExportGenesisState(ExportGenesisHeadCommand), ExportGenesisWasm(ExportGenesisWasmCommand), #[command(subcommand)] diff --git a/dip-template/nodes/dip-consumer/src/command.rs b/dip-template/nodes/dip-consumer/src/command.rs index a8cbba1b5..0ef400ef9 100644 --- a/dip-template/nodes/dip-consumer/src/command.rs +++ b/dip-template/nodes/dip-consumer/src/command.rs @@ -183,7 +183,7 @@ pub fn run() -> Result<()> { let runner = cli.create_runner(cmd)?; runner.sync_run(|config| { let partials = new_partial(&config)?; - cmd.run(&*config.chain_spec, &*partials.client) + cmd.run(partials.client) }) } Some(Subcommand::ExportGenesisWasm(cmd)) => { diff --git a/dip-template/nodes/dip-consumer/src/service.rs b/dip-template/nodes/dip-consumer/src/service.rs index 02b8fa93c..45f06a7ff 100644 --- a/dip-template/nodes/dip-consumer/src/service.rs +++ b/dip-template/nodes/dip-consumer/src/service.rs @@ -244,8 +244,14 @@ async fn start_node_impl( if let Some(hwbench) = hwbench { print_hwbench(&hwbench); - if !SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) && validator { - log::warn!("⚠️ The hardware does not meet the minimal requirements for role 'Authority'."); + match SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) { + Err(err) if validator => { + log::warn!( + "⚠️ The hardware does not meet the minimal requirements {} for role 'Authority'.", + err + ); + } + _ => {} } if let Some(ref mut telemetry) = telemetry { @@ -395,6 +401,7 @@ fn start_consensus( proposer, collator_service, authoring_duration: Duration::from_millis(500), + reinitialize: false, }; let fut = aura::run::(params); diff --git a/dip-template/nodes/dip-provider/Cargo.toml b/dip-template/nodes/dip-provider/Cargo.toml index abb003ba6..e62b0506b 100644 --- a/dip-template/nodes/dip-provider/Cargo.toml +++ b/dip-template/nodes/dip-provider/Cargo.toml @@ -15,11 +15,12 @@ version = { workspace = true } substrate-build-script-utils = { workspace = true } [dependencies] -clap = { workspace = true, features = ["derive", "std"] } -futures = { workspace = true } -jsonrpsee = { workspace = true, features = ["server"] } -log = { workspace = true, features = ["std"] } -serde = { workspace = true, features = ["derive", "std"] } +clap = { workspace = true, features = ["derive", "std"] } +futures = { workspace = true } +jsonrpsee = { workspace = true, features = ["server"] } +log = { workspace = true, features = ["std"] } +serde = { workspace = true, features = ["derive", "std"] } +serde_json = { workspace = true } # Internal dependencies dip-provider-runtime-template = { workspace = true, features = ["std"] } diff --git a/dip-template/nodes/dip-provider/src/chain_spec.rs b/dip-template/nodes/dip-provider/src/chain_spec.rs index 97937f0ea..f6c527d20 100644 --- a/dip-template/nodes/dip-provider/src/chain_spec.rs +++ b/dip-template/nodes/dip-provider/src/chain_spec.rs @@ -19,11 +19,12 @@ use cumulus_primitives_core::ParaId; use dip_provider_runtime_template::{ AccountId, AuraId, BalancesConfig, CollatorSelectionConfig, ParachainInfoConfig, RuntimeGenesisConfig, - SessionConfig, SessionKeys, Signature, SudoConfig, SystemConfig, EXISTENTIAL_DEPOSIT, SS58_PREFIX, WASM_BINARY, + SessionConfig, SessionKeys, Signature, SudoConfig, EXISTENTIAL_DEPOSIT, SS58_PREFIX, WASM_BINARY, }; use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup, Properties}; use sc_service::{ChainType, GenericChainSpec}; use serde::{Deserialize, Serialize}; +use serde_json::to_value; use sp_core::{sr25519, Pair, Public}; use sp_runtime::traits::{IdentifyAccount, Verify}; @@ -72,13 +73,6 @@ fn testnet_genesis( id: ParaId, ) -> RuntimeGenesisConfig { RuntimeGenesisConfig { - system: SystemConfig { - code: WASM_BINARY - .expect("WASM binary was not build, please build it!") - .to_vec(), - ..Default::default() - }, - parachain_system: Default::default(), parachain_info: ParachainInfoConfig { parachain_id: id, ..Default::default() @@ -101,47 +95,45 @@ fn testnet_genesis( .map(|(acc, aura)| (acc.clone(), acc, template_session_keys(aura))) .collect(), }, - aura: Default::default(), - aura_ext: Default::default(), - did_lookup: Default::default(), + ..Default::default() } } pub fn development_config() -> ChainSpec { + let wasm_binary = WASM_BINARY.expect("WASM binary was not build, please build it!"); let mut properties = Properties::new(); properties.insert("tokenSymbol".into(), "SEILT".into()); properties.insert("tokenDecimals".into(), 12.into()); properties.insert("ss58Format".into(), SS58_PREFIX.into()); - ChainSpec::from_genesis( - "DIP provider dev", - "dip-provider-dev", - ChainType::Development, - move || { - testnet_genesis( - vec![( - get_account_id_from_seed::("Alice"), - get_collator_keys_from_seed("Alice"), - )], - vec![ - get_account_id_from_seed::("Alice"), - get_account_id_from_seed::("Alice//stash"), - get_account_id_from_seed::("Bob"), - get_account_id_from_seed::("Bob//stash"), - get_account_id_from_seed::("Charlie"), - get_account_id_from_seed::("Charlie//stash"), - ], - PARA_ID.into(), - ) - }, - Vec::new(), - None, - "dip-provider-dev".into(), - None, - None, + let genesis_state = testnet_genesis( + vec![( + get_account_id_from_seed::("Alice"), + get_collator_keys_from_seed("Alice"), + )], + vec![ + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Bob//stash"), + get_account_id_from_seed::("Charlie"), + get_account_id_from_seed::("Charlie//stash"), + ], + PARA_ID.into(), + ); + + ChainSpec::builder( + wasm_binary, Extensions { relay_chain: "rococo-local".into(), para_id: PARA_ID, }, ) + .with_name("DIP provider dev") + .with_id("dip-provider-dev") + .with_chain_type(ChainType::Development) + .with_protocol_id("dip-consumer-dev") + .with_properties(properties) + .with_genesis_config(to_value(genesis_state).unwrap()) + .build() } diff --git a/dip-template/nodes/dip-provider/src/cli.rs b/dip-template/nodes/dip-provider/src/cli.rs index dcfab8623..0f962b460 100644 --- a/dip-template/nodes/dip-provider/src/cli.rs +++ b/dip-template/nodes/dip-provider/src/cli.rs @@ -18,7 +18,7 @@ use std::path::PathBuf; -use cumulus_client_cli::{ExportGenesisStateCommand, ExportGenesisWasmCommand, PurgeChainCmd}; +use cumulus_client_cli::{ExportGenesisHeadCommand, ExportGenesisWasmCommand, PurgeChainCmd}; use polkadot_cli::RunCmd; use sc_cli::{BuildSpecCmd, CheckBlockCmd, ExportBlocksCmd, ExportStateCmd, ImportBlocksCmd, RevertCmd}; use sc_service::Configuration; @@ -42,7 +42,7 @@ pub enum Subcommand { PurgeChain(PurgeChainCmd), - ExportGenesisState(ExportGenesisStateCommand), + ExportGenesisState(ExportGenesisHeadCommand), ExportGenesisWasm(ExportGenesisWasmCommand), #[command(subcommand)] diff --git a/dip-template/nodes/dip-provider/src/command.rs b/dip-template/nodes/dip-provider/src/command.rs index 4d47dd55e..0bb28c8d0 100644 --- a/dip-template/nodes/dip-provider/src/command.rs +++ b/dip-template/nodes/dip-provider/src/command.rs @@ -183,7 +183,7 @@ pub fn run() -> Result<()> { let runner = cli.create_runner(cmd)?; runner.sync_run(|config| { let partials = new_partial(&config)?; - cmd.run(&*config.chain_spec, &*partials.client) + cmd.run(partials.client) }) } Some(Subcommand::ExportGenesisWasm(cmd)) => { diff --git a/dip-template/nodes/dip-provider/src/service.rs b/dip-template/nodes/dip-provider/src/service.rs index aa152a816..a98447e1c 100644 --- a/dip-template/nodes/dip-provider/src/service.rs +++ b/dip-template/nodes/dip-provider/src/service.rs @@ -244,8 +244,14 @@ async fn start_node_impl( if let Some(hwbench) = hwbench { print_hwbench(&hwbench); - if !SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) && validator { - log::warn!("⚠️ The hardware does not meet the minimal requirements for role 'Authority'."); + match SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) { + Err(err) if validator => { + log::warn!( + "⚠️ The hardware does not meet the minimal requirements {} for role 'Authority'.", + err + ); + } + _ => {} } if let Some(ref mut telemetry) = telemetry { @@ -395,6 +401,7 @@ fn start_consensus( proposer, collator_service, authoring_duration: Duration::from_millis(500), + reinitialize: false, }; let fut = aura::run::(params); diff --git a/dip-template/runtimes/dip-consumer/src/lib.rs b/dip-template/runtimes/dip-consumer/src/lib.rs index 31552ce4e..e75cd1fa3 100644 --- a/dip-template/runtimes/dip-consumer/src/lib.rs +++ b/dip-template/runtimes/dip-consumer/src/lib.rs @@ -38,12 +38,12 @@ pub use sp_consensus_aura::sr25519::AuthorityId as AuraId; pub use sp_runtime::{MultiAddress, Perbill, Permill}; use cumulus_pallet_parachain_system::{ParachainSetCode, RelayNumberMonotonicallyIncreases}; -use cumulus_primitives_core::CollationInfo; +use cumulus_primitives_core::{AggregateMessageOrigin, CollationInfo}; use frame_support::{ construct_runtime, dispatch::DispatchClass, parameter_types, - traits::{ConstU32, ConstU64, ConstU8, Everything}, + traits::{ConstU32, ConstU64, ConstU8, EnqueueWithOrigin, Everything}, weights::{ constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND}, IdentityFee, Weight, @@ -57,7 +57,7 @@ use frame_system::{ use pallet_balances::AccountData; use pallet_collator_selection::IdentityCollator; use pallet_session::{FindAccountFromAuthorIndex, PeriodicSessions}; -use pallet_transaction_payment::{CurrencyAdapter, FeeDetails, RuntimeDispatchInfo}; +use pallet_transaction_payment::{FeeDetails, FungibleAdapter, RuntimeDispatchInfo}; use sp_api::impl_runtime_apis; use sp_consensus_aura::SlotDuration; use sp_core::{crypto::KeyTypeId, ConstBool, ConstU128, ConstU16, OpaqueMetadata}; @@ -224,6 +224,7 @@ impl frame_system::Config for Runtime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = RuntimeTask; type SS58Prefix = ConstU16; type SystemWeightInfo = weights::frame_system::WeightInfo; type Version = Version; @@ -251,9 +252,12 @@ type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook< UNINCLUDED_SEGMENT_CAPACITY, >; +parameter_types! { + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; +} + impl cumulus_pallet_parachain_system::Config for Runtime { type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases; - type DmpMessageHandler = (); type OnSystemEvent = (); type OutboundXcmpMessageSource = (); type ReservedDmpWeight = (); @@ -262,6 +266,8 @@ impl cumulus_pallet_parachain_system::Config for Runtime { type SelfParaId = ParachainInfo; type XcmpMessageHandler = (); type ConsensusHook = ConsensusHook; + type WeightInfo = (); + type DmpQueue = EnqueueWithOrigin<(), RelayOrigin>; } impl pallet_timestamp::Config for Runtime { @@ -295,17 +301,17 @@ impl pallet_balances::Config for Runtime { type ExistentialDeposit = ConstU128; type FreezeIdentifier = RuntimeFreezeReason; type MaxFreezes = ConstU32<50>; - type MaxHolds = ConstU32<50>; type MaxLocks = ConstU32<50>; type MaxReserves = ConstU32<50>; type ReserveIdentifier = [u8; 8]; type RuntimeEvent = RuntimeEvent; type RuntimeHoldReason = RuntimeHoldReason; type WeightInfo = (); + type RuntimeFreezeReason = RuntimeFreezeReason; } impl pallet_transaction_payment::Config for Runtime { - type OnChargeTransaction = CurrencyAdapter; + type OnChargeTransaction = FungibleAdapter; type FeeMultiplierUpdate = (); type LengthToFee = IdentityFee; type OperationalFeeMultiplier = ConstU8<1>; diff --git a/dip-template/runtimes/dip-consumer/src/weights/frame_system.rs b/dip-template/runtimes/dip-consumer/src/weights/frame_system.rs index f3e08f6fb..00b52d06f 100644 --- a/dip-template/runtimes/dip-consumer/src/weights/frame_system.rs +++ b/dip-template/runtimes/dip-consumer/src/weights/frame_system.rs @@ -48,6 +48,13 @@ use sp_std::marker::PhantomData; /// Weight functions for `frame_system`. pub struct WeightInfo(PhantomData); impl frame_system::WeightInfo for WeightInfo { + + fn apply_authorized_upgrade() -> Weight { + todo!() + } + fn authorize_upgrade() -> Weight { + todo!() + } /// The range of component `b` is `[0, 3932160]`. fn remark(b: u32, ) -> Weight { // Proof Size summary in bytes: diff --git a/dip-template/runtimes/dip-provider/Cargo.toml b/dip-template/runtimes/dip-provider/Cargo.toml index ad1f689a1..f075e1a2e 100644 --- a/dip-template/runtimes/dip-provider/Cargo.toml +++ b/dip-template/runtimes/dip-provider/Cargo.toml @@ -91,6 +91,7 @@ runtime-benchmarks = [ std = [ "cumulus-pallet-aura-ext/std", "cumulus-pallet-parachain-system/std", + "cumulus-primitives-aura/std", "cumulus-primitives-core/std", "cumulus-primitives-timestamp/std", "did/std", diff --git a/dip-template/runtimes/dip-provider/src/lib.rs b/dip-template/runtimes/dip-provider/src/lib.rs index aef6075cc..dc4d316a3 100644 --- a/dip-template/runtimes/dip-provider/src/lib.rs +++ b/dip-template/runtimes/dip-provider/src/lib.rs @@ -36,13 +36,13 @@ pub use sp_consensus_aura::sr25519::AuthorityId as AuraId; pub use sp_runtime::{MultiAddress, Perbill, Permill}; use cumulus_pallet_parachain_system::{ParachainSetCode, RelayNumberMonotonicallyIncreases}; -use cumulus_primitives_core::CollationInfo; +use cumulus_primitives_core::{AggregateMessageOrigin, CollationInfo}; use did::{DidRawOrigin, EnsureDidOrigin}; use frame_support::{ construct_runtime, dispatch::DispatchClass, parameter_types, - traits::{ConstU32, ConstU64, ConstU8, Everything}, + traits::{ConstU32, ConstU64, ConstU8, EnqueueWithOrigin, Everything}, weights::{ constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND}, IdentityFee, Weight, @@ -57,7 +57,7 @@ use pallet_balances::AccountData; use pallet_collator_selection::IdentityCollator; use pallet_dip_provider::{traits::IdentityProvider, IdentityProviderOf}; use pallet_session::{FindAccountFromAuthorIndex, PeriodicSessions}; -use pallet_transaction_payment::{CurrencyAdapter, FeeDetails, RuntimeDispatchInfo}; +use pallet_transaction_payment::{FeeDetails, FungibleAdapter, RuntimeDispatchInfo}; use runtime_common::dip::merkle::{CompleteMerkleProof, DidMerkleProofOf, DidMerkleRootGenerator}; use sp_api::impl_runtime_apis; use sp_consensus_aura::SlotDuration; @@ -225,6 +225,7 @@ impl frame_system::Config for Runtime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = RuntimeTask; type SS58Prefix = ConstU16; type SystemWeightInfo = weights::frame_system::WeightInfo; type Version = Version; @@ -252,9 +253,12 @@ type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook< UNINCLUDED_SEGMENT_CAPACITY, >; +parameter_types! { + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; +} + impl cumulus_pallet_parachain_system::Config for Runtime { type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases; - type DmpMessageHandler = (); type OnSystemEvent = (); type OutboundXcmpMessageSource = (); type ReservedDmpWeight = (); @@ -263,6 +267,8 @@ impl cumulus_pallet_parachain_system::Config for Runtime { type SelfParaId = ParachainInfo; type XcmpMessageHandler = (); type ConsensusHook = ConsensusHook; + type WeightInfo = (); + type DmpQueue = EnqueueWithOrigin<(), RelayOrigin>; } impl pallet_timestamp::Config for Runtime { @@ -296,17 +302,17 @@ impl pallet_balances::Config for Runtime { type ExistentialDeposit = ConstU128; type FreezeIdentifier = RuntimeFreezeReason; type MaxFreezes = ConstU32<50>; - type MaxHolds = ConstU32<50>; type MaxLocks = ConstU32<50>; type MaxReserves = ConstU32<50>; type ReserveIdentifier = [u8; 8]; type RuntimeEvent = RuntimeEvent; type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = RuntimeFreezeReason; type WeightInfo = (); } impl pallet_transaction_payment::Config for Runtime { - type OnChargeTransaction = CurrencyAdapter; + type OnChargeTransaction = FungibleAdapter; type FeeMultiplierUpdate = (); type LengthToFee = IdentityFee; type OperationalFeeMultiplier = ConstU8<1>; diff --git a/dip-template/runtimes/dip-provider/src/weights/frame_system.rs b/dip-template/runtimes/dip-provider/src/weights/frame_system.rs index 308142b96..7036084bf 100644 --- a/dip-template/runtimes/dip-provider/src/weights/frame_system.rs +++ b/dip-template/runtimes/dip-provider/src/weights/frame_system.rs @@ -48,6 +48,12 @@ use sp_std::marker::PhantomData; /// Weight functions for `frame_system`. pub struct WeightInfo(PhantomData); impl frame_system::WeightInfo for WeightInfo { + fn apply_authorized_upgrade() -> Weight { + todo!() + } + fn authorize_upgrade() -> Weight { + todo!() + } /// The range of component `b` is `[0, 3932160]`. fn remark(b: u32, ) -> Weight { // Proof Size summary in bytes: diff --git a/integration-tests/emulated/Cargo.toml b/integration-tests/emulated/Cargo.toml index d382cad32..212585bcb 100644 --- a/integration-tests/emulated/Cargo.toml +++ b/integration-tests/emulated/Cargo.toml @@ -11,79 +11,42 @@ repository = { workspace = true } version = { workspace = true } [dependencies] -asset-hub-kusama-runtime = { workspace = true, default-features = true } -asset-hub-polkadot-runtime = { workspace = true, default-features = true } -asset-hub-westend-runtime = { workspace = true, default-features = true } -attestation = { workspace = true, default-features = true } -bridge-hub-kusama-runtime = { workspace = true, default-features = true } -bridge-hub-polkadot-runtime = { workspace = true, default-features = true } -bridge-hub-rococo-runtime = { workspace = true, default-features = true } -collectives-polkadot-runtime = { workspace = true, default-features = true } -ctype = { workspace = true, default-features = true } -cumulus-pallet-dmp-queue = { workspace = true, default-features = true } -cumulus-pallet-xcmp-queue = { workspace = true, default-features = true } -cumulus-primitives-core = { workspace = true, default-features = true } -did = { workspace = true, default-features = true } -frame-support = { workspace = true, default-features = true } -frame-system = { workspace = true, default-features = true } -integration-tests-common = { workspace = true, default-features = true } -kilt-asset-dids = { workspace = true, default-features = true } -pallet-bags-list = { workspace = true, default-features = true } -pallet-did-lookup = { workspace = true, default-features = true } -pallet-message-queue = { workspace = true, default-features = true } -pallet-web3-names = { workspace = true, default-features = true } -pallet-xcm = { workspace = true, default-features = true } -parity-scale-codec = { workspace = true, features = ["derive"], default-features = true } -penpal-runtime = { workspace = true, default-features = true } -peregrine-runtime = { workspace = true, default-features = true } -polkadot-parachain = { workspace = true, default-features = true } -polkadot-primitives = { workspace = true, default-features = true } -polkadot-runtime = { workspace = true, default-features = true } -polkadot-runtime-constants = { workspace = true, default-features = true } -polkadot-runtime-parachains = { workspace = true, default-features = true } -polkadot-service = { workspace = true, default-features = true } -polkadot-test-runtime = { workspace = true, default-features = true } -public-credentials = { workspace = true, features = ["mock"], default-features = true } -rococo-runtime = { workspace = true, default-features = true } -runtime-common = { workspace = true, default-features = true } -sc-consensus-grandpa = { workspace = true, default-features = true } -sp-authority-discovery = { workspace = true, default-features = true } -sp-consensus-babe = { workspace = true, default-features = true } -sp-consensus-beefy = { workspace = true, default-features = true } -sp-core = { workspace = true, default-features = true } -sp-io = { workspace = true, default-features = true } -sp-runtime = { workspace = true, default-features = true } -sp-tracing = { workspace = true, default-features = true } -spiritnet-runtime = { workspace = true, default-features = true } -xcm = { workspace = true, default-features = true } -xcm-emulator = { workspace = true, default-features = true } -xcm-executor = { workspace = true, default-features = true } +asset-hub-rococo-emulated-chain = { workspace = true, default-features = true } +asset-hub-rococo-runtime = { workspace = true, default-features = true } +attestation = { workspace = true, default-features = true } +ctype = { workspace = true, default-features = true } +cumulus-primitives-core = { workspace = true, default-features = true } +did = { workspace = true, default-features = true } +emulated-integration-tests-common = { workspace = true, default-features = true } +frame-support = { workspace = true, default-features = true } +frame-system = { workspace = true, default-features = true } +kilt-asset-dids = { workspace = true, default-features = true } +pallet-did-lookup = { workspace = true, default-features = true } +pallet-message-queue = { workspace = true, default-features = true } +pallet-web3-names = { workspace = true, default-features = true } +pallet-xcm = { workspace = true, default-features = true } +parity-scale-codec = { workspace = true, features = ["derive"], default-features = true } +peregrine-runtime = { workspace = true, default-features = true } +polkadot-parachain = { workspace = true, default-features = true } +polkadot-primitives = { workspace = true, default-features = true } +polkadot-runtime-parachains = { workspace = true, default-features = true } +polkadot-service = { workspace = true, default-features = true } +public-credentials = { workspace = true, features = ["mock"], default-features = true } +rococo-emulated-chain = { workspace = true, default-features = true } +rococo-runtime = { workspace = true, default-features = true } +runtime-common = { workspace = true, default-features = true } +sc-consensus-grandpa = { workspace = true, default-features = true } +sp-authority-discovery = { workspace = true, default-features = true } +sp-consensus-babe = { workspace = true, default-features = true } +sp-consensus-beefy = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } +sp-runtime = { workspace = true, default-features = true } +sp-tracing = { workspace = true, default-features = true } +spiritnet-runtime = { workspace = true, default-features = true } +xcm = { workspace = true, default-features = true } +xcm-emulator = { workspace = true, default-features = true } +xcm-executor = { workspace = true, default-features = true } [features] -runtime-benchmarks = [ - "asset-hub-kusama-runtime/runtime-benchmarks", - "asset-hub-polkadot-runtime/runtime-benchmarks", - "asset-hub-westend-runtime/runtime-benchmarks", - "bridge-hub-kusama-runtime/runtime-benchmarks", - "bridge-hub-polkadot-runtime/runtime-benchmarks", - "bridge-hub-rococo-runtime/runtime-benchmarks", - "collectives-polkadot-runtime/runtime-benchmarks", - "ctype/runtime-benchmarks", - "did/runtime-benchmarks", - "integration-tests-common/runtime-benchmarks", - "penpal-runtime/runtime-benchmarks", - "peregrine-runtime/runtime-benchmarks", - "polkadot-runtime/runtime-benchmarks", - "polkadot-test-runtime/runtime-benchmarks", - "rococo-runtime/runtime-benchmarks", - "runtime-common/runtime-benchmarks", - "spiritnet-runtime/runtime-benchmarks", -] - -try-runtime = [ - "ctype/try-runtime", - "did/try-runtime", - "pallet-bags-list/try-runtime", - "peregrine-runtime/try-runtime", - "spiritnet-runtime/try-runtime", -] +runtime-benchmarks = ["asset-hub-rococo-runtime/runtime-benchmarks"] diff --git a/integration-tests/emulated/src/lib.rs b/integration-tests/emulated/src/lib.rs index 57b246ccf..b4f4429d9 100644 --- a/integration-tests/emulated/src/lib.rs +++ b/integration-tests/emulated/src/lib.rs @@ -16,8 +16,9 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +#[cfg(all(not(feature = "runtime-benchmarks"), test))] mod mock; -mod utils; - -#[cfg(test)] +#[cfg(all(not(feature = "runtime-benchmarks"), test))] mod tests; +#[cfg(all(not(feature = "runtime-benchmarks"), test))] +mod utils; diff --git a/integration-tests/emulated/src/mock/mod.rs b/integration-tests/emulated/src/mock/mod.rs index 645422b1b..8e4f16883 100644 --- a/integration-tests/emulated/src/mock/mod.rs +++ b/integration-tests/emulated/src/mock/mod.rs @@ -16,4 +16,3 @@ pub mod network; pub mod para_chains; -pub mod relay_chains; diff --git a/integration-tests/emulated/src/mock/network.rs b/integration-tests/emulated/src/mock/network.rs index efb7b7768..26be22e63 100644 --- a/integration-tests/emulated/src/mock/network.rs +++ b/integration-tests/emulated/src/mock/network.rs @@ -14,28 +14,25 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +use asset_hub_rococo_emulated_chain::AssetHubRococo as AssetHubParachain; +use rococo_emulated_chain::Rococo as RococoChain; use xcm_emulator::decl_test_networks; -use crate::mock::{ - para_chains::{AssetHubPolkadot, AssetHubRococo, Peregrine, Spiritnet}, - relay_chains::{Polkadot, Rococo}, -}; +use crate::mock::para_chains::{PeregrineParachain, SpiritnetParachain}; + +pub type Rococo = RococoChain; +pub type Spiritnet = SpiritnetParachain; +pub type Peregrine = PeregrineParachain; +pub type AssetHub = AssetHubParachain; decl_test_networks! { - pub struct MockNetworkPolkadot { - relay_chain = Polkadot, + pub struct MockNetwork { + relay_chain = RococoChain, parachains = vec![ - AssetHubPolkadot, - Spiritnet, + AssetHubParachain, + SpiritnetParachain, + PeregrineParachain, ], bridge = () }, - pub struct MockNetworkRococo { - relay_chain = Rococo, - parachains = vec![ - AssetHubRococo, - Peregrine, - ], - bridge = () - } } diff --git a/integration-tests/emulated/src/mock/para_chains.rs b/integration-tests/emulated/src/mock/para_chains.rs index c17f22739..0967f3639 100644 --- a/integration-tests/emulated/src/mock/para_chains.rs +++ b/integration-tests/emulated/src/mock/para_chains.rs @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +use emulated_integration_tests_common::accounts; use frame_support::traits::OnInitialize; -use integration_tests_common::constants::{accounts, asset_hub_polkadot, polkadot::ED}; -use runtime_common::AuthorityId; +use runtime_common::{constants::KILT, AuthorityId}; use sp_core::sr25519; use sp_runtime::{BuildStorage, Storage}; use xcm_emulator::decl_test_parachains; @@ -29,19 +29,12 @@ pub mod spiritnet { use spiritnet_runtime::{ BalancesConfig, ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, SessionConfig, SessionKeys, - SystemConfig, WASM_BINARY, }; - pub const PARA_ID: u32 = 2_000; + pub const PARA_ID: u32 = 2_001; pub fn genesis() -> Storage { RuntimeGenesisConfig { - system: SystemConfig { - code: WASM_BINARY - .expect("WASM binary was not build, please build it!") - .to_vec(), - ..Default::default() - }, parachain_info: ParachainInfoConfig { parachain_id: PARA_ID.into(), ..Default::default() @@ -51,7 +44,7 @@ pub mod spiritnet { ..Default::default() }, session: SessionConfig { - keys: vec![( + keys: [( get_account_id_from_seed::("Alice"), get_from_seed::("Alice"), )] @@ -63,7 +56,7 @@ pub mod spiritnet { balances: accounts::init_balances() .iter() .cloned() - .map(|k| (k, ED * 4096)) + .map(|k| (k, KILT * 1_000)) .collect(), }, ..Default::default() @@ -93,7 +86,7 @@ pub mod peregrine { ..Default::default() }, session: SessionConfig { - keys: vec![( + keys: [( get_account_id_from_seed::("Alice"), get_from_seed::("Alice"), )] @@ -105,7 +98,7 @@ pub mod peregrine { balances: accounts::init_balances() .iter() .cloned() - .map(|k| (k, ED * 4096)) + .map(|k| (k, KILT * 1_000)) .collect(), }, ..Default::default() @@ -116,7 +109,7 @@ pub mod peregrine { } decl_test_parachains! { - pub struct Spiritnet { + pub struct SpiritnetParachain { genesis = spiritnet::genesis(), on_init = { spiritnet_runtime::AuraExt::on_initialize(1); @@ -124,9 +117,9 @@ decl_test_parachains! { runtime = spiritnet_runtime, core = { XcmpMessageHandler: spiritnet_runtime::XcmpQueue, - DmpMessageHandler: spiritnet_runtime::DmpQueue, LocationToAccountId: spiritnet_runtime::xcm_config::LocationToAccountIdConverter, ParachainInfo: spiritnet_runtime::ParachainInfo, + MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin, }, pallets = { Balances: spiritnet_runtime::Balances, @@ -139,7 +132,7 @@ decl_test_parachains! { PublicCredentials: spiritnet_runtime::PublicCredentials, } }, - pub struct Peregrine { + pub struct PeregrineParachain { genesis = peregrine::genesis(), on_init = { peregrine_runtime::AuraExt::on_initialize(1); @@ -147,9 +140,9 @@ decl_test_parachains! { runtime = peregrine_runtime, core = { XcmpMessageHandler: peregrine_runtime::XcmpQueue, - DmpMessageHandler: peregrine_runtime::DmpQueue, LocationToAccountId: peregrine_runtime::xcm_config::LocationToAccountIdConverter, ParachainInfo: peregrine_runtime::ParachainInfo, + MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin, }, pallets = { Balances: peregrine_runtime::Balances, @@ -162,41 +155,4 @@ decl_test_parachains! { PublicCredentials: peregrine_runtime::PublicCredentials, } }, - pub struct AssetHubPolkadot { - genesis = asset_hub_polkadot::genesis(), - on_init = { - asset_hub_polkadot_runtime::AuraExt::on_initialize(1); - }, - runtime = asset_hub_polkadot_runtime, - core = { - XcmpMessageHandler: asset_hub_polkadot_runtime::XcmpQueue, - DmpMessageHandler: asset_hub_polkadot_runtime::DmpQueue, - LocationToAccountId: asset_hub_polkadot_runtime::xcm_config::LocationToAccountId, - ParachainInfo: asset_hub_polkadot_runtime::ParachainInfo, - }, - pallets = { - Balances: asset_hub_polkadot_runtime::Balances, - PolkadotXcm: asset_hub_polkadot_runtime::PolkadotXcm, - Assets: asset_hub_polkadot_runtime::Assets, - } - }, - pub struct AssetHubRococo { - genesis = asset_hub_polkadot::genesis(), - on_init = { - asset_hub_polkadot_runtime::AuraExt::on_initialize(1); - }, - runtime = asset_hub_polkadot_runtime, - core = { - XcmpMessageHandler: asset_hub_polkadot_runtime::XcmpQueue, - DmpMessageHandler: asset_hub_polkadot_runtime::DmpQueue, - LocationToAccountId: asset_hub_polkadot_runtime::xcm_config::LocationToAccountId, - ParachainInfo: asset_hub_polkadot_runtime::ParachainInfo, - }, - pallets = { - Balances: asset_hub_polkadot_runtime::Balances, - PolkadotXcm: asset_hub_polkadot_runtime::PolkadotXcm, - Assets: asset_hub_polkadot_runtime::Assets, - } - }, - } diff --git a/integration-tests/emulated/src/mock/relay_chains.rs b/integration-tests/emulated/src/mock/relay_chains.rs deleted file mode 100644 index 98b709c1a..000000000 --- a/integration-tests/emulated/src/mock/relay_chains.rs +++ /dev/null @@ -1,51 +0,0 @@ -// KILT Blockchain – https://botlabs.org -// Copyright (C) 2019-2024 BOTLabs GmbH - -// The KILT Blockchain 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. - -// The KILT Blockchain 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 this program. If not, see . - -use integration_tests_common::constants::{polkadot, rococo}; -use xcm_emulator::{decl_test_relay_chains, DefaultMessageProcessor}; - -decl_test_relay_chains! { - #[api_version(5)] - pub struct Polkadot { - genesis = polkadot::genesis(), - on_init = (), - runtime = polkadot_runtime, - core = { - MessageProcessor: DefaultMessageProcessor, - SovereignAccountOf: polkadot_runtime::xcm_config::SovereignAccountOf, - }, - pallets = { - XcmPallet: polkadot_runtime::XcmPallet, - Balances: polkadot_runtime::Balances, - Hrmp: polkadot_runtime::Hrmp, - } - }, - #[api_version(5)] - pub struct Rococo { - genesis = rococo::genesis(), - on_init = (), - runtime = rococo_runtime, - core = { - MessageProcessor: DefaultMessageProcessor, - SovereignAccountOf: rococo_runtime::xcm_config::LocationConverter, - }, - pallets = { - XcmPallet: rococo_runtime::XcmPallet, - Sudo: rococo_runtime::Sudo, - Balances: rococo_runtime::Balances, - } - }, -} diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/association.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/association.rs index fc64e3e3c..60f7a0e84 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/association.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/association.rs @@ -16,18 +16,15 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -51,9 +48,9 @@ fn get_xcm_message_add_association(origin_kind: OriginKind, withdraw_balance: Ba #[test] fn test_create_association_from_asset_hub_successful() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); let init_balance = KILT * 10; @@ -66,30 +63,29 @@ fn test_create_association_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_add_association_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -111,14 +107,14 @@ fn test_create_association_from_asset_hub_successful() { fn test_create_association_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_peregrine(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -127,16 +123,16 @@ fn test_create_association_from_asset_hub_unsuccessful() { let xcm_add_association_msg = get_xcm_message_add_association(origin_kind, KILT); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_add_association_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/attestation.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/attestation.rs index 6da14bc62..2b24b0155 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/attestation.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/attestation.rs @@ -16,19 +16,16 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; use sp_core::H256; -use xcm::{v3::prelude::OriginKind, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_ctype, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -59,9 +56,9 @@ fn get_xcm_message_attestation_creation( #[test] fn test_attestation_creation_from_asset_hub_successful() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let ctype_hash_value = H256([0; 32]); let claim_hash_value = H256([1; 32]); @@ -86,30 +83,29 @@ fn test_attestation_creation_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_issue_attestation_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Attestation(attestation::Event::AttestationCreated { attester, claim_hash, authorization: _ , ctype_hash }) => { attester: attester == &asset_hub_sovereign_account, claim_hash: claim_hash == &claim_hash_value, @@ -127,7 +123,7 @@ fn test_attestation_creation_from_asset_hub_successful() { #[test] fn test_attestation_creation_from_asset_hub_unsuccessful() { let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let destination = get_sibling_destination_peregrine(); let ctype_hash_value = H256([0; 32]); @@ -139,7 +135,7 @@ fn test_attestation_creation_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_ctype(ctype_hash_value, asset_hub_sovereign_account.clone()); @@ -150,16 +146,16 @@ fn test_attestation_creation_from_asset_hub_unsuccessful() { let xcm_issue_attestation_msg = get_xcm_message_attestation_creation(origin_kind, withdraw_balance, ctype_hash_value, claim_hash_value); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_issue_attestation_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/ctype.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/ctype.rs index be1fc1157..6b7fce1fe 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/ctype.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/ctype.rs @@ -16,18 +16,15 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -51,13 +48,13 @@ fn get_xcm_message_ctype_creation(origin_kind: OriginKind, withdraw_balance: Bal #[test] fn test_ctype_creation_from_asset_hub_successful() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 10; - let xcm_add_ctype_msg = get_xcm_message_ctype_creation(OriginKind::SovereignAccount, KILT); + let xcm_create_ctype_msg = get_xcm_message_ctype_creation(OriginKind::SovereignAccount, KILT); let destination = get_sibling_destination_peregrine(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); @@ -67,30 +64,29 @@ fn test_ctype_creation_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), - Box::new(xcm_add_ctype_msg) + Box::new(xcm_create_ctype_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -109,7 +105,7 @@ fn test_ctype_creation_from_asset_hub_successful() { #[test] fn test_ctype_creation_from_asset_hub_unsuccessful() { - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 10; @@ -120,25 +116,25 @@ fn test_ctype_creation_from_asset_hub_unsuccessful() { let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); >::set_balance(&asset_hub_sovereign_account, init_balance); }); - let xcm_add_ctype_msg = get_xcm_message_ctype_creation(origin_kind, KILT); + let xcm_create_ctype_msg = get_xcm_message_ctype_creation(origin_kind, KILT); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), - Box::new(xcm_add_ctype_msg) + Box::new(xcm_create_ctype_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/did.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/did.rs index 7202dd7f6..5360498a2 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/did.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/did.rs @@ -16,6 +16,7 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use did::did_details::DidVerificationKey; use frame_support::{ assert_ok, @@ -23,14 +24,13 @@ use frame_support::{ }; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine, PeregrinePallet}, - relay_chains::Rococo, + network::{AssetHub, MockNetwork, Peregrine, Rococo}, + para_chains::PeregrineParachainParaPallet, }, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -51,9 +51,9 @@ fn get_xcm_message_create_did(origin_kind: OriginKind, withdraw_balance: Balance #[test] fn test_did_creation_from_asset_hub_successful() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 10; let withdraw_balance = init_balance / 2; @@ -67,16 +67,16 @@ fn test_did_creation_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination.clone()), Box::new(xcm_create_did_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -88,7 +88,7 @@ fn test_did_creation_from_asset_hub_successful() { assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Did(did::Event::DidCreated(account, did_identifier)) => { account: account == &asset_hub_sovereign_account, did_identifier: did_identifier == &asset_hub_sovereign_account, @@ -96,10 +96,11 @@ fn test_did_creation_from_asset_hub_successful() { ] ); - let balance_on_hold = <::Balances as Inspect>::balance_on_hold( - &peregrine_runtime::RuntimeHoldReason::from(did::HoldReason::Deposit), - &asset_hub_sovereign_account, - ); + let balance_on_hold = + <::Balances as Inspect>::balance_on_hold( + &peregrine_runtime::RuntimeHoldReason::from(did::HoldReason::Deposit), + &asset_hub_sovereign_account, + ); assert_eq!( balance_on_hold, @@ -114,7 +115,7 @@ fn test_did_creation_from_asset_hub_successful() { #[test] fn test_did_creation_from_asset_hub_unsuccessful() { - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let withdraw_balance = init_balance / 2; @@ -125,7 +126,7 @@ fn test_did_creation_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Xcm, OriginKind::Superuser, OriginKind::Native]; for origin in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { >::set_balance(&asset_hub_sovereign_account, init_balance); @@ -133,16 +134,16 @@ fn test_did_creation_from_asset_hub_unsuccessful() { let xcm_create_did_msg = get_xcm_message_create_did(origin, withdraw_balance); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_create_did_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/public_credentials.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/public_credentials.rs index e0fba6b64..b0dd4c515 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/public_credentials.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/public_credentials.rs @@ -16,19 +16,16 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; use sp_core::H256; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_ctype, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -66,9 +63,9 @@ fn get_xcm_message_add_public_credential( #[test] fn test_create_public_credential_from_asset_hub_successful() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); let ctype_hash_value = H256([0; 32]); @@ -85,30 +82,29 @@ fn test_create_public_credential_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_issue_public_credential_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -129,7 +125,7 @@ fn test_create_public_credential_from_asset_hub_successful() { fn test_create_public_credential_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let ctype_hash_value = H256([0; 32]); @@ -137,7 +133,7 @@ fn test_create_public_credential_from_asset_hub_unsuccessful() { let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -148,16 +144,16 @@ fn test_create_public_credential_from_asset_hub_unsuccessful() { let xcm_issue_public_credential_msg = get_xcm_message_add_public_credential(origin_kind, KILT, ctype_hash_value); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_issue_public_credential_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/unallowed_did_call.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/unallowed_did_call.rs index 89ba8ca87..cc1cbe2dc 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/unallowed_did_call.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/unallowed_did_call.rs @@ -16,18 +16,15 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -76,14 +73,14 @@ fn test_not_allowed_did_call() { OriginKind::SovereignAccount, ]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_peregrine(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -92,16 +89,16 @@ fn test_not_allowed_did_call() { let xcm_invalid_did_msg = get_xcm_message_system_remark(origin_kind, KILT); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_invalid_did_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -111,14 +108,10 @@ fn test_not_allowed_did_call() { Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; - // All calls should have [NoPermission] error assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::NoPermission, - .. - }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); @@ -138,14 +131,14 @@ fn test_recursion_did_call() { OriginKind::SovereignAccount, ]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_peregrine(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -154,16 +147,16 @@ fn test_recursion_did_call() { let xcm_invalid_did_msg = get_xcm_message_recursion(origin_kind, KILT); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_invalid_did_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -177,10 +170,7 @@ fn test_recursion_did_call() { assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::NoPermission, - .. - }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/utils.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/utils.rs index 5e2894d5d..c6290d9f4 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/utils.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/utils.rs @@ -22,17 +22,17 @@ use runtime_common::Balance; use sp_core::H256; use sp_runtime::AccountId32; use xcm::{ - v3::prelude::{ + lts::prelude::{ Instruction::{BuyExecution, Transact, WithdrawAsset}, Junction, Junctions::{self, Here}, OriginKind, ParentThen, Weight, WeightLimit, Xcm, }, - DoubleEncoded, VersionedMultiLocation, VersionedXcm, + DoubleEncoded, VersionedLocation, VersionedXcm, }; use xcm_emulator::Parachain; -use crate::mock::para_chains::{peregrine, AssetHubRococo, Peregrine}; +use crate::mock::network::{AssetHub, Peregrine}; pub fn create_mock_ctype(ctype_hash: H256, creator: AccountId32) { let ctype_entry = CtypeEntry { creator, created_at: 0 }; @@ -41,11 +41,11 @@ pub fn create_mock_ctype(ctype_hash: H256, creator: AccountId32) { } pub fn get_asset_hub_sovereign_account() -> AccountId32 { - Peregrine::sovereign_account_id_of(Peregrine::sibling_location_of(AssetHubRococo::para_id())) + Peregrine::sovereign_account_id_of(Peregrine::sibling_location_of(AssetHub::para_id())) } -pub fn get_sibling_destination_peregrine() -> VersionedMultiLocation { - ParentThen(Junctions::X1(Junction::Parachain(peregrine::PARA_ID))).into() +pub fn get_sibling_destination_peregrine() -> VersionedLocation { + ParentThen(Junctions::X1([Junction::Parachain(Peregrine::para_id().into())].into())).into() } pub fn create_mock_did_from_account(account: AccountId32) { diff --git a/integration-tests/emulated/src/tests/peregrine/did_pallets/w3n.rs b/integration-tests/emulated/src/tests/peregrine/did_pallets/w3n.rs index bd0849f5d..2736ff4ba 100644 --- a/integration-tests/emulated/src/tests/peregrine/did_pallets/w3n.rs +++ b/integration-tests/emulated/src/tests/peregrine/did_pallets/w3n.rs @@ -16,19 +16,16 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; use sp_runtime::BoundedVec; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, tests::peregrine::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_peregrine, @@ -54,9 +51,9 @@ fn get_xcm_message_claim_w3n(origin_kind: OriginKind, withdraw_balance: Balance) #[test] fn test_claim_w3n_from_asset_hub_successful() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); let init_balance = KILT * 10; @@ -69,30 +66,29 @@ fn test_claim_w3n_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_claim_w3n_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -113,14 +109,14 @@ fn test_claim_w3n_from_asset_hub_successful() { fn test_claim_w3n_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_peregrine(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); Peregrine::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -129,16 +125,16 @@ fn test_claim_w3n_from_asset_hub_unsuccessful() { let xcm_claim_w3n_msg = get_xcm_message_claim_w3n(origin_kind, KILT); - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_claim_w3n_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] diff --git a/integration-tests/emulated/src/tests/peregrine/reserve_transfers.rs b/integration-tests/emulated/src/tests/peregrine/reserve_transfers.rs index cd9e620d4..004c9bb58 100644 --- a/integration-tests/emulated/src/tests/peregrine/reserve_transfers.rs +++ b/integration-tests/emulated/src/tests/peregrine/reserve_transfers.rs @@ -16,24 +16,22 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -use cumulus_pallet_xcmp_queue::Event as XcmpQueueEvent; -use frame_support::{assert_ok, dispatch::RawOrigin, traits::fungible::Inspect}; -use integration_tests_common::constants::{ - accounts::ALICE, - asset_hub_polkadot::{self, ED}, -}; +use emulated_integration_tests_common::accounts::ALICE; +use frame_support::{assert_noop, assert_ok, dispatch::RawOrigin, traits::fungible::Inspect}; use peregrine_runtime::PolkadotXcm as PeregrineXcm; -use runtime_common::AccountId; +use runtime_common::{constants::KILT, AccountId}; use sp_core::sr25519; use sp_runtime::traits::Zero; -use xcm::v3::prelude::{Here, Junction, Junctions, Parent, ParentThen, WeightLimit, X1}; +use xcm::lts::{ + prelude::{Here, Junction, Junctions, Parent, ParentThen}, + WeightLimit, +}; use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, TestExt}; use crate::{ mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, Peregrine, PeregrinePallet}, - relay_chains::Rococo, + network::{AssetHub, MockNetwork, Peregrine, Rococo}, + para_chains::PeregrineParachainParaPallet, }, utils::get_account_id_from_seed, }; @@ -42,33 +40,36 @@ use crate::{ /// allow transfers to the relaychain since the funds might be lost. #[test] fn test_reserve_asset_transfer_from_regular_peregrine_account_to_relay() { - MockNetworkRococo::reset(); + MockNetwork::reset(); + + let balance_to_transfer = KILT; let alice_account = get_account_id_from_seed::(ALICE); Peregrine::execute_with(|| { - assert_ok!(PeregrineXcm::limited_reserve_transfer_assets( - RawOrigin::Signed(alice_account.clone()).into(), - Box::new(Parent.into()), - Box::new( - X1(Junction::AccountId32 { - network: None, - id: alice_account.into() - }) - .into() + assert_noop!( + PeregrineXcm::limited_reserve_transfer_assets( + RawOrigin::Signed(alice_account.clone()).into(), + Box::new(Parent.into()), + Box::new( + Junctions::X1( + [Junction::AccountId32 { + network: None, + id: alice_account.into() + }] + .into() + ) + .into() + ), + Box::new((Here, balance_to_transfer).into()), + 0, + WeightLimit::Unlimited, ), - Box::new((Here, 1_000_000).into()), - 0, - WeightLimit::Unlimited, - )); - - type RuntimeEvent = ::RuntimeEvent; - - assert_expected_events!( - Peregrine, - vec![RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Attempted { - outcome: xcm::latest::Outcome::Error(xcm::latest::Error::Barrier) - }) => {},] + sp_runtime::DispatchError::Module(sp_runtime::ModuleError { + index: 83, + error: [24, 0, 0, 0,], + message: Some("LocalExecutionIncomplete") + }) ); }); // No message should reach the relaychain. @@ -79,13 +80,13 @@ fn test_reserve_asset_transfer_from_regular_peregrine_account_to_relay() { #[test] fn test_reserve_asset_transfer_from_regular_peregrine_account_to_asset_hub() { - MockNetworkRococo::reset(); + MockNetwork::reset(); let alice_account_id = get_account_id_from_seed::(ALICE); let asset_hub_sovereign_account = - Peregrine::sovereign_account_id_of(Peregrine::sibling_location_of(AssetHubRococo::para_id())); + Peregrine::sovereign_account_id_of(Peregrine::sibling_location_of(AssetHub::para_id())); - let balance_to_transfer = 10000 * ED; + let balance_to_transfer = KILT; Peregrine::execute_with(|| { // the sovereign_account of AssetHub should have no coins. @@ -97,12 +98,15 @@ fn test_reserve_asset_transfer_from_regular_peregrine_account_to_asset_hub() { // submit xcm message assert_ok!(PeregrineXcm::limited_reserve_transfer_assets( RawOrigin::Signed(alice_account_id.clone()).into(), - Box::new(ParentThen(Junctions::X1(Junction::Parachain(asset_hub_polkadot::PARA_ID))).into()), + Box::new(ParentThen(Junctions::X1([Junction::Parachain(AssetHub::para_id().into())].into())).into()), Box::new( - X1(Junction::AccountId32 { - network: None, - id: asset_hub_sovereign_account.clone().into() - }) + Junctions::X1( + [Junction::AccountId32 { + network: None, + id: asset_hub_sovereign_account.clone().into() + }] + .into() + ) .into() ), Box::new((Here, balance_to_transfer).into()), @@ -116,14 +120,16 @@ fn test_reserve_asset_transfer_from_regular_peregrine_account_to_asset_hub() { assert_expected_events!( Peregrine, vec![RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Attempted { - outcome: xcm::latest::Outcome::Complete(_) + outcome: xcm::latest::Outcome::Complete{ .. } }) => {}, ] ); // we also expect that the sovereignAccount of AssetHub has some coins now - let balance_after_transfer: u128 = - <::Balances as Inspect>::balance(&asset_hub_sovereign_account); + let balance_after_transfer = + <::Balances as Inspect>::balance( + &asset_hub_sovereign_account, + ); assert_eq!(balance_after_transfer, balance_to_transfer); }); @@ -132,12 +138,14 @@ fn test_reserve_asset_transfer_from_regular_peregrine_account_to_asset_hub() { assert_eq!(Rococo::events().len(), 0); }); // Fails on AssetHub since peregrine is not a trusted registrar - AssetHubRococo::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; + AssetHub::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, - vec![RuntimeEvent::XcmpQueue(XcmpQueueEvent::Fail { .. }) => {},] + AssetHub, + vec![ + RuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, + ] ); }); } diff --git a/integration-tests/emulated/src/tests/peregrine/sudo.rs b/integration-tests/emulated/src/tests/peregrine/sudo.rs index e94c51b34..12138ee6f 100644 --- a/integration-tests/emulated/src/tests/peregrine/sudo.rs +++ b/integration-tests/emulated/src/tests/peregrine/sudo.rs @@ -16,38 +16,29 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; +use rococo_emulated_chain::RococoRelayPallet; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{ - v3::prelude::{ - Here, - Instruction::{BuyExecution, Transact, UnpaidExecution, WithdrawAsset}, - Junction, Junctions, OriginKind, ParentThen, WeightLimit, Xcm, - }, - DoubleEncoded, VersionedMultiLocation, VersionedXcm, -}; +use xcm::{lts::prelude::*, opaque::*, DoubleEncoded, VersionedLocation}; use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, RelayChain, TestExt, Weight}; -use crate::mock::{ - network::MockNetworkRococo, - para_chains::{peregrine, AssetHubRococo, AssetHubRococoPallet, Peregrine}, - relay_chains::{Rococo, RococoPallet}, -}; +use crate::mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}; fn get_sovereign_account_id_of_asset_hub() -> AccountId { - Peregrine::sovereign_account_id_of(Peregrine::sibling_location_of(AssetHubRococo::para_id())) + Peregrine::sovereign_account_id_of(Peregrine::sibling_location_of(AssetHub::para_id())) } -fn get_parachain_destination_from_parachain() -> VersionedMultiLocation { - ParentThen(Junctions::X1(Junction::Parachain(peregrine::PARA_ID))).into() +fn get_parachain_destination_from_parachain() -> VersionedLocation { + ParentThen(Junctions::X1([Junction::Parachain(Peregrine::para_id().into())].into())).into() } -fn get_parachain_destination_from_relay_chain() -> VersionedMultiLocation { - Rococo::child_location_of(peregrine::PARA_ID.into()).into_versioned() +fn get_parachain_destination_from_relay_chain() -> VersionedLocation { + Rococo::child_location_of(Peregrine::para_id()).into_versioned() } -fn get_unpaid_xcm_message(origin_kind: OriginKind) -> VersionedXcm<()> { +fn get_unpaid_xcm_message(origin_kind: OriginKind) -> VersionedXcm { let code = vec![]; let call: DoubleEncoded<()> = ::RuntimeCall::System(frame_system::Call::set_code { code }) .encode() @@ -68,7 +59,7 @@ fn get_unpaid_xcm_message(origin_kind: OriginKind) -> VersionedXcm<()> { ])) } -fn get_paid_xcm_message(init_balance: Balance, origin_kind: OriginKind) -> VersionedXcm<()> { +fn get_paid_xcm_message(init_balance: Balance, origin_kind: OriginKind) -> VersionedXcm { let code = vec![]; let call: DoubleEncoded<()> = ::RuntimeCall::System(frame_system::Call::set_code { code }) @@ -105,13 +96,13 @@ fn test_sudo_call_from_relay_chain_to_peregrine() { ]; for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); let xcm = get_unpaid_xcm_message(origin_kind); //Send XCM message from relay chain Rococo::execute_with(|| { - assert_ok!(::XcmPallet::send( + assert_ok!(::XcmPallet::send( sudo_origin.clone(), Box::new(parachain_destination.clone()), Box::new(xcm) @@ -133,17 +124,14 @@ fn test_sudo_call_from_relay_chain_to_peregrine() { assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward { - outcome: xcm::v3::Outcome::Incomplete(_, xcm::v3::Error::NoPermission), - .. - }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); // No event on the AssetHub message is meant for peregrine - AssetHubRococo::execute_with(|| { - assert_eq!(AssetHubRococo::events().len(), 0); + AssetHub::execute_with(|| { + assert_eq!(AssetHub::events().len(), 0); }); } } @@ -152,8 +140,7 @@ fn test_sudo_call_from_relay_chain_to_peregrine() { fn test_sudo_call_from_asset_hub_to_peregrine() { let asset_hub_sovereign_account = get_sovereign_account_id_of_asset_hub(); - let sudo_origin = ::RuntimeOrigin::root(); - + let sudo_origin = ::RuntimeOrigin::root(); let parachain_destination = get_parachain_destination_from_parachain(); let init_balance = KILT * 10; @@ -165,7 +152,7 @@ fn test_sudo_call_from_asset_hub_to_peregrine() { ]; for origin_kind in origin_kind_list { - MockNetworkRococo::reset(); + MockNetwork::reset(); let xcm = get_paid_xcm_message(init_balance, origin_kind); @@ -175,39 +162,35 @@ fn test_sudo_call_from_asset_hub_to_peregrine() { }); //Send XCM message from AssetHub - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(parachain_destination.clone()), Box::new(xcm) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - // We expect to get the [NoPermission] error Peregrine::execute_with(|| { type PeregrineRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::NoPermission, - .. - }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); - // No event on the relaychain. Message is for AssetHub + // No events on the relaychain. Message was for AssetHub Rococo::execute_with(|| { assert_eq!(Rococo::events().len(), 0); }); diff --git a/integration-tests/emulated/src/tests/peregrine/teleportation.rs b/integration-tests/emulated/src/tests/peregrine/teleportation.rs index ad64cfbce..944a4746e 100644 --- a/integration-tests/emulated/src/tests/peregrine/teleportation.rs +++ b/integration-tests/emulated/src/tests/peregrine/teleportation.rs @@ -16,29 +16,22 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use emulated_integration_tests_common::accounts::{ALICE, BOB}; use frame_support::{assert_noop, dispatch::RawOrigin}; -use integration_tests_common::constants::{ - accounts::{ALICE, BOB}, - asset_hub_polkadot, - polkadot::ED, -}; use peregrine_runtime::PolkadotXcm as PeregrineXcm; +use rococo_emulated_chain::genesis::ED; use sp_core::sr25519; -use xcm::v3::prelude::{Here, Junction, Junctions, ParentThen, WeightLimit, X1}; -use xcm_emulator::{Chain, Network, TestExt}; +use xcm::lts::prelude::{Here, Junction, Junctions, ParentThen, WeightLimit}; +use xcm_emulator::{Chain, Network, Parachain, TestExt}; use crate::{ - mock::{ - network::MockNetworkRococo, - para_chains::{AssetHubRococo, Peregrine}, - relay_chains::Rococo, - }, + mock::network::{AssetHub, MockNetwork, Peregrine, Rococo}, utils::get_account_id_from_seed, }; #[test] fn test_teleport_asset_from_regular_peregrine_account_to_asset_hub() { - MockNetworkRococo::reset(); + MockNetwork::reset(); let alice_account_id = get_account_id_from_seed::(ALICE); let bob_account_id = get_account_id_from_seed::(BOB); @@ -47,12 +40,15 @@ fn test_teleport_asset_from_regular_peregrine_account_to_asset_hub() { assert_noop!( PeregrineXcm::limited_teleport_assets( RawOrigin::Signed(alice_account_id.clone()).into(), - Box::new(ParentThen(Junctions::X1(Junction::Parachain(asset_hub_polkadot::PARA_ID))).into()), + Box::new(ParentThen(Junctions::X1([Junction::Parachain(AssetHub::para_id().into())].into())).into()), Box::new( - X1(Junction::AccountId32 { - network: None, - id: bob_account_id.into() - }) + Junctions::X1( + [Junction::AccountId32 { + network: None, + id: bob_account_id.into() + }] + .into() + ) .into() ), Box::new((Here, 1000 * ED).into()), @@ -67,7 +63,7 @@ fn test_teleport_asset_from_regular_peregrine_account_to_asset_hub() { assert_eq!(Rococo::events().len(), 0); }); // AssetHub should not receive any message, since the message is filtered out. - AssetHubRococo::execute_with(|| { - assert_eq!(AssetHubRococo::events().len(), 0); + AssetHub::execute_with(|| { + assert_eq!(AssetHub::events().len(), 0); }); } diff --git a/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs b/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs index 937c699df..68aacfbfd 100644 --- a/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs +++ b/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs @@ -16,35 +16,37 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use did::did_details::DidVerificationKey; use frame_support::{ assert_ok, traits::fungible::{Inspect, Mutate}, + weights::Weight, }; use parity_scale_codec::Encode; +use rococo_emulated_chain::RococoRelayPallet; use runtime_common::{constants::EXISTENTIAL_DEPOSIT, AccountId}; use xcm::{ - v3::prelude::{ - Instruction::{Transact, UnpaidExecution}, - Junction, Junctions, OriginKind, Outcome, ParentThen, WeightLimit, Xcm, + lts::{ + prelude::{OriginKind, Transact, UnpaidExecution}, + Junction, Junctions, ParentThen, WeightLimit, Xcm, }, - DoubleEncoded, VersionedMultiLocation, VersionedXcm, + DoubleEncoded, VersionedLocation, VersionedXcm, }; -use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, TestExt, Weight}; +use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, TestExt}; use crate::mock::{ - network::MockNetworkRococo, - para_chains::{peregrine, AssetHubRococo, AssetHubRococoPallet, Peregrine, PeregrinePallet}, - relay_chains::{Rococo, RococoPallet}, + network::{AssetHub, MockNetwork, Peregrine, Rococo}, + para_chains::PeregrineParachainParaPallet, }; #[test] fn test_unpaid_execution_from_asset_hub_to_peregrine() { - MockNetworkRococo::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); - let parachain_destination: VersionedMultiLocation = - ParentThen(Junctions::X1(Junction::Parachain(peregrine::PARA_ID))).into(); + let sudo_origin = ::RuntimeOrigin::root(); + let parachain_destination: VersionedLocation = + ParentThen(Junctions::X1([Junction::Parachain(Peregrine::para_id().into())].into())).into(); let weight_limit = WeightLimit::Unlimited; let check_origin = None; @@ -55,17 +57,17 @@ fn test_unpaid_execution_from_asset_hub_to_peregrine() { }])); //Send XCM message from Parachain - AssetHubRococo::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(parachain_destination), Box::new(xcm) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubRococo, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -77,10 +79,7 @@ fn test_unpaid_execution_from_asset_hub_to_peregrine() { assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::Barrier, - .. - }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::ProcessingFailed { .. }) => {}, ] ); }); @@ -93,10 +92,11 @@ fn test_unpaid_execution_from_asset_hub_to_peregrine() { #[test] fn test_unpaid_execution_from_rococo_to_peregrine() { - MockNetworkRococo::reset(); + MockNetwork::reset(); let sudo_origin = ::RuntimeOrigin::root(); - let parachain_destination: VersionedMultiLocation = Junctions::X1(Junction::Parachain(peregrine::PARA_ID)).into(); + let parachain_destination: VersionedLocation = + Junctions::X1([Junction::Parachain(Peregrine::para_id().into())].into()).into(); let init_balance = ::BaseDeposit::get() + ::Fee::get() + EXISTENTIAL_DEPOSIT; @@ -104,10 +104,10 @@ fn test_unpaid_execution_from_rococo_to_peregrine() { let weight_limit = WeightLimit::Unlimited; let check_origin = None; - let polkadot_sovereign_account = Peregrine::sovereign_account_id_of(Peregrine::parent_location()); + let rococo_sovereign_account = Peregrine::sovereign_account_id_of(Peregrine::parent_location()); let call: DoubleEncoded<()> = ::RuntimeCall::Did(did::Call::create_from_account { - authentication_key: DidVerificationKey::Account(polkadot_sovereign_account.clone()), + authentication_key: DidVerificationKey::Account(rococo_sovereign_account.clone()), }) .encode() .into(); @@ -127,12 +127,12 @@ fn test_unpaid_execution_from_rococo_to_peregrine() { Peregrine::execute_with(|| { // DID creation takes a deposit of 2 KILT coins + Fees. We have to give them to // the sovereign account. Otherwise, the extrinsic will fail. - >::set_balance(&polkadot_sovereign_account, init_balance); + >::set_balance(&rococo_sovereign_account, init_balance); }); //Send XCM message from relaychain Rococo::execute_with(|| { - assert_ok!(::XcmPallet::send( + assert_ok!(::XcmPallet::send( sudo_origin, Box::new(parachain_destination), Box::new(xcm) @@ -153,27 +153,25 @@ fn test_unpaid_execution_from_rococo_to_peregrine() { assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward { - outcome: Outcome::Complete(_), - .. - }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, PeregrineRuntimeEvent::Did(did::Event::DidCreated(account, did_identifier)) => { - account: account == &polkadot_sovereign_account, - did_identifier: did_identifier == &polkadot_sovereign_account, + account: account == &rococo_sovereign_account, + did_identifier: did_identifier == &rococo_sovereign_account, }, ] ); // Since the user have not paid any tx fees, we expect that the free balance is // the ED - let balance_after_transfer: u128 = - <::Balances as Inspect>::balance(&polkadot_sovereign_account); + let balance_after_transfer: u128 = <::Balances as Inspect< + AccountId, + >>::balance(&rococo_sovereign_account); assert_eq!(balance_after_transfer, EXISTENTIAL_DEPOSIT); }); - // No event on AssetHubRococo. message is meant for Peregrine - AssetHubRococo::execute_with(|| { - assert_eq!(AssetHubRococo::events().len(), 0); + // No event on AssetHub. message is meant for Peregrine + AssetHub::execute_with(|| { + assert_eq!(AssetHub::events().len(), 0); }); } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/association.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/association.rs index 491ef61d4..5e515430d 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/association.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/association.rs @@ -16,18 +16,15 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -51,9 +48,9 @@ fn get_xcm_message_add_association(origin_kind: OriginKind, withdraw_balance: Ba #[test] fn test_create_association_from_asset_hub_successful() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); let init_balance = KILT * 10; @@ -66,30 +63,29 @@ fn test_create_association_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_add_association_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -102,8 +98,8 @@ fn test_create_association_from_asset_hub_successful() { ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } @@ -111,14 +107,14 @@ fn test_create_association_from_asset_hub_successful() { fn test_create_association_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_spiritnet(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -127,16 +123,16 @@ fn test_create_association_from_asset_hub_unsuccessful() { let xcm_add_association_msg = get_xcm_message_add_association(origin_kind, KILT); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_add_association_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -157,8 +153,8 @@ fn test_create_association_from_asset_hub_unsuccessful() { assert!(!is_event_present) }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/attestation.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/attestation.rs index 33183aaa4..f1a5f1a2d 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/attestation.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/attestation.rs @@ -16,19 +16,16 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; use sp_core::H256; -use xcm::{v3::prelude::OriginKind, VersionedXcm}; +use xcm::{v4::prelude::OriginKind, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_ctype, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -59,9 +56,9 @@ fn get_xcm_message_attestation_creation( #[test] fn test_attestation_creation_from_asset_hub_successful() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let ctype_hash_value = H256([0; 32]); let claim_hash_value = H256([1; 32]); @@ -86,30 +83,29 @@ fn test_attestation_creation_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_issue_attestation_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Attestation(attestation::Event::AttestationCreated { attester, claim_hash, authorization: _ , ctype_hash }) => { attester: attester == &asset_hub_sovereign_account, claim_hash: claim_hash == &claim_hash_value, @@ -119,15 +115,15 @@ fn test_attestation_creation_from_asset_hub_successful() { ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } #[test] fn test_attestation_creation_from_asset_hub_unsuccessful() { let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let destination = get_sibling_destination_spiritnet(); let ctype_hash_value = H256([0; 32]); @@ -139,7 +135,7 @@ fn test_attestation_creation_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { create_mock_ctype(ctype_hash_value, asset_hub_sovereign_account.clone()); @@ -150,16 +146,16 @@ fn test_attestation_creation_from_asset_hub_unsuccessful() { let xcm_issue_attestation_msg = get_xcm_message_attestation_creation(origin_kind, withdraw_balance, ctype_hash_value, claim_hash_value); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_issue_attestation_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -180,8 +176,8 @@ fn test_attestation_creation_from_asset_hub_unsuccessful() { assert!(!is_event_present); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/ctype.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/ctype.rs index f0680cdfa..90f520b4d 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/ctype.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/ctype.rs @@ -16,18 +16,15 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -51,9 +48,9 @@ fn get_xcm_message_ctype_creation(origin_kind: OriginKind, withdraw_balance: Bal #[test] fn test_ctype_creation_from_asset_hub_successful() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 10; @@ -67,30 +64,29 @@ fn test_ctype_creation_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_create_ctype_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -102,14 +98,14 @@ fn test_ctype_creation_from_asset_hub_successful() { ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } #[test] fn test_ctype_creation_from_asset_hub_unsuccessful() { - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 10; @@ -120,7 +116,7 @@ fn test_ctype_creation_from_asset_hub_unsuccessful() { let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -129,16 +125,16 @@ fn test_ctype_creation_from_asset_hub_unsuccessful() { let xcm_create_ctype_msg = get_xcm_message_ctype_creation(origin_kind, KILT); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_create_ctype_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -159,8 +155,8 @@ fn test_ctype_creation_from_asset_hub_unsuccessful() { assert!(!is_event_present); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/did.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/did.rs index 8297d0355..d1d76c98d 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/did.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/did.rs @@ -16,6 +16,7 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use did::did_details::DidVerificationKey; use frame_support::{ assert_ok, @@ -23,14 +24,13 @@ use frame_support::{ }; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet, SpiritnetPallet}, - relay_chains::Polkadot, + network::{AssetHub, MockNetwork, Rococo, Spiritnet}, + para_chains::SpiritnetParachainParaPallet, }, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -51,9 +51,9 @@ fn get_xcm_message_create_did(origin_kind: OriginKind, withdraw_balance: Balance #[test] fn test_did_creation_from_asset_hub_successful() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 10; let withdraw_balance = init_balance / 2; @@ -67,16 +67,16 @@ fn test_did_creation_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination.clone()), Box::new(xcm_create_did_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -88,7 +88,7 @@ fn test_did_creation_from_asset_hub_successful() { assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Did(did::Event::DidCreated(account, did_identifier)) => { account: account == &asset_hub_sovereign_account, did_identifier: did_identifier == &asset_hub_sovereign_account, @@ -96,10 +96,11 @@ fn test_did_creation_from_asset_hub_successful() { ] ); - let balance_on_hold = <::Balances as Inspect>::balance_on_hold( - &spiritnet_runtime::RuntimeHoldReason::from(did::HoldReason::Deposit), - &asset_hub_sovereign_account, - ); + let balance_on_hold = + <::Balances as Inspect>::balance_on_hold( + &spiritnet_runtime::RuntimeHoldReason::from(did::HoldReason::Deposit), + &asset_hub_sovereign_account, + ); assert_eq!( balance_on_hold, @@ -107,14 +108,14 @@ fn test_did_creation_from_asset_hub_successful() { ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } #[test] fn test_did_creation_from_asset_hub_unsuccessful() { - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let withdraw_balance = init_balance / 2; @@ -125,7 +126,7 @@ fn test_did_creation_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Xcm, OriginKind::Superuser, OriginKind::Native]; for origin in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { >::set_balance(&asset_hub_sovereign_account, init_balance); @@ -133,16 +134,16 @@ fn test_did_creation_from_asset_hub_unsuccessful() { let xcm_create_did_msg = get_xcm_message_create_did(origin, withdraw_balance); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_create_did_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -162,8 +163,8 @@ fn test_did_creation_from_asset_hub_unsuccessful() { assert!(!is_create_event_present); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/public_credentials.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/public_credentials.rs index bff46f30e..c640f190a 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/public_credentials.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/public_credentials.rs @@ -16,19 +16,16 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; use sp_core::H256; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_ctype, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -66,9 +63,9 @@ fn get_xcm_message_add_public_credential( #[test] fn test_create_public_credential_from_asset_hub_successful() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); let ctype_hash_value = H256([0; 32]); @@ -85,30 +82,29 @@ fn test_create_public_credential_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_issue_public_credential_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -120,8 +116,8 @@ fn test_create_public_credential_from_asset_hub_successful() { ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } @@ -129,7 +125,7 @@ fn test_create_public_credential_from_asset_hub_successful() { fn test_create_public_credential_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let ctype_hash_value = H256([0; 32]); @@ -137,9 +133,9 @@ fn test_create_public_credential_from_asset_hub_unsuccessful() { let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - Polkadot::execute_with(|| { + Spiritnet::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); create_mock_ctype(ctype_hash_value, asset_hub_sovereign_account.clone()); >::set_balance(&asset_hub_sovereign_account, init_balance); @@ -148,16 +144,16 @@ fn test_create_public_credential_from_asset_hub_unsuccessful() { let xcm_issue_public_credential_msg = get_xcm_message_add_public_credential(origin_kind, KILT, ctype_hash_value); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_issue_public_credential_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -178,8 +174,8 @@ fn test_create_public_credential_from_asset_hub_unsuccessful() { assert!(!is_event_present) }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/unallowed_did_call.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/unallowed_did_call.rs index 98da08b9a..ff5bb6472 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/unallowed_did_call.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/unallowed_did_call.rs @@ -16,18 +16,15 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -76,14 +73,14 @@ fn test_not_allowed_did_call() { OriginKind::SovereignAccount, ]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_spiritnet(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -92,16 +89,16 @@ fn test_not_allowed_did_call() { let xcm_invalid_did_msg = get_xcm_message_system_remark(origin_kind, KILT); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_invalid_did_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -111,20 +108,16 @@ fn test_not_allowed_did_call() { Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; - // All calls should have [NoPermission] error assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::NoPermission, - .. - }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } @@ -138,14 +131,14 @@ fn test_recursion_did_call() { OriginKind::SovereignAccount, ]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_spiritnet(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -154,16 +147,16 @@ fn test_recursion_did_call() { let xcm_invalid_did_msg = get_xcm_message_recursion(origin_kind, KILT); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_invalid_did_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -173,20 +166,16 @@ fn test_recursion_did_call() { Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; - // All calls should have [NoPermission] error assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::NoPermission, - .. - }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/utils.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/utils.rs index 358903cf0..f04832199 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/utils.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/utils.rs @@ -22,17 +22,17 @@ use runtime_common::{AccountId, Balance}; use sp_core::H256; use sp_runtime::AccountId32; use xcm::{ - v3::prelude::{ + lts::prelude::{ Instruction::{BuyExecution, Transact, WithdrawAsset}, Junction, Junctions::{self, Here}, OriginKind, ParentThen, Weight, WeightLimit, Xcm, }, - DoubleEncoded, VersionedMultiLocation, VersionedXcm, + DoubleEncoded, VersionedLocation, VersionedXcm, }; use xcm_emulator::Parachain; -use crate::mock::para_chains::{spiritnet, AssetHubPolkadot, Spiritnet}; +use crate::mock::network::{AssetHub, Spiritnet}; pub fn create_mock_ctype(ctype_hash: H256, creator: AccountId32) { let ctype_entry = CtypeEntry { creator, created_at: 0 }; @@ -41,11 +41,11 @@ pub fn create_mock_ctype(ctype_hash: H256, creator: AccountId32) { } pub fn get_asset_hub_sovereign_account() -> AccountId { - Spiritnet::sovereign_account_id_of(Spiritnet::sibling_location_of(AssetHubPolkadot::para_id())) + Spiritnet::sovereign_account_id_of(Spiritnet::sibling_location_of(AssetHub::para_id())) } -pub fn get_sibling_destination_spiritnet() -> VersionedMultiLocation { - ParentThen(Junctions::X1(Junction::Parachain(spiritnet::PARA_ID))).into() +pub fn get_sibling_destination_spiritnet() -> VersionedLocation { + ParentThen(Junctions::X1([Junction::Parachain(Spiritnet::para_id().into())].into())).into() } pub fn create_mock_did_from_account(account: AccountId32) { diff --git a/integration-tests/emulated/src/tests/spiritnet/did_pallets/w3n.rs b/integration-tests/emulated/src/tests/spiritnet/did_pallets/w3n.rs index 2d5c78850..58621087a 100644 --- a/integration-tests/emulated/src/tests/spiritnet/did_pallets/w3n.rs +++ b/integration-tests/emulated/src/tests/spiritnet/did_pallets/w3n.rs @@ -16,19 +16,16 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; use runtime_common::{constants::KILT, AccountId, Balance}; use sp_runtime::BoundedVec; -use xcm::{v3::prelude::OriginKind, DoubleEncoded, VersionedXcm}; +use xcm::{lts::prelude::OriginKind, DoubleEncoded, VersionedXcm}; use xcm_emulator::{assert_expected_events, Chain, Network, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, tests::spiritnet::did_pallets::utils::{ construct_basic_transact_xcm_message, create_mock_did_from_account, get_asset_hub_sovereign_account, get_sibling_destination_spiritnet, @@ -54,9 +51,9 @@ fn get_xcm_message_claim_w3n(origin_kind: OriginKind, withdraw_balance: Balance) #[test] fn test_claim_w3n_from_asset_hub_successful() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); let init_balance = KILT * 10; @@ -69,30 +66,29 @@ fn test_claim_w3n_from_asset_hub_successful() { >::set_balance(&asset_hub_sovereign_account, init_balance); }); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(destination), Box::new(xcm_claim_w3n_msg) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] ); }); - #[cfg(not(feature = "runtime-benchmarks"))] Spiritnet::execute_with(|| { type SpiritnetRuntimeEvent = ::RuntimeEvent; assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Success { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Did(did::Event::DidCallDispatched(account, result)) => { account: account == &asset_hub_sovereign_account, result: result.is_ok(), @@ -104,8 +100,8 @@ fn test_claim_w3n_from_asset_hub_successful() { ); }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } @@ -113,14 +109,14 @@ fn test_claim_w3n_from_asset_hub_successful() { fn test_claim_w3n_from_asset_hub_unsuccessful() { let origin_kind_list = vec![OriginKind::Native, OriginKind::Superuser, OriginKind::Xcm]; - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let init_balance = KILT * 100; let destination = get_sibling_destination_spiritnet(); let asset_hub_sovereign_account = get_asset_hub_sovereign_account(); for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); Spiritnet::execute_with(|| { create_mock_did_from_account(asset_hub_sovereign_account.clone()); @@ -129,16 +125,16 @@ fn test_claim_w3n_from_asset_hub_unsuccessful() { let xcm_claim_w3n_msg = get_xcm_message_claim_w3n(origin_kind, KILT); - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(destination.clone()), Box::new(xcm_claim_w3n_msg.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -152,18 +148,15 @@ fn test_claim_w3n_from_asset_hub_unsuccessful() { matches!( event, SpiritnetRuntimeEvent::Did(did::Event::DidCallDispatched(_, _)) - | SpiritnetRuntimeEvent::Web3Names(pallet_web3_names::Event::Web3NameClaimed { - owner: _, - name: _ - }) + | SpiritnetRuntimeEvent::Web3Names(pallet_web3_names::Event::Web3NameClaimed { .. }) ) }); assert!(!is_event_present) }); - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/reserve_transfers.rs b/integration-tests/emulated/src/tests/spiritnet/reserve_transfers.rs index 7bc33bde2..f621adc08 100644 --- a/integration-tests/emulated/src/tests/spiritnet/reserve_transfers.rs +++ b/integration-tests/emulated/src/tests/spiritnet/reserve_transfers.rs @@ -16,25 +16,22 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -use cumulus_pallet_xcmp_queue::Event as XcmpQueueEvent; -use frame_support::{assert_ok, dispatch::RawOrigin, traits::fungible::Inspect}; -use integration_tests_common::constants::{accounts::ALICE, asset_hub_polkadot, polkadot::ED}; -use runtime_common::AccountId; +use emulated_integration_tests_common::accounts::ALICE; +use frame_support::{assert_noop, assert_ok, dispatch::RawOrigin, traits::fungible::Inspect}; +use runtime_common::{constants::KILT, AccountId}; use sp_core::sr25519; use sp_runtime::traits::Zero; use spiritnet_runtime::PolkadotXcm as SpiritnetXcm; -use xcm::v3::{ - prelude::{Here, Junction, Junctions, Parent, ParentThen, X1}, +use xcm::lts::{ + prelude::{Here, Junction, Junctions, Parent, ParentThen}, WeightLimit, }; - use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, TestExt}; use crate::{ mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, Spiritnet, SpiritnetPallet}, - relay_chains::Polkadot, + network::{AssetHub, MockNetwork, Rococo, Spiritnet}, + para_chains::SpiritnetParachainParaPallet, }, utils::get_account_id_from_seed, }; @@ -43,72 +40,77 @@ use crate::{ /// allow transfers to the relaychain since the funds might be lost. #[test] fn test_reserve_asset_transfer_from_regular_spiritnet_account_to_relay() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); + + let balance_to_transfer = KILT; let alice_account = get_account_id_from_seed::(ALICE); // Submit XCM msg Spiritnet::execute_with(|| { - assert_ok!(SpiritnetXcm::limited_reserve_transfer_assets( - RawOrigin::Signed(alice_account.clone()).into(), - Box::new(Parent.into()), - Box::new( - X1(Junction::AccountId32 { - network: None, - id: alice_account.into() - }) - .into() + assert_noop!( + SpiritnetXcm::limited_reserve_transfer_assets( + RawOrigin::Signed(alice_account.clone()).into(), + Box::new(Parent.into()), + Box::new( + Junctions::X1( + [Junction::AccountId32 { + network: None, + id: alice_account.into() + }] + .into() + ) + .into() + ), + Box::new((Here, balance_to_transfer).into()), + 0, + WeightLimit::Unlimited, ), - Box::new((Here, 1_000_000).into()), - 0, - WeightLimit::Unlimited, - )); - - type RuntimeEvent = ::RuntimeEvent; - - // The msg should be blocked by the barrier - assert_expected_events!( - Spiritnet, - vec![ - RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Attempted { - outcome: xcm::latest::Outcome::Error(xcm::latest::Error::Barrier) - }) => {}, - ] + sp_runtime::DispatchError::Module(sp_runtime::ModuleError { + index: 83, + error: [24, 0, 0, 0,], + message: Some("LocalExecutionIncomplete") + }) ); }); // No message should reach the relaychain. - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }) } #[test] fn test_reserve_asset_transfer_from_regular_spiritnet_account_to_asset_hub() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); let alice_account_id = get_account_id_from_seed::(ALICE); let asset_hub_sovereign_account = - Spiritnet::sovereign_account_id_of(Spiritnet::sibling_location_of(AssetHubPolkadot::para_id())); + Spiritnet::sovereign_account_id_of(Spiritnet::sibling_location_of(AssetHub::para_id())); - let balance_to_transfer = 1000 * ED; + let balance_to_transfer = KILT; Spiritnet::execute_with(|| { // the sovereign_account of AssetHub should have no coins. let balance_before_transfer = - <::Balances as Inspect>::balance(&asset_hub_sovereign_account); + <::Balances as Inspect>::balance( + &asset_hub_sovereign_account, + ); assert!(balance_before_transfer.is_zero()); // submit xcm message assert_ok!(SpiritnetXcm::limited_reserve_transfer_assets( RawOrigin::Signed(alice_account_id.clone()).into(), - Box::new(ParentThen(Junctions::X1(Junction::Parachain(asset_hub_polkadot::PARA_ID))).into()), + Box::new(ParentThen(Junctions::X1([Junction::Parachain(AssetHub::para_id().into())].into())).into()), Box::new( - X1(Junction::AccountId32 { - network: None, - id: asset_hub_sovereign_account.clone().into() - }) + Junctions::X1( + [Junction::AccountId32 { + network: None, + id: asset_hub_sovereign_account.clone().into() + }] + .into() + ) .into() ), Box::new((Here, balance_to_transfer).into()), @@ -121,31 +123,36 @@ fn test_reserve_asset_transfer_from_regular_spiritnet_account_to_asset_hub() { // we expect to have the [Complete] event. assert_expected_events!( Spiritnet, - vec![RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Attempted { - outcome: xcm::latest::Outcome::Complete(_) - }) => {}, + vec![ + RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Attempted { + outcome: xcm::latest::Outcome::Complete { .. } + }) => {}, ] ); // we also expect that the sovereignAccount of AssetHub has some coins now let balance_after_transfer = - <::Balances as Inspect>::balance(&asset_hub_sovereign_account); + <::Balances as Inspect>::balance( + &asset_hub_sovereign_account, + ); assert_eq!(balance_after_transfer, balance_to_transfer); }); // No event on the relaychain. Message is for AssetHub. - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); // Fails on AssetHub since spiritnet is not a trusted registrar - AssetHubPolkadot::execute_with(|| { - type RuntimeEvent = ::RuntimeEvent; + AssetHub::execute_with(|| { + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, - vec![RuntimeEvent::XcmpQueue(XcmpQueueEvent::Fail { .. }) => {},] + AssetHub, + vec![ + RuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, + ] ); }); } diff --git a/integration-tests/emulated/src/tests/spiritnet/sudo.rs b/integration-tests/emulated/src/tests/spiritnet/sudo.rs index bac362944..2b9c761ea 100644 --- a/integration-tests/emulated/src/tests/spiritnet/sudo.rs +++ b/integration-tests/emulated/src/tests/spiritnet/sudo.rs @@ -16,42 +16,29 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -use asset_hub_polkadot_runtime::System as AssetHubSystem; +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use frame_support::{assert_ok, traits::fungible::Mutate}; use parity_scale_codec::Encode; +use rococo_emulated_chain::RococoRelayPallet; use runtime_common::{constants::KILT, AccountId, Balance}; -use xcm::{ - v3::{ - prelude::{ - Here, - Instruction::{BuyExecution, Transact, UnpaidExecution, WithdrawAsset}, - Junction, Junctions, OriginKind, ParentThen, Xcm, - }, - WeightLimit, - }, - DoubleEncoded, VersionedMultiLocation, VersionedXcm, -}; +use xcm::{lts::prelude::*, opaque::*, DoubleEncoded, VersionedLocation}; use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, RelayChain, TestExt, Weight}; -use crate::mock::{ - network::MockNetworkPolkadot, - para_chains::{spiritnet, AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet}, - relay_chains::{Polkadot, PolkadotPallet}, -}; +use crate::mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}; fn get_sovereign_account_id_of_asset_hub() -> AccountId { - Spiritnet::sovereign_account_id_of(Spiritnet::sibling_location_of(AssetHubPolkadot::para_id())) + Spiritnet::sovereign_account_id_of(Spiritnet::sibling_location_of(AssetHub::para_id())) } -fn get_parachain_destination_from_parachain() -> VersionedMultiLocation { - ParentThen(Junctions::X1(Junction::Parachain(spiritnet::PARA_ID))).into() +fn get_parachain_destination_from_parachain() -> VersionedLocation { + ParentThen(Junctions::X1([Junction::Parachain(Spiritnet::para_id().into())].into())).into() } -fn get_parachain_destination_from_relay_chain() -> VersionedMultiLocation { - Polkadot::child_location_of(spiritnet::PARA_ID.into()).into_versioned() +fn get_parachain_destination_from_relay_chain() -> VersionedLocation { + Rococo::child_location_of(Spiritnet::para_id()).into_versioned() } -fn get_unpaid_xcm_message(origin_kind: OriginKind) -> VersionedXcm<()> { +fn get_unpaid_xcm_message(origin_kind: OriginKind) -> VersionedXcm { let code = vec![]; let call: DoubleEncoded<()> = ::RuntimeCall::System(frame_system::Call::set_code { code }) .encode() @@ -72,7 +59,7 @@ fn get_unpaid_xcm_message(origin_kind: OriginKind) -> VersionedXcm<()> { ])) } -fn get_paid_xcm_message(init_balance: Balance, origin_kind: OriginKind) -> VersionedXcm<()> { +fn get_paid_xcm_message(init_balance: Balance, origin_kind: OriginKind) -> VersionedXcm { let code = vec![]; let call: DoubleEncoded<()> = ::RuntimeCall::System(frame_system::Call::set_code { code }) @@ -99,7 +86,7 @@ fn get_paid_xcm_message(init_balance: Balance, origin_kind: OriginKind) -> Versi /// Sudo calls from other chains should not be whitelisted and therefore fail. #[test] fn test_sudo_call_from_relay_chain_to_spiritnet() { - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let parachain_destination = get_parachain_destination_from_relay_chain(); let origin_kind_list = vec![ @@ -110,21 +97,21 @@ fn test_sudo_call_from_relay_chain_to_spiritnet() { ]; for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); let xcm = get_unpaid_xcm_message(origin_kind); - Polkadot::execute_with(|| { - assert_ok!(::XcmPallet::send( + Rococo::execute_with(|| { + assert_ok!(::XcmPallet::send( sudo_origin.clone(), Box::new(parachain_destination.clone()), Box::new(xcm.clone()), )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - Polkadot, + Rococo, vec![ RuntimeEvent::XcmPallet(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -137,17 +124,14 @@ fn test_sudo_call_from_relay_chain_to_spiritnet() { assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward { - outcome: xcm::v3::Outcome::Incomplete(_, xcm::v3::Error::NoPermission), - .. - }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); // No events on other parachains. Message was for the relaychain - AssetHubPolkadot::execute_with(|| { - assert_eq!(AssetHubSystem::events().len(), 0); + AssetHub::execute_with(|| { + assert_eq!(AssetHub::events().len(), 0); }); } } @@ -157,7 +141,7 @@ fn test_sudo_call_from_relay_chain_to_spiritnet() { fn test_sudo_call_from_asset_hub_to_spiritnet() { let asset_hub_sovereign_account = get_sovereign_account_id_of_asset_hub(); - let sudo_origin = ::RuntimeOrigin::root(); + let sudo_origin = ::RuntimeOrigin::root(); let parachain_destination = get_parachain_destination_from_parachain(); let init_balance = KILT * 10; @@ -169,7 +153,7 @@ fn test_sudo_call_from_asset_hub_to_spiritnet() { ]; for origin_kind in origin_kind_list { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); let xcm = get_paid_xcm_message(init_balance, origin_kind); // Give some coins to pay the fees @@ -178,17 +162,17 @@ fn test_sudo_call_from_asset_hub_to_spiritnet() { }); // Send msg to Spiritnet - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin.clone(), Box::new(parachain_destination.clone()), Box::new(xcm.clone()) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -201,17 +185,14 @@ fn test_sudo_call_from_asset_hub_to_spiritnet() { assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::NoPermission, - .. - }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); // No events on the relaychain. Message was for Spiritnet - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } } diff --git a/integration-tests/emulated/src/tests/spiritnet/teleportation.rs b/integration-tests/emulated/src/tests/spiritnet/teleportation.rs index 6bd38161e..9a945c508 100644 --- a/integration-tests/emulated/src/tests/spiritnet/teleportation.rs +++ b/integration-tests/emulated/src/tests/spiritnet/teleportation.rs @@ -16,30 +16,22 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use emulated_integration_tests_common::accounts::{ALICE, BOB}; use frame_support::{assert_noop, dispatch::RawOrigin}; -use integration_tests_common::constants::{ - accounts::{ALICE, BOB}, - asset_hub_polkadot, - polkadot::ED, -}; +use rococo_emulated_chain::genesis::ED; use sp_core::sr25519; use spiritnet_runtime::PolkadotXcm as SpiritnetXcm; -use xcm::v3::prelude::{Here, Junction, Junctions, ParentThen, X1}; -use xcm::v3::WeightLimit; -use xcm_emulator::{Chain, Network, TestExt}; +use xcm::lts::prelude::{Here, Junction, Junctions, ParentThen, WeightLimit}; +use xcm_emulator::{Chain, Network, Parachain, TestExt}; use crate::{ - mock::{ - network::MockNetworkPolkadot, - para_chains::{AssetHubPolkadot, Spiritnet}, - relay_chains::Polkadot, - }, + mock::network::{AssetHub, MockNetwork, Rococo, Spiritnet}, utils::get_account_id_from_seed, }; #[test] fn test_teleport_asset_from_regular_spiritnet_account_to_asset_hub() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); let alice_account_id = get_account_id_from_seed::(ALICE); let bob_account_id = get_account_id_from_seed::(BOB); @@ -49,12 +41,15 @@ fn test_teleport_asset_from_regular_spiritnet_account_to_asset_hub() { assert_noop!( SpiritnetXcm::limited_teleport_assets( RawOrigin::Signed(alice_account_id.clone()).into(), - Box::new(ParentThen(Junctions::X1(Junction::Parachain(asset_hub_polkadot::PARA_ID))).into()), + Box::new(ParentThen(Junctions::X1([Junction::Parachain(AssetHub::para_id().into())].into())).into()), Box::new( - X1(Junction::AccountId32 { - network: None, - id: bob_account_id.into() - }) + Junctions::X1( + [Junction::AccountId32 { + network: None, + id: bob_account_id.into() + }] + .into() + ) .into() ), Box::new((Here, 1000 * ED).into()), @@ -65,11 +60,11 @@ fn test_teleport_asset_from_regular_spiritnet_account_to_asset_hub() { ); }); // No event on the relaychain Message is for AssetHub - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); // AssetHub should not receive any message, since the message is filtered out. - AssetHubPolkadot::execute_with(|| { - assert_eq!(AssetHubPolkadot::events().len(), 0); + AssetHub::execute_with(|| { + assert_eq!(AssetHub::events().len(), 0); }); } diff --git a/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs b/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs index 6dab86ebd..24e4b1d6d 100644 --- a/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs +++ b/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs @@ -16,6 +16,7 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org +use asset_hub_rococo_emulated_chain::AssetHubRococoParaPallet; use did::did_details::DidVerificationKey; use frame_support::{ assert_ok, @@ -23,29 +24,29 @@ use frame_support::{ weights::Weight, }; use parity_scale_codec::Encode; +use rococo_emulated_chain::RococoRelayPallet; use runtime_common::{constants::EXISTENTIAL_DEPOSIT, AccountId}; use xcm::{ - v3::{ + lts::{ prelude::{OriginKind, Transact, UnpaidExecution}, - Junction, Junctions, Outcome, ParentThen, WeightLimit, Xcm, + Junction, Junctions, ParentThen, WeightLimit, Xcm, }, - DoubleEncoded, VersionedMultiLocation, VersionedXcm, + DoubleEncoded, VersionedLocation, VersionedXcm, }; use xcm_emulator::{assert_expected_events, Chain, Network, Parachain, TestExt}; use crate::mock::{ - network::MockNetworkPolkadot, - para_chains::{spiritnet, AssetHubPolkadot, AssetHubPolkadotPallet, Spiritnet, SpiritnetPallet}, - relay_chains::{Polkadot, PolkadotPallet}, + network::{AssetHub, MockNetwork, Rococo, Spiritnet}, + para_chains::SpiritnetParachainParaPallet, }; #[test] fn test_unpaid_execution_to_spiritnet() { - MockNetworkPolkadot::reset(); + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); - let parachain_destination: VersionedMultiLocation = - ParentThen(Junctions::X1(Junction::Parachain(spiritnet::PARA_ID))).into(); + let sudo_origin = ::RuntimeOrigin::root(); + let parachain_destination: VersionedLocation = + ParentThen(Junctions::X1([Junction::Parachain(Spiritnet::para_id().into())].into())).into(); let weight_limit = WeightLimit::Unlimited; let check_origin = None; @@ -56,17 +57,17 @@ fn test_unpaid_execution_to_spiritnet() { }])); //Send XCM message from AssetHub - AssetHubPolkadot::execute_with(|| { - assert_ok!(::PolkadotXcm::send( + AssetHub::execute_with(|| { + assert_ok!(::PolkadotXcm::send( sudo_origin, Box::new(parachain_destination), Box::new(xcm) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - AssetHubPolkadot, + AssetHub, vec![ RuntimeEvent::PolkadotXcm(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -79,26 +80,24 @@ fn test_unpaid_execution_to_spiritnet() { assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::XcmpQueue(cumulus_pallet_xcmp_queue::Event::Fail { - error: xcm::v3::Error::Barrier, - .. - }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::ProcessingFailed { .. }) => {}, ] ); }); // No event on the Polkadot message is meant for Spiritnet - Polkadot::execute_with(|| { - assert_eq!(Polkadot::events().len(), 0); + Rococo::execute_with(|| { + assert_eq!(Rococo::events().len(), 0); }); } #[test] -fn test_unpaid_execution_from_polkadot_to_spiritnet() { - MockNetworkPolkadot::reset(); +fn test_unpaid_execution_from_rococo_to_spiritnet() { + MockNetwork::reset(); - let sudo_origin = ::RuntimeOrigin::root(); - let parachain_destination: VersionedMultiLocation = Junctions::X1(Junction::Parachain(spiritnet::PARA_ID)).into(); + let sudo_origin = ::RuntimeOrigin::root(); + let parachain_destination: VersionedLocation = + Junctions::X1([Junction::Parachain(::para_id().into())].into()).into(); let init_balance = ::BaseDeposit::get() + ::Fee::get() + EXISTENTIAL_DEPOSIT; @@ -106,10 +105,10 @@ fn test_unpaid_execution_from_polkadot_to_spiritnet() { let weight_limit = WeightLimit::Unlimited; let check_origin = None; - let polkadot_sovereign_account = Spiritnet::sovereign_account_id_of(Spiritnet::parent_location()); + let rococo_sovereign_account = Spiritnet::sovereign_account_id_of(Spiritnet::parent_location()); let call: DoubleEncoded<()> = ::RuntimeCall::Did(did::Call::create_from_account { - authentication_key: DidVerificationKey::Account(polkadot_sovereign_account.clone()), + authentication_key: DidVerificationKey::Account(rococo_sovereign_account.clone()), }) .encode() .into(); @@ -129,24 +128,24 @@ fn test_unpaid_execution_from_polkadot_to_spiritnet() { Spiritnet::execute_with(|| { // DID creation takes a deposit of 2 KILT coins + Fees. We have to give them to // the sovereign account. Otherwise, the extrinsic will fail. - <::Balances as Mutate>::set_balance( - &polkadot_sovereign_account, + <::Balances as Mutate>::set_balance( + &rococo_sovereign_account, init_balance, ); }); // Submit XCM msg from relaychain - Polkadot::execute_with(|| { - assert_ok!(::XcmPallet::send( + Rococo::execute_with(|| { + assert_ok!(::XcmPallet::send( sudo_origin, Box::new(parachain_destination), Box::new(xcm) )); - type RuntimeEvent = ::RuntimeEvent; + type RuntimeEvent = ::RuntimeEvent; assert_expected_events!( - Polkadot, + Rococo, vec![ RuntimeEvent::XcmPallet(pallet_xcm::Event::Sent { .. }) => {}, ] @@ -158,13 +157,10 @@ fn test_unpaid_execution_from_polkadot_to_spiritnet() { assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::DmpQueue(cumulus_pallet_dmp_queue::Event::ExecutedDownward { - outcome: Outcome::Complete(_), - .. - }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: true, .. }) => {}, SpiritnetRuntimeEvent::Did(did::Event::DidCreated(account, did_identifier)) => { - account: account == &polkadot_sovereign_account, - did_identifier: did_identifier == &polkadot_sovereign_account, + account: account == &rococo_sovereign_account, + did_identifier: did_identifier == &rococo_sovereign_account, }, ] ); @@ -172,13 +168,15 @@ fn test_unpaid_execution_from_polkadot_to_spiritnet() { // Since the user have not paid any tx fees, we expect that the free balance is // the ED let balance_after_transfer = - <::Balances as Inspect>::balance(&polkadot_sovereign_account); + <::Balances as Inspect>::balance( + &rococo_sovereign_account, + ); assert_eq!(balance_after_transfer, EXISTENTIAL_DEPOSIT); }); - // No event on AssetHubPolkadot. message is meant for Spiritnet - AssetHubPolkadot::execute_with(|| { - assert_eq!(AssetHubPolkadot::events().len(), 0); + // No event on AssetHub. message is meant for Spiritnet + AssetHub::execute_with(|| { + assert_eq!(AssetHub::events().len(), 0); }); } diff --git a/nodes/parachain/Cargo.toml b/nodes/parachain/Cargo.toml index 0023579c2..f47e6cd36 100644 --- a/nodes/parachain/Cargo.toml +++ b/nodes/parachain/Cargo.toml @@ -58,6 +58,7 @@ sp-keystore = { workspace = true, features = ["std"] } sp-offchain = { workspace = true, features = ["std"] } sp-runtime = { workspace = true, features = ["std"] } sp-session = { workspace = true, features = ["std"] } +sp-state-machine = { workspace = true, features = ["std"] } sp-timestamp = { workspace = true, features = ["std"] } sp-transaction-pool = { workspace = true, features = ["std"] } substrate-prometheus-endpoint = { workspace = true } diff --git a/nodes/parachain/src/chain_spec/mod.rs b/nodes/parachain/src/chain_spec/mod.rs index 411d41be2..de2f6f8dc 100644 --- a/nodes/parachain/src/chain_spec/mod.rs +++ b/nodes/parachain/src/chain_spec/mod.rs @@ -21,7 +21,6 @@ use std::str::FromStr; use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup}; -use sc_cli::RuntimeVersion; use serde::{Deserialize, Serialize}; pub(crate) use utils::load_spec; @@ -98,15 +97,6 @@ pub(crate) enum ParachainRuntime { Spiritnet(SpiritnetRuntime), } -impl ParachainRuntime { - pub(crate) fn native_version(&self) -> &'static RuntimeVersion { - match self { - Self::Peregrine(_) => &peregrine_runtime::VERSION, - Self::Spiritnet(_) => &spiritnet_runtime::VERSION, - } - } -} - impl std::fmt::Display for ParachainRuntime { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { diff --git a/nodes/parachain/src/chain_spec/peregrine/dev.rs b/nodes/parachain/src/chain_spec/peregrine/dev.rs index b48450663..eb6ef4c28 100644 --- a/nodes/parachain/src/chain_spec/peregrine/dev.rs +++ b/nodes/parachain/src/chain_spec/peregrine/dev.rs @@ -20,13 +20,14 @@ use peregrine_runtime::{ BalancesConfig, CouncilConfig, ParachainInfoConfig, ParachainStakingConfig, PolkadotXcmConfig, - RuntimeGenesisConfig, SessionConfig, SessionKeys, SudoConfig, SystemConfig, TechnicalCommitteeConfig, WASM_BINARY, + RuntimeGenesisConfig, SessionConfig, SessionKeys, SudoConfig, TechnicalCommitteeConfig, WASM_BINARY, }; use runtime_common::{ constants::{kilt_inflation_config, staking::MinCollatorStake, KILT, MAX_COLLATOR_STAKE}, AccountId, AuthorityId, Balance, }; use sc_service::ChainType; +use serde_json::to_value; use sp_core::sr25519; use crate::chain_spec::{ @@ -36,25 +37,25 @@ use crate::chain_spec::{ }; pub(crate) fn generate_chain_spec(relaychain_name: &str) -> ChainSpec { - ChainSpec::from_genesis( - "KILT Peregrine Develop", - "kilt_peregrine_dev", - ChainType::Development, - generate_genesis_state, - vec![], - None, - None, - None, - Some(get_properties("PILT", 15, 38)), + let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); + let genesis_config = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + + ChainSpec::builder( + wasm_binary, Extensions { relay_chain: relaychain_name.into(), para_id: KILT_PARA_ID, }, ) + .with_name("KILT Peregrine Develop") + .with_id("kilt_peregrine_dev") + .with_chain_type(ChainType::Development) + .with_properties(get_properties("PILT", 15, 38)) + .with_genesis_config(genesis_config) + .build() } fn generate_genesis_state() -> RuntimeGenesisConfig { - let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); let alice = ( get_account_id_from_secret::("Alice"), get_public_key_from_secret::("Alice"), @@ -73,10 +74,6 @@ fn generate_genesis_state() -> RuntimeGenesisConfig { ]; RuntimeGenesisConfig { - system: SystemConfig { - code: wasm_binary.to_vec(), - ..Default::default() - }, balances: BalancesConfig { balances: endowed_accounts.map(|acc| (acc, 10_000_000 * KILT)).to_vec(), }, diff --git a/nodes/parachain/src/chain_spec/peregrine/new.rs b/nodes/parachain/src/chain_spec/peregrine/new.rs index a699dfb27..dbf09f1a8 100644 --- a/nodes/parachain/src/chain_spec/peregrine/new.rs +++ b/nodes/parachain/src/chain_spec/peregrine/new.rs @@ -18,8 +18,9 @@ //! KILT chain specification -use peregrine_runtime::{ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, SystemConfig, WASM_BINARY}; +use peregrine_runtime::{ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, WASM_BINARY}; use sc_service::ChainType; +use serde_json::to_value; use crate::chain_spec::{ peregrine::{ChainSpec, SAFE_XCM_VERSION}, @@ -28,31 +29,26 @@ use crate::chain_spec::{ }; pub(crate) fn generate_chain_spec() -> ChainSpec { - ChainSpec::from_genesis( - "KILT Peregrine New (change title)", - "kilt_peregrine_new", - ChainType::Live, - generate_genesis_state, - vec![], - None, - None, - None, - Some(get_properties("PILT", 15, 38)), + let wasm_binary = WASM_BINARY.expect("WASM binary not available"); + let genesis_config = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + + ChainSpec::builder( + wasm_binary, Extensions { relay_chain: "relay".into(), para_id: KILT_PARA_ID, }, ) + .with_name("KILT Peregrine New (change title)") + .with_id("kilt_peregrine_new") + .with_chain_type(ChainType::Live) + .with_properties(get_properties("PILT", 15, 38)) + .with_genesis_config(genesis_config) + .build() } fn generate_genesis_state() -> RuntimeGenesisConfig { - let wasm_binary = WASM_BINARY.expect("WASM binary not available"); - RuntimeGenesisConfig { - system: SystemConfig { - code: wasm_binary.to_vec(), - ..Default::default() - }, parachain_info: ParachainInfoConfig { parachain_id: KILT_PARA_ID.into(), ..Default::default() diff --git a/nodes/parachain/src/chain_spec/spiritnet/dev.rs b/nodes/parachain/src/chain_spec/spiritnet/dev.rs index 4bd50a4cf..881aa8b5e 100644 --- a/nodes/parachain/src/chain_spec/spiritnet/dev.rs +++ b/nodes/parachain/src/chain_spec/spiritnet/dev.rs @@ -23,10 +23,11 @@ use runtime_common::{ AccountId, AuthorityId, Balance, }; use sc_service::ChainType; +use serde_json::to_value; use sp_core::sr25519; use spiritnet_runtime::{ BalancesConfig, CouncilConfig, ParachainInfoConfig, ParachainStakingConfig, PolkadotXcmConfig, - RuntimeGenesisConfig, SessionConfig, SessionKeys, SystemConfig, TechnicalCommitteeConfig, WASM_BINARY, + RuntimeGenesisConfig, SessionConfig, SessionKeys, TechnicalCommitteeConfig, WASM_BINARY, }; use crate::chain_spec::{ @@ -36,25 +37,25 @@ use crate::chain_spec::{ }; pub(crate) fn generate_chain_spec(relaychain_name: &str) -> ChainSpec { - ChainSpec::from_genesis( - "KILT Spiritnet Develop", - "kilt_spiritnet_dev", - ChainType::Development, - generate_genesis_state, - vec![], - None, - None, - None, - Some(get_properties("KILT", 15, 38)), + let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); + let genesis_state = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + + ChainSpec::builder( + wasm_binary, Extensions { relay_chain: relaychain_name.into(), para_id: KILT_PARA_ID, }, ) + .with_name("KILT Spiritnet Develop") + .with_id("kilt_spiritnet_dev") + .with_chain_type(ChainType::Development) + .with_properties(get_properties("KILT", 15, 38)) + .with_genesis_config(genesis_state) + .build() } fn generate_genesis_state() -> RuntimeGenesisConfig { - let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); let alice = ( get_account_id_from_secret::("Alice"), get_public_key_from_secret::("Alice"), @@ -73,10 +74,6 @@ fn generate_genesis_state() -> RuntimeGenesisConfig { ]; RuntimeGenesisConfig { - system: SystemConfig { - code: wasm_binary.to_vec(), - ..Default::default() - }, balances: BalancesConfig { balances: endowed_accounts.map(|acc| (acc, 10_000_000 * KILT)).to_vec(), }, diff --git a/nodes/parachain/src/chain_spec/spiritnet/new.rs b/nodes/parachain/src/chain_spec/spiritnet/new.rs index 5a7cbdfc2..04d97af08 100644 --- a/nodes/parachain/src/chain_spec/spiritnet/new.rs +++ b/nodes/parachain/src/chain_spec/spiritnet/new.rs @@ -19,7 +19,8 @@ //! KILT chain specification use sc_service::ChainType; -use spiritnet_runtime::{ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, SystemConfig, WASM_BINARY}; +use serde_json::to_value; +use spiritnet_runtime::{ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, WASM_BINARY}; use crate::chain_spec::{ spiritnet::{ChainSpec, SAFE_XCM_VERSION}, @@ -28,31 +29,26 @@ use crate::chain_spec::{ }; pub(crate) fn generate_chain_spec() -> ChainSpec { - ChainSpec::from_genesis( - "KILT Spiritnet New (change title)", - "kilt_spiritnet_new", - ChainType::Live, - generate_genesis_state, - vec![], - None, - None, - None, - Some(get_properties("KILT", 15, 38)), + let wasm_binary = WASM_BINARY.expect("WASM binary not available"); + let genesis_state = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + + ChainSpec::builder( + wasm_binary, Extensions { relay_chain: "relay".into(), para_id: KILT_PARA_ID, }, ) + .with_name("KILT Spiritnet New (change title)") + .with_id("kilt_spiritnet_new") + .with_chain_type(ChainType::Live) + .with_properties(get_properties("KILT", 15, 38)) + .with_genesis_config(genesis_state) + .build() } fn generate_genesis_state() -> RuntimeGenesisConfig { - let wasm_binary = WASM_BINARY.expect("WASM binary not available"); - RuntimeGenesisConfig { - system: SystemConfig { - code: wasm_binary.to_vec(), - ..Default::default() - }, parachain_info: ParachainInfoConfig { parachain_id: KILT_PARA_ID.into(), ..Default::default() diff --git a/nodes/parachain/src/chain_spec/utils.rs b/nodes/parachain/src/chain_spec/utils.rs index 87c9ff596..e7d535beb 100644 --- a/nodes/parachain/src/chain_spec/utils.rs +++ b/nodes/parachain/src/chain_spec/utils.rs @@ -41,14 +41,11 @@ pub(crate) fn get_public_key_from_secret(seed: &str) -> Properties { - Properties::from_iter( - [ - ("tokenSymbol".into(), symbol.into()), - ("tokenDecimals".into(), decimals.into()), - ("ss58Format".into(), ss58format.into()), - ] - .into_iter(), - ) + Properties::from_iter([ + ("tokenSymbol".into(), symbol.into()), + ("tokenDecimals".into(), decimals.into()), + ("ss58Format".into(), ss58format.into()), + ]) } pub(crate) fn load_spec(id: &str) -> Result, String> { diff --git a/nodes/parachain/src/cli.rs b/nodes/parachain/src/cli.rs index e6cfb291b..b27c947a1 100644 --- a/nodes/parachain/src/cli.rs +++ b/nodes/parachain/src/cli.rs @@ -118,7 +118,7 @@ pub(crate) enum Subcommand { PurgeChain(cumulus_client_cli::PurgeChainCmd), /// Export the genesis state of the parachain. - ExportGenesisState(cumulus_client_cli::ExportGenesisStateCommand), + ExportGenesisHead(cumulus_client_cli::ExportGenesisHeadCommand), /// Export the genesis wasm of the parachain. ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand), diff --git a/nodes/parachain/src/command.rs b/nodes/parachain/src/command.rs index e6226a972..063624440 100644 --- a/nodes/parachain/src/command.rs +++ b/nodes/parachain/src/command.rs @@ -15,17 +15,13 @@ // along with this program. If not, see . // If you feel like getting in touch with us, you can do so at info@botlabs.org - -use cumulus_client_cli::generate_genesis_block; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; use log::info; -use parity_scale_codec::Encode; use runtime_common::Block; use sc_cli::SubstrateCli; use sc_executor::NativeExecutionDispatch; -use sp_core::hexdisplay::HexDisplay; -use sp_runtime::traits::{AccountIdConversion, Block as BlockT}; +use sp_runtime::traits::AccountIdConversion; use crate::{ chain_spec::{self, ParachainRuntime}, @@ -120,12 +116,8 @@ pub(crate) fn run() -> sc_cli::Result<()> { cmd.run(config, polkadot_config) }) } - Some(Subcommand::ExportGenesisState(cmd)) => { - let (chain_spec_id, runtime) = get_selected_chainspec(&cmd.shared_params)?; - let spec = cli.load_spec(chain_spec_id.as_str())?; - - println!("Dispatching task for spec id: {chain_spec_id}."); - println!("The following runtime was chosen based on the spec id: {runtime}."); + Some(Subcommand::ExportGenesisHead(cmd)) => { + let (_, runtime) = get_selected_chainspec(&cmd.shared_params)?; let runner = cli.create_runner(cmd)?; @@ -135,14 +127,15 @@ pub(crate) fn run() -> sc_cli::Result<()> { &config, crate::service::build_import_queue, )?; - cmd.run::(&*spec, &*partials.client) + + cmd.run(partials.client) }), ParachainRuntime::Peregrine(_) => runner.sync_run(|config| { let partials = new_partial::( &config, crate::service::build_import_queue, )?; - cmd.run::(&*spec, &*partials.client) + cmd.run(partials.client) }), } } @@ -279,18 +272,12 @@ pub(crate) fn run() -> sc_cli::Result<()> { let (_, runtime) = get_selected_chainspec(&cli.run.base.shared_params)?; - let state_version = runtime.native_version().state_version(); - let block: Block = - generate_genesis_block(&*config.chain_spec, state_version).map_err(|e| format!("{:?}", e))?; - let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode())); - let tokio_handle = config.tokio_handle.clone(); let polkadot_config = SubstrateCli::create_configuration(&polkadot_cli, &polkadot_cli, tokio_handle) .map_err(|err| format!("Relay chain argument error: {}", err))?; info!("Parachain id: {:?}", id); info!("Parachain Account: {}", parachain_account); - info!("Parachain genesis state: {}", genesis_state); info!( "Is collating: {}", if config.role.is_authority() { "yes" } else { "no" } diff --git a/nodes/parachain/src/service.rs b/nodes/parachain/src/service.rs index 7cc853d1f..9fb995cc0 100644 --- a/nodes/parachain/src/service.rs +++ b/nodes/parachain/src/service.rs @@ -128,7 +128,7 @@ where + sp_api::ApiExt + sp_offchain::OffchainWorkerApi + sp_block_builder::BlockBuilder, - sc_client_api::StateBackendFor, Block>: sp_api::StateBackend, + sc_client_api::StateBackendFor, Block>: sp_state_machine::Backend, Executor: NativeExecutionDispatch + 'static, BIQ: FnOnce( Arc>>, @@ -230,7 +230,7 @@ where + substrate_frame_rpc_system::AccountNonceApi + sp_consensus_aura::AuraApi + cumulus_primitives_aura::AuraUnincludedSegmentApi, - sc_client_api::StateBackendFor, Block>: sp_api::StateBackend, + sc_client_api::StateBackendFor, Block>: sp_state_machine::Backend, Executor: sc_executor::NativeExecutionDispatch + 'static, RB: FnOnce( Arc>>, @@ -402,7 +402,7 @@ where + pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi + sp_consensus_aura::AuraApi + cumulus_primitives_core::CollectCollationInfo, - sc_client_api::StateBackendFor, Block>: sp_api::StateBackend, + sc_client_api::StateBackendFor, Block>: sp_state_machine::Backend, { let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; @@ -450,7 +450,7 @@ where + sp_consensus_aura::AuraApi + cumulus_primitives_core::CollectCollationInfo + cumulus_primitives_aura::AuraUnincludedSegmentApi, - sc_client_api::StateBackendFor, Block>: sp_api::StateBackend, + sc_client_api::StateBackendFor, Block>: sp_state_machine::Backend, { start_node_impl::( parachain_config, @@ -538,6 +538,7 @@ where proposer, collator_service, authoring_duration: Duration::from_millis(AUTHORING_DURATION), + reinitialize: false, }; let fut = aura::run::(params); diff --git a/nodes/standalone/Cargo.toml b/nodes/standalone/Cargo.toml index fa62c8db9..f4ff49f8f 100644 --- a/nodes/standalone/Cargo.toml +++ b/nodes/standalone/Cargo.toml @@ -24,6 +24,7 @@ clap = { workspace = true, features = ["derive"] } futures = { workspace = true, features = ["thread-pool"] } hex-literal = { workspace = true } jsonrpsee = { workspace = true, features = ["server"] } +serde_json = { workspace = true } # Internal dependencies kestrel-runtime = { workspace = true, features = ["std"] } diff --git a/nodes/standalone/src/chain_spec.rs b/nodes/standalone/src/chain_spec.rs index f97cde8a4..206bb59ec 100644 --- a/nodes/standalone/src/chain_spec.rs +++ b/nodes/standalone/src/chain_spec.rs @@ -24,6 +24,7 @@ use kestrel_runtime::{ use runtime_common::{AccountId, AccountPublic}; use sc_service::{self, ChainType, Properties}; +use serde_json::to_value; use sp_consensus_aura::ed25519::AuthorityId as AuraId; use sp_consensus_grandpa::AuthorityId as GrandpaId; use sp_core::{ed25519, sr25519, Pair, Public}; @@ -41,30 +42,23 @@ pub(crate) fn load_spec(id: &str) -> Result, Stri type ChainSpec = sc_service::GenericChainSpec; fn generate_dev_chain_spec() -> ChainSpec { - let properties = Properties::from_iter( - [ - ("tokenDecimals".into(), 15.into()), - ("tokenSymbol".into(), "DILT".into()), - ] - .into_iter(), - ); - - ChainSpec::from_genesis( - "Standalone Node (Dev)", - "standalone_node_development", - ChainType::Development, - generate_devnet_genesis_state, - vec![], - None, - None, - None, - Some(properties), - None, - ) + let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); + let properties = Properties::from_iter([ + ("tokenDecimals".into(), 15.into()), + ("tokenSymbol".into(), "DILT".into()), + ]); + let genesis_state = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + + ChainSpec::builder(wasm_binary, None) + .with_name("Standalone Node (Dev)") + .with_id("standalone_node_development") + .with_chain_type(ChainType::Development) + .with_properties(properties) + .with_genesis_config(genesis_state) + .build() } -fn generate_devnet_genesis_state() -> RuntimeGenesisConfig { - let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); +fn generate_genesis_state() -> RuntimeGenesisConfig { let endowed_accounts = vec![ // Dev Faucet account get_account_id_from_secret::( @@ -79,24 +73,18 @@ fn generate_devnet_genesis_state() -> RuntimeGenesisConfig { let root_key = get_account_id_from_secret::("//Alice"); RuntimeGenesisConfig { - system: SystemConfig { - code: wasm_binary.to_vec(), - ..Default::default() - }, + system: SystemConfig { ..Default::default() }, balances: BalancesConfig { balances: endowed_accounts.into_iter().map(|a| (a, 1u128 << 90)).collect(), }, session: SessionConfig { keys: initial_authorities .into_iter() - .map(|x| { + .map(|(acc, aura, grandpa)| { ( - x.0.clone(), - x.0.clone(), - SessionKeys { - aura: x.1.clone(), - grandpa: x.2, - }, + acc.clone(), // account id + acc, // validator id + template_session_keys(aura, grandpa), // session keys ) }) .collect::>(), @@ -106,6 +94,13 @@ fn generate_devnet_genesis_state() -> RuntimeGenesisConfig { } } +fn template_session_keys(aura_keys: AuraId, grandpa_keys: GrandpaId) -> SessionKeys { + SessionKeys { + aura: aura_keys, + grandpa: grandpa_keys, + } +} + fn get_authority_keys_from_secret(seed: &str) -> (AccountId, AuraId, GrandpaId) { ( get_account_id_from_secret::(seed), diff --git a/nodes/standalone/src/service.rs b/nodes/standalone/src/service.rs index be225f7c6..fb9543b51 100644 --- a/nodes/standalone/src/service.rs +++ b/nodes/standalone/src/service.rs @@ -168,10 +168,10 @@ pub(crate) fn new_full(config: Configuration) -> Result Result Result( children: BoundedBTreeSet::new(), hierarchy_root_id: hierarchy_id, parent, - deposit: Deposit { + deposit: kilt_support::Deposit { owner: deposit_owner, amount: ::Deposit::get(), }, @@ -222,6 +221,7 @@ pub(crate) mod runtime { } impl frame_system::Config for Test { + type RuntimeTask = (); type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Block = Block; @@ -254,15 +254,14 @@ pub(crate) mod runtime { pub const ExistentialDeposit: Balance = 1; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = (); diff --git a/pallets/delegation/src/tests/deposit.rs b/pallets/delegation/src/tests/deposit.rs index 33b502036..77516eb70 100644 --- a/pallets/delegation/src/tests/deposit.rs +++ b/pallets/delegation/src/tests/deposit.rs @@ -109,7 +109,7 @@ fn test_change_deposit_owner_insufficient_balance() { assert!(Balances::balance_on_hold(&HoldReason::Deposit.into(), &ACCOUNT_01).is_zero()); assert_noop!( Delegation::change_deposit_owner(DoubleOrigin(ACCOUNT_01, delegate).into(), delegation_id), - TokenError::CannotCreateHold + TokenError::FundsUnavailable ); }); } diff --git a/pallets/did/src/benchmarking.rs b/pallets/did/src/benchmarking.rs index e7195a1c9..16e0a3121 100644 --- a/pallets/did/src/benchmarking.rs +++ b/pallets/did/src/benchmarking.rs @@ -30,6 +30,7 @@ use sp_runtime::{ traits::{IdentifyAccount, Zero}, AccountId32, MultiSigner, }; +use sp_std::ops::Mul; use sp_std::{convert::TryInto, vec::Vec}; use kilt_support::{signature::VerifySignature, Deposit}; @@ -95,10 +96,10 @@ fn make_free_for_did(account: &AccountIdOf) where ::Currency: Mutate, { + // Just give the account some balance to pay for the DID deposit and tx fees. + // The exact amount is not important for the benchmark. let balance = as Inspect>>::minimum_balance() - + ::BaseDeposit::get() - + ::BaseDeposit::get() - + ::BaseDeposit::get() + + ::BaseDeposit::get().mul(10u32.into()) + ::Fee::get(); as Mutate>>::set_balance(account, balance); } diff --git a/pallets/did/src/mock.rs b/pallets/did/src/mock.rs index 5247f32af..db59b5f3f 100644 --- a/pallets/did/src/mock.rs +++ b/pallets/did/src/mock.rs @@ -84,6 +84,7 @@ parameter_types! { impl frame_system::Config for Test { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; + type RuntimeTask = (); type Block = Block; type Nonce = u64; type Hash = Hash; @@ -180,15 +181,14 @@ parameter_types! { pub const ExistentialDeposit: Balance = 500; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = (); diff --git a/pallets/did/src/tests/create.rs b/pallets/did/src/tests/create.rs index 730f64af1..dac936615 100644 --- a/pallets/did/src/tests/create.rs +++ b/pallets/did/src/tests/create.rs @@ -168,7 +168,7 @@ fn check_successful_complete_creation() { let alice_did = get_did_identifier_from_sr25519_key(auth_key.public()); let auth_did_key = DidVerificationKey::from(auth_key.public()); let enc_keys = DidNewKeyAgreementKeySetOf::::try_from( - vec![ + [ get_x25519_encryption_key(&ENC_SEED_0), get_x25519_encryption_key(&ENC_SEED_1), ] diff --git a/pallets/did/src/tests/deposit.rs b/pallets/did/src/tests/deposit.rs index cac6b47a6..b0d595bf9 100644 --- a/pallets/did/src/tests/deposit.rs +++ b/pallets/did/src/tests/deposit.rs @@ -189,7 +189,7 @@ fn test_change_deposit_owner_insufficient_balance() { .with_balances(vec![(ACCOUNT_00, balance)]) .with_dids(vec![(alice_did.clone(), did_details)]) .build_and_execute_with_sanity_tests(None, || { - assert_noop!(Did::change_deposit_owner(origin), TokenError::CannotCreateHold); + assert_noop!(Did::change_deposit_owner(origin), TokenError::FundsUnavailable); }); } diff --git a/pallets/pallet-configuration/src/mock.rs b/pallets/pallet-configuration/src/mock.rs index 403949b9a..e77e7406b 100644 --- a/pallets/pallet-configuration/src/mock.rs +++ b/pallets/pallet-configuration/src/mock.rs @@ -55,6 +55,7 @@ pub mod runtime { } impl frame_system::Config for Test { + type RuntimeTask = (); type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Block = Block; @@ -85,15 +86,14 @@ pub mod runtime { pub const ExistentialDeposit: Balance = 500; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = (); type FreezeIdentifier = (); type RuntimeHoldReason = (); type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = (); diff --git a/pallets/pallet-deposit-storage/src/benchmarking.rs b/pallets/pallet-deposit-storage/src/benchmarking.rs index 89d1133e4..660866d23 100644 --- a/pallets/pallet-deposit-storage/src/benchmarking.rs +++ b/pallets/pallet-deposit-storage/src/benchmarking.rs @@ -27,7 +27,6 @@ mod benchmarks { use frame_system::RawOrigin; use kilt_support::Deposit; use sp_runtime::SaturatedConversion; - use sp_std::vec; use crate::{traits::BenchmarkHooks, Call, Config, DepositEntryOf, Deposits, HoldReason, Pallet}; diff --git a/pallets/pallet-deposit-storage/src/deposit/mock.rs b/pallets/pallet-deposit-storage/src/deposit/mock.rs index ebea257cb..64599e9a7 100644 --- a/pallets/pallet-deposit-storage/src/deposit/mock.rs +++ b/pallets/pallet-deposit-storage/src/deposit/mock.rs @@ -82,16 +82,17 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); } impl pallet_balances::Config for TestRuntime { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = ConstU32<50>; - type MaxHolds = ConstU32<50>; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = RuntimeEvent; diff --git a/pallets/pallet-deposit-storage/src/mock.rs b/pallets/pallet-deposit-storage/src/mock.rs index cac23c37b..8fd1efd73 100644 --- a/pallets/pallet-deposit-storage/src/mock.rs +++ b/pallets/pallet-deposit-storage/src/mock.rs @@ -69,6 +69,7 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); @@ -78,15 +79,14 @@ parameter_types! { pub const ExistentialDeposit: Balance = 500; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } impl pallet_balances::Config for TestRuntime { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = RuntimeEvent; diff --git a/pallets/pallet-did-lookup/src/mock.rs b/pallets/pallet-did-lookup/src/mock.rs index 05b283310..dc3f3a7ed 100644 --- a/pallets/pallet-did-lookup/src/mock.rs +++ b/pallets/pallet-did-lookup/src/mock.rs @@ -64,6 +64,7 @@ impl frame_system::Config for Test { type Nonce = u64; type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; + type RuntimeTask = (); type Hash = Hash; type Hashing = BlakeTwo256; type AccountId = AccountId; @@ -85,15 +86,14 @@ parameter_types! { pub const ExistentialDeposit: Balance = 10; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = RuntimeEvent; diff --git a/pallets/pallet-did-lookup/src/tests/deposit.rs b/pallets/pallet-did-lookup/src/tests/deposit.rs index fdcc63746..9167e7662 100644 --- a/pallets/pallet-did-lookup/src/tests/deposit.rs +++ b/pallets/pallet-did-lookup/src/tests/deposit.rs @@ -53,7 +53,7 @@ fn test_change_deposit_owner_insufficient_balance() { mock_origin::DoubleOrigin(ACCOUNT_01, DID_00).into(), ACCOUNT_00.into() ), - TokenError::CannotCreateHold + TokenError::FundsUnavailable ); }) } diff --git a/pallets/pallet-dip-consumer/README.md b/pallets/pallet-dip-consumer/README.md index 965634b84..09df7f32e 100644 --- a/pallets/pallet-dip-consumer/README.md +++ b/pallets/pallet-dip-consumer/README.md @@ -44,7 +44,7 @@ The DIP pallet is available in the KILT node release 1.12.0 and later. Pass runtime configuration to the pallet's `Config` trait. -```rust +```rust,ignore impl pallet_dip_provider::Config for Runtime { // Config } diff --git a/pallets/pallet-dip-consumer/src/benchmarking.rs b/pallets/pallet-dip-consumer/src/benchmarking.rs index 3a998bf9c..9f0175916 100644 --- a/pallets/pallet-dip-consumer/src/benchmarking.rs +++ b/pallets/pallet-dip-consumer/src/benchmarking.rs @@ -34,7 +34,7 @@ pub struct WorstCaseOf { mod benchmarks { use frame_system::RawOrigin; use kilt_support::traits::GetWorstCase; - use sp_std::{boxed::Box, vec}; + use sp_std::boxed::Box; use crate::{benchmarking::WorstCaseOf, Call, Config, IdentityEntries, Pallet}; diff --git a/pallets/pallet-dip-consumer/src/mock.rs b/pallets/pallet-dip-consumer/src/mock.rs index c83ebb897..b2e2f8922 100644 --- a/pallets/pallet-dip-consumer/src/mock.rs +++ b/pallets/pallet-dip-consumer/src/mock.rs @@ -63,6 +63,7 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); @@ -75,12 +76,12 @@ impl pallet_balances::Config for TestRuntime { type ExistentialDeposit = ConstU64<1>; type FreezeIdentifier = [u8; 8]; type MaxFreezes = ConstU32<10>; - type MaxHolds = ConstU32<10>; type MaxLocks = ConstU32<10>; type MaxReserves = ConstU32<10>; type ReserveIdentifier = [u8; 8]; type RuntimeEvent = RuntimeEvent; type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = RuntimeFreezeReason; type WeightInfo = (); } diff --git a/pallets/pallet-dip-provider/README.md b/pallets/pallet-dip-provider/README.md index 59bb4cbe3..16b44f875 100644 --- a/pallets/pallet-dip-provider/README.md +++ b/pallets/pallet-dip-provider/README.md @@ -25,7 +25,7 @@ The DIP pallet is available in the KILT node release 1.12.0 and later. Pass runtime configuration to the pallet's `Config` trait. -```rust +```ignore,rust impl pallet_dip_provider::Config for Runtime { // Config } diff --git a/pallets/pallet-dip-provider/src/benchmarking.rs b/pallets/pallet-dip-provider/src/benchmarking.rs index 1fa9f1c54..31aa3e2e8 100644 --- a/pallets/pallet-dip-provider/src/benchmarking.rs +++ b/pallets/pallet-dip-provider/src/benchmarking.rs @@ -22,7 +22,6 @@ use kilt_support::{ benchmark::IdentityContext, traits::{GenerateBenchmarkOrigin, GetWorstCase, Instanciate}, }; -use sp_std::vec; #[benchmarks( where diff --git a/pallets/pallet-dip-provider/src/mock.rs b/pallets/pallet-dip-provider/src/mock.rs index 2588d8da2..fb5430145 100644 --- a/pallets/pallet-dip-provider/src/mock.rs +++ b/pallets/pallet-dip-provider/src/mock.rs @@ -63,6 +63,7 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); diff --git a/pallets/pallet-inflation/src/mock.rs b/pallets/pallet-inflation/src/mock.rs index 5e2d0bd7b..8d4300aeb 100644 --- a/pallets/pallet-inflation/src/mock.rs +++ b/pallets/pallet-inflation/src/mock.rs @@ -59,6 +59,7 @@ parameter_types! { } impl frame_system::Config for Test { + type RuntimeTask = (); type BaseCallFilter = frame_support::traits::Everything; type BlockWeights = (); type BlockLength = (); @@ -91,10 +92,10 @@ parameter_types! { } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = (); type FreezeIdentifier = (); type RuntimeHoldReason = (); type MaxFreezes = (); - type MaxHolds = (); type MaxLocks = MaxLocks; type MaxReserves = MaxReserves; type ReserveIdentifier = [u8; 8]; diff --git a/pallets/pallet-migration/src/mock.rs b/pallets/pallet-migration/src/mock.rs index 1310208ab..9bdc22201 100644 --- a/pallets/pallet-migration/src/mock.rs +++ b/pallets/pallet-migration/src/mock.rs @@ -112,6 +112,7 @@ pub mod runtime { } impl frame_system::Config for Test { + type RuntimeTask = (); type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Nonce = u64; @@ -162,14 +163,13 @@ pub mod runtime { pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; pub const MaxFreezes: u32 = 50; - pub const MaxHolds: u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = (); type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = (); diff --git a/pallets/pallet-relay-store/src/benchmarking.rs b/pallets/pallet-relay-store/src/benchmarking.rs index f103b8a2a..99dd937da 100644 --- a/pallets/pallet-relay-store/src/benchmarking.rs +++ b/pallets/pallet-relay-store/src/benchmarking.rs @@ -18,7 +18,7 @@ use crate::{Config, Pallet}; use frame_benchmarking::v2::*; -use sp_std::{vec, vec::Vec}; +use sp_std::vec::Vec; #[benchmarks( where diff --git a/pallets/pallet-relay-store/src/mock.rs b/pallets/pallet-relay-store/src/mock.rs index 772ef379e..698f21984 100644 --- a/pallets/pallet-relay-store/src/mock.rs +++ b/pallets/pallet-relay-store/src/mock.rs @@ -17,7 +17,7 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org use cumulus_pallet_parachain_system::{ParachainSetCode, RelayNumberStrictlyIncreases}; -use cumulus_primitives_core::{ParaId, PersistedValidationData}; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId, PersistedValidationData}; use frame_support::{ construct_runtime, parameter_types, sp_runtime::{ @@ -26,7 +26,7 @@ use frame_support::{ AccountId32, }, storage_alias, - traits::{ConstU16, ConstU32, ConstU64, Everything}, + traits::{ConstU16, ConstU32, ConstU64, EnqueueWithOrigin, Everything}, }; use frame_system::mocking::MockBlock; use sp_runtime::BoundedVec; @@ -62,6 +62,7 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); @@ -69,11 +70,11 @@ impl frame_system::Config for TestRuntime { parameter_types! { pub const ParachainId: ParaId = ParaId::new(2_000); + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } impl cumulus_pallet_parachain_system::Config for TestRuntime { type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases; - type DmpMessageHandler = (); type OnSystemEvent = (); type OutboundXcmpMessageSource = (); type ReservedDmpWeight = (); @@ -82,6 +83,8 @@ impl cumulus_pallet_parachain_system::Config for TestRuntime { type SelfParaId = ParachainId; type XcmpMessageHandler = (); type ConsensusHook = cumulus_pallet_parachain_system::ExpectParentIncluded; + type WeightInfo = (); + type DmpQueue = EnqueueWithOrigin<(), RelayOrigin>; } impl crate::Config for TestRuntime { diff --git a/pallets/pallet-web3-names/src/mock.rs b/pallets/pallet-web3-names/src/mock.rs index f12dbeeef..73676a6fb 100644 --- a/pallets/pallet-web3-names/src/mock.rs +++ b/pallets/pallet-web3-names/src/mock.rs @@ -112,21 +112,21 @@ pub(crate) mod runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type RuntimeTask = RuntimeTask; } parameter_types! { pub const ExistentialDeposit: Balance = 10; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = RuntimeEvent; diff --git a/pallets/pallet-web3-names/src/tests/deposit.rs b/pallets/pallet-web3-names/src/tests/deposit.rs index 775482a5a..f747e0554 100644 --- a/pallets/pallet-web3-names/src/tests/deposit.rs +++ b/pallets/pallet-web3-names/src/tests/deposit.rs @@ -61,7 +61,7 @@ fn test_change_deposit_owner_insufficient_balance() { .build_and_execute_with_sanity_tests(|| { assert_noop!( Pallet::::change_deposit_owner(mock_origin::DoubleOrigin(ACCOUNT_01, DID_00).into()), - TokenError::CannotCreateHold + TokenError::FundsUnavailable ); }) } diff --git a/pallets/pallet-web3-names/src/web3_name.rs b/pallets/pallet-web3-names/src/web3_name.rs index 663e1ad16..da9ef9054 100644 --- a/pallets/pallet-web3-names/src/web3_name.rs +++ b/pallets/pallet-web3-names/src/web3_name.rs @@ -99,7 +99,7 @@ impl Eq for AsciiWeb3Name { // to implement PartialOrd. impl PartialOrd for AsciiWeb3Name { fn partial_cmp(&self, other: &Self) -> Option { - self.0.as_slice().partial_cmp(other.as_slice()) + Some(self.0.as_slice().cmp(other.0.as_slice())) } } diff --git a/pallets/parachain-staking/src/api.rs b/pallets/parachain-staking/src/api.rs index 86d2d66f8..6ab4b8ac7 100644 --- a/pallets/parachain-staking/src/api.rs +++ b/pallets/parachain-staking/src/api.rs @@ -22,7 +22,7 @@ use crate::{ }; use frame_support::traits::fungible::Inspect; use sp_runtime::{ - traits::{Saturating, Zero}, + traits::{SaturatedConversion, Saturating, Zero}, Perquintill, }; @@ -45,7 +45,10 @@ impl Pallet { let count_unclaimed = BlocksAuthored::::get(&delegator_state.owner).saturating_sub(count_rewarded); let stake = delegator_state.amount; // rewards += stake * reward_count * delegator_reward_rate - rewards.saturating_add(Self::calc_block_rewards_delegator(stake, count_unclaimed.into())) + rewards.saturating_add(Self::calc_block_rewards_delegator( + stake, + count_unclaimed.saturated_into(), + )) } else if Self::is_active_candidate(acc).is_some() { // #blocks for unclaimed staking rewards equals // #blocks_authored_by_collator - #blocks_claimed_by_collator @@ -54,7 +57,10 @@ impl Pallet { .map(|state| state.stake) .unwrap_or_else(BalanceOf::::zero); // rewards += stake * self_count * collator_reward_rate - rewards.saturating_add(Self::calc_block_rewards_collator(stake, count_unclaimed.into())) + rewards.saturating_add(Self::calc_block_rewards_collator( + stake, + count_unclaimed.saturated_into(), + )) } else { rewards } diff --git a/pallets/parachain-staking/src/lib.rs b/pallets/parachain-staking/src/lib.rs index 3d9583dfa..f519aa324 100644 --- a/pallets/parachain-staking/src/lib.rs +++ b/pallets/parachain-staking/src/lib.rs @@ -229,7 +229,9 @@ pub mod pallet { + From<::Balance> + From> + TypeInfo - + MaxEncodedLen; + + MaxEncodedLen + + Send + + Sync; /// Minimum number of blocks validation rounds can last. #[pallet::constant] @@ -2450,7 +2452,10 @@ pub mod pallet { let unclaimed_blocks = count_authored.saturating_sub(count_rewarded); Rewards::::mutate(acc, |reward| { - *reward = reward.saturating_add(Self::calc_block_rewards_collator(stake, unclaimed_blocks.into())); + *reward = reward.saturating_add(Self::calc_block_rewards_collator( + stake, + unclaimed_blocks.saturated_into(), + )); }); } @@ -2470,7 +2475,10 @@ pub mod pallet { let unclaimed_blocks = count_authored.saturating_sub(count_rewarded); Rewards::::mutate(acc, |reward| { - *reward = reward.saturating_add(Self::calc_block_rewards_delegator(stake, unclaimed_blocks.into())) + *reward = reward.saturating_add(Self::calc_block_rewards_delegator( + stake, + unclaimed_blocks.saturated_into(), + )) }); } } diff --git a/pallets/parachain-staking/src/mock.rs b/pallets/parachain-staking/src/mock.rs index 295294d12..de30aa6ca 100644 --- a/pallets/parachain-staking/src/mock.rs +++ b/pallets/parachain-staking/src/mock.rs @@ -69,6 +69,7 @@ parameter_types! { } impl frame_system::Config for Test { + type RuntimeTask = (); type BaseCallFilter = frame_support::traits::Everything; type DbWeight = (); type RuntimeOrigin = RuntimeOrigin; @@ -96,14 +97,13 @@ impl frame_system::Config for Test { parameter_types! { pub const ExistentialDeposit: Balance = 1; pub const MaxFreezes : u32 = 50; - pub const MaxHolds : u32 = 50; } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type MaxLocks = (); type MaxReserves = (); type ReserveIdentifier = [u8; 8]; diff --git a/pallets/parachain-staking/src/tests/collators.rs b/pallets/parachain-staking/src/tests/collators.rs index 90a8ae474..173238134 100644 --- a/pallets/parachain-staking/src/tests/collators.rs +++ b/pallets/parachain-staking/src/tests/collators.rs @@ -318,7 +318,7 @@ fn execute_leave_candidates_with_delay() { assert_ok!(StakePallet::init_leave_candidates(RuntimeOrigin::signed(8))); assert_ok!(StakePallet::init_leave_candidates(RuntimeOrigin::signed(2))); assert_eq!(StakePallet::selected_candidates().into_inner(), vec![4, 3]); - for owner in vec![1, 2, 5, 6, 7, 8, 9, 10].iter() { + for owner in [1, 2, 5, 6, 7, 8, 9, 10].iter() { assert!(StakePallet::candidate_pool(owner) .unwrap() .can_exit(1 + ::ExitQueueDelay::get())); @@ -407,7 +407,7 @@ fn execute_leave_candidates_with_delay() { roll_to(10, vec![]); assert_eq!(StakePallet::total_collator_stake(), total_stake); assert_eq!(StakePallet::selected_candidates().into_inner(), vec![4, 3]); - for owner in vec![1, 2, 5, 6, 7, 8, 9, 10].iter() { + for owner in [1, 2, 5, 6, 7, 8, 9, 10].iter() { assert!(StakePallet::candidate_pool(owner) .unwrap() .can_exit(1 + ::ExitQueueDelay::get())); @@ -496,7 +496,7 @@ fn execute_leave_candidates_with_delay() { roll_to(15, vec![]); assert_eq!(StakePallet::total_collator_stake(), total_stake); assert_eq!(StakePallet::selected_candidates().into_inner(), vec![4, 3]); - for collator in vec![1u64, 2u64, 5u64, 6u64, 7u64].iter() { + for collator in [1u64, 2u64, 5u64, 6u64, 7u64].iter() { assert_ok!(StakePallet::execute_leave_candidates( RuntimeOrigin::signed(*collator), *collator diff --git a/pallets/public-credentials/src/mock.rs b/pallets/public-credentials/src/mock.rs index e7825522d..6c3603f86 100644 --- a/pallets/public-credentials/src/mock.rs +++ b/pallets/public-credentials/src/mock.rs @@ -148,10 +148,6 @@ where _credential_id: &CredentialIdOf, authorization_id: &T::AuthorizationId, ) -> Result { - #[cfg(test)] - println!("{:#?}", who); - #[cfg(test)] - println!("{:#?}", authorization_id); if authorization_id == who { Ok(Weight::zero()) } else { @@ -282,6 +278,7 @@ pub(crate) mod runtime { } impl frame_system::Config for Test { + type RuntimeTask = (); type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Block = Block; @@ -309,10 +306,10 @@ pub(crate) mod runtime { } impl pallet_balances::Config for Test { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = ConstU32<10>; - type MaxHolds = ConstU32<10>; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = (); diff --git a/runtimes/common/Cargo.toml b/runtimes/common/Cargo.toml index 744b91ae8..2eca9b1b8 100644 --- a/runtimes/common/Cargo.toml +++ b/runtimes/common/Cargo.toml @@ -35,7 +35,6 @@ parachain-staking = { workspace = true } public-credentials = { workspace = true } # Substrate dependencies -cumulus-pallet-dmp-queue = { workspace = true } cumulus-pallet-parachain-system = { workspace = true } cumulus-pallet-xcmp-queue = { workspace = true } frame-support = { workspace = true } @@ -59,10 +58,11 @@ sp-weights = { workspace = true } cumulus-primitives-core = { workspace = true } # Polkadot dependencies -polkadot-parachain = { workspace = true } -xcm = { workspace = true } -xcm-builder = { workspace = true } -xcm-executor = { workspace = true } +polkadot-parachain = { workspace = true } +polkadot-runtime-common = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } #benchmarking frame-benchmarking = { workspace = true, optional = true } @@ -86,6 +86,7 @@ runtime-benchmarks = [ "pallet-tips/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "polkadot-parachain/runtime-benchmarks", + "polkadot-runtime-common/runtime-benchmarks", "public-credentials/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", @@ -93,7 +94,6 @@ runtime-benchmarks = [ ] std = [ "attestation/std", - "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", "cumulus-pallet-xcmp-queue/std", "cumulus-primitives-core/std", @@ -121,6 +121,7 @@ std = [ "parity-scale-codec/std", "parity-scale-codec/std", "polkadot-parachain/std", + "polkadot-runtime-common/std", "public-credentials/std", "scale-info/std", "sp-consensus-aura/std", @@ -135,7 +136,6 @@ std = [ ] try-runtime = [ "attestation/try-runtime", - "cumulus-pallet-dmp-queue/try-runtime", "cumulus-pallet-parachain-system/try-runtime", "cumulus-pallet-xcmp-queue/try-runtime", "frame-support/try-runtime", diff --git a/runtimes/common/src/benchmarks.rs b/runtimes/common/src/benchmarks/mod.rs similarity index 87% rename from runtimes/common/src/benchmarks.rs rename to runtimes/common/src/benchmarks/mod.rs index 5ac184d86..c7c9d5b97 100644 --- a/runtimes/common/src/benchmarks.rs +++ b/runtimes/common/src/benchmarks/mod.rs @@ -15,10 +15,16 @@ // along with this program. If not, see . // If you feel like getting in touch with us, you can do so at info@botlabs.org + +pub mod treasury; +pub mod xcm; + use parity_scale_codec::{Decode, Encode}; use scale_info::TypeInfo; use sp_std::vec::Vec; +/// A dummy signature type used for benchmarking. +/// Mainly used for the delegation pallet to mock the needed signature. #[derive(Clone, Copy, Default, Debug, Encode, Decode, PartialEq, Eq, TypeInfo)] pub struct DummySignature; diff --git a/runtimes/common/src/benchmarks/treasury.rs b/runtimes/common/src/benchmarks/treasury.rs new file mode 100644 index 000000000..a240d4012 --- /dev/null +++ b/runtimes/common/src/benchmarks/treasury.rs @@ -0,0 +1,47 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +use frame_support::traits::fungible::Mutate; +use pallet_treasury::ArgumentsFactory; +use sp_std::marker::PhantomData; + +use crate::constants::KILT; + +type AccountIdOf = ::AccountId; + +/// Benchmark helper for the treasury pallet. Implements the `ArgumentsFactory` trait. +/// Used to create accounts and assets for the treasury pallet benchmarks. +pub struct BenchmarkHelper(PhantomData); + +impl ArgumentsFactory<(), AccountIdOf> for BenchmarkHelper +where + T: pallet_balances::Config, + ::Balance: From, + AccountIdOf: From, +{ + fn create_asset_kind(_seed: u32) {} + + fn create_beneficiary(seed: [u8; 32]) -> AccountIdOf { + let who = AccountIdOf::::from(seed.into()); + + // endow account with some funds. If creation is failing, we panic. + as Mutate>>::mint_into(&who, KILT.into()).unwrap(); + + who + } +} diff --git a/runtimes/common/src/benchmarks/xcm.rs b/runtimes/common/src/benchmarks/xcm.rs new file mode 100644 index 000000000..34cef0741 --- /dev/null +++ b/runtimes/common/src/benchmarks/xcm.rs @@ -0,0 +1,48 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +use cumulus_primitives_core::ParaId; +use frame_support::parameter_types; +use polkadot_runtime_common::xcm_sender::{NoPriceForMessageDelivery, ToParachainDeliveryHelper}; +use xcm::v4::prelude::*; + +use crate::constants::EXISTENTIAL_DEPOSIT; + +parameter_types! { + pub const RandomParaId: ParaId = ParaId::new(42424242); + pub ExistentialDepositAsset: Option = Some(( + Here, + EXISTENTIAL_DEPOSIT + ).into()); + + pub ParachainLocation: Location = ParentThen(Parachain(RandomParaId::get().into()).into()).into(); + pub NativeAsset: Asset = Asset { + fun: Fungible(EXISTENTIAL_DEPOSIT), + id: AssetId(Here.into()) + }; +} + +/// Implementation of the `EnsureDelivery` for the benchmarks. +/// Needed type for the `pallet_xcm::benchmarking::Config` +pub type ParachainDeliveryHelper = ToParachainDeliveryHelper< + XcmConfig, + ExistentialDepositAsset, + NoPriceForMessageDelivery, + RandomParaId, + ParachainSystem, +>; diff --git a/runtimes/common/src/constants.rs b/runtimes/common/src/constants.rs index 62ce3c8ed..d6c846ff0 100644 --- a/runtimes/common/src/constants.rs +++ b/runtimes/common/src/constants.rs @@ -441,6 +441,7 @@ pub mod treasury { parameter_types! { pub const InitialPeriodLength: BlockNumber = INITIAL_PERIOD_LENGTH; pub const InitialPeriodReward: Balance = INITIAL_PERIOD_REWARD_PER_BLOCK; + pub const PayoutPeriod: BlockNumber = DAYS * 30; } } @@ -491,6 +492,7 @@ pub mod tips { pub const TipCountdown: BlockNumber = DAYS; pub const TipFindersFee: Percent = Percent::from_percent(0); pub const TipReportDepositBase: Balance = deposit(1, 1); + pub const MaxTipAmount: Balance = 100_000 * KILT; } } diff --git a/runtimes/common/src/dip/deposit/mock.rs b/runtimes/common/src/dip/deposit/mock.rs index 1cf3d8939..152903165 100644 --- a/runtimes/common/src/dip/deposit/mock.rs +++ b/runtimes/common/src/dip/deposit/mock.rs @@ -61,16 +61,17 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = (); type SystemWeightInfo = (); type Version = (); } impl pallet_balances::Config for TestRuntime { + type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = ConstU32<10>; - type MaxHolds = ConstU32<10>; type Balance = Balance; type DustRemoval = (); type RuntimeEvent = RuntimeEvent; diff --git a/runtimes/common/src/dip/mock.rs b/runtimes/common/src/dip/mock.rs index 8d4e68e1f..c3969933c 100644 --- a/runtimes/common/src/dip/mock.rs +++ b/runtimes/common/src/dip/mock.rs @@ -83,19 +83,20 @@ impl frame_system::Config for TestRuntime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = (); type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); } impl pallet_balances::Config for TestRuntime { + type RuntimeFreezeReason = RuntimeFreezeReason; type AccountStore = System; type Balance = Balance; type DustRemoval = (); type ExistentialDeposit = ConstU128; type FreezeIdentifier = RuntimeFreezeReason; type MaxFreezes = ConstU32<50>; - type MaxHolds = ConstU32<50>; type MaxLocks = ConstU32<50>; type MaxReserves = ConstU32<50>; type ReserveIdentifier = [u8; 8]; diff --git a/runtimes/common/src/fees.rs b/runtimes/common/src/fees.rs index 64d372979..b970d5bf8 100644 --- a/runtimes/common/src/fees.rs +++ b/runtimes/common/src/fees.rs @@ -39,15 +39,15 @@ use crate::{constants::MILLI_KILT, AccountId, Balance, CreditOf, NegativeImbalan pub struct SplitFeesByRatio( sp_std::marker::PhantomData<(R, Ratio, Beneficiary1, Beneficiary2)>, ); -impl OnUnbalanced> +impl OnUnbalanced> for SplitFeesByRatio where R: pallet_balances::Config, - Beneficiary1: OnUnbalanced>, - Beneficiary2: OnUnbalanced>, + Beneficiary1: OnUnbalanced>, + Beneficiary2: OnUnbalanced>, Ratio: Get<(u32, u32)>, { - fn on_unbalanceds(mut fees_then_tips: impl Iterator>) { + fn on_unbalanceds(mut fees_then_tips: impl Iterator>) { let ratio = Ratio::get(); if let Some(fees) = fees_then_tips.next() { let mut split = fees.ration(ratio.0, ratio.1); @@ -202,7 +202,7 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type Block = Block; type Nonce = u64; - + type RuntimeTask = (); type RuntimeCall = RuntimeCall; type Hash = H256; type Hashing = BlakeTwo256; @@ -227,9 +227,9 @@ mod tests { impl pallet_balances::Config for Test { type Balance = u64; type FreezeIdentifier = (); + type RuntimeFreezeReason = RuntimeFreezeReason; type RuntimeHoldReason = (); type MaxFreezes = (); - type MaxHolds = (); type RuntimeEvent = RuntimeEvent; type DustRemoval = (); type ExistentialDeposit = ConstU64<1>; @@ -244,10 +244,12 @@ mod tests { const AUTHOR_ACC: AccountId = AccountId::new([2; 32]); pub struct ToBeneficiary(); - impl OnUnbalanced> for ToBeneficiary { - fn on_nonzero_unbalanced(amount: NegativeImbalanceOf) { + impl OnUnbalanced> for ToBeneficiary { + fn on_nonzero_unbalanced(amount: CreditOf) { // Must resolve into existing but better to be safe. - >::resolve_creating(&TREASURY_ACC, amount); + let result = >::resolve(&TREASURY_ACC, amount); + + debug_assert!(result.is_ok(), "The whole credit cannot be countered"); } } @@ -281,13 +283,15 @@ mod tests { #[test] fn test_fees_and_tip_split() { new_test_ext().execute_with(|| { - let fee = ::AccountId>>::issue(10); - let tip = ::AccountId>>::issue(20); + let fee = ::AccountId>>::issue(10); + let tip = ::AccountId>>::issue(20); assert_eq!(Balances::free_balance(TREASURY_ACC), 0); assert_eq!(Balances::free_balance(AUTHOR_ACC), 0); - SplitFeesByRatio::>::on_unbalanceds(vec![fee, tip].into_iter()); + SplitFeesByRatio::>::on_unbalanceds( + vec![fee, tip].into_iter(), + ); assert_eq!(Balances::free_balance(TREASURY_ACC), 5); assert_eq!(Balances::free_balance(AUTHOR_ACC), 25); diff --git a/runtimes/common/src/xcm_config.rs b/runtimes/common/src/xcm_config.rs index 12e0cc1ed..a1ed20a9f 100644 --- a/runtimes/common/src/xcm_config.rs +++ b/runtimes/common/src/xcm_config.rs @@ -17,28 +17,34 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org use core::{marker::PhantomData, ops::ControlFlow}; +use cumulus_primitives_core::AggregateMessageOrigin; use frame_support::{match_types, parameter_types, traits::ProcessMessageError, weights::Weight}; use polkadot_parachain::primitives::Sibling; -use xcm::v3::prelude::*; -use xcm_builder::{AccountId32Aliases, CurrencyAdapter, IsConcrete, ParentIsPreset, SiblingParachainConvertsVia}; +use sp_runtime::Perbill; +use xcm::v4::prelude::*; +use xcm_builder::{AccountId32Aliases, FungibleAdapter, IsConcrete, ParentIsPreset, SiblingParachainConvertsVia}; use xcm_executor::traits::{Properties, ShouldExecute}; -use crate::AccountId; +use crate::{AccountId, BlockWeights}; parameter_types! { // One XCM operation is 200_000_000 weight, cross-chain transfer ~= 2x of transfer. pub UnitWeightCost: Weight = Weight::from_parts(200_000_000, 0); pub const MaxInstructions: u32 = 100; pub const MaxAssetsIntoHolding: u32 = 64; + pub const MaxStale: u32 = 8; + pub const HeapSize: u32 = 64 * 1024; + pub ServiceWeight: Weight = Perbill::from_percent(35) * BlockWeights::get().max_block; + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } match_types! { - pub type ParentLocation: impl Contains = { - MultiLocation { parents: 1, interior: Here} + pub type ParentLocation: impl Contains = { + Location { parents: 1, interior: Here} }; - pub type ParentOrSiblings: impl Contains = { - MultiLocation { parents: 1, interior: Here } | - MultiLocation { parents: 1, interior: X1(_) } + pub type ParentOrSiblings: impl Contains = { + Location { parents: 1, interior: Here } | + Location { parents: 1, interior: Junctions::X1(_) } }; } @@ -54,7 +60,7 @@ where Allow: ShouldExecute, { fn should_execute( - origin: &MultiLocation, + origin: &Location, instructions: &mut [Instruction], max_weight: Weight, properties: &mut Properties, @@ -69,7 +75,7 @@ where pub struct DenyReserveTransferToRelayChain; impl ShouldExecute for DenyReserveTransferToRelayChain { fn should_execute( - origin: &MultiLocation, + origin: &Location, message: &mut [Instruction], _max_weight: Weight, _properties: &mut Properties, @@ -79,21 +85,28 @@ impl ShouldExecute for DenyReserveTransferToRelayChain { |_| true, |inst| match inst { InitiateReserveWithdraw { - reserve: MultiLocation { + reserve: Location { parents: 1, interior: Here, }, .. } | DepositReserveAsset { - dest: MultiLocation { + dest: Location { parents: 1, interior: Here, }, .. } | TransferReserveAsset { - dest: MultiLocation { + dest: Location { + parents: 1, + interior: Here, + }, + .. + } + | TransferAsset { + beneficiary: Location { parents: 1, interior: Here, }, @@ -107,7 +120,7 @@ impl ShouldExecute for DenyReserveTransferToRelayChain { ReserveAssetDeposited { .. } if matches!( origin, - MultiLocation { + Location { parents: 1, interior: Here } @@ -130,11 +143,11 @@ impl ShouldExecute for DenyReserveTransferToRelayChain { } parameter_types! { - pub const RelayLocation: MultiLocation = MultiLocation::parent(); - pub const HereLocation: MultiLocation = MultiLocation::here(); + pub const RelayLocation: Location = Location::parent(); + pub const HereLocation: Location = Location::here(); } -/// Type for specifying how a `MultiLocation` can be converted into an +/// 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. @@ -148,12 +161,12 @@ pub type LocationToAccountId = ( ); /// Means for transacting assets on this chain. -pub type LocalAssetTransactor = CurrencyAdapter< +pub type LocalAssetTransactor = FungibleAdapter< // Use this currency: Currency, // Use this currency when it is a fungible asset matching the given location or name: IsConcrete, - // Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID: + // Do a simple punn to convert an AccountId32 Location into a native chain account ID: LocationToAccountId, // Our chain's account ID type (we can't get away without mentioning it explicitly): AccountId, diff --git a/runtimes/kestrel/src/lib.rs b/runtimes/kestrel/src/lib.rs index a58533235..86270ad67 100644 --- a/runtimes/kestrel/src/lib.rs +++ b/runtimes/kestrel/src/lib.rs @@ -40,7 +40,7 @@ use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use frame_try_runtime::UpgradeCheckSelect; use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; -use pallet_transaction_payment::{CurrencyAdapter, FeeDetails}; +use pallet_transaction_payment::{FeeDetails, FungibleAdapter}; use scale_info::TypeInfo; use sp_api::impl_runtime_apis; use sp_consensus_aura::{ed25519::AuthorityId as AuraId, SlotDuration}; @@ -168,6 +168,7 @@ impl frame_system::Config for Runtime { type RuntimeEvent = RuntimeEvent; /// The ubiquitous origin type. type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = RuntimeTask; /// Maximum number of block number to block hash mappings to keep (oldest /// pruned first). type BlockHashCount = BlockHashCount; @@ -253,8 +254,8 @@ parameter_types! { impl pallet_balances::Config for Runtime { type FreezeIdentifier = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = RuntimeFreezeReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; type MaxLocks = MaxLocks; type MaxReserves = MaxReserves; type ReserveIdentifier = [u8; 8]; @@ -276,7 +277,7 @@ parameter_types! { impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type OnChargeTransaction = CurrencyAdapter>; + type OnChargeTransaction = FungibleAdapter>; type OperationalFeeMultiplier = constants::fee::OperationalFeeMultiplier; type WeightToFee = IdentityFee; type LengthToFee = ConstantMultiplier; diff --git a/runtimes/peregrine/Cargo.toml b/runtimes/peregrine/Cargo.toml index a90995996..446823b1c 100644 --- a/runtimes/peregrine/Cargo.toml +++ b/runtimes/peregrine/Cargo.toml @@ -72,6 +72,7 @@ pallet-collective = { workspace = true } pallet-democracy = { workspace = true } pallet-indices = { workspace = true } pallet-membership = { workspace = true } +pallet-message-queue = { workspace = true } pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } pallet-proxy = { workspace = true } @@ -84,6 +85,7 @@ pallet-transaction-payment = { workspace = true } pallet-treasury = { workspace = true } pallet-utility = { workspace = true } pallet-vesting = { workspace = true } +sp-genesis-builder = { workspace = true } # Cumulus dependencies cumulus-pallet-aura-ext = { workspace = true } @@ -96,12 +98,14 @@ cumulus-primitives-core = { workspace = true } cumulus-primitives-timestamp = { workspace = true } cumulus-primitives-utility = { workspace = true } parachain-info = { workspace = true } +parachains-common = { workspace = true } # Polkadot dependencies -pallet-xcm = { workspace = true } -xcm = { workspace = true } -xcm-builder = { workspace = true } -xcm-executor = { workspace = true } +pallet-xcm = { workspace = true } +polkadot-runtime-common = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # Benchmarking dependencies cumulus-pallet-session-benchmarking = { workspace = true, optional = true } @@ -117,9 +121,11 @@ fast-gov = ["runtime-common/fast-gov"] runtime-benchmarks = [ "attestation/runtime-benchmarks", "ctype/runtime-benchmarks", + "cumulus-pallet-dmp-queue/runtime-benchmarks", "cumulus-pallet-parachain-system/runtime-benchmarks", "cumulus-pallet-session-benchmarking/runtime-benchmarks", "cumulus-pallet-xcmp-queue/runtime-benchmarks", + "cumulus-primitives-utility/runtime-benchmarks", "delegation/runtime-benchmarks", "did/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", @@ -137,6 +143,7 @@ runtime-benchmarks = [ "pallet-indices/runtime-benchmarks", "pallet-inflation/runtime-benchmarks", "pallet-membership/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", "pallet-migration/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", @@ -196,6 +203,7 @@ std = [ "pallet-indices/std", "pallet-inflation/std", "pallet-membership/std", + "pallet-message-queue/std", "pallet-migration/std", "pallet-multisig/std", "pallet-preimage/std", @@ -214,6 +222,7 @@ std = [ "pallet-xcm/std", "parachain-info/std", "parachain-staking/std", + "parachains-common/std", "parity-scale-codec/std", "public-credentials/std", "runtime-common/std", @@ -222,6 +231,7 @@ std = [ "sp-block-builder/std", "sp-consensus-aura/std", "sp-core/std", + "sp-genesis-builder/std", "sp-inherents/std", "sp-offchain/std", "sp-runtime/std", @@ -260,6 +270,7 @@ try-runtime = [ "pallet-indices/try-runtime", "pallet-inflation/try-runtime", "pallet-membership/try-runtime", + "pallet-message-queue/try-runtime", "pallet-migration/try-runtime", "pallet-multisig/try-runtime", "pallet-preimage/try-runtime", diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 424384cdf..40df75cde 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -27,8 +27,14 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases; use frame_support::{ - construct_runtime, parameter_types, - traits::{ConstU32, EitherOfDiverse, Everything, InstanceFilter, PrivilegeCmp}, + construct_runtime, + genesis_builder_helper::{build_config, create_default_config}, + parameter_types, + traits::{ + fungible::HoldConsideration, + tokens::{PayFromAccount, UnityAssetBalanceConversion}, + ConstU32, EitherOfDiverse, EnqueueWithOrigin, Everything, InstanceFilter, LinearStoragePrice, PrivilegeCmp, + }, weights::{ConstantMultiplier, Weight}, }; use frame_system::{pallet_prelude::BlockNumberFor, EnsureRoot, EnsureSigned}; @@ -63,9 +69,11 @@ use runtime_common::{ }, dip::merkle::{CompleteMerkleProof, DidMerkleProofOf, DidMerkleRootGenerator}, errors::PublicCredentialsApiError, - fees::{ToAuthor, WeightToFee}, - pallet_id, AccountId, AuthorityId, Balance, BlockHashCount, BlockLength, BlockNumber, BlockWeights, DidIdentifier, - FeeSplit, Hash, Header, Nonce, Signature, SlowAdjustingFeeUpdate, + fees::{ToAuthorCredit, WeightToFee}, + pallet_id, + xcm_config::RelayOrigin, + AccountId, AuthorityId, Balance, BlockHashCount, BlockLength, BlockNumber, BlockWeights, DidIdentifier, FeeSplit, + Hash, Header, Nonce, SendDustAndFeesToTreasury, Signature, SlowAdjustingFeeUpdate, }; #[cfg(feature = "std")] @@ -137,6 +145,7 @@ impl frame_system::Config for Runtime { type RuntimeEvent = RuntimeEvent; /// The ubiquitous origin type. type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = RuntimeTask; /// Maximum number of block number to block hash mappings to keep (oldest /// pruned first). type BlockHashCount = BlockHashCount; @@ -153,6 +162,7 @@ impl frame_system::Config for Runtime { type BlockWeights = BlockWeights; type BlockLength = BlockLength; type SS58Prefix = SS58Prefix; + /// The set code logic type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = frame_support::traits::ConstU32<16>; @@ -174,7 +184,6 @@ parameter_types! { pub const ExistentialDeposit: u128 = EXISTENTIAL_DEPOSIT; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } @@ -207,9 +216,9 @@ impl pallet_balances::Config for Runtime { /// The type for recording an account's balance. type Balance = Balance; type FreezeIdentifier = RuntimeFreezeReason; + type RuntimeFreezeReason = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; /// The ubiquitous event type. type RuntimeEvent = RuntimeEvent; @@ -224,8 +233,10 @@ impl pallet_balances::Config for Runtime { impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type OnChargeTransaction = - pallet_transaction_payment::CurrencyAdapter>>; + type OnChargeTransaction = pallet_transaction_payment::FungibleAdapter< + Balances, + FeeSplit, ToAuthorCredit>, + >; type OperationalFeeMultiplier = constants::fee::OperationalFeeMultiplier; type WeightToFee = WeightToFee; type LengthToFee = ConstantMultiplier; @@ -248,12 +259,13 @@ impl cumulus_pallet_parachain_system::Config for Runtime { type OnSystemEvent = (); type SelfParaId = parachain_info::Pallet; type OutboundXcmpMessageSource = XcmpQueue; - type DmpMessageHandler = DmpQueue; + type DmpQueue = EnqueueWithOrigin; type ReservedDmpWeight = ReservedDmpWeight; 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< @@ -308,6 +320,7 @@ impl pallet_vesting::Config for Runtime { type MinVestedTransfer = constants::MinVestedTransfer; type WeightInfo = weights::pallet_vesting::WeightInfo; type UnvestedFundsAllowedWithdrawReasons = UnvestedFundsAllowedWithdrawReasons; + type BlockNumberProvider = System; const MAX_VESTING_SCHEDULES: u32 = constants::MAX_VESTING_SCHEDULES; } @@ -315,6 +328,7 @@ parameter_types! { pub const MaxClaims: u32 = 50; pub const UsableBalance: Balance = KILT; pub const AutoUnlockBound: u32 = 100; + pub const PreImageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage); } impl pallet_preimage::Config for Runtime { @@ -322,8 +336,12 @@ impl pallet_preimage::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Currency = Balances; type ManagerOrigin = EnsureRoot; - type BaseDeposit = constants::preimage::PreimageBaseDeposit; - type ByteDeposit = constants::ByteDeposit; + type Consideration = HoldConsideration< + AccountId, + Balances, + PreImageHoldReason, + LinearStoragePrice, + >; } parameter_types! { @@ -438,6 +456,7 @@ parameter_types! { pub const Burn: Permill = Permill::zero(); pub const MaxApprovals: u32 = 100; pub MaxProposalWeight: Weight = Perbill::from_percent(50) * BlockWeights::get().max_block; + pub TreasuryAccount: AccountId = Treasury::account_id(); } type ApproveOrigin = EitherOfDiverse< @@ -461,12 +480,24 @@ impl pallet_treasury::Config for Runtime { type ProposalBondMinimum = ProposalBondMinimum; type ProposalBondMaximum = (); type SpendPeriod = SpendPeriod; + #[cfg(not(feature = "runtime-benchmarks"))] type SpendOrigin = frame_support::traits::NeverEnsureOrigin; + #[cfg(feature = "runtime-benchmarks")] + type SpendOrigin = frame_system::EnsureWithSuccess, AccountId, benches::MaxBalance>; type Burn = Burn; type BurnDestination = (); type SpendFunds = (); type WeightInfo = weights::pallet_treasury::WeightInfo; type MaxApprovals = MaxApprovals; + type AssetKind = (); + type BalanceConverter = UnityAssetBalanceConversion; + type Beneficiary = AccountId; + type BeneficiaryLookup = AccountIdLookup; + type Paymaster = PayFromAccount; + type PayoutPeriod = runtime_common::constants::treasury::PayoutPeriod; + + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = runtime_common::benchmarks::treasury::BenchmarkHelper; } type CouncilCollective = pallet_collective::Instance1; @@ -534,6 +565,7 @@ impl pallet_tips::Config for Runtime { type TipReportDepositBase = constants::tips::TipReportDepositBase; type RuntimeEvent = RuntimeEvent; type WeightInfo = weights::pallet_tips::WeightInfo; + type MaxTipAmount = constants::tips::MaxTipAmount; } impl attestation::Config for Runtime { @@ -1014,8 +1046,10 @@ construct_runtime! { PolkadotXcm: pallet_xcm = 83, // Does nothing cool, just provides an origin. CumulusXcm: cumulus_pallet_xcm exclude_parts { Call } = 84, - // Queue and pass DMP messages on to be executed. + // delete after lazy runtime Migration DmpQueue: cumulus_pallet_dmp_queue = 85, + // Queue and pass DMP messages on to be executed. + MessageQueue: pallet_message_queue = 86, } } @@ -1102,11 +1136,19 @@ pub type Executive = frame_executive::Executive< Runtime, // Executes pallet hooks in the order of definition in construct_runtime AllPalletsWithSystem, - (), + ( + cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4, + pallet_xcm::migration::MigrateToLatestXcmVersion, + ), >; #[cfg(feature = "runtime-benchmarks")] mod benches { + + frame_support::parameter_types! { + pub const MaxBalance: crate::Balance = crate::Balance::max_value(); + } + frame_benchmarking::define_benchmarks!( [frame_system, SystemBench::] [pallet_timestamp, Timestamp] @@ -1135,10 +1177,13 @@ mod benches { [pallet_did_lookup, DidLookup] [pallet_web3_names, Web3Names] [public_credentials, PublicCredentials] - [pallet_xcm, PolkadotXcm] + [pallet_xcm, PalletXcmExtrinsicsBenchmark::] [pallet_migration, Migration] [pallet_dip_provider, DipProvider] [pallet_deposit_storage, DepositStorage] + [pallet_message_queue, MessageQueue] + [cumulus_pallet_parachain_system, ParachainSystem] + [cumulus_pallet_dmp_queue, DmpQueue] [frame_benchmarking::baseline, Baseline::] ); } @@ -1436,6 +1481,7 @@ impl_runtime_apis! { use frame_system_benchmarking::Pallet as SystemBench; use cumulus_pallet_session_benchmarking::Pallet as SessionBench; use frame_benchmarking::baseline::Pallet as Baseline; + use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark; let mut list = Vec::::new(); list_benchmarks!(list, extra); @@ -1447,13 +1493,47 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { - use frame_benchmarking::{Benchmarking, BenchmarkBatch}; + use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; use frame_system_benchmarking::Pallet as SystemBench; use cumulus_pallet_session_benchmarking::Pallet as SessionBench; use frame_benchmarking::baseline::Pallet as Baseline; use frame_support::traits::TrackedStorageKey; + use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark; + use runtime_common::benchmarks::xcm as xcm_benchmarking; + use xcm::lts::prelude::*; + + impl pallet_xcm::benchmarking::Config for Runtime { + type DeliveryHelper = xcm_benchmarking::ParachainDeliveryHelper; + + fn reachable_dest() -> Option { + ParachainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(xcm_benchmarking::RandomParaId::get()); + Some(xcm_benchmarking::ParachainLocation::get()) + } + + fn reserve_transferable_asset_and_dest() -> Option<(Asset, Location)> { + ParachainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(xcm_benchmarking::RandomParaId::get()); + Some(( + xcm_benchmarking::NativeAsset::get(), + xcm_benchmarking::ParachainLocation::get(), + )) + } + + fn get_asset() -> Asset { + xcm_benchmarking::NativeAsset::get() + } + } + + 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()); + } + } - impl frame_system_benchmarking::Config for Runtime {} impl cumulus_pallet_session_benchmarking::Config for Runtime {} impl frame_benchmarking::baseline::Config for Runtime {} @@ -1505,6 +1585,19 @@ impl_runtime_apis! { Executive::try_execute_block(block, state_root_check, sig_check, select).expect("try_execute_block failed") } } + + impl sp_genesis_builder::GenesisBuilder for Runtime { + + fn create_default_config() -> Vec { + create_default_config::() + } + + fn build_config(config: Vec) -> sp_genesis_builder::Result { + build_config::(config) + } + + } + } cumulus_pallet_parachain_system::register_validate_block! { Runtime = Runtime, diff --git a/runtimes/peregrine/src/weights/attestation.rs b/runtimes/peregrine/src/weights/attestation.rs index 3e5122a0d..6e7e3beeb 100644 --- a/runtimes/peregrine/src/weights/attestation.rs +++ b/runtimes/peregrine/src/weights/attestation.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `attestation` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=attestation // --extrinsic=* @@ -52,89 +49,109 @@ use sp_std::marker::PhantomData; /// Weight functions for `attestation`. pub struct WeightInfo(PhantomData); impl attestation::WeightInfo for WeightInfo { - /// Storage: Ctype Ctypes (r:1 w:0) - /// Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) - /// Storage: Attestation Attestations (r:1 w:1) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Ctype::Ctypes` (r:1 w:0) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn add() -> Weight { // Proof Size summary in bytes: - // Measured: `793` - // Estimated: `7840` - // Minimum execution time: 23_737_000 picoseconds. - Weight::from_parts(23_737_000, 0) - .saturating_add(Weight::from_parts(0, 7840)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `260` + // Estimated: `3660` + // Minimum execution time: 52_335_000 picoseconds. + Weight::from_parts(53_274_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Attestation Attestations (r:1 w:1) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) fn revoke() -> Weight { // Proof Size summary in bytes: - // Measured: `227` - // Estimated: `2670` - // Minimum execution time: 21_471_000 picoseconds. - Weight::from_parts(21_471_000, 0) - .saturating_add(Weight::from_parts(0, 2670)) + // Measured: `196` + // Estimated: `3660` + // Minimum execution time: 14_393_000 picoseconds. + Weight::from_parts(14_731_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Attestation Attestations (r:1 w:1) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove() -> Weight { // Proof Size summary in bytes: - // Measured: `905` - // Estimated: `5277` - // Minimum execution time: 36_124_000 picoseconds. - Weight::from_parts(36_124_000, 0) - .saturating_add(Weight::from_parts(0, 5277)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `437` + // Estimated: `3660` + // Minimum execution time: 47_894_000 picoseconds. + Weight::from_parts(48_491_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Attestation Attestations (r:1 w:1) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn reclaim_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `905` - // Estimated: `5277` - // Minimum execution time: 21_043_000 picoseconds. - Weight::from_parts(21_043_000, 0) - .saturating_add(Weight::from_parts(0, 5277)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `437` + // Estimated: `3660` + // Minimum execution time: 48_351_000 picoseconds. + Weight::from_parts(48_828_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Attestation Attestations (r:1 w:1) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `1484` - // Estimated: `7884` - // Minimum execution time: 26_817_000 picoseconds. - Weight::from_parts(26_817_000, 0) - .saturating_add(Weight::from_parts(0, 7884)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `581` + // Estimated: `6326` + // Minimum execution time: 77_624_000 picoseconds. + Weight::from_parts(78_569_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Attestation Attestations (r:1 w:1) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `905` - // Estimated: `5277` - // Minimum execution time: 24_307_000 picoseconds. - Weight::from_parts(24_307_000, 0) - .saturating_add(Weight::from_parts(0, 5277)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `437` + // Estimated: `3660` + // Minimum execution time: 71_073_000 picoseconds. + Weight::from_parts(71_519_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } } @@ -149,7 +166,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7840 + > 3660 ); } #[test] @@ -161,7 +178,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2670 + > 3660 ); } #[test] @@ -173,7 +190,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5277 + > 3660 ); } #[test] @@ -185,7 +202,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5277 + > 3660 ); } #[test] @@ -197,7 +214,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7884 + > 6326 ); } #[test] @@ -209,7 +226,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5277 + > 3660 ); } } diff --git a/runtimes/peregrine/src/weights/ctype.rs b/runtimes/peregrine/src/weights/ctype.rs index 7904237a8..a81c19ef0 100644 --- a/runtimes/peregrine/src/weights/ctype.rs +++ b/runtimes/peregrine/src/weights/ctype.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `ctype` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=ctype // --extrinsic=* @@ -52,30 +49,32 @@ use sp_std::marker::PhantomData; /// Weight functions for `ctype`. pub struct WeightInfo(PhantomData); impl ctype::WeightInfo for WeightInfo { - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Ctype Ctypes (r:1 w:1) - /// Proof: Ctype Ctypes (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(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Ctype::Ctypes` (r:1 w:1) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. - fn add(_l: u32, ) -> Weight { + fn add(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `616` - // Estimated: `7777` - // Minimum execution time: 55_939_000 picoseconds. - Weight::from_parts(7_500_818_000, 0) - .saturating_add(Weight::from_parts(0, 7777)) + // Measured: `254` + // Estimated: `6204` + // Minimum execution time: 43_876_000 picoseconds. + Weight::from_parts(44_318_000, 0) + .saturating_add(Weight::from_parts(0, 6204)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(1_566, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Ctype Ctypes (r:1 w:1) - /// Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) + /// Storage: `Ctype::Ctypes` (r:1 w:1) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) fn set_block_number() -> Weight { // Proof Size summary in bytes: - // Measured: `151` - // Estimated: `2563` - // Minimum execution time: 20_123_000 picoseconds. - Weight::from_parts(20_123_000, 0) - .saturating_add(Weight::from_parts(0, 2563)) + // Measured: `158` + // Estimated: `3553` + // Minimum execution time: 15_009_000 picoseconds. + Weight::from_parts(15_716_000, 0) + .saturating_add(Weight::from_parts(0, 3553)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -92,7 +91,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7777 + > 6204 ); } #[test] @@ -104,7 +103,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2563 + > 3553 ); } } diff --git a/runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs b/runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs new file mode 100644 index 000000000..3af3b85d7 --- /dev/null +++ b/runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs @@ -0,0 +1,92 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +//! Autogenerated weights for `cumulus_pallet_parachain_system` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/kilt-parachain +// benchmark +// pallet +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 +// --steps=50 +// --repeat=20 +// --chain=dev +// --pallet=cumulus_pallet_parachain_system +// --extrinsic=* +// --output=./runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::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: `115` + // Estimated: `3517` + // Minimum execution time: 1_841_000 picoseconds. + Weight::from_parts(1_928_000, 0) + .saturating_add(Weight::from_parts(0, 3517)) + // Standard Error: 18_371 + .saturating_add(Weight::from_parts(193_473_787, 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()))) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_enqueue_inbound_downward_messages() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3517 + ); + } +} diff --git a/runtimes/peregrine/src/weights/delegation.rs b/runtimes/peregrine/src/weights/delegation.rs index aeb812b20..6d5a6286d 100644 --- a/runtimes/peregrine/src/weights/delegation.rs +++ b/runtimes/peregrine/src/weights/delegation.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `delegation` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=delegation // --extrinsic=* @@ -52,178 +49,220 @@ use sp_std::marker::PhantomData; /// Weight functions for `delegation`. pub struct WeightInfo(PhantomData); impl delegation::WeightInfo for WeightInfo { - /// Storage: Delegation DelegationHierarchies (r:1 w:1) - /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) - /// Storage: Ctype Ctypes (r:1 w:0) - /// Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Delegation DelegationNodes (r:0 w:1) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:1) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Ctype::Ctypes` (r:1 w:0) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationNodes` (r:0 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn create_hierarchy() -> Weight { // Proof Size summary in bytes: - // Measured: `896` - // Estimated: `7725` - // Minimum execution time: 47_954_000 picoseconds. - Weight::from_parts(47_954_000, 0) - .saturating_add(Weight::from_parts(0, 7725)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `363` + // Estimated: `3658` + // Minimum execution time: 54_699_000 picoseconds. + Weight::from_parts(55_207_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Delegation DelegationNodes (r:2 w:2) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:2 w:2) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn add_delegation() -> Weight { // Proof Size summary in bytes: - // Measured: `1048` - // Estimated: `71957` - // Minimum execution time: 29_016_000 picoseconds. - Weight::from_parts(29_016_000, 0) - .saturating_add(Weight::from_parts(0, 71957)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `502` + // Estimated: `70340` + // Minimum execution time: 59_709_000 picoseconds. + Weight::from_parts(60_141_000, 0) + .saturating_add(Weight::from_parts(0, 70340)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Delegation DelegationNodes (r:5 w:5) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: Delegation DelegationHierarchies (r:1 w:0) - /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:5 w:5) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:0) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 5]`. /// The range of component `c` is `[1, 5]`. fn revoke_delegation_root_child(r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `234 + r * (272 ±0)` - // Estimated: `2555 + r * (34675 ±0)` - // Minimum execution time: 55_112_000 picoseconds. - Weight::from_parts(45_610_000, 0) - .saturating_add(Weight::from_parts(0, 2555)) - // Standard Error: 1_405_342 - .saturating_add(Weight::from_parts(1_973_875, 0).saturating_mul(r.into())) - // Standard Error: 1_405_342 - .saturating_add(Weight::from_parts(1_505_625, 0).saturating_mul(c.into())) + // Measured: `241 + r * (239 ±0)` + // Estimated: `3545 + r * (34675 ±0)` + // Minimum execution time: 24_320_000 picoseconds. + Weight::from_parts(15_889_244, 0) + .saturating_add(Weight::from_parts(0, 3545)) + // Standard Error: 11_872 + .saturating_add(Weight::from_parts(9_382_556, 0).saturating_mul(r.into())) + // Standard Error: 11_872 + .saturating_add(Weight::from_parts(42_441, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) .saturating_add(Weight::from_parts(0, 34675).saturating_mul(r.into())) } - /// Storage: Delegation DelegationNodes (r:6 w:1) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: Delegation DelegationHierarchies (r:1 w:0) - /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:6 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:0) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 5]`. /// The range of component `c` is `[1, 5]`. fn revoke_delegation_leaf(_r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `439 + c * (272 ±0)` - // Estimated: `37230 + c * (34675 ±0)` - // Minimum execution time: 23_670_000 picoseconds. - Weight::from_parts(19_243_500, 0) - .saturating_add(Weight::from_parts(0, 37230)) - // Standard Error: 36_806 - .saturating_add(Weight::from_parts(4_780_250, 0).saturating_mul(c.into())) + // Measured: `414 + c * (239 ±0)` + // Estimated: `35665 + c * (34675 ±0)` + // Minimum execution time: 27_798_000 picoseconds. + Weight::from_parts(25_412_478, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 17_146 + .saturating_add(Weight::from_parts(4_219_254, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 34675).saturating_mul(c.into())) } - /// Storage: Delegation DelegationNodes (r:6 w:6) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Delegation DelegationHierarchies (r:1 w:1) - /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:6 w:6) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:6 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:1) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 5]`. - fn remove_delegation(_r: u32, ) -> Weight { + fn remove_delegation(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1117 + r * (272 ±0)` - // Estimated: `213212` - // Minimum execution time: 45_358_000 picoseconds. - Weight::from_parts(98_271_000, 0) - .saturating_add(Weight::from_parts(0, 213212)) - .saturating_add(T::DbWeight::get().reads(8)) - .saturating_add(T::DbWeight::get().writes(8)) + // Measured: `651 + r * (294 ±0)` + // Estimated: `35665 + r * (34675 ±0)` + // Minimum execution time: 99_737_000 picoseconds. + Weight::from_parts(67_169_789, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 69_804 + .saturating_add(Weight::from_parts(36_006_219, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 34675).saturating_mul(r.into())) } - /// Storage: Delegation DelegationNodes (r:6 w:6) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Delegation DelegationHierarchies (r:0 w:1) - /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:6 w:6) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:6 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:0 w:1) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 5]`. - fn reclaim_deposit(_r: u32, ) -> Weight { + fn reclaim_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1049 + r * (272 ±0)` - // Estimated: `210657` - // Minimum execution time: 39_837_000 picoseconds. - Weight::from_parts(93_924_000, 0) - .saturating_add(Weight::from_parts(0, 210657)) - .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(8)) + // Measured: `583 + r * (294 ±0)` + // Estimated: `35665 + r * (34675 ±0)` + // Minimum execution time: 95_277_000 picoseconds. + Weight::from_parts(62_361_345, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 72_256 + .saturating_add(Weight::from_parts(36_212_512, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 34675).saturating_mul(r.into())) } - /// Storage: Delegation DelegationNodes (r:1 w:0) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: Delegation DelegationHierarchies (r:1 w:0) - /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:1 w:0) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:0) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn can_attest() -> Weight { // Proof Size summary in bytes: - // Measured: `645` - // Estimated: `37230` - // Minimum execution time: 9_557_000 picoseconds. - Weight::from_parts(9_557_000, 0) - .saturating_add(Weight::from_parts(0, 37230)) + // Measured: `613` + // Estimated: `35665` + // Minimum execution time: 12_206_000 picoseconds. + Weight::from_parts(12_555_000, 0) + .saturating_add(Weight::from_parts(0, 35665)) .saturating_add(T::DbWeight::get().reads(2)) } - /// Storage: Delegation DelegationNodes (r:6 w:0) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:6 w:0) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 5]`. - fn can_revoke(_c: u32, ) -> Weight { + fn can_revoke(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `371 + c * (272 ±0)` - // Estimated: `208050` - // Minimum execution time: 9_070_000 picoseconds. - Weight::from_parts(19_885_000, 0) - .saturating_add(Weight::from_parts(0, 208050)) - .saturating_add(T::DbWeight::get().reads(6)) + // Measured: `341 + c * (240 ±0)` + // Estimated: `35665 + c * (34675 ±0)` + // Minimum execution time: 11_218_000 picoseconds. + Weight::from_parts(8_196_690, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 16_268 + .saturating_add(Weight::from_parts(3_563_546, 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(Weight::from_parts(0, 34675).saturating_mul(c.into())) } - /// Storage: Delegation DelegationNodes (r:6 w:0) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:6 w:0) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 5]`. - fn can_remove(_c: u32, ) -> Weight { + fn can_remove(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `371 + c * (272 ±0)` - // Estimated: `208050` - // Minimum execution time: 7_917_000 picoseconds. - Weight::from_parts(21_239_000, 0) - .saturating_add(Weight::from_parts(0, 208050)) - .saturating_add(T::DbWeight::get().reads(6)) + // Measured: `341 + c * (240 ±0)` + // Estimated: `35665 + c * (34675 ±0)` + // Minimum execution time: 11_180_000 picoseconds. + Weight::from_parts(8_147_080, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 15_643 + .saturating_add(Weight::from_parts(3_634_816, 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(Weight::from_parts(0, 34675).saturating_mul(c.into())) } - /// Storage: Delegation DelegationNodes (r:1 w:1) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:1 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `1696` - // Estimated: `39889` - // Minimum execution time: 37_144_000 picoseconds. - Weight::from_parts(37_144_000, 0) - .saturating_add(Weight::from_parts(0, 39889)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `829` + // Estimated: `35665` + // Minimum execution time: 83_409_000 picoseconds. + Weight::from_parts(84_131_000, 0) + .saturating_add(Weight::from_parts(0, 35665)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Delegation DelegationNodes (r:1 w:1) - /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:1 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1117` - // Estimated: `37282` - // Minimum execution time: 30_540_000 picoseconds. - Weight::from_parts(30_540_000, 0) - .saturating_add(Weight::from_parts(0, 37282)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `685` + // Estimated: `35665` + // Minimum execution time: 76_806_000 picoseconds. + Weight::from_parts(77_508_000, 0) + .saturating_add(Weight::from_parts(0, 35665)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } } @@ -238,7 +277,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7725 + > 3658 ); } #[test] @@ -250,7 +289,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 71957 + > 70340 ); } #[test] @@ -262,7 +301,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2555 + > 3545 ); } #[test] @@ -274,7 +313,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 37230 + > 35665 ); } #[test] @@ -286,7 +325,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 213212 + > 35665 ); } #[test] @@ -298,7 +337,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 210657 + > 35665 ); } #[test] @@ -310,7 +349,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 37230 + > 35665 ); } #[test] @@ -322,7 +361,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 208050 + > 35665 ); } #[test] @@ -334,7 +373,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 208050 + > 35665 ); } #[test] @@ -346,7 +385,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 39889 + > 35665 ); } #[test] @@ -358,7 +397,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 37282 + > 35665 ); } } diff --git a/runtimes/peregrine/src/weights/did.rs b/runtimes/peregrine/src/weights/did.rs index 758e46ce6..4b7a6177d 100644 --- a/runtimes/peregrine/src/weights/did.rs +++ b/runtimes/peregrine/src/weights/did.rs @@ -18,26 +18,26 @@ //! Autogenerated weights for `did` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet -// --chain=dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=dev // --pallet=did -// --extrinsic=dispatch_as,create_from_account -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 +// --extrinsic=* // --output=./runtimes/peregrine/src/weights/did.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -49,710 +49,767 @@ use sp_std::marker::PhantomData; /// Weight functions for `did`. pub struct WeightInfo(PhantomData); impl did::WeightInfo for WeightInfo { - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:0 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:0 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:0 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ed25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1131` + // Measured: `361` // Estimated: `6204` - // Minimum execution time: 179_404_000 picoseconds. - Weight::from_parts(170_230_985, 0) + // Minimum execution time: 175_796_000 picoseconds. + Weight::from_parts(129_513_824, 0) .saturating_add(Weight::from_parts(0, 6204)) - // Standard Error: 40_649 - .saturating_add(Weight::from_parts(296_994, 0).saturating_mul(n.into())) - // Standard Error: 15_716 - .saturating_add(Weight::from_parts(10_509_026, 0).saturating_mul(c.into())) + // Standard Error: 62_365 + .saturating_add(Weight::from_parts(1_921_885, 0).saturating_mul(n.into())) + // Standard Error: 24_112 + .saturating_add(Weight::from_parts(27_649_874, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:0 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:0 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:0 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_sr25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1131` + // Measured: `361` // Estimated: `6204` - // Minimum execution time: 181_049_000 picoseconds. - Weight::from_parts(161_298_980, 0) + // Minimum execution time: 170_401_000 picoseconds. + Weight::from_parts(117_706_529, 0) .saturating_add(Weight::from_parts(0, 6204)) - // Standard Error: 36_193 - .saturating_add(Weight::from_parts(1_411_802, 0).saturating_mul(n.into())) - // Standard Error: 13_993 - .saturating_add(Weight::from_parts(11_432_937, 0).saturating_mul(c.into())) + // Standard Error: 69_140 + .saturating_add(Weight::from_parts(1_862_825, 0).saturating_mul(n.into())) + // Standard Error: 26_732 + .saturating_add(Weight::from_parts(35_410_773, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:0 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:0 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:0 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ecdsa_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1131` + // Measured: `361` // Estimated: `6204` - // Minimum execution time: 164_997_000 picoseconds. - Weight::from_parts(143_724_779, 0) + // Minimum execution time: 159_301_000 picoseconds. + Weight::from_parts(121_679_994, 0) .saturating_add(Weight::from_parts(0, 6204)) - // Standard Error: 46_012 - .saturating_add(Weight::from_parts(1_689_629, 0).saturating_mul(n.into())) - // Standard Error: 17_790 - .saturating_add(Weight::from_parts(9_993_575, 0).saturating_mul(c.into())) + // Standard Error: 61_040 + .saturating_add(Weight::from_parts(1_617_013, 0).saturating_mul(n.into())) + // Standard Error: 23_600 + .saturating_add(Weight::from_parts(22_617_045, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:25 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Did DidBlacklist (r:0 w:1) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:25 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidBlacklist` (r:0 w:1) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 25]`. fn delete(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `969 + c * (105 ±0)` - // Estimated: `5777 + c * (3090 ±0)` - // Minimum execution time: 53_190_000 picoseconds. - Weight::from_parts(54_199_033, 0) + // Measured: `724 + c * (105 ±0)` + // Estimated: `5777 + c * (6690 ±0)` + // Minimum execution time: 59_712_000 picoseconds. + Weight::from_parts(60_275_559, 0) .saturating_add(Weight::from_parts(0, 5777)) - // Standard Error: 4_988 - .saturating_add(Weight::from_parts(1_376_408, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Standard Error: 4_547 + .saturating_add(Weight::from_parts(1_148_157, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 3090).saturating_mul(c.into())) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:25 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Did DidBlacklist (r:0 w:1) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + .saturating_add(Weight::from_parts(0, 6690).saturating_mul(c.into())) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:25 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidBlacklist` (r:0 w:1) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 25]`. fn reclaim_deposit(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `969 + c * (105 ±0)` - // Estimated: `5777 + c * (3090 ±0)` - // Minimum execution time: 55_729_000 picoseconds. - Weight::from_parts(56_557_707, 0) + // Measured: `724 + c * (105 ±0)` + // Estimated: `5777 + c * (6690 ±0)` + // Minimum execution time: 61_721_000 picoseconds. + Weight::from_parts(62_360_612, 0) .saturating_add(Weight::from_parts(0, 5777)) - // Standard Error: 4_643 - .saturating_add(Weight::from_parts(1_397_138, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Standard Error: 4_147 + .saturating_add(Weight::from_parts(1_163_755, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 3090).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 6690).saturating_mul(c.into())) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn submit_did_call_ed25519_key() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `5777` - // Minimum execution time: 76_132_000 picoseconds. - Weight::from_parts(76_814_000, 0) + // Minimum execution time: 70_697_000 picoseconds. + Weight::from_parts(71_596_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn submit_did_call_sr25519_key() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `5777` - // Minimum execution time: 77_295_000 picoseconds. - Weight::from_parts(78_438_000, 0) + // Minimum execution time: 57_182_000 picoseconds. + Weight::from_parts(58_172_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn submit_did_call_ecdsa_key() -> Weight { // Proof Size summary in bytes: // Measured: `353` // Estimated: `5777` - // Minimum execution time: 64_288_000 picoseconds. - Weight::from_parts(65_482_000, 0) + // Minimum execution time: 60_309_000 picoseconds. + Weight::from_parts(61_484_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ed25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2170` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_708_000 picoseconds. - Weight::from_parts(70_147_000, 0) + // Minimum execution time: 73_726_000 picoseconds. + Weight::from_parts(76_755_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_sr25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2170` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 68_784_000 picoseconds. - Weight::from_parts(70_860_000, 0) + // Minimum execution time: 74_677_000 picoseconds. + Weight::from_parts(76_084_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ecdsa_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2107` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 68_261_000 picoseconds. - Weight::from_parts(69_565_000, 0) + // Minimum execution time: 73_746_000 picoseconds. + Weight::from_parts(75_132_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2038` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_556_000 picoseconds. - Weight::from_parts(69_662_000, 0) + // Minimum execution time: 74_259_000 picoseconds. + Weight::from_parts(75_286_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2165` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_837_000 picoseconds. - Weight::from_parts(69_180_000, 0) + // Minimum execution time: 74_442_000 picoseconds. + Weight::from_parts(75_641_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2173` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 68_540_000 picoseconds. - Weight::from_parts(69_956_000, 0) + // Minimum execution time: 73_745_000 picoseconds. + Weight::from_parts(74_913_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_127_000 picoseconds. - Weight::from_parts(66_929_000, 0) + // Minimum execution time: 71_953_000 picoseconds. + Weight::from_parts(72_916_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 64_797_000 picoseconds. - Weight::from_parts(65_517_000, 0) + // Minimum execution time: 72_185_000 picoseconds. + Weight::from_parts(73_128_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2173` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 65_807_000 picoseconds. - Weight::from_parts(67_122_000, 0) + // Minimum execution time: 72_352_000 picoseconds. + Weight::from_parts(73_409_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2105` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 68_688_000 picoseconds. - Weight::from_parts(69_835_000, 0) + // Minimum execution time: 73_401_000 picoseconds. + Weight::from_parts(74_955_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2137` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_241_000 picoseconds. - Weight::from_parts(68_767_000, 0) + // Minimum execution time: 73_434_000 picoseconds. + Weight::from_parts(75_025_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2177` + // Measured: `1775` // Estimated: `5777` - // Minimum execution time: 66_623_000 picoseconds. - Weight::from_parts(68_381_000, 0) + // Minimum execution time: 73_076_000 picoseconds. + Weight::from_parts(74_823_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2137` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 64_750_000 picoseconds. - Weight::from_parts(67_215_000, 0) + // Minimum execution time: 72_058_000 picoseconds. + Weight::from_parts(73_149_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2132` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_858_000 picoseconds. - Weight::from_parts(67_393_000, 0) + // Minimum execution time: 72_323_000 picoseconds. + Weight::from_parts(73_666_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2112` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 64_552_000 picoseconds. - Weight::from_parts(66_076_000, 0) + // Minimum execution time: 72_647_000 picoseconds. + Weight::from_parts(74_037_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn add_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2026` + // Measured: `1629` // Estimated: `5777` - // Minimum execution time: 67_691_000 picoseconds. - Weight::from_parts(69_179_000, 0) + // Minimum execution time: 73_176_000 picoseconds. + Weight::from_parts(74_488_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn add_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1966` + // Measured: `1629` // Estimated: `5777` - // Minimum execution time: 67_454_000 picoseconds. - Weight::from_parts(69_136_000, 0) + // Minimum execution time: 73_319_000 picoseconds. + Weight::from_parts(74_306_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn add_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2062` + // Measured: `1632` // Estimated: `5777` - // Minimum execution time: 66_065_000 picoseconds. - Weight::from_parts(68_090_000, 0) + // Minimum execution time: 73_406_000 picoseconds. + Weight::from_parts(74_595_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 64_706_000 picoseconds. - Weight::from_parts(67_009_000, 0) + // Minimum execution time: 72_224_000 picoseconds. + Weight::from_parts(73_723_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2170` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_290_000 picoseconds. - Weight::from_parts(67_110_000, 0) + // Minimum execution time: 72_666_000 picoseconds. + Weight::from_parts(74_167_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2107` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 65_011_000 picoseconds. - Weight::from_parts(67_020_000, 0) - .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - fn add_service_endpoint() -> Weight { - // Proof Size summary in bytes: - // Measured: `1504` - // Estimated: `5777` - // Minimum execution time: 75_496_000 picoseconds. - Weight::from_parts(76_809_000, 0) + // Minimum execution time: 72_452_000 picoseconds. + Weight::from_parts(73_553_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:1 w:1) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + fn add_service_endpoint() -> Weight { + // Proof Size summary in bytes: + // Measured: `1135` + // Estimated: `7680` + // Minimum execution time: 89_117_000 picoseconds. + Weight::from_parts(90_498_000, 0) + .saturating_add(Weight::from_parts(0, 7680)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:1 w:1) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_service_endpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `2154` - // Estimated: `5777` - // Minimum execution time: 74_014_000 picoseconds. - Weight::from_parts(75_355_000, 0) - .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `5318` + // Estimated: `7680` + // Minimum execution time: 82_597_000 picoseconds. + Weight::from_parts(83_964_000, 0) + .saturating_add(Weight::from_parts(0, 7680)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. fn signature_verification_sr25519(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `5777` - // Minimum execution time: 63_042_000 picoseconds. - Weight::from_parts(41_623_028, 0) + // Minimum execution time: 49_038_000 picoseconds. + Weight::from_parts(27_157_241, 0) .saturating_add(Weight::from_parts(0, 5777)) // Standard Error: 0 - .saturating_add(Weight::from_parts(4_301, 0).saturating_mul(l.into())) + .saturating_add(Weight::from_parts(4_282, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. fn signature_verification_ed25519(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `5777` - // Minimum execution time: 61_831_000 picoseconds. - Weight::from_parts(38_865_643, 0) + // Minimum execution time: 60_065_000 picoseconds. + Weight::from_parts(34_144_982, 0) .saturating_add(Weight::from_parts(0, 5777)) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_522, 0).saturating_mul(l.into())) + .saturating_add(Weight::from_parts(2_367, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. fn signature_verification_ecdsa(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1627` // Estimated: `5777` - // Minimum execution time: 50_295_000 picoseconds. - Weight::from_parts(27_300_442, 0) + // Minimum execution time: 49_823_000 picoseconds. + Weight::from_parts(23_686_282, 0) .saturating_add(Weight::from_parts(0, 5777)) // Standard Error: 0 - .saturating_add(Weight::from_parts(1_153, 0).saturating_mul(l.into())) + .saturating_add(Weight::from_parts(1_166, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `822` + // Measured: `519` // Estimated: `5777` - // Minimum execution time: 73_863_000 picoseconds. - Weight::from_parts(76_051_000, 0) + // Minimum execution time: 65_777_000 picoseconds. + Weight::from_parts(66_443_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `888` + // Measured: `463` // Estimated: `5777` - // Minimum execution time: 45_375_000 picoseconds. - Weight::from_parts(46_464_000, 0) + // Minimum execution time: 33_732_000 picoseconds. + Weight::from_parts(34_332_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(2)) } - - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `353` // Estimated: `5777` - // Minimum execution time: 186_836_000 picoseconds. - Weight::from_parts(189_377_000, 0) + // Minimum execution time: 17_260_000 picoseconds. + Weight::from_parts(17_833_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn create_from_account() -> Weight { // Proof Size summary in bytes: - // Measured: `999` + // Measured: `323` // Estimated: `6204` - // Minimum execution time: 1_008_739_000 picoseconds. - Weight::from_parts(1_020_810_000, 0) + // Minimum execution time: 76_568_000 picoseconds. + Weight::from_parts(77_393_000, 0) .saturating_add(Weight::from_parts(0, 6204)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } } @@ -1115,7 +1172,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5777 + > 7680 ); } #[test] @@ -1127,7 +1184,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5777 + > 7680 ); } #[test] @@ -1190,7 +1247,6 @@ mod tests { > 5777 ); } - #[test] fn test_dispatch_as() { assert!( diff --git a/runtimes/peregrine/src/weights/frame_system.rs b/runtimes/peregrine/src/weights/frame_system.rs index 3d10534be..7797ee08f 100644 --- a/runtimes/peregrine/src/weights/frame_system.rs +++ b/runtimes/peregrine/src/weights/frame_system.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `frame_system` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=frame-system // --extrinsic=* @@ -52,78 +49,142 @@ use sp_std::marker::PhantomData; /// Weight functions for `frame_system`. pub struct WeightInfo(PhantomData); impl frame_system::WeightInfo for WeightInfo { - fn set_code() -> Weight { - Weight::from_parts(87_586_619_000, 1485) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) - } /// The range of component `b` is `[0, 3932160]`. - fn remark(_b: u32, ) -> Weight { + fn remark(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_869_000 picoseconds. - Weight::from_parts(1_061_172_000, 0) + // Minimum execution time: 2_095_000 picoseconds. + Weight::from_parts(2_196_000, 0) .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(390, 0).saturating_mul(b.into())) } /// The range of component `b` is `[0, 3932160]`. - fn remark_with_event(_b: u32, ) -> Weight { + fn remark_with_event(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 21_374_000 picoseconds. - Weight::from_parts(5_100_331_000, 0) + // Minimum execution time: 5_784_000 picoseconds. + Weight::from_parts(5_919_000, 0) .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(1_557, 0).saturating_mul(b.into())) } - /// Storage: System Digest (r:1 w:1) - /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: unknown `0x3a686561707061676573` (r:0 w:1) - /// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1) + /// 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: `495` - // Minimum execution time: 11_512_000 picoseconds. - Weight::from_parts(11_512_000, 0) - .saturating_add(Weight::from_parts(0, 495)) + // Estimated: `1485` + // Minimum execution time: 3_771_000 picoseconds. + Weight::from_parts(4_019_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Skipped Metadata (r:0 w:0) - /// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured) + /// 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: `127` + // Estimated: `1612` + // Minimum execution time: 101_315_441_000 picoseconds. + Weight::from_parts(104_155_772_000, 0) + .saturating_add(Weight::from_parts(0, 1612)) + .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 { + fn set_storage(i: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_820_000 picoseconds. - Weight::from_parts(410_289_000, 0) + // Minimum execution time: 2_030_000 picoseconds. + Weight::from_parts(2_087_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1000)) + // Standard Error: 2_131 + .saturating_add(Weight::from_parts(739_354, 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: Skipped Metadata (max_values: None, max_size: None, mode: Measured) + /// 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 { + fn kill_storage(i: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_437_000 picoseconds. - Weight::from_parts(348_091_000, 0) + // Minimum execution time: 2_101_000 picoseconds. + Weight::from_parts(2_171_000, 0) .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1000)) + // Standard Error: 819 + .saturating_add(Weight::from_parts(528_995, 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: Skipped Metadata (max_values: None, max_size: None, mode: Measured) + /// 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 { + fn kill_prefix(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `39 + p * (69 ±0)` - // Estimated: `69709` - // Minimum execution time: 10_921_000 picoseconds. - Weight::from_parts(789_625_000, 0) - .saturating_add(Weight::from_parts(0, 69709)) - .saturating_add(T::DbWeight::get().writes(1000)) + // Measured: `82 + p * (69 ±0)` + // Estimated: `92 + p * (70 ±0)` + // Minimum execution time: 4_152_000 picoseconds. + Weight::from_parts(4_262_000, 0) + .saturating_add(Weight::from_parts(0, 92)) + // Standard Error: 982 + .saturating_add(Weight::from_parts(1_029_408, 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: 7_906_000 picoseconds. + Weight::from_parts(8_575_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: `149` + // Estimated: `1634` + // Minimum execution time: 106_385_288_000 picoseconds. + Weight::from_parts(109_274_128_000, 0) + .saturating_add(Weight::from_parts(0, 1634)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } } @@ -138,7 +199,19 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 495 + > 1485 + ); + } + #[test] + fn test_set_code() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1612 ); } #[test] @@ -150,7 +223,19 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 69709 + > 92 + ); + } + #[test] + fn test_apply_authorized_upgrade() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1634 ); } } diff --git a/runtimes/peregrine/src/weights/mod.rs b/runtimes/peregrine/src/weights/mod.rs index 2eda06279..6aaef3eb5 100644 --- a/runtimes/peregrine/src/weights/mod.rs +++ b/runtimes/peregrine/src/weights/mod.rs @@ -15,9 +15,11 @@ // along with this program. If not, see . // If you feel like getting in touch with us, you can do so at info@botlabs.org +#![allow(unused_doc_comments)] pub mod attestation; pub mod ctype; +pub mod cumulus_pallet_parachain_system; pub mod delegation; pub mod did; pub mod frame_system; @@ -27,9 +29,11 @@ pub mod pallet_democracy; pub mod pallet_deposit_storage; pub mod pallet_did_lookup; pub mod pallet_dip_provider; +pub mod pallet_dmp_queue; pub mod pallet_indices; pub mod pallet_inflation; pub mod pallet_membership; +pub mod pallet_message_queue; pub mod pallet_migration; pub mod pallet_multisig; pub mod pallet_preimage; diff --git a/runtimes/peregrine/src/weights/pallet_balances.rs b/runtimes/peregrine/src/weights/pallet_balances.rs index f5eeffb7d..ffda812b1 100644 --- a/runtimes/peregrine/src/weights/pallet_balances.rs +++ b/runtimes/peregrine/src/weights/pallet_balances.rs @@ -1,3 +1,4 @@ +// KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH // The KILT Blockchain is free software: you can redistribute it and/or modify @@ -17,26 +18,26 @@ //! Autogenerated weights for `pallet_balances` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=dev // --pallet=pallet-balances // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/peregrine/src/weights/pallet_balances.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -48,106 +49,117 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_balances`. pub struct WeightInfo(PhantomData); impl pallet_balances::WeightInfo for WeightInfo { - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer_allow_death() -> Weight { // Proof Size summary in bytes: - // Measured: `712` + // Measured: `107` // Estimated: `6204` - // Minimum execution time: 45_944_000 picoseconds. - Weight::from_parts(46_865_000, 0) + // Minimum execution time: 57_680_000 picoseconds. + Weight::from_parts(58_518_000, 0) .saturating_add(Weight::from_parts(0, 6204)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: - // Measured: `270` + // Measured: `0` // Estimated: `3597` - // Minimum execution time: 27_324_000 picoseconds. - Weight::from_parts(28_450_000, 0) + // Minimum execution time: 36_421_000 picoseconds. + Weight::from_parts(37_217_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_set_balance_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `178` // Estimated: `3597` - // Minimum execution time: 10_725_000 picoseconds. - Weight::from_parts(11_288_000, 0) + // Minimum execution time: 15_716_000 picoseconds. + Weight::from_parts(16_230_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_set_balance_killing() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `178` // Estimated: `3597` - // Minimum execution time: 15_777_000 picoseconds. - Weight::from_parts(16_575_000, 0) + // Minimum execution time: 21_093_000 picoseconds. + Weight::from_parts(21_350_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: System Account (r:3 w:3) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:3 w:3) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `1022` + // Measured: `214` // Estimated: `8811` - // Minimum execution time: 47_946_000 picoseconds. - Weight::from_parts(49_489_000, 0) + // Minimum execution time: 60_396_000 picoseconds. + Weight::from_parts(61_513_000, 0) .saturating_add(Weight::from_parts(0, 8811)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { // Proof Size summary in bytes: - // Measured: `270` + // Measured: `0` // Estimated: `3597` - // Minimum execution time: 34_714_000 picoseconds. - Weight::from_parts(35_765_000, 0) + // Minimum execution time: 45_008_000 picoseconds. + Weight::from_parts(45_809_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `178` // Estimated: `3597` - // Minimum execution time: 12_524_000 picoseconds. - Weight::from_parts(13_181_000, 0) + // Minimum execution time: 17_799_000 picoseconds. + Weight::from_parts(18_465_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:999 w:999) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `u` is `[1, 1000]`. fn upgrade_accounts(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6922 + u * (143 ±0)` + // Measured: `0 + u * (140 ±0)` // Estimated: `990 + u * (2607 ±0)` - // Minimum execution time: 11_788_000 picoseconds. - Weight::from_parts(12_202_000, 0) + // Minimum execution time: 17_365_000 picoseconds. + Weight::from_parts(17_698_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 8_226 - .saturating_add(Weight::from_parts(9_789_551, 0).saturating_mul(u.into())) + // Standard Error: 10_091 + .saturating_add(Weight::from_parts(12_523_656, 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, 2607).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_558_000 picoseconds. + Weight::from_parts(6_815_000, 0) + .saturating_add(Weight::from_parts(0, 1501)) + .saturating_add(T::DbWeight::get().reads(1)) + } } #[cfg(test)] @@ -248,4 +260,16 @@ mod tests { > 990 ); } + #[test] + fn test_force_adjust_total_issuance() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1501 + ); + } } diff --git a/runtimes/peregrine/src/weights/pallet_collective.rs b/runtimes/peregrine/src/weights/pallet_collective.rs index aa0563a79..6ce8eabce 100644 --- a/runtimes/peregrine/src/weights/pallet_collective.rs +++ b/runtimes/peregrine/src/weights/pallet_collective.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_collective` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-collective // --extrinsic=* @@ -52,14 +49,14 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_collective`. pub struct WeightInfo(PhantomData); impl pallet_collective::WeightInfo for WeightInfo { - /// Storage: TechnicalCommittee Members (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Proposals (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Voting (r:100 w:100) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Members` (r:1 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:100 w:100) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. @@ -68,72 +65,74 @@ impl pallet_collective::WeightInfo for WeightInfo { /// 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 * (3261 ±0) + p * (3228 ±0)` - // Estimated: `1217 + m * (8779 ±0) + p * (8680 ±0)` - // Minimum execution time: 11_362_000 picoseconds. - Weight::from_parts(11_362_000, 0) - .saturating_add(Weight::from_parts(0, 1217)) - // Standard Error: 1_056_016 - .saturating_add(Weight::from_parts(4_780_175, 0).saturating_mul(m.into())) - // Standard Error: 1_056_016 - .saturating_add(Weight::from_parts(4_717_390, 0).saturating_mul(p.into())) + // Measured: `0 + m * (3232 ±0) + p * (3194 ±0)` + // Estimated: `15736 + m * (1967 ±16) + p * (4336 ±16)` + // Minimum execution time: 17_075_000 picoseconds. + Weight::from_parts(17_240_000, 0) + .saturating_add(Weight::from_parts(0, 15736)) + // Standard Error: 44_369 + .saturating_add(Weight::from_parts(5_167_824, 0).saturating_mul(m.into())) + // Standard Error: 44_369 + .saturating_add(Weight::from_parts(7_663_200, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) .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(m.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) - .saturating_add(Weight::from_parts(0, 8779).saturating_mul(m.into())) - .saturating_add(Weight::from_parts(0, 8680).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 4336).saturating_mul(p.into())) } - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::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]`. /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[1, 100]`. - fn execute(_b: u32, m: u32, ) -> Weight { + fn execute(b: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `100 + m * (32 ±0)` - // Estimated: `596 + m * (32 ±0)` - // Minimum execution time: 11_165_000 picoseconds. - Weight::from_parts(13_172_759, 0) - .saturating_add(Weight::from_parts(0, 596)) + // Measured: `69 + m * (32 ±0)` + // Estimated: `1555 + m * (32 ±0)` + // Minimum execution time: 14_268_000 picoseconds. + Weight::from_parts(13_433_073, 0) + .saturating_add(Weight::from_parts(0, 1555)) + // Standard Error: 9 + .saturating_add(Weight::from_parts(1_354, 0).saturating_mul(b.into())) + // Standard Error: 100 + .saturating_add(Weight::from_parts(16_017, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) } - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:1 w:0) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:0) + /// Proof: `TechnicalCommittee::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]`. /// 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: `100 + m * (32 ±0)` - // Estimated: `3172 + m * (64 ±0)` - // Minimum execution time: 12_161_000 picoseconds. - Weight::from_parts(10_929_062, 0) - .saturating_add(Weight::from_parts(0, 3172)) - // Standard Error: 150 - .saturating_add(Weight::from_parts(1_640, 0).saturating_mul(b.into())) - // Standard Error: 1_554 - .saturating_add(Weight::from_parts(13_656, 0).saturating_mul(m.into())) + // Measured: `69 + m * (32 ±0)` + // Estimated: `3535 + m * (32 ±0)` + // Minimum execution time: 16_884_000 picoseconds. + Weight::from_parts(15_978_170, 0) + .saturating_add(Weight::from_parts(0, 3535)) + // Standard Error: 11 + .saturating_add(Weight::from_parts(1_436, 0).saturating_mul(b.into())) + // Standard Error: 115 + .saturating_add(Weight::from_parts(26_326, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) } - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:1 w:1) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Proposals (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalCount (r:1 w:1) - /// Proof Skipped: TechnicalCommittee ProposalCount (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Voting (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalCount` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. @@ -142,77 +141,77 @@ impl pallet_collective::WeightInfo for WeightInfo { /// The range of component `p` is `[1, 100]`. fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `36 + m * (32 ±0) + p * (39 ±0)` - // Estimated: `4140 + m * (160 ±0) + p * (200 ±0)` - // Minimum execution time: 17_046_000 picoseconds. - Weight::from_parts(14_167_118, 0) - .saturating_add(Weight::from_parts(0, 4140)) - // Standard Error: 533 - .saturating_add(Weight::from_parts(2_353, 0).saturating_mul(b.into())) - // Standard Error: 5_561 - .saturating_add(Weight::from_parts(6_142, 0).saturating_mul(m.into())) - // Standard Error: 5_505 - .saturating_add(Weight::from_parts(120_388, 0).saturating_mul(p.into())) + // Measured: `359 + m * (32 ±0) + p * (36 ±0)` + // Estimated: `3751 + m * (33 ±0) + p * (36 ±0)` + // Minimum execution time: 22_455_000 picoseconds. + Weight::from_parts(23_084_293, 0) + .saturating_add(Weight::from_parts(0, 3751)) + // Standard Error: 44 + .saturating_add(Weight::from_parts(2_115, 0).saturating_mul(b.into())) + // Standard Error: 468 + .saturating_add(Weight::from_parts(17_224, 0).saturating_mul(m.into())) + // Standard Error: 462 + .saturating_add(Weight::from_parts(128_562, 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, 160).saturating_mul(m.into())) - .saturating_add(Weight::from_parts(0, 200).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) } - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Voting (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `m` is `[5, 100]`. /// The range of component `m` is `[5, 100]`. fn vote(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `876 + m * (64 ±0)` - // Estimated: `4724 + m * (128 ±0)` - // Minimum execution time: 17_402_000 picoseconds. - Weight::from_parts(17_479_000, 0) - .saturating_add(Weight::from_parts(0, 4724)) - // Standard Error: 3_403 - .saturating_add(Weight::from_parts(25_600, 0).saturating_mul(m.into())) + // Measured: `812 + m * (64 ±0)` + // Estimated: `4276 + m * (64 ±0)` + // Minimum execution time: 20_892_000 picoseconds. + Weight::from_parts(21_405_712, 0) + .saturating_add(Weight::from_parts(0, 4276)) + // Standard Error: 220 + .saturating_add(Weight::from_parts(32_145, 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, 128).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - /// Storage: TechnicalCommittee Voting (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Proposals (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:0 w:1) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. /// 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: `281 + m * (64 ±0) + p * (38 ±0)` - // Estimated: `4589 + m * (256 ±0) + p * (156 ±0)` - // Minimum execution time: 18_656_000 picoseconds. - Weight::from_parts(21_157_517, 0) - .saturating_add(Weight::from_parts(0, 4589)) - // Standard Error: 24_620 - .saturating_add(Weight::from_parts(2_859, 0).saturating_mul(m.into())) - // Standard Error: 23_874 - .saturating_add(Weight::from_parts(78_045, 0).saturating_mul(p.into())) + // Measured: `401 + m * (64 ±0) + p * (36 ±0)` + // Estimated: `3846 + m * (65 ±0) + p * (36 ±0)` + // Minimum execution time: 24_859_000 picoseconds. + Weight::from_parts(25_299_352, 0) + .saturating_add(Weight::from_parts(0, 3846)) + // Standard Error: 374 + .saturating_add(Weight::from_parts(21_309, 0).saturating_mul(m.into())) + // Standard Error: 365 + .saturating_add(Weight::from_parts(123_053, 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, 256).saturating_mul(m.into())) - .saturating_add(Weight::from_parts(0, 156).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) } - /// Storage: TechnicalCommittee Voting (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:1 w:1) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Proposals (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::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]`. @@ -221,59 +220,61 @@ impl pallet_collective::WeightInfo for WeightInfo { /// 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: `495 + m * (64 ±0) + p * (45 ±0)` - // Estimated: `7920 + b * (4 ±0) + m * (256 ±0) + p * (180 ±0)` - // Minimum execution time: 28_052_000 picoseconds. - Weight::from_parts(64_820_632, 0) - .saturating_add(Weight::from_parts(0, 7920)) - // Standard Error: 171_094 - .saturating_add(Weight::from_parts(21_973, 0).saturating_mul(m.into())) + // Measured: `703 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` + // Estimated: `4020 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)` + // Minimum execution time: 34_369_000 picoseconds. + Weight::from_parts(35_724_149, 0) + .saturating_add(Weight::from_parts(0, 4020)) + // Standard Error: 120 + .saturating_add(Weight::from_parts(2_198, 0).saturating_mul(b.into())) + // Standard Error: 1_241 + .saturating_add(Weight::from_parts(160_548, 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, 4).saturating_mul(b.into())) - .saturating_add(Weight::from_parts(0, 256).saturating_mul(m.into())) - .saturating_add(Weight::from_parts(0, 180).saturating_mul(p.into())) + .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: TechnicalCommittee Voting (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Proposals (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:0 w:1) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:1 w:0) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. /// 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: `301 + m * (64 ±0) + p * (38 ±0)` - // Estimated: `5465 + m * (320 ±0) + p * (195 ±0)` - // Minimum execution time: 20_403_000 picoseconds. - Weight::from_parts(19_574_964, 0) - .saturating_add(Weight::from_parts(0, 5465)) - // Standard Error: 4_434 - .saturating_add(Weight::from_parts(9_088, 0).saturating_mul(m.into())) - // Standard Error: 4_299 - .saturating_add(Weight::from_parts(103_681, 0).saturating_mul(p.into())) + // Measured: `421 + m * (64 ±0) + p * (36 ±0)` + // Estimated: `3866 + m * (65 ±0) + p * (36 ±0)` + // Minimum execution time: 26_926_000 picoseconds. + Weight::from_parts(27_188_723, 0) + .saturating_add(Weight::from_parts(0, 3866)) + // Standard Error: 384 + .saturating_add(Weight::from_parts(25_733, 0).saturating_mul(m.into())) + // Standard Error: 374 + .saturating_add(Weight::from_parts(122_716, 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, 320).saturating_mul(m.into())) - .saturating_add(Weight::from_parts(0, 195).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) } - /// Storage: TechnicalCommittee Voting (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Members (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:1 w:1) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Proposals (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:1 w:0) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::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]`. @@ -282,43 +283,41 @@ impl pallet_collective::WeightInfo for WeightInfo { /// The range of component `p` is `[1, 100]`. fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `515 + m * (64 ±0) + p * (45 ±0)` - // Estimated: `9010 + b * (5 ±0) + m * (320 ±0) + p * (225 ±0)` - // Minimum execution time: 29_270_000 picoseconds. - Weight::from_parts(40_332_740, 0) - .saturating_add(Weight::from_parts(0, 9010)) - // Standard Error: 6_587 - .saturating_add(Weight::from_parts(1_802, 0).saturating_mul(b.into())) - // Standard Error: 70_132 - .saturating_add(Weight::from_parts(1_265, 0).saturating_mul(m.into())) - // Standard Error: 68_007 - .saturating_add(Weight::from_parts(21_090, 0).saturating_mul(p.into())) + // Measured: `723 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` + // Estimated: `4040 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)` + // Minimum execution time: 36_200_000 picoseconds. + Weight::from_parts(38_239_074, 0) + .saturating_add(Weight::from_parts(0, 4040)) + // Standard Error: 123 + .saturating_add(Weight::from_parts(2_019, 0).saturating_mul(b.into())) + // Standard Error: 1_272 + .saturating_add(Weight::from_parts(160_137, 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, 5).saturating_mul(b.into())) - .saturating_add(Weight::from_parts(0, 320).saturating_mul(m.into())) - .saturating_add(Weight::from_parts(0, 225).saturating_mul(p.into())) + .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: TechnicalCommittee Proposals (r:1 w:1) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Voting (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - /// Storage: TechnicalCommittee ProposalOf (r:0 w:1) - /// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:0 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `p` is `[1, 100]`. /// The range of component `p` is `[1, 100]`. fn disapprove_proposal(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `256 + p * (32 ±0)` - // Estimated: `1266 + p * (96 ±0)` - // Minimum execution time: 11_042_000 picoseconds. - Weight::from_parts(15_650_848, 0) - .saturating_add(Weight::from_parts(0, 1266)) - // Standard Error: 46_997 - .saturating_add(Weight::from_parts(39_651, 0).saturating_mul(p.into())) + // Measured: `226 + p * (32 ±0)` + // Estimated: `1711 + p * (32 ±0)` + // Minimum execution time: 13_982_000 picoseconds. + Weight::from_parts(15_924_999, 0) + .saturating_add(Weight::from_parts(0, 1711)) + // Standard Error: 417 + .saturating_add(Weight::from_parts(111_375, 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, 96).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into())) } } @@ -333,7 +332,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 1217 + > 15736 ); } #[test] @@ -345,7 +344,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 596 + > 1555 ); } #[test] @@ -357,7 +356,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3172 + > 3535 ); } #[test] @@ -369,7 +368,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4140 + > 3751 ); } #[test] @@ -381,7 +380,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4724 + > 4276 ); } #[test] @@ -393,7 +392,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4589 + > 3846 ); } #[test] @@ -405,7 +404,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7920 + > 4020 ); } #[test] @@ -417,7 +416,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5465 + > 3866 ); } #[test] @@ -429,7 +428,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 9010 + > 4040 ); } #[test] @@ -441,7 +440,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 1266 + > 1711 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_democracy.rs b/runtimes/peregrine/src/weights/pallet_democracy.rs index a8644da5b..f98779bef 100644 --- a/runtimes/peregrine/src/weights/pallet_democracy.rs +++ b/runtimes/peregrine/src/weights/pallet_democracy.rs @@ -1,26 +1,43 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org //! Autogenerated weights for `pallet_democracy` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 -// --pallet=pallet_democracy +// --chain=dev +// --pallet=pallet-democracy // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./runtimes/spiritnet/src/weights/pallet_democracy.rs -// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/pallet_democracy.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -32,468 +49,484 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_democracy`. pub struct WeightInfo(PhantomData); impl pallet_democracy::WeightInfo for WeightInfo { - /// Storage: Democracy PublicPropCount (r:1 w:1) - /// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy PublicProps (r:1 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:1 w:0) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) - /// Storage: Democracy DepositOf (r:0 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicPropCount` (r:1 w:1) + /// Proof: `Democracy::PublicPropCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::PublicProps` (r:1 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:1 w:0) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) + /// Storage: `Democracy::DepositOf` (r:0 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) fn propose() -> Weight { // Proof Size summary in bytes: - // Measured: `4801` - // Estimated: `23413` - // Minimum execution time: 391_426_000 picoseconds. - Weight::from_parts(403_798_000, 0) - .saturating_add(Weight::from_parts(0, 23413)) + // Measured: `4738` + // Estimated: `18187` + // Minimum execution time: 37_810_000 picoseconds. + Weight::from_parts(38_244_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy DepositOf (r:1 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) + /// Storage: `Democracy::DepositOf` (r:1 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) fn second() -> Weight { // Proof Size summary in bytes: - // Measured: `3557` - // Estimated: `5705` - // Minimum execution time: 336_716_000 picoseconds. - Weight::from_parts(358_164_000, 0) - .saturating_add(Weight::from_parts(0, 5705)) + // Measured: `3493` + // Estimated: `6695` + // Minimum execution time: 35_733_000 picoseconds. + Weight::from_parts(36_270_000, 0) + .saturating_add(Weight::from_parts(0, 6695)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) fn vote_new() -> Weight { // Proof Size summary in bytes: - // Measured: `3785` - // Estimated: `12732` - // Minimum execution time: 463_501_000 picoseconds. - Weight::from_parts(476_502_000, 0) - .saturating_add(Weight::from_parts(0, 12732)) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `3475` + // Estimated: `7264` + // Minimum execution time: 49_425_000 picoseconds. + Weight::from_parts(50_168_000, 0) + .saturating_add(Weight::from_parts(0, 7264)) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) fn vote_existing() -> Weight { // Proof Size summary in bytes: - // Measured: `3807` - // Estimated: `12732` - // Minimum execution time: 457_181_000 picoseconds. - Weight::from_parts(477_086_000, 0) - .saturating_add(Weight::from_parts(0, 12732)) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `3497` + // Estimated: `7264` + // Minimum execution time: 51_698_000 picoseconds. + Weight::from_parts(52_387_000, 0) + .saturating_add(Weight::from_parts(0, 7264)) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy Cancellations (r:1 w:1) - /// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Cancellations` (r:1 w:1) + /// Proof: `Democracy::Cancellations` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn emergency_cancel() -> Weight { // Proof Size summary in bytes: - // Measured: `339` - // Estimated: `7720` - // Minimum execution time: 325_258_000 picoseconds. - Weight::from_parts(338_238_000, 0) - .saturating_add(Weight::from_parts(0, 7720)) + // Measured: `307` + // Estimated: `3674` + // Minimum execution time: 24_459_000 picoseconds. + Weight::from_parts(25_024_000, 0) + .saturating_add(Weight::from_parts(0, 3674)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy PublicProps (r:1 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy DepositOf (r:1 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:3 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:0 w:1) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::DepositOf` (r:1 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:3 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:0 w:1) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) fn blacklist() -> Weight { // Proof Size summary in bytes: - // Measured: `6455` - // Estimated: `39011` - // Minimum execution time: 950_796_000 picoseconds. - Weight::from_parts(977_506_000, 0) - .saturating_add(Weight::from_parts(0, 39011)) + // Measured: `5999` + // Estimated: `18187` + // Minimum execution time: 93_232_000 picoseconds. + Weight::from_parts(95_242_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(8)) } - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:1 w:0) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:1 w:0) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) fn external_propose() -> Weight { // Proof Size summary in bytes: - // Measured: `3385` - // Estimated: `6344` - // Minimum execution time: 167_103_000 picoseconds. - Weight::from_parts(173_910_000, 0) - .saturating_add(Weight::from_parts(0, 6344)) + // Measured: `3353` + // Estimated: `6707` + // Minimum execution time: 12_945_000 picoseconds. + Weight::from_parts(13_531_000, 0) + .saturating_add(Weight::from_parts(0, 6707)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:0 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:0 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) fn external_propose_majority() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 48_069_000 picoseconds. - Weight::from_parts(50_061_000, 0) + // Minimum execution time: 2_979_000 picoseconds. + Weight::from_parts(3_087_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:0 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:0 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) fn external_propose_default() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 48_294_000 picoseconds. - Weight::from_parts(49_893_000, 0) + // Minimum execution time: 2_904_000 picoseconds. + Weight::from_parts(3_032_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumCount (r:1 w:1) - /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:2) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:0 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumCount` (r:1 w:1) + /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:2) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) fn fast_track() -> Weight { // Proof Size summary in bytes: // Measured: `219` - // Estimated: `3654` - // Minimum execution time: 355_300_000 picoseconds. - Weight::from_parts(365_473_000, 0) - .saturating_add(Weight::from_parts(0, 3654)) + // Estimated: `3518` + // Minimum execution time: 23_538_000 picoseconds. + Weight::from_parts(24_008_000, 0) + .saturating_add(Weight::from_parts(0, 3518)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:1 w:1) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:1 w:1) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn veto_external() -> Weight { // Proof Size summary in bytes: - // Measured: `3488` - // Estimated: `8872` - // Minimum execution time: 336_000_000 picoseconds. - Weight::from_parts(348_874_000, 0) - .saturating_add(Weight::from_parts(0, 8872)) + // Measured: `3456` + // Estimated: `6707` + // Minimum execution time: 27_422_000 picoseconds. + Weight::from_parts(27_731_000, 0) + .saturating_add(Weight::from_parts(0, 6707)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy PublicProps (r:1 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy DepositOf (r:1 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::DepositOf` (r:1 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn cancel_proposal() -> Weight { // Proof Size summary in bytes: - // Measured: `6326` - // Estimated: `30644` - // Minimum execution time: 736_633_000 picoseconds. - Weight::from_parts(771_455_000, 0) - .saturating_add(Weight::from_parts(0, 30644)) + // Measured: `5902` + // Estimated: `18187` + // Minimum execution time: 78_910_000 picoseconds. + Weight::from_parts(80_065_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:0 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) fn cancel_referendum() -> Weight { // Proof Size summary in bytes: // Measured: `204` - // Estimated: `2528` - // Minimum execution time: 240_121_000 picoseconds. - Weight::from_parts(256_282_000, 0) - .saturating_add(Weight::from_parts(0, 2528)) + // Estimated: `3518` + // Minimum execution time: 17_492_000 picoseconds. + Weight::from_parts(17_789_000, 0) + .saturating_add(Weight::from_parts(0, 3518)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Democracy LowestUnbaked (r:1 w:1) - /// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumCount (r:1 w:0) - /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:0) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::LowestUnbaked` (r:1 w:1) + /// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumCount` (r:1 w:0) + /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn on_initialize_base(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `177 + r * (125 ±0)` - // Estimated: `998 + r * (2684 ±0)` - // Minimum execution time: 97_106_000 picoseconds. - Weight::from_parts(135_372_515, 0) - .saturating_add(Weight::from_parts(0, 998)) - // Standard Error: 50_648 - .saturating_add(Weight::from_parts(24_677_405, 0).saturating_mul(r.into())) + // Measured: `177 + r * (94 ±0)` + // Estimated: `1489 + r * (2684 ±0)` + // Minimum execution time: 5_669_000 picoseconds. + Weight::from_parts(9_140_297, 0) + .saturating_add(Weight::from_parts(0, 1489)) + // Standard Error: 6_433 + .saturating_add(Weight::from_parts(2_864_062, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy LowestUnbaked (r:1 w:1) - /// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumCount (r:1 w:0) - /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy LastTabledWasExternal (r:1 w:0) - /// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Democracy NextExternal (r:1 w:0) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy PublicProps (r:1 w:0) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:0) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::LowestUnbaked` (r:1 w:1) + /// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumCount` (r:1 w:0) + /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::LastTabledWasExternal` (r:1 w:0) + /// Proof: `Democracy::LastTabledWasExternal` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Democracy::NextExternal` (r:1 w:0) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::PublicProps` (r:1 w:0) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn on_initialize_base_with_launch_period(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `177 + r * (125 ±0)` - // Estimated: `19318 + r * (2684 ±0)` - // Minimum execution time: 134_450_000 picoseconds. - Weight::from_parts(167_194_729, 0) - .saturating_add(Weight::from_parts(0, 19318)) - // Standard Error: 56_230 - .saturating_add(Weight::from_parts(24_558_645, 0).saturating_mul(r.into())) + // Measured: `177 + r * (94 ±0)` + // Estimated: `18187 + r * (2684 ±0)` + // Minimum execution time: 8_023_000 picoseconds. + Weight::from_parts(11_420_577, 0) + .saturating_add(Weight::from_parts(0, 18187)) + // Standard Error: 6_142 + .saturating_add(Weight::from_parts(2_872_698, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy VotingOf (r:3 w:3) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:99) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:3 w:3) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, 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(949), added: 3424, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn delegate(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1175 + r * (147 ±0)` - // Estimated: `22596 + r * (2684 ±0)` - // Minimum execution time: 443_753_000 picoseconds. - Weight::from_parts(491_067_445, 0) - .saturating_add(Weight::from_parts(0, 22596)) - // Standard Error: 64_544 - .saturating_add(Weight::from_parts(34_444_009, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `839 + r * (116 ±0)` + // Estimated: `19812 + r * (2684 ±0)` + // Minimum execution time: 42_174_000 picoseconds. + Weight::from_parts(48_592_626, 0) + .saturating_add(Weight::from_parts(0, 19812)) + // Standard Error: 6_937 + .saturating_add(Weight::from_parts(3_703_869, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy VotingOf (r:2 w:2) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:99) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:2 w:2) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn undelegate(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `498 + r * (147 ±0)` - // Estimated: `12548 + r * (2684 ±0)` - // Minimum execution time: 228_685_000 picoseconds. - Weight::from_parts(253_113_981, 0) - .saturating_add(Weight::from_parts(0, 12548)) - // Standard Error: 57_716 - .saturating_add(Weight::from_parts(34_357_704, 0).saturating_mul(r.into())) + // Measured: `434 + r * (116 ±0)` + // Estimated: `13538 + r * (2684 ±0)` + // Minimum execution time: 19_671_000 picoseconds. + Weight::from_parts(22_169_927, 0) + .saturating_add(Weight::from_parts(0, 13538)) + // Standard Error: 6_629 + .saturating_add(Weight::from_parts(3_658_094, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy PublicProps (r:0 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:0 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) fn clear_public_proposals() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 44_641_000 picoseconds. - Weight::from_parts(45_432_000, 0) + // Minimum execution time: 3_184_000 picoseconds. + Weight::from_parts(3_384_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn unlock_remove(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1174` - // Estimated: `12655` - // Minimum execution time: 284_595_000 picoseconds. - Weight::from_parts(327_755_779, 0) - .saturating_add(Weight::from_parts(0, 12655)) - // Standard Error: 11_210 - .saturating_add(Weight::from_parts(137_449, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `484` + // Estimated: `7264` + // Minimum execution time: 23_557_000 picoseconds. + Weight::from_parts(33_577_642, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 2_265 + .saturating_add(Weight::from_parts(35_028, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn unlock_set(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1175 + r * (22 ±0)` - // Estimated: `12655` - // Minimum execution time: 300_979_000 picoseconds. - Weight::from_parts(315_902_954, 0) - .saturating_add(Weight::from_parts(0, 12655)) - // Standard Error: 10_152 - .saturating_add(Weight::from_parts(156_423, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `485 + r * (22 ±0)` + // Estimated: `7264` + // Minimum execution time: 32_888_000 picoseconds. + Weight::from_parts(34_545_478, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 672 + .saturating_add(Weight::from_parts(62_263, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. fn remove_vote(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `736 + r * (26 ±0)` - // Estimated: `8958` - // Minimum execution time: 173_714_000 picoseconds. - Weight::from_parts(188_190_880, 0) - .saturating_add(Weight::from_parts(0, 8958)) - // Standard Error: 16_349 - .saturating_add(Weight::from_parts(316_832, 0).saturating_mul(r.into())) + // Measured: `673 + r * (26 ±0)` + // Estimated: `7264` + // Minimum execution time: 16_972_000 picoseconds. + Weight::from_parts(19_710_191, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 1_020 + .saturating_add(Weight::from_parts(68_259, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. fn remove_other_vote(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `736 + r * (26 ±0)` - // Estimated: `8958` - // Minimum execution time: 172_766_000 picoseconds. - Weight::from_parts(191_041_808, 0) - .saturating_add(Weight::from_parts(0, 8958)) - // Standard Error: 6_999 - .saturating_add(Weight::from_parts(243_399, 0).saturating_mul(r.into())) + // Measured: `673 + r * (26 ±0)` + // Estimated: `7264` + // Minimum execution time: 17_055_000 picoseconds. + Weight::from_parts(19_833_390, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 1_065 + .saturating_add(Weight::from_parts(71_214, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Democracy NextExternal (r:1 w:0) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Preimage StatusFor (r:1 w:0) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:0 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:0) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, 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: `Democracy::MetadataOf` (r:0 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn set_external_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `356` - // Estimated: `3193` - // Minimum execution time: 243_012_000 picoseconds. - Weight::from_parts(248_418_000, 0) - .saturating_add(Weight::from_parts(0, 3193)) - .saturating_add(T::DbWeight::get().reads(2)) + // Estimated: `3556` + // Minimum execution time: 18_410_000 picoseconds. + Weight::from_parts(18_909_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:1 w:0) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:0) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn clear_external_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `219` - // Estimated: `3155` - // Minimum execution time: 204_309_000 picoseconds. - Weight::from_parts(209_560_000, 0) - .saturating_add(Weight::from_parts(0, 3155)) + // Estimated: `3518` + // Minimum execution time: 15_561_000 picoseconds. + Weight::from_parts(15_873_000, 0) + .saturating_add(Weight::from_parts(0, 3518)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy PublicProps (r:1 w:0) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Preimage StatusFor (r:1 w:0) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:0 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:0) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, 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: `Democracy::MetadataOf` (r:0 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn set_proposal_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `4919` - // Estimated: `19763` - // Minimum execution time: 347_393_000 picoseconds. - Weight::from_parts(361_504_000, 0) - .saturating_add(Weight::from_parts(0, 19763)) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `4888` + // Estimated: `18187` + // Minimum execution time: 38_177_000 picoseconds. + Weight::from_parts(38_935_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy PublicProps (r:1 w:0) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:0) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn clear_proposal_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `4786` - // Estimated: `19725` - // Minimum execution time: 321_543_000 picoseconds. - Weight::from_parts(334_617_000, 0) - .saturating_add(Weight::from_parts(0, 19725)) + // Measured: `4755` + // Estimated: `18187` + // Minimum execution time: 34_101_000 picoseconds. + Weight::from_parts(34_544_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .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: Democracy MetadataOf (r:0 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, 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: `Democracy::MetadataOf` (r:0 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn set_referendum_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `211` - // Estimated: `2566` - // Minimum execution time: 167_747_000 picoseconds. - Weight::from_parts(174_889_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 15_654_000 picoseconds. + Weight::from_parts(15_946_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:0) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:0) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn clear_referendum_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `239` - // Estimated: `5212` - // Minimum execution time: 220_441_000 picoseconds. - Weight::from_parts(224_200_000, 0) - .saturating_add(Weight::from_parts(0, 5212)) + // Estimated: `3674` + // Minimum execution time: 17_949_000 picoseconds. + Weight::from_parts(18_489_000, 0) + .saturating_add(Weight::from_parts(0, 3674)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -510,7 +543,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 23413 + > 18187 ); } #[test] @@ -522,7 +555,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5705 + > 6695 ); } #[test] @@ -534,7 +567,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12732 + > 7264 ); } #[test] @@ -546,7 +579,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12732 + > 7264 ); } #[test] @@ -558,7 +591,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7720 + > 3674 ); } #[test] @@ -570,7 +603,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 39011 + > 18187 ); } #[test] @@ -582,7 +615,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 6344 + > 6707 ); } #[test] @@ -594,7 +627,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3654 + > 3518 ); } #[test] @@ -606,7 +639,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8872 + > 6707 ); } #[test] @@ -618,7 +651,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 30644 + > 18187 ); } #[test] @@ -630,7 +663,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2528 + > 3518 ); } #[test] @@ -642,7 +675,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 998 + > 1489 ); } #[test] @@ -654,7 +687,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 19318 + > 18187 ); } #[test] @@ -666,7 +699,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 22596 + > 19812 ); } #[test] @@ -678,7 +711,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12548 + > 13538 ); } #[test] @@ -690,7 +723,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12655 + > 7264 ); } #[test] @@ -702,7 +735,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12655 + > 7264 ); } #[test] @@ -714,7 +747,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8958 + > 7264 ); } #[test] @@ -726,7 +759,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8958 + > 7264 ); } #[test] @@ -738,7 +771,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3193 + > 3556 ); } #[test] @@ -750,7 +783,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3155 + > 3518 ); } #[test] @@ -762,7 +795,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 19763 + > 18187 ); } #[test] @@ -774,7 +807,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 19725 + > 18187 ); } #[test] @@ -786,7 +819,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -798,7 +831,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5212 + > 3674 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_deposit_storage.rs b/runtimes/peregrine/src/weights/pallet_deposit_storage.rs index 68cbf24d1..78778127e 100644 --- a/runtimes/peregrine/src/weights/pallet_deposit_storage.rs +++ b/runtimes/peregrine/src/weights/pallet_deposit_storage.rs @@ -18,8 +18,8 @@ //! Autogenerated weights for `pallet_deposit_storage` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 @@ -50,20 +50,20 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl pallet_deposit_storage::WeightInfo for WeightInfo { /// Storage: `DepositStorage::Deposits` (r:1 w:1) - /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(119), added: 2594, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(949), added: 3424, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) /// Storage: `DipProvider::IdentityCommitments` (r:1 w:1) - /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`) fn reclaim_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `888` - // Estimated: `4414` - // Minimum execution time: 58_537_000 picoseconds. - Weight::from_parts(59_466_000, 0) - .saturating_add(Weight::from_parts(0, 4414)) + // Measured: `577` + // Estimated: `3658` + // Minimum execution time: 49_261_000 picoseconds. + Weight::from_parts(49_729_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -80,7 +80,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4414 + > 3658 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_did_lookup.rs b/runtimes/peregrine/src/weights/pallet_did_lookup.rs index a9714523a..fdd0b6298 100644 --- a/runtimes/peregrine/src/weights/pallet_did_lookup.rs +++ b/runtimes/peregrine/src/weights/pallet_did_lookup.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_did_lookup` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-did-lookup // --extrinsic=* @@ -52,145 +49,181 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_did_lookup`. pub struct WeightInfo(PhantomData); impl pallet_did_lookup::WeightInfo for WeightInfo { - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:2) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_account_multisig_sr25519() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 70_942_000 picoseconds. - Weight::from_parts(70_942_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 127_399_000 picoseconds. + Weight::from_parts(128_343_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:2) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_account_multisig_ed25519() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 66_569_000 picoseconds. - Weight::from_parts(66_569_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 140_373_000 picoseconds. + Weight::from_parts(142_236_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:2) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_account_multisig_ecdsa() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 71_977_000 picoseconds. - Weight::from_parts(71_977_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 131_340_000 picoseconds. + Weight::from_parts(133_723_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:2) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_eth_account() -> Weight { // Proof Size summary in bytes: - // Measured: `437` - // Estimated: `5211` - // Minimum execution time: 68_618_000 picoseconds. - Weight::from_parts(68_618_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `449` + // Estimated: `3658` + // Minimum execution time: 132_297_000 picoseconds. + Weight::from_parts(134_225_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:2) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_sender() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 33_964_000 picoseconds. - Weight::from_parts(33_964_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 82_978_000 picoseconds. + Weight::from_parts(85_676_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:1) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:1) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) fn remove_sender_association() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 20_715_000 picoseconds. - Weight::from_parts(20_715_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `540` + // Estimated: `3658` + // Minimum execution time: 47_480_000 picoseconds. + Weight::from_parts(48_148_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:0 w:1) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:1) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) fn remove_account_association() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 19_749_000 picoseconds. - Weight::from_parts(19_749_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `540` + // Estimated: `3658` + // Minimum execution time: 48_550_000 picoseconds. + Weight::from_parts(49_242_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `862` - // Estimated: `7818` - // Minimum execution time: 27_037_000 picoseconds. - Weight::from_parts(27_037_000, 0) - .saturating_add(Weight::from_parts(0, 7818)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `647` + // Estimated: `6326` + // Minimum execution time: 77_392_000 picoseconds. + Weight::from_parts(79_999_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: DidLookup ConnectedDids (r:1 w:1) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `449` - // Estimated: `5211` - // Minimum execution time: 23_615_000 picoseconds. - Weight::from_parts(23_615_000, 0) - .saturating_add(Weight::from_parts(0, 5211)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `540` + // Estimated: `3658` + // Minimum execution time: 71_171_000 picoseconds. + Weight::from_parts(72_100_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } } @@ -205,7 +238,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -217,7 +250,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -229,7 +262,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -241,7 +274,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -253,7 +286,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -265,7 +298,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -277,7 +310,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 + > 3658 ); } #[test] @@ -289,7 +322,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7818 + > 6326 ); } #[test] @@ -301,19 +334,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5211 - ); - } - #[test] - fn test_migrate() { - assert!( - ::BlockWeights::get() - .per_class - .get(frame_support::dispatch::DispatchClass::Normal) - .max_extrinsic - .unwrap_or_else(::max_value) - .proof_size() - > 500158 + > 3658 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_dip_provider.rs b/runtimes/peregrine/src/weights/pallet_dip_provider.rs index 31f86bfa6..ef232a603 100644 --- a/runtimes/peregrine/src/weights/pallet_dip_provider.rs +++ b/runtimes/peregrine/src/weights/pallet_dip_provider.rs @@ -1,5 +1,5 @@ // KILT Blockchain – https://botlabs.org -// Copyright (C) 2019-2023 BOTLabs GmbH +// Copyright (C) 2019-2024 BOTLabs GmbH // The KILT Blockchain is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -18,8 +18,8 @@ //! Autogenerated weights for `pallet_dip_provider` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 @@ -60,38 +60,38 @@ impl pallet_dip_provider::WeightInfo for WeightInfo /// Storage: `DidLookup::ConnectedAccounts` (r:11 w:0) /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) /// Storage: `DipProvider::IdentityCommitments` (r:1 w:1) - /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`) /// Storage: `DepositStorage::Deposits` (r:1 w:1) - /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(119), added: 2594, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(949), added: 3424, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn commit_identity() -> Weight { // Proof Size summary in bytes: - // Measured: `3427` + // Measured: `2990` // Estimated: `29282` - // Minimum execution time: 213_866_000 picoseconds. - Weight::from_parts(219_534_000, 0) + // Minimum execution time: 387_079_000 picoseconds. + Weight::from_parts(396_068_000, 0) .saturating_add(Weight::from_parts(0, 29282)) .saturating_add(T::DbWeight::get().reads(19)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `DipProvider::IdentityCommitments` (r:1 w:1) - /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`) /// Storage: `DepositStorage::Deposits` (r:1 w:1) - /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(119), added: 2594, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(949), added: 3424, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn delete_identity_commitment() -> Weight { // Proof Size summary in bytes: - // Measured: `1083` - // Estimated: `4414` - // Minimum execution time: 61_294_000 picoseconds. - Weight::from_parts(61_873_000, 0) - .saturating_add(Weight::from_parts(0, 4414)) + // Measured: `671` + // Estimated: `3658` + // Minimum execution time: 54_311_000 picoseconds. + Weight::from_parts(55_995_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -120,7 +120,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4414 + > 3658 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_dmp_queue.rs b/runtimes/peregrine/src/weights/pallet_dmp_queue.rs new file mode 100644 index 000000000..c1b5df95b --- /dev/null +++ b/runtimes/peregrine/src/weights/pallet_dmp_queue.rs @@ -0,0 +1,182 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +//! Autogenerated weights for `cumulus_pallet_dmp_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/debug/kilt-parachain +// benchmark +// pallet +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --chain=dev +// --pallet +// cumulus-pallet-dmp-queue +// --extrinsic=* +// --output=./spend.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `cumulus_pallet_dmp_queue`. +pub struct WeightInfo(PhantomData); +impl cumulus_pallet_dmp_queue::WeightInfo for WeightInfo { + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (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: `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: `65764` + // Estimated: `69229` + // Minimum execution time: 698_233_000 picoseconds. + Weight::from_parts(701_118_000, 0) + .saturating_add(Weight::from_parts(0, 69229)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1) + fn on_idle_large_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65660` + // Estimated: `69125` + // Minimum execution time: 487_148_000 picoseconds. + Weight::from_parts(511_739_000, 0) + .saturating_add(Weight::from_parts(0, 69125)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (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: `MessageQueue::Pages` (r:0 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn on_idle_overweight_good_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65794` + // Estimated: `69259` + // Minimum execution time: 753_994_000 picoseconds. + Weight::from_parts(757_367_000, 0) + .saturating_add(Weight::from_parts(0, 69259)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1) + fn on_idle_overweight_large_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65690` + // Estimated: `69155` + // Minimum execution time: 532_680_000 picoseconds. + Weight::from_parts(539_061_000, 0) + .saturating_add(Weight::from_parts(0, 69155)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_on_idle_good_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69229 + ); + } + #[test] + fn test_on_idle_large_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69125 + ); + } + #[test] + fn test_on_idle_overweight_good_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69259 + ); + } + #[test] + fn test_on_idle_overweight_large_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69155 + ); + } +} diff --git a/runtimes/peregrine/src/weights/pallet_indices.rs b/runtimes/peregrine/src/weights/pallet_indices.rs index 9bbe58fc4..fe625e87d 100644 --- a/runtimes/peregrine/src/weights/pallet_indices.rs +++ b/runtimes/peregrine/src/weights/pallet_indices.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_indices` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-indices // --extrinsic=* @@ -52,67 +49,67 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_indices`. pub struct WeightInfo(PhantomData); impl pallet_indices::WeightInfo for WeightInfo { - /// Storage: Indices Accounts (r:1 w:1) - /// Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn claim() -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `2548` - // Minimum execution time: 21_287_000 picoseconds. - Weight::from_parts(21_287_000, 0) - .saturating_add(Weight::from_parts(0, 2548)) + // Estimated: `3538` + // Minimum execution time: 21_558_000 picoseconds. + Weight::from_parts(21_795_000, 0) + .saturating_add(Weight::from_parts(0, 3538)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Indices Accounts (r:1 w:1) - /// Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `615` - // Estimated: `5155` - // Minimum execution time: 22_558_000 picoseconds. - Weight::from_parts(22_558_000, 0) - .saturating_add(Weight::from_parts(0, 5155)) + // Measured: `249` + // Estimated: `3597` + // Minimum execution time: 32_735_000 picoseconds. + Weight::from_parts(33_311_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Indices Accounts (r:1 w:1) - /// Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn free() -> Weight { // Proof Size summary in bytes: - // Measured: `174` - // Estimated: `2548` - // Minimum execution time: 17_823_000 picoseconds. - Weight::from_parts(17_823_000, 0) - .saturating_add(Weight::from_parts(0, 2548)) + // Measured: `142` + // Estimated: `3538` + // Minimum execution time: 21_836_000 picoseconds. + Weight::from_parts(22_176_000, 0) + .saturating_add(Weight::from_parts(0, 3538)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Indices Accounts (r:1 w:1) - /// Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `516` - // Estimated: `5155` - // Minimum execution time: 37_762_000 picoseconds. - Weight::from_parts(37_762_000, 0) - .saturating_add(Weight::from_parts(0, 5155)) + // Measured: `249` + // Estimated: `3597` + // Minimum execution time: 24_857_000 picoseconds. + Weight::from_parts(25_341_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Indices Accounts (r:1 w:1) - /// Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn freeze() -> Weight { // Proof Size summary in bytes: - // Measured: `174` - // Estimated: `2548` - // Minimum execution time: 33_623_000 picoseconds. - Weight::from_parts(33_623_000, 0) - .saturating_add(Weight::from_parts(0, 2548)) + // Measured: `142` + // Estimated: `3538` + // Minimum execution time: 22_785_000 picoseconds. + Weight::from_parts(23_367_000, 0) + .saturating_add(Weight::from_parts(0, 3538)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -129,7 +126,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2548 + > 3538 ); } #[test] @@ -141,7 +138,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5155 + > 3597 ); } #[test] @@ -153,7 +150,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2548 + > 3538 ); } #[test] @@ -165,7 +162,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5155 + > 3597 ); } #[test] @@ -177,7 +174,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2548 + > 3538 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_inflation.rs b/runtimes/peregrine/src/weights/pallet_inflation.rs index 22d62a693..ff7b59e96 100644 --- a/runtimes/peregrine/src/weights/pallet_inflation.rs +++ b/runtimes/peregrine/src/weights/pallet_inflation.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_inflation` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-inflation // --extrinsic=* @@ -52,15 +49,15 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_inflation`. pub struct WeightInfo(PhantomData); impl pallet_inflation::WeightInfo for WeightInfo { - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn on_initialize_mint_to_treasury() -> Weight { // Proof Size summary in bytes: - // Measured: `474` - // Estimated: `2607` - // Minimum execution time: 19_837_000 picoseconds. - Weight::from_parts(19_837_000, 0) - .saturating_add(Weight::from_parts(0, 2607)) + // Measured: `107` + // Estimated: `3597` + // Minimum execution time: 19_289_000 picoseconds. + Weight::from_parts(19_441_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -68,8 +65,8 @@ impl pallet_inflation::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_097_000 picoseconds. - Weight::from_parts(4_097_000, 0) + // Minimum execution time: 222_000 picoseconds. + Weight::from_parts(228_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } @@ -85,7 +82,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2607 + > 3597 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_membership.rs b/runtimes/peregrine/src/weights/pallet_membership.rs index 615eaf640..951c30ae9 100644 --- a/runtimes/peregrine/src/weights/pallet_membership.rs +++ b/runtimes/peregrine/src/weights/pallet_membership.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_membership` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-membership // --extrinsic=* @@ -52,138 +49,158 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_membership`. pub struct WeightInfo(PhantomData); impl pallet_membership::WeightInfo for WeightInfo { - /// Storage: TechnicalMembership Members (r:1 w:1) - /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Proposals (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Members (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[1, 99]`. - fn add_member(_m: u32, ) -> Weight { + fn add_member(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `163 + m * (64 ±0)` - // Estimated: `23704` - // Minimum execution time: 16_341_000 picoseconds. - Weight::from_parts(19_653_000, 0) - .saturating_add(Weight::from_parts(0, 23704)) + // Measured: `102 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 13_140_000 picoseconds. + Weight::from_parts(13_601_267, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 269 + .saturating_add(Weight::from_parts(23_922, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - /// Storage: TechnicalMembership Members (r:1 w:1) - /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Proposals (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalMembership Prime (r:1 w:0) - /// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Members (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:0) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[2, 100]`. - fn remove_member(_m: u32, ) -> Weight { + fn remove_member(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `269 + m * (64 ±0)` - // Estimated: `24735` - // Minimum execution time: 30_210_000 picoseconds. - Weight::from_parts(32_064_000, 0) - .saturating_add(Weight::from_parts(0, 24735)) + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_032_000 picoseconds. + Weight::from_parts(15_408_780, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 2_360 + .saturating_add(Weight::from_parts(30_552, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - /// Storage: TechnicalMembership Members (r:1 w:1) - /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Proposals (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalMembership Prime (r:1 w:0) - /// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Members (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:0) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[2, 100]`. - fn swap_member(_m: u32, ) -> Weight { + fn swap_member(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `269 + m * (64 ±0)` - // Estimated: `24735` - // Minimum execution time: 29_170_000 picoseconds. - Weight::from_parts(32_020_000, 0) - .saturating_add(Weight::from_parts(0, 24735)) + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_260_000 picoseconds. + Weight::from_parts(15_919_548, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 303 + .saturating_add(Weight::from_parts(35_862, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - /// Storage: TechnicalMembership Members (r:1 w:1) - /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Proposals (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalMembership Prime (r:1 w:0) - /// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Members (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:0) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[1, 100]`. - fn reset_member(_m: u32, ) -> Weight { + fn reset_member(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `267 + m * (64 ±0)` - // Estimated: `24735` - // Minimum execution time: 26_411_000 picoseconds. - Weight::from_parts(45_439_000, 0) - .saturating_add(Weight::from_parts(0, 24735)) + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 14_309_000 picoseconds. + Weight::from_parts(16_116_348, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 2_958 + .saturating_add(Weight::from_parts(150_504, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - /// Storage: TechnicalMembership Members (r:1 w:1) - /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Proposals (r:1 w:0) - /// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalMembership Prime (r:1 w:1) - /// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Members (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:1) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[1, 100]`. - fn change_key(_m: u32, ) -> Weight { + fn change_key(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `267 + m * (64 ±0)` - // Estimated: `24735` - // Minimum execution time: 25_863_000 picoseconds. - Weight::from_parts(31_572_000, 0) - .saturating_add(Weight::from_parts(0, 24735)) + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_169_000 picoseconds. + Weight::from_parts(16_416_917, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 424 + .saturating_add(Weight::from_parts(36_041, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - /// Storage: TechnicalMembership Members (r:1 w:0) - /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: TechnicalMembership Prime (r:0 w:1) - /// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:0) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalMembership::Prime` (r:0 w:1) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[1, 100]`. - fn set_prime(_m: u32, ) -> Weight { + fn set_prime(m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `62 + m * (32 ±0)` - // Estimated: `6962` - // Minimum execution time: 12_185_000 picoseconds. - Weight::from_parts(12_614_000, 0) - .saturating_add(Weight::from_parts(0, 6962)) + // Measured: `32 + m * (32 ±0)` + // Estimated: `4687 + m * (32 ±0)` + // Minimum execution time: 7_126_000 picoseconds. + Weight::from_parts(7_475_376, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 1_232 + .saturating_add(Weight::from_parts(14_898, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) } - /// Storage: TechnicalMembership Prime (r:0 w:1) - /// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: TechnicalCommittee Prime (r:0 w:1) - /// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Prime` (r:0 w:1) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `m` is `[1, 100]`. - fn clear_prime(_m: u32, ) -> Weight { + fn clear_prime(m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_459_000 picoseconds. - Weight::from_parts(8_880_000, 0) + // Minimum execution time: 2_640_000 picoseconds. + Weight::from_parts(2_874_782, 0) .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 419 + .saturating_add(Weight::from_parts(1_068, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().writes(2)) } } @@ -199,7 +216,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 23704 + > 4687 ); } #[test] @@ -211,7 +228,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 24735 + > 4687 ); } #[test] @@ -223,7 +240,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 24735 + > 4687 ); } #[test] @@ -235,7 +252,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 24735 + > 4687 ); } #[test] @@ -247,7 +264,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 24735 + > 4687 ); } #[test] @@ -259,7 +276,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 6962 + > 4687 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_message_queue.rs b/runtimes/peregrine/src/weights/pallet_message_queue.rs new file mode 100644 index 000000000..4e59a4d55 --- /dev/null +++ b/runtimes/peregrine/src/weights/pallet_message_queue.rs @@ -0,0 +1,297 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +//! Autogenerated weights for `pallet_message_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/kilt-parachain +// benchmark +// pallet +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 +// --steps=50 +// --repeat=20 +// --chain=dev +// --pallet=pallet_message_queue +// --extrinsic=* +// --output=./runtimes/peregrine/src/weights/pallet_message_queue.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::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: `327` + // Estimated: `6044` + // Minimum execution time: 12_180_000 picoseconds. + Weight::from_parts(12_729_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: `322` + // Estimated: `6044` + // Minimum execution time: 11_515_000 picoseconds. + Weight::from_parts(12_000_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: `109` + // Estimated: `3517` + // Minimum execution time: 5_016_000 picoseconds. + Weight::from_parts(5_341_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: `176` + // Estimated: `69050` + // Minimum execution time: 6_967_000 picoseconds. + Weight::from_parts(7_226_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: `176` + // Estimated: `69050` + // Minimum execution time: 6_923_000 picoseconds. + Weight::from_parts(7_168_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: 165_732_000 picoseconds. + Weight::from_parts(166_843_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: `275` + // Estimated: `3517` + // Minimum execution time: 7_412_000 picoseconds. + Weight::from_parts(7_629_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: `65771` + // Estimated: `69050` + // Minimum execution time: 58_384_000 picoseconds. + Weight::from_parts(59_021_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: `65771` + // Estimated: `69050` + // Minimum execution time: 75_498_000 picoseconds. + Weight::from_parts(76_117_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: `65771` + // Estimated: `69050` + // Minimum execution time: 118_738_000 picoseconds. + Weight::from_parts(120_535_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_ready_ring_knit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6044 + ); + } + #[test] + fn test_ready_ring_unknit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6044 + ); + } + #[test] + fn test_service_queue_base() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3517 + ); + } + #[test] + fn test_service_page_base_completion() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_service_page_base_no_completion() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_bump_service_head() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3517 + ); + } + #[test] + fn test_reap_page() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_execute_overweight_page_removed() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_execute_overweight_page_updated() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } +} diff --git a/runtimes/peregrine/src/weights/pallet_migration.rs b/runtimes/peregrine/src/weights/pallet_migration.rs index 09279f184..308415746 100644 --- a/runtimes/peregrine/src/weights/pallet_migration.rs +++ b/runtimes/peregrine/src/weights/pallet_migration.rs @@ -1,26 +1,43 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org //! Autogenerated weights for `pallet_migration` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=dev // --pallet=pallet-migration // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./runtimes/peregrine/src/weights/pallet-migration.rs -// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/pallet_migration.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -32,83 +49,83 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_migration`. pub struct WeightInfo(PhantomData); impl pallet_migration::WeightInfo for WeightInfo { - /// Storage: Migration MigratedKeys (r:1 w:1) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Attestation Attestations (r:1 w:0) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Attestation::Attestations` (r:1 w:0) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn attestation_migration_weight() -> Weight { // Proof Size summary in bytes: - // Measured: `846` - // Estimated: `4414` - // Minimum execution time: 70_054_000 picoseconds. - Weight::from_parts(70_819_000, 0) - .saturating_add(Weight::from_parts(0, 4414)) + // Measured: `307` + // Estimated: `3660` + // Minimum execution time: 59_342_000 picoseconds. + Weight::from_parts(60_044_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn delegation_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3513` - // Minimum execution time: 19_480_000 picoseconds. - Weight::from_parts(19_942_000, 0) + // Minimum execution time: 15_681_000 picoseconds. + Weight::from_parts(16_061_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Migration MigratedKeys (r:1 w:1) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn did_migration_weight() -> Weight { // Proof Size summary in bytes: - // Measured: `1002` + // Measured: `463` // Estimated: `5777` - // Minimum execution time: 71_772_000 picoseconds. - Weight::from_parts(72_690_000, 0) + // Minimum execution time: 61_231_000 picoseconds. + Weight::from_parts(62_291_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn did_lookup_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `78` // Estimated: `3513` - // Minimum execution time: 18_399_000 picoseconds. - Weight::from_parts(18_644_000, 0) + // Minimum execution time: 14_416_000 picoseconds. + Weight::from_parts(14_634_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn w3n_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `78` // Estimated: `3513` - // Minimum execution time: 18_150_000 picoseconds. - Weight::from_parts(18_520_000, 0) + // Minimum execution time: 14_492_000 picoseconds. + Weight::from_parts(14_920_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn public_credentials_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `78` // Estimated: `3513` - // Minimum execution time: 22_564_000 picoseconds. - Weight::from_parts(23_069_000, 0) + // Minimum execution time: 18_474_000 picoseconds. + Weight::from_parts(18_680_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -125,7 +142,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4414 + > 3660 ); } #[test] diff --git a/runtimes/peregrine/src/weights/pallet_preimage.rs b/runtimes/peregrine/src/weights/pallet_preimage.rs index e4a1d616a..97bf171cd 100644 --- a/runtimes/peregrine/src/weights/pallet_preimage.rs +++ b/runtimes/peregrine/src/weights/pallet_preimage.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_preimage` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-preimage // --extrinsic=* @@ -52,165 +49,221 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_preimage`. pub struct WeightInfo(PhantomData); impl pallet_preimage::WeightInfo for WeightInfo { - /// Storage: Preimage StatusFor (r:1 w:1) - /// Proof: Preimage StatusFor (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) + /// 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(193), added: 2668, 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 { + fn note_preimage(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `247` - // Estimated: `2566` - // Minimum execution time: 37_510_000 picoseconds. - Weight::from_parts(9_667_590_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `109` + // Estimated: `3658` + // Minimum execution time: 45_288_000 picoseconds. + Weight::from_parts(45_876_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + // Standard Error: 7 + .saturating_add(Weight::from_parts(2_462, 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:1) - /// Proof: Preimage StatusFor (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) + /// 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 { + fn note_requested_preimage(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `173` - // Estimated: `2566` - // Minimum execution time: 24_107_000 picoseconds. - Weight::from_parts(8_341_880_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 15_921_000 picoseconds. + Weight::from_parts(16_050_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 7 + .saturating_add(Weight::from_parts(2_465, 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:1) - /// Proof: Preimage StatusFor (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) + /// 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 { + fn note_no_deposit_preimage(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `173` - // Estimated: `2566` - // Minimum execution time: 18_398_000 picoseconds. - Weight::from_parts(7_967_794_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 15_798_000 picoseconds. + Weight::from_parts(15_954_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 8 + .saturating_add(Weight::from_parts(2_417, 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:1) - /// Proof: Preimage StatusFor (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) + /// 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(193), added: 2668, 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: `425` - // Estimated: `2566` - // Minimum execution time: 29_828_000 picoseconds. - Weight::from_parts(29_828_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `311` + // Estimated: `3658` + // Minimum execution time: 50_447_000 picoseconds. + Weight::from_parts(53_356_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Preimage StatusFor (r:1 w:1) - /// Proof: Preimage StatusFor (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) + /// 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: `2566` - // Minimum execution time: 34_777_000 picoseconds. - Weight::from_parts(34_777_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 25_212_000 picoseconds. + Weight::from_parts(26_852_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:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_preimage() -> Weight { // Proof Size summary in bytes: - // Measured: `287` - // Estimated: `2566` - // Minimum execution time: 18_194_000 picoseconds. - Weight::from_parts(18_194_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Measured: `255` + // Estimated: `3556` + // Minimum execution time: 21_064_000 picoseconds. + Weight::from_parts(22_145_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:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_no_deposit_preimage() -> Weight { // Proof Size summary in bytes: // Measured: `211` - // Estimated: `2566` - // Minimum execution time: 13_529_000 picoseconds. - Weight::from_parts(13_529_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 15_869_000 picoseconds. + Weight::from_parts(17_058_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:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_unnoted_preimage() -> Weight { // Proof Size summary in bytes: // Measured: `109` - // Estimated: `2566` - // Minimum execution time: 16_630_000 picoseconds. - Weight::from_parts(16_630_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 13_987_000 picoseconds. + Weight::from_parts(14_660_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:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_requested_preimage() -> Weight { // Proof Size summary in bytes: // Measured: `173` - // Estimated: `2566` - // Minimum execution time: 11_620_000 picoseconds. - Weight::from_parts(11_620_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 10_379_000 picoseconds. + Weight::from_parts(10_800_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:1) - /// Proof: Preimage StatusFor (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) + /// 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: `2566` - // Minimum execution time: 17_439_000 picoseconds. - Weight::from_parts(17_439_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 23_345_000 picoseconds. + Weight::from_parts(24_350_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:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn unrequest_unnoted_preimage() -> Weight { // Proof Size summary in bytes: // Measured: `173` - // Estimated: `2566` - // Minimum execution time: 7_727_000 picoseconds. - Weight::from_parts(7_727_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 10_686_000 picoseconds. + Weight::from_parts(11_227_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:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn unrequest_multi_referenced_preimage() -> Weight { // Proof Size summary in bytes: // Measured: `173` - // Estimated: `2566` - // Minimum execution time: 13_407_000 picoseconds. - Weight::from_parts(13_407_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 10_760_000 picoseconds. + Weight::from_parts(11_255_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(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1023 w:1023) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 * (231 ±0)` + // Estimated: `990 + n * (2668 ±0)` + // Minimum execution time: 50_302_000 picoseconds. + Weight::from_parts(50_768_000, 0) + .saturating_add(Weight::from_parts(0, 990)) + // Standard Error: 31_039 + .saturating_add(Weight::from_parts(46_821_516, 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, 2668).saturating_mul(n.into())) + } } #[cfg(test)] @@ -224,7 +277,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3658 ); } #[test] @@ -236,7 +289,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -248,7 +301,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -260,7 +313,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3658 ); } #[test] @@ -272,7 +325,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -284,7 +337,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -296,7 +349,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -308,7 +361,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -320,7 +373,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -332,7 +385,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -344,7 +397,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -356,7 +409,19 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 + ); + } + #[test] + fn test_ensure_updated() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 990 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_proxy.rs b/runtimes/peregrine/src/weights/pallet_proxy.rs index b4da7cde9..2214c1f4a 100644 --- a/runtimes/peregrine/src/weights/pallet_proxy.rs +++ b/runtimes/peregrine/src/weights/pallet_proxy.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_proxy` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-proxy // --extrinsic=* @@ -52,160 +49,170 @@ use sp_std::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(467), added: 2942, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 9]`. - fn proxy(_p: u32, ) -> Weight { + fn proxy(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `157 + p * (41 ±0)` - // Estimated: `2942` - // Minimum execution time: 12_704_000 picoseconds. - Weight::from_parts(29_948_000, 0) - .saturating_add(Weight::from_parts(0, 2942)) + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 13_943_000 picoseconds. + Weight::from_parts(14_378_457, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 1_874 + .saturating_add(Weight::from_parts(55_778, 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(467), added: 2942, mode: MaxEncodedLen) - /// Storage: Proxy Announcements (r:1 w:1) - /// Proof: Proxy Announcements (max_values: None, max_size: Some(777), added: 3252, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 9]`. /// The range of component `p` is `[1, 9]`. fn proxy_announced(a: u32, _p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1030 + a * (72 ±0) + p * (36 ±0)` - // Estimated: `8801` - // Minimum execution time: 24_956_000 picoseconds. - Weight::from_parts(27_782_000, 0) - .saturating_add(Weight::from_parts(0, 8801)) - // Standard Error: 135_484 - .saturating_add(Weight::from_parts(91_444, 0).saturating_mul(a.into())) + // Measured: `425 + a * (72 ±0) + p * (41 ±0)` + // Estimated: `4242` + // Minimum execution time: 33_688_000 picoseconds. + Weight::from_parts(34_507_579, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_792 + .saturating_add(Weight::from_parts(148_008, 0).saturating_mul(a.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(777), added: 3252, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 9]`. /// The range of component `p` is `[1, 9]`. - fn remove_announcement(a: u32, p: u32, ) -> Weight { + fn remove_announcement(a: u32, _p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `914 + a * (72 ±0)` - // Estimated: `5859` - // Minimum execution time: 15_305_000 picoseconds. - Weight::from_parts(6_257_750, 0) - .saturating_add(Weight::from_parts(0, 5859)) - // Standard Error: 1_442_028 - .saturating_add(Weight::from_parts(1_233_222, 0).saturating_mul(a.into())) - // Standard Error: 1_622_282 - .saturating_add(Weight::from_parts(1_005_250, 0).saturating_mul(p.into())) + // Measured: `340 + a * (72 ±0)` + // Estimated: `4242` + // Minimum execution time: 22_974_000 picoseconds. + Weight::from_parts(24_075_448, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_329 + .saturating_add(Weight::from_parts(146_622, 0).saturating_mul(a.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(777), added: 3252, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 9]`. /// The range of component `p` is `[1, 9]`. - fn reject_announcement(a: u32, p: u32, ) -> Weight { + fn reject_announcement(a: u32, _p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `914 + a * (72 ±0)` - // Estimated: `5859` - // Minimum execution time: 16_251_000 picoseconds. - Weight::from_parts(15_515_250, 0) - .saturating_add(Weight::from_parts(0, 5859)) - // Standard Error: 226_898 - .saturating_add(Weight::from_parts(167_444, 0).saturating_mul(a.into())) - // Standard Error: 255_260 - .saturating_add(Weight::from_parts(81_750, 0).saturating_mul(p.into())) + // Measured: `340 + a * (72 ±0)` + // Estimated: `4242` + // Minimum execution time: 23_257_000 picoseconds. + Weight::from_parts(24_232_121, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_311 + .saturating_add(Weight::from_parts(140_335, 0).saturating_mul(a.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(467), added: 2942, mode: MaxEncodedLen) - /// Storage: Proxy Announcements (r:1 w:1) - /// Proof: Proxy Announcements (max_values: None, max_size: Some(777), added: 3252, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 9]`. /// The range of component `p` is `[1, 9]`. - fn announce(a: u32, _p: u32, ) -> Weight { + fn announce(a: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `845 + a * (84 ±0) + p * (36 ±0)` - // Estimated: `8801` - // Minimum execution time: 21_923_000 picoseconds. - Weight::from_parts(23_891_750, 0) - .saturating_add(Weight::from_parts(0, 8801)) - // Standard Error: 29_829 - .saturating_add(Weight::from_parts(56_333, 0).saturating_mul(a.into())) + // Measured: `353 + a * (72 ±0) + p * (41 ±0)` + // Estimated: `4242` + // Minimum execution time: 29_784_000 picoseconds. + Weight::from_parts(30_592_025, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_674 + .saturating_add(Weight::from_parts(131_023, 0).saturating_mul(a.into())) + // Standard Error: 2_969 + .saturating_add(Weight::from_parts(5_881, 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(467), added: 2942, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 9]`. - fn add_proxy(_p: u32, ) -> Weight { + fn add_proxy(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `157 + p * (41 ±0)` - // Estimated: `2942` - // Minimum execution time: 16_324_000 picoseconds. - Weight::from_parts(17_500_000, 0) - .saturating_add(Weight::from_parts(0, 2942)) + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 22_387_000 picoseconds. + Weight::from_parts(22_881_097, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_537 + .saturating_add(Weight::from_parts(52_553, 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(467), added: 2942, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 9]`. - fn remove_proxy(_p: u32, ) -> Weight { + fn remove_proxy(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `157 + p * (41 ±0)` - // Estimated: `2942` - // Minimum execution time: 16_361_000 picoseconds. - Weight::from_parts(17_081_000, 0) - .saturating_add(Weight::from_parts(0, 2942)) + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 22_439_000 picoseconds. + Weight::from_parts(23_053_180, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_570 + .saturating_add(Weight::from_parts(66_474, 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(467), added: 2942, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 9]`. - fn remove_proxies(_p: u32, ) -> Weight { + fn remove_proxies(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `157 + p * (41 ±0)` - // Estimated: `2942` - // Minimum execution time: 13_751_000 picoseconds. - Weight::from_parts(13_935_000, 0) - .saturating_add(Weight::from_parts(0, 2942)) + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 20_043_000 picoseconds. + Weight::from_parts(20_684_137, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_488 + .saturating_add(Weight::from_parts(71_363, 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(467), added: 2942, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 9]`. - fn create_pure(_p: u32, ) -> Weight { + fn create_pure(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `139` - // Estimated: `2942` - // Minimum execution time: 17_166_000 picoseconds. - Weight::from_parts(17_340_000, 0) - .saturating_add(Weight::from_parts(0, 2942)) + // Estimated: `3932` + // Minimum execution time: 23_627_000 picoseconds. + Weight::from_parts(24_313_377, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_738 + .saturating_add(Weight::from_parts(6_103, 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(467), added: 2942, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:1) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) /// The range of component `p` is `[0, 8]`. - fn kill_pure(_p: u32, ) -> Weight { + fn kill_pure(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `199 + p * (41 ±0)` - // Estimated: `2942` - // Minimum execution time: 13_311_000 picoseconds. - Weight::from_parts(14_085_000, 0) - .saturating_add(Weight::from_parts(0, 2942)) + // Measured: `168 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 21_252_000 picoseconds. + Weight::from_parts(21_743_076, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_638 + .saturating_add(Weight::from_parts(72_099, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -222,7 +229,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2942 + > 3932 ); } #[test] @@ -234,7 +241,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8801 + > 4242 ); } #[test] @@ -246,7 +253,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5859 + > 4242 ); } #[test] @@ -258,7 +265,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5859 + > 4242 ); } #[test] @@ -270,7 +277,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8801 + > 4242 ); } #[test] @@ -282,7 +289,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2942 + > 3932 ); } #[test] @@ -294,7 +301,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2942 + > 3932 ); } #[test] @@ -306,7 +313,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2942 + > 3932 ); } #[test] @@ -318,7 +325,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2942 + > 3932 ); } #[test] @@ -330,7 +337,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2942 + > 3932 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_scheduler.rs b/runtimes/peregrine/src/weights/pallet_scheduler.rs index 706fbc100..2b7b3f950 100644 --- a/runtimes/peregrine/src/weights/pallet_scheduler.rs +++ b/runtimes/peregrine/src/weights/pallet_scheduler.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-scheduler // --extrinsic=* @@ -52,28 +49,30 @@ use sp_std::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(8), added: 503, mode: MaxEncodedLen) + /// Storage: `Scheduler::IncompleteSince` (r:1 w:1) + /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn service_agendas_base() -> Weight { // Proof Size summary in bytes: // Measured: `36` - // Estimated: `503` - // Minimum execution time: 7_880_000 picoseconds. - Weight::from_parts(7_880_000, 0) - .saturating_add(Weight::from_parts(0, 503)) + // Estimated: `1493` + // Minimum execution time: 2_691_000 picoseconds. + Weight::from_parts(2_800_000, 0) + .saturating_add(Weight::from_parts(0, 1493)) .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(39167), added: 41642, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 50]`. - fn service_agenda_base(_s: u32, ) -> Weight { + fn service_agenda_base(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4 + s * (183 ±0)` - // Estimated: `41642` - // Minimum execution time: 4_160_000 picoseconds. - Weight::from_parts(35_626_000, 0) - .saturating_add(Weight::from_parts(0, 41642)) + // Measured: `83 + s * (181 ±0)` + // Estimated: `42632` + // Minimum execution time: 3_303_000 picoseconds. + Weight::from_parts(7_206_829, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 2_466 + .saturating_add(Weight::from_parts(460_152, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -81,33 +80,38 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_369_000 picoseconds. - Weight::from_parts(7_369_000, 0) + // Minimum execution time: 3_464_000 picoseconds. + Weight::from_parts(3_715_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) - /// Storage: Preimage StatusFor (r:1 w:1) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) + /// Storage: `Preimage::PreimageFor` (r:1 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) + /// 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 { + fn service_task_fetched(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `271 + s * (1 ±0)` - // Estimated: `4199620` - // Minimum execution time: 19_383_000 picoseconds. - Weight::from_parts(4_550_103_000, 0) - .saturating_add(Weight::from_parts(0, 4199620)) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `246 + s * (1 ±0)` + // Estimated: `3711 + s * (1 ±0)` + // Minimum execution time: 18_427_000 picoseconds. + Weight::from_parts(18_762_000, 0) + .saturating_add(Weight::from_parts(0, 3711)) + // Standard Error: 17 + .saturating_add(Weight::from_parts(1_557, 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(52), added: 2527, mode: MaxEncodedLen) + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn service_task_named() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 19_263_000 picoseconds. - Weight::from_parts(19_263_000, 0) + // Minimum execution time: 5_194_000 picoseconds. + Weight::from_parts(5_374_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -115,81 +119,89 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 12_055_000 picoseconds. - Weight::from_parts(12_055_000, 0) + // Minimum execution time: 3_554_000 picoseconds. + Weight::from_parts(3_666_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: 3_727_000 picoseconds. - Weight::from_parts(3_727_000, 0) + // Minimum execution time: 2_477_000 picoseconds. + Weight::from_parts(2_617_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_786_000 picoseconds. - Weight::from_parts(2_786_000, 0) + // Minimum execution time: 2_507_000 picoseconds. + Weight::from_parts(2_604_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(39167), added: 41642, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 49]`. - fn schedule(_s: u32, ) -> Weight { + fn schedule(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4 + s * (183 ±0)` - // Estimated: `41642` - // Minimum execution time: 14_645_000 picoseconds. - Weight::from_parts(52_861_000, 0) - .saturating_add(Weight::from_parts(0, 41642)) + // Measured: `83 + s * (181 ±0)` + // Estimated: `42632` + // Minimum execution time: 10_931_000 picoseconds. + Weight::from_parts(15_038_764, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 2_079 + .saturating_add(Weight::from_parts(482_973, 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(39167), added: 41642, mode: MaxEncodedLen) - /// Storage: Scheduler Lookup (r:0 w:1) - /// Proof: Scheduler Lookup (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. - fn cancel(_s: u32, ) -> Weight { + fn cancel(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `115 + s * (181 ±0)` - // Estimated: `41642` - // Minimum execution time: 21_726_000 picoseconds. - Weight::from_parts(62_352_000, 0) - .saturating_add(Weight::from_parts(0, 41642)) + // Measured: `83 + s * (181 ±0)` + // Estimated: `42632` + // Minimum execution time: 16_383_000 picoseconds. + Weight::from_parts(16_256_564, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 786 + .saturating_add(Weight::from_parts(718_645, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Scheduler Lookup (r:1 w:1) - /// Proof: Scheduler Lookup (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Scheduler Agenda (r:1 w:1) - /// Proof: Scheduler Agenda (max_values: None, max_size: Some(39167), added: 41642, mode: MaxEncodedLen) + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 49]`. - fn schedule_named(_s: u32, ) -> Weight { + fn schedule_named(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4 + s * (196 ±0)` - // Estimated: `44169` - // Minimum execution time: 17_665_000 picoseconds. - Weight::from_parts(49_991_000, 0) - .saturating_add(Weight::from_parts(0, 44169)) + // Measured: `266 + s * (189 ±0)` + // Estimated: `42632` + // Minimum execution time: 14_590_000 picoseconds. + Weight::from_parts(19_492_127, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 2_745 + .saturating_add(Weight::from_parts(509_883, 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(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Scheduler Agenda (r:1 w:1) - /// Proof: Scheduler Agenda (max_values: None, max_size: Some(39167), added: 41642, mode: MaxEncodedLen) + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. - fn cancel_named(_s: u32, ) -> Weight { + fn cancel_named(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `143 + s * (192 ±0)` - // Estimated: `44169` - // Minimum execution time: 17_619_000 picoseconds. - Weight::from_parts(69_151_000, 0) - .saturating_add(Weight::from_parts(0, 44169)) + // Measured: `290 + s * (189 ±0)` + // Estimated: `42632` + // Minimum execution time: 18_014_000 picoseconds. + Weight::from_parts(18_682_628, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 1_730 + .saturating_add(Weight::from_parts(749_440, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -206,7 +218,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 503 + > 1493 ); } #[test] @@ -218,17 +230,19 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 41642 + > 42632 ); } #[test] fn test_service_task_fetched() { - // Since this is called on on initialize we can use more than the max_extrinsic proof size. assert!( ::BlockWeights::get() - .max_block + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) .proof_size() - > 4199620 + > 3711 ); } #[test] @@ -240,7 +254,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 41642 + > 42632 ); } #[test] @@ -252,7 +266,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 41642 + > 42632 ); } #[test] @@ -264,7 +278,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 44169 + > 42632 ); } #[test] @@ -276,7 +290,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 44169 + > 42632 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_session.rs b/runtimes/peregrine/src/weights/pallet_session.rs index 93d913d5f..4aba9f00a 100644 --- a/runtimes/peregrine/src/weights/pallet_session.rs +++ b/runtimes/peregrine/src/weights/pallet_session.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_session` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-session // --extrinsic=* @@ -52,31 +49,31 @@ use sp_std::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 Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - /// Storage: Session KeyOwner (r:1 w:1) - /// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured) + /// 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: `5546` - // Minimum execution time: 16_663_000 picoseconds. - Weight::from_parts(16_663_000, 0) - .saturating_add(Weight::from_parts(0, 5546)) + // Estimated: `3763` + // Minimum execution time: 16_908_000 picoseconds. + Weight::from_parts(17_299_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 Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - /// Storage: Session KeyOwner (r:0 w:1) - /// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured) + /// 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: `3035` - // Minimum execution time: 21_829_000 picoseconds. - Weight::from_parts(21_829_000, 0) - .saturating_add(Weight::from_parts(0, 3035)) + // Estimated: `3745` + // Minimum execution time: 12_647_000 picoseconds. + Weight::from_parts(12_852_000, 0) + .saturating_add(Weight::from_parts(0, 3745)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -93,7 +90,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5546 + > 3763 ); } #[test] @@ -105,7 +102,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3035 + > 3745 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_sudo.rs b/runtimes/peregrine/src/weights/pallet_sudo.rs index f06fa1157..ccb45802b 100644 --- a/runtimes/peregrine/src/weights/pallet_sudo.rs +++ b/runtimes/peregrine/src/weights/pallet_sudo.rs @@ -49,6 +49,8 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_sudo`. pub struct WeightInfo(PhantomData); impl pallet_sudo::WeightInfo for WeightInfo { + + fn remove_key() -> cumulus_primitives_core::Weight { todo!() } /// Storage: Sudo Key (r:1 w:1) /// Proof: Sudo Key (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) fn set_key() -> Weight { diff --git a/runtimes/peregrine/src/weights/pallet_timestamp.rs b/runtimes/peregrine/src/weights/pallet_timestamp.rs index 5c6886500..dc22a2e07 100644 --- a/runtimes/peregrine/src/weights/pallet_timestamp.rs +++ b/runtimes/peregrine/src/weights/pallet_timestamp.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_timestamp` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-timestamp // --extrinsic=* @@ -52,15 +49,15 @@ use sp_std::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: `Timestamp::Now` (r:1 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set() -> Weight { // Proof Size summary in bytes: // Measured: `42` - // Estimated: `503` - // Minimum execution time: 14_557_000 picoseconds. - Weight::from_parts(14_557_000, 0) - .saturating_add(Weight::from_parts(0, 503)) + // Estimated: `1493` + // Minimum execution time: 6_217_000 picoseconds. + Weight::from_parts(6_411_000, 0) + .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -68,8 +65,8 @@ impl pallet_timestamp::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `94` // Estimated: `0` - // Minimum execution time: 3_762_000 picoseconds. - Weight::from_parts(3_762_000, 0) + // Minimum execution time: 4_270_000 picoseconds. + Weight::from_parts(4_498_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } @@ -85,7 +82,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 503 + > 1493 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_tips.rs b/runtimes/peregrine/src/weights/pallet_tips.rs index 272d1cef5..157e7b202 100644 --- a/runtimes/peregrine/src/weights/pallet_tips.rs +++ b/runtimes/peregrine/src/weights/pallet_tips.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_tips` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-tips // --extrinsic=* @@ -52,104 +49,114 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_tips`. pub struct WeightInfo(PhantomData); impl pallet_tips::WeightInfo for WeightInfo { - /// Storage: Tips Reasons (r:1 w:1) - /// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - /// Storage: Tips Tips (r:1 w:1) - /// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tips::Reasons` (r:1 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `r` is `[0, 16384]`. - fn report_awesome(_r: u32, ) -> Weight { + fn report_awesome(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4` - // Estimated: `4958` - // Minimum execution time: 19_739_000 picoseconds. - Weight::from_parts(38_021_000, 0) - .saturating_add(Weight::from_parts(0, 4958)) + // Estimated: `3469` + // Minimum execution time: 27_311_000 picoseconds. + Weight::from_parts(28_110_607, 0) + .saturating_add(Weight::from_parts(0, 3469)) + // Standard Error: 5 + .saturating_add(Weight::from_parts(1_547, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Tips Tips (r:1 w:1) - /// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - /// Storage: Tips Reasons (r:0 w:1) - /// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Reasons` (r:0 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) fn retract_tip() -> Weight { // Proof Size summary in bytes: - // Measured: `253` - // Estimated: `2981` - // Minimum execution time: 17_722_000 picoseconds. - Weight::from_parts(17_722_000, 0) - .saturating_add(Weight::from_parts(0, 2981)) + // Measured: `221` + // Estimated: `3686` + // Minimum execution time: 25_148_000 picoseconds. + Weight::from_parts(25_454_000, 0) + .saturating_add(Weight::from_parts(0, 3686)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: TipsMembership Members (r:1 w:0) - /// Proof: TipsMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Tips Reasons (r:1 w:1) - /// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - /// Storage: Tips Tips (r:0 w:1) - /// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) + /// Storage: `TipsMembership::Members` (r:1 w:0) + /// Proof: `TipsMembership::Members` (`max_values`: Some(1), `max_size`: Some(673), added: 1168, mode: `MaxEncodedLen`) + /// Storage: `Tips::Reasons` (r:1 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Tips` (r:0 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `r` is `[0, 16384]`. - /// The range of component `t` is `[1, 100]`. + /// The range of component `t` is `[1, 21]`. fn tip_new(r: u32, t: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `171 + t * (32 ±0)` - // Estimated: `6516 + t * (64 ±0)` - // Minimum execution time: 36_187_000 picoseconds. - Weight::from_parts(28_815_787, 0) - .saturating_add(Weight::from_parts(0, 6516)) - // Standard Error: 167 - .saturating_add(Weight::from_parts(586, 0).saturating_mul(r.into())) - // Standard Error: 27_756 - .saturating_add(Weight::from_parts(73_712, 0).saturating_mul(t.into())) + // Measured: `141 + t * (32 ±0)` + // Estimated: `3606 + t * (32 ±0)` + // Minimum execution time: 19_348_000 picoseconds. + Weight::from_parts(17_861_203, 0) + .saturating_add(Weight::from_parts(0, 3606)) + // Standard Error: 6 + .saturating_add(Weight::from_parts(1_401, 0).saturating_mul(r.into())) + // Standard Error: 4_912 + .saturating_add(Weight::from_parts(135_186, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 64).saturating_mul(t.into())) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into())) } - /// Storage: TipsMembership Members (r:1 w:0) - /// Proof: TipsMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: Tips Tips (r:1 w:1) - /// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - /// The range of component `t` is `[1, 100]`. - fn tip(_t: u32, ) -> Weight { + /// Storage: `TipsMembership::Members` (r:1 w:0) + /// Proof: `TipsMembership::Members` (`max_values`: Some(1), `max_size`: Some(673), added: 1168, mode: `MaxEncodedLen`) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `t` is `[1, 21]`. + fn tip(t: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `428 + t * (80 ±0)` - // Estimated: `14604` - // Minimum execution time: 23_212_000 picoseconds. - Weight::from_parts(42_773_000, 0) - .saturating_add(Weight::from_parts(0, 14604)) + // Measured: `366 + t * (80 ±0)` + // Estimated: `3831 + t * (80 ±0)` + // Minimum execution time: 15_591_000 picoseconds. + Weight::from_parts(15_986_370, 0) + .saturating_add(Weight::from_parts(0, 3831)) + // Standard Error: 1_501 + .saturating_add(Weight::from_parts(120_962, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(t.into())) } - /// Storage: Tips Tips (r:1 w:1) - /// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - /// Storage: TipsMembership Members (r:1 w:0) - /// Proof: TipsMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Tips Reasons (r:0 w:1) - /// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - /// The range of component `t` is `[1, 100]`. - fn close_tip(_t: u32, ) -> Weight { + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TipsMembership::Members` (r:1 w:0) + /// Proof: `TipsMembership::Members` (`max_values`: Some(1), `max_size`: Some(673), added: 1168, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Tips::Reasons` (r:0 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `t` is `[1, 21]`. + fn close_tip(t: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1311 + t * (79 ±0)` - // Estimated: `29936` - // Minimum execution time: 72_183_000 picoseconds. - Weight::from_parts(77_488_000, 0) - .saturating_add(Weight::from_parts(0, 29936)) + // Measured: `473 + t * (80 ±0)` + // Estimated: `6204 + t * (80 ±0)` + // Minimum execution time: 55_216_000 picoseconds. + Weight::from_parts(56_832_101, 0) + .saturating_add(Weight::from_parts(0, 6204)) + // Standard Error: 3_930 + .saturating_add(Weight::from_parts(118_712, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(t.into())) } - /// Storage: Tips Tips (r:1 w:1) - /// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - /// Storage: Tips Reasons (r:0 w:1) - /// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - /// The range of component `t` is `[1, 100]`. - fn slash_tip(_t: u32, ) -> Weight { + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Reasons` (r:0 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `t` is `[1, 21]`. + fn slash_tip(t: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `301` - // Estimated: `3077` - // Minimum execution time: 22_340_000 picoseconds. - Weight::from_parts(23_510_000, 0) - .saturating_add(Weight::from_parts(0, 3077)) + // Measured: `269` + // Estimated: `3734` + // Minimum execution time: 14_140_000 picoseconds. + Weight::from_parts(14_682_084, 0) + .saturating_add(Weight::from_parts(0, 3734)) + // Standard Error: 1_130 + .saturating_add(Weight::from_parts(3_291, 0).saturating_mul(t.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -166,7 +173,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4958 + > 3469 ); } #[test] @@ -178,7 +185,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2981 + > 3686 ); } #[test] @@ -190,7 +197,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 6516 + > 3606 ); } #[test] @@ -202,7 +209,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 14604 + > 3831 ); } #[test] @@ -214,7 +221,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 29936 + > 6204 ); } #[test] @@ -226,7 +233,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3077 + > 3734 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_treasury.rs b/runtimes/peregrine/src/weights/pallet_treasury.rs index 0e12f6ec4..cf8bcbbd9 100644 --- a/runtimes/peregrine/src/weights/pallet_treasury.rs +++ b/runtimes/peregrine/src/weights/pallet_treasury.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_treasury` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-treasury // --extrinsic=* @@ -52,94 +49,173 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_treasury`. pub struct WeightInfo(PhantomData); impl pallet_treasury::WeightInfo for WeightInfo { - fn spend() -> Weight { + /// Storage: `Treasury::ProposalCount` (r:1 w:1) + /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:0 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + fn spend_local() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 5_486_000 picoseconds. - Weight::from_parts(5_486_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - } - /// Storage: Treasury ProposalCount (r:1 w:1) - /// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Treasury Proposals (r:0 w:1) - /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + // Measured: `6` + // Estimated: `1887` + // Minimum execution time: 11_688_000 picoseconds. + Weight::from_parts(12_036_000, 0) + .saturating_add(Weight::from_parts(0, 1887)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Treasury::ProposalCount` (r:1 w:1) + /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:0 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn propose_spend() -> Weight { // Proof Size summary in bytes: - // Measured: `144` - // Estimated: `499` - // Minimum execution time: 38_835_000 picoseconds. - Weight::from_parts(38_835_000, 0) - .saturating_add(Weight::from_parts(0, 499)) + // Measured: `111` + // Estimated: `1489` + // Minimum execution time: 25_458_000 picoseconds. + Weight::from_parts(25_878_000, 0) + .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Treasury Proposals (r:1 w:1) - /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Treasury::Proposals` (r:1 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn reject_proposal() -> Weight { // Proof Size summary in bytes: - // Measured: `808` - // Estimated: `7797` - // Minimum execution time: 55_894_000 picoseconds. - Weight::from_parts(55_894_000, 0) - .saturating_add(Weight::from_parts(0, 7797)) + // Measured: `376` + // Estimated: `6204` + // Minimum execution time: 36_141_000 picoseconds. + Weight::from_parts(36_934_000, 0) + .saturating_add(Weight::from_parts(0, 6204)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Treasury Proposals (r:1 w:0) - /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - /// Storage: Treasury Approvals (r:1 w:1) - /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) + /// Storage: `Treasury::Proposals` (r:1 w:0) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) /// The range of component `p` is `[0, 99]`. - fn approve_proposal(_p: u32, ) -> Weight { + fn approve_proposal(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `97 + p * (11 ±0)` - // Estimated: `3480` - // Minimum execution time: 21_300_000 picoseconds. - Weight::from_parts(25_700_000, 0) - .saturating_add(Weight::from_parts(0, 3480)) + // Measured: `433 + p * (8 ±0)` + // Estimated: `3573` + // Minimum execution time: 9_838_000 picoseconds. + Weight::from_parts(12_745_248, 0) + .saturating_add(Weight::from_parts(0, 3573)) + // Standard Error: 944 + .saturating_add(Weight::from_parts(34_217, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Treasury Approvals (r:1 w:1) - /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { // Proof Size summary in bytes: // Measured: `90` - // Estimated: `897` - // Minimum execution time: 7_082_000 picoseconds. - Weight::from_parts(7_082_000, 0) - .saturating_add(Weight::from_parts(0, 897)) + // Estimated: `1887` + // Minimum execution time: 6_121_000 picoseconds. + Weight::from_parts(6_335_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:201 w:201) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Treasury Deactivated (r:1 w:1) - /// Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Balances InactiveIssuance (r:1 w:1) - /// Proof: Balances InactiveIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Treasury Approvals (r:1 w:1) - /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) - /// Storage: Treasury Proposals (r:100 w:100) - /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - /// The range of component `p` is `[0, 100]`. - fn on_initialize_proposals(_p: u32, ) -> Weight { + /// Storage: `System::Account` (r:199 w:199) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Deactivated` (r:1 w:1) + /// Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Balances::InactiveIssuance` (r:1 w:1) + /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:99 w:99) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 99]`. + fn on_initialize_proposals(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `480 + p * (406 ±0)` - // Estimated: `784226` - // Minimum execution time: 23_375_000 picoseconds. - Weight::from_parts(2_180_226_000, 0) - .saturating_add(Weight::from_parts(0, 784226)) - .saturating_add(T::DbWeight::get().reads(304)) - .saturating_add(T::DbWeight::get().writes(304)) + // Measured: `33 + p * (256 ±0)` + // Estimated: `3597 + p * (5214 ±0)` + // Minimum execution time: 18_511_000 picoseconds. + Weight::from_parts(31_104_251, 0) + .saturating_add(Weight::from_parts(0, 3597)) + // Standard Error: 18_385 + .saturating_add(Weight::from_parts(29_250_242, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 5214).saturating_mul(p.into())) + } + /// Storage: `Treasury::SpendCount` (r:1 w:1) + /// Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Spends` (r:0 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + fn spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `6` + // Estimated: `1489` + // Minimum execution time: 10_575_000 picoseconds. + Weight::from_parts(10_762_000, 0) + .saturating_add(Weight::from_parts(0, 1489)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Treasury::Spends` (r:1 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn payout() -> Weight { + // Proof Size summary in bytes: + // Measured: `347` + // Estimated: `6204` + // Minimum execution time: 44_998_000 picoseconds. + Weight::from_parts(46_059_000, 0) + .saturating_add(Weight::from_parts(0, 6204)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Treasury::Spends` (r:1 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + fn check_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `133` + // Estimated: `3542` + // Minimum execution time: 12_873_000 picoseconds. + Weight::from_parts(13_136_000, 0) + .saturating_add(Weight::from_parts(0, 3542)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Treasury::Spends` (r:1 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + fn void_spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `133` + // Estimated: `3542` + // Minimum execution time: 11_977_000 picoseconds. + Weight::from_parts(12_433_000, 0) + .saturating_add(Weight::from_parts(0, 3542)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } #[cfg(test)] mod tests { + #[test] + fn test_spend_local() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1887 + ); + } #[test] fn test_propose_spend() { assert!( @@ -149,7 +225,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 499 + > 1489 ); } #[test] @@ -161,7 +237,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7797 + > 6204 ); } #[test] @@ -173,7 +249,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3480 + > 3573 ); } #[test] @@ -185,7 +261,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 897 + > 1887 ); } #[test] @@ -197,7 +273,55 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 784226 + > 3597 + ); + } + #[test] + fn test_spend() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1489 + ); + } + #[test] + fn test_payout() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6204 + ); + } + #[test] + fn test_check_status() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3542 + ); + } + #[test] + fn test_void_spend() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3542 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_utility.rs b/runtimes/peregrine/src/weights/pallet_utility.rs index cc1feb6be..33fa9027c 100644 --- a/runtimes/peregrine/src/weights/pallet_utility.rs +++ b/runtimes/peregrine/src/weights/pallet_utility.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_utility` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-utility // --extrinsic=* @@ -53,47 +50,53 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl pallet_utility::WeightInfo for WeightInfo { /// The range of component `c` is `[0, 1000]`. - fn batch(_c: u32, ) -> Weight { + fn batch(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 14_219_000 picoseconds. - Weight::from_parts(2_779_395_000, 0) + // Minimum execution time: 5_195_000 picoseconds. + Weight::from_parts(11_758_579, 0) .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_878 + .saturating_add(Weight::from_parts(2_688_711, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_794_000 picoseconds. - Weight::from_parts(7_794_000, 0) + // Minimum execution time: 4_668_000 picoseconds. + Weight::from_parts(4_759_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. - fn batch_all(_c: u32, ) -> Weight { + fn batch_all(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_724_000 picoseconds. - Weight::from_parts(2_946_117_000, 0) + // Minimum execution time: 5_158_000 picoseconds. + Weight::from_parts(5_025_730, 0) .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 2_071 + .saturating_add(Weight::from_parts(2_906_125, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_312_000 picoseconds. - Weight::from_parts(10_312_000, 0) + // Minimum execution time: 6_982_000 picoseconds. + Weight::from_parts(7_172_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. - fn force_batch(_c: u32, ) -> Weight { + fn force_batch(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 18_816_000 picoseconds. - Weight::from_parts(2_828_965_000, 0) + // Minimum execution time: 5_032_000 picoseconds. + Weight::from_parts(11_621_705, 0) .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_937 + .saturating_add(Weight::from_parts(2_645_173, 0).saturating_mul(c.into())) } } diff --git a/runtimes/peregrine/src/weights/pallet_vesting.rs b/runtimes/peregrine/src/weights/pallet_vesting.rs index 960084665..dd6490c32 100644 --- a/runtimes/peregrine/src/weights/pallet_vesting.rs +++ b/runtimes/peregrine/src/weights/pallet_vesting.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_vesting` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-vesting // --extrinsic=* @@ -52,160 +49,216 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_vesting`. pub struct WeightInfo(PhantomData); impl pallet_vesting::WeightInfo for WeightInfo { - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[1, 28]`. - fn vest_locked(_l: u32, _s: u32, ) -> Weight { + fn vest_locked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `880 + l * (25 ±0) + s * (40 ±0)` - // Estimated: `7418` - // Minimum execution time: 24_577_000 picoseconds. - Weight::from_parts(38_734_333, 0) - .saturating_add(Weight::from_parts(0, 7418)) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `366 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 32_716_000 picoseconds. + Weight::from_parts(31_624_238, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 610 + .saturating_add(Weight::from_parts(37_011, 0).saturating_mul(l.into())) + // Standard Error: 1_086 + .saturating_add(Weight::from_parts(141_132, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[1, 28]`. - fn vest_unlocked(_l: u32, s: u32, ) -> Weight { + fn vest_unlocked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `880 + l * (25 ±0) + s * (40 ±0)` - // Estimated: `7418` - // Minimum execution time: 21_787_000 picoseconds. - Weight::from_parts(25_402_740, 0) - .saturating_add(Weight::from_parts(0, 7418)) - // Standard Error: 9_975 - .saturating_add(Weight::from_parts(53_759, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `366 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 34_933_000 picoseconds. + Weight::from_parts(34_148_826, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 527 + .saturating_add(Weight::from_parts(30_137, 0).saturating_mul(l.into())) + // Standard Error: 938 + .saturating_add(Weight::from_parts(127_675, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[1, 28]`. fn vest_other_locked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1285 + l * (25 ±0) + s * (40 ±0)` - // Estimated: `10025` - // Minimum execution time: 25_941_000 picoseconds. - Weight::from_parts(20_586_777, 0) - .saturating_add(Weight::from_parts(0, 10025)) - // Standard Error: 6_963 - .saturating_add(Weight::from_parts(106_102, 0).saturating_mul(l.into())) - // Standard Error: 12_637 - .saturating_add(Weight::from_parts(191_222, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `434 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 34_970_000 picoseconds. + Weight::from_parts(33_396_762, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 655 + .saturating_add(Weight::from_parts(39_902, 0).saturating_mul(l.into())) + // Standard Error: 1_166 + .saturating_add(Weight::from_parts(146_668, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[1, 28]`. - fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { + fn vest_other_unlocked(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1285 + l * (25 ±0) + s * (40 ±0)` - // Estimated: `10025` - // Minimum execution time: 26_859_000 picoseconds. - Weight::from_parts(27_193_111, 0) - .saturating_add(Weight::from_parts(0, 10025)) - // Standard Error: 9_975 - .saturating_add(Weight::from_parts(13_388, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `434 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 36_957_000 picoseconds. + Weight::from_parts(36_063_061, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 529 + .saturating_add(Weight::from_parts(31_993, 0).saturating_mul(l.into())) + // Standard Error: 941 + .saturating_add(Weight::from_parts(123_889, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, 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(949), added: 3424, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[0, 27]`. - fn vested_transfer(_l: u32, _s: u32, ) -> Weight { + fn vested_transfer(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1200 + l * (25 ±0) + s * (50 ±0)` - // Estimated: `10025` - // Minimum execution time: 38_581_000 picoseconds. - Weight::from_parts(97_505_000, 0) - .saturating_add(Weight::from_parts(0, 10025)) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `471 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 66_016_000 picoseconds. + Weight::from_parts(66_301_649, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 1_235 + .saturating_add(Weight::from_parts(45_951, 0).saturating_mul(l.into())) + // Standard Error: 2_198 + .saturating_add(Weight::from_parts(171_498, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, 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(949), added: 3424, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[0, 27]`. - fn force_vested_transfer(l: u32, _s: u32, ) -> Weight { + fn force_vested_transfer(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1542 + l * (25 ±0) + s * (50 ±0)` - // Estimated: `12632` - // Minimum execution time: 36_939_000 picoseconds. - Weight::from_parts(38_448_500, 0) - .saturating_add(Weight::from_parts(0, 12632)) - // Standard Error: 22_852 - .saturating_add(Weight::from_parts(83_520, 0).saturating_mul(l.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `578 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `6204` + // Minimum execution time: 69_129_000 picoseconds. + Weight::from_parts(69_076_699, 0) + .saturating_add(Weight::from_parts(0, 6204)) + // Standard Error: 1_189 + .saturating_add(Weight::from_parts(45_612, 0).saturating_mul(l.into())) + // Standard Error: 2_116 + .saturating_add(Weight::from_parts(169_957, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[2, 28]`. - fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { + fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1020 + l * (25 ±0) + s * (40 ±0)` - // Estimated: `10025` - // Minimum execution time: 25_437_000 picoseconds. - Weight::from_parts(27_242_153, 0) - .saturating_add(Weight::from_parts(0, 10025)) - // Standard Error: 39_037 - .saturating_add(Weight::from_parts(88_423, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `471 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 36_571_000 picoseconds. + Weight::from_parts(35_060_968, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 525 + .saturating_add(Weight::from_parts(42_288, 0).saturating_mul(l.into())) + // Standard Error: 970 + .saturating_add(Weight::from_parts(142_565, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Vesting Vesting (r:1 w:1) - /// Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `l` is `[0, 49]`. /// The range of component `s` is `[2, 28]`. fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1020 + l * (25 ±0) + s * (40 ±0)` - // Estimated: `10025` - // Minimum execution time: 25_414_000 picoseconds. - Weight::from_parts(23_912_769, 0) - .saturating_add(Weight::from_parts(0, 10025)) - // Standard Error: 5_797 - .saturating_add(Weight::from_parts(61_938, 0).saturating_mul(l.into())) - // Standard Error: 10_925 - .saturating_add(Weight::from_parts(53_615, 0).saturating_mul(s.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `471 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 39_189_000 picoseconds. + Weight::from_parts(37_159_926, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 636 + .saturating_add(Weight::from_parts(46_607, 0).saturating_mul(l.into())) + // Standard Error: 1_175 + .saturating_add(Weight::from_parts(147_625, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Vesting::Vesting` (r:1 w:1) + /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1169), added: 3644, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// The range of component `l` is `[0, 49]`. + /// The range of component `s` is `[2, 28]`. + fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `471 + l * (25 ±0) + s * (40 ±0)` + // Estimated: `4764` + // Minimum execution time: 39_755_000 picoseconds. + Weight::from_parts(38_003_429, 0) + .saturating_add(Weight::from_parts(0, 4764)) + // Standard Error: 864 + .saturating_add(Weight::from_parts(43_527, 0).saturating_mul(l.into())) + // Standard Error: 1_596 + .saturating_add(Weight::from_parts(144_859, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } } @@ -221,7 +274,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7418 + > 4764 ); } #[test] @@ -233,7 +286,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7418 + > 4764 ); } #[test] @@ -245,7 +298,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10025 + > 4764 ); } #[test] @@ -257,7 +310,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10025 + > 4764 ); } #[test] @@ -269,7 +322,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10025 + > 4764 ); } #[test] @@ -281,7 +334,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12632 + > 6204 ); } #[test] @@ -293,7 +346,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10025 + > 4764 ); } #[test] @@ -305,7 +358,19 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10025 + > 4764 + ); + } + #[test] + fn test_force_remove_vesting_schedule() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4764 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_web3_names.rs b/runtimes/peregrine/src/weights/pallet_web3_names.rs index 0bfe299b1..6314a294b 100644 --- a/runtimes/peregrine/src/weights/pallet_web3_names.rs +++ b/runtimes/peregrine/src/weights/pallet_web3_names.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `pallet_web3_names` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-web3-names // --extrinsic=* @@ -52,119 +49,149 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_web3_names`. pub struct WeightInfo(PhantomData); impl pallet_web3_names::WeightInfo for WeightInfo { - /// Storage: Web3Names Names (r:1 w:1) - /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) - /// Storage: Web3Names Owner (r:1 w:1) - /// Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - /// Storage: Web3Names Banned (r:1 w:0) - /// Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Names` (r:1 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Banned` (r:1 w:0) + /// Proof: `Web3Names::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[3, 32]`. - fn claim(_n: u32, ) -> Weight { + fn claim(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `144` - // Estimated: `10299` - // Minimum execution time: 48_474_000 picoseconds. - Weight::from_parts(62_936_000, 0) - .saturating_add(Weight::from_parts(0, 10299)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `111` + // Estimated: `3658` + // Minimum execution time: 56_002_000 picoseconds. + Weight::from_parts(57_034_446, 0) + .saturating_add(Weight::from_parts(0, 3658)) + // Standard Error: 1_741 + .saturating_add(Weight::from_parts(17_996, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Web3Names Names (r:1 w:1) - /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) - /// Storage: Web3Names Owner (r:1 w:1) - /// Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Names` (r:1 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn release_by_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `476` - // Estimated: `7775` - // Minimum execution time: 35_096_000 picoseconds. - Weight::from_parts(35_096_000, 0) - .saturating_add(Weight::from_parts(0, 7775)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `515` + // Estimated: `3658` + // Minimum execution time: 49_858_000 picoseconds. + Weight::from_parts(50_437_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Web3Names Owner (r:1 w:1) - /// Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Web3Names Names (r:0 w:1) - /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Names` (r:0 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) /// The range of component `n` is `[3, 32]`. - fn reclaim_deposit(_n: u32, ) -> Weight { + fn reclaim_deposit(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `342 + n * (1 ±0)` - // Estimated: `5219` - // Minimum execution time: 20_541_000 picoseconds. - Weight::from_parts(21_000_000, 0) - .saturating_add(Weight::from_parts(0, 5219)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `411 + n * (1 ±0)` + // Estimated: `3658` + // Minimum execution time: 47_552_000 picoseconds. + Weight::from_parts(48_579_429, 0) + .saturating_add(Weight::from_parts(0, 3658)) + // Standard Error: 5_097 + .saturating_add(Weight::from_parts(202, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Web3Names Banned (r:1 w:1) - /// Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) - /// Storage: Web3Names Owner (r:1 w:1) - /// Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Web3Names Names (r:0 w:1) - /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) + /// Storage: `Web3Names::Banned` (r:1 w:1) + /// Proof: `Web3Names::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Names` (r:0 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) /// The range of component `n` is `[3, 32]`. fn ban(_n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `342 + n * (1 ±0)` - // Estimated: `7743` - // Minimum execution time: 22_053_000 picoseconds. - Weight::from_parts(22_256_000, 0) - .saturating_add(Weight::from_parts(0, 7743)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `411 + n * (1 ±0)` + // Estimated: `3658` + // Minimum execution time: 52_931_000 picoseconds. + Weight::from_parts(54_749_477, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Web3Names Banned (r:1 w:1) - /// Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: `Web3Names::Banned` (r:1 w:1) + /// Proof: `Web3Names::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// The range of component `n` is `[3, 32]`. - fn unban(_n: u32, ) -> Weight { + fn unban(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `46 + n * (1 ±0)` - // Estimated: `2524` - // Minimum execution time: 11_136_000 picoseconds. - Weight::from_parts(11_411_000, 0) - .saturating_add(Weight::from_parts(0, 2524)) + // Measured: `47 + n * (1 ±0)` + // Estimated: `3514` + // Minimum execution time: 12_517_000 picoseconds. + Weight::from_parts(12_938_732, 0) + .saturating_add(Weight::from_parts(0, 3514)) + // Standard Error: 2_619 + .saturating_add(Weight::from_parts(22_854, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Web3Names Names (r:1 w:0) - /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) - /// Storage: Web3Names Owner (r:1 w:1) - /// Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Names` (r:1 w:0) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `889` - // Estimated: `10382` - // Minimum execution time: 28_302_000 picoseconds. - Weight::from_parts(28_302_000, 0) - .saturating_add(Weight::from_parts(0, 10382)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `622` + // Estimated: `6326` + // Minimum execution time: 79_612_000 picoseconds. + Weight::from_parts(80_738_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Web3Names Owner (r:1 w:1) - /// Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `374` - // Estimated: `5219` - // Minimum execution time: 24_571_000 picoseconds. - Weight::from_parts(24_571_000, 0) - .saturating_add(Weight::from_parts(0, 5219)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `370` + // Estimated: `3658` + // Minimum execution time: 64_512_000 picoseconds. + Weight::from_parts(65_038_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } } @@ -179,7 +206,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10299 + > 3658 ); } #[test] @@ -191,7 +218,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7775 + > 3658 ); } #[test] @@ -203,7 +230,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5219 + > 3658 ); } #[test] @@ -215,7 +242,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7743 + > 3658 ); } #[test] @@ -227,7 +254,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2524 + > 3514 ); } #[test] @@ -239,7 +266,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10382 + > 6326 ); } #[test] @@ -251,7 +278,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5219 + > 3658 ); } } diff --git a/runtimes/peregrine/src/weights/pallet_xcm.rs b/runtimes/peregrine/src/weights/pallet_xcm.rs index e6b4cdec6..49d39abdd 100644 --- a/runtimes/peregrine/src/weights/pallet_xcm.rs +++ b/runtimes/peregrine/src/weights/pallet_xcm.rs @@ -18,11 +18,11 @@ //! Autogenerated weights for `pallet_xcm` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-31, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -30,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-xcm // --extrinsic=* @@ -50,28 +49,30 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_xcm`. pub struct WeightInfo(PhantomData); impl pallet_xcm::WeightInfo for WeightInfo { - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (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::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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `75` - // Estimated: `3540` - // Minimum execution time: 27_096_000 picoseconds. - Weight::from_parts(27_096_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) + // Measured: `277` + // Estimated: `3742` + // Minimum execution time: 29_784_000 picoseconds. + Weight::from_parts(30_448_000, 0) + .saturating_add(Weight::from_parts(0, 3742)) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Benchmark Override (r:0 w:0) - /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { // Proof Size summary in bytes: // Measured: `0` @@ -80,9 +81,35 @@ 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: Benchmark Override (r:0 w:0) - /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`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(132), added: 2607, 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) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn reserve_transfer_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `309` + // Estimated: `3774` + // Minimum execution time: 91_369_000 picoseconds. + Weight::from_parts(92_344_000, 0) + .saturating_add(Weight::from_parts(0, 3774)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn transfer_assets() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` @@ -90,8 +117,8 @@ 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: Benchmark Override (r:0 w:0) - /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute() -> Weight { // Proof Size summary in bytes: // Measured: `0` @@ -100,190 +127,236 @@ 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 SupportedVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// 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: 10_952_000 picoseconds. - Weight::from_parts(10_952_000, 0) + // Minimum execution time: 8_878_000 picoseconds. + Weight::from_parts(9_420_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) + /// 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: 4_154_000 picoseconds. - Weight::from_parts(4_154_000, 0) + // Minimum execution time: 2_571_000 picoseconds. + Weight::from_parts(2_662_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm QueryCounter (r:1 w:1) - /// Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// 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: `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) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `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: `75` - // Estimated: `3540` - // Minimum execution time: 29_654_000 picoseconds. - Weight::from_parts(29_654_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) + // Measured: `277` + // Estimated: `3742` + // Minimum execution time: 36_578_000 picoseconds. + Weight::from_parts(36_960_000, 0) + .saturating_add(Weight::from_parts(0, 3742)) .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm Queries (r:0 w:1) - /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `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::RelevantMessagingState` (r:1 w:0) + /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:0) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `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: `257` - // Estimated: `3722` - // Minimum execution time: 26_946_000 picoseconds. - Weight::from_parts(26_946_000, 0) - .saturating_add(Weight::from_parts(0, 3722)) - .saturating_add(T::DbWeight::get().reads(6)) + // Measured: `532` + // Estimated: `3997` + // Minimum execution time: 39_310_000 picoseconds. + Weight::from_parts(39_690_000, 0) + .saturating_add(Weight::from_parts(0, 3997)) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PolkadotXcm XcmExecutionSuspended (r:0 w:1) - /// Proof Skipped: PolkadotXcm XcmExecutionSuspended (max_values: Some(1), max_size: None, mode: Measured) + /// 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: 4_416_000 picoseconds. - Weight::from_parts(4_416_000, 0) + // Minimum execution time: 2_652_000 picoseconds. + Weight::from_parts(2_778_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PolkadotXcm SupportedVersion (r:4 w:2) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// 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: `129` - // Estimated: `11019` - // Minimum execution time: 16_769_000 picoseconds. - Weight::from_parts(16_769_000, 0) - .saturating_add(Weight::from_parts(0, 11019)) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `125` + // Estimated: `13490` + // Minimum execution time: 20_568_000 picoseconds. + Weight::from_parts(21_057_000, 0) + .saturating_add(Weight::from_parts(0, 13490)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifiers (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) + /// 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: `133` - // Estimated: `11023` - // Minimum execution time: 15_907_000 picoseconds. - Weight::from_parts(15_907_000, 0) - .saturating_add(Weight::from_parts(0, 11023)) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `129` + // Estimated: `13494` + // Minimum execution time: 20_906_000 picoseconds. + Weight::from_parts(21_366_000, 0) + .saturating_add(Weight::from_parts(0, 13494)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// 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: `140` - // Estimated: `13505` - // Minimum execution time: 16_655_000 picoseconds. - Weight::from_parts(16_655_000, 0) - .saturating_add(Weight::from_parts(0, 13505)) - .saturating_add(T::DbWeight::get().reads(5)) + // Measured: `183` + // Estimated: `16023` + // Minimum execution time: 23_236_000 picoseconds. + Weight::from_parts(23_742_000, 0) + .saturating_add(Weight::from_parts(0, 16023)) + .saturating_add(T::DbWeight::get().reads(6)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `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::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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `142` - // Estimated: `6082` - // Minimum execution time: 26_604_000 picoseconds. - Weight::from_parts(26_604_000, 0) - .saturating_add(Weight::from_parts(0, 6082)) + // Measured: `349` + // Estimated: `6289` + // Minimum execution time: 35_279_000 picoseconds. + Weight::from_parts(36_068_000, 0) + .saturating_add(Weight::from_parts(0, 6289)) .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// 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: `172` - // Estimated: `8587` - // Minimum execution time: 9_040_000 picoseconds. - Weight::from_parts(9_040_000, 0) - .saturating_add(Weight::from_parts(0, 8587)) - .saturating_add(T::DbWeight::get().reads(3)) - } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + // Estimated: `11062` + // Minimum execution time: 12_676_000 picoseconds. + Weight::from_parts(13_133_000, 0) + .saturating_add(Weight::from_parts(0, 11062)) + .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: `140` - // Estimated: `11030` - // Minimum execution time: 16_032_000 picoseconds. - Weight::from_parts(16_032_000, 0) - .saturating_add(Weight::from_parts(0, 11030)) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `136` + // Estimated: `13501` + // Minimum execution time: 20_858_000 picoseconds. + Weight::from_parts(21_234_000, 0) + .saturating_add(Weight::from_parts(0, 13501)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - /// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - /// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem HostConfiguration (r:1 w:0) - /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `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::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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `146` - // Estimated: `11036` - // Minimum execution time: 32_342_000 picoseconds. - Weight::from_parts(32_342_000, 0) - .saturating_add(Weight::from_parts(0, 11036)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `349` + // Estimated: `13714` + // Minimum execution time: 44_759_000 picoseconds. + Weight::from_parts(45_465_000, 0) + .saturating_add(Weight::from_parts(0, 13714)) + .saturating_add(T::DbWeight::get().reads(10)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// 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: `69` + // Estimated: `1554` + // Minimum execution time: 5_050_000 picoseconds. + Weight::from_parts(5_350_000, 0) + .saturating_add(Weight::from_parts(0, 1554)) + .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: `7710` + // Estimated: `11175` + // Minimum execution time: 28_206_000 picoseconds. + Weight::from_parts(28_515_000, 0) + .saturating_add(Weight::from_parts(0, 11175)) + .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: `126` + // Estimated: `3591` + // Minimum execution time: 42_518_000 picoseconds. + Weight::from_parts(43_653_000, 0) + .saturating_add(Weight::from_parts(0, 3591)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } @@ -298,7 +371,19 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3540 + > 3742 + ); + } + #[test] + fn test_reserve_transfer_assets() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3774 ); } #[test] @@ -310,7 +395,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3540 + > 3742 ); } #[test] @@ -322,7 +407,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3722 + > 3997 ); } #[test] @@ -334,7 +419,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11019 + > 13490 ); } #[test] @@ -346,7 +431,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11023 + > 13494 ); } #[test] @@ -358,7 +443,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 13505 + > 16023 ); } #[test] @@ -370,7 +455,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 6082 + > 6289 ); } #[test] @@ -382,7 +467,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8587 + > 11062 ); } #[test] @@ -394,7 +479,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11030 + > 13501 ); } #[test] @@ -406,7 +491,43 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11036 + > 13714 + ); + } + #[test] + fn test_new_query() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1554 + ); + } + #[test] + fn test_take_response() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 11175 + ); + } + #[test] + fn test_claim_assets() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3591 ); } } diff --git a/runtimes/peregrine/src/weights/public_credentials.rs b/runtimes/peregrine/src/weights/public_credentials.rs index e5e372da3..74ce73f90 100644 --- a/runtimes/peregrine/src/weights/public_credentials.rs +++ b/runtimes/peregrine/src/weights/public_credentials.rs @@ -1,5 +1,3 @@ -// TODO: UPDATE BEFORE RELEASE - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2024 BOTLabs GmbH @@ -20,11 +18,11 @@ //! Autogenerated weights for `public_credentials` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -32,11 +30,10 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=public-credentials // --extrinsic=* @@ -52,116 +49,138 @@ use sp_std::marker::PhantomData; /// Weight functions for `public_credentials`. pub struct WeightInfo(PhantomData); impl public_credentials::WeightInfo for WeightInfo { - /// Storage: Ctype Ctypes (r:1 w:0) - /// Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: PublicCredentials CredentialSubjects (r:0 w:1) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) + /// Storage: `Ctype::Ctypes` (r:1 w:0) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::CredentialSubjects` (r:0 w:1) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 100000]`. - fn add(_c: u32, ) -> Weight { + fn add(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `863` - // Estimated: `8120` - // Minimum execution time: 37_089_000 picoseconds. - Weight::from_parts(204_644_000, 0) - .saturating_add(Weight::from_parts(0, 8120)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `363` + // Estimated: `3940` + // Minimum execution time: 65_939_000 picoseconds. + Weight::from_parts(62_465_999, 0) + .saturating_add(Weight::from_parts(0, 3940)) + // Standard Error: 7 + .saturating_add(Weight::from_parts(2_372, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: PublicCredentials CredentialSubjects (r:1 w:0) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) fn revoke() -> Weight { // Proof Size summary in bytes: - // Measured: `948` - // Estimated: `5737` - // Minimum execution time: 21_019_000 picoseconds. - Weight::from_parts(21_019_000, 0) - .saturating_add(Weight::from_parts(0, 5737)) + // Measured: `919` + // Estimated: `3940` + // Minimum execution time: 24_868_000 picoseconds. + Weight::from_parts(25_278_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PublicCredentials CredentialSubjects (r:1 w:0) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) fn unrevoke() -> Weight { // Proof Size summary in bytes: - // Measured: `948` - // Estimated: `5737` - // Minimum execution time: 21_403_000 picoseconds. - Weight::from_parts(21_403_000, 0) - .saturating_add(Weight::from_parts(0, 5737)) + // Measured: `919` + // Estimated: `3940` + // Minimum execution time: 24_328_000 picoseconds. + Weight::from_parts(24_757_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: PublicCredentials CredentialSubjects (r:1 w:1) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:1) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove() -> Weight { // Proof Size summary in bytes: - // Measured: `1626` - // Estimated: `8344` - // Minimum execution time: 37_102_000 picoseconds. - Weight::from_parts(37_102_000, 0) - .saturating_add(Weight::from_parts(0, 8344)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `1160` + // Estimated: `3940` + // Minimum execution time: 62_908_000 picoseconds. + Weight::from_parts(63_578_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PublicCredentials CredentialSubjects (r:1 w:1) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:1) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn reclaim_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1626` - // Estimated: `8344` - // Minimum execution time: 58_498_000 picoseconds. - Weight::from_parts(58_498_000, 0) - .saturating_add(Weight::from_parts(0, 8344)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `1160` + // Estimated: `3940` + // Minimum execution time: 62_638_000 picoseconds. + Weight::from_parts(63_232_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: PublicCredentials CredentialSubjects (r:1 w:0) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `1499` - // Estimated: `10951` - // Minimum execution time: 71_510_000 picoseconds. - Weight::from_parts(71_510_000, 0) - .saturating_add(Weight::from_parts(0, 10951)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `1265` + // Estimated: `6326` + // Minimum execution time: 98_356_000 picoseconds. + Weight::from_parts(99_382_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: PublicCredentials CredentialSubjects (r:1 w:0) - /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - /// Storage: PublicCredentials Credentials (r:1 w:1) - /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1086` - // Estimated: `8344` - // Minimum execution time: 66_786_000 picoseconds. - Weight::from_parts(66_786_000, 0) - .saturating_add(Weight::from_parts(0, 8344)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `1084` + // Estimated: `3940` + // Minimum execution time: 85_146_000 picoseconds. + Weight::from_parts(86_307_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } } @@ -176,7 +195,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8120 + > 3940 ); } #[test] @@ -188,7 +207,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5737 + > 3940 ); } #[test] @@ -200,7 +219,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5737 + > 3940 ); } #[test] @@ -212,7 +231,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8344 + > 3940 ); } #[test] @@ -224,7 +243,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8344 + > 3940 ); } #[test] @@ -236,7 +255,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 10951 + > 6326 ); } #[test] @@ -248,7 +267,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8344 + > 3940 ); } } diff --git a/runtimes/peregrine/src/xcm_config.rs b/runtimes/peregrine/src/xcm_config.rs index 88bd5db1c..cd075e3fc 100644 --- a/runtimes/peregrine/src/xcm_config.rs +++ b/runtimes/peregrine/src/xcm_config.rs @@ -17,39 +17,46 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org use crate::{ - AccountId, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, - RuntimeEvent, RuntimeOrigin, Treasury, WeightToFee, XcmpQueue, + AccountId, AllPalletsWithSystem, Balances, MessageQueue, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, + RuntimeCall, RuntimeEvent, RuntimeOrigin, WeightToFee, XcmpQueue, }; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId}; use frame_support::{ parameter_types, - traits::{Contains, Everything, Nothing}, + traits::{Contains, EnqueueWithOrigin, Everything, Nothing, TransformOrigin}, }; use frame_system::EnsureRoot; use pallet_xcm::XcmPassthrough; +use parachains_common::message_queue::{NarrowOriginToSibling, ParaIdToSibling}; +use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery; use sp_core::ConstU32; use sp_std::prelude::ToOwned; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; use xcm_builder::{ AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, - EnsureXcmOrigin, FixedWeightBounds, NativeAsset, RelayChainAsNative, SiblingParachainAsNative, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, - UsingComponents, WithComputedOrigin, + EnsureXcmOrigin, FixedWeightBounds, FrameTransactionalProcessor, NativeAsset, RelayChainAsNative, + SiblingParachainAsNative, SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, + TakeWeightCredit, TrailingSetTopicAsId, UsingComponents, WithComputedOrigin, }; use xcm_executor::{traits::WithOriginFilter, XcmExecutor}; -use runtime_common::xcm_config::{ - DenyReserveTransferToRelayChain, DenyThenTry, HereLocation, LocalAssetTransactor, LocationToAccountId, - MaxAssetsIntoHolding, MaxInstructions, ParentLocation, ParentOrSiblings, UnitWeightCost, +use runtime_common::{ + xcm_config::{ + DenyReserveTransferToRelayChain, DenyThenTry, HeapSize, HereLocation, LocalAssetTransactor, + LocationToAccountId, MaxAssetsIntoHolding, MaxInstructions, MaxStale, ParentLocation, ParentOrSiblings, + ServiceWeight, UnitWeightCost, + }, + SendDustAndFeesToTreasury, }; parameter_types! { pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); - pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into(); + pub Ancestry: Location = Parachain(ParachainInfo::parachain_id().into()).into(); // TODO: This needs to be updated once we deploy Peregrine on Rococo/Paseo pub const RelayNetworkId: Option = None; // TODO: This needs to be updated once we deploy Peregrine on Rococo/Paseo. - pub UniversalLocation: InteriorMultiLocation = + pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into(); } @@ -168,7 +175,6 @@ impl xcm_executor::Config for XcmConfig { // How to withdraw and deposit an asset. type AssetTransactor = LocalAssetTransactor; type OriginConverter = XcmOriginToTransactDispatchOrigin; - // Reserving is disabled. type IsReserve = NativeAsset; // Teleporting is disabled. type IsTeleporter = (); @@ -181,7 +187,8 @@ impl xcm_executor::Config for XcmConfig { // How weight is transformed into fees. The fees are not taken out of the // Balances pallet here. Balances is only used if fees are dropped without being // used. In that case they are put into the treasury. - type Trader = UsingComponents, HereLocation, AccountId, Balances, Treasury>; + type Trader = + UsingComponents, HereLocation, AccountId, Balances, SendDustAndFeesToTreasury>; type ResponseHandler = PolkadotXcm; // What happens with assets that are left in the register after the XCM message // was processed. PolkadotXcm has an AssetTrap that stores a hash of the asset @@ -199,6 +206,7 @@ impl xcm_executor::Config for XcmConfig { type CallDispatcher = WithOriginFilter; type SafeCallFilter = SafeCallFilter; type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; } /// Allows only local `Signed` origins to be converted into `MultiLocation`s by @@ -214,11 +222,6 @@ pub type XcmRouter = ( XcmpQueue, ); -#[cfg(feature = "runtime-benchmarks")] -parameter_types! { - pub ReachableDest: Option = Some(Parent.into()); -} - impl pallet_xcm::Config for Runtime { type MaxRemoteLockConsumers = ConstU32<0>; type RemoteLockConsumerIdentifier = (); @@ -245,8 +248,6 @@ impl pallet_xcm::Config for Runtime { type SovereignAccountOf = LocationToAccountIdConverter; type MaxLockers = ConstU32<8>; type WeightInfo = crate::weights::pallet_xcm::WeightInfo; - #[cfg(feature = "runtime-benchmarks")] - type ReachableDest = ReachableDest; } impl cumulus_pallet_xcm::Config for Runtime { @@ -254,21 +255,45 @@ impl cumulus_pallet_xcm::Config for Runtime { type XcmExecutor = XcmExecutor; } +parameter_types! { + pub const MaxInboundSuspended: u32 = 1_000; +} + impl cumulus_pallet_xcmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; type ChannelInfo = ParachainSystem; type VersionWrapper = PolkadotXcm; - type ExecuteOverweightOrigin = EnsureRoot; type ControllerOrigin = EnsureRoot; type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin; type WeightInfo = cumulus_pallet_xcmp_queue::weights::SubstrateWeight; - // TODO: Most chains use `NoPriceForMessageDelivery`, merged in https://github.com/paritytech/polkadot-sdk/pull/1234. - type PriceForSiblingDelivery = (); + type PriceForSiblingDelivery = NoPriceForMessageDelivery; + type MaxInboundSuspended = MaxInboundSuspended; + type XcmpQueue = TransformOrigin; +} + +impl pallet_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = crate::weights::pallet_message_queue::WeightInfo; + #[cfg(feature = "runtime-benchmarks")] + type MessageProcessor = pallet_message_queue::mock_helpers::NoopMessageProcessor; + #[cfg(not(feature = "runtime-benchmarks"))] + type MessageProcessor = + xcm_builder::ProcessXcmMessage, RuntimeCall>; + type Size = u32; + type QueueChangeHandler = NarrowOriginToSibling; + type QueuePausedQuery = NarrowOriginToSibling; + type HeapSize = HeapSize; + type MaxStale = MaxStale; + type ServiceWeight = ServiceWeight; +} + +// Remove me in 1.15.0 +parameter_types! { + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } impl cumulus_pallet_dmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; - type ExecuteOverweightOrigin = EnsureRoot; + type DmpSink = EnqueueWithOrigin; + type WeightInfo = crate::weights::pallet_dmp_queue::WeightInfo; } diff --git a/runtimes/spiritnet/Cargo.toml b/runtimes/spiritnet/Cargo.toml index fb4fb9bcb..032a79208 100644 --- a/runtimes/spiritnet/Cargo.toml +++ b/runtimes/spiritnet/Cargo.toml @@ -72,6 +72,7 @@ pallet-collective = { workspace = true } pallet-democracy = { workspace = true } pallet-indices = { workspace = true } pallet-membership = { workspace = true } +pallet-message-queue = { workspace = true } pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } pallet-proxy = { workspace = true } @@ -95,12 +96,15 @@ cumulus-primitives-core = { workspace = true } cumulus-primitives-timestamp = { workspace = true } cumulus-primitives-utility = { workspace = true } parachain-info = { workspace = true } +parachains-common = { workspace = true } +sp-genesis-builder = { workspace = true } # Polkadot dependencies -pallet-xcm = { workspace = true } -xcm = { workspace = true } -xcm-builder = { workspace = true } -xcm-executor = { workspace = true } +pallet-xcm = { workspace = true } +polkadot-runtime-common = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # Benchmarking dependencies cumulus-pallet-session-benchmarking = { workspace = true, optional = true } @@ -116,9 +120,12 @@ fast-gov = ["runtime-common/fast-gov"] runtime-benchmarks = [ "attestation/runtime-benchmarks", "ctype/runtime-benchmarks", + "cumulus-pallet-dmp-queue/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", "delegation/runtime-benchmarks", "did/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", @@ -136,6 +143,7 @@ runtime-benchmarks = [ "pallet-indices/runtime-benchmarks", "pallet-inflation/runtime-benchmarks", "pallet-membership/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", "pallet-migration/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", @@ -149,6 +157,7 @@ runtime-benchmarks = [ "pallet-web3-names/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "parachain-staking/runtime-benchmarks", + "polkadot-runtime-common/runtime-benchmarks", "public-credentials/runtime-benchmarks", "runtime-common/runtime-benchmarks", "sp-runtime/runtime-benchmarks", @@ -194,6 +203,7 @@ std = [ "pallet-indices/std", "pallet-inflation/std", "pallet-membership/std", + "pallet-message-queue/std", "pallet-migration/std", "pallet-multisig/std", "pallet-preimage/std", @@ -211,6 +221,7 @@ std = [ "pallet-xcm/std", "parachain-info/std", "parachain-staking/std", + "parachains-common/std", "parity-scale-codec/std", "public-credentials/std", "runtime-common/std", @@ -219,6 +230,7 @@ std = [ "sp-block-builder/std", "sp-consensus-aura/std", "sp-core/std", + "sp-genesis-builder/std", "sp-inherents/std", "sp-offchain/std", "sp-runtime/std", @@ -257,6 +269,7 @@ try-runtime = [ "pallet-indices/try-runtime", "pallet-inflation/try-runtime", "pallet-membership/try-runtime", + "pallet-message-queue/try-runtime", "pallet-migration/try-runtime", "pallet-multisig/try-runtime", "pallet-preimage/try-runtime", diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index d5183a357..c6f908be8 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -27,8 +27,14 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases; use frame_support::{ - construct_runtime, parameter_types, - traits::{ConstU32, EitherOfDiverse, Everything, InstanceFilter, PrivilegeCmp}, + construct_runtime, + genesis_builder_helper::{build_config, create_default_config}, + parameter_types, + traits::{ + fungible::HoldConsideration, + tokens::{PayFromAccount, UnityAssetBalanceConversion}, + ConstU32, EitherOfDiverse, EnqueueWithOrigin, Everything, InstanceFilter, LinearStoragePrice, PrivilegeCmp, + }, weights::{ConstantMultiplier, Weight}, }; use frame_system::{pallet_prelude::BlockNumberFor, EnsureRoot, EnsureSigned}; @@ -63,9 +69,11 @@ use runtime_common::{ }, dip::merkle::{CompleteMerkleProof, DidMerkleProofOf, DidMerkleRootGenerator}, errors::PublicCredentialsApiError, - fees::{ToAuthor, WeightToFee}, - pallet_id, AccountId, AuthorityId, Balance, BlockHashCount, BlockLength, BlockNumber, BlockWeights, DidIdentifier, - FeeSplit, Hash, Header, Nonce, Signature, SlowAdjustingFeeUpdate, + fees::{ToAuthorCredit, WeightToFee}, + pallet_id, + xcm_config::RelayOrigin, + AccountId, AuthorityId, Balance, BlockHashCount, BlockLength, BlockNumber, BlockWeights, DidIdentifier, FeeSplit, + Hash, Header, Nonce, SendDustAndFeesToTreasury, Signature, SlowAdjustingFeeUpdate, }; #[cfg(feature = "std")] @@ -137,6 +145,7 @@ impl frame_system::Config for Runtime { type RuntimeEvent = RuntimeEvent; /// The ubiquitous origin type. type RuntimeOrigin = RuntimeOrigin; + type RuntimeTask = RuntimeTask; /// Maximum number of block number to block hash mappings to keep (oldest /// pruned first). type BlockHashCount = BlockHashCount; @@ -174,7 +183,6 @@ parameter_types! { pub const ExistentialDeposit: u128 = EXISTENTIAL_DEPOSIT; pub const MaxLocks: u32 = 50; pub const MaxReserves: u32 = 50; - pub const MaxHolds: u32 = 50; pub const MaxFreezes: u32 = 50; } @@ -206,9 +214,9 @@ impl pallet_balances::Config for Runtime { /// The type for recording an account's balance. type Balance = Balance; type FreezeIdentifier = RuntimeFreezeReason; + type RuntimeFreezeReason = RuntimeFreezeReason; type RuntimeHoldReason = RuntimeHoldReason; type MaxFreezes = MaxFreezes; - type MaxHolds = MaxHolds; /// The ubiquitous event type. type RuntimeEvent = RuntimeEvent; @@ -223,8 +231,10 @@ impl pallet_balances::Config for Runtime { impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type OnChargeTransaction = - pallet_transaction_payment::CurrencyAdapter>>; + type OnChargeTransaction = pallet_transaction_payment::FungibleAdapter< + Balances, + FeeSplit, ToAuthorCredit>, + >; type OperationalFeeMultiplier = constants::fee::OperationalFeeMultiplier; type WeightToFee = WeightToFee; type LengthToFee = ConstantMultiplier; @@ -248,12 +258,13 @@ impl cumulus_pallet_parachain_system::Config for Runtime { type OnSystemEvent = (); type SelfParaId = parachain_info::Pallet; type OutboundXcmpMessageSource = XcmpQueue; - type DmpMessageHandler = DmpQueue; + type DmpQueue = EnqueueWithOrigin; type ReservedDmpWeight = ReservedDmpWeight; type XcmpMessageHandler = XcmpQueue; type ReservedXcmpWeight = ReservedXcmpWeight; type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases; type ConsensusHook = ConsensusHook; + type WeightInfo = weights::cumulus_pallet_parachain_system::WeightInfo; } impl parachain_info::Config for Runtime {} @@ -297,6 +308,7 @@ impl pallet_vesting::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Currency = Balances; type BlockNumberToBalance = ConvertInto; + type BlockNumberProvider = System; // disable vested transfers by setting min amount to max balance type MinVestedTransfer = constants::MinVestedTransfer; type WeightInfo = weights::pallet_vesting::WeightInfo; @@ -308,6 +320,7 @@ parameter_types! { pub const MaxClaims: u32 = 50; pub const UsableBalance: Balance = KILT; pub const AutoUnlockBound: u32 = 100; + pub const PreImageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage); } impl pallet_preimage::Config for Runtime { @@ -315,8 +328,12 @@ impl pallet_preimage::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Currency = Balances; type ManagerOrigin = EnsureRoot; - type BaseDeposit = constants::preimage::PreimageBaseDeposit; - type ByteDeposit = constants::ByteDeposit; + type Consideration = HoldConsideration< + AccountId, + Balances, + PreImageHoldReason, + LinearStoragePrice, + >; } parameter_types! { @@ -431,6 +448,7 @@ parameter_types! { pub const Burn: Permill = Permill::zero(); pub const MaxApprovals: u32 = 100; pub MaxProposalWeight: Weight = Perbill::from_percent(50) * BlockWeights::get().max_block; + pub TreasuryAccount: AccountId = Treasury::account_id(); } type ApproveOrigin = EitherOfDiverse< @@ -454,12 +472,25 @@ impl pallet_treasury::Config for Runtime { type ProposalBondMinimum = ProposalBondMinimum; type ProposalBondMaximum = (); type SpendPeriod = SpendPeriod; + #[cfg(not(feature = "runtime-benchmarks"))] type SpendOrigin = frame_support::traits::NeverEnsureOrigin; + #[cfg(feature = "runtime-benchmarks")] + type SpendOrigin = frame_system::EnsureWithSuccess, AccountId, benches::MaxBalance>; type Burn = Burn; type BurnDestination = (); type SpendFunds = (); type WeightInfo = weights::pallet_treasury::WeightInfo; type MaxApprovals = MaxApprovals; + + type AssetKind = (); + type BalanceConverter = UnityAssetBalanceConversion; + type Beneficiary = AccountId; + type BeneficiaryLookup = AccountIdLookup; + type Paymaster = PayFromAccount; + type PayoutPeriod = runtime_common::constants::treasury::PayoutPeriod; + + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = runtime_common::benchmarks::treasury::BenchmarkHelper; } type CouncilCollective = pallet_collective::Instance1; @@ -527,6 +558,7 @@ impl pallet_tips::Config for Runtime { type TipReportDepositBase = constants::tips::TipReportDepositBase; type RuntimeEvent = RuntimeEvent; type WeightInfo = weights::pallet_tips::WeightInfo; + type MaxTipAmount = constants::tips::MaxTipAmount; } impl attestation::Config for Runtime { @@ -1005,8 +1037,10 @@ construct_runtime! { PolkadotXcm: pallet_xcm = 83, // Does nothing cool, just provides an origin. CumulusXcm: cumulus_pallet_xcm exclude_parts { Call } = 84, - // Queue and pass DMP messages on to be executed. + // Fix: delete this pallet in the next release DmpQueue: cumulus_pallet_dmp_queue = 85, + // Queue and pass DMP messages on to be executed. + MessageQueue: pallet_message_queue = 86, } } @@ -1093,11 +1127,19 @@ pub type Executive = frame_executive::Executive< Runtime, // Executes pallet hooks in the order of definition in construct_runtime AllPalletsWithSystem, - (), + ( + cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4, + pallet_xcm::migration::MigrateToLatestXcmVersion, + ), >; #[cfg(feature = "runtime-benchmarks")] mod benches { + + frame_support::parameter_types! { + pub const MaxBalance: crate::Balance = crate::Balance::max_value(); + } + frame_benchmarking::define_benchmarks!( [frame_system, SystemBench::] [pallet_timestamp, Timestamp] @@ -1125,10 +1167,13 @@ mod benches { [pallet_did_lookup, DidLookup] [pallet_web3_names, Web3Names] [public_credentials, PublicCredentials] - [pallet_xcm, PolkadotXcm] + [pallet_xcm, PalletXcmExtrinsicsBenchmark::] [pallet_migration, Migration] [pallet_dip_provider, DipProvider] [pallet_deposit_storage, DepositStorage] + [pallet_message_queue, MessageQueue] + [cumulus_pallet_parachain_system, ParachainSystem] + [cumulus_pallet_dmp_queue, DmpQueue] [frame_benchmarking::baseline, Baseline::] ); } @@ -1427,6 +1472,7 @@ impl_runtime_apis! { use frame_system_benchmarking::Pallet as SystemBench; use cumulus_pallet_session_benchmarking::Pallet as SessionBench; use frame_benchmarking::baseline::Pallet as Baseline; + use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark; let mut list = Vec::::new(); list_benchmarks!(list, extra); @@ -1438,13 +1484,47 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { - use frame_benchmarking::{Benchmarking, BenchmarkBatch}; + use frame_benchmarking::{Benchmarking, BenchmarkBatch, BenchmarkError}; use frame_system_benchmarking::Pallet as SystemBench; use cumulus_pallet_session_benchmarking::Pallet as SessionBench; use frame_benchmarking::baseline::Pallet as Baseline; use frame_support::traits::TrackedStorageKey; + use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark; + use runtime_common::benchmarks::xcm as xcm_benchmarking; + use xcm::lts::prelude::*; + + + impl pallet_xcm::benchmarking::Config for Runtime { + type DeliveryHelper = xcm_benchmarking::ParachainDeliveryHelper; + + fn reachable_dest() -> Option { + ParachainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(xcm_benchmarking::RandomParaId::get()); + Some(xcm_benchmarking::ParachainLocation::get()) + } + + fn reserve_transferable_asset_and_dest() -> Option<(Asset, Location)> { + ParachainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(xcm_benchmarking::RandomParaId::get()); + Some(( + xcm_benchmarking::NativeAsset::get(), + xcm_benchmarking::ParachainLocation::get(), + )) + } + + fn get_asset() -> Asset { + xcm_benchmarking::NativeAsset::get() + } + } - impl frame_system_benchmarking::Config for Runtime {} + 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()); + } + } impl cumulus_pallet_session_benchmarking::Config for Runtime {} impl frame_benchmarking::baseline::Config for Runtime {} @@ -1496,6 +1576,18 @@ impl_runtime_apis! { Executive::try_execute_block(block, state_root_check, sig_check, select).expect("try_execute_block failed") } } + + impl sp_genesis_builder::GenesisBuilder for Runtime { + + fn create_default_config() -> Vec { + create_default_config::() + } + + fn build_config(config: Vec) -> sp_genesis_builder::Result { + build_config::(config) + } + + } } cumulus_pallet_parachain_system::register_validate_block! { diff --git a/runtimes/spiritnet/src/weights/attestation.rs b/runtimes/spiritnet/src/weights/attestation.rs index c6e9df017..234523159 100644 --- a/runtimes/spiritnet/src/weights/attestation.rs +++ b/runtimes/spiritnet/src/weights/attestation.rs @@ -16,90 +16,217 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for attestation +//! Autogenerated weights for `attestation` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=attestation // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/attestation.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `attestation`. +/// Weight functions for `attestation`. pub struct WeightInfo(PhantomData); impl attestation::WeightInfo for WeightInfo { - // Storage: Ctype Ctypes (r:1 w:0) - // Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) - // Storage: Attestation Attestations (r:1 w:1) - // Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Ctype::Ctypes` (r:1 w:0) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn add() -> Weight { - Weight::from_parts(32_883_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `260` + // Estimated: `3660` + // Minimum execution time: 51_135_000 picoseconds. + Weight::from_parts(51_755_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Attestation Attestations (r:1 w:1) - // Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) fn revoke() -> Weight { - Weight::from_parts(18_271_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `196` + // Estimated: `3660` + // Minimum execution time: 14_512_000 picoseconds. + Weight::from_parts(14_684_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Attestation Attestations (r:1 w:1) - // Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove() -> Weight { - Weight::from_parts(31_556_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `437` + // Estimated: `3660` + // Minimum execution time: 47_728_000 picoseconds. + Weight::from_parts(48_196_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Attestation Attestations (r:1 w:1) - // Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn reclaim_deposit() -> Weight { - Weight::from_parts(47_092_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `437` + // Estimated: `3660` + // Minimum execution time: 47_883_000 picoseconds. + Weight::from_parts(48_325_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Attestation Attestations (r:1 w:1) - // Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { - Weight::from_parts(44_125_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `581` + // Estimated: `6326` + // Minimum execution time: 77_079_000 picoseconds. + Weight::from_parts(77_637_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Attestation Attestations (r:1 w:1) - // Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Attestation::Attestations` (r:1 w:1) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { - Weight::from_parts(39_086_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `437` + // Estimated: `3660` + // Minimum execution time: 70_610_000 picoseconds. + Weight::from_parts(71_270_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_add() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3660 + ); + } + #[test] + fn test_revoke() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3660 + ); + } + #[test] + fn test_remove() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3660 + ); + } + #[test] + fn test_reclaim_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3660 + ); + } + #[test] + fn test_change_deposit_owner() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6326 + ); + } + #[test] + fn test_update_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3660 + ); } } diff --git a/runtimes/spiritnet/src/weights/ctype.rs b/runtimes/spiritnet/src/weights/ctype.rs index 57df5482a..9420876cc 100644 --- a/runtimes/spiritnet/src/weights/ctype.rs +++ b/runtimes/spiritnet/src/weights/ctype.rs @@ -16,54 +16,94 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for ctype +//! Autogenerated weights for `ctype` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=ctype // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/ctype.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `ctype`. +/// Weight functions for `ctype`. pub struct WeightInfo(PhantomData); impl ctype::WeightInfo for WeightInfo { - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Ctype Ctypes (r:1 w:1) - // Proof: Ctype Ctypes (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(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Ctype::Ctypes` (r:1 w:1) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// The range of component `l` is `[1, 5242880]`. fn add(l: u32, ) -> Weight { - Weight::from_parts(4_058_770 as u64, 0) + // Proof Size summary in bytes: + // Measured: `254` + // Estimated: `6204` + // Minimum execution time: 44_236_000 picoseconds. + Weight::from_parts(1_715_088, 0) + .saturating_add(Weight::from_parts(0, 6204)) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_059 as u64, 0).saturating_mul(l as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + .saturating_add(Weight::from_parts(1_628, 0).saturating_mul(l.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Ctype Ctypes (r:1 w:1) - // Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) + /// Storage: `Ctype::Ctypes` (r:1 w:1) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) fn set_block_number() -> Weight { - Weight::from_parts(18_686_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `158` + // Estimated: `3553` + // Minimum execution time: 17_668_000 picoseconds. + Weight::from_parts(18_341_000, 0) + .saturating_add(Weight::from_parts(0, 3553)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_add() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6204 + ); + } + #[test] + fn test_set_block_number() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3553 + ); } } diff --git a/runtimes/spiritnet/src/weights/cumulus_pallet_dmp_queue.rs b/runtimes/spiritnet/src/weights/cumulus_pallet_dmp_queue.rs new file mode 100644 index 000000000..067ebdec6 --- /dev/null +++ b/runtimes/spiritnet/src/weights/cumulus_pallet_dmp_queue.rs @@ -0,0 +1,184 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +//! Autogenerated weights for `cumulus_pallet_dmp_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/kilt-parachain +// benchmark +// pallet +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 +// --steps=50 +// --repeat=20 +// --chain=spiritnet-dev +// --pallet=cumulus_pallet_dmp_queue +// --extrinsic=* +// --output=./runtimes/spiritnet/src/weights/cumulus_pallet_dmp_queue.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `cumulus_pallet_dmp_queue`. +pub struct WeightInfo(PhantomData); +impl cumulus_pallet_dmp_queue::WeightInfo for WeightInfo { + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (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: `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: `65764` + // Estimated: `69229` + // Minimum execution time: 131_789_000 picoseconds. + Weight::from_parts(133_377_000, 0) + .saturating_add(Weight::from_parts(0, 69229)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1) + fn on_idle_large_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65660` + // Estimated: `69125` + // Minimum execution time: 67_376_000 picoseconds. + Weight::from_parts(68_669_000, 0) + .saturating_add(Weight::from_parts(0, 69125)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (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: `MessageQueue::Pages` (r:0 w:1) + /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`) + fn on_idle_overweight_good_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65794` + // Estimated: `69259` + // Minimum execution time: 125_522_000 picoseconds. + Weight::from_parts(126_924_000, 0) + .saturating_add(Weight::from_parts(0, 69259)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1) + /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1) + /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1) + /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1) + fn on_idle_overweight_large_msg() -> Weight { + // Proof Size summary in bytes: + // Measured: `65690` + // Estimated: `69155` + // Minimum execution time: 60_857_000 picoseconds. + Weight::from_parts(61_583_000, 0) + .saturating_add(Weight::from_parts(0, 69155)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_on_idle_good_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69229 + ); + } + #[test] + fn test_on_idle_large_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69125 + ); + } + #[test] + fn test_on_idle_overweight_good_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69259 + ); + } + #[test] + fn test_on_idle_overweight_large_msg() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69155 + ); + } +} diff --git a/runtimes/spiritnet/src/weights/cumulus_pallet_parachain_system.rs b/runtimes/spiritnet/src/weights/cumulus_pallet_parachain_system.rs new file mode 100644 index 000000000..f6c3f332b --- /dev/null +++ b/runtimes/spiritnet/src/weights/cumulus_pallet_parachain_system.rs @@ -0,0 +1,92 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +//! Autogenerated weights for `cumulus_pallet_parachain_system` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/kilt-parachain +// benchmark +// pallet +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 +// --steps=50 +// --repeat=20 +// --chain=spiritnet-dev +// --pallet=cumulus_pallet_parachain_system +// --extrinsic=* +// --output=./runtimes/spiritnet/src/weights/cumulus_pallet_parachain_system.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::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: `115` + // Estimated: `3517` + // Minimum execution time: 1_824_000 picoseconds. + Weight::from_parts(3_137_458_802, 0) + .saturating_add(Weight::from_parts(0, 3517)) + // Standard Error: 1_119_461 + .saturating_add(Weight::from_parts(188_354_017, 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()))) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_enqueue_inbound_downward_messages() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3517 + ); + } +} diff --git a/runtimes/spiritnet/src/weights/delegation.rs b/runtimes/spiritnet/src/weights/delegation.rs index d2839469d..510e62824 100644 --- a/runtimes/spiritnet/src/weights/delegation.rs +++ b/runtimes/spiritnet/src/weights/delegation.rs @@ -16,156 +16,388 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for delegation +//! Autogenerated weights for `delegation` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=delegation // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/delegation.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `delegation`. +/// Weight functions for `delegation`. pub struct WeightInfo(PhantomData); impl delegation::WeightInfo for WeightInfo { - // Storage: Delegation DelegationHierarchies (r:1 w:1) - // Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) - // Storage: Ctype Ctypes (r:1 w:0) - // Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Delegation DelegationNodes (r:0 w:1) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:1) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Ctype::Ctypes` (r:1 w:0) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationNodes` (r:0 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn create_hierarchy() -> Weight { - Weight::from_parts(53_947_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: Delegation DelegationNodes (r:2 w:2) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `330` + // Estimated: `3658` + // Minimum execution time: 56_654_000 picoseconds. + Weight::from_parts(57_074_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `Delegation::DelegationNodes` (r:2 w:2) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn add_delegation() -> Weight { - Weight::from_parts(38_012_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: Delegation DelegationNodes (r:5 w:5) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: Delegation DelegationHierarchies (r:1 w:0) - // Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) - fn revoke_delegation_root_child(r: u32, _c: u32, ) -> Weight { - Weight::from_parts(17_953_942 as u64, 0) - // Standard Error: 19_848 - .saturating_add(Weight::from_parts(11_249_984 as u64, 0).saturating_mul(r as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(r as u64))) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(r as u64))) - } - // Storage: Delegation DelegationNodes (r:6 w:1) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: Delegation DelegationHierarchies (r:1 w:0) - // Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `469` + // Estimated: `70340` + // Minimum execution time: 61_676_000 picoseconds. + Weight::from_parts(62_625_000, 0) + .saturating_add(Weight::from_parts(0, 70340)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `Delegation::DelegationNodes` (r:5 w:5) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:0) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 5]`. + /// The range of component `c` is `[1, 5]`. + fn revoke_delegation_root_child(r: u32, c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `208 + r * (239 ±0)` + // Estimated: `3545 + r * (34675 ±0)` + // Minimum execution time: 24_738_000 picoseconds. + Weight::from_parts(16_570_193, 0) + .saturating_add(Weight::from_parts(0, 3545)) + // Standard Error: 18_176 + .saturating_add(Weight::from_parts(9_591_484, 0).saturating_mul(r.into())) + // Standard Error: 18_176 + .saturating_add(Weight::from_parts(54_078, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 34675).saturating_mul(r.into())) + } + /// Storage: `Delegation::DelegationNodes` (r:6 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:0) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 5]`. + /// The range of component `c` is `[1, 5]`. fn revoke_delegation_leaf(_r: u32, c: u32, ) -> Weight { - Weight::from_parts(26_014_217 as u64, 0) - // Standard Error: 15_771 - .saturating_add(Weight::from_parts(4_457_617 as u64, 0).saturating_mul(c as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(c as u64))) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Delegation DelegationNodes (r:6 w:6) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Delegation DelegationHierarchies (r:1 w:1) - // Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `381 + c * (239 ±0)` + // Estimated: `35665 + c * (34675 ±0)` + // Minimum execution time: 28_480_000 picoseconds. + Weight::from_parts(26_142_601, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 18_975 + .saturating_add(Weight::from_parts(4_367_029, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(Weight::from_parts(0, 34675).saturating_mul(c.into())) + } + /// Storage: `Delegation::DelegationNodes` (r:6 w:6) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:6 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:1) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 5]`. fn remove_delegation(r: u32, ) -> Weight { - Weight::from_parts(45_044_770 as u64, 0) - // Standard Error: 47_701 - .saturating_add(Weight::from_parts(19_680_850 as u64, 0).saturating_mul(r as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(r as u64))) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(r as u64))) - } - // Storage: Delegation DelegationNodes (r:6 w:6) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Delegation DelegationHierarchies (r:0 w:1) - // Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `618 + r * (294 ±0)` + // Estimated: `35665 + r * (34675 ±0)` + // Minimum execution time: 99_379_000 picoseconds. + Weight::from_parts(67_667_457, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 101_036 + .saturating_add(Weight::from_parts(35_735_298, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 34675).saturating_mul(r.into())) + } + /// Storage: `Delegation::DelegationNodes` (r:6 w:6) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:6 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:0 w:1) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// The range of component `r` is `[1, 5]`. fn reclaim_deposit(r: u32, ) -> Weight { - Weight::from_parts(37_027_802 as u64, 0) - // Standard Error: 34_662 - .saturating_add(Weight::from_parts(19_854_845 as u64, 0).saturating_mul(r as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(r as u64))) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(r as u64))) - } - // Storage: Delegation DelegationNodes (r:1 w:0) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: Delegation DelegationHierarchies (r:1 w:0) - // Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `550 + r * (294 ±0)` + // Estimated: `35665 + r * (34675 ±0)` + // Minimum execution time: 92_101_000 picoseconds. + Weight::from_parts(58_494_298, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 56_546 + .saturating_add(Weight::from_parts(36_463_171, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_parts(0, 34675).saturating_mul(r.into())) + } + /// Storage: `Delegation::DelegationNodes` (r:1 w:0) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Delegation::DelegationHierarchies` (r:1 w:0) + /// Proof: `Delegation::DelegationHierarchies` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn can_attest() -> Weight { - Weight::from_parts(12_823_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) + // Proof Size summary in bytes: + // Measured: `580` + // Estimated: `35665` + // Minimum execution time: 11_732_000 picoseconds. + Weight::from_parts(12_043_000, 0) + .saturating_add(Weight::from_parts(0, 35665)) + .saturating_add(T::DbWeight::get().reads(2)) } - // Storage: Delegation DelegationNodes (r:6 w:0) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) + /// Storage: `Delegation::DelegationNodes` (r:6 w:0) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// The range of component `c` is `[1, 5]`. fn can_revoke(c: u32, ) -> Weight { - Weight::from_parts(8_523_936 as u64 ,0) - // Standard Error: 16_661 - .saturating_add(Weight::from_parts(3_529_860 as u64, 0).saturating_mul(c as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(c as u64))) - } - // Storage: Delegation DelegationNodes (r:6 w:0) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `308 + c * (240 ±0)` + // Estimated: `35665 + c * (34675 ±0)` + // Minimum execution time: 10_893_000 picoseconds. + Weight::from_parts(7_787_310, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 15_306 + .saturating_add(Weight::from_parts(3_597_394, 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(Weight::from_parts(0, 34675).saturating_mul(c.into())) + } + /// Storage: `Delegation::DelegationNodes` (r:6 w:0) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// The range of component `c` is `[1, 5]`. fn can_remove(c: u32, ) -> Weight { - Weight::from_parts(8_518_974 as u64, 0) - // Standard Error: 16_049 - .saturating_add(Weight::from_parts(3_544_659 as u64, 0).saturating_mul(c as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(c as u64))) - } - // Storage: Delegation DelegationNodes (r:1 w:1) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `308 + c * (240 ±0)` + // Estimated: `35665 + c * (34675 ±0)` + // Minimum execution time: 10_869_000 picoseconds. + Weight::from_parts(7_855_382, 0) + .saturating_add(Weight::from_parts(0, 35665)) + // Standard Error: 16_019 + .saturating_add(Weight::from_parts(3_577_958, 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(Weight::from_parts(0, 34675).saturating_mul(c.into())) + } + /// Storage: `Delegation::DelegationNodes` (r:1 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { - Weight::from_parts(45_144_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: Delegation DelegationNodes (r:1 w:1) - // Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `796` + // Estimated: `35665` + // Minimum execution time: 84_824_000 picoseconds. + Weight::from_parts(85_612_000, 0) + .saturating_add(Weight::from_parts(0, 35665)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `Delegation::DelegationNodes` (r:1 w:1) + /// Proof: `Delegation::DelegationNodes` (`max_values`: None, `max_size`: Some(32200), added: 34675, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { - Weight::from_parts(41_756_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `652` + // Estimated: `35665` + // Minimum execution time: 78_639_000 picoseconds. + Weight::from_parts(79_283_000, 0) + .saturating_add(Weight::from_parts(0, 35665)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_create_hierarchy() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_add_delegation() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 70340 + ); + } + #[test] + fn test_revoke_delegation_root_child() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3545 + ); + } + #[test] + fn test_revoke_delegation_leaf() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_remove_delegation() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_reclaim_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_can_attest() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_can_revoke() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_can_remove() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_change_deposit_owner() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); + } + #[test] + fn test_update_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 35665 + ); } } diff --git a/runtimes/spiritnet/src/weights/did.rs b/runtimes/spiritnet/src/weights/did.rs index 8d0ca94ad..a5c92f282 100644 --- a/runtimes/spiritnet/src/weights/did.rs +++ b/runtimes/spiritnet/src/weights/did.rs @@ -18,11 +18,11 @@ //! Autogenerated weights for `did` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain @@ -30,7 +30,6 @@ // pallet // --template=.maintain/runtime-weight-template.hbs // --header=HEADER-GPL -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --steps=50 @@ -50,710 +49,765 @@ use sp_std::marker::PhantomData; /// Weight functions for `did`. pub struct WeightInfo(PhantomData); impl did::WeightInfo for WeightInfo { - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:0 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:0 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:0 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ed25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1131` + // Measured: `361` // Estimated: `6204` - // Minimum execution time: 177_491_000 picoseconds. - Weight::from_parts(157_165_842, 0) + // Minimum execution time: 179_645_000 picoseconds. + Weight::from_parts(140_140_433, 0) .saturating_add(Weight::from_parts(0, 6204)) - // Standard Error: 12_830 - .saturating_add(Weight::from_parts(1_302_124, 0).saturating_mul(n.into())) - // Standard Error: 4_960 - .saturating_add(Weight::from_parts(10_348_415, 0).saturating_mul(c.into())) + // Standard Error: 66_286 + .saturating_add(Weight::from_parts(1_325_294, 0).saturating_mul(n.into())) + // Standard Error: 25_628 + .saturating_add(Weight::from_parts(27_990_119, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:0 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:0 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:0 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_sr25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1131` + // Measured: `361` // Estimated: `6204` - // Minimum execution time: 180_865_000 picoseconds. - Weight::from_parts(157_142_218, 0) + // Minimum execution time: 174_477_000 picoseconds. + Weight::from_parts(122_131_516, 0) .saturating_add(Weight::from_parts(0, 6204)) - // Standard Error: 20_565 - .saturating_add(Weight::from_parts(1_498_197, 0).saturating_mul(n.into())) - // Standard Error: 7_951 - .saturating_add(Weight::from_parts(11_317_743, 0).saturating_mul(c.into())) + // Standard Error: 53_422 + .saturating_add(Weight::from_parts(1_616_614, 0).saturating_mul(n.into())) + // Standard Error: 20_654 + .saturating_add(Weight::from_parts(36_170_906, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:0 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:0 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:0 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. - fn create_ecdsa_keys(n: u32, c: u32, ) -> Weight { + fn create_ecdsa_keys(_n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1131` + // Measured: `361` // Estimated: `6204` - // Minimum execution time: 165_151_000 picoseconds. - Weight::from_parts(147_963_958, 0) + // Minimum execution time: 160_082_000 picoseconds. + Weight::from_parts(149_830_386, 0) .saturating_add(Weight::from_parts(0, 6204)) - // Standard Error: 15_186 - .saturating_add(Weight::from_parts(1_129_798, 0).saturating_mul(n.into())) - // Standard Error: 5_871 - .saturating_add(Weight::from_parts(9_676_243, 0).saturating_mul(c.into())) + // Standard Error: 33_424 + .saturating_add(Weight::from_parts(22_228_318, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:25 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Did DidBlacklist (r:0 w:1) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:25 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidBlacklist` (r:0 w:1) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 25]`. fn delete(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `969 + c * (105 ±0)` - // Estimated: `5777 + c * (3090 ±0)` - // Minimum execution time: 52_816_000 picoseconds. - Weight::from_parts(53_595_561, 0) + // Measured: `724 + c * (105 ±0)` + // Estimated: `5777 + c * (6690 ±0)` + // Minimum execution time: 59_047_000 picoseconds. + Weight::from_parts(59_454_165, 0) .saturating_add(Weight::from_parts(0, 5777)) - // Standard Error: 4_301 - .saturating_add(Weight::from_parts(1_392_444, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Standard Error: 3_867 + .saturating_add(Weight::from_parts(1_196_375, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 3090).saturating_mul(c.into())) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:25 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Did DidBlacklist (r:0 w:1) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + .saturating_add(Weight::from_parts(0, 6690).saturating_mul(c.into())) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:25 w:25) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Did::DidBlacklist` (r:0 w:1) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 25]`. fn reclaim_deposit(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `969 + c * (105 ±0)` - // Estimated: `5777 + c * (3090 ±0)` - // Minimum execution time: 55_724_000 picoseconds. - Weight::from_parts(56_057_711, 0) + // Measured: `724 + c * (105 ±0)` + // Estimated: `5777 + c * (6690 ±0)` + // Minimum execution time: 61_094_000 picoseconds. + Weight::from_parts(61_617_698, 0) .saturating_add(Weight::from_parts(0, 5777)) - // Standard Error: 4_280 - .saturating_add(Weight::from_parts(1_391_321, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Standard Error: 17_827 + .saturating_add(Weight::from_parts(1_213_047, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 3090).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 6690).saturating_mul(c.into())) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn submit_did_call_ed25519_key() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `5777` - // Minimum execution time: 76_863_000 picoseconds. - Weight::from_parts(77_748_000, 0) + // Minimum execution time: 69_858_000 picoseconds. + Weight::from_parts(71_302_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn submit_did_call_sr25519_key() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `5777` - // Minimum execution time: 77_847_000 picoseconds. - Weight::from_parts(79_106_000, 0) + // Minimum execution time: 56_726_000 picoseconds. + Weight::from_parts(57_659_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn submit_did_call_ecdsa_key() -> Weight { // Proof Size summary in bytes: // Measured: `353` // Estimated: `5777` - // Minimum execution time: 65_432_000 picoseconds. - Weight::from_parts(66_250_000, 0) + // Minimum execution time: 59_676_000 picoseconds. + Weight::from_parts(60_698_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ed25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2099` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 68_011_000 picoseconds. - Weight::from_parts(69_449_000, 0) + // Minimum execution time: 73_313_000 picoseconds. + Weight::from_parts(74_181_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_sr25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 68_093_000 picoseconds. - Weight::from_parts(69_344_000, 0) + // Minimum execution time: 73_640_000 picoseconds. + Weight::from_parts(75_533_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ecdsa_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2140` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 67_561_000 picoseconds. - Weight::from_parts(69_549_000, 0) + // Minimum execution time: 73_143_000 picoseconds. + Weight::from_parts(74_398_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2137` + // Measured: `1772` // Estimated: `5777` - // Minimum execution time: 67_920_000 picoseconds. - Weight::from_parts(69_254_000, 0) + // Minimum execution time: 73_982_000 picoseconds. + Weight::from_parts(74_831_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2138` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_281_000 picoseconds. - Weight::from_parts(69_160_000, 0) + // Minimum execution time: 72_948_000 picoseconds. + Weight::from_parts(74_124_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2107` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 68_013_000 picoseconds. - Weight::from_parts(69_708_000, 0) + // Minimum execution time: 72_776_000 picoseconds. + Weight::from_parts(73_973_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 64_728_000 picoseconds. - Weight::from_parts(66_761_000, 0) + // Minimum execution time: 71_002_000 picoseconds. + Weight::from_parts(72_014_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2171` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_658_000 picoseconds. - Weight::from_parts(66_743_000, 0) + // Minimum execution time: 71_170_000 picoseconds. + Weight::from_parts(72_281_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2168` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 66_556_000 picoseconds. - Weight::from_parts(67_195_000, 0) + // Minimum execution time: 70_930_000 picoseconds. + Weight::from_parts(71_820_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2033` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_420_000 picoseconds. - Weight::from_parts(69_442_000, 0) + // Minimum execution time: 73_075_000 picoseconds. + Weight::from_parts(74_451_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 67_227_000 picoseconds. - Weight::from_parts(69_764_000, 0) + // Minimum execution time: 72_776_000 picoseconds. + Weight::from_parts(73_833_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn set_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2135` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 67_431_000 picoseconds. - Weight::from_parts(69_135_000, 0) + // Minimum execution time: 72_958_000 picoseconds. + Weight::from_parts(74_260_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2137` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 64_771_000 picoseconds. - Weight::from_parts(66_211_000, 0) + // Minimum execution time: 70_897_000 picoseconds. + Weight::from_parts(72_155_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2104` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_332_000 picoseconds. - Weight::from_parts(66_744_000, 0) + // Minimum execution time: 72_222_000 picoseconds. + Weight::from_parts(73_100_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2107` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 65_730_000 picoseconds. - Weight::from_parts(67_062_000, 0) + // Minimum execution time: 71_533_000 picoseconds. + Weight::from_parts(72_491_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn add_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2032` + // Measured: `1629` // Estimated: `5777` - // Minimum execution time: 67_168_000 picoseconds. - Weight::from_parts(68_547_000, 0) + // Minimum execution time: 73_781_000 picoseconds. + Weight::from_parts(74_430_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn add_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2032` + // Measured: `1629` // Estimated: `5777` - // Minimum execution time: 66_732_000 picoseconds. - Weight::from_parts(68_324_000, 0) + // Minimum execution time: 72_993_000 picoseconds. + Weight::from_parts(74_268_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn add_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2001` + // Measured: `1632` // Estimated: `5777` - // Minimum execution time: 66_688_000 picoseconds. - Weight::from_parts(68_169_000, 0) + // Minimum execution time: 74_264_000 picoseconds. + Weight::from_parts(75_192_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2170` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_451_000 picoseconds. - Weight::from_parts(67_307_000, 0) + // Minimum execution time: 71_437_000 picoseconds. + Weight::from_parts(72_238_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2170` + // Measured: `1735` // Estimated: `5777` - // Minimum execution time: 65_532_000 picoseconds. - Weight::from_parts(67_332_000, 0) + // Minimum execution time: 71_933_000 picoseconds. + Weight::from_parts(72_751_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `2141` + // Measured: `1738` // Estimated: `5777` - // Minimum execution time: 66_150_000 picoseconds. - Weight::from_parts(66_989_000, 0) - .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) - fn add_service_endpoint() -> Weight { - // Proof Size summary in bytes: - // Measured: `1438` - // Estimated: `5777` - // Minimum execution time: 74_910_000 picoseconds. - Weight::from_parts(76_673_000, 0) + // Minimum execution time: 71_479_000 picoseconds. + Weight::from_parts(72_521_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:1) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:1 w:1) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + fn add_service_endpoint() -> Weight { + // Proof Size summary in bytes: + // Measured: `1135` + // Estimated: `7680` + // Minimum execution time: 88_127_000 picoseconds. + Weight::from_parts(89_305_000, 0) + .saturating_add(Weight::from_parts(0, 7680)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::ServiceEndpoints` (r:1 w:1) + /// Proof: `Did::ServiceEndpoints` (`max_values`: None, `max_size`: Some(4215), added: 6690, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:1) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove_service_endpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `2088` - // Estimated: `5777` - // Minimum execution time: 73_804_000 picoseconds. - Weight::from_parts(75_667_000, 0) - .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `5318` + // Estimated: `7680` + // Minimum execution time: 82_371_000 picoseconds. + Weight::from_parts(83_453_000, 0) + .saturating_add(Weight::from_parts(0, 7680)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) } - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. fn signature_verification_sr25519(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `5777` - // Minimum execution time: 63_693_000 picoseconds. - Weight::from_parts(33_416_355, 0) + // Minimum execution time: 46_835_000 picoseconds. + Weight::from_parts(26_104_235, 0) .saturating_add(Weight::from_parts(0, 5777)) // Standard Error: 0 - .saturating_add(Weight::from_parts(4_311, 0).saturating_mul(l.into())) + .saturating_add(Weight::from_parts(4_280, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. fn signature_verification_ed25519(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `5777` - // Minimum execution time: 62_149_000 picoseconds. - Weight::from_parts(36_450_104, 0) + // Minimum execution time: 59_948_000 picoseconds. + Weight::from_parts(36_083_978, 0) .saturating_add(Weight::from_parts(0, 5777)) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_467, 0).saturating_mul(l.into())) + .saturating_add(Weight::from_parts(2_362, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) /// The range of component `l` is `[1, 5242880]`. fn signature_verification_ecdsa(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1627` // Estimated: `5777` - // Minimum execution time: 50_967_000 picoseconds. - Weight::from_parts(23_952_757, 0) + // Minimum execution time: 49_515_000 picoseconds. + Weight::from_parts(22_529_728, 0) .saturating_add(Weight::from_parts(0, 5777)) // Standard Error: 0 - .saturating_add(Weight::from_parts(1_158, 0).saturating_mul(l.into())) + .saturating_add(Weight::from_parts(1_165, 0).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `883` + // Measured: `519` // Estimated: `5777` - // Minimum execution time: 74_268_000 picoseconds. - Weight::from_parts(75_478_000, 0) + // Minimum execution time: 65_775_000 picoseconds. + Weight::from_parts(66_720_000, 0) .saturating_add(Weight::from_parts(0, 5777)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `Did::DidEndpointsCount` (r:1 w:0) + /// Proof: `Did::DidEndpointsCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `888` + // Measured: `463` // Estimated: `5777` - // Minimum execution time: 45_191_000 picoseconds. - Weight::from_parts(46_236_000, 0) + // Minimum execution time: 32_895_000 picoseconds. + Weight::from_parts(33_748_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(2)) } - - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `353` // Estimated: `5777` - // Minimum execution time: 186_836_000 picoseconds. - Weight::from_parts(189_377_000, 0) + // Minimum execution time: 17_099_000 picoseconds. + Weight::from_parts(17_324_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Did DidBlacklist (r:1 w:0) - /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:1) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: Did DidEndpointsCount (r:1 w:0) - /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Did::DidBlacklist` (r:1 w:0) + /// Proof: `Did::DidBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:1) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn create_from_account() -> Weight { // Proof Size summary in bytes: - // Measured: `999` + // Measured: `323` // Estimated: `6204` - // Minimum execution time: 1_008_739_000 picoseconds. - Weight::from_parts(1_020_810_000, 0) + // Minimum execution time: 77_079_000 picoseconds. + Weight::from_parts(77_988_000, 0) .saturating_add(Weight::from_parts(0, 6204)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } } @@ -1116,7 +1170,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5777 + > 7680 ); } #[test] @@ -1128,7 +1182,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5777 + > 7680 ); } #[test] @@ -1191,4 +1245,28 @@ mod tests { > 5777 ); } + #[test] + fn test_dispatch_as() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 5777 + ); + } + #[test] + fn test_create_from_account() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6204 + ); + } } diff --git a/runtimes/spiritnet/src/weights/frame_system.rs b/runtimes/spiritnet/src/weights/frame_system.rs index d7d81eb23..28e16b657 100644 --- a/runtimes/spiritnet/src/weights/frame_system.rs +++ b/runtimes/spiritnet/src/weights/frame_system.rs @@ -16,84 +16,226 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for frame_system +//! Autogenerated weights for `frame_system` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=frame-system // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/frame_system.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `frame_system`. +/// Weight functions for `frame_system`. pub struct WeightInfo(PhantomData); impl frame_system::WeightInfo for WeightInfo { - fn set_code() -> Weight { - Weight::from_parts(87_586_619_000, 1485) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) - } + /// The range of component `b` is `[0, 3932160]`. fn remark(b: u32, ) -> Weight { - Weight::from_parts(9_320_004 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_170_000 picoseconds. + Weight::from_parts(2_200_000, 0) + .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 - .saturating_add(Weight::from_parts(541 as u64, 0).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(391, 0).saturating_mul(b.into())) } + /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32, ) -> Weight { - Weight::from_parts(8_660_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_826_000 picoseconds. + Weight::from_parts(5_937_000, 0) + .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_041 as u64, 0).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(1_548, 0).saturating_mul(b.into())) } - // Storage: System Digest (r:1 w:1) - // Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - // Storage: unknown `0x3a686561707061676573` (r:0 w:1) - // Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1) + /// 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 { - Weight::from_parts(4_806_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `1485` + // Minimum execution time: 3_795_000 picoseconds. + Weight::from_parts(3_957_000, 0) + .saturating_add(Weight::from_parts(0, 1485)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Skipped Metadata (r:0 w:0) - // Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured) + /// 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: `127` + // Estimated: `1612` + // Minimum execution time: 101_619_838_000 picoseconds. + Weight::from_parts(103_955_584_000, 0) + .saturating_add(Weight::from_parts(0, 1612)) + .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 { - Weight::from_parts(3_953_000 as u64, 0) - // Standard Error: 2_457 - .saturating_add(Weight::from_parts(642_798 as u64, 0).saturating_mul(i as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_248_000 picoseconds. + Weight::from_parts(2_336_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_870 + .saturating_add(Weight::from_parts(736_156, 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: Skipped Metadata (max_values: None, max_size: None, mode: Measured) + /// 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 { - Weight::from_parts(2_542_000 as u64, 0) - // Standard Error: 890 - .saturating_add(Weight::from_parts(478_434 as u64, 0).saturating_mul(i as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_220_000 picoseconds. + Weight::from_parts(2_271_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 766 + .saturating_add(Weight::from_parts(529_745, 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: Skipped Metadata (max_values: None, max_size: None, mode: Measured) + /// 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 { - Weight::from_parts(7_173_000 as u64, 0) - // Standard Error: 1_138 - .saturating_add(Weight::from_parts(1_035_139 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) + // Proof Size summary in bytes: + // Measured: `82 + p * (69 ±0)` + // Estimated: `91 + p * (70 ±0)` + // Minimum execution time: 4_183_000 picoseconds. + Weight::from_parts(4_309_000, 0) + .saturating_add(Weight::from_parts(0, 91)) + // Standard Error: 923 + .saturating_add(Weight::from_parts(1_027_074, 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: 7_754_000 picoseconds. + Weight::from_parts(8_184_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: `149` + // Estimated: `1634` + // Minimum execution time: 104_821_125_000 picoseconds. + Weight::from_parts(106_523_390_000, 0) + .saturating_add(Weight::from_parts(0, 1634)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_set_heap_pages() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1485 + ); + } + #[test] + fn test_set_code() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1612 + ); + } + #[test] + fn test_kill_prefix() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 91 + ); + } + #[test] + fn test_apply_authorized_upgrade() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1634 + ); } } diff --git a/runtimes/spiritnet/src/weights/mod.rs b/runtimes/spiritnet/src/weights/mod.rs index 05c99bb41..fa21596b9 100644 --- a/runtimes/spiritnet/src/weights/mod.rs +++ b/runtimes/spiritnet/src/weights/mod.rs @@ -15,9 +15,12 @@ // along with this program. If not, see . // If you feel like getting in touch with us, you can do so at info@botlabs.org +#![allow(unused_doc_comments)] pub mod attestation; pub mod ctype; +pub mod cumulus_pallet_dmp_queue; +pub mod cumulus_pallet_parachain_system; pub mod delegation; pub mod did; pub mod frame_system; @@ -30,6 +33,7 @@ pub mod pallet_dip_provider; pub mod pallet_indices; pub mod pallet_inflation; pub mod pallet_membership; +pub mod pallet_message_queue; pub mod pallet_migration; pub mod pallet_multisig; pub mod pallet_preimage; diff --git a/runtimes/spiritnet/src/weights/pallet_balances.rs b/runtimes/spiritnet/src/weights/pallet_balances.rs index 040020621..f1584f926 100644 --- a/runtimes/spiritnet/src/weights/pallet_balances.rs +++ b/runtimes/spiritnet/src/weights/pallet_balances.rs @@ -15,28 +15,29 @@ // along with this program. If not, see . // If you feel like getting in touch with us, you can do so at info@botlabs.org + //! Autogenerated weights for `pallet_balances` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-balances // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_balances.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -48,106 +49,117 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_balances`. pub struct WeightInfo(PhantomData); impl pallet_balances::WeightInfo for WeightInfo { - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer_allow_death() -> Weight { // Proof Size summary in bytes: - // Measured: `712` + // Measured: `107` // Estimated: `6204` - // Minimum execution time: 43_972_000 picoseconds. - Weight::from_parts(44_794_000, 0) + // Minimum execution time: 57_631_000 picoseconds. + Weight::from_parts(58_505_000, 0) .saturating_add(Weight::from_parts(0, 6204)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: - // Measured: `270` + // Measured: `0` // Estimated: `3597` - // Minimum execution time: 26_271_000 picoseconds. - Weight::from_parts(26_738_000, 0) + // Minimum execution time: 36_640_000 picoseconds. + Weight::from_parts(37_398_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_set_balance_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `178` // Estimated: `3597` - // Minimum execution time: 10_400_000 picoseconds. - Weight::from_parts(10_892_000, 0) + // Minimum execution time: 15_909_000 picoseconds. + Weight::from_parts(16_256_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_set_balance_killing() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `178` // Estimated: `3597` - // Minimum execution time: 14_935_000 picoseconds. - Weight::from_parts(15_659_000, 0) + // Minimum execution time: 20_849_000 picoseconds. + Weight::from_parts(21_268_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: System Account (r:3 w:3) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:3 w:3) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `1022` + // Measured: `214` // Estimated: `8811` - // Minimum execution time: 45_735_000 picoseconds. - Weight::from_parts(46_929_000, 0) + // Minimum execution time: 60_228_000 picoseconds. + Weight::from_parts(60_901_000, 0) .saturating_add(Weight::from_parts(0, 8811)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { // Proof Size summary in bytes: - // Measured: `270` + // Measured: `0` // Estimated: `3597` - // Minimum execution time: 32_955_000 picoseconds. - Weight::from_parts(33_449_000, 0) + // Minimum execution time: 44_815_000 picoseconds. + Weight::from_parts(45_343_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_unreserve() -> Weight { // Proof Size summary in bytes: - // Measured: `481` + // Measured: `178` // Estimated: `3597` - // Minimum execution time: 12_195_000 picoseconds. - Weight::from_parts(12_649_000, 0) + // Minimum execution time: 18_525_000 picoseconds. + Weight::from_parts(18_948_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .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(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:999 w:999) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `u` is `[1, 1000]`. fn upgrade_accounts(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `6922 + u * (143 ±0)` + // Measured: `0 + u * (140 ±0)` // Estimated: `990 + u * (2607 ±0)` - // Minimum execution time: 11_393_000 picoseconds. - Weight::from_parts(11_699_000, 0) + // Minimum execution time: 17_564_000 picoseconds. + Weight::from_parts(17_764_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 5_685 - .saturating_add(Weight::from_parts(9_788_484, 0).saturating_mul(u.into())) + // Standard Error: 9_627 + .saturating_add(Weight::from_parts(12_525_557, 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, 2607).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_375_000 picoseconds. + Weight::from_parts(6_719_000, 0) + .saturating_add(Weight::from_parts(0, 1501)) + .saturating_add(T::DbWeight::get().reads(1)) + } } #[cfg(test)] @@ -248,4 +260,16 @@ mod tests { > 990 ); } + #[test] + fn test_force_adjust_total_issuance() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1501 + ); + } } diff --git a/runtimes/spiritnet/src/weights/pallet_collective.rs b/runtimes/spiritnet/src/weights/pallet_collective.rs index 46ef672b8..b25af6dcd 100644 --- a/runtimes/spiritnet/src/weights/pallet_collective.rs +++ b/runtimes/spiritnet/src/weights/pallet_collective.rs @@ -16,194 +16,431 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_collective +//! Autogenerated weights for `pallet_collective` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-collective // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_collective.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_collective`. +/// Weight functions for `pallet_collective`. pub struct WeightInfo(PhantomData); impl pallet_collective::WeightInfo for WeightInfo { - // Storage: TechnicalCommittee Members (r:1 w:1) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Proposals (r:1 w:0) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Voting (r:100 w:100) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalCommittee::Members` (r:1 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:100 w:100) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. + /// 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 { - Weight::from_parts(19_571_000 as u64, 0) - // Standard Error: 47_809 - .saturating_add(Weight::from_parts(5_442_912 as u64, 0).saturating_mul(m as u64)) - // Standard Error: 47_809 - .saturating_add(Weight::from_parts(8_270_610 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) - } - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0 + m * (3232 ±0) + p * (3194 ±0)` + // Estimated: `15736 + m * (1967 ±17) + p * (4336 ±17)` + // Minimum execution time: 16_685_000 picoseconds. + Weight::from_parts(16_956_000, 0) + .saturating_add(Weight::from_parts(0, 15736)) + // Standard Error: 44_797 + .saturating_add(Weight::from_parts(5_234_215, 0).saturating_mul(m.into())) + // Standard Error: 44_797 + .saturating_add(Weight::from_parts(7_755_919, 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, 4336).saturating_mul(p.into())) + } + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::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]`. + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[1, 100]`. fn execute(b: u32, m: u32, ) -> Weight { - Weight::from_parts(21_455_250 as u64, 0) - // Standard Error: 260 - .saturating_add(Weight::from_parts(839 as u64, 0).saturating_mul(b as u64)) - // Standard Error: 2_689 - .saturating_add(Weight::from_parts(7_635 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - } - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:1 w:0) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - fn propose_execute(b: u32, _m: u32, ) -> Weight { - Weight::from_parts(25_565_943 as u64, 0) - // Standard Error: 289 - .saturating_add(Weight::from_parts(881 as u64, 0).saturating_mul(b as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - } - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:1 w:1) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Proposals (r:1 w:1) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalCount (r:1 w:1) - // Proof Skipped: TechnicalCommittee ProposalCount (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Voting (r:0 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `69 + m * (32 ±0)` + // Estimated: `1555 + m * (32 ±0)` + // Minimum execution time: 14_351_000 picoseconds. + Weight::from_parts(13_477_719, 0) + .saturating_add(Weight::from_parts(0, 1555)) + // Standard Error: 8 + .saturating_add(Weight::from_parts(1_295, 0).saturating_mul(b.into())) + // Standard Error: 89 + .saturating_add(Weight::from_parts(16_127, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) + } + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:0) + /// Proof: `TechnicalCommittee::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]`. + /// 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: 17_138_000 picoseconds. + Weight::from_parts(16_077_023, 0) + .saturating_add(Weight::from_parts(0, 3535)) + // Standard Error: 9 + .saturating_add(Weight::from_parts(1_484, 0).saturating_mul(b.into())) + // Standard Error: 100 + .saturating_add(Weight::from_parts(27_070, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) + } + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalCount` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. + /// 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 { - Weight::from_parts(28_785_787 as u64, 0) - // Standard Error: 50 - .saturating_add(Weight::from_parts(2_981 as u64, 0).saturating_mul(b as u64)) - // Standard Error: 531 - .saturating_add(Weight::from_parts(18_747 as u64, 0).saturating_mul(m as u64)) - // Standard Error: 525 - .saturating_add(Weight::from_parts(110_930 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Voting (r:1 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `359 + m * (32 ±0) + p * (36 ±0)` + // Estimated: `3751 + m * (33 ±0) + p * (36 ±0)` + // Minimum execution time: 22_552_000 picoseconds. + Weight::from_parts(23_095_554, 0) + .saturating_add(Weight::from_parts(0, 3751)) + // Standard Error: 45 + .saturating_add(Weight::from_parts(2_123, 0).saturating_mul(b.into())) + // Standard Error: 472 + .saturating_add(Weight::from_parts(19_003, 0).saturating_mul(m.into())) + // Standard Error: 466 + .saturating_add(Weight::from_parts(128_591, 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: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[5, 100]`. + /// The range of component `m` is `[5, 100]`. fn vote(m: u32, ) -> Weight { - Weight::from_parts(25_582_176 as u64, 0) - // Standard Error: 250 - .saturating_add(Weight::from_parts(45_093 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalCommittee Voting (r:1 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Proposals (r:1 w:1) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:0 w:1) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `812 + m * (64 ±0)` + // Estimated: `4276 + m * (64 ±0)` + // Minimum execution time: 20_978_000 picoseconds. + Weight::from_parts(21_392_854, 0) + .saturating_add(Weight::from_parts(0, 4276)) + // Standard Error: 210 + .saturating_add(Weight::from_parts(32_335, 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: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. + /// 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 { - Weight::from_parts(31_951_147 as u64, 0) - // Standard Error: 441 - .saturating_add(Weight::from_parts(19_340 as u64, 0).saturating_mul(m as u64)) - // Standard Error: 430 - .saturating_add(Weight::from_parts(101_144 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: TechnicalCommittee Voting (r:1 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:1 w:1) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Proposals (r:1 w:1) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - fn close_early_approved(b: u32, _m: u32, p: u32, ) -> Weight { - Weight::from_parts(45_381_860 as u64, 0) - // Standard Error: 139 - .saturating_add(Weight::from_parts(2_394 as u64, 0).saturating_mul(b as u64)) - // Standard Error: 1_432 - .saturating_add(Weight::from_parts(141_110 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: TechnicalCommittee Voting (r:1 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:1 w:0) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Proposals (r:1 w:1) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:0 w:1) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `401 + m * (64 ±0) + p * (36 ±0)` + // Estimated: `3846 + m * (65 ±0) + p * (36 ±0)` + // Minimum execution time: 24_572_000 picoseconds. + Weight::from_parts(25_335_380, 0) + .saturating_add(Weight::from_parts(0, 3846)) + // Standard Error: 365 + .saturating_add(Weight::from_parts(19_942, 0).saturating_mul(m.into())) + // Standard Error: 356 + .saturating_add(Weight::from_parts(121_582, 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: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::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]`. + /// 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: `703 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` + // Estimated: `4020 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)` + // Minimum execution time: 34_419_000 picoseconds. + Weight::from_parts(35_964_556, 0) + .saturating_add(Weight::from_parts(0, 4020)) + // Standard Error: 122 + .saturating_add(Weight::from_parts(2_148, 0).saturating_mul(b.into())) + // Standard Error: 1_262 + .saturating_add(Weight::from_parts(157_631, 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: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:1 w:0) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) + /// Proof: `TechnicalCommittee::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]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. fn close_disapproved(m: u32, p: u32, ) -> Weight { - Weight::from_parts(34_477_728 as u64, 0) - // Standard Error: 439 - .saturating_add(Weight::from_parts(22_565 as u64, 0).saturating_mul(m as u64)) - // Standard Error: 428 - .saturating_add(Weight::from_parts(101_301 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: TechnicalCommittee Voting (r:1 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Members (r:1 w:0) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:1 w:0) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:1 w:1) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee Proposals (r:1 w:1) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `421 + m * (64 ±0) + p * (36 ±0)` + // Estimated: `3866 + m * (65 ±0) + p * (36 ±0)` + // Minimum execution time: 26_934_000 picoseconds. + Weight::from_parts(27_220_241, 0) + .saturating_add(Weight::from_parts(0, 3866)) + // Standard Error: 359 + .saturating_add(Weight::from_parts(24_030, 0).saturating_mul(m.into())) + // Standard Error: 350 + .saturating_add(Weight::from_parts(122_720, 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, 65).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into())) + } + /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:1 w:0) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:1 w:0) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:1 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::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]`. + /// 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 { - Weight::from_parts(46_992_807 as u64, 0) - // Standard Error: 91 - .saturating_add(Weight::from_parts(2_611 as u64, 0).saturating_mul(b as u64)) - // Standard Error: 968 - .saturating_add(Weight::from_parts(21_508 as u64, 0).saturating_mul(m as u64)) - // Standard Error: 944 - .saturating_add(Weight::from_parts(136_086 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(5 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: TechnicalCommittee Proposals (r:1 w:1) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Voting (r:0 w:1) - // Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured) - // Storage: TechnicalCommittee ProposalOf (r:0 w:1) - // Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `723 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` + // Estimated: `4040 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)` + // Minimum execution time: 36_209_000 picoseconds. + Weight::from_parts(38_240_698, 0) + .saturating_add(Weight::from_parts(0, 4040)) + // Standard Error: 123 + .saturating_add(Weight::from_parts(1_932, 0).saturating_mul(b.into())) + // Standard Error: 1_275 + .saturating_add(Weight::from_parts(158_786, 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: `TechnicalCommittee::Proposals` (r:1 w:1) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Voting` (r:0 w:1) + /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) + /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `p` is `[1, 100]`. + /// The range of component `p` is `[1, 100]`. fn disapprove_proposal(p: u32, ) -> Weight { - Weight::from_parts(20_274_995 as u64, 0) - // Standard Error: 408 - .saturating_add(Weight::from_parts(94_161 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `226 + p * (32 ±0)` + // Estimated: `1711 + p * (32 ±0)` + // Minimum execution time: 14_082_000 picoseconds. + Weight::from_parts(15_727_720, 0) + .saturating_add(Weight::from_parts(0, 1711)) + // Standard Error: 366 + .saturating_add(Weight::from_parts(112_884, 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())) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_set_members() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 15736 + ); + } + #[test] + fn test_execute() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1555 + ); + } + #[test] + fn test_propose_execute() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3535 + ); + } + #[test] + fn test_propose_proposed() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3751 + ); + } + #[test] + fn test_vote() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4276 + ); + } + #[test] + fn test_close_early_disapproved() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3846 + ); + } + #[test] + fn test_close_early_approved() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4020 + ); + } + #[test] + fn test_close_disapproved() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3866 + ); + } + #[test] + fn test_close_approved() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4040 + ); + } + #[test] + fn test_disapprove_proposal() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1711 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_democracy.rs b/runtimes/spiritnet/src/weights/pallet_democracy.rs index a8644da5b..2cf0da8c7 100644 --- a/runtimes/spiritnet/src/weights/pallet_democracy.rs +++ b/runtimes/spiritnet/src/weights/pallet_democracy.rs @@ -1,26 +1,43 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org //! Autogenerated weights for `pallet_democracy` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 -// --pallet=pallet_democracy +// --chain=spiritnet-dev +// --pallet=pallet-democracy // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_democracy.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -32,468 +49,484 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_democracy`. pub struct WeightInfo(PhantomData); impl pallet_democracy::WeightInfo for WeightInfo { - /// Storage: Democracy PublicPropCount (r:1 w:1) - /// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy PublicProps (r:1 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:1 w:0) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) - /// Storage: Democracy DepositOf (r:0 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicPropCount` (r:1 w:1) + /// Proof: `Democracy::PublicPropCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::PublicProps` (r:1 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:1 w:0) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) + /// Storage: `Democracy::DepositOf` (r:0 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) fn propose() -> Weight { // Proof Size summary in bytes: - // Measured: `4801` - // Estimated: `23413` - // Minimum execution time: 391_426_000 picoseconds. - Weight::from_parts(403_798_000, 0) - .saturating_add(Weight::from_parts(0, 23413)) + // Measured: `4738` + // Estimated: `18187` + // Minimum execution time: 39_624_000 picoseconds. + Weight::from_parts(41_093_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy DepositOf (r:1 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) + /// Storage: `Democracy::DepositOf` (r:1 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) fn second() -> Weight { // Proof Size summary in bytes: - // Measured: `3557` - // Estimated: `5705` - // Minimum execution time: 336_716_000 picoseconds. - Weight::from_parts(358_164_000, 0) - .saturating_add(Weight::from_parts(0, 5705)) + // Measured: `3493` + // Estimated: `6695` + // Minimum execution time: 36_401_000 picoseconds. + Weight::from_parts(37_075_000, 0) + .saturating_add(Weight::from_parts(0, 6695)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) fn vote_new() -> Weight { // Proof Size summary in bytes: - // Measured: `3785` - // Estimated: `12732` - // Minimum execution time: 463_501_000 picoseconds. - Weight::from_parts(476_502_000, 0) - .saturating_add(Weight::from_parts(0, 12732)) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `3475` + // Estimated: `7264` + // Minimum execution time: 50_499_000 picoseconds. + Weight::from_parts(51_659_000, 0) + .saturating_add(Weight::from_parts(0, 7264)) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) fn vote_existing() -> Weight { // Proof Size summary in bytes: - // Measured: `3807` - // Estimated: `12732` - // Minimum execution time: 457_181_000 picoseconds. - Weight::from_parts(477_086_000, 0) - .saturating_add(Weight::from_parts(0, 12732)) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `3497` + // Estimated: `7264` + // Minimum execution time: 53_370_000 picoseconds. + Weight::from_parts(54_268_000, 0) + .saturating_add(Weight::from_parts(0, 7264)) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy Cancellations (r:1 w:1) - /// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Cancellations` (r:1 w:1) + /// Proof: `Democracy::Cancellations` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn emergency_cancel() -> Weight { // Proof Size summary in bytes: - // Measured: `339` - // Estimated: `7720` - // Minimum execution time: 325_258_000 picoseconds. - Weight::from_parts(338_238_000, 0) - .saturating_add(Weight::from_parts(0, 7720)) + // Measured: `307` + // Estimated: `3674` + // Minimum execution time: 24_689_000 picoseconds. + Weight::from_parts(25_239_000, 0) + .saturating_add(Weight::from_parts(0, 3674)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy PublicProps (r:1 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy DepositOf (r:1 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:3 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:0 w:1) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::DepositOf` (r:1 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:3 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:0 w:1) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) fn blacklist() -> Weight { // Proof Size summary in bytes: - // Measured: `6455` - // Estimated: `39011` - // Minimum execution time: 950_796_000 picoseconds. - Weight::from_parts(977_506_000, 0) - .saturating_add(Weight::from_parts(0, 39011)) + // Measured: `5999` + // Estimated: `18187` + // Minimum execution time: 97_027_000 picoseconds. + Weight::from_parts(98_377_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(8)) } - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:1 w:0) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:1 w:0) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) fn external_propose() -> Weight { // Proof Size summary in bytes: - // Measured: `3385` - // Estimated: `6344` - // Minimum execution time: 167_103_000 picoseconds. - Weight::from_parts(173_910_000, 0) - .saturating_add(Weight::from_parts(0, 6344)) + // Measured: `3353` + // Estimated: `6707` + // Minimum execution time: 12_857_000 picoseconds. + Weight::from_parts(13_766_000, 0) + .saturating_add(Weight::from_parts(0, 6707)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:0 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:0 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) fn external_propose_majority() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 48_069_000 picoseconds. - Weight::from_parts(50_061_000, 0) + // Minimum execution time: 3_132_000 picoseconds. + Weight::from_parts(3_255_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:0 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:0 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) fn external_propose_default() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 48_294_000 picoseconds. - Weight::from_parts(49_893_000, 0) + // Minimum execution time: 3_104_000 picoseconds. + Weight::from_parts(3_249_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumCount (r:1 w:1) - /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:2) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:0 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumCount` (r:1 w:1) + /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:2) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) fn fast_track() -> Weight { // Proof Size summary in bytes: // Measured: `219` - // Estimated: `3654` - // Minimum execution time: 355_300_000 picoseconds. - Weight::from_parts(365_473_000, 0) - .saturating_add(Weight::from_parts(0, 3654)) + // Estimated: `3518` + // Minimum execution time: 23_852_000 picoseconds. + Weight::from_parts(24_262_000, 0) + .saturating_add(Weight::from_parts(0, 3518)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Democracy NextExternal (r:1 w:1) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy Blacklist (r:1 w:1) - /// Proof: Democracy Blacklist (max_values: None, max_size: Some(3242), added: 5717, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:1) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::Blacklist` (r:1 w:1) + /// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3242), added: 5717, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn veto_external() -> Weight { // Proof Size summary in bytes: - // Measured: `3488` - // Estimated: `8872` - // Minimum execution time: 336_000_000 picoseconds. - Weight::from_parts(348_874_000, 0) - .saturating_add(Weight::from_parts(0, 8872)) + // Measured: `3456` + // Estimated: `6707` + // Minimum execution time: 27_095_000 picoseconds. + Weight::from_parts(27_723_000, 0) + .saturating_add(Weight::from_parts(0, 6707)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy PublicProps (r:1 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy DepositOf (r:1 w:1) - /// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen) - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::DepositOf` (r:1 w:1) + /// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn cancel_proposal() -> Weight { // Proof Size summary in bytes: - // Measured: `6326` - // Estimated: `30644` - // Minimum execution time: 736_633_000 picoseconds. - Weight::from_parts(771_455_000, 0) - .saturating_add(Weight::from_parts(0, 30644)) + // Measured: `5902` + // Estimated: `18187` + // Minimum execution time: 80_185_000 picoseconds. + Weight::from_parts(81_709_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) } - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:0 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) fn cancel_referendum() -> Weight { // Proof Size summary in bytes: // Measured: `204` - // Estimated: `2528` - // Minimum execution time: 240_121_000 picoseconds. - Weight::from_parts(256_282_000, 0) - .saturating_add(Weight::from_parts(0, 2528)) + // Estimated: `3518` + // Minimum execution time: 17_627_000 picoseconds. + Weight::from_parts(18_045_000, 0) + .saturating_add(Weight::from_parts(0, 3518)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Democracy LowestUnbaked (r:1 w:1) - /// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumCount (r:1 w:0) - /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:0) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::LowestUnbaked` (r:1 w:1) + /// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumCount` (r:1 w:0) + /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn on_initialize_base(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `177 + r * (125 ±0)` - // Estimated: `998 + r * (2684 ±0)` - // Minimum execution time: 97_106_000 picoseconds. - Weight::from_parts(135_372_515, 0) - .saturating_add(Weight::from_parts(0, 998)) - // Standard Error: 50_648 - .saturating_add(Weight::from_parts(24_677_405, 0).saturating_mul(r.into())) + // Measured: `177 + r * (94 ±0)` + // Estimated: `1489 + r * (2684 ±0)` + // Minimum execution time: 5_790_000 picoseconds. + Weight::from_parts(9_106_364, 0) + .saturating_add(Weight::from_parts(0, 1489)) + // Standard Error: 5_924 + .saturating_add(Weight::from_parts(2_962_777, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy LowestUnbaked (r:1 w:1) - /// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumCount (r:1 w:0) - /// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - /// Storage: Democracy LastTabledWasExternal (r:1 w:0) - /// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// Storage: Democracy NextExternal (r:1 w:0) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy PublicProps (r:1 w:0) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:0) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::LowestUnbaked` (r:1 w:1) + /// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumCount` (r:1 w:0) + /// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Democracy::LastTabledWasExternal` (r:1 w:0) + /// Proof: `Democracy::LastTabledWasExternal` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Democracy::NextExternal` (r:1 w:0) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::PublicProps` (r:1 w:0) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn on_initialize_base_with_launch_period(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `177 + r * (125 ±0)` - // Estimated: `19318 + r * (2684 ±0)` - // Minimum execution time: 134_450_000 picoseconds. - Weight::from_parts(167_194_729, 0) - .saturating_add(Weight::from_parts(0, 19318)) - // Standard Error: 56_230 - .saturating_add(Weight::from_parts(24_558_645, 0).saturating_mul(r.into())) + // Measured: `177 + r * (94 ±0)` + // Estimated: `18187 + r * (2684 ±0)` + // Minimum execution time: 7_997_000 picoseconds. + Weight::from_parts(11_524_794, 0) + .saturating_add(Weight::from_parts(0, 18187)) + // Standard Error: 5_651 + .saturating_add(Weight::from_parts(2_960_951, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy VotingOf (r:3 w:3) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:99) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:3 w:3) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, 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(949), added: 3424, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn delegate(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1175 + r * (147 ±0)` - // Estimated: `22596 + r * (2684 ±0)` - // Minimum execution time: 443_753_000 picoseconds. - Weight::from_parts(491_067_445, 0) - .saturating_add(Weight::from_parts(0, 22596)) - // Standard Error: 64_544 - .saturating_add(Weight::from_parts(34_444_009, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `839 + r * (116 ±0)` + // Estimated: `19812 + r * (2684 ±0)` + // Minimum execution time: 42_844_000 picoseconds. + Weight::from_parts(49_137_786, 0) + .saturating_add(Weight::from_parts(0, 19812)) + // Standard Error: 6_433 + .saturating_add(Weight::from_parts(3_805_122, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy VotingOf (r:2 w:2) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Democracy ReferendumInfoOf (r:99 w:99) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:2 w:2) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) + /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn undelegate(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `498 + r * (147 ±0)` - // Estimated: `12548 + r * (2684 ±0)` - // Minimum execution time: 228_685_000 picoseconds. - Weight::from_parts(253_113_981, 0) - .saturating_add(Weight::from_parts(0, 12548)) - // Standard Error: 57_716 - .saturating_add(Weight::from_parts(34_357_704, 0).saturating_mul(r.into())) + // Measured: `434 + r * (116 ±0)` + // Estimated: `13538 + r * (2684 ±0)` + // Minimum execution time: 20_056_000 picoseconds. + Weight::from_parts(21_626_312, 0) + .saturating_add(Weight::from_parts(0, 13538)) + // Standard Error: 6_416 + .saturating_add(Weight::from_parts(3_809_905, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) .saturating_add(Weight::from_parts(0, 2684).saturating_mul(r.into())) } - /// Storage: Democracy PublicProps (r:0 w:1) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:0 w:1) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) fn clear_public_proposals() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 44_641_000 picoseconds. - Weight::from_parts(45_432_000, 0) + // Minimum execution time: 3_333_000 picoseconds. + Weight::from_parts(3_493_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn unlock_remove(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1174` - // Estimated: `12655` - // Minimum execution time: 284_595_000 picoseconds. - Weight::from_parts(327_755_779, 0) - .saturating_add(Weight::from_parts(0, 12655)) - // Standard Error: 11_210 - .saturating_add(Weight::from_parts(137_449, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `484` + // Estimated: `7264` + // Minimum execution time: 23_845_000 picoseconds. + Weight::from_parts(33_969_988, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 2_252 + .saturating_add(Weight::from_parts(38_640, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) - /// Storage: Balances Locks (r:1 w:1) - /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, 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(949), added: 3424, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. fn unlock_set(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1175 + r * (22 ±0)` - // Estimated: `12655` - // Minimum execution time: 300_979_000 picoseconds. - Weight::from_parts(315_902_954, 0) - .saturating_add(Weight::from_parts(0, 12655)) - // Standard Error: 10_152 - .saturating_add(Weight::from_parts(156_423, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `485 + r * (22 ±0)` + // Estimated: `7264` + // Minimum execution time: 33_356_000 picoseconds. + Weight::from_parts(35_414_023, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 666 + .saturating_add(Weight::from_parts(61_306, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. fn remove_vote(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `736 + r * (26 ±0)` - // Estimated: `8958` - // Minimum execution time: 173_714_000 picoseconds. - Weight::from_parts(188_190_880, 0) - .saturating_add(Weight::from_parts(0, 8958)) - // Standard Error: 16_349 - .saturating_add(Weight::from_parts(316_832, 0).saturating_mul(r.into())) + // Measured: `673 + r * (26 ±0)` + // Estimated: `7264` + // Minimum execution time: 17_148_000 picoseconds. + Weight::from_parts(19_947_582, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 989 + .saturating_add(Weight::from_parts(70_448, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:1) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy VotingOf (r:1 w:1) - /// Proof: Democracy VotingOf (max_values: None, max_size: Some(3799), added: 6274, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::VotingOf` (r:1 w:1) + /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3799), added: 6274, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. fn remove_other_vote(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `736 + r * (26 ±0)` - // Estimated: `8958` - // Minimum execution time: 172_766_000 picoseconds. - Weight::from_parts(191_041_808, 0) - .saturating_add(Weight::from_parts(0, 8958)) - // Standard Error: 6_999 - .saturating_add(Weight::from_parts(243_399, 0).saturating_mul(r.into())) + // Measured: `673 + r * (26 ±0)` + // Estimated: `7264` + // Minimum execution time: 17_415_000 picoseconds. + Weight::from_parts(20_079_464, 0) + .saturating_add(Weight::from_parts(0, 7264)) + // Standard Error: 971 + .saturating_add(Weight::from_parts(71_051, 0).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: Democracy NextExternal (r:1 w:0) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Preimage StatusFor (r:1 w:0) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:0 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:0) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, 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: `Democracy::MetadataOf` (r:0 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn set_external_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `356` - // Estimated: `3193` - // Minimum execution time: 243_012_000 picoseconds. - Weight::from_parts(248_418_000, 0) - .saturating_add(Weight::from_parts(0, 3193)) - .saturating_add(T::DbWeight::get().reads(2)) + // Estimated: `3556` + // Minimum execution time: 18_782_000 picoseconds. + Weight::from_parts(19_144_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy NextExternal (r:1 w:0) - /// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::NextExternal` (r:1 w:0) + /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn clear_external_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `219` - // Estimated: `3155` - // Minimum execution time: 204_309_000 picoseconds. - Weight::from_parts(209_560_000, 0) - .saturating_add(Weight::from_parts(0, 3155)) + // Estimated: `3518` + // Minimum execution time: 15_704_000 picoseconds. + Weight::from_parts(15_969_000, 0) + .saturating_add(Weight::from_parts(0, 3518)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy PublicProps (r:1 w:0) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Preimage StatusFor (r:1 w:0) - /// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:0 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:0) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, 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: `Democracy::MetadataOf` (r:0 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn set_proposal_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `4919` - // Estimated: `19763` - // Minimum execution time: 347_393_000 picoseconds. - Weight::from_parts(361_504_000, 0) - .saturating_add(Weight::from_parts(0, 19763)) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `4888` + // Estimated: `18187` + // Minimum execution time: 37_618_000 picoseconds. + Weight::from_parts(38_353_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy PublicProps (r:1 w:0) - /// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::PublicProps` (r:1 w:0) + /// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn clear_proposal_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `4786` - // Estimated: `19725` - // Minimum execution time: 321_543_000 picoseconds. - Weight::from_parts(334_617_000, 0) - .saturating_add(Weight::from_parts(0, 19725)) + // Measured: `4755` + // Estimated: `18187` + // Minimum execution time: 33_649_000 picoseconds. + Weight::from_parts(34_211_000, 0) + .saturating_add(Weight::from_parts(0, 18187)) .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: Democracy MetadataOf (r:0 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, 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: `Democracy::MetadataOf` (r:0 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn set_referendum_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `211` - // Estimated: `2566` - // Minimum execution time: 167_747_000 picoseconds. - Weight::from_parts(174_889_000, 0) - .saturating_add(Weight::from_parts(0, 2566)) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `3556` + // Minimum execution time: 15_670_000 picoseconds. + Weight::from_parts(16_046_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: Democracy ReferendumInfoOf (r:1 w:0) - /// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(209), added: 2684, mode: MaxEncodedLen) - /// Storage: Democracy MetadataOf (r:1 w:1) - /// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen) + /// Storage: `Democracy::ReferendumInfoOf` (r:1 w:0) + /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`) + /// Storage: `Democracy::MetadataOf` (r:1 w:1) + /// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) fn clear_referendum_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `239` - // Estimated: `5212` - // Minimum execution time: 220_441_000 picoseconds. - Weight::from_parts(224_200_000, 0) - .saturating_add(Weight::from_parts(0, 5212)) + // Estimated: `3674` + // Minimum execution time: 18_542_000 picoseconds. + Weight::from_parts(18_769_000, 0) + .saturating_add(Weight::from_parts(0, 3674)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -510,7 +543,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 23413 + > 18187 ); } #[test] @@ -522,7 +555,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5705 + > 6695 ); } #[test] @@ -534,7 +567,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12732 + > 7264 ); } #[test] @@ -546,7 +579,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12732 + > 7264 ); } #[test] @@ -558,7 +591,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 7720 + > 3674 ); } #[test] @@ -570,7 +603,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 39011 + > 18187 ); } #[test] @@ -582,7 +615,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 6344 + > 6707 ); } #[test] @@ -594,7 +627,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3654 + > 3518 ); } #[test] @@ -606,7 +639,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8872 + > 6707 ); } #[test] @@ -618,7 +651,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 30644 + > 18187 ); } #[test] @@ -630,7 +663,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2528 + > 3518 ); } #[test] @@ -642,7 +675,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 998 + > 1489 ); } #[test] @@ -654,7 +687,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 19318 + > 18187 ); } #[test] @@ -666,7 +699,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 22596 + > 19812 ); } #[test] @@ -678,7 +711,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12548 + > 13538 ); } #[test] @@ -690,7 +723,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12655 + > 7264 ); } #[test] @@ -702,7 +735,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 12655 + > 7264 ); } #[test] @@ -714,7 +747,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8958 + > 7264 ); } #[test] @@ -726,7 +759,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8958 + > 7264 ); } #[test] @@ -738,7 +771,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3193 + > 3556 ); } #[test] @@ -750,7 +783,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3155 + > 3518 ); } #[test] @@ -762,7 +795,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 19763 + > 18187 ); } #[test] @@ -774,7 +807,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 19725 + > 18187 ); } #[test] @@ -786,7 +819,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 2566 + > 3556 ); } #[test] @@ -798,7 +831,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 5212 + > 3674 ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_deposit_storage.rs b/runtimes/spiritnet/src/weights/pallet_deposit_storage.rs index aae7f4ca1..2f442bdff 100644 --- a/runtimes/spiritnet/src/weights/pallet_deposit_storage.rs +++ b/runtimes/spiritnet/src/weights/pallet_deposit_storage.rs @@ -18,8 +18,8 @@ //! Autogenerated weights for `pallet_deposit_storage` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-03-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 @@ -50,20 +50,20 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl pallet_deposit_storage::WeightInfo for WeightInfo { /// Storage: `DepositStorage::Deposits` (r:1 w:1) - /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(119), added: 2594, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(949), added: 3424, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) /// Storage: `DipProvider::IdentityCommitments` (r:1 w:1) - /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`) fn reclaim_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `888` - // Estimated: `4414` - // Minimum execution time: 56_916_000 picoseconds. - Weight::from_parts(57_375_000, 0) - .saturating_add(Weight::from_parts(0, 4414)) + // Measured: `577` + // Estimated: `3658` + // Minimum execution time: 49_943_000 picoseconds. + Weight::from_parts(50_147_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -80,7 +80,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4414 + > 3658 ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_did_lookup.rs b/runtimes/spiritnet/src/weights/pallet_did_lookup.rs index bf5be85e0..0f8f30fe0 100644 --- a/runtimes/spiritnet/src/weights/pallet_did_lookup.rs +++ b/runtimes/spiritnet/src/weights/pallet_did_lookup.rs @@ -16,131 +16,325 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_did_lookup +//! Autogenerated weights for `pallet_did_lookup` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-did-lookup // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_did_lookup.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_did_lookup`. +/// Weight functions for `pallet_did_lookup`. pub struct WeightInfo(PhantomData); impl pallet_did_lookup::WeightInfo for WeightInfo { - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:2) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_account_multisig_sr25519() -> Weight { - Weight::from_parts(104_704_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:2) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 130_333_000 picoseconds. + Weight::from_parts(131_946_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_account_multisig_ed25519() -> Weight { - Weight::from_parts(103_900_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:2) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 142_549_000 picoseconds. + Weight::from_parts(144_156_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_account_multisig_ecdsa() -> Weight { - Weight::from_parts(91_681_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:2) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 131_703_000 picoseconds. + Weight::from_parts(133_877_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_eth_account() -> Weight { - Weight::from_parts(93_205_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:2) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `449` + // Estimated: `3658` + // Minimum execution time: 134_857_000 picoseconds. + Weight::from_parts(135_895_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:2) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn associate_sender() -> Weight { - Weight::from_parts(44_691_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:1) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3658` + // Minimum execution time: 83_538_000 picoseconds. + Weight::from_parts(84_203_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(6)) + } + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:1) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) fn remove_sender_association() -> Weight { - Weight::from_parts(28_757_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:0 w:1) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `540` + // Estimated: `3658` + // Minimum execution time: 48_280_000 picoseconds. + Weight::from_parts(48_686_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `DidLookup::ConnectedAccounts` (r:0 w:1) + /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) fn remove_account_association() -> Weight { - Weight::from_parts(30_440_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `540` + // Estimated: `3658` + // Minimum execution time: 49_796_000 picoseconds. + Weight::from_parts(50_261_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { - Weight::from_parts(40_342_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: DidLookup ConnectedDids (r:1 w:1) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `647` + // Estimated: `6326` + // Minimum execution time: 78_581_000 picoseconds. + Weight::from_parts(79_327_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `DidLookup::ConnectedDids` (r:1 w:1) + /// Proof: `DidLookup::ConnectedDids` (`max_values`: None, `max_size`: Some(129), added: 2604, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { - Weight::from_parts(57_126_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `540` + // Estimated: `3658` + // Minimum execution time: 73_010_000 picoseconds. + Weight::from_parts(73_417_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_associate_account_multisig_sr25519() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_associate_account_multisig_ed25519() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_associate_account_multisig_ecdsa() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_associate_eth_account() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_associate_sender() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_remove_sender_association() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_remove_account_association() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_change_deposit_owner() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6326 + ); + } + #[test] + fn test_update_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_dip_provider.rs b/runtimes/spiritnet/src/weights/pallet_dip_provider.rs index 84cf35a11..e05380bf3 100644 --- a/runtimes/spiritnet/src/weights/pallet_dip_provider.rs +++ b/runtimes/spiritnet/src/weights/pallet_dip_provider.rs @@ -18,8 +18,8 @@ //! Autogenerated weights for `pallet_dip_provider` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-03-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 @@ -60,38 +60,38 @@ impl pallet_dip_provider::WeightInfo for WeightInfo /// Storage: `DidLookup::ConnectedAccounts` (r:11 w:0) /// Proof: `DidLookup::ConnectedAccounts` (`max_values`: None, `max_size`: Some(97), added: 2572, mode: `MaxEncodedLen`) /// Storage: `DipProvider::IdentityCommitments` (r:1 w:1) - /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`) /// Storage: `DepositStorage::Deposits` (r:1 w:1) - /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(119), added: 2594, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(949), added: 3424, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn commit_identity() -> Weight { // Proof Size summary in bytes: - // Measured: `3425` + // Measured: `2990` // Estimated: `29282` - // Minimum execution time: 257_952_000 picoseconds. - Weight::from_parts(270_779_000, 0) + // Minimum execution time: 383_619_000 picoseconds. + Weight::from_parts(390_717_000, 0) .saturating_add(Weight::from_parts(0, 29282)) .saturating_add(T::DbWeight::get().reads(19)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `DipProvider::IdentityCommitments` (r:1 w:1) - /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`) + /// Proof: `DipProvider::IdentityCommitments` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`) /// Storage: `DepositStorage::Deposits` (r:1 w:1) - /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`) + /// Proof: `DepositStorage::Deposits` (`max_values`: None, `max_size`: Some(119), added: 2594, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) - /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(949), added: 3424, mode: `MaxEncodedLen`) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn delete_identity_commitment() -> Weight { // Proof Size summary in bytes: - // Measured: `1083` - // Estimated: `4414` - // Minimum execution time: 67_617_000 picoseconds. - Weight::from_parts(69_004_000, 0) - .saturating_add(Weight::from_parts(0, 4414)) + // Measured: `671` + // Estimated: `3658` + // Minimum execution time: 55_412_000 picoseconds. + Weight::from_parts(56_013_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -120,7 +120,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4414 + > 3658 ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_indices.rs b/runtimes/spiritnet/src/weights/pallet_indices.rs index 5e9c08948..58ccc483a 100644 --- a/runtimes/spiritnet/src/weights/pallet_indices.rs +++ b/runtimes/spiritnet/src/weights/pallet_indices.rs @@ -16,75 +16,165 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_indices +//! Autogenerated weights for `pallet_indices` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-indices // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_indices.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_indices`. +/// Weight functions for `pallet_indices`. pub struct WeightInfo(PhantomData); impl pallet_indices::WeightInfo for WeightInfo { - // Storage: Indices Accounts (r:1 w:1) - // Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn claim() -> Weight { - Weight::from_parts(23_245_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `3538` + // Minimum execution time: 22_133_000 picoseconds. + Weight::from_parts(22_586_000, 0) + .saturating_add(Weight::from_parts(0, 3538)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Indices Accounts (r:1 w:1) - // Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn transfer() -> Weight { - Weight::from_parts(30_412_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `249` + // Estimated: `3597` + // Minimum execution time: 32_928_000 picoseconds. + Weight::from_parts(33_446_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Indices Accounts (r:1 w:1) - // Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn free() -> Weight { - Weight::from_parts(25_174_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `3538` + // Minimum execution time: 22_479_000 picoseconds. + Weight::from_parts(22_959_000, 0) + .saturating_add(Weight::from_parts(0, 3538)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Indices Accounts (r:1 w:1) - // Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { - Weight::from_parts(29_725_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `249` + // Estimated: `3597` + // Minimum execution time: 25_606_000 picoseconds. + Weight::from_parts(26_126_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Indices Accounts (r:1 w:1) - // Proof: Indices Accounts (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) + /// Storage: `Indices::Accounts` (r:1 w:1) + /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) fn freeze() -> Weight { - Weight::from_parts(27_373_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `3538` + // Minimum execution time: 23_412_000 picoseconds. + Weight::from_parts(23_830_000, 0) + .saturating_add(Weight::from_parts(0, 3538)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_claim() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3538 + ); + } + #[test] + fn test_transfer() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3597 + ); + } + #[test] + fn test_free() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3538 + ); + } + #[test] + fn test_force_transfer() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3597 + ); + } + #[test] + fn test_freeze() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3538 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_inflation.rs b/runtimes/spiritnet/src/weights/pallet_inflation.rs index 73a5f9ee2..dc886eb46 100644 --- a/runtimes/spiritnet/src/weights/pallet_inflation.rs +++ b/runtimes/spiritnet/src/weights/pallet_inflation.rs @@ -16,46 +16,73 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_inflation +//! Autogenerated weights for `pallet_inflation` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-inflation // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_inflation.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_inflation`. +/// Weight functions for `pallet_inflation`. pub struct WeightInfo(PhantomData); impl pallet_inflation::WeightInfo for WeightInfo { - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn on_initialize_mint_to_treasury() -> Weight { - Weight::from_parts(31_117_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `107` + // Estimated: `3597` + // Minimum execution time: 19_031_000 picoseconds. + Weight::from_parts(19_533_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } fn on_initialize_no_action() -> Weight { - Weight::from_parts(309_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 201_000 picoseconds. + Weight::from_parts(224_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_on_initialize_mint_to_treasury() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3597 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_membership.rs b/runtimes/spiritnet/src/weights/pallet_membership.rs index 9d821e8a6..42a2bc69f 100644 --- a/runtimes/spiritnet/src/weights/pallet_membership.rs +++ b/runtimes/spiritnet/src/weights/pallet_membership.rs @@ -16,142 +16,267 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_membership +//! Autogenerated weights for `pallet_membership` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-membership // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_membership.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_membership`. +/// Weight functions for `pallet_membership`. pub struct WeightInfo(PhantomData); impl pallet_membership::WeightInfo for WeightInfo { - // Storage: TechnicalMembership Members (r:1 w:1) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Proposals (r:1 w:0) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Members (r:0 w:1) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[1, 99]`. fn add_member(m: u32, ) -> Weight { - Weight::from_parts(24_167_195 as u64, 0) - // Standard Error: 7_543 - .saturating_add(Weight::from_parts(37_703 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `102 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 13_128_000 picoseconds. + Weight::from_parts(13_700_386, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 245 + .saturating_add(Weight::from_parts(24_779, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - // Storage: TechnicalMembership Members (r:1 w:1) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Proposals (r:1 w:0) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalMembership Prime (r:1 w:0) - // Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Members (r:0 w:1) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:0) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[2, 100]`. fn remove_member(m: u32, ) -> Weight { - Weight::from_parts(24_816_490 as u64, 0) - // Standard Error: 7_634 - .saturating_add(Weight::from_parts(55_649 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_295_000 picoseconds. + Weight::from_parts(15_737_436, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 289 + .saturating_add(Weight::from_parts(25_549, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - // Storage: TechnicalMembership Members (r:1 w:1) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Proposals (r:1 w:0) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalMembership Prime (r:1 w:0) - // Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Members (r:0 w:1) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:0) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[2, 100]`. fn swap_member(m: u32, ) -> Weight { - Weight::from_parts(26_022_922 as u64, 0) - // Standard Error: 8_446 - .saturating_add(Weight::from_parts(67_445 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_774_000 picoseconds. + Weight::from_parts(16_241_962, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 315 + .saturating_add(Weight::from_parts(38_272, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - // Storage: TechnicalMembership Members (r:1 w:1) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Proposals (r:1 w:0) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalMembership Prime (r:1 w:0) - // Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Members (r:0 w:1) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:0) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[1, 100]`. fn reset_member(m: u32, ) -> Weight { - Weight::from_parts(27_154_127 as u64, 0) - // Standard Error: 9_682 - .saturating_add(Weight::from_parts(167_406 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_110_000 picoseconds. + Weight::from_parts(16_414_722, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 520 + .saturating_add(Weight::from_parts(150_482, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - // Storage: TechnicalMembership Members (r:1 w:1) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Proposals (r:1 w:0) - // Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalMembership Prime (r:1 w:1) - // Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Members (r:0 w:1) - // Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:1) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) + /// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalMembership::Prime` (r:1 w:1) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Members` (r:0 w:1) + /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[1, 100]`. fn change_key(m: u32, ) -> Weight { - Weight::from_parts(25_355_298 as u64, 0) - // Standard Error: 8_498 - .saturating_add(Weight::from_parts(85_642 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `206 + m * (64 ±0)` + // Estimated: `4687 + m * (64 ±0)` + // Minimum execution time: 15_940_000 picoseconds. + Weight::from_parts(16_886_000, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 388 + .saturating_add(Weight::from_parts(37_450, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: TechnicalMembership Prime (r:0 w:1) - // Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Members` (r:1 w:0) + /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`) + /// Storage: `TechnicalMembership::Prime` (r:0 w:1) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[1, 100]`. fn set_prime(m: u32, ) -> Weight { - Weight::from_parts(10_196_403 as u64, 0) - // Standard Error: 2_878 - .saturating_add(Weight::from_parts(19_764 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `32 + m * (32 ±0)` + // Estimated: `4687 + m * (32 ±0)` + // Minimum execution time: 7_035_000 picoseconds. + Weight::from_parts(7_569_844, 0) + .saturating_add(Weight::from_parts(0, 4687)) + // Standard Error: 205 + .saturating_add(Weight::from_parts(10_559, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) } - // Storage: TechnicalMembership Prime (r:0 w:1) - // Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: TechnicalCommittee Prime (r:0 w:1) - // Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `TechnicalMembership::Prime` (r:0 w:1) + /// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) + /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// The range of component `m` is `[1, 100]`. fn clear_prime(m: u32, ) -> Weight { - Weight::from_parts(4_737_401 as u64, 0) - // Standard Error: 1_575 - .saturating_add(Weight::from_parts(4_713 as u64, 0).saturating_mul(m as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_492_000 picoseconds. + Weight::from_parts(2_695_321, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 78 + .saturating_add(Weight::from_parts(1_040, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().writes(2)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_add_member() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4687 + ); + } + #[test] + fn test_remove_member() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4687 + ); + } + #[test] + fn test_swap_member() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4687 + ); + } + #[test] + fn test_reset_member() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4687 + ); + } + #[test] + fn test_change_key() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4687 + ); + } + #[test] + fn test_set_prime() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4687 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_message_queue.rs b/runtimes/spiritnet/src/weights/pallet_message_queue.rs new file mode 100644 index 000000000..f95a6f09f --- /dev/null +++ b/runtimes/spiritnet/src/weights/pallet_message_queue.rs @@ -0,0 +1,297 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org + +//! Autogenerated weights for `pallet_message_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/kilt-parachain +// benchmark +// pallet +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 +// --steps=50 +// --repeat=20 +// --chain=spiritnet-dev +// --pallet=pallet_message_queue +// --extrinsic=* +// --output=./runtimes/spiritnet/src/weights/pallet_message_queue.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::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: `327` + // Estimated: `6044` + // Minimum execution time: 12_729_000 picoseconds. + Weight::from_parts(13_153_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: `322` + // Estimated: `6044` + // Minimum execution time: 11_572_000 picoseconds. + Weight::from_parts(11_995_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: `109` + // Estimated: `3517` + // Minimum execution time: 5_165_000 picoseconds. + Weight::from_parts(5_417_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: `176` + // Estimated: `69050` + // Minimum execution time: 6_834_000 picoseconds. + Weight::from_parts(6_990_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: `176` + // Estimated: `69050` + // Minimum execution time: 6_877_000 picoseconds. + Weight::from_parts(7_139_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: 164_520_000 picoseconds. + Weight::from_parts(166_219_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: `275` + // Estimated: `3517` + // Minimum execution time: 7_656_000 picoseconds. + Weight::from_parts(7_864_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: `65771` + // Estimated: `69050` + // Minimum execution time: 58_757_000 picoseconds. + Weight::from_parts(59_148_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: `65771` + // Estimated: `69050` + // Minimum execution time: 75_297_000 picoseconds. + Weight::from_parts(75_702_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: `65771` + // Estimated: `69050` + // Minimum execution time: 117_824_000 picoseconds. + Weight::from_parts(118_904_000, 0) + .saturating_add(Weight::from_parts(0, 69050)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_ready_ring_knit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6044 + ); + } + #[test] + fn test_ready_ring_unknit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6044 + ); + } + #[test] + fn test_service_queue_base() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3517 + ); + } + #[test] + fn test_service_page_base_completion() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_service_page_base_no_completion() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_bump_service_head() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3517 + ); + } + #[test] + fn test_reap_page() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_execute_overweight_page_removed() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } + #[test] + fn test_execute_overweight_page_updated() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 69050 + ); + } +} diff --git a/runtimes/spiritnet/src/weights/pallet_migration.rs b/runtimes/spiritnet/src/weights/pallet_migration.rs index b50d95ef9..5913eb16f 100644 --- a/runtimes/spiritnet/src/weights/pallet_migration.rs +++ b/runtimes/spiritnet/src/weights/pallet_migration.rs @@ -1,26 +1,43 @@ +// KILT Blockchain – https://botlabs.org +// Copyright (C) 2019-2024 BOTLabs GmbH + +// The KILT Blockchain 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. + +// The KILT Blockchain 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 this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@botlabs.org //! Autogenerated weights for `pallet_migration` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-migration // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./runtimes/spiritnet/src/weights/pallet-migration.rs -// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/spiritnet/src/weights/pallet_migration.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -32,83 +49,83 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_migration`. pub struct WeightInfo(PhantomData); impl pallet_migration::WeightInfo for WeightInfo { - /// Storage: Migration MigratedKeys (r:1 w:1) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Attestation Attestations (r:1 w:0) - /// Proof: Attestation Attestations (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Attestation::Attestations` (r:1 w:0) + /// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn attestation_migration_weight() -> Weight { // Proof Size summary in bytes: - // Measured: `846` - // Estimated: `4414` - // Minimum execution time: 69_050_000 picoseconds. - Weight::from_parts(70_003_000, 0) - .saturating_add(Weight::from_parts(0, 4414)) + // Measured: `307` + // Estimated: `3660` + // Minimum execution time: 61_575_000 picoseconds. + Weight::from_parts(62_230_000, 0) + .saturating_add(Weight::from_parts(0, 3660)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn delegation_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3513` - // Minimum execution time: 19_359_000 picoseconds. - Weight::from_parts(19_697_000, 0) + // Minimum execution time: 15_508_000 picoseconds. + Weight::from_parts(15_949_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Migration MigratedKeys (r:1 w:1) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did Did (r:1 w:0) - /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) - /// Storage: System Account (r:1 w:1) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - /// Storage: Balances Holds (r:1 w:1) - /// Proof: Balances Holds (max_values: None, max_size: Some(949), added: 3424, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Did::Did` (r:1 w:0) + /// Proof: `Did::Did` (`max_values`: None, `max_size`: Some(2312), added: 4787, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn did_migration_weight() -> Weight { // Proof Size summary in bytes: - // Measured: `1002` + // Measured: `463` // Estimated: `5777` - // Minimum execution time: 71_451_000 picoseconds. - Weight::from_parts(72_398_000, 0) + // Minimum execution time: 63_142_000 picoseconds. + Weight::from_parts(63_880_000, 0) .saturating_add(Weight::from_parts(0, 5777)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn did_lookup_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `78` // Estimated: `3513` - // Minimum execution time: 17_953_000 picoseconds. - Weight::from_parts(18_185_000, 0) + // Minimum execution time: 14_204_000 picoseconds. + Weight::from_parts(14_445_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn w3n_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `78` // Estimated: `3513` - // Minimum execution time: 17_962_000 picoseconds. - Weight::from_parts(18_242_000, 0) + // Minimum execution time: 14_369_000 picoseconds. + Weight::from_parts(14_628_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } - /// Storage: Migration MigratedKeys (r:1 w:0) - /// Proof: Migration MigratedKeys (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn public_credentials_migration_weight() -> Weight { // Proof Size summary in bytes: // Measured: `78` // Estimated: `3513` - // Minimum execution time: 22_277_000 picoseconds. - Weight::from_parts(22_534_000, 0) + // Minimum execution time: 18_296_000 picoseconds. + Weight::from_parts(18_555_000, 0) .saturating_add(Weight::from_parts(0, 3513)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -125,7 +142,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 4414 + > 3660 ); } #[test] diff --git a/runtimes/spiritnet/src/weights/pallet_preimage.rs b/runtimes/spiritnet/src/weights/pallet_preimage.rs index ba2505ca0..77911d7df 100644 --- a/runtimes/spiritnet/src/weights/pallet_preimage.rs +++ b/runtimes/spiritnet/src/weights/pallet_preimage.rs @@ -16,138 +16,412 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_preimage +//! Autogenerated weights for `pallet_preimage` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-preimage // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_preimage.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_preimage`. +/// Weight functions for `pallet_preimage`. pub struct WeightInfo(PhantomData); impl pallet_preimage::WeightInfo for WeightInfo { - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (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) + /// 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(193), added: 2668, 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 { - Weight::from_parts(45_064_000 as u64, 0) - // Standard Error: 1 - .saturating_add(Weight::from_parts(2_741 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (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) + // Proof Size summary in bytes: + // Measured: `109` + // Estimated: `3658` + // Minimum execution time: 47_008_000 picoseconds. + Weight::from_parts(47_322_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(2_276, 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 { - Weight::from_parts(27_532_000 as u64, 0) - // Standard Error: 1 - .saturating_add(Weight::from_parts(2_744 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (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) + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 16_495_000 picoseconds. + Weight::from_parts(16_647_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(2_267, 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 { - Weight::from_parts(26_595_000 as u64, 0) - // Standard Error: 1 - .saturating_add(Weight::from_parts(2_743 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (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) + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 15_966_000 picoseconds. + Weight::from_parts(16_191_000, 0) + .saturating_add(Weight::from_parts(0, 3556)) + // Standard Error: 0 + .saturating_add(Weight::from_parts(2_266, 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(193), added: 2668, 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 { - Weight::from_parts(39_718_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (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) + // Proof Size summary in bytes: + // Measured: `311` + // Estimated: `3658` + // Minimum execution time: 55_462_000 picoseconds. + Weight::from_parts(56_851_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .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 { - Weight::from_parts(25_937_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `211` + // Estimated: `3556` + // Minimum execution time: 26_823_000 picoseconds. + Weight::from_parts(28_313_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:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_preimage() -> Weight { - Weight::from_parts(23_314_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `255` + // Estimated: `3556` + // Minimum execution time: 23_099_000 picoseconds. + Weight::from_parts(26_051_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:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_no_deposit_preimage() -> Weight { - Weight::from_parts(14_546_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `211` + // Estimated: `3556` + // Minimum execution time: 14_172_000 picoseconds. + Weight::from_parts(15_296_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:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_unnoted_preimage() -> Weight { - Weight::from_parts(16_369_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `109` + // Estimated: `3556` + // Minimum execution time: 13_586_000 picoseconds. + Weight::from_parts(14_280_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:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn request_requested_preimage() -> Weight { - Weight::from_parts(10_153_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (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) + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 10_469_000 picoseconds. + Weight::from_parts(10_857_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 { - Weight::from_parts(24_453_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `211` + // Estimated: `3556` + // Minimum execution time: 21_120_000 picoseconds. + Weight::from_parts(22_262_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:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn unrequest_unnoted_preimage() -> Weight { - Weight::from_parts(10_128_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 10_555_000 picoseconds. + Weight::from_parts(10_859_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:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, 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`) fn unrequest_multi_referenced_preimage() -> Weight { - Weight::from_parts(10_132_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `173` + // Estimated: `3556` + // Minimum execution time: 10_616_000 picoseconds. + Weight::from_parts(10_905_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(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1023 w:1023) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 * (231 ±0)` + // Estimated: `990 + n * (2668 ±0)` + // Minimum execution time: 51_734_000 picoseconds. + Weight::from_parts(52_052_000, 0) + .saturating_add(Weight::from_parts(0, 990)) + // Standard Error: 30_070 + .saturating_add(Weight::from_parts(47_723_490, 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, 2668).saturating_mul(n.into())) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_note_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_note_requested_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_note_no_deposit_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_unnote_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_unnote_no_deposit_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_request_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_request_no_deposit_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_request_unnoted_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_request_requested_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_unrequest_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_unrequest_unnoted_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_unrequest_multi_referenced_preimage() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3556 + ); + } + #[test] + fn test_ensure_updated() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 990 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_proxy.rs b/runtimes/spiritnet/src/weights/pallet_proxy.rs index 8af1a0971..78c683d06 100644 --- a/runtimes/spiritnet/src/weights/pallet_proxy.rs +++ b/runtimes/spiritnet/src/weights/pallet_proxy.rs @@ -16,137 +16,330 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_proxy +//! Autogenerated weights for `pallet_proxy` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-proxy // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_proxy.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_proxy`. +/// 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(467), added: 2942, mode: MaxEncodedLen) - fn proxy(_p: u32, ) -> Weight { - Weight::from_parts(24_929_956 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - } - // Storage: Proxy Proxies (r:1 w:0) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) - // Storage: Proxy Announcements (r:1 w:1) - // Proof: Proxy Announcements (max_values: None, max_size: Some(777), added: 3252, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - fn proxy_announced(a: u32, _p: u32, ) -> Weight { - Weight::from_parts(41_483_872 as u64, 0) - // Standard Error: 43_404 - .saturating_add(Weight::from_parts(122_506 as u64, 0).saturating_mul(a as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Proxy Announcements (r:1 w:1) - // Proof: Proxy Announcements (max_values: None, max_size: Some(777), added: 3252, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Proxy::Proxies` (r:1 w:0) + /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(467), added: 2942, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 9]`. + fn proxy(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 14_301_000 picoseconds. + Weight::from_parts(14_798_342, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_657 + .saturating_add(Weight::from_parts(66_554, 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(467), added: 2942, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 9]`. + /// The range of component `p` is `[1, 9]`. + fn proxy_announced(a: u32, p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `425 + a * (72 ±0) + p * (41 ±0)` + // Estimated: `4242` + // Minimum execution time: 35_230_000 picoseconds. + Weight::from_parts(35_571_301, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 3_463 + .saturating_add(Weight::from_parts(186_729, 0).saturating_mul(a.into())) + // Standard Error: 3_844 + .saturating_add(Weight::from_parts(35_034, 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(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 9]`. + /// The range of component `p` is `[1, 9]`. fn remove_announcement(a: u32, _p: u32, ) -> Weight { - Weight::from_parts(25_637_685 as u64, 0) - // Standard Error: 31_182 - .saturating_add(Weight::from_parts(310_154 as u64, 0).saturating_mul(a as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Proxy Announcements (r:1 w:1) - // Proof: Proxy Announcements (max_values: None, max_size: Some(777), added: 3252, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - fn reject_announcement(a: u32, p: u32, ) -> Weight { - Weight::from_parts(23_441_094 as u64, 0) - // Standard Error: 42_108 - .saturating_add(Weight::from_parts(486_177 as u64, 0).saturating_mul(a as u64)) - // Standard Error: 46_746 - .saturating_add(Weight::from_parts(189_817 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Proxy Proxies (r:1 w:0) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) - // Storage: Proxy Announcements (r:1 w:1) - // Proof: Proxy Announcements (max_values: None, max_size: Some(777), added: 3252, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `340 + a * (72 ±0)` + // Estimated: `4242` + // Minimum execution time: 24_384_000 picoseconds. + Weight::from_parts(25_318_307, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_449 + .saturating_add(Weight::from_parts(156_741, 0).saturating_mul(a.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(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 9]`. + /// The range of component `p` is `[1, 9]`. + fn reject_announcement(a: u32, _p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `340 + a * (72 ±0)` + // Estimated: `4242` + // Minimum execution time: 24_120_000 picoseconds. + Weight::from_parts(25_081_883, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_247 + .saturating_add(Weight::from_parts(142_629, 0).saturating_mul(a.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(467), added: 2942, mode: `MaxEncodedLen`) + /// Storage: `Proxy::Announcements` (r:1 w:1) + /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(777), added: 3252, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// The range of component `a` is `[0, 9]`. + /// The range of component `p` is `[1, 9]`. fn announce(a: u32, p: u32, ) -> Weight { - Weight::from_parts(33_809_817 as u64, 0) - // Standard Error: 63_991 - .saturating_add(Weight::from_parts(546_841 as u64, 0).saturating_mul(a as u64)) - // Standard Error: 71_040 - .saturating_add(Weight::from_parts(163_484 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `353 + a * (72 ±0) + p * (41 ±0)` + // Estimated: `4242` + // Minimum execution time: 31_227_000 picoseconds. + Weight::from_parts(31_864_498, 0) + .saturating_add(Weight::from_parts(0, 4242)) + // Standard Error: 2_521 + .saturating_add(Weight::from_parts(149_487, 0).saturating_mul(a.into())) + // Standard Error: 2_799 + .saturating_add(Weight::from_parts(11_201, 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(467), added: 2942, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 9]`. fn add_proxy(p: u32, ) -> Weight { - Weight::from_parts(26_271_824 as u64, 0) - // Standard Error: 68_528 - .saturating_add(Weight::from_parts(739_793 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) - fn remove_proxy(_p: u32, ) -> Weight { - Weight::from_parts(31_310_212 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 23_166_000 picoseconds. + Weight::from_parts(23_899_961, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_381 + .saturating_add(Weight::from_parts(63_174, 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(467), added: 2942, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 9]`. + fn remove_proxy(p: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 23_566_000 picoseconds. + Weight::from_parts(24_125_110, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_389 + .saturating_add(Weight::from_parts(81_452, 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(467), added: 2942, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 9]`. fn remove_proxies(p: u32, ) -> Weight { - Weight::from_parts(22_999_382 as u64, 0) - // Standard Error: 77_197 - .saturating_add(Weight::from_parts(89_076 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `127 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 20_971_000 picoseconds. + Weight::from_parts(21_631_612, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_309 + .saturating_add(Weight::from_parts(73_744, 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(467), added: 2942, mode: `MaxEncodedLen`) + /// The range of component `p` is `[1, 9]`. fn create_pure(p: u32, ) -> Weight { - Weight::from_parts(29_724_514 as u64, 0) - // Standard Error: 117_550 - .saturating_add(Weight::from_parts(1_203_667 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(467), added: 2942, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `139` + // Estimated: `3932` + // Minimum execution time: 24_930_000 picoseconds. + Weight::from_parts(25_649_551, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_172 + .saturating_add(Weight::from_parts(20_799, 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(467), added: 2942, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 8]`. fn kill_pure(p: u32, ) -> Weight { - Weight::from_parts(23_020_019 as u64, 0) - // Standard Error: 63_735 - .saturating_add(Weight::from_parts(272_602 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `168 + p * (41 ±0)` + // Estimated: `3932` + // Minimum execution time: 22_182_000 picoseconds. + Weight::from_parts(22_735_132, 0) + .saturating_add(Weight::from_parts(0, 3932)) + // Standard Error: 2_459 + .saturating_add(Weight::from_parts(78_670, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_proxy() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3932 + ); + } + #[test] + fn test_proxy_announced() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4242 + ); + } + #[test] + fn test_remove_announcement() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4242 + ); + } + #[test] + fn test_reject_announcement() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4242 + ); + } + #[test] + fn test_announce() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4242 + ); + } + #[test] + fn test_add_proxy() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3932 + ); + } + #[test] + fn test_remove_proxy() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3932 + ); + } + #[test] + fn test_remove_proxies() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3932 + ); + } + #[test] + fn test_create_pure() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3932 + ); + } + #[test] + fn test_kill_pure() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3932 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_scheduler.rs b/runtimes/spiritnet/src/weights/pallet_scheduler.rs index eec70e8d5..f33fbe031 100644 --- a/runtimes/spiritnet/src/weights/pallet_scheduler.rs +++ b/runtimes/spiritnet/src/weights/pallet_scheduler.rs @@ -16,123 +16,281 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_scheduler +//! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-scheduler // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_scheduler.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_scheduler`. +/// 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(8), added: 503, mode: MaxEncodedLen) + /// Storage: `Scheduler::IncompleteSince` (r:1 w:1) + /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn service_agendas_base() -> Weight { - Weight::from_parts(7_259_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `36` + // Estimated: `1493` + // Minimum execution time: 2_704_000 picoseconds. + Weight::from_parts(2_856_000, 0) + .saturating_add(Weight::from_parts(0, 1493)) + .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(39167), added: 41642, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 50]`. fn service_agenda_base(s: u32, ) -> Weight { - Weight::from_parts(8_732_296 as u64, 0) - // Standard Error: 8_385 - .saturating_add(Weight::from_parts(1_201_595 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `83 + s * (181 ±0)` + // Estimated: `42632` + // Minimum execution time: 3_299_000 picoseconds. + Weight::from_parts(7_000_035, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 1_779 + .saturating_add(Weight::from_parts(460_372, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } fn service_task_base() -> Weight { - Weight::from_parts(6_936_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_435_000 picoseconds. + Weight::from_parts(3_651_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) - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) + /// Storage: `Preimage::PreimageFor` (r:1 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) + /// 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 { - Weight::from_parts(36_011_000 as u64, 0) - // Standard Error: 15 - .saturating_add(Weight::from_parts(1_768 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Scheduler Lookup (r:0 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `246 + s * (1 ±0)` + // Estimated: `3711 + s * (1 ±0)` + // Minimum execution time: 18_570_000 picoseconds. + Weight::from_parts(18_744_000, 0) + .saturating_add(Weight::from_parts(0, 3711)) + // Standard Error: 19 + .saturating_add(Weight::from_parts(1_753, 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(52), added: 2527, mode: `MaxEncodedLen`) fn service_task_named() -> Weight { - Weight::from_parts(8_568_000 as u64, 0) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_090_000 picoseconds. + Weight::from_parts(5_248_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) } fn service_task_periodic() -> Weight { - Weight::from_parts(6_813_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_434_000 picoseconds. + Weight::from_parts(3_559_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_signed() -> Weight { - Weight::from_parts(3_487_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_287_000 picoseconds. + Weight::from_parts(2_404_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_unsigned() -> Weight { - Weight::from_parts(4_863_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_250_000 picoseconds. + Weight::from_parts(2_443_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(39167), added: 41642, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 49]`. fn schedule(s: u32, ) -> Weight { - Weight::from_parts(22_448_494 as u64, 0) - // Standard Error: 12_694 - .saturating_add(Weight::from_parts(1_153_307 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39167), added: 41642, mode: MaxEncodedLen) - // Storage: Scheduler Lookup (r:0 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `83 + s * (181 ±0)` + // Estimated: `42632` + // Minimum execution time: 10_638_000 picoseconds. + Weight::from_parts(14_687_147, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 1_913 + .saturating_add(Weight::from_parts(482_171, 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(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 50]`. fn cancel(s: u32, ) -> Weight { - Weight::from_parts(24_096_800 as u64, 0) - // Standard Error: 13_060 - .saturating_add(Weight::from_parts(2_096_283 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39167), added: 41642, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `83 + s * (181 ±0)` + // Estimated: `42632` + // Minimum execution time: 16_149_000 picoseconds. + Weight::from_parts(15_809_362, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 743 + .saturating_add(Weight::from_parts(733_748, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// The range of component `s` is `[0, 49]`. fn schedule_named(s: u32, ) -> Weight { - Weight::from_parts(28_799_568 as u64, 0) - // Standard Error: 15_283 - .saturating_add(Weight::from_parts(1_110_018 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39167), added: 41642, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `266 + s * (189 ±0)` + // Estimated: `42632` + // Minimum execution time: 14_144_000 picoseconds. + Weight::from_parts(19_188_976, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 2_723 + .saturating_add(Weight::from_parts(514_586, 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(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 50]`. fn cancel_named(s: u32, ) -> Weight { - Weight::from_parts(26_672_036 as u64, 0) - // Standard Error: 15_001 - .saturating_add(Weight::from_parts(2_108_784 as u64, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `290 + s * (189 ±0)` + // Estimated: `42632` + // Minimum execution time: 18_108_000 picoseconds. + Weight::from_parts(18_326_622, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 1_010 + .saturating_add(Weight::from_parts(757_085, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_service_agendas_base() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1493 + ); + } + #[test] + fn test_service_agenda_base() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_service_task_fetched() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3711 + ); + } + #[test] + fn test_schedule() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_cancel() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_schedule_named() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_cancel_named() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_session.rs b/runtimes/spiritnet/src/weights/pallet_session.rs index c780ac920..669eadb18 100644 --- a/runtimes/spiritnet/src/weights/pallet_session.rs +++ b/runtimes/spiritnet/src/weights/pallet_session.rs @@ -16,54 +16,93 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_session +//! Autogenerated weights for `pallet_session` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-session // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_session.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_session`. +/// Weight functions for `pallet_session`. pub struct WeightInfo(PhantomData); impl pallet_session::WeightInfo for WeightInfo { - // Storage: Session NextKeys (r:1 w:1) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: Session KeyOwner (r:1 w:1) - // Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured) + /// 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 { - Weight::from_parts(17_827_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `298` + // Estimated: `3763` + // Minimum execution time: 17_310_000 picoseconds. + Weight::from_parts(17_656_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 Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: Session KeyOwner (r:0 w:1) - // Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured) + /// 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 { - Weight::from_parts(13_772_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `280` + // Estimated: `3745` + // Minimum execution time: 12_803_000 picoseconds. + Weight::from_parts(13_129_000, 0) + .saturating_add(Weight::from_parts(0, 3745)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_set_keys() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3763 + ); + } + #[test] + fn test_purge_keys() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3745 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_timestamp.rs b/runtimes/spiritnet/src/weights/pallet_timestamp.rs index 19c3c3011..2afc6742a 100644 --- a/runtimes/spiritnet/src/weights/pallet_timestamp.rs +++ b/runtimes/spiritnet/src/weights/pallet_timestamp.rs @@ -16,46 +16,73 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_timestamp +//! Autogenerated weights for `pallet_timestamp` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-timestamp // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_timestamp.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_timestamp`. +/// 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: `Timestamp::Now` (r:1 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set() -> Weight { - Weight::from_parts(8_194_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `1493` + // Minimum execution time: 6_308_000 picoseconds. + Weight::from_parts(6_451_000, 0) + .saturating_add(Weight::from_parts(0, 1493)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } fn on_finalize() -> Weight { - Weight::from_parts(5_551_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `94` + // Estimated: `0` + // Minimum execution time: 4_222_000 picoseconds. + Weight::from_parts(4_386_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_set() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1493 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_tips.rs b/runtimes/spiritnet/src/weights/pallet_tips.rs index 91961f53b..3e44f9c99 100644 --- a/runtimes/spiritnet/src/weights/pallet_tips.rs +++ b/runtimes/spiritnet/src/weights/pallet_tips.rs @@ -16,106 +16,224 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_tips +//! Autogenerated weights for `pallet_tips` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-tips // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_tips.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_tips`. +/// Weight functions for `pallet_tips`. pub struct WeightInfo(PhantomData); impl pallet_tips::WeightInfo for WeightInfo { - // Storage: Tips Reasons (r:1 w:1) - // Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - // Storage: Tips Tips (r:1 w:1) - // Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tips::Reasons` (r:1 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `r` is `[0, 16384]`. fn report_awesome(r: u32, ) -> Weight { - Weight::from_parts(34_678_995 as u64, 0) - // Standard Error: 63 - .saturating_add(Weight::from_parts(1_929 as u64, 0).saturating_mul(r as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3469` + // Minimum execution time: 27_952_000 picoseconds. + Weight::from_parts(28_728_213, 0) + .saturating_add(Weight::from_parts(0, 3469)) + // Standard Error: 4 + .saturating_add(Weight::from_parts(1_556, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Tips Tips (r:1 w:1) - // Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - // Storage: Tips Reasons (r:0 w:1) - // Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Reasons` (r:0 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) fn retract_tip() -> Weight { - Weight::from_parts(26_984_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `221` + // Estimated: `3686` + // Minimum execution time: 25_478_000 picoseconds. + Weight::from_parts(25_777_000, 0) + .saturating_add(Weight::from_parts(0, 3686)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: TipsMembership Members (r:1 w:0) - // Proof: TipsMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Tips Reasons (r:1 w:1) - // Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - // Storage: Tips Tips (r:0 w:1) - // Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) + /// Storage: `TipsMembership::Members` (r:1 w:0) + /// Proof: `TipsMembership::Members` (`max_values`: Some(1), `max_size`: Some(673), added: 1168, mode: `MaxEncodedLen`) + /// Storage: `Tips::Reasons` (r:1 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Tips` (r:0 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `r` is `[0, 16384]`. + /// The range of component `t` is `[1, 21]`. fn tip_new(r: u32, t: u32, ) -> Weight { - Weight::from_parts(23_331_637 as u64, 0) - // Standard Error: 29 - .saturating_add(Weight::from_parts(2_083 as u64, 0).saturating_mul(r as u64)) - // Standard Error: 4_929 - .saturating_add(Weight::from_parts(38_831 as u64, 0).saturating_mul(t as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `141 + t * (32 ±0)` + // Estimated: `3606 + t * (32 ±0)` + // Minimum execution time: 19_804_000 picoseconds. + Weight::from_parts(17_926_991, 0) + .saturating_add(Weight::from_parts(0, 3606)) + // Standard Error: 7 + .saturating_add(Weight::from_parts(1_423, 0).saturating_mul(r.into())) + // Standard Error: 5_788 + .saturating_add(Weight::from_parts(162_652, 0).saturating_mul(t.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into())) } - // Storage: TipsMembership Members (r:1 w:0) - // Proof: TipsMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Tips Tips (r:1 w:1) - // Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) + /// Storage: `TipsMembership::Members` (r:1 w:0) + /// Proof: `TipsMembership::Members` (`max_values`: Some(1), `max_size`: Some(673), added: 1168, mode: `MaxEncodedLen`) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `t` is `[1, 21]`. fn tip(t: u32, ) -> Weight { - Weight::from_parts(21_024_385 as u64, 0) - // Standard Error: 4_827 - .saturating_add(Weight::from_parts(80_931 as u64, 0).saturating_mul(t as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `366 + t * (80 ±0)` + // Estimated: `3831 + t * (80 ±0)` + // Minimum execution time: 15_693_000 picoseconds. + Weight::from_parts(15_940_899, 0) + .saturating_add(Weight::from_parts(0, 3831)) + // Standard Error: 1_182 + .saturating_add(Weight::from_parts(126_181, 0).saturating_mul(t.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(t.into())) } - // Storage: Tips Tips (r:1 w:1) - // Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - // Storage: TipsMembership Members (r:1 w:0) - // Proof: TipsMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Tips Reasons (r:0 w:1) - // Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TipsMembership::Members` (r:1 w:0) + /// Proof: `TipsMembership::Members` (`max_values`: Some(1), `max_size`: Some(673), added: 1168, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Tips::Reasons` (r:0 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `t` is `[1, 21]`. fn close_tip(t: u32, ) -> Weight { - Weight::from_parts(60_474_036 as u64, 0) - // Standard Error: 9_536 - .saturating_add(Weight::from_parts(2_238 as u64, 0).saturating_mul(t as u64)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `473 + t * (80 ±0)` + // Estimated: `6204 + t * (80 ±0)` + // Minimum execution time: 55_188_000 picoseconds. + Weight::from_parts(56_227_331, 0) + .saturating_add(Weight::from_parts(0, 6204)) + // Standard Error: 4_354 + .saturating_add(Weight::from_parts(135_011, 0).saturating_mul(t.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(Weight::from_parts(0, 80).saturating_mul(t.into())) + } + /// Storage: `Tips::Tips` (r:1 w:1) + /// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Tips::Reasons` (r:0 w:1) + /// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `t` is `[1, 21]`. + fn slash_tip(t: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `269` + // Estimated: `3734` + // Minimum execution time: 14_238_000 picoseconds. + Weight::from_parts(14_632_080, 0) + .saturating_add(Weight::from_parts(0, 3734)) + // Standard Error: 717 + .saturating_add(Weight::from_parts(9_426, 0).saturating_mul(t.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_report_awesome() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3469 + ); + } + #[test] + fn test_retract_tip() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3686 + ); + } + #[test] + fn test_tip_new() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3606 + ); + } + #[test] + fn test_tip() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3831 + ); + } + #[test] + fn test_close_tip() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6204 + ); } - // Storage: Tips Tips (r:1 w:1) - // Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured) - // Storage: Tips Reasons (r:0 w:1) - // Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured) - fn slash_tip(_t: u32, ) -> Weight { - Weight::from_parts(20_257_747 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + #[test] + fn test_slash_tip() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3734 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_treasury.rs b/runtimes/spiritnet/src/weights/pallet_treasury.rs index 3ab7a597d..4ce8ea8bf 100644 --- a/runtimes/spiritnet/src/weights/pallet_treasury.rs +++ b/runtimes/spiritnet/src/weights/pallet_treasury.rs @@ -16,94 +16,312 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_treasury +//! Autogenerated weights for `pallet_treasury` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-treasury // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_treasury.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_treasury`. +/// Weight functions for `pallet_treasury`. pub struct WeightInfo(PhantomData); impl pallet_treasury::WeightInfo for WeightInfo { - fn spend() -> Weight { - Weight::from_parts(257_000 as u64, 0) + /// Storage: `Treasury::ProposalCount` (r:1 w:1) + /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:0 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + fn spend_local() -> Weight { + // Proof Size summary in bytes: + // Measured: `6` + // Estimated: `1887` + // Minimum execution time: 11_578_000 picoseconds. + Weight::from_parts(11_946_000, 0) + .saturating_add(Weight::from_parts(0, 1887)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Treasury ProposalCount (r:1 w:1) - // Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: Treasury Proposals (r:0 w:1) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + /// Storage: `Treasury::ProposalCount` (r:1 w:1) + /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:0 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn propose_spend() -> Weight { - Weight::from_parts(27_461_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: Treasury Proposals (r:1 w:1) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `111` + // Estimated: `1489` + // Minimum execution time: 25_896_000 picoseconds. + Weight::from_parts(26_447_000, 0) + .saturating_add(Weight::from_parts(0, 1489)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Treasury::Proposals` (r:1 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) fn reject_proposal() -> Weight { - Weight::from_parts(68_602_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: Treasury Proposals (r:1 w:0) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: Treasury Approvals (r:1 w:1) - // Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `376` + // Estimated: `6204` + // Minimum execution time: 36_905_000 picoseconds. + Weight::from_parts(37_206_000, 0) + .saturating_add(Weight::from_parts(0, 6204)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Treasury::Proposals` (r:1 w:0) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 99]`. fn approve_proposal(p: u32, ) -> Weight { - Weight::from_parts(14_674_204 as u64, 0) - // Standard Error: 1_555 - .saturating_add(Weight::from_parts(24_451 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: Treasury Approvals (r:1 w:1) - // Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `433 + p * (8 ±0)` + // Estimated: `3573` + // Minimum execution time: 9_645_000 picoseconds. + Weight::from_parts(12_567_224, 0) + .saturating_add(Weight::from_parts(0, 3573)) + // Standard Error: 953 + .saturating_add(Weight::from_parts(38_099, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { - Weight::from_parts(12_125_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: System Account (r:201 w:201) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Treasury Deactivated (r:1 w:1) - // Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Balances InactiveIssuance (r:1 w:1) - // Proof: Balances InactiveIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Treasury Approvals (r:1 w:1) - // Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) - // Storage: Treasury Proposals (r:100 w:100) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `90` + // Estimated: `1887` + // Minimum execution time: 6_302_000 picoseconds. + Weight::from_parts(6_388_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:199 w:199) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Deactivated` (r:1 w:1) + /// Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Balances::InactiveIssuance` (r:1 w:1) + /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:99 w:99) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// The range of component `p` is `[0, 99]`. fn on_initialize_proposals(p: u32, ) -> Weight { - Weight::from_parts(71_952_240 as u64, 0) - // Standard Error: 22_654 - .saturating_add(Weight::from_parts(34_252_995 as u64, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(p as u64))) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - .saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(p as u64))) + // Proof Size summary in bytes: + // Measured: `33 + p * (256 ±0)` + // Estimated: `3597 + p * (5214 ±0)` + // Minimum execution time: 18_607_000 picoseconds. + Weight::from_parts(23_512_938, 0) + .saturating_add(Weight::from_parts(0, 3597)) + // Standard Error: 13_219 + .saturating_add(Weight::from_parts(29_556_399, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 5214).saturating_mul(p.into())) + } + /// Storage: `Treasury::SpendCount` (r:1 w:1) + /// Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Spends` (r:0 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + fn spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `6` + // Estimated: `1489` + // Minimum execution time: 10_692_000 picoseconds. + Weight::from_parts(10_963_000, 0) + .saturating_add(Weight::from_parts(0, 1489)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `Treasury::Spends` (r:1 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn payout() -> Weight { + // Proof Size summary in bytes: + // Measured: `347` + // Estimated: `6204` + // Minimum execution time: 46_436_000 picoseconds. + Weight::from_parts(47_008_000, 0) + .saturating_add(Weight::from_parts(0, 6204)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Treasury::Spends` (r:1 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + fn check_status() -> Weight { + // Proof Size summary in bytes: + // Measured: `133` + // Estimated: `3542` + // Minimum execution time: 12_823_000 picoseconds. + Weight::from_parts(12_962_000, 0) + .saturating_add(Weight::from_parts(0, 3542)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Treasury::Spends` (r:1 w:1) + /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`) + fn void_spend() -> Weight { + // Proof Size summary in bytes: + // Measured: `133` + // Estimated: `3542` + // Minimum execution time: 12_216_000 picoseconds. + Weight::from_parts(12_475_000, 0) + .saturating_add(Weight::from_parts(0, 3542)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_spend_local() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1887 + ); + } + #[test] + fn test_propose_spend() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1489 + ); + } + #[test] + fn test_reject_proposal() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6204 + ); + } + #[test] + fn test_approve_proposal() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3573 + ); + } + #[test] + fn test_remove_approval() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1887 + ); + } + #[test] + fn test_on_initialize_proposals() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3597 + ); + } + #[test] + fn test_spend() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1489 + ); + } + #[test] + fn test_payout() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6204 + ); + } + #[test] + fn test_check_status() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3542 + ); + } + #[test] + fn test_void_spend() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3542 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_utility.rs b/runtimes/spiritnet/src/weights/pallet_utility.rs index b52e9bf83..c35d2f51a 100644 --- a/runtimes/spiritnet/src/weights/pallet_utility.rs +++ b/runtimes/spiritnet/src/weights/pallet_utility.rs @@ -16,57 +16,90 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_utility +//! Autogenerated weights for `pallet_utility` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-utility // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_utility.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_utility`. +/// 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 { - Weight::from_parts(79_134_909 as u64, 0) - // Standard Error: 21_258 - .saturating_add(Weight::from_parts(5_084_810 as u64, 0).saturating_mul(c as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_222_000 picoseconds. + Weight::from_parts(11_268_025, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 856 + .saturating_add(Weight::from_parts(2_683_219, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { - Weight::from_parts(9_379_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_043_000 picoseconds. + Weight::from_parts(5_233_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } + /// The range of component `c` is `[0, 1000]`. fn batch_all(c: u32, ) -> Weight { - Weight::from_parts(56_869_903 as u64, 0) - // Standard Error: 18_968 - .saturating_add(Weight::from_parts(5_396_723 as u64, 0).saturating_mul(c as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_182_000 picoseconds. + Weight::from_parts(9_707_336, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_154 + .saturating_add(Weight::from_parts(2_925_062, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { - Weight::from_parts(10_999_000 as u64, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_176_000 picoseconds. + Weight::from_parts(7_380_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } + /// The range of component `c` is `[0, 1000]`. fn force_batch(c: u32, ) -> Weight { - Weight::from_parts(68_110_842 as u64, 0) - // Standard Error: 9_807 - .saturating_add(Weight::from_parts(5_069_264 as u64, 0).saturating_mul(c as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_136_000 picoseconds. + Weight::from_parts(7_738_737, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 1_249 + .saturating_add(Weight::from_parts(2_687_201, 0).saturating_mul(c.into())) } } + +#[cfg(test)] +mod tests { +} diff --git a/runtimes/spiritnet/src/weights/pallet_vesting.rs b/runtimes/spiritnet/src/weights/pallet_vesting.rs index 398f205f4..b6f788c9b 100644 --- a/runtimes/spiritnet/src/weights/pallet_vesting.rs +++ b/runtimes/spiritnet/src/weights/pallet_vesting.rs @@ -48,6 +48,8 @@ use sp_std::marker::PhantomData; /// Weights for `pallet_vesting`. pub struct WeightInfo(PhantomData); impl pallet_vesting::WeightInfo for WeightInfo { + + fn force_remove_vesting_schedule(_: u32, _: u32) -> cumulus_primitives_core::Weight { todo!() } // Storage: Vesting Vesting (r:1 w:1) // Proof: Vesting Vesting (max_values: None, max_size: Some(1169), added: 3644, mode: MaxEncodedLen) // Storage: Balances Locks (r:1 w:1) diff --git a/runtimes/spiritnet/src/weights/pallet_web3_names.rs b/runtimes/spiritnet/src/weights/pallet_web3_names.rs index d412cd9b4..20ad676dd 100644 --- a/runtimes/spiritnet/src/weights/pallet_web3_names.rs +++ b/runtimes/spiritnet/src/weights/pallet_web3_names.rs @@ -16,113 +16,269 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for pallet_web3_names +//! Autogenerated weights for `pallet_web3_names` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=pallet-web3-names // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/pallet_web3_names.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `pallet_web3_names`. +/// Weight functions for `pallet_web3_names`. pub struct WeightInfo(PhantomData); impl pallet_web3_names::WeightInfo for WeightInfo { - // Storage: Web3Names Names (r:1 w:1) - // Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) - // Storage: Web3Names Owner (r:1 w:1) - // Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - // Storage: Web3Names Banned (r:1 w:0) - // Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - fn claim(_n: u32, ) -> Weight { - Weight::from_parts(40_237_964 as u64, 0) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + /// Storage: `Web3Names::Names` (r:1 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Banned` (r:1 w:0) + /// Proof: `Web3Names::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// The range of component `n` is `[3, 32]`. + fn claim(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `111` + // Estimated: `3658` + // Minimum execution time: 58_563_000 picoseconds. + Weight::from_parts(59_662_237, 0) + .saturating_add(Weight::from_parts(0, 3658)) + // Standard Error: 1_099 + .saturating_add(Weight::from_parts(7_968, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Web3Names Names (r:1 w:1) - // Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) - // Storage: Web3Names Owner (r:1 w:1) - // Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Names` (r:1 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn release_by_owner() -> Weight { - Weight::from_parts(32_912_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `515` + // Estimated: `3658` + // Minimum execution time: 51_526_000 picoseconds. + Weight::from_parts(51_915_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Web3Names Owner (r:1 w:1) - // Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Web3Names Names (r:0 w:1) - // Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Names` (r:0 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// The range of component `n` is `[3, 32]`. fn reclaim_deposit(n: u32, ) -> Weight { - Weight::from_parts(31_703_821 as u64, 0) - // Standard Error: 36_296 - .saturating_add(Weight::from_parts(235_783 as u64, 0).saturating_mul(n as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `411 + n * (1 ±0)` + // Estimated: `3658` + // Minimum execution time: 49_388_000 picoseconds. + Weight::from_parts(50_066_225, 0) + .saturating_add(Weight::from_parts(0, 3658)) + // Standard Error: 913 + .saturating_add(Weight::from_parts(21_509, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Web3Names Banned (r:1 w:1) - // Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) - // Storage: Web3Names Owner (r:1 w:1) - // Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: Web3Names Names (r:0 w:1) - // Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) + /// Storage: `Web3Names::Banned` (r:1 w:1) + /// Proof: `Web3Names::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Names` (r:0 w:1) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// The range of component `n` is `[3, 32]`. fn ban(_n: u32, ) -> Weight { - Weight::from_parts(43_007_574 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `411 + n * (1 ±0)` + // Estimated: `3658` + // Minimum execution time: 55_030_000 picoseconds. + Weight::from_parts(58_781_704, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Web3Names Banned (r:1 w:1) - // Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) - fn unban(_n: u32, ) -> Weight { - Weight::from_parts(17_954_246 as u64, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + /// Storage: `Web3Names::Banned` (r:1 w:1) + /// Proof: `Web3Names::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + /// The range of component `n` is `[3, 32]`. + fn unban(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `47 + n * (1 ±0)` + // Estimated: `3514` + // Minimum execution time: 13_030_000 picoseconds. + Weight::from_parts(13_421_837, 0) + .saturating_add(Weight::from_parts(0, 3514)) + // Standard Error: 697 + .saturating_add(Weight::from_parts(18_015, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Web3Names Names (r:1 w:0) - // Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) - // Storage: Web3Names Owner (r:1 w:1) - // Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Names` (r:1 w:0) + /// Proof: `Web3Names::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { - Weight::from_parts(66_017_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `622` + // Estimated: `6326` + // Minimum execution time: 82_747_000 picoseconds. + Weight::from_parts(83_384_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Web3Names Owner (r:1 w:1) - // Proof: Web3Names Owner (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `Web3Names::Owner` (r:1 w:1) + /// Proof: `Web3Names::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { - Weight::from_parts(57_911_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `370` + // Estimated: `3658` + // Minimum execution time: 67_321_000 picoseconds. + Weight::from_parts(67_947_000, 0) + .saturating_add(Weight::from_parts(0, 3658)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_claim() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_release_by_owner() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_reclaim_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_ban() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); + } + #[test] + fn test_unban() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3514 + ); + } + #[test] + fn test_change_deposit_owner() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6326 + ); + } + #[test] + fn test_update_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3658 + ); } } diff --git a/runtimes/spiritnet/src/weights/pallet_xcm.rs b/runtimes/spiritnet/src/weights/pallet_xcm.rs index 372352b1b..92e5ace14 100644 --- a/runtimes/spiritnet/src/weights/pallet_xcm.rs +++ b/runtimes/spiritnet/src/weights/pallet_xcm.rs @@ -18,8 +18,8 @@ //! Autogenerated weights for `pallet_xcm` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-03-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 @@ -55,19 +55,21 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// 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`) + /// 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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn send() -> Weight { // Proof Size summary in bytes: - // Measured: `75` - // Estimated: `3540` - // Minimum execution time: 32_243_000 picoseconds. - Weight::from_parts(33_055_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) + // Measured: `277` + // Estimated: `3742` + // Minimum execution time: 30_940_000 picoseconds. + Weight::from_parts(31_685_000, 0) + .saturating_add(Weight::from_parts(0, 3742)) .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(2)) + .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`) @@ -81,14 +83,39 @@ 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: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, 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) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn reserve_transfer_assets() -> Weight { // Proof Size summary in bytes: - // Measured: `32` - // Estimated: `1489` - // Minimum execution time: 24_282_000 picoseconds. - Weight::from_parts(29_652_000, 0) - .saturating_add(Weight::from_parts(0, 1489)) - .saturating_add(T::DbWeight::get().reads(1)) + // Measured: `309` + // Estimated: `3774` + // Minimum execution time: 97_254_000 picoseconds. + Weight::from_parts(98_092_000, 0) + .saturating_add(Weight::from_parts(0, 3774)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn 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: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -106,8 +133,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_575_000 picoseconds. - Weight::from_parts(12_030_000, 0) + // Minimum execution time: 9_272_000 picoseconds. + Weight::from_parts(9_541_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -117,8 +144,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_800_000 picoseconds. - Weight::from_parts(3_984_000, 0) + // Minimum execution time: 2_748_000 picoseconds. + Weight::from_parts(2_927_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -132,21 +159,23 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// 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`) + /// 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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `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: `75` - // Estimated: `3540` - // Minimum execution time: 37_234_000 picoseconds. - Weight::from_parts(38_063_000, 0) - .saturating_add(Weight::from_parts(0, 3540)) + // Measured: `277` + // Estimated: `3742` + // Minimum execution time: 37_648_000 picoseconds. + Weight::from_parts(38_348_000, 0) + .saturating_add(Weight::from_parts(0, 3742)) .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(6)) } /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -156,20 +185,22 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// 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`) + /// 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:0) + /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:1 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `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: `257` - // Estimated: `3722` - // Minimum execution time: 38_734_000 picoseconds. - Weight::from_parts(39_300_000, 0) - .saturating_add(Weight::from_parts(0, 3722)) - .saturating_add(T::DbWeight::get().reads(6)) + // Measured: `532` + // Estimated: `3997` + // Minimum execution time: 41_031_000 picoseconds. + Weight::from_parts(41_618_000, 0) + .saturating_add(Weight::from_parts(0, 3997)) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) @@ -178,45 +209,45 @@ impl pallet_xcm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_753_000 picoseconds. - Weight::from_parts(3_898_000, 0) + // Minimum execution time: 2_830_000 picoseconds. + Weight::from_parts(2_984_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } - /// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2) + /// 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: `167` - // Estimated: `11057` - // Minimum execution time: 20_776_000 picoseconds. - Weight::from_parts(21_167_000, 0) - .saturating_add(Weight::from_parts(0, 11057)) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `125` + // Estimated: `13490` + // Minimum execution time: 21_326_000 picoseconds. + Weight::from_parts(21_932_000, 0) + .saturating_add(Weight::from_parts(0, 13490)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w: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: `171` - // Estimated: `11061` - // Minimum execution time: 20_853_000 picoseconds. - Weight::from_parts(21_528_000, 0) - .saturating_add(Weight::from_parts(0, 11061)) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `129` + // Estimated: `13494` + // Minimum execution time: 21_504_000 picoseconds. + Weight::from_parts(21_914_000, 0) + .saturating_add(Weight::from_parts(0, 13494)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0) + /// 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: `178` - // Estimated: `13543` - // Minimum execution time: 22_020_000 picoseconds. - Weight::from_parts(22_321_000, 0) - .saturating_add(Weight::from_parts(0, 13543)) - .saturating_add(T::DbWeight::get().reads(5)) + // Measured: `183` + // Estimated: `16023` + // Minimum execution time: 23_689_000 picoseconds. + Weight::from_parts(24_555_000, 0) + .saturating_add(Weight::from_parts(0, 16023)) + .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`) @@ -226,44 +257,46 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// 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`) + /// 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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `142` - // Estimated: `6082` - // Minimum execution time: 35_237_000 picoseconds. - Weight::from_parts(35_813_000, 0) - .saturating_add(Weight::from_parts(0, 6082)) + // Measured: `349` + // Estimated: `6289` + // Minimum execution time: 36_737_000 picoseconds. + Weight::from_parts(37_663_000, 0) + .saturating_add(Weight::from_parts(0, 6289)) .saturating_add(T::DbWeight::get().reads(7)) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(4)) } - /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0) + /// 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: `172` - // Estimated: `8587` - // Minimum execution time: 11_245_000 picoseconds. - Weight::from_parts(11_526_000, 0) - .saturating_add(Weight::from_parts(0, 8587)) - .saturating_add(T::DbWeight::get().reads(3)) + // Estimated: `11062` + // Minimum execution time: 13_355_000 picoseconds. + Weight::from_parts(13_653_000, 0) + .saturating_add(Weight::from_parts(0, 11062)) + .saturating_add(T::DbWeight::get().reads(4)) } - /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// 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: `178` - // Estimated: `11068` - // Minimum execution time: 21_182_000 picoseconds. - Weight::from_parts(21_798_000, 0) - .saturating_add(Weight::from_parts(0, 11068)) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `136` + // Estimated: `13501` + // Minimum execution time: 21_637_000 picoseconds. + Weight::from_parts(22_117_000, 0) + .saturating_add(Weight::from_parts(0, 13501)) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2) /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -271,19 +304,59 @@ impl pallet_xcm::WeightInfo for WeightInfo { /// 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`) + /// 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`: None, mode: `Measured`) + /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1) + /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_and_notify_old_targets() -> Weight { // Proof Size summary in bytes: - // Measured: `184` - // Estimated: `11074` - // Minimum execution time: 43_612_000 picoseconds. - Weight::from_parts(44_807_000, 0) - .saturating_add(Weight::from_parts(0, 11074)) - .saturating_add(T::DbWeight::get().reads(9)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `349` + // Estimated: `13714` + // Minimum execution time: 46_936_000 picoseconds. + Weight::from_parts(47_598_000, 0) + .saturating_add(Weight::from_parts(0, 13714)) + .saturating_add(T::DbWeight::get().reads(10)) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// 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: `69` + // Estimated: `1554` + // Minimum execution time: 5_308_000 picoseconds. + Weight::from_parts(5_529_000, 0) + .saturating_add(Weight::from_parts(0, 1554)) + .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: `7710` + // Estimated: `11175` + // Minimum execution time: 30_221_000 picoseconds. + Weight::from_parts(30_681_000, 0) + .saturating_add(Weight::from_parts(0, 11175)) + .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: `126` + // Estimated: `3591` + // Minimum execution time: 44_754_000 picoseconds. + Weight::from_parts(45_338_000, 0) + .saturating_add(Weight::from_parts(0, 3591)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } @@ -298,7 +371,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3540 + > 3742 ); } #[test] @@ -310,7 +383,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 1489 + > 3774 ); } #[test] @@ -322,7 +395,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3540 + > 3742 ); } #[test] @@ -334,7 +407,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3722 + > 3997 ); } #[test] @@ -346,7 +419,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11057 + > 13490 ); } #[test] @@ -358,7 +431,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11061 + > 13494 ); } #[test] @@ -370,7 +443,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 13543 + > 16023 ); } #[test] @@ -382,7 +455,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 6082 + > 6289 ); } #[test] @@ -394,7 +467,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 8587 + > 11062 ); } #[test] @@ -406,7 +479,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11068 + > 13501 ); } #[test] @@ -418,7 +491,43 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 11074 + > 13714 + ); + } + #[test] + fn test_new_query() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 1554 + ); + } + #[test] + fn test_take_response() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 11175 + ); + } + #[test] + fn test_claim_assets() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3591 ); } } diff --git a/runtimes/spiritnet/src/weights/public_credentials.rs b/runtimes/spiritnet/src/weights/public_credentials.rs index cd45f9287..0c96cdf01 100644 --- a/runtimes/spiritnet/src/weights/public_credentials.rs +++ b/runtimes/spiritnet/src/weights/public_credentials.rs @@ -16,113 +16,258 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org -//! Autogenerated weights for public_credentials +//! Autogenerated weights for `public_credentials` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 +//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/kilt-parachain // benchmark // pallet -// --chain=spiritnet-dev +// --template=.maintain/runtime-weight-template.hbs +// --header=HEADER-GPL +// --wasm-execution=compiled +// --heap-pages=4096 // --steps=50 // --repeat=20 +// --chain=spiritnet-dev // --pallet=public-credentials // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 // --output=./runtimes/spiritnet/src/weights/public_credentials.rs -// --template=.maintain/runtime-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for `public_credentials`. +/// Weight functions for `public_credentials`. pub struct WeightInfo(PhantomData); impl public_credentials::WeightInfo for WeightInfo { - // Storage: Ctype Ctypes (r:1 w:0) - // Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) - // Storage: PublicCredentials CredentialSubjects (r:0 w:1) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) + /// Storage: `Ctype::Ctypes` (r:1 w:0) + /// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::CredentialSubjects` (r:0 w:1) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:0 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// The range of component `c` is `[1, 100000]`. fn add(c: u32, ) -> Weight { - Weight::from_parts(52_767_011 as u64, 0) - // Standard Error: 20 - .saturating_add(Weight::from_parts(3_182 as u64, 0).saturating_mul(c as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `363` + // Estimated: `3940` + // Minimum execution time: 64_264_000 picoseconds. + Weight::from_parts(60_245_133, 0) + .saturating_add(Weight::from_parts(0, 3940)) + // Standard Error: 7 + .saturating_add(Weight::from_parts(2_343, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: PublicCredentials CredentialSubjects (r:1 w:0) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) fn revoke() -> Weight { - Weight::from_parts(27_663_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `919` + // Estimated: `3940` + // Minimum execution time: 24_018_000 picoseconds. + Weight::from_parts(24_346_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: PublicCredentials CredentialSubjects (r:1 w:0) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) fn unrevoke() -> Weight { - Weight::from_parts(27_570_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `919` + // Estimated: `3940` + // Minimum execution time: 23_516_000 picoseconds. + Weight::from_parts(23_733_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: PublicCredentials CredentialSubjects (r:1 w:1) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:1) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn remove() -> Weight { - Weight::from_parts(45_902_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `1160` + // Estimated: `3940` + // Minimum execution time: 61_552_000 picoseconds. + Weight::from_parts(62_254_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: PublicCredentials CredentialSubjects (r:1 w:1) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:1) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn reclaim_deposit() -> Weight { - Weight::from_parts(68_877_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `1160` + // Estimated: `3940` + // Minimum execution time: 61_540_000 picoseconds. + Weight::from_parts(62_236_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: PublicCredentials CredentialSubjects (r:1 w:0) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:0) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:2 w:2) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:2 w:2) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn change_deposit_owner() -> Weight { - Weight::from_parts(58_093_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `1265` + // Estimated: `6326` + // Minimum execution time: 97_534_000 picoseconds. + Weight::from_parts(98_223_000, 0) + .saturating_add(Weight::from_parts(0, 6326)) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: PublicCredentials CredentialSubjects (r:1 w:0) - // Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - // Storage: PublicCredentials Credentials (r:1 w:1) - // Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) + /// Storage: `PublicCredentials::CredentialSubjects` (r:1 w:0) + /// Proof: `PublicCredentials::CredentialSubjects` (`max_values`: None, `max_size`: Some(312), added: 2787, mode: `MaxEncodedLen`) + /// Storage: `PublicCredentials::Credentials` (r:1 w:1) + /// Proof: `PublicCredentials::Credentials` (`max_values`: None, `max_size`: Some(475), added: 2950, mode: `MaxEncodedLen`) + /// Storage: `Migration::MigratedKeys` (r:1 w:1) + /// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:1 w:1) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`) fn update_deposit() -> Weight { - Weight::from_parts(54_520_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `1084` + // Estimated: `3940` + // Minimum execution time: 84_048_000 picoseconds. + Weight::from_parts(84_586_000, 0) + .saturating_add(Weight::from_parts(0, 3940)) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(4)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_add() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3940 + ); + } + #[test] + fn test_revoke() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3940 + ); + } + #[test] + fn test_unrevoke() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3940 + ); + } + #[test] + fn test_remove() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3940 + ); + } + #[test] + fn test_reclaim_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3940 + ); + } + #[test] + fn test_change_deposit_owner() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6326 + ); + } + #[test] + fn test_update_deposit() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3940 + ); } } diff --git a/runtimes/spiritnet/src/xcm_config.rs b/runtimes/spiritnet/src/xcm_config.rs index ae725e509..b5de4ce14 100644 --- a/runtimes/spiritnet/src/xcm_config.rs +++ b/runtimes/spiritnet/src/xcm_config.rs @@ -17,37 +17,44 @@ // If you feel like getting in touch with us, you can do so at info@botlabs.org use crate::{ - AccountId, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, - RuntimeEvent, RuntimeOrigin, Treasury, WeightToFee, XcmpQueue, + AccountId, AllPalletsWithSystem, Balances, MessageQueue, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, + RuntimeCall, RuntimeEvent, RuntimeOrigin, WeightToFee, XcmpQueue, }; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId}; use frame_support::{ parameter_types, - traits::{Contains, Everything, Nothing}, + traits::{Contains, EnqueueWithOrigin, Everything, Nothing, TransformOrigin}, }; use frame_system::EnsureRoot; use pallet_xcm::XcmPassthrough; +use parachains_common::message_queue::{NarrowOriginToSibling, ParaIdToSibling}; +use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery; use sp_core::ConstU32; use sp_std::prelude::ToOwned; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; use xcm_builder::{ AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, - EnsureXcmOrigin, FixedWeightBounds, NativeAsset, RelayChainAsNative, SiblingParachainAsNative, - SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, - UsingComponents, WithComputedOrigin, + EnsureXcmOrigin, FixedWeightBounds, FrameTransactionalProcessor, NativeAsset, RelayChainAsNative, + SiblingParachainAsNative, SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, + TakeWeightCredit, TrailingSetTopicAsId, UsingComponents, WithComputedOrigin, }; use xcm_executor::{traits::WithOriginFilter, XcmExecutor}; -use runtime_common::xcm_config::{ - DenyReserveTransferToRelayChain, DenyThenTry, HereLocation, LocalAssetTransactor, LocationToAccountId, - MaxAssetsIntoHolding, MaxInstructions, ParentLocation, ParentOrSiblings, UnitWeightCost, +use runtime_common::{ + xcm_config::{ + DenyReserveTransferToRelayChain, DenyThenTry, HeapSize, HereLocation, LocalAssetTransactor, + LocationToAccountId, MaxAssetsIntoHolding, MaxInstructions, MaxStale, ParentLocation, ParentOrSiblings, + ServiceWeight, UnitWeightCost, + }, + SendDustAndFeesToTreasury, }; parameter_types! { pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); - pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into(); + pub Ancestry: Location = Parachain(ParachainInfo::parachain_id().into()).into(); pub const RelayNetworkId: NetworkId = NetworkId::Polkadot; - pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(RelayNetworkId::get()), Parachain(ParachainInfo::parachain_id().into())); + pub UniversalLocation: InteriorLocation = Junctions::X2([GlobalConsensus(RelayNetworkId::get()), Parachain(ParachainInfo::parachain_id().into())].into()); } /// This type specifies how a `MultiLocation` can be converted into an @@ -164,7 +171,6 @@ impl xcm_executor::Config for XcmConfig { // How to withdraw and deposit an asset. type AssetTransactor = LocalAssetTransactor; type OriginConverter = XcmOriginToTransactDispatchOrigin; - // Reserving is disabled. type IsReserve = NativeAsset; // Teleporting is disabled. type IsTeleporter = (); @@ -177,7 +183,8 @@ impl xcm_executor::Config for XcmConfig { // How weight is transformed into fees. The fees are not taken out of the // Balances pallet here. Balances is only used if fees are dropped without being // used. In that case they are put into the treasury. - type Trader = UsingComponents, HereLocation, AccountId, Balances, Treasury>; + type Trader = + UsingComponents, HereLocation, AccountId, Balances, SendDustAndFeesToTreasury>; type ResponseHandler = PolkadotXcm; // What happens with assets that are left in the register after the XCM message // was processed. PolkadotXcm has an AssetTrap that stores a hash of the asset @@ -195,6 +202,7 @@ impl xcm_executor::Config for XcmConfig { type CallDispatcher = WithOriginFilter; type SafeCallFilter = SafeCallFilter; type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; } /// Allows only local `Signed` origins to be converted into `MultiLocation`s by @@ -210,11 +218,6 @@ pub type XcmRouter = ( XcmpQueue, ); -#[cfg(feature = "runtime-benchmarks")] -parameter_types! { - pub ReachableDest: Option = Some(Parent.into()); -} - impl pallet_xcm::Config for Runtime { type MaxRemoteLockConsumers = ConstU32<0>; type RemoteLockConsumerIdentifier = (); @@ -241,8 +244,6 @@ impl pallet_xcm::Config for Runtime { type SovereignAccountOf = LocationToAccountIdConverter; type MaxLockers = ConstU32<8>; type WeightInfo = crate::weights::pallet_xcm::WeightInfo; - #[cfg(feature = "runtime-benchmarks")] - type ReachableDest = ReachableDest; } impl cumulus_pallet_xcm::Config for Runtime { @@ -250,21 +251,45 @@ impl cumulus_pallet_xcm::Config for Runtime { type XcmExecutor = XcmExecutor; } +parameter_types! { + pub const MaxInboundSuspended: u32 = 1_000; +} + impl cumulus_pallet_xcmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; type ChannelInfo = ParachainSystem; type VersionWrapper = PolkadotXcm; - type ExecuteOverweightOrigin = EnsureRoot; type ControllerOrigin = EnsureRoot; type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin; type WeightInfo = cumulus_pallet_xcmp_queue::weights::SubstrateWeight; - // TODO: Most chains use `NoPriceForMessageDelivery`, merged in https://github.com/paritytech/polkadot-sdk/pull/1234. - type PriceForSiblingDelivery = (); + type PriceForSiblingDelivery = NoPriceForMessageDelivery; + type MaxInboundSuspended = MaxInboundSuspended; + type XcmpQueue = TransformOrigin; +} + +impl pallet_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = crate::weights::pallet_message_queue::WeightInfo; + #[cfg(feature = "runtime-benchmarks")] + type MessageProcessor = pallet_message_queue::mock_helpers::NoopMessageProcessor; + #[cfg(not(feature = "runtime-benchmarks"))] + type MessageProcessor = + xcm_builder::ProcessXcmMessage, RuntimeCall>; + type Size = u32; + type QueueChangeHandler = NarrowOriginToSibling; + type QueuePausedQuery = NarrowOriginToSibling; + type HeapSize = HeapSize; + type MaxStale = MaxStale; + type ServiceWeight = ServiceWeight; +} + +// Remove me in 1.15.0 +parameter_types! { + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } impl cumulus_pallet_dmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; - type ExecuteOverweightOrigin = EnsureRoot; + type DmpSink = EnqueueWithOrigin; + type WeightInfo = crate::weights::cumulus_pallet_dmp_queue::WeightInfo; } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4bc7b1426..0e3ca430d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.70.0" +channel = "1.74.0" components = ["clippy", "rustfmt"] targets = ["wasm32-unknown-unknown"] diff --git a/scripts/run_benches_for_runtime.sh b/scripts/run_benches_for_runtime.sh index 9852deb03..b7a6c333b 100755 --- a/scripts/run_benches_for_runtime.sh +++ b/scripts/run_benches_for_runtime.sh @@ -37,9 +37,12 @@ pallets=( public-credentials pallet-deposit-storage pallet-dip-provider + pallet-message-queue + cumulus-pallet-parachain-system + cumulus-pallet-dmp-queue ) -// Add Peregrine-only pallets here! +# Add Peregrine-only pallets here! if [ "$runtime" = "peregrine" ]; then pallets+=() fi