catalyst-dex-integration
Add a DEX project to dex.trades for a chain (sources, base trades, chain unions, seed, dex_info)
Install
mkdir -p .claude/skills/catalyst-dex-integration && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1184" && unzip -o skill.zip -d .claude/skills/catalyst-dex-integration && rm skill.zipInstalls to .claude/skills/catalyst-dex-integration
About this skill
catalyst dex integration
overview
Adds DEX abstractions for requested decentralized exchanges to dex.trades.
When to use: Use when the user wants to add one or more DEXs (by project/namespace) to dex.trades for a given chain.
parameters
<issue_id>: linear issue id (e.g., CUR2-548)<chain>: chain name (e.g., monad, sonic)<project>: DEX project name (e.g., kuru, uniswap)<namespace>: contract namespace for source lookup (partial string ok, e.g., "kuru", "uni")
From the invocation or user message: 1st = issue_id, 2nd = chain, 3rd = project, 4th = namespace. Use these for every <placeholder> below. If given in free form, infer or ask once for missing values.
usage
/catalyst-dex-integration CUR2-548 monad kuru kuru
Dune MCP: server user-dune-mcp; tools query_sql, run_query_by_id. Use parameters as shown.
conventions
- Execution order: Numbered items = execute sequentially. Any step that says "run" or "execute" is blocking; complete it before proceeding.
- Code patterns: Use existing chain patterns as reference (e.g.
dbt_subprojects/dex/models/trades/kaia/,.../mezo/). Ordering: mimic existing; if unclear, append. Swap chain name in: file paths, model names, schema entries,blockchainvalues. - Contributors: New files: set git username only. Existing files: append git username.
prep vars
- Retrieve chain metadata: use Dune MCP query_sql with query:
select * from dune.blockchains where name = '<chain>'(substitute<chain>with the chain name). Extract:chain_id,name(display name),token_address(native token). - Retrieve first_block_time: use Dune MCP query_sql with query:
select min(time) from <chain>.blocks where number <> 0(substitute<chain>).
git workflow
- Verify main is up to date: fetch latest, pull if behind, exit if diverged.
- Create branch: name
<issue_id>-<chain>-dex-integration, create offmain, checkout, warn if exists. Don't commit/push anything.
additional prep
- Verify decoded DEX tables exist: use Dune MCP run_query_by_id with
query_id: 6318398,query_parameters: '{"chain":"<chain>","namespace":"<namespace>"}'(substitute<chain>and<namespace>). Retrieve from query results:namespace,nameandabi. - Find common events in
abifollowing patterns like: Swap, PairCreated, PoolCreated, etc. If not found, query<chain>.logs_decoded. - Identify DEX type: uniswap v2 fork, v3 fork, or custom.
steps
-
define DEX sources
- create/update
sources/_sector/dex/trades/<chain>/_sources.yml - append new sources replicating pattern from existing source blocks in that file (copy one block, replace chain/project/namespace)
- create/update
-
create platform base trades model
- create
dbt_subprojects/dex/models/trades/<chain>/platforms/<project>_<chain>_base_trades.sql - uniswap v2 forks: use
uniswap_compatible_v2_tradesmacro - uniswap v3 forks: use
uniswap_compatible_v3_tradesmacro - custom DEXs: check docs; use as reference
dbt_subprojects/dex/models/trades/<chain>/platforms/kuru_monad_base_trades.sqlor existing macros
- create
-
chain-level setup (new chain only)
- create
dbt_subprojects/dex/models/trades/<chain>/dex_<chain>_base_trades.sql - create
dbt_subprojects/dex/models/trades/<chain>/dex_<chain>_trades.sql - create
dbt_subprojects/dex/models/trades/<chain>/dex_<chain>_token_volumes_daily.sql - add
<chain>to chains list indbt_subprojects/dex/models/trades/dex_trades.sql - add
<chain>to chains list indbt_subprojects/dex/models/trades/dex_token_volumes_daily.sql
- create
-
create/update schema file
- create
dbt_subprojects/dex/models/trades/<chain>/_schema.yml(new chain) withdex_<chain>_trades,dex_<chain>_base_trades,dex_<chain>_token_volumes_daily - append platform model definition to existing schema
- create
-
create seed file
- append
<project>_<chain>_base_trades_seedtodbt_subprojects/dex/seeds/trades/_schema.yml - create empty
dbt_subprojects/dex/seeds/trades/<project>_<chain>_base_trades_seed.csv
- append
-
update dex_info.sql
- if not already present, append
<project>todbt_subprojects/dex/models/dex_info.sql
- if not already present, append
-
final checks
- From repo root: run
pipenv shell, thencd dbt_subprojects/dexanddbt compile(ordbt compile --select <project>_<chain>_base_trades). Fix any errors. - Populate seed csv: Replace
<COMPILED_BASE_TRADES_SQL>in the query below with the exact compiled SQL for the model<project>_<chain>_base_trades(fromdbt compileoutput). Use it as a subquery, not a table name. Run the full query via Dune MCP query_sql and paste the 2–3 rows into the seed CSV.
with base_trades as ( select blockchain, project, version, block_date, tx_hash, evt_index, token_bought_address, token_sold_address, block_number, token_bought_amount_raw, token_sold_amount_raw, row_number() over (partition by blockchain, project, version order by block_number desc) as rn from ( <COMPILED_BASE_TRADES_SQL> ) ) select blockchain, project, version, block_date, tx_hash, evt_index, token_bought_address, token_sold_address, block_number, token_bought_amount_raw, token_sold_amount_raw from base_trades where rn <= 3 - From repo root: run
reference examples
- custom DEX:
dbt_subprojects/dex/models/trades/<chain>/platforms/kuru_monad_base_trades.sql - uniswap v2 fork:
dbt_subprojects/dex/models/trades/<chain>/platforms/uniswap_v2_monad_base_trades.sql - uniswap v3 fork:
dbt_subprojects/dex/models/trades/<chain>/platforms/uniswap_v3_monad_base_trades.sql
notes
- for multi-version DEXs (v2 + v3), create separate models
- use version filter in seed test if sharing seed file
More by duneanalytics
View all skills by duneanalytics →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversSupercharge AI platforms with Azure MCP Server for seamless Azure API Management and resource automation. Public Preview
Seamlessly connect to Feishu Project management API for direct access to tasks, data, and resources using secure environ
Optimize your codebase for AI with Repomix—transform, compress, and secure repos for easier analysis with modern AI tool
Enhance your Firebase projects with AI-powered development tools from Firebase Inc. for smarter, faster app solutions.
Find official MCP servers for Google Maps. Explore resources to build, integrate, and extend apps with Google directions
Explore official Google BigQuery MCP servers. Find resources and examples to build context-aware apps in Google's ecosys
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.