Struct odra_modules::cep78::token::TransferFilterContractHostRef
source · pub struct TransferFilterContractHostRef { /* private fields */ }Expand description
[TransferFilterContract] Host Ref.
Implementations§
source§impl TransferFilterContractHostRef
impl TransferFilterContractHostRef
pub fn can_transfer( &self, source_key: Address, target_key: Address, token_id: TokenIdentifier, ) -> TransferFilterContractResult
source§impl TransferFilterContractHostRef
impl TransferFilterContractHostRef
sourcepub fn try_can_transfer(
&self,
source_key: Address,
target_key: Address,
token_id: TokenIdentifier,
) -> OdraResult<TransferFilterContractResult>
pub fn try_can_transfer( &self, source_key: Address, target_key: Address, token_id: TokenIdentifier, ) -> OdraResult<TransferFilterContractResult>
Does not fail in case of error, returns odra::OdraResult instead.
Trait Implementations§
source§impl HostRef for TransferFilterContractHostRef
impl HostRef for TransferFilterContractHostRef
source§fn new(address: Address, env: HostEnv) -> Self
fn new(address: Address, env: HostEnv) -> Self
Creates a new host side reference to a contract.
source§fn with_tokens(&self, tokens: U512) -> Self
fn with_tokens(&self, tokens: U512) -> Self
Creates a new host reference with attached tokens, based on the current instance. Read more
source§fn get_event<T>(&self, index: i32) -> Result<T, EventError>where
T: FromBytes + EventInstance,
fn get_event<T>(&self, index: i32) -> Result<T, EventError>where
T: FromBytes + EventInstance,
Returns the n-th event emitted by the contract. Read more
source§fn last_call(&self) -> ContractCallResult
fn last_call(&self) -> ContractCallResult
Returns a detailed information about the last call of the contract.
Auto Trait Implementations§
impl Freeze for TransferFilterContractHostRef
impl !RefUnwindSafe for TransferFilterContractHostRef
impl !Send for TransferFilterContractHostRef
impl !Sync for TransferFilterContractHostRef
impl Unpin for TransferFilterContractHostRef
impl !UnwindSafe for TransferFilterContractHostRef
Blanket Implementations§
source§impl<T> Addressable for Twhere
T: HostRef,
impl<T> Addressable for Twhere
T: HostRef,
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