diff --git a/state-chain/chains/Cargo.toml b/state-chain/chains/Cargo.toml index 68ac43c17d..61018eb427 100644 --- a/state-chain/chains/Cargo.toml +++ b/state-chain/chains/Cargo.toml @@ -56,6 +56,7 @@ rand = { version = '0.8.4' } [features] default = ['std'] std = [ + 'bech32/std', 'cf-primitives/std', 'cf-utilities/std', 'scale-info/std', diff --git a/state-chain/node/Cargo.toml b/state-chain/node/Cargo.toml index dbfdc8ef79..cd9a994d7c 100644 --- a/state-chain/node/Cargo.toml +++ b/state-chain/node/Cargo.toml @@ -88,8 +88,20 @@ runtime-benchmarks = [ "state-chain-runtime/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-benchmarking-cli/runtime-benchmarks", + "cf-chains/runtime-benchmarks", + "cf-primitives/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sc-service/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] +try-runtime = [ + "state-chain-runtime/try-runtime", + "try-runtime-cli/try-runtime", + "frame-system/try-runtime", + "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime", + ] -try-runtime = ["state-chain-runtime/try-runtime", "try-runtime-cli/try-runtime"] [package.metadata.deb] depends = "$auto, systemd" diff --git a/state-chain/pallets/cf-account-roles/Cargo.toml b/state-chain/pallets/cf-account-roles/Cargo.toml index 31750bd29c..08ccdafaa7 100644 --- a/state-chain/pallets/cf-account-roles/Cargo.toml +++ b/state-chain/pallets/cf-account-roles/Cargo.toml @@ -63,5 +63,6 @@ runtime-benchmarks = [ ] try-runtime = [ 'frame-support/try-runtime', + 'frame-system/try-runtime', 'cf-runtime-upgrade-utilities/try-runtime', ] diff --git a/state-chain/pallets/cf-broadcast/Cargo.toml b/state-chain/pallets/cf-broadcast/Cargo.toml index 561352a42d..96a0bb3dca 100644 --- a/state-chain/pallets/cf-broadcast/Cargo.toml +++ b/state-chain/pallets/cf-broadcast/Cargo.toml @@ -66,4 +66,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-chain-tracking/Cargo.toml b/state-chain/pallets/cf-chain-tracking/Cargo.toml index 2bc27c367e..d36a75571e 100644 --- a/state-chain/pallets/cf-chain-tracking/Cargo.toml +++ b/state-chain/pallets/cf-chain-tracking/Cargo.toml @@ -66,4 +66,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-emissions/Cargo.toml b/state-chain/pallets/cf-emissions/Cargo.toml index abe6a3ef0a..d307c2e346 100644 --- a/state-chain/pallets/cf-emissions/Cargo.toml +++ b/state-chain/pallets/cf-emissions/Cargo.toml @@ -70,4 +70,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-environment/Cargo.toml b/state-chain/pallets/cf-environment/Cargo.toml index 3f67d9ddd2..ceb61ebab9 100644 --- a/state-chain/pallets/cf-environment/Cargo.toml +++ b/state-chain/pallets/cf-environment/Cargo.toml @@ -70,4 +70,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-flip/Cargo.toml b/state-chain/pallets/cf-flip/Cargo.toml index 3e0a066914..a2f3286c4d 100644 --- a/state-chain/pallets/cf-flip/Cargo.toml +++ b/state-chain/pallets/cf-flip/Cargo.toml @@ -60,5 +60,11 @@ runtime-benchmarks = [ 'frame-system/runtime-benchmarks', 'cf-primitives/runtime-benchmarks', 'cf-traits/runtime-benchmarks', + 'sp-runtime/runtime-benchmarks', +] +try-runtime = [ + 'frame-support/try-runtime', + 'frame-system/try-runtime', + 'sp-runtime/try-runtime', + 'pallet-transaction-payment/try-runtime', ] -try-runtime = ['frame-support/try-runtime'] diff --git a/state-chain/pallets/cf-funding/Cargo.toml b/state-chain/pallets/cf-funding/Cargo.toml index fee009d4b0..cc92e29f21 100644 --- a/state-chain/pallets/cf-funding/Cargo.toml +++ b/state-chain/pallets/cf-funding/Cargo.toml @@ -55,6 +55,7 @@ std = [ 'frame-system/std', 'log/std', 'scale-info/std', + 'sp-std/std', ] runtime-benchmarks = [ 'cf-chains/runtime-benchmarks', diff --git a/state-chain/pallets/cf-governance/Cargo.toml b/state-chain/pallets/cf-governance/Cargo.toml index 4248d43866..b5fd7d8612 100644 --- a/state-chain/pallets/cf-governance/Cargo.toml +++ b/state-chain/pallets/cf-governance/Cargo.toml @@ -59,5 +59,6 @@ runtime-benchmarks = [ ] try-runtime = [ 'frame-support/try-runtime', + 'frame-system/try-runtime', 'cf-runtime-upgrade-utilities/try-runtime', ] diff --git a/state-chain/pallets/cf-ingress-egress/Cargo.toml b/state-chain/pallets/cf-ingress-egress/Cargo.toml index d19329aac2..77c0241e17 100644 --- a/state-chain/pallets/cf-ingress-egress/Cargo.toml +++ b/state-chain/pallets/cf-ingress-egress/Cargo.toml @@ -49,6 +49,7 @@ std = [ 'cf-primitives/std', 'cf-traits/std', 'cf-runtime-upgrade-utilities/std', + 'cf-runtime-utilities/std', 'codec/std', 'frame-benchmarking?/std', 'frame-support/std', @@ -56,6 +57,7 @@ std = [ 'scale-info/std', 'sp-runtime/std', 'sp-std/std', + 'log/std', ] runtime-benchmarks = [ 'cf-chains/runtime-benchmarks', @@ -65,8 +67,11 @@ runtime-benchmarks = [ 'frame-support/runtime-benchmarks', 'frame-system/runtime-benchmarks', 'pallet-cf-governance/runtime-benchmarks', + 'sp-runtime/runtime-benchmarks', ] try-runtime = [ 'frame-support/try-runtime', + 'frame-system/try-runtime', + 'sp-runtime/try-runtime', 'cf-runtime-upgrade-utilities/try-runtime', ] diff --git a/state-chain/pallets/cf-lp/Cargo.toml b/state-chain/pallets/cf-lp/Cargo.toml index aed8e4b488..1868d6a977 100644 --- a/state-chain/pallets/cf-lp/Cargo.toml +++ b/state-chain/pallets/cf-lp/Cargo.toml @@ -71,4 +71,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-pools/Cargo.toml b/state-chain/pallets/cf-pools/Cargo.toml index 38fe8beb46..aabf1507f9 100644 --- a/state-chain/pallets/cf-pools/Cargo.toml +++ b/state-chain/pallets/cf-pools/Cargo.toml @@ -71,4 +71,4 @@ runtime-benchmarks = [ 'frame-system/runtime-benchmarks', 'sp-runtime/runtime-benchmarks', ] -try-runtime = ['frame-support/try-runtime'] +try-runtime = ['frame-support/try-runtime', 'frame-system/try-runtime'] diff --git a/state-chain/pallets/cf-reputation/Cargo.toml b/state-chain/pallets/cf-reputation/Cargo.toml index ac824587aa..4611c6133c 100644 --- a/state-chain/pallets/cf-reputation/Cargo.toml +++ b/state-chain/pallets/cf-reputation/Cargo.toml @@ -62,8 +62,10 @@ runtime-benchmarks = [ 'frame-benchmarking/runtime-benchmarks', 'frame-support/runtime-benchmarks', 'frame-system/runtime-benchmarks', + 'sp-staking/runtime-benchmarks', ] try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-swapping/Cargo.toml b/state-chain/pallets/cf-swapping/Cargo.toml index 29dc04e502..5fbcf1dea6 100644 --- a/state-chain/pallets/cf-swapping/Cargo.toml +++ b/state-chain/pallets/cf-swapping/Cargo.toml @@ -73,4 +73,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-threshold-signature/Cargo.toml b/state-chain/pallets/cf-threshold-signature/Cargo.toml index 1b1fced7f5..2315917347 100644 --- a/state-chain/pallets/cf-threshold-signature/Cargo.toml +++ b/state-chain/pallets/cf-threshold-signature/Cargo.toml @@ -50,6 +50,7 @@ default = ['std'] std = [ 'cf-chains/std', 'cf-primitives/std', + 'cf-runtime-utilities/std', 'cf-runtime-upgrade-utilities/std', 'cf-traits/std', 'codec/std', @@ -76,4 +77,7 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', + 'pallet-cf-reputation/try-runtime', + 'pallet-cf-validator/try-runtime', ] diff --git a/state-chain/pallets/cf-tokenholder-governance/Cargo.toml b/state-chain/pallets/cf-tokenholder-governance/Cargo.toml index 58e85aeb66..06f66b5ac8 100644 --- a/state-chain/pallets/cf-tokenholder-governance/Cargo.toml +++ b/state-chain/pallets/cf-tokenholder-governance/Cargo.toml @@ -63,4 +63,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-validator/Cargo.toml b/state-chain/pallets/cf-validator/Cargo.toml index fd1eff85a3..b00786f59e 100644 --- a/state-chain/pallets/cf-validator/Cargo.toml +++ b/state-chain/pallets/cf-validator/Cargo.toml @@ -63,9 +63,13 @@ std = [ 'frame-support/std', 'frame-system/std', 'log/std', + 'nanorand/std', 'pallet-cf-vaults/std', + 'pallet-cf-funding/std', + 'pallet-cf-reputation/std', 'pallet-session/std', 'scale-info/std', + 'sp-application-crypto/std', 'sp-core/std', 'sp-std/std', ] @@ -76,11 +80,16 @@ runtime-benchmarks = [ 'frame-support/runtime-benchmarks', 'frame-system/runtime-benchmarks', 'pallet-cf-funding/runtime-benchmarks', - 'pallet-cf-reputation', + 'pallet-cf-reputation/runtime-benchmarks', 'pallet-cf-vaults/runtime-benchmarks', 'dep:sp-application-crypto', ] try-runtime = [ 'frame-support/try-runtime', + 'frame-system/try-runtime', 'cf-runtime-upgrade-utilities/try-runtime', + 'pallet-cf-funding/try-runtime', + 'pallet-cf-reputation/try-runtime', + 'pallet-cf-vaults/try-runtime', + 'pallet-session/try-runtime', ] diff --git a/state-chain/pallets/cf-vaults/Cargo.toml b/state-chain/pallets/cf-vaults/Cargo.toml index ae5dfae0fc..cba0e0eaff 100644 --- a/state-chain/pallets/cf-vaults/Cargo.toml +++ b/state-chain/pallets/cf-vaults/Cargo.toml @@ -72,4 +72,5 @@ runtime-benchmarks = [ try-runtime = [ 'cf-runtime-upgrade-utilities/try-runtime', 'frame-support/try-runtime', + 'frame-system/try-runtime', ] diff --git a/state-chain/pallets/cf-witnesser/Cargo.toml b/state-chain/pallets/cf-witnesser/Cargo.toml index 85d3a79404..02fc58671b 100644 --- a/state-chain/pallets/cf-witnesser/Cargo.toml +++ b/state-chain/pallets/cf-witnesser/Cargo.toml @@ -55,6 +55,7 @@ std = [ 'frame-benchmarking?/std', 'frame-support/std', 'frame-system/std', + 'hex/std', 'scale-info/std', 'sp-std/std', ] @@ -65,4 +66,4 @@ runtime-benchmarks = [ 'frame-support/runtime-benchmarks', 'frame-system/runtime-benchmarks', ] -try-runtime = ['frame-support/try-runtime'] +try-runtime = ['frame-support/try-runtime', 'frame-system/try-runtime'] diff --git a/state-chain/primitives/Cargo.toml b/state-chain/primitives/Cargo.toml index d650cfa26e..63b87510cd 100644 --- a/state-chain/primitives/Cargo.toml +++ b/state-chain/primitives/Cargo.toml @@ -34,6 +34,7 @@ sp-core = { git = "https://github.com/chainflip-io/substrate.git", tag = "chainf default = ['std'] std = [ 'codec/std', + 'ethabi/std', 'frame-support/std', 'dep:hex', 'scale-info/std', diff --git a/state-chain/runtime/Cargo.toml b/state-chain/runtime/Cargo.toml index c42db2472c..a1033f2ad2 100644 --- a/state-chain/runtime/Cargo.toml +++ b/state-chain/runtime/Cargo.toml @@ -127,6 +127,7 @@ runtime-benchmarks = [ 'pallet-cf-validator/runtime-benchmarks', 'pallet-cf-vaults/runtime-benchmarks', 'pallet-cf-witnesser/runtime-benchmarks', + 'pallet-grandpa/runtime-benchmarks', 'pallet-timestamp/runtime-benchmarks', 'sp-runtime/runtime-benchmarks', ] @@ -220,4 +221,5 @@ try-runtime = [ 'pallet-grandpa/try-runtime', 'pallet-session/try-runtime', 'pallet-authorship/try-runtime', + 'sp-runtime/try-runtime', ] diff --git a/state-chain/traits/Cargo.toml b/state-chain/traits/Cargo.toml index 27e3d6f7ba..b90009c21c 100644 --- a/state-chain/traits/Cargo.toml +++ b/state-chain/traits/Cargo.toml @@ -49,4 +49,5 @@ runtime-benchmarks = [ 'frame-benchmarking/runtime-benchmarks', 'frame-support/runtime-benchmarks', 'frame-system/runtime-benchmarks', + 'sp-runtime/runtime-benchmarks', ]