forked from 0xPolygon/cdk
-
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.
feat: remove DS from aggregator (0xPolygon#138)
* feat: remove DS from aggregator * feat: unit tests * fix: rust * fix: seq-sender tests * fix: local_config script * fix: remove unused file * fix: default config * fix: test config * fix: nil l1inforoot * feat: improve coverage * fix: comments * feat: remove DS lib
- Loading branch information
1 parent
04b9854
commit 33a6d4c
Showing
31 changed files
with
933 additions
and
1,573 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- +migrate Down | ||
CREATE TABLE IF NOT EXISTS aggregator.batch ( | ||
batch_num BIGINT NOT NULL, | ||
batch jsonb NOT NULL, | ||
datastream varchar NOT NULL, | ||
PRIMARY KEY (batch_num) | ||
); | ||
|
||
ALTER TABLE aggregator.proof | ||
ADD CONSTRAINT IF NOT EXISTS proof_batch_num_fkey FOREIGN KEY (batch_num) REFERENCES aggregator.batch (batch_num) ON DELETE CASCADE; | ||
|
||
ALTER TABLE aggregator.sequence | ||
ADD CONSTRAINT IF NOT EXISTS sequence_from_batch_num_fkey FOREIGN KEY (from_batch_num) REFERENCES aggregator.batch (batch_num) ON DELETE CASCADE; | ||
|
||
|
||
-- +migrate Up | ||
ALTER TABLE aggregator.proof | ||
DROP CONSTRAINT IF EXISTS proof_batch_num_fkey; | ||
|
||
ALTER TABLE aggregator.sequence | ||
DROP CONSTRAINT IF EXISTS sequence_from_batch_num_fkey; | ||
|
||
DROP TABLE IF EXISTS aggregator.batch; |
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.