opportunity-service 0.0.657 → 0.0.658

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,11 +124,6 @@
124
124
  "WorkRelationship": [
125
125
  {
126
126
  "inputs": [
127
- {
128
- "internalType": "address",
129
- "name": "_owner",
130
- "type": "address"
131
- },
132
127
  {
133
128
  "internalType": "enum Evaluation.ContractType",
134
129
  "name": "_contractType",
@@ -148,32 +143,6 @@
148
143
  "stateMutability": "nonpayable",
149
144
  "type": "constructor"
150
145
  },
151
- {
152
- "inputs": [],
153
- "name": "HIGH_MEDIAN_EVALUATION_THRESHOLD",
154
- "outputs": [
155
- {
156
- "internalType": "uint8",
157
- "name": "",
158
- "type": "uint8"
159
- }
160
- ],
161
- "stateMutability": "view",
162
- "type": "function"
163
- },
164
- {
165
- "inputs": [],
166
- "name": "LOW_MEDIAN_EVALUATION_THRESHOLD",
167
- "outputs": [
168
- {
169
- "internalType": "uint8",
170
- "name": "",
171
- "type": "uint8"
172
- }
173
- ],
174
- "stateMutability": "view",
175
- "type": "function"
176
- },
177
146
  {
178
147
  "inputs": [],
179
148
  "name": "REVIEW_TYPEHASH",
@@ -216,7 +185,7 @@
216
185
  {
217
186
  "inputs": [
218
187
  {
219
- "internalType": "address payable",
188
+ "internalType": "address",
220
189
  "name": "_newWorker",
221
190
  "type": "address"
222
191
  },
@@ -272,48 +241,9 @@
272
241
  "type": "function"
273
242
  },
274
243
  {
275
- "inputs": [
276
- {
277
- "internalType": "address",
278
- "name": "workerUniversalAddress",
279
- "type": "address"
280
- },
281
- {
282
- "components": [
283
- {
284
- "internalType": "address",
285
- "name": "market",
286
- "type": "address"
287
- },
288
- {
289
- "internalType": "uint256",
290
- "name": "marketReputation",
291
- "type": "uint256"
292
- },
293
- {
294
- "internalType": "uint256",
295
- "name": "universalReputation",
296
- "type": "uint256"
297
- }
298
- ],
299
- "internalType": "struct Evaluation.EvaluationState",
300
- "name": "evaluationState",
301
- "type": "tuple"
302
- },
303
- {
304
- "internalType": "address",
305
- "name": "_market",
306
- "type": "address"
307
- }
308
- ],
309
- "name": "checkWorkerEvaluation",
310
- "outputs": [
311
- {
312
- "internalType": "bool",
313
- "name": "",
314
- "type": "bool"
315
- }
316
- ],
244
+ "inputs": [],
245
+ "name": "claimStalledContract",
246
+ "outputs": [],
317
247
  "stateMutability": "nonpayable",
318
248
  "type": "function"
319
249
  },
@@ -369,6 +299,19 @@
369
299
  "stateMutability": "view",
370
300
  "type": "function"
371
301
  },
302
+ {
303
+ "inputs": [],
304
+ "name": "daiToken",
305
+ "outputs": [
306
+ {
307
+ "internalType": "contract DaiToken",
308
+ "name": "",
309
+ "type": "address"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
372
315
  {
373
316
  "inputs": [],
374
317
  "name": "domain_separator",
@@ -408,6 +351,19 @@
408
351
  "stateMutability": "view",
409
352
  "type": "function"
410
353
  },
354
+ {
355
+ "inputs": [],
356
+ "name": "market",
357
+ "outputs": [
358
+ {
359
+ "internalType": "address",
360
+ "name": "",
361
+ "type": "address"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
411
367
  {
412
368
  "inputs": [],
413
369
  "name": "owner",
@@ -421,6 +377,20 @@
421
377
  "stateMutability": "view",
422
378
  "type": "function"
423
379
  },
380
+ {
381
+ "inputs": [],
382
+ "name": "refundUnclaimedContract",
383
+ "outputs": [],
384
+ "stateMutability": "nonpayable",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [],
389
+ "name": "releaseJob",
390
+ "outputs": [],
391
+ "stateMutability": "nonpayable",
392
+ "type": "function"
393
+ },
424
394
  {
425
395
  "inputs": [
426
396
  {
@@ -570,20 +540,23 @@
570
540
  ],
571
541
  "UserRegistration": [
572
542
  {
543
+ "anonymous": false,
573
544
  "inputs": [
574
545
  {
546
+ "indexed": true,
575
547
  "internalType": "address",
576
- "name": "userSummaryFactoryAddress",
548
+ "name": "universalAddress",
577
549
  "type": "address"
578
550
  },
579
551
  {
552
+ "indexed": true,
580
553
  "internalType": "address",
581
- "name": "_juryParticipationAddress",
554
+ "name": "userSummaryContractAddress",
582
555
  "type": "address"
583
556
  }
584
557
  ],
585
- "stateMutability": "nonpayable",
586
- "type": "constructor"
558
+ "name": "UserAssignedTrueIdentification",
559
+ "type": "event"
587
560
  },
588
561
  {
589
562
  "anonymous": false,
@@ -593,29 +566,73 @@
593
566
  "internalType": "address",
594
567
  "name": "universalAddress",
595
568
  "type": "address"
569
+ }
570
+ ],
571
+ "name": "UserRegistered",
572
+ "type": "event"
573
+ },
574
+ {
575
+ "anonymous": false,
576
+ "inputs": [
577
+ {
578
+ "indexed": true,
579
+ "internalType": "address",
580
+ "name": "_userSummary",
581
+ "type": "address"
582
+ },
583
+ {
584
+ "indexed": true,
585
+ "internalType": "uint256",
586
+ "name": "index",
587
+ "type": "uint256"
596
588
  },
597
589
  {
598
590
  "indexed": true,
599
591
  "internalType": "address",
600
- "name": "userSummaryContractAddress",
592
+ "name": "universalAddress",
601
593
  "type": "address"
602
594
  }
603
595
  ],
604
- "name": "UserAssignedTrueIdentification",
596
+ "name": "UserSummaryCreated",
605
597
  "type": "event"
606
598
  },
607
599
  {
608
- "anonymous": false,
609
600
  "inputs": [
610
601
  {
611
- "indexed": true,
602
+ "internalType": "uint256",
603
+ "name": "",
604
+ "type": "uint256"
605
+ }
606
+ ],
607
+ "name": "_userSummaries",
608
+ "outputs": [
609
+ {
610
+ "internalType": "contract UserSummary",
611
+ "name": "",
612
+ "type": "address"
613
+ }
614
+ ],
615
+ "stateMutability": "view",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
612
621
  "internalType": "address",
613
622
  "name": "universalAddress",
614
623
  "type": "address"
615
624
  }
616
625
  ],
617
- "name": "UserRegistered",
618
- "type": "event"
626
+ "name": "createUserSummary",
627
+ "outputs": [
628
+ {
629
+ "internalType": "address",
630
+ "name": "",
631
+ "type": "address"
632
+ }
633
+ ],
634
+ "stateMutability": "nonpayable",
635
+ "type": "function"
619
636
  },
620
637
  {
621
638
  "inputs": [
@@ -636,13 +653,6 @@
636
653
  "stateMutability": "view",
637
654
  "type": "function"
638
655
  },
639
- {
640
- "inputs": [],
641
- "name": "redeemJuryParticipation",
642
- "outputs": [],
643
- "stateMutability": "nonpayable",
644
- "type": "function"
645
- },
646
656
  {
647
657
  "inputs": [],
648
658
  "name": "registerNewUser",
@@ -733,11 +743,6 @@
733
743
  },
734
744
  {
735
745
  "inputs": [
736
- {
737
- "internalType": "address",
738
- "name": "taskOwner",
739
- "type": "address"
740
- },
741
746
  {
742
747
  "internalType": "enum Evaluation.ContractType",
743
748
  "name": "_contractType",
@@ -780,7 +785,7 @@
780
785
  },
781
786
  {
782
787
  "inputs": [],
783
- "name": "getNumJobs",
788
+ "name": "getNumRelationshipsCreated",
784
789
  "outputs": [
785
790
  {
786
791
  "internalType": "uint256",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.657",
3
+ "version": "0.0.658",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -124,11 +124,6 @@
124
124
  "WorkRelationship": [
125
125
  {
126
126
  "inputs": [
127
- {
128
- "internalType": "address",
129
- "name": "_owner",
130
- "type": "address"
131
- },
132
127
  {
133
128
  "internalType": "enum Evaluation.ContractType",
134
129
  "name": "_contractType",
@@ -148,32 +143,6 @@
148
143
  "stateMutability": "nonpayable",
149
144
  "type": "constructor"
150
145
  },
151
- {
152
- "inputs": [],
153
- "name": "HIGH_MEDIAN_EVALUATION_THRESHOLD",
154
- "outputs": [
155
- {
156
- "internalType": "uint8",
157
- "name": "",
158
- "type": "uint8"
159
- }
160
- ],
161
- "stateMutability": "view",
162
- "type": "function"
163
- },
164
- {
165
- "inputs": [],
166
- "name": "LOW_MEDIAN_EVALUATION_THRESHOLD",
167
- "outputs": [
168
- {
169
- "internalType": "uint8",
170
- "name": "",
171
- "type": "uint8"
172
- }
173
- ],
174
- "stateMutability": "view",
175
- "type": "function"
176
- },
177
146
  {
178
147
  "inputs": [],
179
148
  "name": "REVIEW_TYPEHASH",
@@ -216,7 +185,7 @@
216
185
  {
217
186
  "inputs": [
218
187
  {
219
- "internalType": "address payable",
188
+ "internalType": "address",
220
189
  "name": "_newWorker",
221
190
  "type": "address"
222
191
  },
@@ -272,48 +241,9 @@
272
241
  "type": "function"
273
242
  },
274
243
  {
275
- "inputs": [
276
- {
277
- "internalType": "address",
278
- "name": "workerUniversalAddress",
279
- "type": "address"
280
- },
281
- {
282
- "components": [
283
- {
284
- "internalType": "address",
285
- "name": "market",
286
- "type": "address"
287
- },
288
- {
289
- "internalType": "uint256",
290
- "name": "marketReputation",
291
- "type": "uint256"
292
- },
293
- {
294
- "internalType": "uint256",
295
- "name": "universalReputation",
296
- "type": "uint256"
297
- }
298
- ],
299
- "internalType": "struct Evaluation.EvaluationState",
300
- "name": "evaluationState",
301
- "type": "tuple"
302
- },
303
- {
304
- "internalType": "address",
305
- "name": "_market",
306
- "type": "address"
307
- }
308
- ],
309
- "name": "checkWorkerEvaluation",
310
- "outputs": [
311
- {
312
- "internalType": "bool",
313
- "name": "",
314
- "type": "bool"
315
- }
316
- ],
244
+ "inputs": [],
245
+ "name": "claimStalledContract",
246
+ "outputs": [],
317
247
  "stateMutability": "nonpayable",
318
248
  "type": "function"
319
249
  },
@@ -369,6 +299,19 @@
369
299
  "stateMutability": "view",
370
300
  "type": "function"
371
301
  },
302
+ {
303
+ "inputs": [],
304
+ "name": "daiToken",
305
+ "outputs": [
306
+ {
307
+ "internalType": "contract DaiToken",
308
+ "name": "",
309
+ "type": "address"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
372
315
  {
373
316
  "inputs": [],
374
317
  "name": "domain_separator",
@@ -408,6 +351,19 @@
408
351
  "stateMutability": "view",
409
352
  "type": "function"
410
353
  },
354
+ {
355
+ "inputs": [],
356
+ "name": "market",
357
+ "outputs": [
358
+ {
359
+ "internalType": "address",
360
+ "name": "",
361
+ "type": "address"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
411
367
  {
412
368
  "inputs": [],
413
369
  "name": "owner",
@@ -421,6 +377,20 @@
421
377
  "stateMutability": "view",
422
378
  "type": "function"
423
379
  },
380
+ {
381
+ "inputs": [],
382
+ "name": "refundUnclaimedContract",
383
+ "outputs": [],
384
+ "stateMutability": "nonpayable",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [],
389
+ "name": "releaseJob",
390
+ "outputs": [],
391
+ "stateMutability": "nonpayable",
392
+ "type": "function"
393
+ },
424
394
  {
425
395
  "inputs": [
426
396
  {
@@ -570,20 +540,23 @@
570
540
  ],
571
541
  "UserRegistration": [
572
542
  {
543
+ "anonymous": false,
573
544
  "inputs": [
574
545
  {
546
+ "indexed": true,
575
547
  "internalType": "address",
576
- "name": "userSummaryFactoryAddress",
548
+ "name": "universalAddress",
577
549
  "type": "address"
578
550
  },
579
551
  {
552
+ "indexed": true,
580
553
  "internalType": "address",
581
- "name": "_juryParticipationAddress",
554
+ "name": "userSummaryContractAddress",
582
555
  "type": "address"
583
556
  }
584
557
  ],
585
- "stateMutability": "nonpayable",
586
- "type": "constructor"
558
+ "name": "UserAssignedTrueIdentification",
559
+ "type": "event"
587
560
  },
588
561
  {
589
562
  "anonymous": false,
@@ -593,29 +566,73 @@
593
566
  "internalType": "address",
594
567
  "name": "universalAddress",
595
568
  "type": "address"
569
+ }
570
+ ],
571
+ "name": "UserRegistered",
572
+ "type": "event"
573
+ },
574
+ {
575
+ "anonymous": false,
576
+ "inputs": [
577
+ {
578
+ "indexed": true,
579
+ "internalType": "address",
580
+ "name": "_userSummary",
581
+ "type": "address"
582
+ },
583
+ {
584
+ "indexed": true,
585
+ "internalType": "uint256",
586
+ "name": "index",
587
+ "type": "uint256"
596
588
  },
597
589
  {
598
590
  "indexed": true,
599
591
  "internalType": "address",
600
- "name": "userSummaryContractAddress",
592
+ "name": "universalAddress",
601
593
  "type": "address"
602
594
  }
603
595
  ],
604
- "name": "UserAssignedTrueIdentification",
596
+ "name": "UserSummaryCreated",
605
597
  "type": "event"
606
598
  },
607
599
  {
608
- "anonymous": false,
609
600
  "inputs": [
610
601
  {
611
- "indexed": true,
602
+ "internalType": "uint256",
603
+ "name": "",
604
+ "type": "uint256"
605
+ }
606
+ ],
607
+ "name": "_userSummaries",
608
+ "outputs": [
609
+ {
610
+ "internalType": "contract UserSummary",
611
+ "name": "",
612
+ "type": "address"
613
+ }
614
+ ],
615
+ "stateMutability": "view",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
612
621
  "internalType": "address",
613
622
  "name": "universalAddress",
614
623
  "type": "address"
615
624
  }
616
625
  ],
617
- "name": "UserRegistered",
618
- "type": "event"
626
+ "name": "createUserSummary",
627
+ "outputs": [
628
+ {
629
+ "internalType": "address",
630
+ "name": "",
631
+ "type": "address"
632
+ }
633
+ ],
634
+ "stateMutability": "nonpayable",
635
+ "type": "function"
619
636
  },
620
637
  {
621
638
  "inputs": [
@@ -636,13 +653,6 @@
636
653
  "stateMutability": "view",
637
654
  "type": "function"
638
655
  },
639
- {
640
- "inputs": [],
641
- "name": "redeemJuryParticipation",
642
- "outputs": [],
643
- "stateMutability": "nonpayable",
644
- "type": "function"
645
- },
646
656
  {
647
657
  "inputs": [],
648
658
  "name": "registerNewUser",
@@ -733,11 +743,6 @@
733
743
  },
734
744
  {
735
745
  "inputs": [
736
- {
737
- "internalType": "address",
738
- "name": "taskOwner",
739
- "type": "address"
740
- },
741
746
  {
742
747
  "internalType": "enum Evaluation.ContractType",
743
748
  "name": "_contractType",
@@ -780,7 +785,7 @@
780
785
  },
781
786
  {
782
787
  "inputs": [],
783
- "name": "getNumJobs",
788
+ "name": "getNumRelationshipsCreated",
784
789
  "outputs": [
785
790
  {
786
791
  "internalType": "uint256",