pub trait ScryptoVault {
type BucketType;
type ProofType;
Show 13 methods
// Required methods
fn with_bucket(bucket: Self::BucketType) -> Self;
fn new(resource_address: ResourceAddress) -> Self;
fn put(&mut self, bucket: Self::BucketType);
fn amount(&self) -> Decimal;
fn resource_address(&self) -> ResourceAddress;
fn is_empty(&self) -> bool;
fn take<A: Into<Decimal>>(&mut self, amount: A) -> Self::BucketType;
fn take_all(&mut self) -> Self::BucketType;
fn take_advanced<A: Into<Decimal>>(
&mut self,
amount: A,
withdraw_strategy: WithdrawStrategy
) -> Self::BucketType;
fn as_fungible(&self) -> FungibleVault;
fn as_non_fungible(&self) -> NonFungibleVault;
fn burn<A: Into<Decimal>>(&mut self, amount: A);
// Provided method
fn resource_manager(&self) -> ResourceManager { ... }
}