From 2ab49961ff4fcf79e34c590bb2c27d2b9496d1f5 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 27 Feb 2024 13:14:00 +0100 Subject: [PATCH 1/2] move all dep versions to workspace root --- Cargo.toml | 116 +++++++++++++++++- client/Cargo.toml | 48 ++++---- .../encointer-api-client-extension/Cargo.toml | 21 ++-- .../src/extrinsic_params.rs | 2 +- client/src/community_spec.rs | 2 +- client/src/main.rs | 2 +- client/src/utils.rs | 2 +- node/Cargo.toml | 96 +++++++-------- runtime/Cargo.toml | 106 ++++++++-------- runtime/src/lib.rs | 2 +- 10 files changed, 253 insertions(+), 144 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 777142fa..3092b806 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,5 @@ -[profile.release] -panic = 'unwind' - [workspace] +resolver = "2" members = [ 'node', 'runtime', @@ -9,6 +7,118 @@ members = [ 'client/encointer-api-client-extension', ] +[profile.release] +panic = 'unwind' + +[workspace.dependencies] +parity-scale-codec = { version = "3.0.0", default-features = false, features = ["derive"] } +scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } +serde = { features = ["derive"], version = "1.0.136" } +clap = { version = "4.0.9", features = ["derive"] } +futures = { version = "0.3.21", features = ["thread-pool"] } +log = "0.4.14" +serde_json = "1.0.81" +env_logger = "0.9.0" +geojson = "0.22.2" +hex = "0.4.3" +tokio = { version = "1.24", features = ["rt-multi-thread", "macros", "time"] } + +# encointer deps +encointer-balances-tx-payment = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-balances-tx-payment-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-balances-tx-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-ceremonies-assignment = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-primitives = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-balances = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-bazaar = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-bazaar-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-bazaar-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-ceremonies = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-ceremonies-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-ceremonies-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-communities = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-communities-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-communities-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-democracy = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-faucet = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-reputation-commitments = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +pallet-encointer-scheduler = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } + + + +# substrate deps +frame-benchmarking = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-benchmarking-cli = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-executive = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-system-benchmarking = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-system-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-try-runtime = { git = 'https://github.com/paritytech/substrate.git', default-features = false, branch = "polkadot-v1.0.0" } +hex-literal = { version = "0.3.4" } +jsonrpsee = { version = "0.16.2", features = ["server"] } +pallet-asset-tx-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-aura = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-grandpa = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-insecure-randomness-collective-flip = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-proxy = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-scheduler = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-sudo = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-treasury = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-utility = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-basic-authorship = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-cli = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus-aura = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus-grandpa = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-executor = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-keystore = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-network = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-offchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-rpc-api = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-telemetry = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-application-crypto = { version = "23.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-block-builder = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-consensus-aura = { version = "0.10.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-consensus-grandpa = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-core = { version = "21.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-inherents = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-io = { version = "23.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-keyring = { version = "24.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-keystore = { version = "0.27.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-offchain = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-rpc = { version = "6.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-runtime = { version = "24.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-session = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-staking = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-std = { version = "8.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-transaction-pool = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-version = { version = "22.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +substrate-frame-rpc-system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +try-runtime-cli = { git = 'https://github.com/paritytech/substrate.git', default-features = false, branch = "polkadot-v1.0.0" } + + +substrate-wasm-builder = { version = "5.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +substrate-build-script-utils = "3.0.0" + +substrate-api-client = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v1.0.0-tag-v0.12.0", features = ["ws-client"] } +substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v1.0.0-tag-v0.12.0" } + + #only while debugging #[patch."https://github.com/encointer/pallets"] diff --git a/client/Cargo.toml b/client/Cargo.toml index 0483d098..c2c6e4c9 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -8,37 +8,37 @@ version = "1.5.4" [dependencies] clap = "2.33" clap-nested = "0.4.0" -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } -env_logger = "0.9.0" -geojson = "0.22.2" -hex = "0.4.3" -log = "0.4.14" -serde_json = "1.0.79" -tokio = { version = "1.24", features = ["rt-multi-thread", "macros", "time"] } +parity-scale-codec = { workspace = true } +env_logger = { workspace = true } +geojson = { workspace = true } +hex = { workspace = true } +log = { workspace = true } +serde_json = { workspace = true } +tokio = { workspace = true } # local deps encointer-api-client-extension = { path = "./encointer-api-client-extension" } encointer-node-notee-runtime = { path = "../runtime" } # encointer deps -encointer-ceremonies-assignment = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -encointer-primitives = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-balances = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-ceremonies = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-communities = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-scheduler = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-ceremonies-assignment = { workspace = true, features = ["std"] } +encointer-primitives = { workspace = true, features = ["std"] } +pallet-encointer-balances = { workspace = true, features = ["std"] } +pallet-encointer-ceremonies = { workspace = true, features = ["std"] } +pallet-encointer-communities = { workspace = true, features = ["std"] } +pallet-encointer-scheduler = { workspace = true, features = ["std"] } # scs deps -substrate-api-client = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v1.0.0-tag-v0.12.0" } -substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v1.0.0-tag-v0.12.0" } +substrate-api-client = { workspace = true, features = ["std"] } +substrate-client-keystore = { workspace = true } # substrate deps -frame-support = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -frame-system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-transaction-payment = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-application-crypto = { version = "23.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-core = { version = "21.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-keyring = { version = "24.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-keystore = { version = "0.27.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-rpc = { version = "6.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-runtime = { version = "24.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-support = { workspace = true, features = ["std"] } +frame-system = { workspace = true, features = ["std"] } +pallet-transaction-payment = { workspace = true, features = ["std"] } +sp-application-crypto = { workspace = true, features = ["std"] } +sp-core = { workspace = true, features = ["std"] } +sp-keyring = { workspace = true } +sp-keystore = { workspace = true, features = ["std"] } +sp-rpc = { workspace = true } +sp-runtime = { workspace = true, features = ["std"] } diff --git a/client/encointer-api-client-extension/Cargo.toml b/client/encointer-api-client-extension/Cargo.toml index 613cbc1a..4d83e3ae 100644 --- a/client/encointer-api-client-extension/Cargo.toml +++ b/client/encointer-api-client-extension/Cargo.toml @@ -4,20 +4,19 @@ version = "0.8.2" edition = "2021" [dependencies] -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } -log = "0.4.14" -serde = { features = ["derive"], version = "1.0.132" } -serde_json = { version = "1.0.79" } +parity-scale-codec = { workspace = true } +log = { workspace = true } +serde = { workspace = true, features = ["std"] } +serde_json = { workspace = true } # encointer deps -encointer-ceremonies-assignment = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-ceremonies-assignment = { workspace = true, features = ["std"] } encointer-node-notee-runtime = { path = "../../runtime" } -encointer-primitives = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-primitives = { workspace = true, features = ["std"] } -substrate-api-client = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v1.0.0-tag-v0.12.0", features = ["ws-client"] } -# scs deps -substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v1.0.0-tag-v0.12.0" } +substrate-api-client = { workspace = true } +substrate-client-keystore = { workspace = true } # substrate deps -sp-core = { version = "21.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-runtime = { version = "24.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-core = { workspace = true, features = ["std"] } +sp-runtime = { workspace = true, features = ["std"] } diff --git a/client/encointer-api-client-extension/src/extrinsic_params.rs b/client/encointer-api-client-extension/src/extrinsic_params.rs index 4dff65f1..6d0cba12 100644 --- a/client/encointer-api-client-extension/src/extrinsic_params.rs +++ b/client/encointer-api-client-extension/src/extrinsic_params.rs @@ -1,7 +1,7 @@ use crate::ExtrinsicAddress; -use codec::{Decode, Encode}; use encointer_node_notee_runtime::{Hash, Index, Signature}; use encointer_primitives::communities::CommunityIdentifier; +use parity_scale_codec::{Decode, Encode}; use substrate_api_client::ac_primitives::{ GenericAdditionalParams, GenericExtrinsicParams, GenericSignedExtra, UncheckedExtrinsicV4, }; diff --git a/client/src/community_spec.rs b/client/src/community_spec.rs index 79949544..51c6eb2d 100644 --- a/client/src/community_spec.rs +++ b/client/src/community_spec.rs @@ -1,4 +1,3 @@ -use codec::Encode; use encointer_node_notee_runtime::AccountId; use encointer_primitives::{ balances::{BalanceType, Demurrage}, @@ -11,6 +10,7 @@ use encointer_primitives::{ }; use geojson::GeoJson; use log::{debug, info}; +use parity_scale_codec::Encode; use substrate_api_client::{ac_compose_macros::compose_call, ac_node_api::Metadata}; pub fn read_community_spec_from_file(path: &str) -> serde_json::Value { diff --git a/client/src/main.rs b/client/src/main.rs index 2b26e6cf..ef96b80f 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -38,7 +38,6 @@ use crate::{ use clap::{value_t, AppSettings, Arg, ArgMatches}; use clap_nested::{Command, Commander}; use cli_args::{EncointerArgs, EncointerArgsExtractor}; -use codec::{Compact, Decode, Encode}; use encointer_api_client_extension::{ Api, AttestationState, CeremoniesApi, CommunitiesApi, CommunityCurrencyTip, CommunityCurrencyTipExtrinsicParamsBuilder, EncointerXt, ExtrinsicAddress, @@ -64,6 +63,7 @@ use encointer_primitives::{ }; use log::*; use pallet_transaction_payment::FeeDetails; +use parity_scale_codec::{Compact, Decode, Encode}; use sp_application_crypto::{ed25519, sr25519}; use sp_core::{crypto::Ss58Codec, sr25519 as sr25519_core, ConstU32, Pair}; use sp_keyring::AccountKeyring; diff --git a/client/src/utils.rs b/client/src/utils.rs index 8f113ffb..2f83421e 100644 --- a/client/src/utils.rs +++ b/client/src/utils.rs @@ -1,9 +1,9 @@ use crate::{exit_code, get_asset_fee_details, get_community_balance, BalanceType}; -use codec::{Compact, Encode}; use encointer_api_client_extension::{Api, EncointerXt}; use encointer_node_notee_runtime::AccountId; use encointer_primitives::{balances::EncointerBalanceConverter, scheduler::CeremonyIndexType}; use log::{debug, error, info}; +use parity_scale_codec::{Compact, Encode}; use sp_core::H256; use sp_runtime::traits::Convert; use substrate_api_client::{ diff --git a/node/Cargo.toml b/node/Cargo.toml index e6466628..f2fe31c8 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -23,67 +23,67 @@ targets = ["x86_64-unknown-linux-gnu"] substrate-build-script-utils = "3.0.0" [dependencies] -clap = { version = "4.0.9", features = ["derive"] } -futures = { version = "0.3.21", features = ["thread-pool"] } -log = "0.4.14" -serde_json = "1.0.81" +clap = { workspace = true } +futures = { workspace = true } +log = { workspace = true } +serde_json = { workspace = true } -frame-system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-cli = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-consensus-aura = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-consensus-grandpa = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-executor = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-keystore = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-network = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-offchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-telemetry = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-consensus-aura = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-consensus-grandpa = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-core = { version = "21.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-inherents = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-io = { version = "23.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-keyring = { version = "24.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-runtime = { version = "24.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-system = { workspace = true, features = ["std"] } +sc-cli = { workspace = true } +sc-client-api = { workspace = true } +sc-consensus = { workspace = true } +sc-consensus-aura = { workspace = true } +sc-consensus-grandpa = { workspace = true } +sc-executor = { workspace = true } +sc-keystore = { workspace = true } +sc-network = { workspace = true } +sc-offchain = { workspace = true } +sc-service = { workspace = true } +sc-telemetry = { workspace = true } +sc-transaction-pool = { workspace = true } +sc-transaction-pool-api = { workspace = true } +sp-consensus = { workspace = true } +sp-consensus-aura = { workspace = true } +sp-consensus-grandpa = { workspace = true, features = ["std"] } +sp-core = { workspace = true, features = ["std"] } +sp-inherents = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std"] } +sp-keyring = { workspace = true } +sp-runtime = { workspace = true, features = ["std"] } +sp-timestamp = { workspace = true, features = ["std"] } # encointer-specific -pallet-asset-tx-payment = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-asset-tx-payment = { workspace = true, features = ["std"] } # These dependencies are used for the node's RPCs jsonrpsee = { version = "0.16.2", features = ["server"] } -pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-basic-authorship = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sc-rpc-api = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-block-builder = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -substrate-frame-rpc-system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment-rpc = { workspace = true } +sc-basic-authorship = { workspace = true } +sc-rpc = { workspace = true } +sc-rpc-api = { workspace = true } +sp-api = { workspace = true, features = ["std"] } +sp-block-builder = { workspace = true, features = ["std"] } +sp-blockchain = { workspace = true } +substrate-frame-rpc-system = { workspace = true } # These dependencies are used for runtime benchmarking -frame-benchmarking = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -frame-benchmarking-cli = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-benchmarking = { workspace = true, features = ["std"] } +frame-benchmarking-cli = { workspace = true } # encointer dependencies encointer-node-notee-runtime = { path = "../runtime" } -encointer-balances-tx-payment-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -encointer-balances-tx-payment-rpc-runtime-api = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-bazaar-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-bazaar-rpc-runtime-api = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-ceremonies-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-ceremonies-rpc-runtime-api = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-communities-rpc = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-communities-rpc-runtime-api = { git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-balances-tx-payment-rpc = { workspace = true } +encointer-balances-tx-payment-rpc-runtime-api = { workspace = true, features = ["std"] } +pallet-encointer-bazaar-rpc = { workspace = true } +pallet-encointer-bazaar-rpc-runtime-api = { workspace = true, features = ["std"] } +pallet-encointer-ceremonies-rpc = { workspace = true } +pallet-encointer-ceremonies-rpc-runtime-api = { workspace = true, features = ["std"] } +pallet-encointer-communities-rpc = { workspace = true } +pallet-encointer-communities-rpc-runtime-api = { workspace = true, features = ["std"] } # CLI-specific dependencies -frame-try-runtime = { optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -try-runtime-cli = { optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-try-runtime = { workspace = true, optional = true } +try-runtime-cli = { workspace = true, optional = true } [features] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 18d00a2c..d0acf1be 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -10,76 +10,76 @@ repository = "https://github.com/encointer/encointer-node/" version = "1.5.30" [dependencies] -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } -scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } # added by encointer -serde = { features = ["derive"], optional = true, version = "1.0.136" } +serde = { workspace = true, optional = true } # encointer deps -encointer-balances-tx-payment = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -encointer-balances-tx-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -encointer-primitives = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-balances = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-bazaar = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-bazaar-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-ceremonies = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-ceremonies-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-communities = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-communities-rpc-runtime-api = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-democracy = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-faucet = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-reputation-commitments = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } -pallet-encointer-scheduler = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } +encointer-balances-tx-payment = { workspace = true } +encointer-balances-tx-payment-rpc-runtime-api = { workspace = true } +encointer-primitives = { workspace = true } +pallet-encointer-balances = { workspace = true } +pallet-encointer-bazaar = { workspace = true } +pallet-encointer-bazaar-rpc-runtime-api = { workspace = true } +pallet-encointer-ceremonies = { workspace = true } +pallet-encointer-ceremonies-rpc-runtime-api = { workspace = true } +pallet-encointer-communities = { workspace = true } +pallet-encointer-communities-rpc-runtime-api = { workspace = true } +pallet-encointer-democracy = { workspace = true } +pallet-encointer-faucet = { workspace = true } +pallet-encointer-reputation-commitments = { workspace = true } +pallet-encointer-scheduler = { workspace = true } # substrate deps -frame-executive = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-asset-tx-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-aura = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-grandpa = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-insecure-randomness-collective-flip = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-proxy = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-scheduler = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-sudo = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-transaction-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-treasury = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-utility = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-block-builder = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-consensus-aura = { version = "0.10.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-core = { version = "21.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-inherents = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-offchain = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-runtime = { version = "24.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-session = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-staking = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-std = { version = "8.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-transaction-pool = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -sp-version = { version = "22.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-executive = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-asset-tx-payment = { workspace = true } +pallet-aura = { workspace = true } +pallet-balances = { workspace = true } +pallet-grandpa = { workspace = true } +pallet-insecure-randomness-collective-flip = { workspace = true } +pallet-proxy = { workspace = true } +pallet-scheduler = { workspace = true } +pallet-sudo = { workspace = true } +pallet-timestamp = { workspace = true } +pallet-transaction-payment = { workspace = true } +pallet-treasury = { workspace = true } +pallet-utility = { workspace = true } +sp-api = { workspace = true } +sp-block-builder = { workspace = true } +sp-consensus-aura = { workspace = true } +sp-core = { workspace = true } +sp-inherents = { workspace = true } +sp-offchain = { workspace = true } +sp-runtime = { workspace = true } +sp-session = { workspace = true } +sp-staking = { workspace = true } +sp-std = { workspace = true } +sp-transaction-pool = { workspace = true } +sp-version = { workspace = true } -frame-try-runtime = { git = 'https://github.com/paritytech/substrate.git', default-features = false, branch = "polkadot-v1.0.0", optional = true } -try-runtime-cli = { git = 'https://github.com/paritytech/substrate.git', default-features = false, branch = "polkadot-v1.0.0", optional = true } +frame-try-runtime = { workspace = true, optional = true } +try-runtime-cli = { workspace = true, optional = true } # Used for the node's RPCs -frame-system-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-system-rpc-runtime-api = { workspace = true } +pallet-transaction-payment-rpc-runtime-api = { workspace = true } # Used for runtime benchmarking -frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -frame-system-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -hex-literal = { version = "0.3.4", optional = true } +frame-benchmarking = { workspace = true, optional = true } +frame-system-benchmarking = { workspace = true, optional = true } +hex-literal = { workspace = true, optional = true } [build-dependencies] -substrate-wasm-builder = { version = "5.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +substrate-wasm-builder = { workspace = true} [features] default = ["std"] std = [ - "codec/std", + "parity-scale-codec/std", "scale-info/std", "serde", "frame-executive/std", diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 4418bf83..5bbc02b8 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -6,7 +6,6 @@ #[cfg(feature = "std")] include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); -use codec::{Decode, Encode, MaxEncodedLen}; use frame_support::{ traits::{tokens::ConversionToAssetBalance, ConstU128, EqualPrivilegeOnly, InstanceFilter}, RuntimeDebug, @@ -14,6 +13,7 @@ use frame_support::{ use pallet_grandpa::{ fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList, }; +use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; use sp_api::impl_runtime_apis; use sp_consensus_aura::sr25519::AuthorityId as AuraId; From 5d9d1a37aa25a5738c7f4f554f0c994e416f81ec Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 27 Feb 2024 13:27:24 +0100 Subject: [PATCH 2/2] sort deps and taplo fmt --- Cargo.toml | 1 - client/Cargo.toml | 2 +- .../encointer-api-client-extension/Cargo.toml | 2 +- node/Cargo.toml | 3 +- runtime/Cargo.toml | 81 +++++++++---------- 5 files changed, 42 insertions(+), 47 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3092b806..52434b2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,6 @@ pallet-encointer-reputation-commitments = { default-features = false, git = "htt pallet-encointer-scheduler = { default-features = false, git = "https://github.com/encointer/pallets", branch = "polkadot-v1.0.0-pallets-v1.3.0" } - # substrate deps frame-benchmarking = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } frame-benchmarking-cli = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } diff --git a/client/Cargo.toml b/client/Cargo.toml index c2c6e4c9..555f96e3 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -8,11 +8,11 @@ version = "1.5.4" [dependencies] clap = "2.33" clap-nested = "0.4.0" -parity-scale-codec = { workspace = true } env_logger = { workspace = true } geojson = { workspace = true } hex = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } serde_json = { workspace = true } tokio = { workspace = true } diff --git a/client/encointer-api-client-extension/Cargo.toml b/client/encointer-api-client-extension/Cargo.toml index 4d83e3ae..5f6c6a23 100644 --- a/client/encointer-api-client-extension/Cargo.toml +++ b/client/encointer-api-client-extension/Cargo.toml @@ -4,8 +4,8 @@ version = "0.8.2" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } serde = { workspace = true, features = ["std"] } serde_json = { workspace = true } diff --git a/node/Cargo.toml b/node/Cargo.toml index f2fe31c8..f6e2e51e 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -29,6 +29,7 @@ log = { workspace = true } serde_json = { workspace = true } frame-system = { workspace = true, features = ["std"] } +pallet-asset-tx-payment = { workspace = true, features = ["std"] } sc-cli = { workspace = true } sc-client-api = { workspace = true } sc-consensus = { workspace = true } @@ -51,8 +52,6 @@ sp-io = { workspace = true, features = ["std"] } sp-keyring = { workspace = true } sp-runtime = { workspace = true, features = ["std"] } sp-timestamp = { workspace = true, features = ["std"] } -# encointer-specific -pallet-asset-tx-payment = { workspace = true, features = ["std"] } # These dependencies are used for the node's RPCs jsonrpsee = { version = "0.16.2", features = ["server"] } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index d0acf1be..9f95edf6 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -12,7 +12,6 @@ version = "1.5.30" [dependencies] parity-scale-codec = { workspace = true } scale-info = { workspace = true } -# added by encointer serde = { workspace = true, optional = true } # encointer deps @@ -74,29 +73,45 @@ frame-system-benchmarking = { workspace = true, optional = true } hex-literal = { workspace = true, optional = true } [build-dependencies] -substrate-wasm-builder = { workspace = true} +substrate-wasm-builder = { workspace = true } [features] default = ["std"] std = [ - "parity-scale-codec/std", - "scale-info/std", - "serde", + "encointer-balances-tx-payment-rpc-runtime-api/std", + "encointer-balances-tx-payment/std", + "encointer-primitives/serde_derive", + "encointer-primitives/std", "frame-executive/std", "frame-support/std", - "frame-system/std", "frame-system-rpc-runtime-api/std", - "pallet-aura/std", + "frame-system/std", + "frame-try-runtime/std", "pallet-asset-tx-payment/std", + "pallet-aura/std", "pallet-balances/std", + "pallet-encointer-balances/std", + "pallet-encointer-bazaar-rpc-runtime-api/std", + "pallet-encointer-bazaar/std", + "pallet-encointer-ceremonies-rpc-runtime-api/std", + "pallet-encointer-ceremonies/std", + "pallet-encointer-communities-rpc-runtime-api/std", + "pallet-encointer-communities/std", + "pallet-encointer-democracy/std", + "pallet-encointer-faucet/std", + "pallet-encointer-reputation-commitments/std", + "pallet-encointer-scheduler/std", "pallet-grandpa/std", - "pallet-proxy/std", "pallet-insecure-randomness-collective-flip/std", + "pallet-proxy/std", "pallet-sudo/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", "pallet-treasury/std", + "parity-scale-codec/std", + "scale-info/std", + "serde", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -108,34 +123,14 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", - "encointer-balances-tx-payment/std", - "encointer-balances-tx-payment-rpc-runtime-api/std", - "encointer-primitives/std", - "encointer-primitives/serde_derive", - "pallet-encointer-balances/std", - "pallet-encointer-bazaar/std", - "pallet-encointer-bazaar-rpc-runtime-api/std", - "pallet-encointer-ceremonies/std", - "pallet-encointer-ceremonies-rpc-runtime-api/std", - "pallet-encointer-communities/std", - "pallet-encointer-communities-rpc-runtime-api/std", - "pallet-encointer-democracy/std", - "pallet-encointer-faucet/std", - "pallet-encointer-reputation-commitments/std", - "pallet-encointer-scheduler/std", - "frame-try-runtime/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "pallet-grandpa/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "hex-literal", - # encointer crates + "pallet-balances/runtime-benchmarks", "pallet-encointer-balances/runtime-benchmarks", "pallet-encointer-bazaar/runtime-benchmarks", "pallet-encointer-ceremonies/runtime-benchmarks", @@ -144,26 +139,19 @@ runtime-benchmarks = [ "pallet-encointer-faucet/runtime-benchmarks", "pallet-encointer-reputation-commitments/runtime-benchmarks", "pallet-encointer-scheduler/runtime-benchmarks", + "pallet-grandpa/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ - "frame-try-runtime/try-runtime", "frame-executive/try-runtime", - "frame-system/try-runtime", "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-try-runtime/try-runtime", + "pallet-asset-tx-payment/try-runtime", "pallet-aura/try-runtime", "pallet-balances/try-runtime", - "pallet-grandpa/try-runtime", - "pallet-insecure-randomness-collective-flip/try-runtime", - "pallet-sudo/try-runtime", - "pallet-timestamp/try-runtime", - "pallet-transaction-payment/try-runtime", - "pallet-treasury/try-runtime", - "pallet-proxy/try-runtime", - "pallet-scheduler/try-runtime", - "pallet-utility/try-runtime", - "pallet-asset-tx-payment/try-runtime", - "pallet-encointer-balances/try-runtime", "pallet-encointer-bazaar/try-runtime", "pallet-encointer-ceremonies/try-runtime", @@ -172,4 +160,13 @@ try-runtime = [ "pallet-encointer-faucet/try-runtime", "pallet-encointer-reputation-commitments/try-runtime", "pallet-encointer-scheduler/try-runtime", + "pallet-grandpa/try-runtime", + "pallet-insecure-randomness-collective-flip/try-runtime", + "pallet-proxy/try-runtime", + "pallet-scheduler/try-runtime", + "pallet-sudo/try-runtime", + "pallet-timestamp/try-runtime", + "pallet-transaction-payment/try-runtime", + "pallet-treasury/try-runtime", + "pallet-utility/try-runtime", ]