Skip to content

Commit cf2d0a7

Browse files
authored
Migrate 400_contributeAndCallback.js test file to Hardhat and Typescript (#176)
2 parents 7a1399e + 6fde20d commit cf2d0a7

File tree

7 files changed

+551
-16
lines changed

7 files changed

+551
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Fix balance checks in integration tests (#165)
2020
- 300_fullchain-reopen.js (#170, #173)
2121
- 000_fullchain-ABILegacy.js (#174, #175)
22+
- 400_contributeAndCallback.js (#176)
2223
- Remove `smock` from unit tests:
2324
- IexecEscrow.v8 (#154, #155)
2425
- IexecPocoDelegate (#149, #151)

test/000_fullchain.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ describe('Integration tests', function () {
184184
const completedTasks = taskIndex + 1;
185185
// Calculate expected frozen changes
186186
const expectedFrozenChanges = [
187-
0, // Proxy
188187
-taskPrice * completedTasks, // Sponsor
189188
0, // Requester
190189
-schedulerStakePerTask * completedTasks, // Scheduler
@@ -275,7 +274,6 @@ describe('Integration tests', function () {
275274
const completedTasks = taskIndex + 1;
276275
// Calculate expected frozen changes
277276
const expectedFrozenChanges = [
278-
0, // Proxy
279277
-taskPrice * completedTasks, // Requester
280278
-schedulerStakePerTask * completedTasks, // Scheduler
281279
0, // AppProvider
@@ -353,7 +351,6 @@ describe('Integration tests', function () {
353351
const completedTasks = taskIndex + 1;
354352
// Calculate expected frozen changes
355353
const expectedFrozenChanges = [
356-
0, // Proxy
357354
-taskPrice * completedTasks, // Sponsor
358355
0, // Requester
359356
-schedulerStakePerTask * completedTasks, // Scheduler
@@ -433,7 +430,6 @@ describe('Integration tests', function () {
433430
const completedTasks = taskIndex + 1;
434431
// Calculate expected frozen changes
435432
const expectedFrozenChanges = [
436-
0, // Proxy
437433
-taskPrice * completedTasks, // Requester
438434
-schedulerStakePerTask * completedTasks, // Scheduler
439435
0, // AppProvider
@@ -502,7 +498,6 @@ describe('Integration tests', function () {
502498
);
503499
// Calculate expected frozen changes
504500
const expectedFrozenChanges = [
505-
0, // Proxy
506501
-dealPrice, // Requester
507502
-schedulerStakePerTask, // Scheduler
508503
0, // AppProvider
@@ -584,7 +579,6 @@ describe('Integration tests', function () {
584579
TaskStatusEnum.COMPLETED,
585580
);
586581
const expectedFrozenChanges = [
587-
0,
588582
-taskPrice,
589583
-schedulerStakePerTask,
590584
0,
@@ -707,7 +701,6 @@ describe('Integration tests', function () {
707701
expect((await iexecPoco.viewTask(taskId)).status).to.equal(TaskStatusEnum.COMPLETED);
708702
// checks on frozen balance changes
709703
const expectedFrozenChanges = [
710-
0,
711704
-dealPrice,
712705
-schedulerStakePerTask,
713706
0,

test/200_fullchain-bot.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ describe('Integration tests', function () {
219219
const completedTasks = taskIndex + 1;
220220
// Calculate expected frozen changes
221221
const expectedFrozenChanges = [
222-
0, // Proxy
223222
-taskPrice * completedTasks, // Requester
224223
-schedulerStakePerTask * completedTasks, // Scheduler
225224
0, // AppProvider

test/201_fullchain-multi-orders.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ describe('Integration tests', function () {
243243
);
244244
// Calculate expected frozen changes
245245
const expectedFrozenChanges = [
246-
0, // Proxy
247246
-taskPrice, // Requester
248247
-schedulerStake, // Scheduler
249248
0, // AppProvider

test/300_fullchain-reopen.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ describe('Integration tests', function () {
213213
);
214214
expect((await iexecPoco.viewTask(taskId)).status).to.equal(TaskStatusEnum.COMPLETED);
215215
const expectedFrozenChanges = [
216-
0,
217216
-taskPrice,
218217
-schedulerStakePerTask,
219218
0,

0 commit comments

Comments
 (0)