pub struct ContractObj<A>(/* private fields */)
where
A: VMApi;Trait Implementations§
impl<A> AutoImpl for ContractObj<A>where
A: VMApi,
Source§impl<A> CallableContract for ContractObj<A>
impl<A> CallableContract for ContractObj<A>
Source§impl<A> ContractBase for ContractObj<A>where
A: VMApi,
impl<A> ContractBase for ContractObj<A>where
A: VMApi,
type Api = A
Source§fn call_value(&self) -> CallValueWrapper<Self::Api>
fn call_value(&self) -> CallValueWrapper<Self::Api>
Gateway into the call value retrieval functionality.
The payment annotations should normally be the ones to handle this,
but the developer is also given direct access to the API.
Source§fn send(&self) -> SendWrapper<Self::Api>
fn send(&self) -> SendWrapper<Self::Api>
Gateway to the functionality related to sending transactions from the current contract.
Source§fn tx(&self) -> Tx<TxScEnv<Self::Api>, (), (), (), (), (), ()>
fn tx(&self) -> Tx<TxScEnv<Self::Api>, (), (), (), (), (), ()>
Starts the declaration of a new transaction.
Source§fn send_raw(&self) -> SendRawWrapper<Self::Api>
fn send_raw(&self) -> SendRawWrapper<Self::Api>
Low-level functionality related to sending transactions from the current contract. Read more
Source§fn blockchain(&self) -> BlockchainWrapper<Self::Api>
fn blockchain(&self) -> BlockchainWrapper<Self::Api>
Gateway blockchain info related to the current transaction and to accounts.
Source§fn crypto(&self) -> CryptoWrapper<Self::Api>
fn crypto(&self) -> CryptoWrapper<Self::Api>
Stateless crypto functions provided by the Arwen VM.
Source§fn serializer(&self) -> ManagedSerializer<Self::Api>
fn serializer(&self) -> ManagedSerializer<Self::Api>
Component that provides contract developers access
to highly optimized manual serialization and deserialization.
fn error(&self) -> ErrorHelper<Self::Api>
fn storage_raw(&self) -> StorageRawWrapper<Self::Api>
Source§impl<A> EndpointWrappers for ContractObj<A>where
A: VMApi,
impl<A> EndpointWrappers for ContractObj<A>where
A: VMApi,
fn call_set_feature_flag_endpoint(&mut self)
fn call(&mut self, fn_name: &str) -> bool
fn callback_selector( &mut self, ___cb_closure___: &CallbackClosureForDeser<Self::Api>, ) -> CallbackSelectorResult
fn callback(&mut self)
Auto Trait Implementations§
impl<A> Freeze for ContractObj<A>where
UniversalContractObj<A>: Freeze,
impl<A> RefUnwindSafe for ContractObj<A>where
UniversalContractObj<A>: RefUnwindSafe,
impl<A> Send for ContractObj<A>where
UniversalContractObj<A>: Send,
impl<A> Sync for ContractObj<A>where
UniversalContractObj<A>: Sync,
impl<A> Unpin for ContractObj<A>where
UniversalContractObj<A>: Unpin,
impl<A> UnsafeUnpin for ContractObj<A>where
UniversalContractObj<A>: UnsafeUnpin,
impl<A> UnwindSafe for ContractObj<A>where
UniversalContractObj<A>: UnwindSafe,
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