Struct dharitri_wasm::types::ContractDeploy
source · pub struct ContractDeploy<SA>where
SA: SendApi + 'static,{ /* private fields */ }Implementations§
source§impl<SA> ContractDeploy<SA>where
SA: SendApi + 'static,
impl<SA> ContractDeploy<SA>where
SA: SendApi + 'static,
pub fn new() -> Self
pub fn with_moax_transfer(self, payment_amount: BigUint<SA>) -> Self
pub fn with_gas_limit(self, gas_limit: u64) -> Self
pub fn push_endpoint_arg<D: ContractCallArg>(&mut self, endpoint_arg: D)
source§impl<SA> ContractDeploy<SA>where
SA: SendApi + 'static,
impl<SA> ContractDeploy<SA>where
SA: SendApi + 'static,
sourcepub fn deploy_contract(
self,
code: &ManagedBuffer<SA>,
code_metadata: CodeMetadata
) -> (ManagedAddress<SA>, ManagedVec<SA, ManagedBuffer<SA>>)
pub fn deploy_contract( self, code: &ManagedBuffer<SA>, code_metadata: CodeMetadata ) -> (ManagedAddress<SA>, ManagedVec<SA, ManagedBuffer<SA>>)
Executes immediately, synchronously, and returns Some(Address) of the deployed contract.
Will return None if the deploy fails.
pub fn deploy_from_source( self, source_address: &ManagedAddress<SA>, code_metadata: CodeMetadata ) -> (ManagedAddress<SA>, ManagedVec<SA, ManagedBuffer<SA>>)
pub fn upgrade_from_source( self, source_address: &ManagedAddress<SA>, code_metadata: CodeMetadata )
pub fn upgrade_contract( self, code: &ManagedBuffer<SA>, code_metadata: CodeMetadata )
Trait Implementations§
Auto Trait Implementations§
impl<SA> RefUnwindSafe for ContractDeploy<SA>where
SA: RefUnwindSafe,
impl<SA> Send for ContractDeploy<SA>where
SA: Send,
impl<SA> Sync for ContractDeploy<SA>where
SA: Sync,
impl<SA> Unpin for ContractDeploy<SA>where
SA: Unpin,
impl<SA> UnwindSafe for ContractDeploy<SA>where
SA: 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