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

Integrate the claims module #355

Merged
merged 8 commits into from
Aug 7, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ parameter_types! {
pub type DealWithFees = SplitTwoWays<
Balance,
NegativeImbalance,
_4, Treasury, // 4 parts (80%) goes to the treasury.
_4, Treasury, // 4 parts (80%) goes to the treasury.
_1, ToAuthor, // 1 part (20%) goes to the block author.
>;

Expand Down Expand Up @@ -364,6 +364,16 @@ impl slots::Trait for Runtime {

impl curated_grandpa::Trait for Runtime { }

parameter_types!{
pub const Prefix: &'static [u8] = b"Pay KSMs to the Kusama account:";
}

impl claims::Trait for Runtime {
type Event = Event;
type Currency = Balances;
type Prefix = Prefix;
}

impl sudo::Trait for Runtime {
type Event = Event;
type Proposal = Call;
Expand Down Expand Up @@ -393,6 +403,7 @@ construct_runtime!(
Treasury: treasury::{Module, Call, Storage, Event<T>},
Parachains: parachains::{Module, Call, Storage, Config<T>, Inherent, Origin},
Slots: slots::{Module, Call, Storage, Event<T>},
Claims: claims::{Module, Call, Storage, Event<T>, ValidateUnsigned},
Sudo: sudo,
}
);
Expand Down