Struct ethcontract::contract::DeployBuilder [−][src]
#[must_use = "deploy builers do nothing unless you `.deploy()` them"]pub struct DeployBuilder<T, I> where
T: Transport,
I: Deploy<T>, { /* fields omitted */ }
Expand description
Builder for specifying options for deploying a linked contract.
Implementations
Create a new deploy builder from a web3
provider, artifact data and
deployment (constructor) parameters.
Specify the signing method to use for the transaction, if not specified the the transaction will be locally signed with the default user.
Secify amount of gas to use, if not specified then a gas estimate will be used.
Specify the gas price to use, if not specified then the estimated gas price will be used.
Specify what how much ETH to transfer with the transaction, if not specified then no ETH will be sent.
Specify the nonce for the transation, if not specified will use the current transaction count for the signing account.
Specify the number of confirmations to wait for when confirming the transaction, if not specified will wait for the transaction to be mined without any extra confirmations.
Extract inner TransactionBuilder
from this DeployBuilder
. This
exposes TransactionBuilder
only APIs.
Sign (if required) and execute the transaction. Returns the transaction hash that can be used to retrieve transaction information.
Trait Implementations
Auto Trait Implementations
impl<T, I> RefUnwindSafe for DeployBuilder<T, I> where
I: RefUnwindSafe,
T: RefUnwindSafe,
<I as Deploy<T>>::Context: RefUnwindSafe,
impl<T, I> Unpin for DeployBuilder<T, I> where
I: Unpin,
T: Unpin,
<I as Deploy<T>>::Context: Unpin,
impl<T, I> UnwindSafe for DeployBuilder<T, I> where
I: UnwindSafe,
T: UnwindSafe,
<I as Deploy<T>>::Context: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V