test(oracle): add deterministic Polymarket quorum E2E - #806
Merged
Conversation
Pin gravity-reth to the merged Polymarket settlement transport and add a localhost Polygon JSON-RPC fixture with an independently controlled finalized head. Exercise dynamic task registration across four validators, verify empty-scan cursor persistence before finality, then assert JWK quorum, NativeOracle delivery, resolver provenance, terminal relayer checkpoints, and identical replica state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tracks Galxe/gravity-audit#1038 and preserves the split requested by Galxe/gravity-audit#1033.
Dependency baseline
a64f8adc274bf2681df796766ef9a5b195fee44bf447687bf6f6f9efabd92626b588aeda94148f880c038e180cc26ae400f3fb2e6199e6f079f68fbcfc7cb8f4b665e524e132f0921d5b99dc7cde6929Both the direct
grethdependency and thereth-primitives-traitspatch point at the same merged reth revision. The lockfile changes are limited to replacing the previous gravity-reth source revision.Workflow covered
PolymarketSettlementResolver, binds source type 6, registers one CTF mirror, and activates the task.latest, whilefinalizedremains one block behind.NativeOracle.finalized; validators derive byte-identical observations.1.1and canonical Polygon provenance.The fixture uses the canonical Polygon CTF
ConditionResolutionABI and validates the derived condition ID, topic layout, dynamic payout encoding, filter behavior, and finalized/latest separation.Deliberate exclusions
The oracle data-source runtime path is localhost-only. A fresh build may still download repository dependencies.
Validation
make MODE=quick-release gravity_node gravity_cli3 passed1 passedin46.57sgit diff --check, and credential/user-path scans passedRun
make MODE=quick-release gravity_node gravity_cli PATH="$HOME/.foundry/bin:$PWD/target/quick-release:$PATH" \ ./gravity_e2e/run_test.sh \ polymarket_settlement_multivalidator \ --force-init \ --log-cli-level=INFO