Skip to content

Add Ramsesxyz HypereVM dex trades#9751

Open
nyx-discochuck wants to merge 6 commits into
duneanalytics:mainfrom
nyx-discochuck:add-ramsesxyz-hyperevm-dex-trades
Open

Add Ramsesxyz HypereVM dex trades#9751
nyx-discochuck wants to merge 6 commits into
duneanalytics:mainfrom
nyx-discochuck:add-ramsesxyz-hyperevm-dex-trades

Conversation

@nyx-discochuck

@nyx-discochuck nyx-discochuck commented Jun 11, 2026

Copy link
Copy Markdown

Summary

Adds Ramsesxyz legacy and concentrated-liquidity swap coverage to dex.trades on HypereVM.

This PR introduces Ramsesxyz HypereVM base trade models for both legacy and CL pools, wires them into dex_hyperevm_base_trades, adds the project to dex_info, and includes seed coverage for known legacy and CL swaps.

What changed

  • Added ramsesxyz_legacy_hyperevm_base_trades.
  • Added ramsesxyz_cl_hyperevm_base_trades.
  • Added dex-local decoded source definitions for ramsesxyz_hyperevm.
  • Wired both Ramsesxyz models into dex_hyperevm_base_trades.
  • Added Ramsesxyz to dex_info.
  • Added seed coverage with one verified legacy swap and one verified CL swap.
  • Scoped the Ramsesxyz decoded sources to the dex subproject to avoid expanding unrelated Spellbook CI blast radius.

Why this helps

Ramsesxyz is active on HypereVM, but its swaps were missing from Spellbook's standardized dex.trades abstraction. This gives analysts normalized trade rows for both Ramses pool types through the existing HypereVM DEX pipeline.

Validation

  • uv sync --locked
  • dbt deps --profiles-dir .
  • dbt parse --profiles-dir .
  • Targeted dbt compile for ramsesxyz_legacy_hyperevm_base_trades, ramsesxyz_cl_hyperevm_base_trades, dex_hyperevm_base_trades, and ramsesxyz_hyperevm_base_trades_seed
  • dbt ls --profiles-dir . --select ramsesxyz_legacy_hyperevm_base_trades ramsesxyz_cl_hyperevm_base_trades --resource-type test
  • git diff --check
  • Verified modified selection is limited to the dex models expected for this PR
  • Live CI rerun on head 7d52d9171aed3c0a96f8eff200d6bfbad24c8c0d passed tokens, solana, daily_spellbook, hourly_spellbook, and dex contexts

Notes for reviewers

The source definitions were moved out of shared top-level sources and into the dex-local model path so unrelated dbt subprojects do not parse these new decoded Ramses HypereVM sources.

@cursor

cursor Bot commented Jun 11, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Additive dbt models and sources following existing HypereVM DEX patterns; no changes to auth, payments, or shared core logic beyond extending the union.

Overview
Adds Ramses (ramsesxyz) DEX swap coverage on HyperEVM by wiring decoded on-chain events into the existing HypereVM DEX trade pipeline.

New ramsesxyz_hyperevm sources expose legacy V2 pair swaps and concentrated-liquidity (V3-style) pool swaps. Two incremental base-trade models (ramsesxyz_legacy_hyperevm_base_trades and ramsesxyz_cl_hyperevm_base_trades) use the standard uniswap_compatible_v2_trades / uniswap_compatible_v3_trades macros, with deduplication on tx_hash + evt_index. Both are unioned into dex_hyperevm_base_trades. dex_info gains a ramsesxyz project row, and seed-backed tests cover one legacy and one CL trade row.

Reviewed by Cursor Bugbot for commit 4f8140b. Configure here.

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@github-actions github-actions Bot marked this pull request as draft June 11, 2026 13:59
@github-actions github-actions Bot added WIP work in progress dbt: dex covers the DEX dbt subproject labels Jun 11, 2026
@nyx-discochuck

Copy link
Copy Markdown
Author

recheck

@nyx-discochuck

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@nyx-discochuck

Copy link
Copy Markdown
Author

recheck

github-actions Bot added a commit that referenced this pull request Jun 12, 2026
@nyx-discochuck nyx-discochuck force-pushed the add-ramsesxyz-hyperevm-dex-trades branch from ea4cb16 to ffa5353 Compare June 12, 2026 12:59
@nyx-discochuck nyx-discochuck marked this pull request as ready for review June 12, 2026 13:47
@github-actions github-actions Bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dbt: dex covers the DEX dbt subproject ready-for-review this PR development is complete, please review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant