[codex] Add relayer-backed oracle sources and Hype price feed#368
Draft
ByteYue wants to merge 8 commits into
Draft
[codex] Add relayer-backed oracle sources and Hype price feed#368ByteYue wants to merge 8 commits into
ByteYue wants to merge 8 commits into
Conversation
Contributor
|
Your PR title doesn't follow the Conventional Commit guidelines. Example of valid titles:
Usage:
Breaking Changes Breaking changes are noted by using an exclamation mark. For example:
Help For more information, follow the guidelines here: https://www.conventionalcommits.org/en/v1.0.0/ |
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
This PR extends the relayer-backed oracle PoC for Gravity:
xyz:NVDAandxyz:GOOGL.Hype price feed design
The on-chain URI declares the public task shape, for example provider, coin, dex, round, decimals, weights, and stale bounds. The validator-local relayer config supplies the RPC endpoint, so the chain does not store secret-bearing URLs.
The new adapter supports:
provider=hypemode backed by a validator-local info endpoint;dex, including forms likeNVDAandxyz:NVDA;MultiSourceOracleResolver.This is intentionally a price observation rail. If a Gravity PerpDex needs BBO, local mid, TWAP, or risk-specific transforms, that policy should live in the PerpDex/order-book contract or a separately versioned resolver policy, not inside the validator fetch adapter.
Polygon / Polymarket path
The Polymarket settlement source can follow finalized Polygon logs through a configured RPC endpoint such as
POLYGON_QUICKNONE_HTTP_URL, then canonicalize the settlement payload for the JWK bytes path. This is meant for direct-fit finalized CTF conditions first, not arbitrary Polymarket UI replication.Validation
Relayer price-feed tests were run:
cargo test -p reth-pipe-exec-layer-relayer price_feed_source -- --nocaptureResult: 10 tests passed, including Hype URL derivation and
xyz:NVDA/xyz:GOOGLresponse parsing.Previously run broader relayer and exec-layer checks:
A live Hype smoke was also run with validator-local env configuration. It did not print or commit any RPC URL, and confirmed
xyz:NVDAandxyz:GOOGLreturnoraclePx,markPx, andmidPxfrom themetaAndAssetCtxsinfo endpoint. Those values are time-sensitive and are not used as deterministic test fixtures.The SDK PR runs the
hype_price_feedE2E suite against this reth commit withprovider=hypeURIs and a local deterministic/infomock. It observed:Follow-up work