-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storing call_data in quotes and order_quotes tables (#3124)
# Description Added two new non-null columns: `metadata` (json) and `verified` (boolean) into tables `quotes` and `order_quotes`. Existing rows in database will be updated with `{}` and `false` values. `metadata` column is dedicated to store any additional data for the quote in json format. Currently it is used to store interactions received for `/quote` response from the solvers, but it is prepared to store other data in future through versioned `QuoteMetadata` struct as required. Database module only checks json validity, upper layers (orderbook, autopilot) uses `QuoteMetadata` struct for storing specific data in the database. Metadata can be used for verification/auditing of quotes/orders. Added database migration scripts (update and revert) and updated database readme file. ## How to test Existing tests, also added dedicated e2e tests and unit tests for this new functionality .
- Loading branch information
Showing
27 changed files
with
653 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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 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 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 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 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.