Struct ethers::etherscan::contract::VerifyContract [−][src]
pub struct VerifyContract {
pub address: H160,
pub source: String,
pub code_format: CodeFormat,
pub contract_name: Option<String>,
pub compiler_version: String,
pub runs: Option<String>,
pub constructor_arguments: Option<String>,
pub evm_version: Option<String>,
pub other: HashMap<String, String, RandomState>,
// some fields omitted
}
Expand description
Arguments for verifying contracts
Fields
address: H160
source: String
code_format: CodeFormat
contract_name: Option<String>
if codeformat=solidity-standard-json-input, then expected as
erc20.sol:erc20
compiler_version: String
runs: Option<String>
constructor_arguments: Option<String>
NOTE: there is a typo in the etherscan API constructorArguements
evm_version: Option<String>
other: HashMap<String, String, RandomState>
Implementations
pub fn constructor_arguments(
self,
constructor_arguments: Option<impl Into<String>>
) -> VerifyContract
Trait Implementations
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for VerifyContract
impl Send for VerifyContract
impl Sync for VerifyContract
impl Unpin for VerifyContract
impl UnwindSafe for VerifyContract
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more