messari / subgraphs

Standardized subgraphs for blockchain data
MIT License
512 stars 241 forks source link

#bug; UniswapV3 Optimism parsing Failed #2355

Open kyle8615 opened 1 year ago

kyle8615 commented 1 year ago

Describe the bug Error log shows parse fail

Subgraph instance failed to run: transaction 3cc452c70c81c1300c65169d261f5c4ad037b48da2139bf0743429d6e100de96: Mapping aborted at ~lib/@graphprotocol/graph-ts/common/collections.ts, line 150, column 9, with message: overflow converting 0x0000000000000000000000000000000000000000000000000000000067e53c31 to i32\twasm backtrace:\t    0: 0x53ad - <unknown>!~lib/@graphprotocol/graph-ts/common/collections/ByteArray#toI32\t    1: 0x548f - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.Value#toI32\t    2: 0x8c73 - <unknown>!src/common/entities/token/getOrCreateToken\t    3: 0x9a4a - <unknown>!src/common/entities/pool/createLiquidityPool\t    4: 0xc070 - <unknown>!src/mappings/factory/handlePoolCreated\t in handler `handlePoolCreated` at block #108380846 (79d22a108667bd24a7e92bac67420fbc027d8eb2dd641c7275bbea4d07bffb73), code: SubgraphSyncingFailure

Reproduction Cannot fetch data from https://api.thegraph.com/subgraphs/name/messari/uniswap-v3-optimism/graphql

Expected behavior Fetch Data successfully

Screenshots Screenshot 2023-09-01 at 5 27 22 PM Screenshot 2023-09-01 at 5 28 10 PM

gummy789j commented 1 year ago

same issue

DemonTsai commented 1 year ago

same issue

HarveyJhuang1010 commented 1 year ago

same issue

shoyo10 commented 1 year ago

+1

melotik commented 1 year ago

Hey all! Little update on this.

We fixed this issue in the code, and started syncing the subgraph. However, it will take a while, since there are so many transactions.

If you only need swaps we have a swap-only subgraph for uni v3 optimism: https://okgraph.xyz/?q=messari%2Funiswap-v3-swap-optimism

kyle8615 commented 1 year ago

@dmelotik thank you for the work. Does it run into another error? I checked the link you provided that suffers an indexing_error for now.

r--w commented 1 year ago

seems that similar problem occured on swaps subgraph right now:

image
bye43 commented 1 year ago

There is a pending version w/ the fix at ~74%: Screenshot 2023-09-13 at 9 21 21 AM

melotik commented 1 year ago

seems that similar problem occured on swaps subgraph right now:

https://github.com/messari/subgraphs/issues/2370 fixing here