aptos-labs / aptos-indexer-processors

Set of core processors that index data on the Aptos blockchain
https://aptos.dev/indexer/indexer-landing
60 stars 72 forks source link

[fungible asset migration] Map fungible asset to their v1 type #519

Closed bowenyang007 closed 2 months ago

bowenyang007 commented 2 months ago

Summary

For accounts that only have v2 fungible asset, the asset type will show up as fa address instead of legacy coin (0xa instead of 0x1 apt). This creates an issue for anyone querying for 0x1. This PR standardizes asset type by ensuring that 0xa maps to 0x1.

Backfill

When first v2 only apt was created. Testnet: 2598047902 Mainnet: 1669115601

Testing

before image

after image