Commit 62644bb
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.51 parent 6326784 commit 62644bb
File tree
10 files changed
+3627
-312
lines changed- packages/managed-oracle-v2
- abis
- manifest/templates
- src
- mappings
- tests/managed-oracle-v2
10 files changed
+3627
-312
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments