[−][src]Struct ethers_contract::builders::Deployer
Helper which manages the deployment transaction of a smart contract
Fields
tx: TransactionRequestThe deployer's transaction, exposed for overriding the defaults
Implementations
impl<'a, P, S> Deployer<'a, P, S> where
S: Signer,
P: JsonRpcClient, [src]
S: Signer,
P: JsonRpcClient,
pub fn confirmations<T: Into<usize>>(self, confirmations: T) -> Self[src]
Sets the number of confirmations to wait for the contract deployment transaction
pub async fn send(self) -> Result<Contract<'a, P, S>, ContractError>[src]
Broadcasts the contract deployment transaction and after waiting for it to
be sufficiently confirmed (default: 1), it returns a Contract
struct at the deployed contract's address.
pub fn abi(&self) -> &Abi[src]
Returns a reference to the deployer's ABI
pub fn client(&self) -> &Client<P, S>[src]
Returns a reference to the deployer's client
Trait Implementations
impl<'a, P: Clone, S: Clone> Clone for Deployer<'a, P, S>[src]
impl<'a, P: Debug, S: Debug> Debug for Deployer<'a, P, S>[src]
Auto Trait Implementations
impl<'a, P, S> RefUnwindSafe for Deployer<'a, P, S> where
P: RefUnwindSafe,
S: RefUnwindSafe,
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, P, S> Send for Deployer<'a, P, S> where
P: Sync,
S: Sync,
P: Sync,
S: Sync,
impl<'a, P, S> Sync for Deployer<'a, P, S> where
P: Sync,
S: Sync,
P: Sync,
S: Sync,
impl<'a, P, S> Unpin for Deployer<'a, P, S>
impl<'a, P, S> UnwindSafe for Deployer<'a, P, S> where
P: RefUnwindSafe,
S: RefUnwindSafe,
P: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,