-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Description
Chain metadata doesn't necessarily include a logoURI, but we do require a logo.svg for chain entries in the registry. So it's possible to get all the chain info including all the logos but atm it looks like this code in the explorer:
// Ensure that by the before this code is done, the registry classes content caches will be filled
await registry.listRegistryContent();
// Get the chain metadata, most of which don't have logos yet
const registryChainMetadata = await registry.getMetadata();
// Merge the registry-based logo URIs into the metadata
const metadataWithLogos = await promiseObjAll(
objMap(
registryChainMetadata,
async (chainName, metadata): Promise<ChainMetadata> => ({
...metadata,
logoURI: (await registry.getChainLogoUri(chainName)) || undefined,
}),
),
);We should improve the interface so that logos 'just work'.
It may make sense to do this at the same time as #534
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Backlog (old, unrefined)