xtokens config (#331)

* added trader

* loosing the logic for bridged assets

* simplify logic

* better inline docs

* match against all X1, X2, etc. variants

* simplify the xcm config

---------

Co-authored-by: Alistair Singh <alistair.singh7@gmail.com>
This commit is contained in:
Özgün Özerk
2024-10-30 09:16:43 +03:00
committed by GitHub
parent 3df636d524
commit c43aa9591b
10 changed files with 488 additions and 102 deletions
+73 -3
View File
@@ -3007,7 +3007,9 @@ dependencies = [
"frame-try-runtime",
"hex-literal",
"log",
"orml-traits",
"orml-xcm-support",
"orml-xtokens",
"pallet-asset-manager",
"pallet-assets",
"pallet-aura",
@@ -3016,6 +3018,7 @@ dependencies = [
"pallet-base-fee",
"pallet-collator-selection",
"pallet-conviction-voting",
"pallet-erc20-xcm-bridge",
"pallet-ethereum",
"pallet-evm",
"pallet-evm-chain-id",
@@ -3037,6 +3040,7 @@ dependencies = [
"pallet-utility",
"pallet-whitelist",
"pallet-xcm",
"pallet-xcm-weight-trader",
"parachains-common",
"parity-scale-codec",
"polkadot-parachain-primitives",
@@ -6871,6 +6875,7 @@ dependencies = [
"parity-scale-codec",
"paste",
"scale-info",
"serde",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6886,6 +6891,7 @@ dependencies = [
"frame-support",
"parity-scale-codec",
"scale-info",
"serde",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6906,6 +6912,27 @@ dependencies = [
"staging-xcm-executor",
]
[[package]]
name = "orml-xtokens"
version = "0.10.0"
source = "git+https://github.com/OpenZeppelin/open-runtime-module-library?branch=polkadot-stable2407-1#aafe9077c9ec61dd8b3a42e899ef8353b2b050c0"
dependencies = [
"frame-support",
"frame-system",
"log",
"orml-traits",
"orml-xcm-support",
"pallet-xcm",
"parity-scale-codec",
"scale-info",
"serde",
"sp-io",
"sp-runtime",
"sp-std",
"staging-xcm",
"staging-xcm-executor",
]
[[package]]
name = "overload"
version = "0.1.1"
@@ -6933,7 +6960,7 @@ dependencies = [
[[package]]
name = "pallet-asset-manager"
version = "0.1.0"
source = "git+https://github.com/OpenZeppelin/moonbeam.git?branch=polkadot-stable2407-1#3ed33a712c6968af7a33d970ec4300293c5345b9"
source = "git+https://github.com/OpenZeppelin/moonbeam.git?branch=polkadot-stable2407-1#fab6e72fbaaeaa065ad983556d09d4c0e8755dfa"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -7343,6 +7370,28 @@ dependencies = [
"sp-staking",
]
[[package]]
name = "pallet-erc20-xcm-bridge"
version = "1.0.0"
source = "git+https://github.com/OpenZeppelin/moonbeam.git?branch=polkadot-stable2407-1#fab6e72fbaaeaa065ad983556d09d4c0e8755dfa"
dependencies = [
"environmental",
"ethereum-types",
"fp-evm",
"frame-support",
"frame-system",
"log",
"pallet-evm",
"parity-scale-codec",
"scale-info",
"serde",
"sp-core",
"sp-runtime",
"sp-std",
"staging-xcm",
"staging-xcm-executor",
]
[[package]]
name = "pallet-ethereum"
version = "4.0.0-dev"
@@ -8134,6 +8183,27 @@ dependencies = [
"staging-xcm-executor",
]
[[package]]
name = "pallet-xcm-weight-trader"
version = "0.1.0"
source = "git+https://github.com/OpenZeppelin/moonbeam.git?branch=polkadot-stable2407-1#fab6e72fbaaeaa065ad983556d09d4c0e8755dfa"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"log",
"pallet-balances",
"parity-scale-codec",
"scale-info",
"sp-core",
"sp-io",
"sp-runtime",
"sp-std",
"staging-xcm",
"staging-xcm-executor",
"xcm-runtime-apis",
]
[[package]]
name = "parachains-common"
version = "17.0.0"
@@ -9941,7 +10011,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4"
dependencies = [
"bytes",
"heck 0.5.0",
"heck 0.4.1",
"itertools 0.12.1",
"log",
"multimap 0.10.0",
@@ -15781,7 +15851,7 @@ dependencies = [
[[package]]
name = "xcm-primitives"
version = "0.1.1"
source = "git+https://github.com/OpenZeppelin/moonbeam.git?branch=polkadot-stable2407-1#3ed33a712c6968af7a33d970ec4300293c5345b9"
source = "git+https://github.com/OpenZeppelin/moonbeam.git?branch=polkadot-stable2407-1#fab6e72fbaaeaa065ad983556d09d4c0e8755dfa"
dependencies = [
"cumulus-primitives-core",
"ethereum",