1. 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
  2. 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
  3. 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
  4. 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
  5. Jun 16, 2022
  6. Jun 01, 2022
  7. May 20, 2022
  8. Apr 20, 2022
    • Squirrel's avatar
      Deny using relay chain for reserve transfers (#1169) · fafe1f1b
      Squirrel authored
      
      
      * Deny using relay chain for reserve transfers
      
      * match on junction as well.
      
      * Update polkadot-parachains/parachains-common/src/xcm_config.rs
      
      * Use Err to signal deny
      
      * Deny depisiting reserved assets + fmt
      
      * Allow DepositReserveAssets from relay chain
      
      Deny InitiateReserveWithdrawal
      
      * Rather than allow DepositReserveAsset,
      
      it was ReservAssetDeposited that should be allowed but logged.
      
      * don't reference common parachains.
      
      * Update parachain-template/runtime/src/xcm_config.rs
      
      * Warn if reserve asset deposited msg detected.
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      fafe1f1b
  9. Mar 08, 2022
  10. Mar 07, 2022
  11. Feb 11, 2022