@@ -38,7 +38,7 @@ fallback sequence when `query_id` is required: create query with `createDuneQuer
3838
3939## git workflow
40401 . ** verify ` main ` is up to date:** fetch latest, pull if behind, exit if diverged.
41- 2 . ** create branch:** name ` <issue_id>-<chain>-dex-integration ` , create off ` main ` , checkout, warn if exists. don't commit/push anything.
41+ 2 . ** create branch:** name ` <issue_id>-<chain>-dex-integration ` , create off ` main ` , checkout, warn if exists.
4242
4343## additional prep
4444- verify decoded dex tables exist: use dune mcp ** executeQueryById** with ` query_id: 6318398 ` , ` query_parameters: [{"key":"chain","value":"<chain>","type":"text"},{"key":"namespace","value":"<namespace>","type":"text"}] ` (substitute ` <chain> ` and ` <namespace> ` ). retrieve from query results: ` namespace ` , ` name ` , and ` abi ` .
@@ -93,6 +93,29 @@ fallback sequence when `query_id` is required: create query with `createDuneQuer
9393 from base_trades where rn <= 3
9494 ```
9595
96+ 8 . ** commit, push, and open PR ready for review**
97+ - stage all integration files (sources, models, schema, seeds, ` dex_trades ` / ` dex_token_volumes_daily ` / ` dex_info ` updates as applicable).
98+ - commit with a Conventional Commit message, type prefix only (no scope), e.g. ` feat: add <project> to dex.trades on <chain> ` .
99+ - push the branch: ` git push -u origin HEAD ` .
100+ - create a PR ready for review with ` gh pr create ` (do ** not** pass ` --draft ` ):
101+ - title: ` feat: add <project> to dex.trades on <chain> ` (adjust for multi-project / new-chain wording).
102+ - body via HEREDOC, using the Spellbook PR template shape:
103+ ```
104+ ## Thank you for contributing to Spellbook 🪄
105+
106+ ### Description:
107+ - Integrate **<project>** into `dex.trades` on **<chain>** (<issue_id>).
108+ - DEX type: <uniswap v2 fork | uniswap v3 fork | custom>.
109+ - Sources: `<namespace>_<chain>` event tables used by the platform model.
110+ - Includes platform base trades, chain-level models (if new chain), schema tests, and seed rows.
111+
112+ ### Checklist
113+ - [x] `dbt compile` succeeds for `<project>_<chain>_base_trades`
114+ - [x] seed CSV populated with 2–3 recent trades
115+ - [ ] CI green
116+ ```
117+ - return the PR URL when done. final expected state is **ready for review** (not draft).
118+
96119## reference examples
97120- custom DEX: `dbt_subprojects/dex/models/trades/<chain>/platforms/kuru_monad_base_trades.sql`
98121- uniswap v2 fork: `dbt_subprojects/dex/models/trades/<chain>/platforms/uniswap_v2_monad_base_trades.sql`
0 commit comments