1. Oct 16, 2023
  2. Oct 07, 2023
    • Muharem Ismailov's avatar
      Treasury spends various asset kinds (#1333) · cb944dc5
      Muharem Ismailov authored
      
      
      ### Summary 
      
      This PR introduces new dispatchables to the treasury pallet, allowing
      spends of various asset types. The enhanced features of the treasury
      pallet, in conjunction with the asset-rate pallet, are set up and
      enabled for Westend and Rococo.
      
      ### Westend and Rococo runtimes.
      
      Polkadot/Kusams/Rococo Treasury can accept proposals for `spends` of
      various asset kinds by specifying the asset's location and ID.
      
      #### Treasury Instance New Dispatchables:
      - `spend(AssetKind, AssetBalance, Beneficiary, Option<ValidFrom>)` -
      propose and approve a spend;
      - `payout(SpendIndex)` - payout an approved spend or retry a failed
      payout
      - `check_payment(SpendIndex)` - check the status of a payout;
      - `void_spend(SpendIndex)` - void previously approved spend;
      > existing spend dispatchable renamed to spend_local
      
      in this context, the `AssetKind` parameter contains the asset's location
      and it's corresponding `asset_id`, for example:
      `USDT` on `AssetHub`,
      ``` rust
      location = MultiLocation(0, X1(Parachain(1000)))
      asset_id = MultiLocation(0, X2(PalletInstance(50), GeneralIndex(1984)))
      ```
      
      the `Beneficiary` parameter is a `MultiLocation` in the context of the
      asset's location, for example
      ``` rust
      // the Fellowship salary pallet's location / account
      FellowshipSalaryPallet = MultiLocation(1, X2(Parachain(1001), PalletInstance(64)))
      // or custom `AccountId`
      Alice = MultiLocation(0, AccountId32(network: None, id: [1,...]))
      ```
      
      the `AssetBalance` represents the amount of the `AssetKind` to be
      transferred to the `Beneficiary`. For permission checks, the asset
      amount is converted to the native amount and compared against the
      maximum spendable amount determined by the commanding spend origin.
      
      the `spend` dispatchable allows for batching spends with different
      `ValidFrom` arguments, enabling milestone-based spending. If the
      expectations tied to an approved spend are not met, it is possible to
      void the spend later using the `void_spend` dispatchable.
      
      Asset Rate Pallet provides the conversion rate from the `AssetKind` to
      the native balance.
      
      #### Asset Rate Instance Dispatchables:
      - `create(AssetKind, Rate)` - initialize a conversion rate to the native
      balance for the given asset
      - `update(AssetKind, Rate)` - update the conversion rate to the native
      balance for the given asset
      - `remove(AssetKind)` - remove an existing conversion rate to the native
      balance for the given asset
      
      the pallet's dispatchables can be executed by the Root or Treasurer
      origins.
      
      ### Treasury Pallet
      
      Treasury Pallet can accept proposals for `spends` of various asset kinds
      and pay them out through the implementation of the `Pay` trait.
      
      New Dispatchables:
      - `spend(Config::AssetKind, AssetBalance, Config::Beneficiary,
      Option<ValidFrom>)` - propose and approve a spend;
      - `payout(SpendIndex)` - payout an approved spend or retry a failed
      payout;
      - `check_payment(SpendIndex)` - check the status of a payout;
      - `void_spend(SpendIndex)` - void previously approved spend;
      > existing spend dispatchable renamed to spend_local
      
      The parameters' types of the `spend` dispatchable exposed via the
      pallet's `Config` and allows to propose and accept a spend of a certain
      amount.
      
      An approved spend can be claimed via the `payout` within the
      `Config::SpendPeriod`. Clients provide an implementation of the `Pay`
      trait which can pay an asset of the `AssetKind` to the `Beneficiary` in
      `AssetBalance` units.
      
      The implementation of the Pay trait might not have an immediate final
      payment status, for example if implemented over `XCM` and the actual
      transfer happens on a remote chain.
      
      The `check_status` dispatchable can be executed to update the spend's
      payment state and retry the `payout` if the payment has failed.
      
      ---------
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: command-bot <>
      cb944dc5
  3. Aug 31, 2023
    • Bastian Köcher's avatar
      Rename `polkadot-parachain` to `polkadot-parachain-primitives` (#1334) · a33d7922
      Bastian Köcher authored
      * Rename `polkadot-parachain` to `polkadot-parachain-primitives`
      
      While doing this it also fixes some last `rustdoc` issues and fixes
      another Cargo warning related to `pallet-paged-list`.
      
      * Fix compilation
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Fix XCM docs
      
      ---------
      
      Co-authored-by: command-bot <>
      a33d7922
  4. Aug 30, 2023
  5. Aug 24, 2023
  6. Aug 19, 2023
  7. Aug 16, 2023
  8. Aug 15, 2023
  9. Aug 14, 2023
  10. Jul 21, 2023
    • Branislav Kontur's avatar
      Asset conversion nits (#2860) · 8171890f
      Branislav Kontur authored
      
      
      * [asset-conv] Unused Balances type
      
      * [asset-conv] native asset change
      
      * Dedicated `AssetBalance` type for `pallet_assets` instances
      
      * Improved local vs foreign asset handling + test for not allowing pool_assets in pool
      
      * Removed `into_multiasset_id`
      
      * Fix
      
      * Refactor
      
      * Fixed create_pool for benchmark with LocalAndForeignAssets (finally found it)
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Revert
      
      * fmt
      
      * Migrates pools with `MultiLocation { parents: 0, interior: Here }` to `MultiLocation { parents: 1, interior: Here }`
      
      * Allow `set_storage` for `AllowMultiAssetPools` / `LiquidityWithdrawalFee`
      
      * Benchmarks work
      
      * Removed comment + more defensive migration
      
      * `T::Currency::transfer` -> `Balances::transfer_all` in migration
      
      * Change pool_id in migration
      
      * Update parachains/runtimes/assets/asset-hub-westend/src/lib.rs
      
      * Bump substrate (manually)
      
      * Bump polkadot
      
      * Fixes from polkadot + clippy
      
      * Fix for xcm-emulator tests (thank you Nacho)
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      8171890f
  11. Jun 23, 2023
    • Squirrel's avatar
      Asset Conversion release to westmint (#2148) · 5487ce76
      Squirrel authored
      
      
      * Dex and payment by dex in westmint
      
      * Wrap U256 type for now
      
      (to support required traits.)
      
      * cargo fmt
      
      * We can now use U256
      
      * Rename PromotedBalance
      
      * name change
      
      * Updating the code to master.
      
      TODO: handle dust!
      
      * cargo fmt
      
      * Minimising changes and step towards getting benchmarks compiling
      
      (still a From<u32> bound in the pallet)
      
      * minimise diff
      
      * Update parachains/runtimes/assets/westmint/src/lib.rs
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      
      * Update parachains/runtimes/assets/westmint/src/lib.rs
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      
      * Update parachains/common/src/impls.rs
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      
      * Fix benchmark build
      
      * Add in AssetConversionAPI
      
      * Handle dust
      
      * cargo fmt
      
      * Don't need to be explicit that it's AccountId32
      
      * remove pool setup fee
      
      (Asset deposit fees are a sufficient anti-spam measure)
      
      * More natural way to specify native
      
      * cargo fmt
      
      * Update parachains/runtimes/assets/westmint/src/lib.rs
      
      * Additional required impls
      
      * either form of multilocation should be acceptable.
      
      * add call filter exclusion
      
      * Fix typo & try_convert now fails if native is converted
      
      * merge master fixup
      
      * Fix: HoldReason should be there.
      
      * Box MultiAssetId
      
      Otherwise it blows out the Call enum memory size.
      
      * cargo fmt
      
      * update lock file
      
      * add std feature, update lock file
      
      * need to turn on std on common
      
      * adding in westmint tests
      
      * WeightToFee must be from the destination chain.
      
      * cargo fmt
      
      * account for higher ED on westmint
      
      * type removed as not used
      
      * cargo fmt
      
      * remove unused import
      
      * minimising diff
      
      * import needed only with feature enabled
      
      * use multilocation contains
      
      * move the impls to separate file
      
      * simplify on conversion
      
      * simplify on reverse conversion also.
      
      * rename var
      
      * clippy
      
      * removed dead code
      
      * cargo fmt
      
      * Use pay by swap
      
      * review suggestions
      
      * cargo fmt
      
      * Update parachains/runtimes/assets/asset-hub-westend/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * add benchmarks for new assets pallet
      
      * revert common/src changes
      
      * need a concrete id
      
      * more fixes
      
      * lock
      
      ---------
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      Co-authored-by: default avatarjoepetrowski <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      5487ce76
  12. Jun 05, 2023
    • Just van Stam's avatar
      companion for xcm alias origin (#2680) · 119604ed
      Just van Stam authored
      * companion for xcm alias origin
      
      * update lockfile for {"polkadot", "substrate"}
      
      * add benchmark function for runtimes
      
      ---------
      
      Co-authored-by: parity-processbot <>
      119604ed
  13. Jun 02, 2023
    • joe petrowski's avatar
      Rename Statemint to Asset Hub (#2633) · 60075495
      joe petrowski authored
      
      
      * change dir names
      
      * cargo toml updates
      
      * fix crate imports for build
      
      * change chain spec names and PR review rule
      
      * update cli to accept asset-hub
      
      * find/replace benchmark commands
      
      * integration tests
      
      * bridges docs
      
      * more integration tests
      
      * AuraId
      
      * other statemint tidying
      
      * rename statemint mod
      
      * chain spec mod
      
      * rename e2e test dirs
      
      * one more Runtime::Statemine
      
      * benchmark westmint
      
      * rename chain spec name and id
      
      * rename chain spec files
      
      * more tidying in scripts/docs/tests
      
      * rename old dir if exists
      
      * Force people to manually do the move.
      
      (Safer as there could be additional considerations with their setup)
      
      * review touchups
      
      * more renaming
      
      * Update polkadot-parachain/src/command.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * better error message
      
      * do not break on-chain spec_name
      
      * log info message that path has been renamed
      
      * better penpal docs
      
      ---------
      
      Co-authored-by: default avatargilescope <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: parity-processbot <>
      60075495
  14. May 29, 2023
  15. May 25, 2023
    • Gavin Wood's avatar
      Companion for polkadot#7234 (XCM: Tools for uniquely referencing messages) (#2601) · ec21c0a2
      Gavin Wood authored
      * Fixes for new API
      
      * Formatting
      
      * Fixes
      
      * Fixes
      
      * Further fixes
      
      * XCMP dispatch events mention message ID
      
      * XCMP event includes ID
      
      * Add DMP message ID functionality
      
      * Integrate into test parachains
      
      * Remove WithUniqueTopic usage
      
      * Use new primitive
      
      * Formatting
      
      * undiener
      
      * Revert lock
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Formatting
      
      * message_hash becomes message_id
      
      * Rename
      
      * Another Rename
      
      * Fixes
      
      * Fix
      
      * Bump
      
      * Fixes
      
      * Grumble.
      ec21c0a2
  16. May 23, 2023
  17. May 16, 2023
    • Branislav Kontur's avatar
      BridgeHubRococo/Wococo nits + updated subtree (#2572) · 17b2e1b3
      Branislav Kontur authored
      * Nits (merge before separatelly)
      
      * Small cosmetics for Rococo/Wococo bridge local run
      
      * Squashed 'bridges/' changes from 04b3dda6aa..5fc377ab34
      
      5fc377ab34 Support for kusama-polkadot relaying (#2128)
      01f4b7f1ba Fix clippy warnings (#2127)
      696ff1c368 BHK/P alignments (#2115)
      2a66aa3248 Small fixes (#2126)
      7810f1a988 Cosmetics (#2124)
      daf250f69c Remove some `expect()` statements (#2123)
      1c5fba8274 temporarily remove balance guard (#2121)
      3d0e547361 Propagate message receival confirmation errors (#2116)
      1c33143f07 Propagate message verification errors (#2114)
      b075b00910 Bump time from 0.3.20 to 0.3.21
      51a3a51618 Bump serde from 1.0.160 to 1.0.162
      da88d044a6 Bump clap from 4.2.5 to 4.2.7
      cdca322cd6 Bump sysinfo from 0.28.4 to 0.29.0
      
      git-subtree-dir: bridges
      git-subtree-split: 5fc377ab34f7dfd3293099c5feec49255e827812
      
      * Fix
      
      * Allow to change storage constants (DeliveryReward, RequiredStakeForStakeAndSlash) + tests
      
      * Clippy
      
      * New SA for RO/WO
      
      * Squashed 'bridges/' changes from 5fc377ab34..0f6091d481
      
      0f6091d481 Bump polkadot/substrate (#2134)
      9233f0a337 Bump tokio from 1.28.0 to 1.28.1
      a29c1caa93 Bump serde from 1.0.162 to 1.0.163
      
      git-subtree-dir: bridges
      git-subtree-split: 0f6091d48184ebb4f75cb3089befa6b92cf37335
      17b2e1b3
  18. May 08, 2023
  19. May 06, 2023
  20. May 05, 2023
  21. Apr 24, 2023
  22. Mar 23, 2023
    • joe petrowski's avatar
      Add Support for Foreign Assets (#2133) · af46f4b4
      joe petrowski authored
      
      
      * add foreign assets to westmint
      
      * add foreign assets to statemine
      
      * use updated api for ensure origin trait
      
      * Assets/ForeignAssets tests and fixes (#2167)
      
      * Test for create and transfer `TrustBackedAssets` with AssetTransactor
      
      * Test for transfer `local Currency` with AssetTransactor
      
      * Test for create foreign assets (covers foreign relaychain currency)
      
      * Added `ForeignFungiblesTransactor` and test for transfer `ForeignAssets` with AssetTransactor
      
      * Removed unused `pub const Local: MultiLocation`
      
      * Changed `ParaId -> Sibling` for `SiblingParachainConvertsVia`
      
      * Test for create foreign assets (covers local sibling parachain assets)
      
      * Reverted stuff for ForeignCreators from different global consensus (moved to transfer asset branch)
      
      * Refactor `weight_limit` for `execute_xcm`
      
      * Added test for `set_metadata` by ForeignCreator with `xcm::Transact(set_metadata)`
      
      * Renamed `receive_teleported_asset_works` -> `receive_teleported_asset_for_native_asset_works`
      
      * Allow `ForeignCreators` only for sibling parachains
      
      * Unify ReservedDmpWeight/ReservedXcmpWeight usage
      
      * Removed hack - replaced with `MatchedConvertedConcreteId`
      
      * Refactor `ForeignCreators` to assets-common
      
      * Add `ReceiveTeleportedAsset` test
      
      * Change test - `Utility::batch` -> Multiple `xcm::Transact`
      
      * Reusing the same deposits as for TrustBackedAssets
      
      * missing `try_successful_origin` ?
      
      * Finished `ForeignAssets` for westmint (converter, FungiblesApi, tests)
      
      * Refactoring tests - receive_teleported_asset_for_native_asset_works
      
      * ForeignAssets for statemine + refactored `receive_teleported_asset_from_foreign_creator_works`
      
      * Add `ForeignAssets` to statemine `FungiblesApi`
      
      * Add `asset_transactor_transfer_with_local_consensus_currency_works` to all runtimes
      
      * Added `asset_transactor_transfer_with_trust_backed_assets_works` test
      
      * Added `asset_transactor_transfer_with_foreign_assets_works`
      
      * Fix `missing `try_successful_origin` in implementation`
      
      * Added `create_and_manage_foreign_assets_for_local_consensus_parachain_assets_works`
      
      * Added `ExpectTransactStatus` check
      
      * Small rename
      
      * Extended `test_assets_balances_api_works` with ForeignAssets for `statemine`
      
      * PR fixes
      
      * Update parachains/runtimes/assets/test-utils/src/test_cases.rs
      
      ---------
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Added `StartsWithExplicitGlobalConsensus` to ignores (#2338)
      
      * Update parachains/runtimes/assets/common/src/lib.rs
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      
      * include mint and burn in SafeCallFilter
      
      * include mint and burn in SafeCallFilter (statemine)
      
      * clarify doc
      
      * Fix compilation (moved trait `InspectMetadata`)
      
      * Fix test
      
      * Extended test for `teleport` from/to relaychain + `CheckingAccount` (Part I)
      
      * Extended test for `teleport` from/to foreign parachain + `CheckingAccount` (Part II)
      
      * Fixed TODO - `NonLocal` for `ForeignAssets`
      
      * Changed `NonLocal` to `NoChecking`
      
      * Fix weight in test
      
      ---------
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarmuharem <[email protected]>
      Co-authored-by: default avatarBranislav Kontur <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      af46f4b4
    • Just van Stam's avatar
      Companion for polkadot#6928 (#2356) · 490593bf
      Just van Stam authored
      
      
      * add AdminOrigin to all xcm-configs in cumulus
      
      * cargo fmt
      
      * Update Substrate & Polkadot
      
      ---------
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      490593bf
  23. Mar 21, 2023
  24. Mar 14, 2023
  25. Mar 02, 2023
    • Jegor Sidorenko's avatar
      Companion for #13352 (#2180) · 2156cbc0
      Jegor Sidorenko authored
      
      
      * Assets balances
      
      * Update docs
      
      * AssetsApi with MultiLocation as preparation for multi pallet_assets instances (#2187)
      
      * AssetsApi with MultiLocation for Westmint + assets-common
      
      * AssetsApi with MultiLocation for Statemine/t
      
      * typo
      
      * typo for check-docs job
      
      * WIP: AssetsApi return MultiAsset instead of (MultiLocation, Balance)
      
      * WIP: assets_api + conversion refactor
      
      * WIP: assets_api + conversion refactor
      
      * Finished asset runtimes
      
      * Refactor AssetsApi to FungiblesApi
      
      * Refactor
      
      * Fix check-rust-docs
      
      * Removed todo
      
      * Fix check-rust-doc
      
      * Update parachains/runtimes/assets/common/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * update lockfile for {"substrate", "polkadot"}
      
      ---------
      
      Co-authored-by: default avatarBranislav Kontur <[email protected]>
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      2156cbc0
  26. Jan 24, 2023
  27. Jan 18, 2023
  28. Jan 17, 2023
    • Gavin Wood's avatar
      XCM v3 Companion (#697) · 3a459e8f
      Gavin Wood authored
      * Fixes
      
      * Undiener
      
      * Undiener
      
      * Undiener
      
      * Lockfile
      
      * Changes for send returning hash
      
      * Include message ID as params to execute_xcm
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Companion fixes
      
      * Formatting
      
      * Fixes
      
      * Formatting
      
      * Bump
      
      * Bump
      
      * Fixes
      
      * Formatting
      
      * Make the price of UMP/XCMP message sending configurable
      
      * cargo fmt
      
      * Remove InvertLocation
      
      * Formatting
      
      * Use ConstantPrice from polkadot-runtime-common
      
      * Fix naming
      
      * cargo fmt
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Add CallDispatcher
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Remove unused import
      
      * Remove unused import
      
      * XCMv3 fixes (#1710)
      
      * Fixes XCMv3 related
      Fixes XCMv3 (removed query_holding)
      Fixes XCMv3 - should use _depositable_count?
      Fixes XCMv3 - removed TrustedReserve
      Fixes - missing weights for statemine/statemint/westmint
      [DO-NOT-CHERRY-PICK] tmp return query_holding to aviod conficts to master
      Fixes - missing functions for pallet_xcm_benchmarks::generic::Config
      Fixes for XCMv3 benchmarking
      Fix xcm - removed query_holding
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
      
      * Fix imports
      
      * Avoid consuming XCM message for NotApplicable scenario (#1787)
      
      * Avoid consuming message for NotApplicable scenario
      
      * Avoid consuming message for NotApplicable scenario tests
      
      * Add 10 message processing limit to DMP queue
      
      * Add 10 message limit to XCMP queue
      
      * Always increment the message_processed count whenever a message is processed
      
      * Fix formatting
      
      * Set an upper limit to the overweight message DMP queue
      
      * Add upper limit to XCMP overweight message queue
      
      * Fix for missing weight for `fn unpaid_execution()`
      
      * Fix - usage of `messages_processed`
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * cargo fmt
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Remove unused import
      
      * Fixes for gav-xcm-v3 (#1835)
      
      * Fix for FungiblesAdapter - trait changes: Contains -> AssetChecking
      
      * Fix for missing weight for `fn unpaid_execution()`
      
      * Used NonLocalMint for all NonZeroIssuance
      
      * Fix
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fix tests
      
      * Fixes
      
      * Add SafeCallFilter
      
      * Add missing config items
      
      * Add TODO
      
      * Use () as the PriceForParentDelivery
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Update transact_origin to transact_origin_and_runtime_call
      
      * Add ReachableDest config item to XCM pallet
      
      * Update SafeCallFilter to allow remark_with_event in runtime benchmarks
      
      * cargo fmt
      
      * Update substrate
      
      * Fix worst_case_holding
      
      * Fix DMQ queue unit tests
      
      * Remove unused label
      
      * cargo fmt
      
      * Actually process incoming XCMs
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes - return back Weightless
      
      * Added measured benchmarks for `pallet_xcm` (#1968)
      
      * Fix
      
      Fix
      
      Fix
      
      * Fix
      
      * Fixes for transact benchmark
      
      * Fixes add pallet_xcm to benchmarks
      
      * Revert remark_with_event
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
      
      * Fixes
      
      * TMP
      
      * Fix for reserve_asset_deposited
      
      * ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm
      
      * Fix
      
      * ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm
      
      * Fix
      
      * ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm
      
      * Fix westmint
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
      
      * Fix
      
      * ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm
      
      * Fix for collectives
      
      * ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm
      
      * Fixes for bridge-hubs
      
      * Fixes - return back Weightless
      
      * Fix - removed MigrateToTrackInactive for contracts-rococo
      
      Co-authored-by: command-bot <>
      
      * cargo fmt
      
      * Fix benchmarks
      
      * Bko gav xcm v3 (#1993)
      
      * Fix
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm
      
      Co-authored-by: command-bot <>
      
      * Change AllowUnpaidExecutionFrom to be explicit
      
      * xcm-v3 benchmarks, weights, fixes for bridge-hubs (#2035)
      
      * Dumy weights to get compile
      
      * Change UniversalLocation according to https://github.com/paritytech/polkadot/pull/4097
      
       (Location Inversion Removed)
      
      * Fix bridge-hubs weights
      
      * ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm
      
      * ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::generic
      
      * Change NetworkId to Option<NetworkId>
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Add event for showing the hash of an UMP sent message (#1228)
      
      * Add UpwardMessageSent event in parachain-system
      
      * additional fixes
      
      * Message Id
      
      * Fix errors from merge
      
      * fmt
      
      * more fmt
      
      * Remove todo
      
      * more formatting
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Allow explicit unpaid executions from the relay chains for system parachains (#2060)
      
      * Allow explicit unpaid executions from the relay chains for system parachains
      
      * Put origin-filtering barriers into WithComputedOrigin
      
      * Use ConstU32<8>
      
      * Small nits
      
      * formatting
      
      * cargo fmt
      
      * Allow receiving XCMs from any relay chain plurality
      
      * Fixes
      
      * update lockfile for {"polkadot", "substrate"}
      
      * Update polkadot
      
      * Add runtime-benchmarks feature
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarBranislav Kontur <[email protected]>
      Co-authored-by: default avatargirazoki <[email protected]>
      Co-authored-by: parity-processbot <>
      3a459e8f
  29. Nov 28, 2022
  30. Sep 20, 2022
  31. Sep 12, 2022
    • Sergej Sakac's avatar
      Companion for #11981 (#1563) · 68ba7e54
      Sergej Sakac authored
      
      
      * Companion for #11981
      
      * rename
      
      * Event to RuntimeEvent in imports
      
      * missed rename
      
      * undo
      
      * revert
      
      * rename type Call & Event
      
      * commit
      
      * ...
      
      * fix
      
      * fix errors
      
      * fixes
      
      * fmt
      
      * fix imports
      
      * final fix?
      
      * fmt
      
      * fix?
      
      * fixes after merge
      
      * small fix
      
      * cargo update -p polkadot-runtime-common
      
      * cargo +nightly fmt
      
      * update lockfile for {"polkadot", "substrate"}
      
      * fix
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: parity-processbot <>
      68ba7e54
  32. Sep 01, 2022
    • Roman Useinov's avatar
      [Feature] Add XCM benchmark weights to Statemint and Statemine (#1454) · cc14953b
      Roman Useinov authored
      
      
      * [Feature] Add XCM benchmarark weights to Statemint and Statemine
      
      * add xcm-bench-template
      
      * add polkadot xcm bench pallet to statemint
      
      * Sample benchmarking that compiles
      
      * add benches to the module
      
      * Remove batches assertion and whitelist ActiveConfig
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * fix benchmarks
      
      * fix get_multi_asset
      
      * fmt and more bench fixes
      
      * reformat
      
      * move Xcm type definitions
      
      * define types twice
      
      * remove commented out lines
      
      * define Xcm bench types globally
      
      * test use
      
      * fix semi
      
      * make sure the type definittion is properly documented
      
      * tweak TrustedTeleporter/Reserve
      
      * use dots as asset
      
      * copy benchmarks over, fix the ci script
      
      * remove extra asset
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * benchmarks setup for statemint/e and westmint
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
      
      * ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::fungible
      
      * remove a check
      
      * ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::fungible
      
      * ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
      
      * implement WeightInfoBounds for all the asset runtimes
      
      * update Cargo.lock
      
      * fix Muharem's comments
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * Update parachains/runtimes/assets/statemint/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * fix some review comments
      
      * fix file headers
      
      * more fixes to licenses and such
      
      * fix another inconsistency
      
      * Extend weights template
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * remove a placeholder
      
      * remove redundant overrides
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::fungible
      
      * Update benchmarking.rs
      
      * remove redundant bench
      
      * fix
      
      * ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
      
      * Update pallets/xcm-benchmarks/src/fungible/mock.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * remove TODO's
      
      * remove local xcm-benchmark-pallet impl
      
      * disable CheckedAccount in benches
      
      * update template
      
      * fix up imports
      
      * fix xcm
      
      * fix the template
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      cc14953b
  33. Aug 31, 2022
    • Shawn Tabrizi's avatar
      Companion for Weight v1.5 (#1581) · 48d4f1c5
      Shawn Tabrizi authored
      * cargo test -p cumulus-primitives-utility
      
      * cargo test -p cumulus-pallet-xcmp-queue
      
      * cargo test -p cumulus-pallet-xcm
      
      * cargo test -p cumulus-pallet-dmp-queue
      
      * cargo test -p pallet-template
      
      * cargo test -p cumulus-test-runtime
      
      * fix weights
      
      * fix more weights
      
      * cargo test -p parachains-common
      
      * cargo test -p parachain-template-runtime
      
      * fix weights import
      
      * cargo test -p collectives-polkadot-runtime
      
      * cargo test -p contracts-rococo-runtime
      
      * more
      
      * unused
      
      * fixes
      
      * Update benchmarking.rs
      
      * Update lib.rs
      
      * Update lib.rs
      
      * fix
      
      * fix bug in conversion
      
      * update lockfile for {"polkadot", "substrate"}
      
      Co-authored-by: parity-processbot <>
      48d4f1c5
  34. Aug 03, 2022
    • girazoki's avatar
      Statemint runtimes to accept sufficient assets as xcm fee payment (#1278) · 8f2a3a50
      girazoki authored
      
      
      * point to my branch
      
      * girazoki-add-TakeFirstAssetTrader-to-utility
      
      * Commit lock
      
      * point at custom branch
      
      * add new trader to statemine runtimes
      
      * compiles
      
      * Back to master
      
      * Update last tomls
      
      * Imports up
      
      * remove non-needing imports
      
      * FMT
      
      * log messages properly
      
      * Use TakeRevenue instead of HandleCredit
      
      * Introduce xcm fee handler
      
      * check total supply in tests
      
      * FMT
      
      * fix test
      
      * Start decoupling balance calculation into different traits
      
      * Make traits a bit more generic
      
      * PR suggestions
      
      * add import
      
      * import well
      
      * Place xcmfeesassethandler into parachains common
      
      * fix tests
      
      * config parameters
      
      * Min amount to fee receiver
      
      * Make minimum amount for block author to be at least the ED
      
      * Doc in AssetFeeAsExistentialDepositMultiplier
      
      * saturating sub
      
      * make sure we dont enter twice
      
      * FMT
      
      * fmt again
      
      * adapt tests
      
      * Add doc and struct for weight refund
      
      * Doc
      
      * More doc
      
      * PR suggestions
      
      * store all info related to asset payment as multiasset
      
      * return AssetNotFound instead of TooExpensive
      
      * Use asset transactor to deposit fee
      
      * uninstall from statemint
      
      * R for RUntime and CON for BalanceConverter
      
      * Rework logic to avoid unnecesary match and error
      
      * Rework ED check, also in case of refund
      
      * rework typo
      
      * In case refund makes drop below ED, just refund the difference
      
      * fix test westmint
      
      * clone id
      
      * move test imports to preamble
      
      * move test imports to preamble
      
      * test-utils with builderS
      
      * lock file updated
      
      * remove unused imports
      
      Co-authored-by: default avatarStephen Shelton <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarjoepetrowski <[email protected]>
      8f2a3a50
  35. Jun 16, 2022
  36. Jun 01, 2022
  37. May 20, 2022