Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Add DAC Validator pallet to the runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Mar 17, 2023
1 parent 3ee1010 commit 9998f50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bin/node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1229,6 +1230,10 @@ impl pallet_ddc_staking::Config for Runtime {
type WeightInfo = pallet_ddc_staking::weights::SubstrateWeight<Runtime>;
}

impl pallet_ddc_validator::Config for Runtime {
type Event = Event;
}

construct_runtime!(
pub enum Runtime where
Block = Block,
Expand Down Expand Up @@ -1279,6 +1284,7 @@ construct_runtime!(
Erc20: pallet_erc20::{Pallet, Call, Storage, Event<T>},
DdcMetricsOffchainWorker: pallet_ddc_metrics_offchain_worker::{Pallet, Call, Storage, Event<T>},
DdcStaking: pallet_ddc_staking,
DdcValidator: pallet_ddc_validator,
}
);

Expand Down

0 comments on commit 9998f50

Please sign in to comment.