Skip to main content

provider_storage_fetcher

Function provider_storage_fetcher 

Source
pub fn provider_storage_fetcher<P>(
    provider: Arc<P>,
    batch_config: StorageBatchConfig,
    strategy: StorageFetchStrategy,
) -> StorageBatchFetchFn
where P: Provider<AnyNetwork> + 'static,
Expand description

Build the same provider-backed storage fetcher selected by an EvmCacheBuilder without constructing an EvmCache.

Background cold-start workers use this to perform exact-hash provider work independently of the cache-owner actor. The returned callback remains protocol-neutral and accepts the block pin at invocation time.