pub struct ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,{
pub to: ManagedOption<SA, ManagedAddress<SA>>,
pub egld_payment: BigUint<SA>,
pub explicit_gas_limit: u64,
pub arg_buffer: ManagedArgBuffer<SA>,
/* private fields */
}
๐Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Fieldsยง
ยงto: ManagedOption<SA, ManagedAddress<SA>>
๐Deprecated since 0.49.0: Please use the unified transaction syntax instead.
ยงegld_payment: BigUint<SA>
๐Deprecated since 0.49.0: Please use the unified transaction syntax instead.
ยงexplicit_gas_limit: u64
๐Deprecated since 0.49.0: Please use the unified transaction syntax instead.
ยงarg_buffer: ManagedArgBuffer<SA>
๐Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Implementationsยง
Sourceยงimpl<SA, OriginalResult> ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,
impl<SA, OriginalResult> ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,
pub fn new() -> ContractDeploy<SA, OriginalResult>
pub fn with_egld_transfer( self, payment_amount: BigUint<SA>, ) -> ContractDeploy<SA, OriginalResult>
pub fn with_gas_limit( self, gas_limit: u64, ) -> ContractDeploy<SA, OriginalResult>
pub fn push_endpoint_arg<T>(&mut self, endpoint_arg: &T)where
T: TopEncodeMulti,
Sourceยงimpl<SA, OriginalResult> ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,
OriginalResult: TopEncodeMulti,
impl<SA, OriginalResult> ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,
OriginalResult: TopEncodeMulti,
Sourcepub fn deploy_contract<RequestedResult>(
self,
code: &ManagedBuffer<SA>,
code_metadata: CodeMetadata,
) -> (ManagedAddress<SA>, RequestedResult)where
RequestedResult: TopDecodeMulti + TypeAbiFrom<OriginalResult>,
pub fn deploy_contract<RequestedResult>(
self,
code: &ManagedBuffer<SA>,
code_metadata: CodeMetadata,
) -> (ManagedAddress<SA>, RequestedResult)where
RequestedResult: TopDecodeMulti + TypeAbiFrom<OriginalResult>,
Executes immediately, synchronously, and returns Some(Address) of the deployed contract.
Will return None if the deploy fails.
pub fn deploy_from_source<RequestedResult>(
self,
source_address: &ManagedAddress<SA>,
code_metadata: CodeMetadata,
) -> (ManagedAddress<SA>, RequestedResult)where
RequestedResult: TopDecodeMulti + TypeAbiFrom<OriginalResult>,
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ยง
Sourceยงimpl<SA, OriginalResult> Default for ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,
impl<SA, OriginalResult> Default for ContractDeploy<SA, OriginalResult>where
SA: CallTypeApi + 'static,
Sourceยงfn default() -> ContractDeploy<SA, OriginalResult>
fn default() -> ContractDeploy<SA, OriginalResult>
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<Api, To, Payment, OriginalResult> From<Tx<TxScEnv<Api>, (), To, Payment, (), DeployCall<TxScEnv<Api>, ()>, OriginalResultMarker<OriginalResult>>> for ContractDeploy<Api, OriginalResult>where
Api: CallTypeApi + 'static,
To: TxTo<TxScEnv<Api>>,
Payment: TxPaymentEgldOnly<TxScEnv<Api>>,
OriginalResult: TopEncodeMulti,
impl<Api, To, Payment, OriginalResult> From<Tx<TxScEnv<Api>, (), To, Payment, (), DeployCall<TxScEnv<Api>, ()>, OriginalResultMarker<OriginalResult>>> for ContractDeploy<Api, OriginalResult>where
Api: CallTypeApi + 'static,
To: TxTo<TxScEnv<Api>>,
Payment: TxPaymentEgldOnly<TxScEnv<Api>>,
OriginalResult: TopEncodeMulti,
Sourceยงfn from(
value: Tx<TxScEnv<Api>, (), To, Payment, (), DeployCall<TxScEnv<Api>, ()>, OriginalResultMarker<OriginalResult>>,
) -> ContractDeploy<Api, OriginalResult>
fn from( value: Tx<TxScEnv<Api>, (), To, Payment, (), DeployCall<TxScEnv<Api>, ()>, OriginalResultMarker<OriginalResult>>, ) -> ContractDeploy<Api, OriginalResult>
Converts to this type from the input type.
Sourceยงimpl<OriginalResult> IntoBlockchainCall for ContractDeploy<VMHooksApi<StaticApiBackend>, OriginalResult>
impl<OriginalResult> IntoBlockchainCall for ContractDeploy<VMHooksApi<StaticApiBackend>, OriginalResult>
Sourceยงtype BlockchainCall = TypedScDeploy<OriginalResult>
type BlockchainCall = TypedScDeploy<OriginalResult>
๐Deprecated since 0.42.0: The recommended syntax is a variation of
sc_call
or sc_deploy
with a scenario step built from the ContractCall.Sourceยงfn into_blockchain_call(
self,
) -> <ContractDeploy<VMHooksApi<StaticApiBackend>, OriginalResult> as IntoBlockchainCall>::BlockchainCall
fn into_blockchain_call( self, ) -> <ContractDeploy<VMHooksApi<StaticApiBackend>, OriginalResult> as IntoBlockchainCall>::BlockchainCall
๐Deprecated since 0.42.0: The recommended syntax is a variation of
sc_call
or sc_deploy
with a scenario step built from the ContractCall.Auto Trait Implementationsยง
impl<SA, OriginalResult> Freeze for ContractDeploy<SA, OriginalResult>where
<SA as HandleTypeInfo>::ManagedBufferHandle: Freeze,
<SA as HandleTypeInfo>::BigIntHandle: Freeze,
impl<SA, OriginalResult> RefUnwindSafe for ContractDeploy<SA, OriginalResult>where
SA: RefUnwindSafe,
<SA as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
OriginalResult: RefUnwindSafe,
<SA as HandleTypeInfo>::BigIntHandle: RefUnwindSafe,
impl<SA, OriginalResult> Send for ContractDeploy<SA, OriginalResult>where
SA: Send,
<SA as HandleTypeInfo>::ManagedBufferHandle: Send,
OriginalResult: Send,
<SA as HandleTypeInfo>::BigIntHandle: Send,
impl<SA, OriginalResult> Sync for ContractDeploy<SA, OriginalResult>where
SA: Sync,
<SA as HandleTypeInfo>::ManagedBufferHandle: Sync,
OriginalResult: Sync,
<SA as HandleTypeInfo>::BigIntHandle: Sync,
impl<SA, OriginalResult> Unpin for ContractDeploy<SA, OriginalResult>where
SA: Unpin,
<SA as HandleTypeInfo>::ManagedBufferHandle: Unpin,
OriginalResult: Unpin,
<SA as HandleTypeInfo>::BigIntHandle: Unpin,
impl<SA, OriginalResult> UnwindSafe for ContractDeploy<SA, OriginalResult>where
SA: UnwindSafe,
<SA as HandleTypeInfo>::ManagedBufferHandle: UnwindSafe,
OriginalResult: UnwindSafe,
<SA as HandleTypeInfo>::BigIntHandle: 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
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> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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