[][src]Trait sunshine_util::traits::TermSheetIssuance

pub trait TermSheetIssuance<AccountId, Hash, Shares, Currency>: OnChainBank {
    type VoteConfig;
    fn apply_for_bank_ownership(
        bank_id: Self::TreasuryId,
        applicant: AccountId,
        stake_promised: Currency,
        shares_requested: Shares,
        application: Hash
    ) -> Result<u32, DispatchError>;
fn sponsor_application_to_trigger_vote(
        caller: AccountId,
        bank_id: Self::TreasuryId,
        application_id: u32,
        stake_promised: Currency,
        shares_requested: Shares,
        application: Hash
    ) -> Result<u32, DispatchError>;
fn poll_vote_result_to_enforce_outcome(
        bank_id: Self::TreasuryId,
        vote_id: u32
    ) -> DispatchResult; }

Associated Types

Loading content...

Required methods

fn apply_for_bank_ownership(
    bank_id: Self::TreasuryId,
    applicant: AccountId,
    stake_promised: Currency,
    shares_requested: Shares,
    application: Hash
) -> Result<u32, DispatchError>

fn poll_vote_result_to_enforce_outcome(
    bank_id: Self::TreasuryId,
    vote_id: u32
) -> DispatchResult

Loading content...

Implementors

Loading content...