pub struct GitHubRegistrySource { /* private fields */ }Expand description
HTTP-based descriptor source that fetches from a GitHub registry.
Requires the github-registry feature.
Implementations§
Source§impl GitHubRegistrySource
impl GitHubRegistrySource
Sourcepub fn new(
base_url: &str,
calldata_index: HashMap<String, String>,
eip712_index: HashMap<String, HashMap<String, Vec<Eip712IndexEntry>>>,
) -> Self
pub fn new( base_url: &str, calldata_index: HashMap<String, String>, eip712_index: HashMap<String, HashMap<String, Vec<Eip712IndexEntry>>>, ) -> Self
Create a new source with manually provided indexes.
base_url: raw content URL prefix (e.g., "https://raw.githubusercontent.com/org/repo/main").
calldata_index: maps "eip155:{chainId}:{address}" → single relative path.
eip712_index: maps "eip155:{chainId}:{address}" → list of Eip712IndexEntry.
Sourcepub async fn from_registry(base_url: &str) -> Result<Self, ResolveError>
pub async fn from_registry(base_url: &str) -> Result<Self, ResolveError>
Create a source by fetching the required split V3 index files from the registry.
Trait Implementations§
Source§impl DescriptorSource for GitHubRegistrySource
impl DescriptorSource for GitHubRegistrySource
Source§fn 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.
Source§fn 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.
Auto Trait Implementations§
impl !Freeze for GitHubRegistrySource
impl !RefUnwindSafe for GitHubRegistrySource
impl Send for GitHubRegistrySource
impl Sync for GitHubRegistrySource
impl Unpin for GitHubRegistrySource
impl UnsafeUnpin for GitHubRegistrySource
impl UnwindSafe for GitHubRegistrySource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more