xtokens on generic (#343)

* generic xtokens support

---------

Co-authored-by: Nikita Khateev <nikita.khateev@openzeppelin.com>
This commit is contained in:
Özgün Özerk
2024-10-31 10:38:32 +03:00
committed by GitHub
parent c43aa9591b
commit a7d968b934
11 changed files with 579 additions and 26 deletions
+119 -3
View File
@@ -3627,6 +3627,7 @@ dependencies = [
"cumulus-primitives-utility",
"frame-benchmarking",
"frame-executive",
"frame-metadata-hash-extension",
"frame-support",
"frame-system",
"frame-system-benchmarking",
@@ -3634,6 +3635,9 @@ dependencies = [
"frame-try-runtime",
"hex-literal",
"log",
"orml-traits",
"orml-xcm-support",
"orml-xtokens",
"pallet-asset-manager",
"pallet-assets",
"pallet-aura",
@@ -3656,6 +3660,7 @@ dependencies = [
"pallet-utility",
"pallet-whitelist",
"pallet-xcm",
"pallet-xcm-weight-trader",
"parachains-common",
"parity-scale-codec",
"polkadot-parachain-primitives",
@@ -3681,6 +3686,7 @@ dependencies = [
"staging-xcm-builder",
"staging-xcm-executor",
"substrate-wasm-builder",
"xcm-primitives",
]
[[package]]
@@ -5627,6 +5633,20 @@ dependencies = [
"hash-db",
]
[[package]]
name = "merkleized-metadata"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f313fcff1d2a4bcaa2deeaa00bf7530d77d5f7bd0467a117dde2e29a75a7a17a"
dependencies = [
"array-bytes",
"blake3",
"frame-metadata",
"parity-scale-codec",
"scale-decode",
"scale-info",
]
[[package]]
name = "merlin"
version = "3.0.0"
@@ -6374,7 +6394,7 @@ dependencies = [
[[package]]
name = "orml-traits"
version = "0.10.0"
source = "git+https://github.com/openzeppelin/open-runtime-module-library?branch=polkadot-stable2407-1#aafe9077c9ec61dd8b3a42e899ef8353b2b050c0"
source = "git+https://github.com/OpenZeppelin/open-runtime-module-library?branch=polkadot-stable2407-1#aafe9077c9ec61dd8b3a42e899ef8353b2b050c0"
dependencies = [
"frame-support",
"impl-trait-for-tuples",
@@ -6383,6 +6403,7 @@ dependencies = [
"parity-scale-codec",
"paste",
"scale-info",
"serde",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6393,17 +6414,53 @@ dependencies = [
[[package]]
name = "orml-utilities"
version = "0.10.0"
source = "git+https://github.com/openzeppelin/open-runtime-module-library?branch=polkadot-stable2407-1#aafe9077c9ec61dd8b3a42e899ef8353b2b050c0"
source = "git+https://github.com/OpenZeppelin/open-runtime-module-library?branch=polkadot-stable2407-1#aafe9077c9ec61dd8b3a42e899ef8353b2b050c0"
dependencies = [
"frame-support",
"parity-scale-codec",
"scale-info",
"serde",
"sp-core",
"sp-io",
"sp-runtime",
"sp-std",
]
[[package]]
name = "orml-xcm-support"
version = "0.10.0"
source = "git+https://github.com/OpenZeppelin/open-runtime-module-library?branch=polkadot-stable2407-1#aafe9077c9ec61dd8b3a42e899ef8353b2b050c0"
dependencies = [
"frame-support",
"orml-traits",
"parity-scale-codec",
"sp-runtime",
"sp-std",
"staging-xcm",
"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"
@@ -7534,6 +7591,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"
@@ -9341,7 +9419,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",
@@ -11474,6 +11552,29 @@ dependencies = [
"sp-arithmetic",
]
[[package]]
name = "scale-bits"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e57b1e7f6b65ed1f04e79a85a57d755ad56d76fdf1e9bddcc9ae14f71fcdcf54"
dependencies = [
"parity-scale-codec",
"scale-type-resolver",
]
[[package]]
name = "scale-decode"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e98f3262c250d90e700bb802eb704e1f841e03331c2eb815e46516c4edbf5b27"
dependencies = [
"derive_more",
"parity-scale-codec",
"scale-bits",
"scale-type-resolver",
"smallvec",
]
[[package]]
name = "scale-info"
version = "2.11.3"
@@ -11500,6 +11601,12 @@ dependencies = [
"syn 1.0.109",
]
[[package]]
name = "scale-type-resolver"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0cded6518aa0bd6c1be2b88ac81bf7044992f0f154bfbabd5ad34f43512abcb"
[[package]]
name = "schannel"
version = "0.1.23"
@@ -13153,13 +13260,22 @@ name = "substrate-wasm-builder"
version = "24.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk?tag=polkadot-stable2407-1#16b0fd09d9e9281c20ee0c1d8b87d011e3e3454e"
dependencies = [
"array-bytes",
"build-helper",
"cargo_metadata",
"console",
"filetime",
"frame-metadata",
"merkleized-metadata",
"parity-scale-codec",
"parity-wasm",
"polkavm-linker",
"sc-executor",
"sp-core",
"sp-io",
"sp-maybe-compressed-blob",
"sp-tracing",
"sp-version",
"strum 0.26.3",
"tempfile",
"toml 0.8.19",