Skip to content
Merged
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
12 changes: 0 additions & 12 deletions database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,18 +457,6 @@ Indexes:
- PRIMARY KEY: btree(`auction_id`, `solver`, `solution_uid`)
- settlement\_executions\_time\_range\_index: btree(`start_timestamp`, `end_timestamp`)

### solver\_competitions

Stores an overview of the solver competition. It contains orders in the auction along with prices for every relevant token as well as all valid solutions submitted by solvers together with their quality.

Column | Type | Nullable | Details
--------|--------|----------|--------
id | bigint | not null | id of the auction that the solver competition belongs to
json | jsonb | nullable | overview of the solver competition with unspecified format

Indexes:
- PRIMARY KEY: btree(`id`)

### trades

This table contains data of [`Trade`](https://github.com/cowprotocol/contracts/blob/main/src/contracts/GPv2Settlement.sol#L49-L58) events issued by the settlement contract after a successful settlement.
Expand Down
5 changes: 5 additions & 0 deletions database/sql/V115__drop_solver_competitions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Drop the solver_competitions table, which was kept only to provide frontend with solver-ids
-- since https://github.com/cowprotocol/cowswap/pull/7871 this is no longer the case
-- and since https://github.com/cowprotocol/services/pull/4657 this has been made effective
-- turning this table obsolete
DROP TABLE IF EXISTS solver_competitions;
Comment thread
jmg-duarte marked this conversation as resolved.
Loading