diff --git a/.github/workflows/cd-packages.yaml b/.github/workflows/cd-packages.yaml index b86f491a4d..b33d418805 100644 --- a/.github/workflows/cd-packages.yaml +++ b/.github/workflows/cd-packages.yaml @@ -22,6 +22,10 @@ jobs: - uses: actions/checkout@v5 with: token: ${{ secrets.GH_GITBOOK_TOKEN }} + - name: Setup git identity + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" - uses: actions/setup-node@v4 with: node-version-file: .nvmrc diff --git a/.github/workflows/cd-python-sdk.yaml b/.github/workflows/cd-python-sdk.yaml index 81db4c20ed..ae5e40f393 100644 --- a/.github/workflows/cd-python-sdk.yaml +++ b/.github/workflows/cd-python-sdk.yaml @@ -18,6 +18,10 @@ jobs: - uses: actions/checkout@v5 with: token: ${{ secrets.GH_GITBOOK_TOKEN }} + - name: Setup git identity + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" - uses: actions/setup-node@v4 with: node-version-file: .nvmrc @@ -57,4 +61,4 @@ jobs: exit 0 fi git tag -a "$TAG" -m "Python SDK $VERSION" - git push origin "$TAG" + git push origin --tags diff --git a/packages/apps/dashboard/server/src/modules/details/dto/transaction.dto.ts b/packages/apps/dashboard/server/src/modules/details/dto/transaction.dto.ts index 08baf89d9b..d9e8688177 100644 --- a/packages/apps/dashboard/server/src/modules/details/dto/transaction.dto.ts +++ b/packages/apps/dashboard/server/src/modules/details/dto/transaction.dto.ts @@ -1,15 +1,29 @@ -import { Expose, Transform } from 'class-transformer'; -import { IsNumber, IsOptional, IsString } from 'class-validator'; +import { Expose, Transform, Type } from 'class-transformer'; import { ApiProperty } from '@nestjs/swagger'; -export interface InternalTransaction { +export class InternalTransaction { + @ApiProperty() + @Expose() from: string; + @ApiProperty() + @Expose() to: string; + @ApiProperty() + @Transform(({ value }) => value.toString()) + @Expose() value: string; + @ApiProperty() + @Expose() method: string; - receiver?: string; - escrow?: string; - token?: string; + @ApiProperty() + @Expose() + receiver: string | null; + @ApiProperty() + @Expose() + escrow: string | null; + @ApiProperty() + @Expose() + token: string | null; } export class TransactionPaginationDto { @@ -17,36 +31,31 @@ export class TransactionPaginationDto { example: '0x020efc94ef6d9d7aa9a4886cc9e1659f4f2b63557133c29d51f387bcb0c4afd7', }) - @IsString() @Expose() - public txHash: string; + txHash: string; - @ApiProperty({ example: 'Transfer' }) - @IsString() + @ApiProperty({ example: 'bulkTransfer' }) @Expose() - public method: string; + method: string; @ApiProperty({ example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78' }) - @IsString() @Expose() - public from: string; + from: string; @ApiProperty({ example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78' }) - @IsString() @Expose() - public to: string; + to: string; - @ApiProperty({ example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78' }) - @IsOptional() - @IsString() + @ApiProperty({ + example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78', + }) @Expose() - public receiver?: string; + receiver: string | null; @ApiProperty({ example: 12345 }) @Transform(({ value }) => Number(value)) - @IsNumber() @Expose() - public block: number; + block: number; @ApiProperty({ example: '0.123' }) @Transform(({ value, obj }) => { @@ -54,14 +63,14 @@ export class TransactionPaginationDto { ? `-${value.toString()}` : value.toString(); }) - @IsString() @Expose() - public value: string; + value: string; @ApiProperty({ type: [Object], description: 'List of transfers associated with the transaction', }) + @Type(() => InternalTransaction) @Expose() - public internalTransactions: InternalTransaction[]; + internalTransactions: InternalTransaction[]; } diff --git a/packages/apps/dashboard/server/src/modules/stats/stats.service.ts b/packages/apps/dashboard/server/src/modules/stats/stats.service.ts index b878ca1375..ba54c890d8 100644 --- a/packages/apps/dashboard/server/src/modules/stats/stats.service.ts +++ b/packages/apps/dashboard/server/src/modules/stats/stats.service.ts @@ -324,7 +324,7 @@ export class StatsService implements OnModuleInit { dailyData[dailyCacheKey].totalTransactionAmount = ( BigInt(dailyData[dailyCacheKey].totalTransactionAmount) + - BigInt(record.totalTransactionAmount) + record.totalTransactionAmount ).toString(); dailyData[dailyCacheKey].totalTransactionCount += record.totalTransactionCount; @@ -346,7 +346,7 @@ export class StatsService implements OnModuleInit { monthlyData[month].totalTransactionAmount = ( BigInt(monthlyData[month].totalTransactionAmount) + - BigInt(record.totalTransactionAmount) + record.totalTransactionAmount ).toString(); monthlyData[month].totalTransactionCount += record.totalTransactionCount; diff --git a/packages/apps/human-app/frontend/serve.json b/packages/apps/human-app/frontend/serve.json index 09543122e9..0a1fecd634 100644 --- a/packages/apps/human-app/frontend/serve.json +++ b/packages/apps/human-app/frontend/serve.json @@ -1,7 +1,13 @@ { "public": "dist", - "symlinks": true, + "symlinks": false, "trailingSlash": false, + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ], "headers": [ { "source": "**/*.html", diff --git a/packages/apps/job-launcher/client/serve.json b/packages/apps/job-launcher/client/serve.json index 09543122e9..0a1fecd634 100644 --- a/packages/apps/job-launcher/client/serve.json +++ b/packages/apps/job-launcher/client/serve.json @@ -1,7 +1,13 @@ { "public": "dist", - "symlinks": true, + "symlinks": false, "trailingSlash": false, + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ], "headers": [ { "source": "**/*.html", diff --git a/packages/apps/staking/serve.json b/packages/apps/staking/serve.json index 09543122e9..0a1fecd634 100644 --- a/packages/apps/staking/serve.json +++ b/packages/apps/staking/serve.json @@ -1,7 +1,13 @@ { "public": "dist", - "symlinks": true, + "symlinks": false, "trailingSlash": false, + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ], "headers": [ { "source": "**/*.html", diff --git a/scripts/tag-published-packages.mjs b/scripts/tag-published-packages.mjs index cdb2546cf4..07ecaf94eb 100644 --- a/scripts/tag-published-packages.mjs +++ b/scripts/tag-published-packages.mjs @@ -15,7 +15,7 @@ function maybeCreateGitTagForPackage({ name, version }) { childProcess.execSync(`git rev-parse --verify ${tag}`, { stdio: "ignore" }); console.warn(`Git tag already exists, skipping: ${tag}`); } catch { - childProcess.execSync(`git tag ${tag}`); + childProcess.execSync(`git tag -a "${tag}" -m "Released JS package: @human-protocol/${name} - ${version}"`); console.log(`Created tag: ${tag}`); } }