-
Notifications
You must be signed in to change notification settings - Fork 183
link quotes to auctions #4712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
link quotes to auctions #4712
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,6 +236,7 @@ Quotes that an order was created with. These quotes get stored persistently and | |
| verified | boolean | not null | information if quote was verified | ||
| metadata | json | not null | additional data associated with the quote in json format | ||
| creation\_timestamp | timestamptz | not null | when the entry was created (DEFAULT NOW() for new and 1970-01-01 for historical data) | ||
| auction\_id | bigint | nullable | the auction competition that was the basis for this quote | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do I understand correctly that this column will be populated only for the fast path quotes? If so, it is hard to understand from the naming and description. The same applies to the rust code.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes - only for fast path orders. I didn't want to codify this by calling it something like "fast_path_auction" or so in case we want to more generally migrate towards this system of storing quotes.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, but maybe a comment/description should explain that? |
||
|
|
||
| Indexes: | ||
| - PRIMARY KEY: btree(`order_uid`) | ||
|
|
@@ -351,6 +352,7 @@ Stores quotes in order to determine whether it makes sense to allow a user to cr | |
| solver | bytea | not null | public address of the solver that provided this quote | ||
| verified | boolean | not null | information if quote was verified | ||
| metadata | json | not null | additional data associated with the quote in json format | ||
| auction\_id | bigint | nullable | the auction competition that was the basis for this quote | ||
|
|
||
| Indexes: | ||
| - PRIMARY KEY: btree(`id`) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| -- Links a stored quote to its solver competition ledger row in | ||
| -- `competition_auctions`. Nullable because only fast path quotes | ||
| -- need this link. | ||
| ALTER TABLE quotes ADD COLUMN auction_id bigint; | ||
|
|
||
| -- Copy of quotes.auction_id preserved when the quote is attached | ||
| -- to an order. | ||
| ALTER TABLE order_quotes ADD COLUMN auction_id bigint; | ||
|
MartinquaXD marked this conversation as resolved.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Uh oh!
There was an error while loading. Please reload this page.