Skip to content

Commit

Permalink
add-try-runtime-feature (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t authored Jan 3, 2024
1 parent 816aa00 commit 22c52ab
Show file tree
Hide file tree
Showing 14 changed files with 155 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pallets/clients-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
]

try-runtime = [
"frame-system/try-runtime",
]
8 changes: 8 additions & 0 deletions pallets/currency/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
13 changes: 13 additions & 0 deletions pallets/fee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
15 changes: 14 additions & 1 deletion pallets/issue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
17 changes: 17 additions & 0 deletions pallets/nomination/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
13 changes: 13 additions & 0 deletions pallets/oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
6 changes: 6 additions & 0 deletions pallets/pooled-rewards/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
17 changes: 17 additions & 0 deletions pallets/redeem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
18 changes: 18 additions & 0 deletions pallets/replace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
13 changes: 13 additions & 0 deletions pallets/reward-distribution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
5 changes: 5 additions & 0 deletions pallets/reward/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
]

try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
]
5 changes: 5 additions & 0 deletions pallets/security/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ std = [
"frame-system/std",
]
testing-utils = []

try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
]
5 changes: 5 additions & 0 deletions pallets/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
]

try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
]
17 changes: 17 additions & 0 deletions pallets/vault-registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

0 comments on commit 22c52ab

Please sign in to comment.