Struct multiversx_chain_vm::scenario::model::ScDeployStep
source · pub struct ScDeployStep {
pub id: String,
pub tx_id: Option<String>,
pub comment: Option<String>,
pub tx: Box<TxDeploy>,
pub expect: Option<TxExpect>,
}Fields§
§id: String§tx_id: Option<String>§comment: Option<String>§tx: Box<TxDeploy>§expect: Option<TxExpect>Implementations§
source§impl ScDeployStep
impl ScDeployStep
pub fn new() -> Self
pub fn from<V>(self, expr: V) -> Selfwhere
AddressValue: From<V>,
pub fn egld_value<V>(self, expr: V) -> Selfwhere
BigUintValue: From<V>,
pub fn code_metadata(self, code_metadata: CodeMetadata) -> Self
pub fn contract_code(self, expr: &str, context: &InterpreterContext) -> Self
pub fn argument(self, expr: &str) -> Self
pub fn gas_limit<V>(self, value: V) -> Selfwhere
U64Value: From<V>,
pub fn expect(self, expect: TxExpect) -> Self
sourcepub fn call<OriginalResult>(
self,
contract_deploy: ContractDeploy<DebugApi, OriginalResult>
) -> Self
pub fn call<OriginalResult>(
self,
contract_deploy: ContractDeploy<DebugApi, OriginalResult>
) -> Self
Sets following fields based on the smart contract proxy:
- “function”
- “arguments”
Trait Implementations§
source§impl Debug for ScDeployStep
impl Debug for ScDeployStep
source§impl Default for ScDeployStep
impl Default for ScDeployStep
source§fn default() -> ScDeployStep
fn default() -> ScDeployStep
Returns the “default value” for a type. Read more
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.