Struct novax_executor::ScDeployStep
source · pub struct ScDeployStep {
pub id: String,
pub tx_id: Option<String>,
pub explicit_tx_hash: Option<H256>,
pub comment: Option<String>,
pub tx: Box<TxDeploy>,
pub expect: Option<TxExpect>,
pub response: Option<TxResponse>,
}Fields§
§id: String§tx_id: Option<String>§explicit_tx_hash: Option<H256>§comment: Option<String>§tx: Box<TxDeploy>§expect: Option<TxExpect>§response: Option<TxResponse>Implementations§
source§impl ScDeployStep
impl ScDeployStep
pub fn new() -> ScDeployStep
pub fn from<V>(self, expr: V) -> ScDeployStepwhere AddressValue: From<V>,
pub fn egld_value<V>(self, expr: V) -> ScDeployStepwhere BigUintValue: From<V>,
pub fn code_metadata(self, code_metadata: CodeMetadata) -> ScDeployStep
pub fn code<V>(self, expr: V) -> ScDeployStepwhere BytesValue: From<V>,
pub fn contract_code( self, expr: &str, context: &InterpreterContext ) -> ScDeployStep
👎Deprecated since 0.42.0: Please use method
code instead. To ease transition, it is also possible to call it with a tuple like so: .code((expr, context))pub fn argument(self, expr: &str) -> ScDeployStep
pub fn gas_limit<V>(self, value: V) -> ScDeployStepwhere U64Value: From<V>,
sourcepub fn call<OriginalResult>(
self,
contract_deploy: ContractDeploy<VMHooksApi<StaticApiBackend>, OriginalResult>
) -> TypedScDeploy<OriginalResult>
pub fn call<OriginalResult>( self, contract_deploy: ContractDeploy<VMHooksApi<StaticApiBackend>, OriginalResult> ) -> TypedScDeploy<OriginalResult>
Sets following fields based on the smart contract proxy:
- “function”
- “arguments”
sourcepub fn expect(self, expect: TxExpect) -> ScDeployStep
pub fn expect(self, expect: TxExpect) -> ScDeployStep
Adds a custom expect section to the tx.
sourcepub fn no_expect(self) -> ScDeployStep
pub fn no_expect(self) -> ScDeployStep
Explicitly states that no tx expect section should be added and no checks should be performed.
Note: by default a basic TxExpect::ok() is added, which checks that status is 0 and nothing else.
sourcepub fn response(&self) -> &TxResponse
pub fn response(&self) -> &TxResponse
Unwraps the response, if available.
pub fn save_response(&mut self, response: TxResponse)
Trait Implementations§
source§impl AsMut<ScDeployStep> for ScDeployStep
impl AsMut<ScDeployStep> for ScDeployStep
source§fn as_mut(&mut self) -> &mut ScDeployStep
fn as_mut(&mut self) -> &mut ScDeployStep
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<OriginalResult> AsMut<ScDeployStep> for TypedScDeploy<OriginalResult>
impl<OriginalResult> AsMut<ScDeployStep> for TypedScDeploy<OriginalResult>
source§fn as_mut(&mut self) -> &mut ScDeployStep
fn as_mut(&mut self) -> &mut ScDeployStep
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl Clone for ScDeployStep
impl Clone for ScDeployStep
source§fn clone(&self) -> ScDeployStep
fn clone(&self) -> ScDeployStep
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§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) -> TypedScDeploy<OriginalResult>
fn from(untyped: ScDeployStep) -> TypedScDeploy<OriginalResult>
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>) -> ScDeployStep
fn from(typed: TypedScDeploy<OriginalResult>) -> ScDeployStep
Converts to this type from the input type.
source§impl SendableTransactionConvertible for ScDeployStep
impl SendableTransactionConvertible for ScDeployStep
source§fn to_sendable_transaction(&self) -> SendableTransaction
fn to_sendable_transaction(&self) -> SendableTransaction
Converts the current instance into a
SendableTransaction.source§impl TransactionSpec for ScDeployStep
impl TransactionSpec for ScDeployStep
fn to_transaction(&self, interactor: &Interactor) -> Transaction
fn to_address(&self) -> &AddressValue
fn run_step(&mut self, step_runner: &mut dyn ScenarioRunner)
fn set_response(&mut self, response: TxResponse)
Auto Trait Implementations§
impl CodecFromSelf for ScDeployStep
impl RefUnwindSafe for ScDeployStep
impl Send for ScDeployStep
impl Sync for ScDeployStep
impl Unpin for ScDeployStep
impl UnwindSafe for ScDeployStep
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