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) -> ScDeployStep
Sourcepub fn call<OriginalResult, CD>(
self,
contract_deploy: CD,
) -> TypedScDeploy<OriginalResult>
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
pub fn call<OriginalResult, CD>( self, contract_deploy: CD, ) -> 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, tx_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 InteractorStep for ScDeployStep
impl InteractorStep for ScDeployStep
fn as_interactor_step(&mut self) -> InteractorStepRef<'_>
Source§impl StepWithResponse for ScDeployStep
impl StepWithResponse for ScDeployStep
fn into_response(self) -> TxResponse
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more