[][src]Struct ethers_contract::builders::Deployer

pub struct Deployer<'a, P, S> {
    pub tx: TransactionRequest,
    // some fields omitted
}

Helper which manages the deployment transaction of a smart contract

Fields

tx: TransactionRequest

The deployer's transaction, exposed for overriding the defaults

Implementations

impl<'a, P, S> Deployer<'a, P, S> where
    S: Signer,
    P: JsonRpcClient
[src]

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

impl<'a, P, S> Send for Deployer<'a, P, S> where
    P: Sync,
    S: Sync

impl<'a, P, S> Sync for Deployer<'a, P, S> where
    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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,