Skip to content

build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #172

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

Open
wants to merge 10 commits into
base: stage
Choose a base branch
from
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"`);
}
}
5 changes: 4 additions & 1 deletion 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 Down Expand Up @@ -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