Skip to content

Commit

Permalink
Merge pull request #283 from AurevoirXavier/canary
Browse files Browse the repository at this point in the history
Ready for Staking Tests
  • Loading branch information
yanganto authored Feb 24, 2020
2 parents c094e38 + 7a24f1f commit f104129
Show file tree
Hide file tree
Showing 7 changed files with 4,702 additions and 2,812 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions bin/node/runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub mod time {
use node_primitives::{BlockNumber, Moment};
use sp_staking::SessionIndex;

// TODO doc
include!(concat!(env!("OUT_DIR"), "/timestamp_now.rs"));
pub const GENESIS_TIME: Moment = NOW;

Expand Down
4 changes: 3 additions & 1 deletion frame/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ darwinia-support = { default-features = false, path = "../support" }

[dev-dependencies]
substrate-test-utils = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "pre-v2.0-3e65111" }
pallet-timestamp = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "pre-v2.0-3e65111" }

darwinia-ring = { path = "../../frame/balances/ring" }
pallet-ring = { package = "darwinia-ring", path = "../../frame/balances/ring" }
pallet-kton = { package = "darwinia-kton", path = "../../frame/balances/kton" }

[features]
equalize = []
Expand Down
2 changes: 1 addition & 1 deletion frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
//! ```
//! use frame_support::{decl_module, dispatch};
//! use frame_system::{self as system, ensure_signed};
//! use pallet_staking::{self as staking};
//! use darwinia_staking::{self as staking};
//!
//! pub trait Trait: staking::Trait {}
//!
Expand Down
Loading

0 comments on commit f104129

Please sign in to comment.