Update subsquid client to use latest subsquid#109
Conversation
n13
left a comment
There was a problem hiding this comment.
Oh this is important, didn't realize this - testing
|
The review is complete. I checked out the PR branch, audited every GraphQL call site, verified the queries against the live Hasura server, and exercised the redeem path end-to-end. Here's the full picture. Verdict: the PR is correct and should be merged soon — the old endpoint is already dead
What I verified against the live server (sub2.quantus.com)Schema compatibility. I introspected the Hasura schema: all tables ( Hash compatibility — the make-or-break for redeems. The client filters results by exact hash equality, so a format mismatch would silently return zero transfers. Both formats match:
The 1000-cap emulation and binary-split contract. A broad live query (84,095 matches) produced the error End-to-end CLI runs against the live server, all on the PR branch:
Coverage of all GraphQL access. Every GraphQL call goes through Non-blocking suggestions
Note that I left the |
Summary
Note
Medium Risk
Changes default indexer URL and GraphQL schema for wormhole collect-rewards, transfer queries, and nullifier checks; behavior should match prior limits but depends on the new Hasura deployment being correct and in sync.
Overview
Switches the CLI to the new Hasura-backed indexer at
https://sub2.quantus.com/v1/graphqlby updating default--subsquid-urlontransfers query,wormhole collect-rewards, andwormhole check-nullifier, plus matching README docs.Rewrites
SubsquidClientaway from custom Subsquid resolvers (transfersByHashPrefix/nullifiersByPrefix) toward Hasura table queries ontransferandwormhole_nullifier, with_likehash-prefix filters, nestedblock.height, andtransfer_aggregatefor total counts. The 1000-result cap and error wording are preserved soquery_all_transfers_by_prefixstill binary-splits block ranges on the same marker.Adds Hasura row types and mapping (
HasuraTransferRow,HasuraNullifierRow) into the existing flatTransfer/NullifierResulttypes, including flexible deserialization of Postgresnumericfields (JSON number or string) and mappingextrinsic_id/wormholeExtrinsic.extrinsic_idfor extrinsic hashes.Reviewed by Cursor Bugbot for commit 56473a2. Configure here.