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

build(deps): bump class-validator from 0.13.2 to 0.14.0 #203

Open
wants to merge 17 commits into
base: stage
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ ENABLE_MERKLE_DISTRIBUTOR_EVENTS_PROCESSING=false

DISTRIBUTOR_PROOFS_CACHE_SECONDS_DURATION=0
REFERRALS_SUMMARY_CACHE_SECONDS_DURATION=0
AMPLITUDE_API_KEY=
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ lerna-debug.log*
!.vscode/launch.json
!.vscode/extensions.json

uploads
uploads

# Amplitude
ampli.json
15 changes: 15 additions & 0 deletions migrations/1670925750747-Deposit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class Deposit1670925750747 implements MigrationInterface {
name = "Deposit1670925750747";

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "deposit" ADD "initialRelayerFeePct" numeric`);
await queryRunner.query(`ALTER TABLE "deposit" ADD "speedUps" jsonb NOT NULL DEFAULT '[]'`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "deposit" DROP COLUMN "speedUps"`);
await queryRunner.query(`ALTER TABLE "deposit" DROP COLUMN "initialRelayerFeePct"`);
}
}
20 changes: 20 additions & 0 deletions migrations/1670942459408-Deposit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class Deposit1670942459408 implements MigrationInterface {
name = "Deposit1670942459408";

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`UPDATE "deposit" SET "suggestedRelayerFeePct" = '100000000000000' WHERE "suggestedRelayerFeePct" IS NULL`,
);
await queryRunner.query(`ALTER TABLE "deposit" ALTER COLUMN "suggestedRelayerFeePct" SET NOT NULL`);
await queryRunner.query(
`ALTER TABLE "deposit" ALTER COLUMN "suggestedRelayerFeePct" SET DEFAULT '100000000000000'`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "deposit" ALTER COLUMN "suggestedRelayerFeePct" DROP DEFAULT`);
await queryRunner.query(`ALTER TABLE "deposit" ALTER COLUMN "suggestedRelayerFeePct" DROP NOT NULL`);
}
}
16 changes: 16 additions & 0 deletions migrations/1671299400000-Deposit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class Deposit1671299400000 implements MigrationInterface {
name = "Deposit1671299400000";

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
create index "IX_deposit_srAddress_depositDate_pId_tId_status"
on deposit ("stickyReferralAddress", "depositDate", "priceId", "tokenId", status)
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`drop index if exists "IX_deposit_srAddress_depositDate_pId_tId_status"`);
}
}
15 changes: 15 additions & 0 deletions migrations/1672153290341-Deposit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class Deposit1672153290341 implements MigrationInterface {
name = "Deposit1672153290341";

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "deposit" ADD "recipientAddr" character varying`);
await queryRunner.query(`UPDATE "deposit" SET "recipientAddr" = "depositorAddr" WHERE "recipientAddr" IS NULL`);
await queryRunner.query(`ALTER TABLE "deposit" ALTER COLUMN "recipientAddr" SET NOT NULL`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "deposit" DROP COLUMN "recipientAddr"`);
}
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
"test:e2e:docker:prune": "docker-compose -f docker-compose.e2e.yml down -v",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"db:migration:generate": "yarn typeorm -- migration:generate -d ormconfig.ts",
"db:migration:run": "yarn typeorm -- migration:run -d ormconfig.ts"
"db:migration:run": "yarn typeorm -- migration:run -d ormconfig.ts",
"ampli:pull": "ampli pull --path=./src/modules/ampli --omit-api-keys scraper && prettier -w ./src/modules/ampli/*.ts"
},
"dependencies": {
"@across-protocol/contracts-v2": "^1.0.7",
"@amplitude/analytics-node": "^1.0.1",
"@nestjs/axios": "^0.0.8",
"@nestjs/bull": "^0.5.5",
"@nestjs/cli": "^8.2.4",
Expand All @@ -52,7 +54,7 @@
"bull": "^4.8.4",
"cache-manager": "^4.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"class-validator": "^0.14.0",
"dotenv": "^16.0.0",
"ethers": "^5.6.8",
"helmet": "^5.0.2",
Expand All @@ -75,6 +77,7 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@amplitude/ampli": "^1.28.0",
"@types/async": "^3.2.13",
"@types/bignumber.js": "^5.0.0",
"@types/bluebird": "^3.5.37",
Expand Down
Loading