pub struct Deploy(/* private fields */);
Implementations§
Source§impl Deploy
impl Deploy
pub fn with_payment_and_session( deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, ) -> Result<Deploy, String>
👎Deprecated: prefer Transaction type
pub fn with_transfer( amount: &str, target_account: &str, transfer_id: Option<String>, deploy_params: DeployStrParams, payment_params: PaymentStrParams, ) -> Result<Deploy, String>
👎Deprecated: prefer Transaction type
pub fn with_ttl(&self, ttl: &str, secret_key: Option<String>) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_timestamp( &self, timestamp: &str, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_chain_name( &self, chain_name: &str, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_account( &self, account: PublicKey, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_entry_point_name( &self, entry_point_name: &str, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_hash( &self, hash: ContractHash, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_package_hash( &self, package_hash: ContractPackageHash, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_module_bytes( &self, module_bytes: Bytes, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_secret_key(&self, secret_key: Option<String>) -> Deploy
👎Deprecated: prefer Transaction type
pub fn with_standard_payment( &self, amount: &str, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn validate_deploy_size(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn is_valid(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn hash(&self) -> DeployHash
👎Deprecated: prefer Transaction type
pub fn has_valid_hash(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn expired(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn sign(&mut self, secret_key: &str) -> Deploy
👎Deprecated: prefer Transaction type
pub fn is_transfer(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn is_standard_payment(&self, phase: u8) -> bool
👎Deprecated: prefer Transaction type
pub fn is_stored_contract(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn is_stored_contract_package(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn is_module_bytes(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn is_by_name(&self) -> bool
👎Deprecated: prefer Transaction type
pub fn by_name(&self) -> Option<String>
👎Deprecated: prefer Transaction type
pub fn entry_point_name(&self) -> String
👎Deprecated: prefer Transaction type
pub fn add_signature(&self, public_key: &str, signature: &str) -> Deploy
👎Deprecated: prefer Transaction type
pub fn ttl(&self) -> String
👎Deprecated: prefer Transaction type
pub fn timestamp(&self) -> String
👎Deprecated: prefer Transaction type
pub fn chain_name(&self) -> String
👎Deprecated: prefer Transaction type
pub fn account(&self) -> String
👎Deprecated: prefer Transaction type
pub fn payment_amount(&self, conv_rate: u8) -> String
👎Deprecated: prefer Transaction type
Source§impl Deploy
impl Deploy
pub fn args(&self) -> RuntimeArgs
👎Deprecated: prefer Transaction type
pub fn add_arg( &mut self, new_value_arg: String, secret_key: Option<String>, ) -> Deploy
👎Deprecated: prefer Transaction type
pub fn to_json_string(&self) -> Result<String, Box<SdkError>>
👎Deprecated: prefer Transaction type
pub fn from_json_string(json_str: &str) -> Result<Deploy, Box<SdkError>>
👎Deprecated: prefer Transaction type
pub fn compute_approvals_hash(&self) -> Result<ApprovalsHash, Error>
👎Deprecated: prefer Transaction type
pub fn approvals(&self) -> Vec<Approval>
👎Deprecated: prefer Transaction type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Deploy
impl<'de> Deserialize<'de> for Deploy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromWasmAbi for Deploy
impl FromWasmAbi for Deploy
Source§impl IntoWasmAbi for Deploy
impl IntoWasmAbi for Deploy
Source§impl LongRefFromWasmAbi for Deploy
impl LongRefFromWasmAbi for Deploy
Source§impl OptionFromWasmAbi for Deploy
impl OptionFromWasmAbi for Deploy
Source§impl OptionIntoWasmAbi for Deploy
impl OptionIntoWasmAbi for Deploy
Source§impl RefFromWasmAbi for Deploy
impl RefFromWasmAbi for Deploy
Source§impl RefMutFromWasmAbi for Deploy
impl RefMutFromWasmAbi for Deploy
Source§impl TryFromJsValue for Deploy
impl TryFromJsValue for Deploy
Source§impl VectorFromWasmAbi for Deploy
impl VectorFromWasmAbi for Deploy
Source§impl VectorIntoWasmAbi for Deploy
impl VectorIntoWasmAbi for Deploy
Auto Trait Implementations§
impl !Freeze for Deploy
impl RefUnwindSafe for Deploy
impl Send for Deploy
impl Sync for Deploy
impl Unpin for Deploy
impl UnwindSafe for Deploy
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.