opportunity-service 0.0.661 → 0.0.662
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/blockchain/abi.json +82 -118
- package/package.json +1 -1
- package/src/blockchain/abi.json +82 -118
package/dist/blockchain/abi.json
CHANGED
@@ -67,30 +67,23 @@
|
|
67
67
|
"inputs": [
|
68
68
|
{
|
69
69
|
"internalType": "string",
|
70
|
-
"name": "
|
70
|
+
"name": "_marketName",
|
71
71
|
"type": "string"
|
72
72
|
},
|
73
73
|
{
|
74
74
|
"internalType": "enum MarketLib.MarketType",
|
75
|
-
"name": "
|
75
|
+
"name": "_marketType",
|
76
76
|
"type": "uint8"
|
77
77
|
}
|
78
78
|
],
|
79
79
|
"name": "createMarket",
|
80
|
-
"outputs": [
|
81
|
-
"stateMutability": "nonpayable",
|
82
|
-
"type": "function"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"inputs": [
|
80
|
+
"outputs": [
|
86
81
|
{
|
87
|
-
"internalType": "
|
88
|
-
"name": "
|
89
|
-
"type": "
|
82
|
+
"internalType": "uint256",
|
83
|
+
"name": "",
|
84
|
+
"type": "uint256"
|
90
85
|
}
|
91
86
|
],
|
92
|
-
"name": "destroyMarket",
|
93
|
-
"outputs": [],
|
94
87
|
"stateMutability": "nonpayable",
|
95
88
|
"type": "function"
|
96
89
|
},
|
@@ -148,6 +141,68 @@
|
|
148
141
|
"stateMutability": "nonpayable",
|
149
142
|
"type": "constructor"
|
150
143
|
},
|
144
|
+
{
|
145
|
+
"anonymous": false,
|
146
|
+
"inputs": [
|
147
|
+
{
|
148
|
+
"indexed": false,
|
149
|
+
"internalType": "address",
|
150
|
+
"name": "owner",
|
151
|
+
"type": "address"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"indexed": false,
|
155
|
+
"internalType": "address",
|
156
|
+
"name": "worker",
|
157
|
+
"type": "address"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "relationship",
|
163
|
+
"type": "address"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"indexed": false,
|
167
|
+
"internalType": "address",
|
168
|
+
"name": "market",
|
169
|
+
"type": "address"
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"name": "ContractCompleted",
|
173
|
+
"type": "event"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"anonymous": false,
|
177
|
+
"inputs": [
|
178
|
+
{
|
179
|
+
"indexed": false,
|
180
|
+
"internalType": "address",
|
181
|
+
"name": "owner",
|
182
|
+
"type": "address"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"indexed": false,
|
186
|
+
"internalType": "address",
|
187
|
+
"name": "worker",
|
188
|
+
"type": "address"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"indexed": false,
|
192
|
+
"internalType": "address",
|
193
|
+
"name": "relationship",
|
194
|
+
"type": "address"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"indexed": false,
|
198
|
+
"internalType": "address",
|
199
|
+
"name": "market",
|
200
|
+
"type": "address"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"name": "EnteredContract",
|
204
|
+
"type": "event"
|
205
|
+
},
|
151
206
|
{
|
152
207
|
"inputs": [],
|
153
208
|
"name": "REVIEW_TYPEHASH",
|
@@ -330,32 +385,6 @@
|
|
330
385
|
"stateMutability": "view",
|
331
386
|
"type": "function"
|
332
387
|
},
|
333
|
-
{
|
334
|
-
"inputs": [],
|
335
|
-
"name": "getRewardAddress",
|
336
|
-
"outputs": [
|
337
|
-
{
|
338
|
-
"internalType": "address",
|
339
|
-
"name": "",
|
340
|
-
"type": "address"
|
341
|
-
}
|
342
|
-
],
|
343
|
-
"stateMutability": "nonpayable",
|
344
|
-
"type": "function"
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"inputs": [],
|
348
|
-
"name": "getTaskSolutionPointer",
|
349
|
-
"outputs": [
|
350
|
-
{
|
351
|
-
"internalType": "bytes32",
|
352
|
-
"name": "",
|
353
|
-
"type": "bytes32"
|
354
|
-
}
|
355
|
-
],
|
356
|
-
"stateMutability": "view",
|
357
|
-
"type": "function"
|
358
|
-
},
|
359
388
|
{
|
360
389
|
"inputs": [],
|
361
390
|
"name": "market",
|
@@ -397,67 +426,8 @@
|
|
397
426
|
"type": "function"
|
398
427
|
},
|
399
428
|
{
|
400
|
-
"inputs": [
|
401
|
-
|
402
|
-
"internalType": "uint256",
|
403
|
-
"name": "averageMarketWorkerRep",
|
404
|
-
"type": "uint256"
|
405
|
-
},
|
406
|
-
{
|
407
|
-
"internalType": "uint8",
|
408
|
-
"name": "_evaluationScore",
|
409
|
-
"type": "uint8"
|
410
|
-
},
|
411
|
-
{
|
412
|
-
"internalType": "bool",
|
413
|
-
"name": "_approve",
|
414
|
-
"type": "bool"
|
415
|
-
},
|
416
|
-
{
|
417
|
-
"internalType": "uint8",
|
418
|
-
"name": "_v",
|
419
|
-
"type": "uint8"
|
420
|
-
},
|
421
|
-
{
|
422
|
-
"internalType": "bytes32",
|
423
|
-
"name": "_r",
|
424
|
-
"type": "bytes32"
|
425
|
-
},
|
426
|
-
{
|
427
|
-
"internalType": "bytes32",
|
428
|
-
"name": "_s",
|
429
|
-
"type": "bytes32"
|
430
|
-
}
|
431
|
-
],
|
432
|
-
"name": "review",
|
433
|
-
"outputs": [],
|
434
|
-
"stateMutability": "nonpayable",
|
435
|
-
"type": "function"
|
436
|
-
},
|
437
|
-
{
|
438
|
-
"inputs": [
|
439
|
-
{
|
440
|
-
"internalType": "bytes32",
|
441
|
-
"name": "_submission",
|
442
|
-
"type": "bytes32"
|
443
|
-
},
|
444
|
-
{
|
445
|
-
"internalType": "uint8",
|
446
|
-
"name": "_v",
|
447
|
-
"type": "uint8"
|
448
|
-
},
|
449
|
-
{
|
450
|
-
"internalType": "bytes32",
|
451
|
-
"name": "_r",
|
452
|
-
"type": "bytes32"
|
453
|
-
},
|
454
|
-
{
|
455
|
-
"internalType": "bytes32",
|
456
|
-
"name": "_s",
|
457
|
-
"type": "bytes32"
|
458
|
-
}
|
459
|
-
],
|
460
|
-
"name": "submit",
|
429
|
+
"inputs": [],
|
430
|
+
"name": "resolve",
|
461
431
|
"outputs": [],
|
462
432
|
"stateMutability": "nonpayable",
|
463
433
|
"type": "function"
|
@@ -604,15 +574,15 @@
|
|
604
574
|
{
|
605
575
|
"inputs": [
|
606
576
|
{
|
607
|
-
"internalType": "
|
577
|
+
"internalType": "address",
|
608
578
|
"name": "",
|
609
|
-
"type": "
|
579
|
+
"type": "address"
|
610
580
|
}
|
611
581
|
],
|
612
|
-
"name": "
|
582
|
+
"name": "_trueIdentifcations",
|
613
583
|
"outputs": [
|
614
584
|
{
|
615
|
-
"internalType": "
|
585
|
+
"internalType": "address",
|
616
586
|
"name": "",
|
617
587
|
"type": "address"
|
618
588
|
}
|
@@ -623,20 +593,20 @@
|
|
623
593
|
{
|
624
594
|
"inputs": [
|
625
595
|
{
|
626
|
-
"internalType": "
|
627
|
-
"name": "
|
628
|
-
"type": "
|
596
|
+
"internalType": "uint256",
|
597
|
+
"name": "",
|
598
|
+
"type": "uint256"
|
629
599
|
}
|
630
600
|
],
|
631
|
-
"name": "
|
601
|
+
"name": "_userSummaries",
|
632
602
|
"outputs": [
|
633
603
|
{
|
634
|
-
"internalType": "
|
604
|
+
"internalType": "contract UserSummary",
|
635
605
|
"name": "",
|
636
606
|
"type": "address"
|
637
607
|
}
|
638
608
|
],
|
639
|
-
"stateMutability": "
|
609
|
+
"stateMutability": "view",
|
640
610
|
"type": "function"
|
641
611
|
},
|
642
612
|
{
|
@@ -661,13 +631,7 @@
|
|
661
631
|
{
|
662
632
|
"inputs": [],
|
663
633
|
"name": "registerNewUser",
|
664
|
-
"outputs": [
|
665
|
-
{
|
666
|
-
"internalType": "address",
|
667
|
-
"name": "",
|
668
|
-
"type": "address"
|
669
|
-
}
|
670
|
-
],
|
634
|
+
"outputs": [],
|
671
635
|
"stateMutability": "nonpayable",
|
672
636
|
"type": "function"
|
673
637
|
}
|
@@ -760,7 +724,7 @@
|
|
760
724
|
},
|
761
725
|
{
|
762
726
|
"internalType": "string",
|
763
|
-
"name": "
|
727
|
+
"name": "_taskMetadataPointer",
|
764
728
|
"type": "string"
|
765
729
|
},
|
766
730
|
{
|
package/package.json
CHANGED
package/src/blockchain/abi.json
CHANGED
@@ -67,30 +67,23 @@
|
|
67
67
|
"inputs": [
|
68
68
|
{
|
69
69
|
"internalType": "string",
|
70
|
-
"name": "
|
70
|
+
"name": "_marketName",
|
71
71
|
"type": "string"
|
72
72
|
},
|
73
73
|
{
|
74
74
|
"internalType": "enum MarketLib.MarketType",
|
75
|
-
"name": "
|
75
|
+
"name": "_marketType",
|
76
76
|
"type": "uint8"
|
77
77
|
}
|
78
78
|
],
|
79
79
|
"name": "createMarket",
|
80
|
-
"outputs": [
|
81
|
-
"stateMutability": "nonpayable",
|
82
|
-
"type": "function"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"inputs": [
|
80
|
+
"outputs": [
|
86
81
|
{
|
87
|
-
"internalType": "
|
88
|
-
"name": "
|
89
|
-
"type": "
|
82
|
+
"internalType": "uint256",
|
83
|
+
"name": "",
|
84
|
+
"type": "uint256"
|
90
85
|
}
|
91
86
|
],
|
92
|
-
"name": "destroyMarket",
|
93
|
-
"outputs": [],
|
94
87
|
"stateMutability": "nonpayable",
|
95
88
|
"type": "function"
|
96
89
|
},
|
@@ -148,6 +141,68 @@
|
|
148
141
|
"stateMutability": "nonpayable",
|
149
142
|
"type": "constructor"
|
150
143
|
},
|
144
|
+
{
|
145
|
+
"anonymous": false,
|
146
|
+
"inputs": [
|
147
|
+
{
|
148
|
+
"indexed": false,
|
149
|
+
"internalType": "address",
|
150
|
+
"name": "owner",
|
151
|
+
"type": "address"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"indexed": false,
|
155
|
+
"internalType": "address",
|
156
|
+
"name": "worker",
|
157
|
+
"type": "address"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "relationship",
|
163
|
+
"type": "address"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"indexed": false,
|
167
|
+
"internalType": "address",
|
168
|
+
"name": "market",
|
169
|
+
"type": "address"
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"name": "ContractCompleted",
|
173
|
+
"type": "event"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"anonymous": false,
|
177
|
+
"inputs": [
|
178
|
+
{
|
179
|
+
"indexed": false,
|
180
|
+
"internalType": "address",
|
181
|
+
"name": "owner",
|
182
|
+
"type": "address"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"indexed": false,
|
186
|
+
"internalType": "address",
|
187
|
+
"name": "worker",
|
188
|
+
"type": "address"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"indexed": false,
|
192
|
+
"internalType": "address",
|
193
|
+
"name": "relationship",
|
194
|
+
"type": "address"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"indexed": false,
|
198
|
+
"internalType": "address",
|
199
|
+
"name": "market",
|
200
|
+
"type": "address"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"name": "EnteredContract",
|
204
|
+
"type": "event"
|
205
|
+
},
|
151
206
|
{
|
152
207
|
"inputs": [],
|
153
208
|
"name": "REVIEW_TYPEHASH",
|
@@ -330,32 +385,6 @@
|
|
330
385
|
"stateMutability": "view",
|
331
386
|
"type": "function"
|
332
387
|
},
|
333
|
-
{
|
334
|
-
"inputs": [],
|
335
|
-
"name": "getRewardAddress",
|
336
|
-
"outputs": [
|
337
|
-
{
|
338
|
-
"internalType": "address",
|
339
|
-
"name": "",
|
340
|
-
"type": "address"
|
341
|
-
}
|
342
|
-
],
|
343
|
-
"stateMutability": "nonpayable",
|
344
|
-
"type": "function"
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"inputs": [],
|
348
|
-
"name": "getTaskSolutionPointer",
|
349
|
-
"outputs": [
|
350
|
-
{
|
351
|
-
"internalType": "bytes32",
|
352
|
-
"name": "",
|
353
|
-
"type": "bytes32"
|
354
|
-
}
|
355
|
-
],
|
356
|
-
"stateMutability": "view",
|
357
|
-
"type": "function"
|
358
|
-
},
|
359
388
|
{
|
360
389
|
"inputs": [],
|
361
390
|
"name": "market",
|
@@ -397,67 +426,8 @@
|
|
397
426
|
"type": "function"
|
398
427
|
},
|
399
428
|
{
|
400
|
-
"inputs": [
|
401
|
-
|
402
|
-
"internalType": "uint256",
|
403
|
-
"name": "averageMarketWorkerRep",
|
404
|
-
"type": "uint256"
|
405
|
-
},
|
406
|
-
{
|
407
|
-
"internalType": "uint8",
|
408
|
-
"name": "_evaluationScore",
|
409
|
-
"type": "uint8"
|
410
|
-
},
|
411
|
-
{
|
412
|
-
"internalType": "bool",
|
413
|
-
"name": "_approve",
|
414
|
-
"type": "bool"
|
415
|
-
},
|
416
|
-
{
|
417
|
-
"internalType": "uint8",
|
418
|
-
"name": "_v",
|
419
|
-
"type": "uint8"
|
420
|
-
},
|
421
|
-
{
|
422
|
-
"internalType": "bytes32",
|
423
|
-
"name": "_r",
|
424
|
-
"type": "bytes32"
|
425
|
-
},
|
426
|
-
{
|
427
|
-
"internalType": "bytes32",
|
428
|
-
"name": "_s",
|
429
|
-
"type": "bytes32"
|
430
|
-
}
|
431
|
-
],
|
432
|
-
"name": "review",
|
433
|
-
"outputs": [],
|
434
|
-
"stateMutability": "nonpayable",
|
435
|
-
"type": "function"
|
436
|
-
},
|
437
|
-
{
|
438
|
-
"inputs": [
|
439
|
-
{
|
440
|
-
"internalType": "bytes32",
|
441
|
-
"name": "_submission",
|
442
|
-
"type": "bytes32"
|
443
|
-
},
|
444
|
-
{
|
445
|
-
"internalType": "uint8",
|
446
|
-
"name": "_v",
|
447
|
-
"type": "uint8"
|
448
|
-
},
|
449
|
-
{
|
450
|
-
"internalType": "bytes32",
|
451
|
-
"name": "_r",
|
452
|
-
"type": "bytes32"
|
453
|
-
},
|
454
|
-
{
|
455
|
-
"internalType": "bytes32",
|
456
|
-
"name": "_s",
|
457
|
-
"type": "bytes32"
|
458
|
-
}
|
459
|
-
],
|
460
|
-
"name": "submit",
|
429
|
+
"inputs": [],
|
430
|
+
"name": "resolve",
|
461
431
|
"outputs": [],
|
462
432
|
"stateMutability": "nonpayable",
|
463
433
|
"type": "function"
|
@@ -604,15 +574,15 @@
|
|
604
574
|
{
|
605
575
|
"inputs": [
|
606
576
|
{
|
607
|
-
"internalType": "
|
577
|
+
"internalType": "address",
|
608
578
|
"name": "",
|
609
|
-
"type": "
|
579
|
+
"type": "address"
|
610
580
|
}
|
611
581
|
],
|
612
|
-
"name": "
|
582
|
+
"name": "_trueIdentifcations",
|
613
583
|
"outputs": [
|
614
584
|
{
|
615
|
-
"internalType": "
|
585
|
+
"internalType": "address",
|
616
586
|
"name": "",
|
617
587
|
"type": "address"
|
618
588
|
}
|
@@ -623,20 +593,20 @@
|
|
623
593
|
{
|
624
594
|
"inputs": [
|
625
595
|
{
|
626
|
-
"internalType": "
|
627
|
-
"name": "
|
628
|
-
"type": "
|
596
|
+
"internalType": "uint256",
|
597
|
+
"name": "",
|
598
|
+
"type": "uint256"
|
629
599
|
}
|
630
600
|
],
|
631
|
-
"name": "
|
601
|
+
"name": "_userSummaries",
|
632
602
|
"outputs": [
|
633
603
|
{
|
634
|
-
"internalType": "
|
604
|
+
"internalType": "contract UserSummary",
|
635
605
|
"name": "",
|
636
606
|
"type": "address"
|
637
607
|
}
|
638
608
|
],
|
639
|
-
"stateMutability": "
|
609
|
+
"stateMutability": "view",
|
640
610
|
"type": "function"
|
641
611
|
},
|
642
612
|
{
|
@@ -661,13 +631,7 @@
|
|
661
631
|
{
|
662
632
|
"inputs": [],
|
663
633
|
"name": "registerNewUser",
|
664
|
-
"outputs": [
|
665
|
-
{
|
666
|
-
"internalType": "address",
|
667
|
-
"name": "",
|
668
|
-
"type": "address"
|
669
|
-
}
|
670
|
-
],
|
634
|
+
"outputs": [],
|
671
635
|
"stateMutability": "nonpayable",
|
672
636
|
"type": "function"
|
673
637
|
}
|
@@ -760,7 +724,7 @@
|
|
760
724
|
},
|
761
725
|
{
|
762
726
|
"internalType": "string",
|
763
|
-
"name": "
|
727
|
+
"name": "_taskMetadataPointer",
|
764
728
|
"type": "string"
|
765
729
|
},
|
766
730
|
{
|