[][src]Trait sunshine_bank::Trait

pub trait Trait: Trait + Trait + Trait + Trait {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type SpendId: Parameter + Member + AtLeast32Bit + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + PartialOrd + PartialEq + Zero;
    type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>;
    type MaxTreasuryPerOrg: Get<u32>;
    type MinimumInitialDeposit: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>;
}

Associated Types

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

The overarching event types

type SpendId: Parameter + Member + AtLeast32Bit + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + PartialOrd + PartialEq + Zero

Identifier for spends, only has meaning in the context of a bank account (OnChainTreasuryID)

type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>

The currency type for on-chain transactions

type MaxTreasuryPerOrg: Get<u32>

The limit on how many bank accounts an org can have

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

The minimum amount necessary to open an organizational bank account

Loading content...

Implementors

Loading content...