-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FUN-877] Persist subscriptions fetched from contracts (#11573)
* feat: db schema to store data fetched from contracts * feat: build orm layer for subscriptions * feat: implement subscription cache layer * feat: load cached subscriptions concurrently * fix: lint issues * fix: protect NewORM from invalid parameters, NoopORM for gateway script * fix: address race condition on update subscription * chore: make db, cfg and lggr part of the handlerfactory * chore: removing allowlist migration from this pr * fix: update cache on new subscriptions, modify balance to be a text at the db layer * feat: store the router_contract_address * fix: set router contract address and subscription id as composite primary key * chore: make router contract address as part of orm properties * feat: update to db only in case of difference with current state * feat: filter by router_contract_address when GetSubscriptions * chore: have balance fields as bigint, add tests covering deleted subscriptions * fix: GetSubscriptions ASC * chore: improve redability
- Loading branch information
1 parent
e3fe671
commit 529d2cf
Showing
17 changed files
with
762 additions
and
44 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.