Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Slash #267

Merged
merged 14 commits into from
Feb 18, 2020
41 changes: 0 additions & 41 deletions Cargo.lock

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

4 changes: 0 additions & 4 deletions bin/node/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ edition = "2018"
sp-core = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }
sp-runtime = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }

[dev-dependencies]
sp-serializer = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }
pretty_assertions = "0.6.1"

[features]
default = ["std"]
std = [
Expand Down
3 changes: 0 additions & 3 deletions bin/node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ pallet-staking = { package = "darwinia-staking", default-features = false, featu
[build-dependencies]
wasm-builder-runner = { version = "1.0.4", package = "substrate-wasm-builder-runner", git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }

[dev-dependencies]
sp-io = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }

[features]
default = ["std"]
std = [
Expand Down
5 changes: 2 additions & 3 deletions bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));

/// Runtime version.
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("node"),
spec_name: create_runtime_str!("darwinia"),
impl_name: create_runtime_str!("darwinia-node"),
authoring_version: 4,
// Per convention: if the runtime behavior changes, increment spec_version
Expand Down Expand Up @@ -240,7 +240,7 @@ impl pallet_session::Trait for Runtime {
}

impl pallet_session::historical::Trait for Runtime {
type FullIdentification = Exposure<AccountId, Power>;
type FullIdentification = Exposure<AccountId, Balance, Balance>;
type FullIdentificationOf = ExposureOf<Runtime>;
}

Expand Down Expand Up @@ -457,7 +457,6 @@ parameter_types! {

impl pallet_staking::Trait for Runtime {
type Time = Timestamp;
// type PowerToVotes = PowerToVotesHandler;
type Event = Event;
type SessionsPerEra = SessionsPerEra;
type BondingDurationInEra = BondingDurationInEra;
Expand Down
10 changes: 5 additions & 5 deletions frame/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ sp-staking = { version = "2.0.0", default-features = false, git = "https://githu
sp-std = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }

# darwinia
sp-phragmen = { package = "darwinia-phragmen", default-features = false, path = "../../primitives/phragmen" }
darwinia-support = { path = "../support", default-features = false }
darwinia-phragmen = { default-features = false, path = "../../primitives/phragmen" }
darwinia-support = { default-features = false, path = "../support" }

[dev-dependencies]
pallet-ring = { package = "darwinia-ring", path = "../../frame/balances/ring" }
pallet-staking-reward-curve = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }
substrate-test-utils = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", rev = "c2fccb36ffacd118fc3502aa93453580a07dc402" }

darwinia-ring = { path = "../../frame/balances/ring" }

[features]
equalize = []
migrate = []
Expand All @@ -48,10 +48,10 @@ std = [
"pallet-timestamp/std",
"sp-io/std",
"sp-keyring",
"sp-phragmen/std",
"sp-runtime/std",
"sp-staking/std",
"sp-std/std",

"darwinia-phragmen/std",
"darwinia-support/std",
]
Loading