pub trait ScryptoFungibleVault {
    // Required methods
    fn lock_fee<A: Into<Decimal>>(&mut self, amount: A);
    fn lock_contingent_fee<A: Into<Decimal>>(&mut self, amount: A);
    fn create_proof_of_amount<A: Into<Decimal>>(
        &self,
        amount: A
    ) -> FungibleProof;
    fn authorize_with_amount<A: Into<Decimal>, F: FnOnce() -> O, O>(
        &self,
        amount: A,
        f: F
    ) -> O;
}

Required Methods§

source

fn lock_fee<A: Into<Decimal>>(&mut self, amount: A)

source

fn lock_contingent_fee<A: Into<Decimal>>(&mut self, amount: A)

source

fn create_proof_of_amount<A: Into<Decimal>>(&self, amount: A) -> FungibleProof

source

fn authorize_with_amount<A: Into<Decimal>, F: FnOnce() -> O, O>( &self, amount: A, f: F ) -> O

Object Safety§

This trait is not object safe.

Implementors§