-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[db] add timestamp to runtime events table
[openapi] add timestamp and evm_log_details to /runtime/events [analyzer] store timestamp of events [api] return token info in evm_log_details [api] only return token details for Transfer events nit api typo; add storage migration rename migration nit fix bug that left out core.gas_used runtime events update e2e tests nit: handle evm token types address comments nit: make unknown token_type null for events rename evm_event_details->evm_token
- Loading branch information
1 parent
7530747
commit b661cdc
Showing
8 changed files
with
195 additions
and
19 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
BEGIN; | ||
|
||
ALTER TABLE chain.runtime_events | ||
ADD COLUMN TIMESTAMP timestamp WITH time zone; | ||
|
||
UPDATE chain.runtime_events AS evs | ||
SET timestamp = blocks.timestamp | ||
FROM chain.runtime_blocks AS blocks | ||
WHERE evs.runtime = blocks.runtime | ||
AND evs.round = blocks.round; | ||
|
||
ALTER TABLE chain.runtime_events | ||
ALTER COLUMN timestamp | ||
SET NOT NULL; | ||
|
||
COMMIT; |
Oops, something went wrong.