pub struct EnumerableMap { /* private fields */ }
Expand description
Generated by ethcontract
Implementations§
Source§impl Contract
impl Contract
Sourcepub fn raw_contract() -> &'static Contract
pub fn raw_contract() -> &'static Contract
Retrieves the raw contract instance used to generate the type safe API for this contract.
Sourcepub fn at<F, B, T>(web3: &Web3<T>, address: Address) -> Self
pub fn at<F, B, T>(web3: &Web3<T>, address: Address) -> Self
Creates a new contract instance with the specified web3
provider at the given Address
.
Note that this does not verify that a contract with a matching
Abi
is actually deployed at the given address.
Sourcepub fn with_deployment_info<F, B, T>(
web3: &Web3<T>,
address: Address,
deployment_information: Option<DeploymentInformation>,
) -> Self
pub fn with_deployment_info<F, B, T>( web3: &Web3<T>, address: Address, deployment_information: Option<DeploymentInformation>, ) -> Self
Creates a new contract instance with the specified web3
provider with
the given Abi
at the given Address
and an optional transaction hash.
This hash is used to retrieve contract related information such as the
creation block (which is useful for fetching all historic events).
Note that this does not verify that a contract with a matching Abi
is
actually deployed at the given address nor that the transaction hash,
when provided, is actually for this contract deployment.
Sourcepub fn deployment_information(&self) -> Option<DeploymentInformation>
pub fn deployment_information(&self) -> Option<DeploymentInformation>
Returns the deployment information of the contract
if it is known, None
otherwise.
Sourcepub fn defaults(&self) -> &MethodDefaults
pub fn defaults(&self) -> &MethodDefaults
Returns a reference to the default method options used by this contract.
Sourcepub fn defaults_mut(&mut self) -> &mut MethodDefaults
pub fn defaults_mut(&mut self) -> &mut MethodDefaults
Returns a mutable reference to the default method options used by this contract.
Sourcepub fn raw_instance(&self) -> &DynInstance
pub fn raw_instance(&self) -> &DynInstance
Returns a reference to the raw runtime instance used by this contract.