diff --git a/Cargo.lock b/Cargo.lock index 58c2b20b679c2..bc9b451a20811 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5049,6 +5049,7 @@ dependencies = [ "pallet-contracts-rpc-runtime-api", "pallet-ddc-metrics-offchain-worker", "pallet-ddc-staking", + "pallet-ddc-validator", "pallet-democracy", "pallet-election-provider-multi-phase", "pallet-elections-phragmen", diff --git a/bin/node/runtime/Cargo.toml b/bin/node/runtime/Cargo.toml index 52830d110122e..ed563f445eb15 100644 --- a/bin/node/runtime/Cargo.toml +++ b/bin/node/runtime/Cargo.toml @@ -96,6 +96,7 @@ pallet-erc721 = { version = "2.0.0", default-features = false, path = "../../../ pallet-erc20 = { version = "2.0.0", default-features = false, path = "../../../frame/erc20" } pallet-ddc-metrics-offchain-worker = { version = "2.0.0", default-features = false, path = "../../../frame/ddc-metrics-offchain-worker" } pallet-ddc-staking = { version = "0.1.0", default-features = false, path = "../../../frame/ddc-staking" } +pallet-ddc-validator= { version = "0.1.0", default-features = false, path = "../../../frame/ddc-validator" } [build-dependencies] substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-builder" } @@ -170,6 +171,7 @@ std = [ "pallet-child-bounties/std", "pallet-ddc-metrics-offchain-worker/std", "pallet-ddc-staking/std", + "pallet-ddc-validator/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", diff --git a/bin/node/runtime/src/lib.rs b/bin/node/runtime/src/lib.rs index 51a54091e7aee..d13d2595cf0bb 100644 --- a/bin/node/runtime/src/lib.rs +++ b/bin/node/runtime/src/lib.rs @@ -81,6 +81,7 @@ pub use pallet_cere_ddc; pub use pallet_chainbridge; pub use pallet_ddc_metrics_offchain_worker; pub use pallet_ddc_staking; +pub use pallet_ddc_validator; #[cfg(any(feature = "std", test))] pub use frame_system::Call as SystemCall; @@ -1229,6 +1230,10 @@ impl pallet_ddc_staking::Config for Runtime { type WeightInfo = pallet_ddc_staking::weights::SubstrateWeight; } +impl pallet_ddc_validator::Config for Runtime { + type Event = Event; +} + construct_runtime!( pub enum Runtime where Block = Block, @@ -1279,6 +1284,7 @@ construct_runtime!( Erc20: pallet_erc20::{Pallet, Call, Storage, Event}, DdcMetricsOffchainWorker: pallet_ddc_metrics_offchain_worker::{Pallet, Call, Storage, Event}, DdcStaking: pallet_ddc_staking, + DdcValidator: pallet_ddc_validator, } );