Skip to main content

DescriptorSource

Trait DescriptorSource 

Source
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§

Source

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.

Source

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.

Implementors§