[][src]Trait pallet_nicks::Trait

pub trait Trait: Trait {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type Currency: ReservableCurrency<Self::AccountId>;
    type ReservationFee: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>;
    type Slashed: OnUnbalanced<<Self::Currency as Currency<Self::AccountId>>::NegativeImbalance>;
    type ForceOrigin: EnsureOrigin<Self::Origin>;
    type MinLength: Get<usize>;
    type MaxLength: Get<usize>;
}

Associated Types

type Event: From<Event<Self>> + Into<Self::Event>

The overarching event type.

type Currency: ReservableCurrency<Self::AccountId>

The currency trait.

type ReservationFee: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>

Reservation fee.

type Slashed: OnUnbalanced<<Self::Currency as Currency<Self::AccountId>>::NegativeImbalance>

What to do with slashed funds.

type ForceOrigin: EnsureOrigin<Self::Origin>

The origin which may forcibly set or remove a name. Root can always do this.

type MinLength: Get<usize>

The minimum length a name may be.

type MaxLength: Get<usize>

The maximum length a name may be.

Loading content...

Implementors

Loading content...