Trait ethcontract::contract::Deploy
source · pub trait Deploy<T: Transport>: Sized {
type Context;
// Required methods
fn bytecode(cx: &Self::Context) -> &Bytecode;
fn abi(cx: &Self::Context) -> &Abi;
fn from_deployment(
web3: Web3<T>,
address: Address,
transaction_hash: H256,
cx: Self::Context
) -> Self;
}Expand description
a factory trait for deployable contract instances. this traits provides functionality for building a deployment and creating instances of a contract type at a given address.
this allows generated contracts to be deployable without having to create new builder and future types.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.