Skip to content

Commit 25d0528

Browse files
committed
Merge branch 'develop' into subgraph-upgrades
2 parents 26ebc9b + 2bb8111 commit 25d0528

File tree

26 files changed

+1000
-661
lines changed

26 files changed

+1000
-661
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"eslint-plugin-jest": "^28.6.0",
3636
"eslint-plugin-prettier": "^5.2.1",
3737
"ethers": "^6.12.1",
38-
"husky": "^9.0.11",
38+
"husky": "^9.1.6",
3939
"jest": "^29.7.0",
4040
"jest-environment-jsdom": "^29.7.0",
4141
"lint-staged": "^15.2.7",

packages/apps/dashboard/ui-2024/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"sass": "^1.78.0",
5252
"stylelint-prettier": "^5.0.0",
5353
"typescript": "^5.2.2",
54-
"vite": "^5.2.0",
54+
"vite": "^5.4.7",
5555
"vite-plugin-svgr": "^4.2.0"
5656
}
5757
}

packages/apps/dashboard/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
"eslint-plugin-react-hooks": "^4.6.0",
6161
"happy-dom": "^12.9.1",
6262
"identity-obj-proxy": "^3.0.0",
63-
"jsdom": "^24.1.1",
63+
"jsdom": "^25.0.1",
6464
"resize-observer-polyfill": "^1.5.1",
65-
"vite": "^5.0.12",
65+
"vite": "^5.4.7",
6666
"vite-plugin-node-polyfills": "^0.22.0",
6767
"vitest": "^1.6.0"
6868
},

packages/apps/faucet-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"axios": "^1.3.4",
1818
"body-parser": "^1.20.0",
1919
"cors": "^2.8.5",
20-
"express": "^4.19.2",
20+
"express": "^4.21.0",
2121
"express-rate-limit": "^7.3.0",
2222
"node-cache": "^5.1.2",
2323
"web3": "^4.12.1"

packages/apps/fortune/exchange-oracle/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"eslint-plugin-react-hooks": "^4.6.2",
5151
"eslint-plugin-react-refresh": "^0.4.11",
5252
"typescript": "^5.2.2",
53-
"vite": "^5.3.1"
53+
"vite": "^5.4.7"
5454
},
5555
"lint-staged": {
5656
"*.{ts,tsx}": [

packages/apps/fortune/exchange-oracle/server/src/modules/job/job.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class JobDto {
9999
jobDescription?: string;
100100

101101
@ApiProperty({ name: 'reward_amount' })
102-
rewardAmount?: number;
102+
rewardAmount?: string;
103103

104104
@ApiProperty({ name: 'reward_token' })
105105
rewardToken?: string;

packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ export class JobService {
172172
data.fields?.includes(JobFieldName.RewardAmount) ||
173173
data.sortField === JobSortField.REWARD_AMOUNT
174174
) {
175-
job.rewardAmount =
176-
manifest.fundAmount / manifest.submissionsRequired;
175+
job.rewardAmount = (
176+
manifest.fundAmount / manifest.submissionsRequired
177+
).toString();
177178
}
178179
if (data.fields?.includes(JobFieldName.RewardToken)) {
179180
job.rewardToken = TOKEN;
@@ -189,8 +190,8 @@ export class JobService {
189190

190191
if (data.sortField === JobSortField.REWARD_AMOUNT) {
191192
jobs.sort((a, b) => {
192-
const rewardA = a.rewardAmount ?? 0;
193-
const rewardB = b.rewardAmount ?? 0;
193+
const rewardA = Number(a.rewardAmount ?? 0);
194+
const rewardB = Number(b.rewardAmount ?? 0);
194195
if (data.sort === SortDirection.DESC) {
195196
return rewardB - rewardA;
196197
} else {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export enum EventType {
22
ESCROW_COMPLETED = 'escrow_completed',
3-
TASK_COMPLETED = 'task_completed',
3+
JOB_COMPLETED = 'job_completed',
44
SUBMISSION_REJECTED = 'submission_rejected',
55
SUBMISSION_IN_REVIEW = 'submission_in_review',
66
}

packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ describe('JobService', () => {
483483
const expectedBody = {
484484
chain_id: jobSolution.chainId,
485485
escrow_address: jobSolution.escrowAddress,
486-
event_type: EventType.TASK_COMPLETED,
486+
event_type: EventType.JOB_COMPLETED,
487487
};
488488
expect(result).toEqual('The requested job is completed.');
489489
expect(httpServicePostMock).toHaveBeenCalledWith(
@@ -575,7 +575,7 @@ describe('JobService', () => {
575575
const expectedBody = {
576576
chain_id: jobSolution.chainId,
577577
escrow_address: jobSolution.escrowAddress,
578-
event_type: EventType.TASK_COMPLETED,
578+
event_type: EventType.JOB_COMPLETED,
579579
};
580580
expect(result).toEqual('The requested job is completed.');
581581
expect(httpServicePostMock).toHaveBeenCalledWith(

packages/apps/fortune/recording-oracle/src/modules/job/job.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class JobService {
203203
{
204204
chainId: webhook.chainId,
205205
escrowAddress: webhook.escrowAddress,
206-
eventType: EventType.TASK_COMPLETED,
206+
eventType: EventType.JOB_COMPLETED,
207207
},
208208
this.web3ConfigService.privateKey,
209209
);

0 commit comments

Comments
 (0)