Skip to content

Commit 62644bb

Browse files
authored
feat: add resolver tracking for MOOV2 early resolver support (#108)
* feat: add resolver tracking for MOOV2 early resolver support - Update ABI with new contract interface - Add Resolver and ResolverHistory entities - Add handlers for RoleGranted/RoleRevoked events (RESOLVER_ROLE only) - Add tests for resolver permission tracking State handling unchanged - getState() already calls on-chain, so past-liveness requests will return Proposed instead of Expired after the contract upgrade. * feat: add dual-ABI getRequest fallback for L2 chains The new MOOV2 ABI (from the resolver upgrade) adds a `proposalTime` field to the `Request` struct returned by `getRequest`. Contracts not yet upgraded still use the legacy struct without that field. On L2 chains (where callHandlers are unsupported), the subgraph calls `getRequest` directly to read bond, eventBased, and customLiveness. This now tries the new ABI first and falls back to the legacy ABI if it reverts, preventing indexing failures on mixed-version deployments. Also moves network detection inside the handler to avoid module-level side effects, and adds tests covering both ABI paths and the fallback when both revert. * docs: update managed oracle v2 polygon goldsky endpoint to 1.0.5
1 parent 6326784 commit 62644bb

File tree

10 files changed

+3627
-312
lines changed

10 files changed

+3627
-312
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ This subgraph indexes events and function calls by the "Managed Optimistic Oracl
149149
- Goldsky: <https://api.goldsky.com/api/public/project_clus2fndawbcc01w31192938i/subgraphs/amoy-managed-optimistic-oracle-v2/1.1.0/gn>
150150
- Polygon
151151
- TheGraph: <https://api.studio.thegraph.com/query/1057/polygon-managed-optimistic-oracle-v2/1.2.0>
152-
- Goldsky: <https://api.goldsky.com/api/public/project_clus2fndawbcc01w31192938i/subgraphs/polygon-managed-optimistic-oracle-v2/1.0.4/gn>
152+
- Goldsky: <https://api.goldsky.com/api/public/project_clus2fndawbcc01w31192938i/subgraphs/polygon-managed-optimistic-oracle-v2/1.0.5/gn>
153153

154154
## Financial Contract Events
155155

0 commit comments

Comments
 (0)