Struct multiversx_chain_vm::scenario::model::TypedScDeploy
source · pub struct TypedScDeploy<OriginalResult> {
pub id: String,
pub tx_id: Option<String>,
pub comment: Option<String>,
pub tx: Box<TxDeploy>,
pub expect: Option<TxExpect>,
/* private fields */
}Expand description
SCCallStep with explicit return type.
Fields§
§id: String§tx_id: Option<String>§comment: Option<String>§tx: Box<TxDeploy>§expect: Option<TxExpect>Implementations§
source§impl<OriginalResult> TypedScDeploy<OriginalResult>
impl<OriginalResult> TypedScDeploy<OriginalResult>
pub fn from<A>(self, address: A) -> Selfwhere AddressValue: From<A>,
pub fn egld_value<A>(self, amount: A) -> Selfwhere BigUintValue: From<A>,
pub fn code_metadata(self, code_metadata: CodeMetadata) -> Self
pub fn contract_code(self, expr: &str, context: &InterpreterContext) -> Self
pub fn gas_limit<V>(self, value: V) -> Selfwhere U64Value: From<V>,
pub fn expect(self, expect: TxExpect) -> Self
source§impl<OriginalResult> TypedScDeploy<OriginalResult>where
OriginalResult: TopEncodeMulti,
impl<OriginalResult> TypedScDeploy<OriginalResult>where OriginalResult: TopEncodeMulti,
sourcepub fn execute<E: TypedScDeployExecutor, RequestedResult>(
self,
executor: &mut E
) -> (Address, RequestedResult)where
RequestedResult: CodecFrom<OriginalResult>,
pub fn execute<E: TypedScDeployExecutor, RequestedResult>( self, executor: &mut E ) -> (Address, RequestedResult)where RequestedResult: CodecFrom<OriginalResult>,
Executes the operation, on the given executor.
Trait Implementations§
source§impl<OriginalResult: Debug> Debug for TypedScDeploy<OriginalResult>
impl<OriginalResult: Debug> Debug for TypedScDeploy<OriginalResult>
source§impl<OriginalResult> Default for TypedScDeploy<OriginalResult>
impl<OriginalResult> Default for TypedScDeploy<OriginalResult>
source§impl<OriginalResult> From<ScDeployStep> for TypedScDeploy<OriginalResult>
impl<OriginalResult> From<ScDeployStep> for TypedScDeploy<OriginalResult>
source§fn from(untyped: ScDeployStep) -> Self
fn from(untyped: ScDeployStep) -> Self
Converts to this type from the input type.
source§impl<OriginalResult> From<TypedScDeploy<OriginalResult>> for ScDeployStep
impl<OriginalResult> From<TypedScDeploy<OriginalResult>> for ScDeployStep
source§fn from(typed: TypedScDeploy<OriginalResult>) -> Self
fn from(typed: TypedScDeploy<OriginalResult>) -> Self
Converts to this type from the input type.