pub trait ChainAnalyzer: Send + Sync {
// Required methods
fn chain_id(&self) -> ChainId;
fn info(&self) -> ChainInfo;
// Provided methods
fn analyze_deployment(
&self,
_contract_address: &str,
) -> Result<Vec<String>, ForgeGuardError> { ... }
fn estimate_gas(&self, _gas_used: u64) -> Result<f64, ForgeGuardError> { ... }
}Expand description
A chain-specific analyzer for EVM and non-EVM chains.
Required Methods§
Provided Methods§
Sourcefn analyze_deployment(
&self,
_contract_address: &str,
) -> Result<Vec<String>, ForgeGuardError>
fn analyze_deployment( &self, _contract_address: &str, ) -> Result<Vec<String>, ForgeGuardError>
Analyze deployment for this chain’s specifics.
Sourcefn estimate_gas(&self, _gas_used: u64) -> Result<f64, ForgeGuardError>
fn estimate_gas(&self, _gas_used: u64) -> Result<f64, ForgeGuardError>
Estimate gas for this chain.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".