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

Commit

Permalink
expose constants of pallet_recovery trait (#6363)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 committed Jun 16, 2020
1 parent 6907018 commit 9e999b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frame/recovery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,18 @@ decl_module! {
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
type Error = Error<T>;

/// The base amount of currency needed to reserve for creating a recovery configuration.
const ConfigDepositBase: BalanceOf<T> = T::ConfigDepositBase::get();

/// The amount of currency needed per additional user when creating a recovery configuration.
const FriendDepositFactor: BalanceOf<T> = T::FriendDepositFactor::get();

/// The maximum amount of friends allowed in a recovery configuration.
const MaxFriends: u16 = T::MaxFriends::get();

/// The base amount of currency needed to reserve for starting a recovery.
const RecoveryDeposit: BalanceOf<T> = T::RecoveryDeposit::get();

/// Deposit one of this module's events by using the default implementation.
fn deposit_event() = default;

Expand Down

0 comments on commit 9e999b2

Please sign in to comment.