pub struct DeployRequest<'a> {
pub account: &'a PubkeyAccount,
pub code: DeploymentCode,
pub amount: u128,
pub initializer: Option<WalletInitCall<'a>>,
pub gas_limit: u64,
pub block_expiry_height: i64,
pub nonce: u64,
}Expand description
A native deployment from account’s DefaultWallet, with optional funding and
initialization in the same transaction.
Fields§
§account: &'a PubkeyAccountDeploying native account.
code: DeploymentCodeBinary attached to this transaction, or the hash of an already registered binary.
amount: u128Exact raw native token amount transferred to the new contract. Zero skips funding.
initializer: Option<WalletInitCall<'a>>Invocation of the new contract by the deploying wallet.
gas_limit: u64Root gas budget, which must cover any initializer’s gas limit.
block_expiry_height: i64Transaction expiration height.
nonce: u64Transaction uniquifier. The deployment salt is deployment_nonce of this value.
Trait Implementations§
Source§impl<'a> Clone for DeployRequest<'a>
impl<'a> Clone for DeployRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeployRequest<'a>
impl<'a> RefUnwindSafe for DeployRequest<'a>
impl<'a> Send for DeployRequest<'a>
impl<'a> Sync for DeployRequest<'a>
impl<'a> Unpin for DeployRequest<'a>
impl<'a> UnsafeUnpin for DeployRequest<'a>
impl<'a> UnwindSafe for DeployRequest<'a>
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