From 783e46694e39ff26d4194088b795ddf15a8f5c70 Mon Sep 17 00:00:00 2001 From: gautham Date: Mon, 12 Aug 2024 15:00:02 +0530 Subject: [PATCH] Fix CI --- nodes/parachain/src/chain_spec.rs | 4 ++++ polkadex-xcm-simulator/Cargo.toml | 10 ++++++++++ primitives/bls/Cargo.toml | 1 + runtimes/parachain/Cargo.toml | 15 +++++++++++++++ runtimes/parachain/src/lib.rs | 6 +++--- 5 files changed, 33 insertions(+), 3 deletions(-) diff --git a/nodes/parachain/src/chain_spec.rs b/nodes/parachain/src/chain_spec.rs index 841707f2f..1a01f6a60 100644 --- a/nodes/parachain/src/chain_spec.rs +++ b/nodes/parachain/src/chain_spec.rs @@ -251,8 +251,12 @@ fn create_genesis_config( ..Default::default() }, sudo: parachain_polkadex_runtime::SudoConfig { key: Some(root_key) }, + elections: Default::default(), + council: Default::default(), + technical_committee: Default::default(), assets: Default::default(), transaction_payment: Default::default(), + democracy: Default::default(), } } diff --git a/polkadex-xcm-simulator/Cargo.toml b/polkadex-xcm-simulator/Cargo.toml index a6b630800..bd46bf6e8 100644 --- a/polkadex-xcm-simulator/Cargo.toml +++ b/polkadex-xcm-simulator/Cargo.toml @@ -61,3 +61,13 @@ runtime-benchmarks = [ "xcm-builder/runtime-benchmarks", "xcm-executor/runtime-benchmarks", ] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-message-queue/try-runtime", + "pallet-uniques/try-runtime", + "pallet-xcm/try-runtime", + "polkadot-runtime-parachains/try-runtime", + "sp-runtime/try-runtime", +] diff --git a/primitives/bls/Cargo.toml b/primitives/bls/Cargo.toml index 872e9c0be..233fb1a8c 100644 --- a/primitives/bls/Cargo.toml +++ b/primitives/bls/Cargo.toml @@ -52,3 +52,4 @@ std = [ "tiny-bip39", "blst", ] +parachain = [] diff --git a/runtimes/parachain/Cargo.toml b/runtimes/parachain/Cargo.toml index 6a164356d..0559face1 100644 --- a/runtimes/parachain/Cargo.toml +++ b/runtimes/parachain/Cargo.toml @@ -174,6 +174,13 @@ runtime-benchmarks = [ "thea-council/runtime-benchmarks", "pallet-assets/runtime-benchmarks", "cumulus-pallet-parachain-system/runtime-benchmarks", + + + "pallet-collective/runtime-benchmarks", + "pallet-democracy/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", ] try-runtime = [ @@ -194,6 +201,14 @@ try-runtime = [ "pallet-collator-selection/try-runtime", "pallet-session/try-runtime", "pallet-sudo/try-runtime", + + "pallet-collective/try-runtime", + "pallet-democracy/try-runtime", + "pallet-preimage/try-runtime", + "pallet-scheduler/try-runtime", + "pallet-elections-phragmen/try-runtime", + + "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-xcm/try-runtime", diff --git a/runtimes/parachain/src/lib.rs b/runtimes/parachain/src/lib.rs index a3d83a00a..2a1aae4cc 100644 --- a/runtimes/parachain/src/lib.rs +++ b/runtimes/parachain/src/lib.rs @@ -179,7 +179,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("polkadex-parachain"), impl_name: create_runtime_str!("polkadex-parachain"), authoring_version: 1, - spec_version: 17, + spec_version: 18, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -437,7 +437,7 @@ impl pallet_aura::Config for Runtime { parameter_types! { pub const PotId: PalletId = PalletId(*b"PotStake"); - pub const MaxCandidates: u32 = 1000; + pub const MaxCandidates: u32 = 100; pub const MinCandidates: u32 = 5; pub const SessionLength: BlockNumber = 6 * HOURS; pub const MaxInvulnerables: u32 = 100; @@ -700,7 +700,7 @@ parameter_types! { pub const DesiredMembers: u32 = 5; pub const DesiredRunnersUp: u32 = 5; pub const ElectionsPhragmenPalletId: LockIdentifier = *b"phrelect"; - pub const MaxVoters: u32 = 10*1000; + pub const MaxVoters: u32 = 10*100; pub const MaxVotesPerVoter: u32 = 16; }