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
+20 -3
View File
@@ -84,6 +84,13 @@ parachains-common = { workspace = true }
# Moonbeam
pallet-asset-manager = { workspace = true }
pallet-xcm-weight-trader = { workspace = true }
xcm-primitives = { workspace = true }
# ORML
orml-traits = { workspace = true }
orml-xcm-support = { workspace = true }
orml-xtokens = { workspace = true }
[dev-dependencies]
sp-io = { workspace = true }
@@ -92,7 +99,6 @@ sp-io = { workspace = true }
substrate-wasm-builder = { workspace = true }
[features]
default = [ "std" ]
std = [
"assets-common/std",
"cumulus-pallet-aura-ext/std",
@@ -113,6 +119,7 @@ std = [
"frame-system/std",
"frame-try-runtime?/std",
"log/std",
"orml-xtokens/std",
"pallet-asset-manager/std",
"pallet-assets/std",
"pallet-aura/std",
@@ -134,6 +141,7 @@ std = [
"pallet-treasury/std",
"pallet-utility/std",
"pallet-whitelist/std",
"pallet-xcm-weight-trader/std",
"pallet-xcm/std",
"parachain-info/std",
"parachains-common/std",
@@ -156,10 +164,10 @@ std = [
"sp-version/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-primitives/std",
"xcm/std",
]
async-backing = []
metadata-hash = [ "substrate-wasm-builder/metadata-hash" ]
runtime-benchmarks = [
"assets-common/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
@@ -187,6 +195,7 @@ runtime-benchmarks = [
"pallet-treasury/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-whitelist/runtime-benchmarks",
"pallet-xcm-weight-trader/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"parachains-common/runtime-benchmarks",
"polkadot-parachain-primitives/runtime-benchmarks",
@@ -205,6 +214,7 @@ try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"frame-try-runtime/try-runtime",
"orml-xtokens/try-runtime",
"pallet-asset-manager/try-runtime",
"pallet-assets/try-runtime",
"pallet-aura/try-runtime",
@@ -226,6 +236,7 @@ try-runtime = [
"pallet-treasury/try-runtime",
"pallet-utility/try-runtime",
"pallet-whitelist/try-runtime",
"pallet-xcm-weight-trader/try-runtime",
"pallet-xcm/try-runtime",
"parachain-info/try-runtime",
"polkadot-runtime-common/try-runtime",
@@ -236,3 +247,9 @@ try-runtime = [
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
# to make it smaller, like logging for example.
on-chain-release-build = [ "sp-api/disable-logging" ]
async-backing = []
default = [ "std" ]
metadata-hash = [ "substrate-wasm-builder/metadata-hash" ]