Trait iota_package_resolver::PackageStore
source · pub trait PackageStore: Send + Sync + 'static {
// Required method
fn fetch<'life0, 'async_trait>(
&'life0 self,
id: AccountAddress,
) -> Pin<Box<dyn Future<Output = Result<Arc<Package>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Interface to abstract over access to a store of live packages. Used to override the default store during testing.