Trait gamepower_wallet::Config[][src]

pub trait Config: Config + Config {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type Transfer: OnTransferHandler<Self::AccountId, Self::ClassId, Self::TokenId>;
    type Burn: OnBurnHandler<Self::AccountId, Self::ClassId, Self::TokenId>;
    type Claim: OnClaimHandler<Self::AccountId, Self::ClassId, Self::TokenId>;
    type AllowTransfer: Get<bool>;
    type AllowBurn: Get<bool>;
    type AllowEscrow: Get<bool>;
    type AllowClaim: Get<bool>;
    type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>;
    type ModuleId: Get<ModuleId>;
}

The module configuration trait.

Associated Types

type Event: From<Event<Self>> + Into<Self::Event>[src]

type Transfer: OnTransferHandler<Self::AccountId, Self::ClassId, Self::TokenId>[src]

Wallet Transfer Handler

type Burn: OnBurnHandler<Self::AccountId, Self::ClassId, Self::TokenId>[src]

Wallet Burn Handler

type Claim: OnClaimHandler<Self::AccountId, Self::ClassId, Self::TokenId>[src]

Wallet Claim Handler

type AllowTransfer: Get<bool>[src]

Allow assets to be transferred through the wallet

type AllowBurn: Get<bool>[src]

Allow assets to be burned from the wallet

type AllowEscrow: Get<bool>[src]

Allow assets to be listed on the market

type AllowClaim: Get<bool>[src]

Allow asset claiming

type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>[src]

Currency type for reserve/unreserve balance

type ModuleId: Get<ModuleId>[src]

Wallet Module Id

Loading content...

Implementors

Loading content...