Skip to content

[WIP] Add new crate db-evm-dex with Clickhouse and Postgres#121

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/create-new-crate-db-evm-dex
Draft

[WIP] Add new crate db-evm-dex with Clickhouse and Postgres#121
Copilot wants to merge 1 commit intomainfrom
copilot/create-new-crate-db-evm-dex

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

  • Create db-evm-dex engine-agnostic crate (rename/restructure from clickhouse-evm-dex)
    • Create db-evm-dex/Cargo.toml
    • Create db-evm-dex/src/ with all Rust source files (lib.rs, logs.rs, store.rs, transactions.rs, and all DEX modules)
    • Create db-evm-dex/substreams.yaml (engine-agnostic, no sink config)
    • Create db-evm-dex/Makefile
  • Create db-evm-dex-clickhouse crate (Clickhouse-specific sink config + schemas)
    • Create db-evm-dex-clickhouse/substreams.yaml (imports db-evm-dex, clickhouse sink)
    • Create db-evm-dex-clickhouse/Makefile
    • Copy schema files from clickhouse-evm-dex
  • Create db-evm-dex-postgres crate (Postgres-specific sink config + schemas)
    • Create db-evm-dex-postgres/substreams.yaml (imports db-evm-dex, postgres sink)
    • Create db-evm-dex-postgres/Makefile
    • Create db-evm-dex-postgres/schema.sql (Postgres DDL)
    • Create db-evm-dex-postgres/docker-compose.yml
    • Create db-evm-dex-postgres/README.md
    • Create db-evm-dex-postgres/.gitignore
  • Update workspace Cargo.toml to include new db-evm-dex member
  • Verify build compiles
Original prompt

This section details on the original issue you should resolve

<issue_title>Create new crate "db-evm-dex-*"</issue_title>
<issue_description>Similar structure to db-evm-transfers

  • add Clickhouse
  • add Postgres</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create new crate "db-evm-dex-*"

2 participants