[][src]Trait sunshine_util::traits::RegisterFoundation

pub trait RegisterFoundation<Currency, AccountId>: FoundationParts {
    fn register_foundation_from_deposit(
        from: AccountId,
        for_org: Self::OrgId,
        amount: Currency
    ) -> Result<Self::BankId, DispatchError>;
fn register_foundation_from_existing_bank(
        org: Self::OrgId,
        bank: Self::BankId
    ) -> DispatchResult; }

Required methods

fn register_foundation_from_deposit(
    from: AccountId,
    for_org: Self::OrgId,
    amount: Currency
) -> Result<Self::BankId, DispatchError>

fn register_foundation_from_existing_bank(
    org: Self::OrgId,
    bank: Self::BankId
) -> DispatchResult

Loading content...

Implementors

Loading content...