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
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.
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.
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
dbt: dexcovers the DEX dbt subprojectready-for-reviewthis PR development is complete, please review
1 participant
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
Adds Ramsesxyz legacy and concentrated-liquidity swap coverage to
dex.tradeson 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 todex_info, and includes seed coverage for known legacy and CL swaps.What changed
ramsesxyz_legacy_hyperevm_base_trades.ramsesxyz_cl_hyperevm_base_trades.ramsesxyz_hyperevm.dex_hyperevm_base_trades.dex_info.Why this helps
Ramsesxyz is active on HypereVM, but its swaps were missing from Spellbook's standardized
dex.tradesabstraction. This gives analysts normalized trade rows for both Ramses pool types through the existing HypereVM DEX pipeline.Validation
uv sync --lockeddbt deps --profiles-dir .dbt parse --profiles-dir .dbt compileforramsesxyz_legacy_hyperevm_base_trades,ramsesxyz_cl_hyperevm_base_trades,dex_hyperevm_base_trades, andramsesxyz_hyperevm_base_trades_seeddbt ls --profiles-dir . --select ramsesxyz_legacy_hyperevm_base_trades ramsesxyz_cl_hyperevm_base_trades --resource-type testgit diff --check7d52d9171aed3c0a96f8eff200d6bfbad24c8c0dpassed tokens, solana, daily_spellbook, hourly_spellbook, and dex contextsNotes 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.