Struct ethers_contract_abigen::contract::ExpandedContract
source · pub struct ExpandedContract {
pub module: Ident,
pub imports: TokenStream,
pub contract: TokenStream,
pub events: TokenStream,
pub errors: TokenStream,
pub call_structs: TokenStream,
pub abi_structs: TokenStream,
}
Expand description
The result of Context::expand
Fields§
§module: Ident
The name of the contract module
imports: TokenStream
The contract module’s imports
contract: TokenStream
Contract, Middle related implementations
events: TokenStream
All event impls of the contract
errors: TokenStream
All error impls of the contract
call_structs: TokenStream
All contract call struct related types
abi_structs: TokenStream
The contract’s internal structs
Implementations§
source§impl ExpandedContract
impl ExpandedContract
sourcepub fn into_tokens(self) -> TokenStream
pub fn into_tokens(self) -> TokenStream
Merges everything into a single module