pub struct DeployOptions<'a> {
pub amount: u128,
pub initializer: Option<WalletInitCall<'a>>,
}Expand description
Explicit funding and optional initialization in the deployment transaction.
Every deploy helper takes these options. A deployment is one call of the
agent’s DefaultWallet.deploy(nonce, contract_hash, amount, initializer),
so funding, deployment and initialization commit atomically. The
initializer (an entrypoint, gas budget and encoded calldata) runs as the
wallet against the new contract.
Fields§
§amount: u128Exact raw native token amount transferred to the new contract. Zero skips funding.
initializer: Option<WalletInitCall<'a>>Optional invocation on the new contract, called by its deploying wallet.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for DeployOptions<'a>
impl<'a> Clone for DeployOptions<'a>
impl<'a> Copy for DeployOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeployOptions<'a>
impl<'a> RefUnwindSafe for DeployOptions<'a>
impl<'a> Send for DeployOptions<'a>
impl<'a> Sync for DeployOptions<'a>
impl<'a> Unpin for DeployOptions<'a>
impl<'a> UnsafeUnpin for DeployOptions<'a>
impl<'a> UnwindSafe for DeployOptions<'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