Skip to content

Commit

Permalink
activate tokenstaking (paritytech#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aton authored Nov 30, 2018
1 parent bb86a1c commit 6d96c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions cxrml/example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ impl<T: Trait> LinkedNodeCollection for LinkedOptionMultiKey<T> {
decl_storage! {
trait Store for Module<T: Trait> as CXExample {
pub Fee get(fee) config(): T::Balance;
pub Fee2 get(fee2) config(): Option<T::Balance>;
/// btreemap
pub Map get(map): CodecBTreeMap<T::AccountId, T::Balance>;

Expand Down
10 changes: 5 additions & 5 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl tokenbalances::Trait for Runtime {
const CHAINX_TOKEN_DESC: tokenbalances::DescString = b"Polkadot ChainX";
type TokenBalance = TokenBalance;
type Event = Event;
type OnMoveToken = ();
type OnMoveToken = TokenStaking;
}

impl multisig::Trait for Runtime {
Expand All @@ -250,8 +250,8 @@ impl associations::Trait for Runtime {
impl staking::Trait for Runtime {
type OnRewardMinted = Treasury;
type Event = Event;
type OnNewSessionForTokenStaking = ();
type OnReward = ();
type OnNewSessionForTokenStaking = TokenStaking;
type OnReward = TokenStaking;
}

impl tokenstaking::Trait for Runtime {
Expand All @@ -266,8 +266,8 @@ impl bridge_btc::Trait for Runtime {
// funds
impl financialrecords::Trait for Runtime {
type Event = Event;
type OnDepositToken = ();
type OnWithdrawToken = ();
type OnDepositToken = TokenStaking;
type OnWithdrawToken = TokenStaking;
}

impl withdrawal::Trait for Runtime {}
Expand Down

0 comments on commit 6d96c6a

Please sign in to comment.