Struct multiversx_chain_vm::scenario::model::ScCallStep
source · pub struct ScCallStep {
pub id: String,
pub tx_id: Option<String>,
pub comment: Option<String>,
pub tx: Box<TxCall>,
pub expect: Option<TxExpect>,
}Fields§
§id: String§tx_id: Option<String>§comment: Option<String>§tx: Box<TxCall>§expect: Option<TxExpect>Implementations§
source§impl ScCallStep
impl ScCallStep
pub fn new() -> Self
pub fn from<A>(self, address: A) -> Selfwhere
AddressValue: From<A>,
pub fn to<A>(self, address: A) -> Selfwhere
AddressValue: From<A>,
pub fn egld_value<A>(self, amount: A) -> Selfwhere
BigUintValue: From<A>,
pub fn esdt_transfer<T, N, A>(self, token_id: T, token_nonce: N, amount: A) -> Selfwhere
BytesValue: From<T>,
U64Value: From<N>,
BigUintValue: From<A>,
pub fn function(self, expr: &str) -> Self
pub fn argument<A>(self, expr: A) -> Selfwhere
BytesValue: From<A>,
pub fn gas_limit<V>(self, value: V) -> Selfwhere
U64Value: From<V>,
pub fn expect(self, expect: TxExpect) -> Self
sourcepub fn call<CC>(self, contract_call: CC) -> Selfwhere
CC: ContractCall<DebugApi>,
pub fn call<CC>(self, contract_call: CC) -> Selfwhere
CC: ContractCall<DebugApi>,
Sets following fields based on the smart contract proxy:
- “to”
- “function”
- “arguments”
sourcepub fn call_expect<CC, ExpectedResult>(
self,
contract_call: CC,
expect_value: ExpectedResult
) -> Selfwhere
CC: ContractCall<DebugApi>,
ExpectedResult: CodecFrom<CC::OriginalResult> + TopEncodeMulti,
pub fn call_expect<CC, ExpectedResult>(
self,
contract_call: CC,
expect_value: ExpectedResult
) -> Selfwhere
CC: ContractCall<DebugApi>,
ExpectedResult: CodecFrom<CC::OriginalResult> + TopEncodeMulti,
Sets following fields based on the smart contract proxy:
- “to”
- “function”
- “arguments”
- “expect”
- “out”
- “status” set to 0
Trait Implementations§
source§impl Debug for ScCallStep
impl Debug for ScCallStep
source§impl Default for ScCallStep
impl Default for ScCallStep
source§fn default() -> ScCallStep
fn default() -> ScCallStep
Returns the “default value” for a type. Read more
source§impl<OriginalResult> From<ScCallStep> for TypedScCall<OriginalResult>
impl<OriginalResult> From<ScCallStep> for TypedScCall<OriginalResult>
source§fn from(untyped: ScCallStep) -> Self
fn from(untyped: ScCallStep) -> Self
Converts to this type from the input type.
source§impl<OriginalResult> From<TypedScCall<OriginalResult>> for ScCallStep
impl<OriginalResult> From<TypedScCall<OriginalResult>> for ScCallStep
source§fn from(typed: TypedScCall<OriginalResult>) -> Self
fn from(typed: TypedScCall<OriginalResult>) -> Self
Converts to this type from the input type.