-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description Part of #2282 & #2275 Exchanges `tx_from/tx_nonce` for `auction_id` which can be directly encoded from the settlement transaction since we shipped colocation. This allows us to remove an entire database table and a bunch of other complicated code. I'm not yet removing the old columns in case something goes bad with this change. # Changes <!-- List of detailed changes (how the change is accomplished) --> - [x] Removed `auction_transaction` table. - [x] Redesigned `settlements` table to contain auction id ## How to test 1. db tests and e2e tests cover the new functionality. 2. Locally I've tested the db migration file like this: - First comment out the V_58 migration file and apply old schema. - Insert 10 settlements, of which first 5 have `auction_transaction` record (except one settlement (block_number 3), to simulate the existence of settlement from other environment staging/prod) - Then, manually apply migration script V_58 - Observed the `settlements` table,`auction_id` were populated as expected. --------- Co-authored-by: Felix Leupold <[email protected]>
- Loading branch information
Showing
12 changed files
with
257 additions
and
446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.