[][src]Trait sunshine_util::traits::OffChainBank

pub trait OffChainBank: RegisterOffChainBankAccount {
    type Payment;
    fn sender_claims_payment_sent(
        id: Self::TreasuryId,
        payment: Self::Payment
    ) -> Self::Payment;
fn recipient_confirms_payment_received(
        id: Self::TreasuryId,
        payment: Self::Payment
    ) -> DispatchResult;
fn check_payment_confirmation(
        id: Self::TreasuryId,
        payment: Self::Payment
    ) -> bool; }

Associated Types

type Payment

Loading content...

Required methods

fn sender_claims_payment_sent(
    id: Self::TreasuryId,
    payment: Self::Payment
) -> Self::Payment

fn recipient_confirms_payment_received(
    id: Self::TreasuryId,
    payment: Self::Payment
) -> DispatchResult

fn check_payment_confirmation(
    id: Self::TreasuryId,
    payment: Self::Payment
) -> bool

Loading content...

Implementors

Loading content...