pub struct AccountLocker {
pub handle: ObjectStubHandle,
}
Fields§
§handle: ObjectStubHandle
Implementations§
Source§impl AccountLocker
impl AccountLocker
pub fn store( &mut self, claimant: Global<Account>, bucket: Bucket, try_direct_send: bool, )
pub fn airdrop( &mut self, claimants: IndexMap<Global<Account>, ResourceSpecifier>, bucket: Bucket, try_direct_send: bool, ) -> Option<Bucket>
pub fn recover( &mut self, claimant: Global<Account>, resource_address: ResourceAddress, amount: Decimal, ) -> Bucket
pub fn recover_non_fungibles( &mut self, claimant: Global<Account>, resource_address: ResourceAddress, ids: Vec<NonFungibleLocalId>, ) -> NonFungibleBucket
pub fn claim( &mut self, claimant: Global<Account>, resource_address: ResourceAddress, amount: Decimal, ) -> Bucket
pub fn claim_non_fungibles( &mut self, claimant: Global<Account>, resource_address: ResourceAddress, ids: Vec<NonFungibleLocalId>, ) -> NonFungibleBucket
pub fn get_amount( &self, claimant: Global<Account>, resource_address: ResourceAddress, ) -> Decimal
pub fn get_non_fungible_local_ids( &self, claimant: Global<Account>, resource_address: ResourceAddress, limit: u32, ) -> Vec<NonFungibleLocalId>
Trait Implementations§
Source§impl Clone for AccountLocker
impl Clone for AccountLocker
Source§fn clone(&self) -> AccountLocker
fn clone(&self) -> AccountLocker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccountLocker
impl Debug for AccountLocker
Source§impl HasStub for AccountLocker
impl HasStub for AccountLocker
type Stub = AccountLocker
Source§impl HasTypeInfo for AccountLocker
impl HasTypeInfo for AccountLocker
const PACKAGE_ADDRESS: Option<PackageAddress>
const BLUEPRINT_NAME: &'static str = "AccountLocker"
const OWNED_TYPE_NAME: &'static str = "OwnedAccountLocker"
const GLOBAL_TYPE_NAME: &'static str = "GlobalAccountLocker"
fn blueprint_id() -> BlueprintId
Source§impl ObjectStub for AccountLocker
impl ObjectStub for AccountLocker
type AddressType = ComponentAddress
fn new(handle: ObjectStubHandle) -> Self
fn handle(&self) -> &ObjectStubHandle
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T
fn instance_of(&self, blueprint_id: &BlueprintId) -> bool
fn blueprint_id(&self) -> BlueprintId
Source§impl PartialEq for AccountLocker
impl PartialEq for AccountLocker
impl Copy for AccountLocker
impl Eq for AccountLocker
impl StructuralPartialEq for AccountLocker
Auto Trait Implementations§
impl Freeze for AccountLocker
impl RefUnwindSafe for AccountLocker
impl Send for AccountLocker
impl Sync for AccountLocker
impl Unpin for AccountLocker
impl UnwindSafe for AccountLocker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.