-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start to track events from Leo, and test (WIP)
- Loading branch information
Showing
23 changed files
with
824 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
-- migrate:up | ||
|
||
CREATE TABLE events_leo_campaignbalanceupdated ( | ||
id SERIAL PRIMARY KEY, | ||
created_by TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, | ||
block_hash HASH NOT NULL, | ||
transaction_hash HASH NOT NULL, | ||
block_number INTEGER NOT NULL, | ||
emitter_addr ADDRESS NOT NULL, | ||
|
||
identifier VARCHAR NOT NULL, | ||
new_maximum HUGEINT NOT NULL | ||
); | ||
|
||
CREATE TABLE events_leo_campaigncreated ( | ||
id SERIAL PRIMARY KEY, | ||
created_by TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, | ||
block_hash HASH NOT NULL, | ||
transaction_hash HASH NOT NULL, | ||
block_number INTEGER NOT NULL, | ||
emitter_addr ADDRESS NOT NULL, | ||
|
||
identifier VARCHAR NOT NULL, | ||
pool ADDRESS NOT NULL, | ||
token ADDRESS NOT NULL, | ||
tick_lower INTEGER NOT NULL, | ||
tick_upper INTEGER NOT NULL, | ||
owner ADDRESS NOT NULL, | ||
starting TIMESTAMP WITHOUT TIME ZONE, | ||
ending TIMESTAMP WITHOUT TIME ZONE | ||
); | ||
|
||
CREATE UNIQUE INDEX ON events_leo_campaigncreated (identifier, pool); | ||
|
||
-- migrate:down |
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.