From 4ac8cb620a4efee55bc9092badf705385ae7a57d Mon Sep 17 00:00:00 2001 From: William Freudenberger Date: Fri, 24 May 2024 16:26:13 +0200 Subject: [PATCH] fmt: taplo --- Cargo.toml | 92 +++--- runtime/altair/Cargo.toml | 562 ++++++++++++++++----------------- runtime/centrifuge/Cargo.toml | 560 ++++++++++++++++---------------- runtime/development/Cargo.toml | 562 ++++++++++++++++----------------- scripts/init.sh | 2 +- 5 files changed, 889 insertions(+), 889 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ea1785de73..a7f0edc820 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,48 +1,48 @@ [workspace] resolver = "2" members = [ - "node", - "libs/mocks", - "libs/primitives", - "libs/test-utils", - "libs/traits", - "libs/types", - "libs/utils", - "pallets/anchors", - "pallets/bridge", - "pallets/block-rewards", - "pallets/collator-allowlist", - "pallets/ethereum-transaction", - "pallets/fees", - "pallets/foreign-investments", - "pallets/interest-accrual", - "pallets/investments", - "pallets/keystore", - "pallets/liquidity-pools", - "pallets/liquidity-pools-gateway", - "pallets/liquidity-pools-gateway/axelar-gateway-precompile", - "pallets/liquidity-pools-gateway/routers", - "pallets/liquidity-rewards", - "pallets/loans", - "pallets/oracle-feed", - "pallets/oracle-collection", - "pallets/order-book", - "pallets/permissions", - "pallets/pool-fees", - "pallets/pool-system", - "pallets/pool-registry", - "pallets/restricted-tokens", - "pallets/restricted-xtokens", - "pallets/rewards", - "pallets/swaps", - "pallets/token-mux", - "pallets/transfer-allowlist", - "runtime/altair", - "runtime/centrifuge", - "runtime/development", - "runtime/common", - #"runtime/integration-tests", - "runtime/integration-tests/procedural", + "node", + "libs/mocks", + "libs/primitives", + "libs/test-utils", + "libs/traits", + "libs/types", + "libs/utils", + "pallets/anchors", + "pallets/bridge", + "pallets/block-rewards", + "pallets/collator-allowlist", + "pallets/ethereum-transaction", + "pallets/fees", + "pallets/foreign-investments", + "pallets/interest-accrual", + "pallets/investments", + "pallets/keystore", + "pallets/liquidity-pools", + "pallets/liquidity-pools-gateway", + "pallets/liquidity-pools-gateway/axelar-gateway-precompile", + "pallets/liquidity-pools-gateway/routers", + "pallets/liquidity-rewards", + "pallets/loans", + "pallets/oracle-feed", + "pallets/oracle-collection", + "pallets/order-book", + "pallets/permissions", + "pallets/pool-fees", + "pallets/pool-system", + "pallets/pool-registry", + "pallets/restricted-tokens", + "pallets/restricted-xtokens", + "pallets/rewards", + "pallets/swaps", + "pallets/token-mux", + "pallets/transfer-allowlist", + "runtime/altair", + "runtime/centrifuge", + "runtime/development", + "runtime/common", + #"runtime/integration-tests", + "runtime/integration-tests/procedural", ] [workspace.package] @@ -173,7 +173,7 @@ sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", default-features frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" } frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" } frame-support = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, features = [ - "tuples-96", + "tuples-96", ], branch = "release-polkadot-v1.7.2" } # Check when tuples-96 can be removed frame-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" } frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" } @@ -281,14 +281,14 @@ pallet-remarks = { git = "https://github.com/foss3/runtime-pallet-library", bran # Moonbeam fork of polkadot-evm/frontier fp-rpc = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2" } fp-self-contained = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2", features = [ - "serde", + "serde", ] } pallet-base-fee = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2" } pallet-ethereum = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2", features = [ - "forbid-evm-reentrancy", + "forbid-evm-reentrancy", ] } pallet-evm = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2", features = [ - "forbid-evm-reentrancy", + "forbid-evm-reentrancy", ] } pallet-evm-chain-id = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2" } pallet-evm-precompile-blake2 = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v1.7.2" } diff --git a/runtime/altair/Cargo.toml b/runtime/altair/Cargo.toml index 93004f6bc8..e4016eb911 100644 --- a/runtime/altair/Cargo.toml +++ b/runtime/altair/Cargo.toml @@ -145,299 +145,299 @@ substrate-wasm-builder = { workspace = true } default = ["std"] std = [ - "parity-scale-codec/std", - "getrandom/std", - "hex/std", - "scale-info/std", - "serde/std", - "log/std", - # Substrate related - "sp-api/std", - "sp-runtime/std", - "sp-block-builder/std", - "sp-consensus-aura/std", - "sp-core/std", - "sp-genesis-builder/std", - "sp-inherents/std", - "sp-io/std", - "sp-offchain/std", - "sp-session/std", - "sp-std/std", - "sp-transaction-pool/std", - "sp-version/std", - "sp-staking/std", - "frame-support/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", - "frame-executive/std", - "frame-try-runtime?/std", - "frame-system-benchmarking?/std", - "frame-benchmarking?/std", - "cumulus-primitives-core/std", - "cumulus-primitives-timestamp/std", - "cumulus-primitives-utility/std", - "cumulus-pallet-session-benchmarking?/std", - "staging-xcm/std", - "staging-xcm-builder/std", - "staging-xcm-executor/std", - "xcm-primitives/std", - "orml-traits/std", - "orml-xcm-support/std", - "fp-rpc/std", - "fp-self-contained/std", - "pallet-transaction-payment-rpc-runtime-api/std", - "polkadot-runtime-common/std", - "polkadot-parachain-primitives/std", - # Locals - "cfg-primitives/std", - "cfg-traits/std", - "cfg-types/std", - "runtime-common/std", - "liquidity-pools-gateway-routers/std", - # Pallet list - "axelar-gateway-precompile/std", - "chainbridge/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "orml-asset-registry/std", - "orml-tokens/std", - "orml-xcm/std", - "orml-xtokens/std", - "pallet-anchors/std", - "pallet-aura/std", - "pallet-authorship/std", - "pallet-balances/std", - "pallet-base-fee/std", - "pallet-block-rewards/std", - "pallet-bridge/std", - "pallet-collator-allowlist/std", - "pallet-collator-selection/std", - "pallet-collective/std", - "pallet-democracy/std", - "pallet-elections-phragmen/std", - "pallet-ethereum/std", - "pallet-ethereum-transaction/std", - "pallet-evm/std", - "pallet-evm-chain-id/std", - "pallet-fees/std", - "pallet-foreign-investments/std", - "pallet-identity/std", - "pallet-interest-accrual/std", - "pallet-investments/std", - "pallet-keystore/std", - "pallet-liquidity-pools/std", - "pallet-liquidity-pools-gateway/std", - "pallet-liquidity-rewards/std", - "pallet-loans/std", - "pallet-membership/std", - "pallet-multisig/std", - "pallet-oracle-collection/std", - "pallet-oracle-feed/std", - "pallet-order-book/std", - "pallet-permissions/std", - "pallet-pool-fees/std", - "pallet-pool-registry/std", - "pallet-pool-system/std", - "pallet-preimage/std", - "pallet-proxy/std", - "pallet-restricted-tokens/std", - "pallet-restricted-xtokens/std", - "pallet-rewards/std", - "pallet-remarks/std", - "pallet-scheduler/std", - "pallet-session/std", - "pallet-sudo/std", - "pallet-swaps/std", - "pallet-timestamp/std", - "pallet-token-mux/std", - "pallet-transaction-payment/std", - "pallet-transfer-allowlist/std", - "pallet-treasury/std", - "pallet-uniques/std", - "pallet-utility/std", - "pallet-vesting/std", - "pallet-xcm/std", - "pallet-xcm-transactor/std", - "pallet-message-queue/std", - "staging-parachain-info/std", + "parity-scale-codec/std", + "getrandom/std", + "hex/std", + "scale-info/std", + "serde/std", + "log/std", + # Substrate related + "sp-api/std", + "sp-runtime/std", + "sp-block-builder/std", + "sp-consensus-aura/std", + "sp-core/std", + "sp-genesis-builder/std", + "sp-inherents/std", + "sp-io/std", + "sp-offchain/std", + "sp-session/std", + "sp-std/std", + "sp-transaction-pool/std", + "sp-version/std", + "sp-staking/std", + "frame-support/std", + "frame-system/std", + "frame-system-rpc-runtime-api/std", + "frame-executive/std", + "frame-try-runtime?/std", + "frame-system-benchmarking?/std", + "frame-benchmarking?/std", + "cumulus-primitives-core/std", + "cumulus-primitives-timestamp/std", + "cumulus-primitives-utility/std", + "cumulus-pallet-session-benchmarking?/std", + "staging-xcm/std", + "staging-xcm-builder/std", + "staging-xcm-executor/std", + "xcm-primitives/std", + "orml-traits/std", + "orml-xcm-support/std", + "fp-rpc/std", + "fp-self-contained/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "polkadot-runtime-common/std", + "polkadot-parachain-primitives/std", + # Locals + "cfg-primitives/std", + "cfg-traits/std", + "cfg-types/std", + "runtime-common/std", + "liquidity-pools-gateway-routers/std", + # Pallet list + "axelar-gateway-precompile/std", + "chainbridge/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "orml-asset-registry/std", + "orml-tokens/std", + "orml-xcm/std", + "orml-xtokens/std", + "pallet-anchors/std", + "pallet-aura/std", + "pallet-authorship/std", + "pallet-balances/std", + "pallet-base-fee/std", + "pallet-block-rewards/std", + "pallet-bridge/std", + "pallet-collator-allowlist/std", + "pallet-collator-selection/std", + "pallet-collective/std", + "pallet-democracy/std", + "pallet-elections-phragmen/std", + "pallet-ethereum/std", + "pallet-ethereum-transaction/std", + "pallet-evm/std", + "pallet-evm-chain-id/std", + "pallet-fees/std", + "pallet-foreign-investments/std", + "pallet-identity/std", + "pallet-interest-accrual/std", + "pallet-investments/std", + "pallet-keystore/std", + "pallet-liquidity-pools/std", + "pallet-liquidity-pools-gateway/std", + "pallet-liquidity-rewards/std", + "pallet-loans/std", + "pallet-membership/std", + "pallet-multisig/std", + "pallet-oracle-collection/std", + "pallet-oracle-feed/std", + "pallet-order-book/std", + "pallet-permissions/std", + "pallet-pool-fees/std", + "pallet-pool-registry/std", + "pallet-pool-system/std", + "pallet-preimage/std", + "pallet-proxy/std", + "pallet-restricted-tokens/std", + "pallet-restricted-xtokens/std", + "pallet-rewards/std", + "pallet-remarks/std", + "pallet-scheduler/std", + "pallet-session/std", + "pallet-sudo/std", + "pallet-swaps/std", + "pallet-timestamp/std", + "pallet-token-mux/std", + "pallet-transaction-payment/std", + "pallet-transfer-allowlist/std", + "pallet-treasury/std", + "pallet-uniques/std", + "pallet-utility/std", + "pallet-vesting/std", + "pallet-xcm/std", + "pallet-xcm-transactor/std", + "pallet-message-queue/std", + "staging-parachain-info/std", ] runtime-benchmarks = [ - # Enabling optional - "hex-literal", - "frame-system-benchmarking/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - # Substrate related - "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "staging-xcm-builder/runtime-benchmarks", - "staging-xcm-executor/runtime-benchmarks", - "xcm-primitives/runtime-benchmarks", - "polkadot-runtime-common/runtime-benchmarks", - "polkadot-parachain-primitives/runtime-benchmarks", - # Locals - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "runtime-common/runtime-benchmarks", - "liquidity-pools-gateway-routers/runtime-benchmarks", - # Pallet list - "axelar-gateway-precompile/runtime-benchmarks", - "chainbridge/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", - "orml-tokens/runtime-benchmarks", - "orml-xtokens/runtime-benchmarks", - "pallet-anchors/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "pallet-block-rewards/runtime-benchmarks", - "pallet-bridge/runtime-benchmarks", - "pallet-collator-allowlist/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "pallet-collective/runtime-benchmarks", - "pallet-democracy/runtime-benchmarks", - "pallet-elections-phragmen/runtime-benchmarks", - "pallet-ethereum/runtime-benchmarks", - "pallet-ethereum-transaction/runtime-benchmarks", - "pallet-evm/runtime-benchmarks", - "pallet-fees/runtime-benchmarks", - "pallet-foreign-investments/runtime-benchmarks", - "pallet-identity/runtime-benchmarks", - "pallet-interest-accrual/runtime-benchmarks", - "pallet-investments/runtime-benchmarks", - "pallet-keystore/runtime-benchmarks", - "pallet-liquidity-pools/runtime-benchmarks", - "pallet-liquidity-pools-gateway/runtime-benchmarks", - "pallet-liquidity-rewards/runtime-benchmarks", - "pallet-loans/runtime-benchmarks", - "pallet-membership/runtime-benchmarks", - "pallet-multisig/runtime-benchmarks", - "pallet-oracle-collection/runtime-benchmarks", - "pallet-oracle-feed/runtime-benchmarks", - "pallet-order-book/runtime-benchmarks", - "pallet-permissions/runtime-benchmarks", - "pallet-pool-fees/runtime-benchmarks", - "pallet-pool-registry/runtime-benchmarks", - "pallet-pool-system/runtime-benchmarks", - "pallet-preimage/runtime-benchmarks", - "pallet-proxy/runtime-benchmarks", - "pallet-restricted-tokens/runtime-benchmarks", - "pallet-restricted-xtokens/runtime-benchmarks", - "pallet-rewards/runtime-benchmarks", - "pallet-remarks/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks", - "pallet-sudo/runtime-benchmarks", - "pallet-swaps/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "pallet-token-mux/runtime-benchmarks", - "pallet-transfer-allowlist/runtime-benchmarks", - "pallet-treasury/runtime-benchmarks", - "pallet-uniques/runtime-benchmarks", - "pallet-utility/runtime-benchmarks", - "pallet-vesting/runtime-benchmarks", - "pallet-xcm/runtime-benchmarks", - "pallet-xcm-transactor/runtime-benchmarks", - "pallet-message-queue/runtime-benchmarks", + # Enabling optional + "hex-literal", + "frame-system-benchmarking/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + # Substrate related + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "staging-xcm-builder/runtime-benchmarks", + "staging-xcm-executor/runtime-benchmarks", + "xcm-primitives/runtime-benchmarks", + "polkadot-runtime-common/runtime-benchmarks", + "polkadot-parachain-primitives/runtime-benchmarks", + # Locals + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "runtime-common/runtime-benchmarks", + "liquidity-pools-gateway-routers/runtime-benchmarks", + # Pallet list + "axelar-gateway-precompile/runtime-benchmarks", + "chainbridge/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", + "orml-asset-registry/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "orml-xtokens/runtime-benchmarks", + "pallet-anchors/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-block-rewards/runtime-benchmarks", + "pallet-bridge/runtime-benchmarks", + "pallet-collator-allowlist/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", + "pallet-collective/runtime-benchmarks", + "pallet-democracy/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", + "pallet-ethereum/runtime-benchmarks", + "pallet-ethereum-transaction/runtime-benchmarks", + "pallet-evm/runtime-benchmarks", + "pallet-fees/runtime-benchmarks", + "pallet-foreign-investments/runtime-benchmarks", + "pallet-identity/runtime-benchmarks", + "pallet-interest-accrual/runtime-benchmarks", + "pallet-investments/runtime-benchmarks", + "pallet-keystore/runtime-benchmarks", + "pallet-liquidity-pools/runtime-benchmarks", + "pallet-liquidity-pools-gateway/runtime-benchmarks", + "pallet-liquidity-rewards/runtime-benchmarks", + "pallet-loans/runtime-benchmarks", + "pallet-membership/runtime-benchmarks", + "pallet-multisig/runtime-benchmarks", + "pallet-oracle-collection/runtime-benchmarks", + "pallet-oracle-feed/runtime-benchmarks", + "pallet-order-book/runtime-benchmarks", + "pallet-permissions/runtime-benchmarks", + "pallet-pool-fees/runtime-benchmarks", + "pallet-pool-registry/runtime-benchmarks", + "pallet-pool-system/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-proxy/runtime-benchmarks", + "pallet-restricted-tokens/runtime-benchmarks", + "pallet-restricted-xtokens/runtime-benchmarks", + "pallet-rewards/runtime-benchmarks", + "pallet-remarks/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", + "pallet-swaps/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pallet-token-mux/runtime-benchmarks", + "pallet-transfer-allowlist/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "pallet-uniques/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "pallet-vesting/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "pallet-xcm-transactor/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", ] try-runtime = [ - # Enabling optional - "frame-try-runtime/try-runtime", - # Substrate related - "sp-runtime/try-runtime", - "frame-support/try-runtime", - "frame-system/try-runtime", - "frame-executive/try-runtime", - "fp-self-contained/try-runtime", - "polkadot-runtime-common/try-runtime", - # Locals - "cfg-primitives/try-runtime", - "cfg-traits/try-runtime", - "cfg-types/try-runtime", - "runtime-common/try-runtime", - "liquidity-pools-gateway-routers/try-runtime", - # Pallet list - "axelar-gateway-precompile/try-runtime", - "chainbridge/try-runtime", - "cumulus-pallet-aura-ext/try-runtime", - "cumulus-pallet-parachain-system/try-runtime", - "cumulus-pallet-xcm/try-runtime", - "cumulus-pallet-xcmp-queue/try-runtime", - "orml-asset-registry/try-runtime", - "orml-tokens/try-runtime", - "orml-xcm/try-runtime", - "orml-xtokens/try-runtime", - "pallet-anchors/try-runtime", - "pallet-aura/try-runtime", - "pallet-authorship/try-runtime", - "pallet-balances/try-runtime", - "pallet-base-fee/try-runtime", - "pallet-block-rewards/try-runtime", - "pallet-bridge/try-runtime", - "pallet-collator-allowlist/try-runtime", - "pallet-collator-selection/try-runtime", - "pallet-collective/try-runtime", - "pallet-democracy/try-runtime", - "pallet-elections-phragmen/try-runtime", - "pallet-ethereum/try-runtime", - "pallet-ethereum-transaction/try-runtime", - "pallet-evm/try-runtime", - "pallet-evm-chain-id/try-runtime", - "pallet-fees/try-runtime", - "pallet-foreign-investments/try-runtime", - "pallet-identity/try-runtime", - "pallet-interest-accrual/try-runtime", - "pallet-investments/try-runtime", - "pallet-keystore/try-runtime", - "pallet-liquidity-pools/try-runtime", - "pallet-liquidity-pools-gateway/try-runtime", - "pallet-liquidity-rewards/try-runtime", - "pallet-loans/try-runtime", - "pallet-membership/try-runtime", - "pallet-multisig/try-runtime", - "pallet-oracle-collection/try-runtime", - "pallet-oracle-feed/try-runtime", - "pallet-order-book/try-runtime", - "pallet-permissions/try-runtime", - "pallet-pool-fees/try-runtime", - "pallet-pool-registry/try-runtime", - "pallet-pool-system/try-runtime", - "pallet-preimage/try-runtime", - "pallet-proxy/try-runtime", - "pallet-restricted-tokens/try-runtime", - "pallet-restricted-xtokens/try-runtime", - "pallet-rewards/try-runtime", - "pallet-remarks/try-runtime", - "pallet-scheduler/try-runtime", - "pallet-session/try-runtime", - "pallet-sudo/try-runtime", - "pallet-swaps/try-runtime", - "pallet-timestamp/try-runtime", - "pallet-token-mux/try-runtime", - "pallet-transaction-payment/try-runtime", - "pallet-transfer-allowlist/try-runtime", - "pallet-treasury/try-runtime", - "pallet-uniques/try-runtime", - "pallet-utility/try-runtime", - "pallet-vesting/try-runtime", - "pallet-xcm/try-runtime", - "pallet-xcm-transactor/try-runtime", - "pallet-message-queue/try-runtime", - "staging-parachain-info/try-runtime", + # Enabling optional + "frame-try-runtime/try-runtime", + # Substrate related + "sp-runtime/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-executive/try-runtime", + "fp-self-contained/try-runtime", + "polkadot-runtime-common/try-runtime", + # Locals + "cfg-primitives/try-runtime", + "cfg-traits/try-runtime", + "cfg-types/try-runtime", + "runtime-common/try-runtime", + "liquidity-pools-gateway-routers/try-runtime", + # Pallet list + "axelar-gateway-precompile/try-runtime", + "chainbridge/try-runtime", + "cumulus-pallet-aura-ext/try-runtime", + "cumulus-pallet-parachain-system/try-runtime", + "cumulus-pallet-xcm/try-runtime", + "cumulus-pallet-xcmp-queue/try-runtime", + "orml-asset-registry/try-runtime", + "orml-tokens/try-runtime", + "orml-xcm/try-runtime", + "orml-xtokens/try-runtime", + "pallet-anchors/try-runtime", + "pallet-aura/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-base-fee/try-runtime", + "pallet-block-rewards/try-runtime", + "pallet-bridge/try-runtime", + "pallet-collator-allowlist/try-runtime", + "pallet-collator-selection/try-runtime", + "pallet-collective/try-runtime", + "pallet-democracy/try-runtime", + "pallet-elections-phragmen/try-runtime", + "pallet-ethereum/try-runtime", + "pallet-ethereum-transaction/try-runtime", + "pallet-evm/try-runtime", + "pallet-evm-chain-id/try-runtime", + "pallet-fees/try-runtime", + "pallet-foreign-investments/try-runtime", + "pallet-identity/try-runtime", + "pallet-interest-accrual/try-runtime", + "pallet-investments/try-runtime", + "pallet-keystore/try-runtime", + "pallet-liquidity-pools/try-runtime", + "pallet-liquidity-pools-gateway/try-runtime", + "pallet-liquidity-rewards/try-runtime", + "pallet-loans/try-runtime", + "pallet-membership/try-runtime", + "pallet-multisig/try-runtime", + "pallet-oracle-collection/try-runtime", + "pallet-oracle-feed/try-runtime", + "pallet-order-book/try-runtime", + "pallet-permissions/try-runtime", + "pallet-pool-fees/try-runtime", + "pallet-pool-registry/try-runtime", + "pallet-pool-system/try-runtime", + "pallet-preimage/try-runtime", + "pallet-proxy/try-runtime", + "pallet-restricted-tokens/try-runtime", + "pallet-restricted-xtokens/try-runtime", + "pallet-rewards/try-runtime", + "pallet-remarks/try-runtime", + "pallet-scheduler/try-runtime", + "pallet-session/try-runtime", + "pallet-sudo/try-runtime", + "pallet-swaps/try-runtime", + "pallet-timestamp/try-runtime", + "pallet-token-mux/try-runtime", + "pallet-transaction-payment/try-runtime", + "pallet-transfer-allowlist/try-runtime", + "pallet-treasury/try-runtime", + "pallet-uniques/try-runtime", + "pallet-utility/try-runtime", + "pallet-vesting/try-runtime", + "pallet-xcm/try-runtime", + "pallet-xcm-transactor/try-runtime", + "pallet-message-queue/try-runtime", + "staging-parachain-info/try-runtime", ] # A feature that should be enabled when the runtime should be build for on-chain # 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", - "runtime-common/on-chain-release-build", + "sp-api/disable-logging", + "runtime-common/on-chain-release-build", ] # Set timing constants (e.g. session period) to faster versions to speed up testing. diff --git a/runtime/centrifuge/Cargo.toml b/runtime/centrifuge/Cargo.toml index ffb207d60c..afc0f355bc 100644 --- a/runtime/centrifuge/Cargo.toml +++ b/runtime/centrifuge/Cargo.toml @@ -145,298 +145,298 @@ substrate-wasm-builder = { workspace = true } default = ["std"] std = [ - "parity-scale-codec/std", - "getrandom/std", - "hex/std", - "scale-info/std", - "serde/std", - "log/std", - # Substrate related - "sp-api/std", - "sp-runtime/std", - "sp-block-builder/std", - "sp-consensus-aura/std", - "sp-core/std", - "sp-genesis-builder/std", - "sp-inherents/std", - "sp-io/std", - "sp-offchain/std", - "sp-session/std", - "sp-std/std", - "sp-transaction-pool/std", - "sp-version/std", - "sp-staking/std", - "frame-support/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", - "frame-executive/std", - "frame-try-runtime?/std", - "frame-system-benchmarking?/std", - "frame-benchmarking?/std", - "cumulus-primitives-core/std", - "cumulus-primitives-timestamp/std", - "cumulus-primitives-utility/std", - "cumulus-pallet-session-benchmarking?/std", - "staging-xcm/std", - "staging-xcm-builder/std", - "staging-xcm-executor/std", - "xcm-primitives/std", - "orml-traits/std", - "orml-xcm-support/std", - "fp-rpc/std", - "fp-self-contained/std", - "pallet-transaction-payment-rpc-runtime-api/std", - "polkadot-runtime-common/std", - "polkadot-parachain-primitives/std", - # Locals - "cfg-primitives/std", - "cfg-traits/std", - "cfg-types/std", - "runtime-common/std", - "liquidity-pools-gateway-routers/std", - # Pallet list - "axelar-gateway-precompile/std", - "chainbridge/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "orml-asset-registry/std", - "orml-tokens/std", - "orml-xcm/std", - "orml-xtokens/std", - "pallet-anchors/std", - "pallet-aura/std", - "pallet-authorship/std", - "pallet-balances/std", - "pallet-base-fee/std", - "pallet-block-rewards/std", - "pallet-bridge/std", - "pallet-collator-allowlist/std", - "pallet-collator-selection/std", - "pallet-collective/std", - "pallet-democracy/std", - "pallet-elections-phragmen/std", - "pallet-ethereum/std", - "pallet-ethereum-transaction/std", - "pallet-evm/std", - "pallet-evm-chain-id/std", - "pallet-fees/std", - "pallet-foreign-investments/std", - "pallet-identity/std", - "pallet-interest-accrual/std", - "pallet-investments/std", - "pallet-keystore/std", - "pallet-liquidity-pools/std", - "pallet-liquidity-pools-gateway/std", - "pallet-liquidity-rewards/std", - "pallet-loans/std", - "pallet-membership/std", - "pallet-multisig/std", - "pallet-oracle-collection/std", - "pallet-oracle-feed/std", - "pallet-order-book/std", - "pallet-permissions/std", - "pallet-pool-fees/std", - "pallet-pool-registry/std", - "pallet-pool-system/std", - "pallet-preimage/std", - "pallet-proxy/std", - "pallet-remarks/std", - "pallet-restricted-tokens/std", - "pallet-restricted-xtokens/std", - "pallet-rewards/std", - "pallet-scheduler/std", - "pallet-session/std", - "pallet-sudo/std", - "pallet-swaps/std", - "pallet-timestamp/std", - "pallet-token-mux/std", - "pallet-transaction-payment/std", - "pallet-transfer-allowlist/std", - "pallet-treasury/std", - "pallet-uniques/std", - "pallet-utility/std", - "pallet-vesting/std", - "pallet-xcm/std", - "pallet-xcm-transactor/std", - "pallet-message-queue/std", - "staging-parachain-info/std", + "parity-scale-codec/std", + "getrandom/std", + "hex/std", + "scale-info/std", + "serde/std", + "log/std", + # Substrate related + "sp-api/std", + "sp-runtime/std", + "sp-block-builder/std", + "sp-consensus-aura/std", + "sp-core/std", + "sp-genesis-builder/std", + "sp-inherents/std", + "sp-io/std", + "sp-offchain/std", + "sp-session/std", + "sp-std/std", + "sp-transaction-pool/std", + "sp-version/std", + "sp-staking/std", + "frame-support/std", + "frame-system/std", + "frame-system-rpc-runtime-api/std", + "frame-executive/std", + "frame-try-runtime?/std", + "frame-system-benchmarking?/std", + "frame-benchmarking?/std", + "cumulus-primitives-core/std", + "cumulus-primitives-timestamp/std", + "cumulus-primitives-utility/std", + "cumulus-pallet-session-benchmarking?/std", + "staging-xcm/std", + "staging-xcm-builder/std", + "staging-xcm-executor/std", + "xcm-primitives/std", + "orml-traits/std", + "orml-xcm-support/std", + "fp-rpc/std", + "fp-self-contained/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "polkadot-runtime-common/std", + "polkadot-parachain-primitives/std", + # Locals + "cfg-primitives/std", + "cfg-traits/std", + "cfg-types/std", + "runtime-common/std", + "liquidity-pools-gateway-routers/std", + # Pallet list + "axelar-gateway-precompile/std", + "chainbridge/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "orml-asset-registry/std", + "orml-tokens/std", + "orml-xcm/std", + "orml-xtokens/std", + "pallet-anchors/std", + "pallet-aura/std", + "pallet-authorship/std", + "pallet-balances/std", + "pallet-base-fee/std", + "pallet-block-rewards/std", + "pallet-bridge/std", + "pallet-collator-allowlist/std", + "pallet-collator-selection/std", + "pallet-collective/std", + "pallet-democracy/std", + "pallet-elections-phragmen/std", + "pallet-ethereum/std", + "pallet-ethereum-transaction/std", + "pallet-evm/std", + "pallet-evm-chain-id/std", + "pallet-fees/std", + "pallet-foreign-investments/std", + "pallet-identity/std", + "pallet-interest-accrual/std", + "pallet-investments/std", + "pallet-keystore/std", + "pallet-liquidity-pools/std", + "pallet-liquidity-pools-gateway/std", + "pallet-liquidity-rewards/std", + "pallet-loans/std", + "pallet-membership/std", + "pallet-multisig/std", + "pallet-oracle-collection/std", + "pallet-oracle-feed/std", + "pallet-order-book/std", + "pallet-permissions/std", + "pallet-pool-fees/std", + "pallet-pool-registry/std", + "pallet-pool-system/std", + "pallet-preimage/std", + "pallet-proxy/std", + "pallet-remarks/std", + "pallet-restricted-tokens/std", + "pallet-restricted-xtokens/std", + "pallet-rewards/std", + "pallet-scheduler/std", + "pallet-session/std", + "pallet-sudo/std", + "pallet-swaps/std", + "pallet-timestamp/std", + "pallet-token-mux/std", + "pallet-transaction-payment/std", + "pallet-transfer-allowlist/std", + "pallet-treasury/std", + "pallet-uniques/std", + "pallet-utility/std", + "pallet-vesting/std", + "pallet-xcm/std", + "pallet-xcm-transactor/std", + "pallet-message-queue/std", + "staging-parachain-info/std", ] runtime-benchmarks = [ - # Enabling optional - "frame-system-benchmarking/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - # Substrate related - "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "staging-xcm-builder/runtime-benchmarks", - "staging-xcm-executor/runtime-benchmarks", - "xcm-primitives/runtime-benchmarks", - "polkadot-runtime-common/runtime-benchmarks", - "polkadot-parachain-primitives/runtime-benchmarks", - # Locals - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "runtime-common/runtime-benchmarks", - "liquidity-pools-gateway-routers/runtime-benchmarks", - # Pallet list - "axelar-gateway-precompile/runtime-benchmarks", - "chainbridge/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", - "orml-tokens/runtime-benchmarks", - "orml-xtokens/runtime-benchmarks", - "pallet-anchors/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "pallet-block-rewards/runtime-benchmarks", - "pallet-bridge/runtime-benchmarks", - "pallet-collator-allowlist/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "pallet-collective/runtime-benchmarks", - "pallet-democracy/runtime-benchmarks", - "pallet-elections-phragmen/runtime-benchmarks", - "pallet-ethereum/runtime-benchmarks", - "pallet-ethereum-transaction/runtime-benchmarks", - "pallet-evm/runtime-benchmarks", - "pallet-fees/runtime-benchmarks", - "pallet-foreign-investments/runtime-benchmarks", - "pallet-identity/runtime-benchmarks", - "pallet-interest-accrual/runtime-benchmarks", - "pallet-investments/runtime-benchmarks", - "pallet-keystore/runtime-benchmarks", - "pallet-liquidity-pools/runtime-benchmarks", - "pallet-liquidity-pools-gateway/runtime-benchmarks", - "pallet-liquidity-rewards/runtime-benchmarks", - "pallet-loans/runtime-benchmarks", - "pallet-membership/runtime-benchmarks", - "pallet-multisig/runtime-benchmarks", - "pallet-oracle-collection/runtime-benchmarks", - "pallet-oracle-feed/runtime-benchmarks", - "pallet-order-book/runtime-benchmarks", - "pallet-permissions/runtime-benchmarks", - "pallet-pool-fees/runtime-benchmarks", - "pallet-pool-registry/runtime-benchmarks", - "pallet-pool-system/runtime-benchmarks", - "pallet-preimage/runtime-benchmarks", - "pallet-proxy/runtime-benchmarks", - "pallet-remarks/runtime-benchmarks", - "pallet-restricted-tokens/runtime-benchmarks", - "pallet-restricted-xtokens/runtime-benchmarks", - "pallet-rewards/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks", - "pallet-sudo/runtime-benchmarks", - "pallet-swaps/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "pallet-token-mux/runtime-benchmarks", - "pallet-transfer-allowlist/runtime-benchmarks", - "pallet-treasury/runtime-benchmarks", - "pallet-uniques/runtime-benchmarks", - "pallet-utility/runtime-benchmarks", - "pallet-vesting/runtime-benchmarks", - "pallet-xcm/runtime-benchmarks", - "pallet-xcm-transactor/runtime-benchmarks", - "pallet-message-queue/runtime-benchmarks", + # Enabling optional + "frame-system-benchmarking/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + # Substrate related + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "staging-xcm-builder/runtime-benchmarks", + "staging-xcm-executor/runtime-benchmarks", + "xcm-primitives/runtime-benchmarks", + "polkadot-runtime-common/runtime-benchmarks", + "polkadot-parachain-primitives/runtime-benchmarks", + # Locals + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "runtime-common/runtime-benchmarks", + "liquidity-pools-gateway-routers/runtime-benchmarks", + # Pallet list + "axelar-gateway-precompile/runtime-benchmarks", + "chainbridge/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", + "orml-asset-registry/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "orml-xtokens/runtime-benchmarks", + "pallet-anchors/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-block-rewards/runtime-benchmarks", + "pallet-bridge/runtime-benchmarks", + "pallet-collator-allowlist/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", + "pallet-collective/runtime-benchmarks", + "pallet-democracy/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", + "pallet-ethereum/runtime-benchmarks", + "pallet-ethereum-transaction/runtime-benchmarks", + "pallet-evm/runtime-benchmarks", + "pallet-fees/runtime-benchmarks", + "pallet-foreign-investments/runtime-benchmarks", + "pallet-identity/runtime-benchmarks", + "pallet-interest-accrual/runtime-benchmarks", + "pallet-investments/runtime-benchmarks", + "pallet-keystore/runtime-benchmarks", + "pallet-liquidity-pools/runtime-benchmarks", + "pallet-liquidity-pools-gateway/runtime-benchmarks", + "pallet-liquidity-rewards/runtime-benchmarks", + "pallet-loans/runtime-benchmarks", + "pallet-membership/runtime-benchmarks", + "pallet-multisig/runtime-benchmarks", + "pallet-oracle-collection/runtime-benchmarks", + "pallet-oracle-feed/runtime-benchmarks", + "pallet-order-book/runtime-benchmarks", + "pallet-permissions/runtime-benchmarks", + "pallet-pool-fees/runtime-benchmarks", + "pallet-pool-registry/runtime-benchmarks", + "pallet-pool-system/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-proxy/runtime-benchmarks", + "pallet-remarks/runtime-benchmarks", + "pallet-restricted-tokens/runtime-benchmarks", + "pallet-restricted-xtokens/runtime-benchmarks", + "pallet-rewards/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", + "pallet-swaps/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pallet-token-mux/runtime-benchmarks", + "pallet-transfer-allowlist/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "pallet-uniques/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "pallet-vesting/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "pallet-xcm-transactor/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", ] try-runtime = [ - # Enabling optional - "frame-try-runtime/try-runtime", - # Substrate related - "sp-runtime/try-runtime", - "frame-support/try-runtime", - "frame-system/try-runtime", - "frame-executive/try-runtime", - "fp-self-contained/try-runtime", - "polkadot-runtime-common/try-runtime", - # Locals - "cfg-primitives/try-runtime", - "cfg-traits/try-runtime", - "cfg-types/try-runtime", - "runtime-common/try-runtime", - "liquidity-pools-gateway-routers/try-runtime", - # Pallet list - "axelar-gateway-precompile/try-runtime", - "chainbridge/try-runtime", - "cumulus-pallet-aura-ext/try-runtime", - "cumulus-pallet-parachain-system/try-runtime", - "cumulus-pallet-xcm/try-runtime", - "cumulus-pallet-xcmp-queue/try-runtime", - "orml-asset-registry/try-runtime", - "orml-tokens/try-runtime", - "orml-xcm/try-runtime", - "orml-xtokens/try-runtime", - "pallet-anchors/try-runtime", - "pallet-aura/try-runtime", - "pallet-authorship/try-runtime", - "pallet-balances/try-runtime", - "pallet-base-fee/try-runtime", - "pallet-block-rewards/try-runtime", - "pallet-bridge/try-runtime", - "pallet-collator-allowlist/try-runtime", - "pallet-collator-selection/try-runtime", - "pallet-collective/try-runtime", - "pallet-democracy/try-runtime", - "pallet-elections-phragmen/try-runtime", - "pallet-ethereum/try-runtime", - "pallet-ethereum-transaction/try-runtime", - "pallet-evm/try-runtime", - "pallet-evm-chain-id/try-runtime", - "pallet-fees/try-runtime", - "pallet-foreign-investments/try-runtime", - "pallet-identity/try-runtime", - "pallet-interest-accrual/try-runtime", - "pallet-investments/try-runtime", - "pallet-keystore/try-runtime", - "pallet-liquidity-pools/try-runtime", - "pallet-liquidity-pools-gateway/try-runtime", - "pallet-liquidity-rewards/try-runtime", - "pallet-loans/try-runtime", - "pallet-membership/try-runtime", - "pallet-multisig/try-runtime", - "pallet-oracle-collection/try-runtime", - "pallet-oracle-feed/try-runtime", - "pallet-order-book/try-runtime", - "pallet-permissions/try-runtime", - "pallet-pool-fees/try-runtime", - "pallet-pool-registry/try-runtime", - "pallet-pool-system/try-runtime", - "pallet-preimage/try-runtime", - "pallet-proxy/try-runtime", - "pallet-remarks/try-runtime", - "pallet-restricted-tokens/try-runtime", - "pallet-restricted-xtokens/try-runtime", - "pallet-rewards/try-runtime", - "pallet-scheduler/try-runtime", - "pallet-session/try-runtime", - "pallet-sudo/try-runtime", - "pallet-swaps/try-runtime", - "pallet-timestamp/try-runtime", - "pallet-token-mux/try-runtime", - "pallet-transaction-payment/try-runtime", - "pallet-transfer-allowlist/try-runtime", - "pallet-treasury/try-runtime", - "pallet-uniques/try-runtime", - "pallet-utility/try-runtime", - "pallet-vesting/try-runtime", - "pallet-xcm/try-runtime", - "pallet-xcm-transactor/try-runtime", - "pallet-message-queue/try-runtime", - "staging-parachain-info/try-runtime", + # Enabling optional + "frame-try-runtime/try-runtime", + # Substrate related + "sp-runtime/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-executive/try-runtime", + "fp-self-contained/try-runtime", + "polkadot-runtime-common/try-runtime", + # Locals + "cfg-primitives/try-runtime", + "cfg-traits/try-runtime", + "cfg-types/try-runtime", + "runtime-common/try-runtime", + "liquidity-pools-gateway-routers/try-runtime", + # Pallet list + "axelar-gateway-precompile/try-runtime", + "chainbridge/try-runtime", + "cumulus-pallet-aura-ext/try-runtime", + "cumulus-pallet-parachain-system/try-runtime", + "cumulus-pallet-xcm/try-runtime", + "cumulus-pallet-xcmp-queue/try-runtime", + "orml-asset-registry/try-runtime", + "orml-tokens/try-runtime", + "orml-xcm/try-runtime", + "orml-xtokens/try-runtime", + "pallet-anchors/try-runtime", + "pallet-aura/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-base-fee/try-runtime", + "pallet-block-rewards/try-runtime", + "pallet-bridge/try-runtime", + "pallet-collator-allowlist/try-runtime", + "pallet-collator-selection/try-runtime", + "pallet-collective/try-runtime", + "pallet-democracy/try-runtime", + "pallet-elections-phragmen/try-runtime", + "pallet-ethereum/try-runtime", + "pallet-ethereum-transaction/try-runtime", + "pallet-evm/try-runtime", + "pallet-evm-chain-id/try-runtime", + "pallet-fees/try-runtime", + "pallet-foreign-investments/try-runtime", + "pallet-identity/try-runtime", + "pallet-interest-accrual/try-runtime", + "pallet-investments/try-runtime", + "pallet-keystore/try-runtime", + "pallet-liquidity-pools/try-runtime", + "pallet-liquidity-pools-gateway/try-runtime", + "pallet-liquidity-rewards/try-runtime", + "pallet-loans/try-runtime", + "pallet-membership/try-runtime", + "pallet-multisig/try-runtime", + "pallet-oracle-collection/try-runtime", + "pallet-oracle-feed/try-runtime", + "pallet-order-book/try-runtime", + "pallet-permissions/try-runtime", + "pallet-pool-fees/try-runtime", + "pallet-pool-registry/try-runtime", + "pallet-pool-system/try-runtime", + "pallet-preimage/try-runtime", + "pallet-proxy/try-runtime", + "pallet-remarks/try-runtime", + "pallet-restricted-tokens/try-runtime", + "pallet-restricted-xtokens/try-runtime", + "pallet-rewards/try-runtime", + "pallet-scheduler/try-runtime", + "pallet-session/try-runtime", + "pallet-sudo/try-runtime", + "pallet-swaps/try-runtime", + "pallet-timestamp/try-runtime", + "pallet-token-mux/try-runtime", + "pallet-transaction-payment/try-runtime", + "pallet-transfer-allowlist/try-runtime", + "pallet-treasury/try-runtime", + "pallet-uniques/try-runtime", + "pallet-utility/try-runtime", + "pallet-vesting/try-runtime", + "pallet-xcm/try-runtime", + "pallet-xcm-transactor/try-runtime", + "pallet-message-queue/try-runtime", + "staging-parachain-info/try-runtime", ] # A feature that should be enabled when the runtime should be build for on-chain # 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", - "runtime-common/on-chain-release-build", + "sp-api/disable-logging", + "runtime-common/on-chain-release-build", ] # Set timing constants (e.g. session period) to faster versions to speed up testing. diff --git a/runtime/development/Cargo.toml b/runtime/development/Cargo.toml index ec09873bf4..32e95f4c3d 100644 --- a/runtime/development/Cargo.toml +++ b/runtime/development/Cargo.toml @@ -145,299 +145,299 @@ substrate-wasm-builder = { workspace = true } default = ["std"] std = [ - "parity-scale-codec/std", - "getrandom/std", - "hex/std", - "log/std", - "scale-info/std", - "serde/std", - # Substrate related - "sp-api/std", - "sp-runtime/std", - "sp-block-builder/std", - "sp-consensus-aura/std", - "sp-core/std", - "sp-genesis-builder/std", - "sp-inherents/std", - "sp-io/std", - "sp-offchain/std", - "sp-session/std", - "sp-std/std", - "sp-transaction-pool/std", - "sp-version/std", - "sp-staking/std", - "frame-support/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", - "frame-executive/std", - "frame-try-runtime?/std", - "frame-system-benchmarking?/std", - "frame-benchmarking?/std", - "cumulus-primitives-core/std", - "cumulus-primitives-timestamp/std", - "cumulus-primitives-utility/std", - "cumulus-pallet-session-benchmarking?/std", - "staging-xcm/std", - "staging-xcm-builder/std", - "staging-xcm-executor/std", - "xcm-primitives/std", - "orml-traits/std", - "orml-xcm-support/std", - "fp-rpc/std", - "fp-self-contained/std", - "pallet-transaction-payment-rpc-runtime-api/std", - "polkadot-runtime-common/std", - "polkadot-parachain-primitives/std", - # Locals - "cfg-primitives/std", - "cfg-traits/std", - "cfg-types/std", - "runtime-common/std", - "liquidity-pools-gateway-routers/std", - # Pallet list - "axelar-gateway-precompile/std", - "chainbridge/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "orml-asset-registry/std", - "orml-tokens/std", - "orml-xcm/std", - "orml-xtokens/std", - "pallet-anchors/std", - "pallet-aura/std", - "pallet-authorship/std", - "pallet-balances/std", - "pallet-base-fee/std", - "pallet-block-rewards/std", - "pallet-bridge/std", - "pallet-collator-allowlist/std", - "pallet-collator-selection/std", - "pallet-collective/std", - "pallet-democracy/std", - "pallet-elections-phragmen/std", - "pallet-ethereum/std", - "pallet-ethereum-transaction/std", - "pallet-evm/std", - "pallet-evm-chain-id/std", - "pallet-fees/std", - "pallet-foreign-investments/std", - "pallet-identity/std", - "pallet-interest-accrual/std", - "pallet-investments/std", - "pallet-keystore/std", - "pallet-liquidity-pools/std", - "pallet-liquidity-pools-gateway/std", - "pallet-liquidity-rewards/std", - "pallet-loans/std", - "pallet-membership/std", - "pallet-multisig/std", - "pallet-oracle-collection/std", - "pallet-oracle-feed/std", - "pallet-order-book/std", - "pallet-permissions/std", - "pallet-pool-fees/std", - "pallet-pool-registry/std", - "pallet-pool-system/std", - "pallet-preimage/std", - "pallet-proxy/std", - "pallet-remarks/std", - "pallet-restricted-tokens/std", - "pallet-restricted-xtokens/std", - "pallet-rewards/std", - "pallet-scheduler/std", - "pallet-session/std", - "pallet-sudo/std", - "pallet-swaps/std", - "pallet-timestamp/std", - "pallet-token-mux/std", - "pallet-transaction-payment/std", - "pallet-transfer-allowlist/std", - "pallet-treasury/std", - "pallet-uniques/std", - "pallet-utility/std", - "pallet-vesting/std", - "pallet-xcm/std", - "pallet-xcm-transactor/std", - "pallet-message-queue/std", - "staging-parachain-info/std", + "parity-scale-codec/std", + "getrandom/std", + "hex/std", + "log/std", + "scale-info/std", + "serde/std", + # Substrate related + "sp-api/std", + "sp-runtime/std", + "sp-block-builder/std", + "sp-consensus-aura/std", + "sp-core/std", + "sp-genesis-builder/std", + "sp-inherents/std", + "sp-io/std", + "sp-offchain/std", + "sp-session/std", + "sp-std/std", + "sp-transaction-pool/std", + "sp-version/std", + "sp-staking/std", + "frame-support/std", + "frame-system/std", + "frame-system-rpc-runtime-api/std", + "frame-executive/std", + "frame-try-runtime?/std", + "frame-system-benchmarking?/std", + "frame-benchmarking?/std", + "cumulus-primitives-core/std", + "cumulus-primitives-timestamp/std", + "cumulus-primitives-utility/std", + "cumulus-pallet-session-benchmarking?/std", + "staging-xcm/std", + "staging-xcm-builder/std", + "staging-xcm-executor/std", + "xcm-primitives/std", + "orml-traits/std", + "orml-xcm-support/std", + "fp-rpc/std", + "fp-self-contained/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "polkadot-runtime-common/std", + "polkadot-parachain-primitives/std", + # Locals + "cfg-primitives/std", + "cfg-traits/std", + "cfg-types/std", + "runtime-common/std", + "liquidity-pools-gateway-routers/std", + # Pallet list + "axelar-gateway-precompile/std", + "chainbridge/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "orml-asset-registry/std", + "orml-tokens/std", + "orml-xcm/std", + "orml-xtokens/std", + "pallet-anchors/std", + "pallet-aura/std", + "pallet-authorship/std", + "pallet-balances/std", + "pallet-base-fee/std", + "pallet-block-rewards/std", + "pallet-bridge/std", + "pallet-collator-allowlist/std", + "pallet-collator-selection/std", + "pallet-collective/std", + "pallet-democracy/std", + "pallet-elections-phragmen/std", + "pallet-ethereum/std", + "pallet-ethereum-transaction/std", + "pallet-evm/std", + "pallet-evm-chain-id/std", + "pallet-fees/std", + "pallet-foreign-investments/std", + "pallet-identity/std", + "pallet-interest-accrual/std", + "pallet-investments/std", + "pallet-keystore/std", + "pallet-liquidity-pools/std", + "pallet-liquidity-pools-gateway/std", + "pallet-liquidity-rewards/std", + "pallet-loans/std", + "pallet-membership/std", + "pallet-multisig/std", + "pallet-oracle-collection/std", + "pallet-oracle-feed/std", + "pallet-order-book/std", + "pallet-permissions/std", + "pallet-pool-fees/std", + "pallet-pool-registry/std", + "pallet-pool-system/std", + "pallet-preimage/std", + "pallet-proxy/std", + "pallet-remarks/std", + "pallet-restricted-tokens/std", + "pallet-restricted-xtokens/std", + "pallet-rewards/std", + "pallet-scheduler/std", + "pallet-session/std", + "pallet-sudo/std", + "pallet-swaps/std", + "pallet-timestamp/std", + "pallet-token-mux/std", + "pallet-transaction-payment/std", + "pallet-transfer-allowlist/std", + "pallet-treasury/std", + "pallet-uniques/std", + "pallet-utility/std", + "pallet-vesting/std", + "pallet-xcm/std", + "pallet-xcm-transactor/std", + "pallet-message-queue/std", + "staging-parachain-info/std", ] runtime-benchmarks = [ - # Enabling optional - "hex-literal", - "frame-system-benchmarking/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - # Substrate related - "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "staging-xcm-builder/runtime-benchmarks", - "staging-xcm-executor/runtime-benchmarks", - "xcm-primitives/runtime-benchmarks", - "polkadot-runtime-common/runtime-benchmarks", - "polkadot-parachain-primitives/runtime-benchmarks", - # Locals - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "runtime-common/runtime-benchmarks", - "liquidity-pools-gateway-routers/runtime-benchmarks", - # Pallet list - "axelar-gateway-precompile/runtime-benchmarks", - "chainbridge/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", - "orml-tokens/runtime-benchmarks", - "orml-xtokens/runtime-benchmarks", - "pallet-anchors/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "pallet-block-rewards/runtime-benchmarks", - "pallet-bridge/runtime-benchmarks", - "pallet-collator-allowlist/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "pallet-collective/runtime-benchmarks", - "pallet-democracy/runtime-benchmarks", - "pallet-elections-phragmen/runtime-benchmarks", - "pallet-ethereum/runtime-benchmarks", - "pallet-ethereum-transaction/runtime-benchmarks", - "pallet-evm/runtime-benchmarks", - "pallet-fees/runtime-benchmarks", - "pallet-foreign-investments/runtime-benchmarks", - "pallet-identity/runtime-benchmarks", - "pallet-interest-accrual/runtime-benchmarks", - "pallet-investments/runtime-benchmarks", - "pallet-keystore/runtime-benchmarks", - "pallet-liquidity-pools/runtime-benchmarks", - "pallet-liquidity-pools-gateway/runtime-benchmarks", - "pallet-liquidity-rewards/runtime-benchmarks", - "pallet-loans/runtime-benchmarks", - "pallet-membership/runtime-benchmarks", - "pallet-multisig/runtime-benchmarks", - "pallet-oracle-collection/runtime-benchmarks", - "pallet-oracle-feed/runtime-benchmarks", - "pallet-order-book/runtime-benchmarks", - "pallet-permissions/runtime-benchmarks", - "pallet-pool-fees/runtime-benchmarks", - "pallet-pool-registry/runtime-benchmarks", - "pallet-pool-system/runtime-benchmarks", - "pallet-preimage/runtime-benchmarks", - "pallet-proxy/runtime-benchmarks", - "pallet-remarks/runtime-benchmarks", - "pallet-restricted-tokens/runtime-benchmarks", - "pallet-restricted-xtokens/runtime-benchmarks", - "pallet-rewards/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks", - "pallet-sudo/runtime-benchmarks", - "pallet-swaps/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "pallet-token-mux/runtime-benchmarks", - "pallet-transfer-allowlist/runtime-benchmarks", - "pallet-treasury/runtime-benchmarks", - "pallet-uniques/runtime-benchmarks", - "pallet-utility/runtime-benchmarks", - "pallet-vesting/runtime-benchmarks", - "pallet-xcm/runtime-benchmarks", - "pallet-xcm-transactor/runtime-benchmarks", - "pallet-message-queue/runtime-benchmarks", + # Enabling optional + "hex-literal", + "frame-system-benchmarking/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + # Substrate related + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "staging-xcm-builder/runtime-benchmarks", + "staging-xcm-executor/runtime-benchmarks", + "xcm-primitives/runtime-benchmarks", + "polkadot-runtime-common/runtime-benchmarks", + "polkadot-parachain-primitives/runtime-benchmarks", + # Locals + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "runtime-common/runtime-benchmarks", + "liquidity-pools-gateway-routers/runtime-benchmarks", + # Pallet list + "axelar-gateway-precompile/runtime-benchmarks", + "chainbridge/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", + "orml-asset-registry/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "orml-xtokens/runtime-benchmarks", + "pallet-anchors/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-block-rewards/runtime-benchmarks", + "pallet-bridge/runtime-benchmarks", + "pallet-collator-allowlist/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", + "pallet-collective/runtime-benchmarks", + "pallet-democracy/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", + "pallet-ethereum/runtime-benchmarks", + "pallet-ethereum-transaction/runtime-benchmarks", + "pallet-evm/runtime-benchmarks", + "pallet-fees/runtime-benchmarks", + "pallet-foreign-investments/runtime-benchmarks", + "pallet-identity/runtime-benchmarks", + "pallet-interest-accrual/runtime-benchmarks", + "pallet-investments/runtime-benchmarks", + "pallet-keystore/runtime-benchmarks", + "pallet-liquidity-pools/runtime-benchmarks", + "pallet-liquidity-pools-gateway/runtime-benchmarks", + "pallet-liquidity-rewards/runtime-benchmarks", + "pallet-loans/runtime-benchmarks", + "pallet-membership/runtime-benchmarks", + "pallet-multisig/runtime-benchmarks", + "pallet-oracle-collection/runtime-benchmarks", + "pallet-oracle-feed/runtime-benchmarks", + "pallet-order-book/runtime-benchmarks", + "pallet-permissions/runtime-benchmarks", + "pallet-pool-fees/runtime-benchmarks", + "pallet-pool-registry/runtime-benchmarks", + "pallet-pool-system/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-proxy/runtime-benchmarks", + "pallet-remarks/runtime-benchmarks", + "pallet-restricted-tokens/runtime-benchmarks", + "pallet-restricted-xtokens/runtime-benchmarks", + "pallet-rewards/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", + "pallet-swaps/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pallet-token-mux/runtime-benchmarks", + "pallet-transfer-allowlist/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "pallet-uniques/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "pallet-vesting/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "pallet-xcm-transactor/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", ] try-runtime = [ - # Enabling optional - "frame-try-runtime/try-runtime", - # Substrate related - "sp-runtime/try-runtime", - "frame-support/try-runtime", - "frame-system/try-runtime", - "frame-executive/try-runtime", - "fp-self-contained/try-runtime", - "polkadot-runtime-common/try-runtime", - # Locals - "cfg-primitives/try-runtime", - "cfg-traits/try-runtime", - "cfg-types/try-runtime", - "runtime-common/try-runtime", - "liquidity-pools-gateway-routers/try-runtime", - # Pallet list - "axelar-gateway-precompile/try-runtime", - "chainbridge/try-runtime", - "cumulus-pallet-aura-ext/try-runtime", - "cumulus-pallet-parachain-system/try-runtime", - "cumulus-pallet-xcm/try-runtime", - "cumulus-pallet-xcmp-queue/try-runtime", - "orml-asset-registry/try-runtime", - "orml-tokens/try-runtime", - "orml-xcm/try-runtime", - "orml-xtokens/try-runtime", - "pallet-anchors/try-runtime", - "pallet-aura/try-runtime", - "pallet-authorship/try-runtime", - "pallet-balances/try-runtime", - "pallet-base-fee/try-runtime", - "pallet-block-rewards/try-runtime", - "pallet-bridge/try-runtime", - "pallet-collator-allowlist/try-runtime", - "pallet-collator-selection/try-runtime", - "pallet-collective/try-runtime", - "pallet-democracy/try-runtime", - "pallet-elections-phragmen/try-runtime", - "pallet-ethereum/try-runtime", - "pallet-ethereum-transaction/try-runtime", - "pallet-evm/try-runtime", - "pallet-evm-chain-id/try-runtime", - "pallet-fees/try-runtime", - "pallet-foreign-investments/try-runtime", - "pallet-identity/try-runtime", - "pallet-interest-accrual/try-runtime", - "pallet-investments/try-runtime", - "pallet-keystore/try-runtime", - "pallet-liquidity-pools/try-runtime", - "pallet-liquidity-pools-gateway/try-runtime", - "pallet-liquidity-rewards/try-runtime", - "pallet-loans/try-runtime", - "pallet-membership/try-runtime", - "pallet-multisig/try-runtime", - "pallet-oracle-collection/try-runtime", - "pallet-oracle-feed/try-runtime", - "pallet-order-book/try-runtime", - "pallet-permissions/try-runtime", - "pallet-pool-fees/try-runtime", - "pallet-pool-registry/try-runtime", - "pallet-pool-system/try-runtime", - "pallet-preimage/try-runtime", - "pallet-proxy/try-runtime", - "pallet-remarks/try-runtime", - "pallet-restricted-tokens/try-runtime", - "pallet-restricted-xtokens/try-runtime", - "pallet-rewards/try-runtime", - "pallet-scheduler/try-runtime", - "pallet-session/try-runtime", - "pallet-sudo/try-runtime", - "pallet-swaps/try-runtime", - "pallet-timestamp/try-runtime", - "pallet-token-mux/try-runtime", - "pallet-transaction-payment/try-runtime", - "pallet-transfer-allowlist/try-runtime", - "pallet-treasury/try-runtime", - "pallet-uniques/try-runtime", - "pallet-utility/try-runtime", - "pallet-vesting/try-runtime", - "pallet-xcm/try-runtime", - "pallet-xcm-transactor/try-runtime", - "pallet-message-queue/try-runtime", - "staging-parachain-info/try-runtime", + # Enabling optional + "frame-try-runtime/try-runtime", + # Substrate related + "sp-runtime/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-executive/try-runtime", + "fp-self-contained/try-runtime", + "polkadot-runtime-common/try-runtime", + # Locals + "cfg-primitives/try-runtime", + "cfg-traits/try-runtime", + "cfg-types/try-runtime", + "runtime-common/try-runtime", + "liquidity-pools-gateway-routers/try-runtime", + # Pallet list + "axelar-gateway-precompile/try-runtime", + "chainbridge/try-runtime", + "cumulus-pallet-aura-ext/try-runtime", + "cumulus-pallet-parachain-system/try-runtime", + "cumulus-pallet-xcm/try-runtime", + "cumulus-pallet-xcmp-queue/try-runtime", + "orml-asset-registry/try-runtime", + "orml-tokens/try-runtime", + "orml-xcm/try-runtime", + "orml-xtokens/try-runtime", + "pallet-anchors/try-runtime", + "pallet-aura/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-base-fee/try-runtime", + "pallet-block-rewards/try-runtime", + "pallet-bridge/try-runtime", + "pallet-collator-allowlist/try-runtime", + "pallet-collator-selection/try-runtime", + "pallet-collective/try-runtime", + "pallet-democracy/try-runtime", + "pallet-elections-phragmen/try-runtime", + "pallet-ethereum/try-runtime", + "pallet-ethereum-transaction/try-runtime", + "pallet-evm/try-runtime", + "pallet-evm-chain-id/try-runtime", + "pallet-fees/try-runtime", + "pallet-foreign-investments/try-runtime", + "pallet-identity/try-runtime", + "pallet-interest-accrual/try-runtime", + "pallet-investments/try-runtime", + "pallet-keystore/try-runtime", + "pallet-liquidity-pools/try-runtime", + "pallet-liquidity-pools-gateway/try-runtime", + "pallet-liquidity-rewards/try-runtime", + "pallet-loans/try-runtime", + "pallet-membership/try-runtime", + "pallet-multisig/try-runtime", + "pallet-oracle-collection/try-runtime", + "pallet-oracle-feed/try-runtime", + "pallet-order-book/try-runtime", + "pallet-permissions/try-runtime", + "pallet-pool-fees/try-runtime", + "pallet-pool-registry/try-runtime", + "pallet-pool-system/try-runtime", + "pallet-preimage/try-runtime", + "pallet-proxy/try-runtime", + "pallet-remarks/try-runtime", + "pallet-restricted-tokens/try-runtime", + "pallet-restricted-xtokens/try-runtime", + "pallet-rewards/try-runtime", + "pallet-scheduler/try-runtime", + "pallet-session/try-runtime", + "pallet-sudo/try-runtime", + "pallet-swaps/try-runtime", + "pallet-timestamp/try-runtime", + "pallet-token-mux/try-runtime", + "pallet-transaction-payment/try-runtime", + "pallet-transfer-allowlist/try-runtime", + "pallet-treasury/try-runtime", + "pallet-uniques/try-runtime", + "pallet-utility/try-runtime", + "pallet-vesting/try-runtime", + "pallet-xcm/try-runtime", + "pallet-xcm-transactor/try-runtime", + "pallet-message-queue/try-runtime", + "staging-parachain-info/try-runtime", ] # A feature that should be enabled when the runtime should be build for on-chain # 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", - "runtime-common/on-chain-release-build", + "sp-api/disable-logging", + "runtime-common/on-chain-release-build", ] # Used by integration testing diff --git a/scripts/init.sh b/scripts/init.sh index 5f38851df3..57f184f10d 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -41,7 +41,7 @@ stop-parachain-docker) start-parachain) printf "\nBuilding parachain with runtime '$parachain' and id '$para_id'...\n" - cargo build -p centrifuge-chain --release --features=fast-runtime +# cargo build -p centrifuge-chain --release --features=fast-runtime parachain_dir=$base_dir/parachain/${para_id} mkdir -p $parachain_dir;