Added Asset Conversion in Kusama (#2935)

* Changes for asset conversion in ksm

* applied changes to forbid batch calls in xcm filters for ksm and wnd, fixed tests typing, cleaned up

* updated weights for pallet_asset_conversion in ksm

* updated swap_locally_on_chain_using_local_assets test

* added more call filters, approval deposit fix

* Update parachains/runtimes/assets/asset-hub-kusama/src/xcm_config.rs

* Update tests to be like master

* set metadata needed for the test.

* Update parachains/runtimes/assets/asset-hub-kusama/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Update parachains/runtimes/assets/asset-hub-kusama/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* removed hardcoded existential_deposit in local swap test

* storage to const

We're not planning on setting this via an on chain vote so let's have it as a const.

* unneeded tests

* const

* shorter line

* missed one

* remove unused import

* Update parachains/runtimes/assets/asset-hub-kusama/src/lib.rs

Co-authored-by: Bastian Köcher <git@kchr.de>

---------

Co-authored-by: joepetrowski <joe@parity.io>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Pato
2023-08-19 11:24:32 -03:00
committed by GitHub
parent 3288148aa7
commit 8bd3aec7cf
17 changed files with 1461 additions and 201 deletions
+6 -1
View File
@@ -561,12 +561,15 @@ checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9"
name = "asset-hub-kusama-integration-tests"
version = "1.0.0"
dependencies = [
"assert_matches",
"asset-hub-kusama-runtime",
"cumulus-pallet-dmp-queue",
"cumulus-pallet-parachain-system",
"cumulus-pallet-xcmp-queue",
"frame-support",
"frame-system",
"integration-tests-common",
"pallet-asset-conversion",
"pallet-assets",
"pallet-balances",
"pallet-xcm",
@@ -608,7 +611,8 @@ dependencies = [
"hex-literal",
"kusama-runtime-constants",
"log",
"pallet-asset-tx-payment",
"pallet-asset-conversion",
"pallet-asset-conversion-tx-payment",
"pallet-assets",
"pallet-aura",
"pallet-authorship",
@@ -634,6 +638,7 @@ dependencies = [
"polkadot-core-primitives",
"polkadot-parachain",
"polkadot-runtime-common",
"primitive-types",
"scale-info",
"smallvec",
"sp-api",