Struct multiversx_sc_scenario::mandos_system::model::ScCallStep
source · pub struct ScCallStep {
pub id: String,
pub tx_id: Option<String>,
pub comment: Option<String>,
pub tx: Box<TxCall, Global>,
pub expect: Option<TxExpect>,
}
Fields§
§id: String
§tx_id: Option<String>
§comment: Option<String>
§tx: Box<TxCall, Global>
§expect: Option<TxExpect>
Implementations§
source§impl ScCallStep
impl ScCallStep
pub fn new() -> ScCallStep
pub fn from<A>(self, address: A) -> ScCallStepwhere AddressValue: From<A>,
pub fn to<A>(self, address: A) -> ScCallStepwhere AddressValue: From<A>,
pub fn egld_value<A>(self, amount: A) -> ScCallStepwhere BigUintValue: From<A>,
pub fn esdt_transfer<T, N, A>( self, token_id: T, token_nonce: N, amount: A ) -> ScCallStepwhere BytesValue: From<T>, U64Value: From<N>, BigUintValue: From<A>,
pub fn function(self, expr: &str) -> ScCallStep
pub fn argument<A>(self, expr: A) -> ScCallStepwhere BytesValue: From<A>,
pub fn gas_limit<V>(self, value: V) -> ScCallStepwhere U64Value: From<V>,
pub fn expect(self, expect: TxExpect) -> ScCallStep
sourcepub fn call<CC>(self, contract_call: CC) -> ScCallStepwhere
CC: ContractCall<TxContextRef>,
pub fn call<CC>(self, contract_call: CC) -> ScCallStepwhere CC: ContractCall<TxContextRef>,
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
) -> ScCallStepwhere
CC: ContractCall<TxContextRef>,
ExpectedResult: CodecFrom<<CC as ContractCall<TxContextRef>>::OriginalResult> + TopEncodeMulti,
pub fn call_expect<CC, ExpectedResult>( self, contract_call: CC, expect_value: ExpectedResult ) -> ScCallStepwhere CC: ContractCall<TxContextRef>, ExpectedResult: CodecFrom<<CC as ContractCall<TxContextRef>>::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) -> TypedScCall<OriginalResult>
fn from(untyped: ScCallStep) -> TypedScCall<OriginalResult>
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>) -> ScCallStep
fn from(typed: TypedScCall<OriginalResult>) -> ScCallStep
Converts to this type from the input type.
Auto Trait Implementations§
impl CodecFromSelf for ScCallStep
impl RefUnwindSafe for ScCallStep
impl Send for ScCallStep
impl Sync for ScCallStep
impl Unpin for ScCallStep
impl UnwindSafe for ScCallStep
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