Skip to content
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

[DO NOT MERGE] - Calculate rewards points #75

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = class Data1728408180596 {
name = 'Data1728408180596'
module.exports = class Data1729604233998 {
name = 'Data1729604233998'

async up(db) {
await db.query(
Expand Down Expand Up @@ -365,6 +365,9 @@ module.exports = class Data1728408180596 {
await db.query(
`CREATE TABLE "vault" ("id" character varying NOT NULL, "account_id" text NOT NULL, "wrapped" text NOT NULL, "collateral" text NOT NULL, "vault_stellar_public_key" text NOT NULL, CONSTRAINT "PK_dd0898234c77f9d97585171ac59" PRIMARY KEY ("id"))`
)
await db.query(
`CREATE TABLE "points" ("id" character varying NOT NULL, "points" text NOT NULL, CONSTRAINT "PK_57a558e5e1e17668324b165dadf" PRIMARY KEY ("id"))`
)
await db.query(
`CREATE TABLE "issue_request" ("id" character varying NOT NULL, "timestamp" TIMESTAMP WITH TIME ZONE NOT NULL, "opentime" numeric NOT NULL, "period" numeric NOT NULL, "requester" text NOT NULL, "amount" numeric NOT NULL, "asset" text NOT NULL, "fee" numeric NOT NULL, "griefing_collateral" numeric NOT NULL, "stellar_address" text NOT NULL, "status" character varying(9) NOT NULL, "vault_id" character varying, CONSTRAINT "PK_498cd8089f9302db334fd7fe7f6" PRIMARY KEY ("id"))`
)
Expand Down Expand Up @@ -780,6 +783,7 @@ module.exports = class Data1728408180596 {
await db.query(`DROP TABLE "nabla_swap_liquidity_withdrawal"`)
await db.query(`DROP INDEX "public"."IDX_ec313e0ceb8429cb76aa63ed74"`)
await db.query(`DROP TABLE "vault"`)
await db.query(`DROP TABLE "points"`)
await db.query(`DROP TABLE "issue_request"`)
await db.query(`DROP INDEX "public"."IDX_62755a570447cc6fb07d57ec30"`)
await db.query(`DROP TABLE "redeem_request"`)
Expand Down
Loading