Skip to content

Commit c06d705

Browse files
authored
Release 2025-11-03 [2] (#3651)
2 parents 2b258c3 + da657f3 commit c06d705

8 files changed

Lines changed: 66 additions & 31 deletions

File tree

.github/workflows/cd-packages.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
- uses: actions/checkout@v5
2323
with:
2424
token: ${{ secrets.GH_GITBOOK_TOKEN }}
25+
- name: Setup git identity
26+
run: |
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2529
- uses: actions/setup-node@v4
2630
with:
2731
node-version-file: .nvmrc

.github/workflows/cd-python-sdk.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- uses: actions/checkout@v5
1919
with:
2020
token: ${{ secrets.GH_GITBOOK_TOKEN }}
21+
- name: Setup git identity
22+
run: |
23+
git config --global user.name "github-actions[bot]"
24+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2125
- uses: actions/setup-node@v4
2226
with:
2327
node-version-file: .nvmrc
@@ -57,4 +61,4 @@ jobs:
5761
exit 0
5862
fi
5963
git tag -a "$TAG" -m "Python SDK $VERSION"
60-
git push origin "$TAG"
64+
git push origin --tags
Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,76 @@
1-
import { Expose, Transform } from 'class-transformer';
2-
import { IsNumber, IsOptional, IsString } from 'class-validator';
1+
import { Expose, Transform, Type } from 'class-transformer';
32
import { ApiProperty } from '@nestjs/swagger';
43

5-
export interface InternalTransaction {
4+
export class InternalTransaction {
5+
@ApiProperty()
6+
@Expose()
67
from: string;
8+
@ApiProperty()
9+
@Expose()
710
to: string;
11+
@ApiProperty()
12+
@Transform(({ value }) => value.toString())
13+
@Expose()
814
value: string;
15+
@ApiProperty()
16+
@Expose()
917
method: string;
10-
receiver?: string;
11-
escrow?: string;
12-
token?: string;
18+
@ApiProperty()
19+
@Expose()
20+
receiver: string | null;
21+
@ApiProperty()
22+
@Expose()
23+
escrow: string | null;
24+
@ApiProperty()
25+
@Expose()
26+
token: string | null;
1327
}
1428

1529
export class TransactionPaginationDto {
1630
@ApiProperty({
1731
example:
1832
'0x020efc94ef6d9d7aa9a4886cc9e1659f4f2b63557133c29d51f387bcb0c4afd7',
1933
})
20-
@IsString()
2134
@Expose()
22-
public txHash: string;
35+
txHash: string;
2336

24-
@ApiProperty({ example: 'Transfer' })
25-
@IsString()
37+
@ApiProperty({ example: 'bulkTransfer' })
2638
@Expose()
27-
public method: string;
39+
method: string;
2840

2941
@ApiProperty({ example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78' })
30-
@IsString()
3142
@Expose()
32-
public from: string;
43+
from: string;
3344

3445
@ApiProperty({ example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78' })
35-
@IsString()
3646
@Expose()
37-
public to: string;
47+
to: string;
3848

39-
@ApiProperty({ example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78' })
40-
@IsOptional()
41-
@IsString()
49+
@ApiProperty({
50+
example: '0xad1F7e45D83624A0c628F1B03477c6E129EddB78',
51+
})
4252
@Expose()
43-
public receiver?: string;
53+
receiver: string | null;
4454

4555
@ApiProperty({ example: 12345 })
4656
@Transform(({ value }) => Number(value))
47-
@IsNumber()
4857
@Expose()
49-
public block: number;
58+
block: number;
5059

5160
@ApiProperty({ example: '0.123' })
5261
@Transform(({ value, obj }) => {
5362
return obj.currentAddress.toLowerCase() === obj.from.toLowerCase()
5463
? `-${value.toString()}`
5564
: value.toString();
5665
})
57-
@IsString()
5866
@Expose()
59-
public value: string;
67+
value: string;
6068

6169
@ApiProperty({
6270
type: [Object],
6371
description: 'List of transfers associated with the transaction',
6472
})
73+
@Type(() => InternalTransaction)
6574
@Expose()
66-
public internalTransactions: InternalTransaction[];
75+
internalTransactions: InternalTransaction[];
6776
}

packages/apps/dashboard/server/src/modules/stats/stats.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export class StatsService implements OnModuleInit {
324324

325325
dailyData[dailyCacheKey].totalTransactionAmount = (
326326
BigInt(dailyData[dailyCacheKey].totalTransactionAmount) +
327-
BigInt(record.totalTransactionAmount)
327+
record.totalTransactionAmount
328328
).toString();
329329
dailyData[dailyCacheKey].totalTransactionCount +=
330330
record.totalTransactionCount;
@@ -346,7 +346,7 @@ export class StatsService implements OnModuleInit {
346346

347347
monthlyData[month].totalTransactionAmount = (
348348
BigInt(monthlyData[month].totalTransactionAmount) +
349-
BigInt(record.totalTransactionAmount)
349+
record.totalTransactionAmount
350350
).toString();
351351
monthlyData[month].totalTransactionCount +=
352352
record.totalTransactionCount;

packages/apps/human-app/frontend/serve.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"public": "dist",
3-
"symlinks": true,
3+
"symlinks": false,
44
"trailingSlash": false,
5+
"rewrites": [
6+
{
7+
"source": "**",
8+
"destination": "/index.html"
9+
}
10+
],
511
"headers": [
612
{
713
"source": "**/*.html",

packages/apps/job-launcher/client/serve.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"public": "dist",
3-
"symlinks": true,
3+
"symlinks": false,
44
"trailingSlash": false,
5+
"rewrites": [
6+
{
7+
"source": "**",
8+
"destination": "/index.html"
9+
}
10+
],
511
"headers": [
612
{
713
"source": "**/*.html",

packages/apps/staking/serve.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"public": "dist",
3-
"symlinks": true,
3+
"symlinks": false,
44
"trailingSlash": false,
5+
"rewrites": [
6+
{
7+
"source": "**",
8+
"destination": "/index.html"
9+
}
10+
],
511
"headers": [
612
{
713
"source": "**/*.html",

scripts/tag-published-packages.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function maybeCreateGitTagForPackage({ name, version }) {
1515
childProcess.execSync(`git rev-parse --verify ${tag}`, { stdio: "ignore" });
1616
console.warn(`Git tag already exists, skipping: ${tag}`);
1717
} catch {
18-
childProcess.execSync(`git tag ${tag}`);
18+
childProcess.execSync(`git tag -a "${tag}" -m "Released JS package: @human-protocol/${name} - ${version}"`);
1919
console.log(`Created tag: ${tag}`);
2020
}
2121
}

0 commit comments

Comments
 (0)