MCPcopy Create free account
hub / github.com/dfinity/orbit / getAggregatorAssetMetadata

Function getAggregatorAssetMetadata

apps/wallet/src/utils/asset.utils.ts:115–120  ·  view source on GitHub ↗
(
  metadata: SNSAggregatorAsset['icrc1_metadata'],
  key: string,
)

Source from the content-addressed store, hash-verified

113};
114
115function getAggregatorAssetMetadata<T>(
116 metadata: SNSAggregatorAsset['icrc1_metadata'],
117 key: string,
118): T | undefined {
119 return metadata.find(([k]) => k === key)?.[1] as T | undefined;
120}
121
122function fetchAggregatorPage(page: number): Promise<SNSAggregatorAsset[]> {
123 if (appInitConfig.isProduction) {

Callers 1

fetchWellKnownIcpAssetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected