From ae196e585339bf32b2db9dbbe9e5e11299cb23c3 Mon Sep 17 00:00:00 2001 From: Gianfranco Tasteri Date: Thu, 28 Dec 2023 15:23:51 -0300 Subject: [PATCH] add-try-runtime-feature --- pallets/clients-info/Cargo.toml | 4 ++++ pallets/currency/Cargo.toml | 8 ++++++++ pallets/fee/Cargo.toml | 13 +++++++++++++ pallets/issue/Cargo.toml | 15 ++++++++++++++- pallets/nomination/Cargo.toml | 17 +++++++++++++++++ pallets/oracle/Cargo.toml | 13 +++++++++++++ pallets/pooled-rewards/Cargo.toml | 6 ++++++ pallets/redeem/Cargo.toml | 17 +++++++++++++++++ pallets/replace/Cargo.toml | 18 ++++++++++++++++++ pallets/reward-distribution/Cargo.toml | 13 +++++++++++++ pallets/reward/Cargo.toml | 5 +++++ pallets/security/Cargo.toml | 5 +++++ pallets/staking/Cargo.toml | 5 +++++ pallets/vault-registry/Cargo.toml | 17 +++++++++++++++++ 14 files changed, 155 insertions(+), 1 deletion(-) diff --git a/pallets/clients-info/Cargo.toml b/pallets/clients-info/Cargo.toml index 2f8601408..9ef3efc23 100644 --- a/pallets/clients-info/Cargo.toml +++ b/pallets/clients-info/Cargo.toml @@ -40,3 +40,7 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] + +try-runtime = [ + "frame-system/try-runtime", +] \ No newline at end of file diff --git a/pallets/currency/Cargo.toml b/pallets/currency/Cargo.toml index f2e55ef19..d1d01b5cd 100644 --- a/pallets/currency/Cargo.toml +++ b/pallets/currency/Cargo.toml @@ -58,3 +58,11 @@ testing-utils = [ # This feature has to be separate from the testing-utils feature because combining them causes the 'duplicate lang item' error # when compiling the testchain runtime testing-constants = [] + +try-runtime = [ + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-transaction-payment/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", +] \ No newline at end of file diff --git a/pallets/fee/Cargo.toml b/pallets/fee/Cargo.toml index c4322dd71..668e82b6f 100644 --- a/pallets/fee/Cargo.toml +++ b/pallets/fee/Cargo.toml @@ -77,3 +77,16 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "currency/testing-constants" ] + +try-runtime = [ + "frame-system/try-runtime", + "currency/try-runtime", + "pallet-balances/try-runtime", + "security/try-runtime", + "staking/try-runtime", + "pooled-rewards/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "reward-distribution/try-runtime", + "oracle/try-runtime", +] \ No newline at end of file diff --git a/pallets/issue/Cargo.toml b/pallets/issue/Cargo.toml index 99c52aab6..89dbaea95 100644 --- a/pallets/issue/Cargo.toml +++ b/pallets/issue/Cargo.toml @@ -102,4 +102,17 @@ runtime-benchmarks = [ "security/testing-utils", "oracle/testing-utils" ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-system/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "pallet-balances/try-runtime", + "stellar-relay/try-runtime", + "vault-registry/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "security/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "oracle/try-runtime", +] diff --git a/pallets/nomination/Cargo.toml b/pallets/nomination/Cargo.toml index 86b3dc616..b89a05768 100644 --- a/pallets/nomination/Cargo.toml +++ b/pallets/nomination/Cargo.toml @@ -89,3 +89,20 @@ runtime-benchmarks = [ "security/testing-utils", "oracle/testing-utils" ] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "currency/try-runtime", + "security/try-runtime", + "vault-registry/try-runtime", + "fee/try-runtime", + "pooled-rewards/try-runtime", + "oracle/try-runtime", + "staking/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "reward-distribution/try-runtime", +] \ No newline at end of file diff --git a/pallets/oracle/Cargo.toml b/pallets/oracle/Cargo.toml index cadc33c5e..b44bc9dc2 100644 --- a/pallets/oracle/Cargo.toml +++ b/pallets/oracle/Cargo.toml @@ -82,3 +82,16 @@ runtime-benchmarks = [ "testing-utils" ] testing-utils = ["spin", "once_cell"] + +try-runtime = [ + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "security/try-runtime", + "staking/try-runtime", + "currency/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "orml-oracle/try-runtime", + "dia-oracle/try-runtime", +] \ No newline at end of file diff --git a/pallets/pooled-rewards/Cargo.toml b/pallets/pooled-rewards/Cargo.toml index 683472de6..044f6bfb2 100644 --- a/pallets/pooled-rewards/Cargo.toml +++ b/pallets/pooled-rewards/Cargo.toml @@ -56,3 +56,9 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] + +try-runtime = [ + "frame-system/try-runtime", + "frame-system/try-runtime", + "currency/try-runtime", +] diff --git a/pallets/redeem/Cargo.toml b/pallets/redeem/Cargo.toml index 600a5ff02..68189dfe6 100644 --- a/pallets/redeem/Cargo.toml +++ b/pallets/redeem/Cargo.toml @@ -96,3 +96,20 @@ runtime-benchmarks = [ "oracle/testing-utils", "currency/testing-constants" ] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "oracle/try-runtime", + "security/try-runtime", + "stellar-relay/try-runtime", + "vault-registry/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "reward-distribution/try-runtime", +] diff --git a/pallets/replace/Cargo.toml b/pallets/replace/Cargo.toml index c67b0d501..d2f70c0b0 100644 --- a/pallets/replace/Cargo.toml +++ b/pallets/replace/Cargo.toml @@ -99,3 +99,21 @@ runtime-benchmarks = [ "security/testing-utils", "oracle/testing-utils" ] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "nomination/try-runtime", + "oracle/try-runtime", + "security/try-runtime", + "stellar-relay/try-runtime", + "vault-registry/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "reward-distribution/try-runtime", +] diff --git a/pallets/reward-distribution/Cargo.toml b/pallets/reward-distribution/Cargo.toml index dd2f73336..f11ea5e35 100644 --- a/pallets/reward-distribution/Cargo.toml +++ b/pallets/reward-distribution/Cargo.toml @@ -71,3 +71,16 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "currency/try-runtime", + "pooled-rewards/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "security/try-runtime", + "staking/try-runtime", +] diff --git a/pallets/reward/Cargo.toml b/pallets/reward/Cargo.toml index 375e5661d..34c935acd 100644 --- a/pallets/reward/Cargo.toml +++ b/pallets/reward/Cargo.toml @@ -53,3 +53,8 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", +] diff --git a/pallets/security/Cargo.toml b/pallets/security/Cargo.toml index 3d2d0d9fb..0abaef013 100644 --- a/pallets/security/Cargo.toml +++ b/pallets/security/Cargo.toml @@ -36,3 +36,8 @@ std = [ "frame-system/std", ] testing-utils = [] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", +] diff --git a/pallets/staking/Cargo.toml b/pallets/staking/Cargo.toml index 216141fa9..41c3908b7 100644 --- a/pallets/staking/Cargo.toml +++ b/pallets/staking/Cargo.toml @@ -57,3 +57,8 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", +] diff --git a/pallets/vault-registry/Cargo.toml b/pallets/vault-registry/Cargo.toml index 067cd0940..bb5b29e3e 100644 --- a/pallets/vault-registry/Cargo.toml +++ b/pallets/vault-registry/Cargo.toml @@ -91,3 +91,20 @@ std = [ "staking/std", "primitives/std", ] + + +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "oracle/try-runtime", + "fee/try-runtime", + "security/try-runtime", + "currency/try-runtime", + "reward/try-runtime", + "staking/try-runtime", +]