interlay / interbtc-squid

Subquid GraphQL schema and indexer for the Interlay and Kintsugi networks
Apache License 2.0
4 stars 7 forks source link

Refactor: Remove use of ApiPromise to read storage, use storage read via squid instead #129

Closed bvotteler closed 1 year ago

bvotteler commented 1 year ago

Two util methods, getForeignAsset and cacheForeignAssets, create an ApiPromise to get foreign asset data from the parachain. We can replace that to use the squid context instead to fetch the same data, keeping it consistent with the rest of our squid implementation.

bvotteler commented 1 year ago

Closed: Cannot as easily get metadata with foreign asset ids using squids built-in storage read mechanisms.