Integrate the claims module (#355)

* Integrate the claims.

* Remove accidetnal code.

* Update runtime/src/lib.rs

Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>

* Add Config.

* Introduce claims to config

* Expose claims module signing Prefix (#358)

* Update parking_lot, bette trait args
This commit is contained in:
Gavin Wood
2019-08-07 23:49:32 +02:00
committed by Bastian Köcher
parent 4d19de4bd9
commit 9b6e630816
9 changed files with 70 additions and 14 deletions
+6 -3
View File
@@ -68,11 +68,11 @@ impl EcdsaSignature {
decl_event!(
pub enum Event<T> where
B = BalanceOf<T>,
A = <T as system::Trait>::AccountId
Balance = BalanceOf<T>,
AccountId = <T as system::Trait>::AccountId
{
/// Someone claimed some DOTs.
Claimed(A, EthereumAddress, B),
Claimed(AccountId, EthereumAddress, Balance),
}
);
@@ -96,6 +96,9 @@ decl_storage! {
decl_module! {
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
/// The Prefix that is used in signed Ethereum messages for this network
const Prefix: &[u8] = T::Prefix::get();
/// Deposit one of this module's events by using the default implementation.
fn deposit_event<T>() = default;