pub trait DescriptorSource: Send + Sync {
// Required methods
fn resolve_calldata(
&self,
chain_id: u64,
address: &str,
) -> Pin<Box<dyn Future<Output = Result<ResolvedDescriptor, ResolveError>> + Send + '_>>;
fn resolve_typed_candidates(
&self,
lookup: TypedDescriptorLookup,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResolvedDescriptor>, ResolveError>> + Send + '_>>;
}Expand description
Trait for descriptor sources (embedded, filesystem, GitHub API, etc.).
Required Methods§
Sourcefn resolve_calldata(
&self,
chain_id: u64,
address: &str,
) -> Pin<Box<dyn Future<Output = Result<ResolvedDescriptor, ResolveError>> + Send + '_>>
fn resolve_calldata( &self, chain_id: u64, address: &str, ) -> Pin<Box<dyn Future<Output = Result<ResolvedDescriptor, ResolveError>> + Send + '_>>
Resolve a descriptor for contract calldata clear signing.
Sourcefn resolve_typed_candidates(
&self,
lookup: TypedDescriptorLookup,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResolvedDescriptor>, ResolveError>> + Send + '_>>
fn resolve_typed_candidates( &self, lookup: TypedDescriptorLookup, ) -> Pin<Box<dyn Future<Output = Result<Vec<ResolvedDescriptor>, ResolveError>> + Send + '_>>
Resolve candidate descriptors for EIP-712 typed data clear signing.