Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,22 +523,6 @@ Indexes:

The `pool-indexer` service uses its own per-network database, not these shared DBs. Its tables (`pool_indexer_checkpoints`, `uniswap_v3_pools`, `uniswap_v3_pool_states`, `uniswap_v3_ticks`) and migrations live in [`sql-pool-indexer/`](sql-pool-indexer/).

### cow\_amms

Stores information about indexed CoW AMMs that have been discovered through blockchain events. Each row represents a CoW AMM pool with its associated factory contract and tradeable tokens.

Column | Type | Nullable | Details
--------------------|----------|----------|--------
address | bytea | not null | Address of the CoW AMM pool contract
factory\_address | bytea | not null | Address of the factory contract associated with this AMM
tradeable\_tokens | bytea[] | not null | Token addresses that can be traded through this AMM
block\_number | bigint | not null | Block number in which the AMM was deployed/finalized
tx\_hash | bytea | not null | Transaction hash in which the AMM was deployed/finalized

Indexes:
- PRIMARY KEY: btree (`address`)
- cow\_amms\_factory\_block: btree (`factory_address`, `block_number`)

### Enums

#### executiontime
Expand Down
1 change: 1 addition & 0 deletions database/sql/V115__drop_cow_amms.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE IF EXISTS cow_amms;
Loading