-
Notifications
You must be signed in to change notification settings - Fork 183
Create columns to track settlement gas info #4697
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
Changes from 1 commit
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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| -- Store the actual on-chain gas cost of each settlement transaction. | ||
| -- | ||
| -- These values are read from the transaction receipt by the autopilot's | ||
| -- settlement observer), letting the orderbook attribute a real gas cost | ||
| -- to individual trades and orders. | ||
| -- | ||
| -- Nullable: only populated for settlements observed after this migration is | ||
| -- deployed (no historical backfill). | ||
| ALTER TABLE settlements | ||
| ADD COLUMN gas_used numeric(78, 0), | ||
| ADD COLUMN effective_gas_price numeric(78, 0); | ||
|
Comment on lines
+9
to
+11
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. The bot reminder asks to update the DB README when adding columns. The Type/naming look good: |
||
Uh oh!
There was an error while loading. Please reload this page.