You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update subgraph configs for CorrectLastEpochMessage support
- Add CorrectLastEpochMessage permission to local, mainnet, and sepolia configs
- Remove deprecated goerli and arbitrum-goerli config files
- Update documentation to reflect production-ready status
Create CLI command to send CorrectLastEpoch messages:
134
134
135
135
- [✅] Add subcommand to oracle binary with correct structure
136
136
- [✅] CLI argument parsing with dry-run and confirmation prompts
137
-
- [⏳] Core logic implementation:
138
-
- ⏳ Subgraph querying for latest epoch data
139
-
- ⏳ RPC client initialization for all networks (JSON-RPC + Blockmeta)
140
-
- ⏳ Block hash fetching from multiple provider types
141
-
- ⏳ Merkle root computation using epoch-encoding crate
142
-
- ⏳ Message creation and submission
143
-
144
-
**Key Discovery**: CLI will support both JSON-RPC (EVM) and Blockmeta (non-EVM) providers seamlessly, using the same unified approach as the main oracle.
137
+
- [✅] Core logic implementation:
138
+
- ✅ Subgraph querying for latest epoch data
139
+
- ✅ RPC client initialization for all networks (JSON-RPC + Blockmeta)
140
+
- ✅ Block hash fetching from multiple provider types
141
+
- ✅ Merkle root computation using epoch-encoding crate
142
+
- ✅ Message creation and submission
143
+
- [✅] Enhanced visibility features:
144
+
- ✅ Pretty-printed JSON message display
145
+
- ✅ Encoded payload with size and hex
146
+
- ✅ Transaction sender/recipient addresses
147
+
- [✅] Code organization improvements:
148
+
- ✅ Refactored commands to separate modules
149
+
- ✅ Shared helpers in commands/mod.rs
150
+
- ✅ Clean main.rs focused on CLI dispatch
151
+
152
+
**Key Discovery**: CLI supports both JSON-RPC (EVM) and Blockmeta (non-EVM) providers seamlessly, using the same unified approach as the main oracle.
**Next Steps:** Implement the core logic for subgraph querying, RPC integration, and merkle root computation.
401
+
## 🎉 Production Ready
402
+
403
+
The CorrectLastEpoch implementation is now complete and ready for production use. All features have been implemented, tested, and the code has been refactored for maintainability.
404
+
405
+
### Example Output
406
+
407
+
When running the command, users will see:
408
+
409
+
```
410
+
📋 Correction Summary:
411
+
Epoch: 1234
412
+
Network: eip155:42161
413
+
New block number: 248691234
414
+
New merkle root: 0xf7c8c1f6d8a9e2b5c4a7d0e3f6b9c1d8e5a2f7b4c8d1e6a9f2c5b8d3e6f9a1b4
0 commit comments