forked from Giveth/impact-graph
-
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.
Merge pull request #129 from GeneralMagicio/staging
staging to main
- Loading branch information
Showing
60 changed files
with
2,001 additions
and
1,231 deletions.
There are no files selected for viewing
13 changes: 8 additions & 5 deletions
13
.github/workflows/staging-inverter-sync.yml → ...rkflows/staging-funding-pot-execution.yml
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
name: Run Inverter Sync Script | ||
name: run-funding-pot-service | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 1' # Runs at midnight every Monday | ||
# schedule: | ||
# - cron: '0 0 * * 1' # Runs at midnight every Monday | ||
workflow_dispatch: # This allows manual triggering | ||
|
||
jobs: | ||
run-script: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH into Server and Run Inverter Sync Script | ||
- name: SSH into Server and Run Funding Pot Service | ||
uses: appleboy/[email protected] | ||
env: | ||
DELEGATE_PK_FOR_FUNDING_POT: ${{ secrets.DELEGATE_PK_FOR_FUNDING_POT }} | ||
ANKR_API_KEY_FOR_FUNDING_POT: ${{ secrets.ANKR_API_KEY_FOR_FUNDING_POT }} | ||
with: | ||
host: ${{ secrets.STAGING_HOST }} | ||
username: ${{ secrets.STAGING_USERNAME }} | ||
key: ${{ secrets.STAGING_PRIVATE_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: | | ||
cd QAcc-BE | ||
docker compose -f docker-compose-staging.yml exec qacc-be npm run sync:inverter:production | ||
docker compose -f docker-compose-staging.yml exec qacc-be npm run execute:inverter:production | ||
docker compose -f docker-compose-staging.yml logs qacc-be |
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
Empty file.
Empty file.
25 changes: 25 additions & 0 deletions
25
migration/1729133444025-addIsBatchMintingExecutedFieldToRoundsTables.ts
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,25 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class AddIsBatchMintingExecutedFieldToRoundsTables1729133444025 | ||
implements MigrationInterface | ||
{ | ||
name = 'AddIsBatchMintingExecutedFieldToRoundsTables1729133444025'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "qf_round" ADD "isBatchMintingExecuted" boolean NOT NULL DEFAULT false`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "early_access_round" ADD "isBatchMintingExecuted" boolean NOT NULL DEFAULT false`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "early_access_round" DROP COLUMN "isBatchMintingExecuted"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "qf_round" DROP COLUMN "isBatchMintingExecuted"`, | ||
); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
migration/1730076158010-addBatchMintingTransactionNumbersToProject.ts
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,19 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class AddBatchMintingTransactionNumbersToProject1730076158010 | ||
implements MigrationInterface | ||
{ | ||
name = 'AddBatchMintingTransactionNumbersToProject1730076158010'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "project" ADD "numberOfBatchMintingTransactions" integer`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "project" DROP COLUMN "numberOfBatchMintingTransactions"`, | ||
); | ||
} | ||
} |
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,15 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class AddAnkrState1730217125698 implements MigrationInterface { | ||
name = 'AddAnkrState1730217125698'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`CREATE TABLE "ankr_state" ("id" boolean NOT NULL, "timestamp" integer NOT NULL, CONSTRAINT "CHK_69b5646f9179ec91582413e97b" CHECK ("id"), CONSTRAINT "PK_3599fb1e1f37fa9a8da5b4113b7" PRIMARY KEY ("id"))`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`DROP TABLE "ankr_state"`); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
migration/1730264518648-changeBatchNumberTXsFieldInPorjectTable.ts
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,31 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class ChangeBatchNumberTXsFieldInPorjectTable1730264518648 | ||
implements MigrationInterface | ||
{ | ||
name = 'ChangeBatchNumberTXsFieldInPorjectTable1730264518648'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "project" RENAME COLUMN "numberOfBatchMintingTransactions" TO "batchNumbersWithSafeTransactions"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "project" DROP COLUMN "batchNumbersWithSafeTransactions"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "project" ADD "batchNumbersWithSafeTransactions" integer array NOT NULL DEFAULT '{}'`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "project" DROP COLUMN "batchNumbersWithSafeTransactions"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "project" ADD "batchNumbersWithSafeTransactions" integer`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "project" RENAME COLUMN "batchNumbersWithSafeTransactions" TO "numberOfBatchMintingTransactions"`, | ||
); | ||
} | ||
} |
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,17 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class AddDonationTransactionUniqIdx1730476526611 | ||
implements MigrationInterface | ||
{ | ||
name = 'AddDonationTransactionUniqIdx1730476526611'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`CREATE UNIQUE INDEX "unique_transaction_id" ON "donation" ("transactionId") `, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`DROP INDEX "public"."unique_transaction_id"`); | ||
} | ||
} |
Oops, something went wrong.