pub struct Erc1155TokenContractRef { /* private fields */ }Expand description
Erc1155Token Contract Ref.
Trait Implementations§
Source§impl ContractRef for Erc1155TokenContractRef
impl ContractRef for Erc1155TokenContractRef
Source§impl OwnedErc1155 for Erc1155TokenContractRef
impl OwnedErc1155 for Erc1155TokenContractRef
Source§fn balance_of(&self, owner: &Address, id: &U256) -> U256
fn balance_of(&self, owner: &Address, id: &U256) -> U256
Returns the amount of tokens of token type
id owned by owner.Source§fn balance_of_batch(&self, owners: Vec<Address>, ids: Vec<U256>) -> Vec<U256>
fn balance_of_batch(&self, owners: Vec<Address>, ids: Vec<U256>) -> Vec<U256>
Batched version of Erc1155::balance_of. Read more
Source§fn set_approval_for_all(&mut self, operator: &Address, approved: bool)
fn set_approval_for_all(&mut self, operator: &Address, approved: bool)
Allows or denials the
operator to transfer the caller’s tokens. Read moreSource§fn is_approved_for_all(&self, owner: &Address, operator: &Address) -> bool
fn is_approved_for_all(&self, owner: &Address, operator: &Address) -> bool
Checks if the
operator is approved to transfer owner’s tokens.Source§fn safe_transfer_from(
&mut self,
from: &Address,
to: &Address,
id: &U256,
amount: &U256,
data: &Option<Bytes>,
)
fn safe_transfer_from( &mut self, from: &Address, to: &Address, id: &U256, amount: &U256, data: &Option<Bytes>, )
Source§fn safe_batch_transfer_from(
&mut self,
from: &Address,
to: &Address,
ids: Vec<U256>,
amounts: Vec<U256>,
data: &Option<Bytes>,
)
fn safe_batch_transfer_from( &mut self, from: &Address, to: &Address, ids: Vec<U256>, amounts: Vec<U256>, data: &Option<Bytes>, )
Batched version of Erc1155::safe_transfer_from. Read more
Source§fn renounce_ownership(&mut self)
fn renounce_ownership(&mut self)
If the contract’s owner chooses to renounce their ownership, the contract
will no longer have an owner. This means that any functions that can only
be accessed by the owner will no longer be available. Read more
Source§fn transfer_ownership(&mut self, new_owner: &Address)
fn transfer_ownership(&mut self, new_owner: &Address)
Transfers ownership of the module to
new_owner. This function can only
be accessed by the current contract owner. Read moreSource§impl SchemaEvents for Erc1155TokenContractRef
impl SchemaEvents for Erc1155TokenContractRef
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more
Auto Trait Implementations§
impl Freeze for Erc1155TokenContractRef
impl !RefUnwindSafe for Erc1155TokenContractRef
impl !Send for Erc1155TokenContractRef
impl !Sync for Erc1155TokenContractRef
impl Unpin for Erc1155TokenContractRef
impl !UnwindSafe for Erc1155TokenContractRef
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more