Struct ethers_etherscan::verify::VerifyContract
source · pub struct VerifyContract {
pub address: Address,
pub source: String,
pub code_format: CodeFormat,
pub contract_name: String,
pub compiler_version: String,
pub optimization_used: Option<String>,
pub runs: Option<String>,
pub constructor_arguments: Option<String>,
pub evm_version: Option<String>,
pub other: HashMap<String, String>,
}
Expand description
Arguments for verifying contracts
Fields§
§address: Address
§source: String
§code_format: CodeFormat
§contract_name: String
if codeformat=solidity-standard-json-input, then expected as
erc20.sol:erc20
compiler_version: String
§optimization_used: Option<String>
applicable when codeformat=solidity-single-file
runs: Option<String>
applicable when codeformat=solidity-single-file
constructor_arguments: Option<String>
NOTE: there is a typo in the etherscan API constructorArguements
evm_version: Option<String>
applicable when codeformat=solidity-single-file
other: HashMap<String, String>
Implementations§
source§impl VerifyContract
impl VerifyContract
pub fn new( address: Address, contract_name: String, source: String, compiler_version: String ) -> Self
pub fn runs(self, runs: u32) -> Self
pub fn optimization(self, optimization: bool) -> Self
pub fn optimized(self) -> Self
pub fn not_optimized(self) -> Self
pub fn code_format(self, code_format: CodeFormat) -> Self
pub fn evm_version(self, evm_version: impl Into<String>) -> Self
pub fn constructor_arguments( self, constructor_arguments: Option<impl Into<String>> ) -> Self
Trait Implementations§
source§impl Clone for VerifyContract
impl Clone for VerifyContract
source§fn clone(&self) -> VerifyContract
fn clone(&self) -> VerifyContract
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VerifyContract
impl Debug for VerifyContract
source§impl<'de> Deserialize<'de> for VerifyContract
impl<'de> Deserialize<'de> for VerifyContract
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more