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.
@@ -67,30 +67,23 @@
67
67
  "inputs": [
68
68
  {
69
69
  "internalType": "string",
70
- "name": "marketName",
70
+ "name": "_marketName",
71
71
  "type": "string"
72
72
  },
73
73
  {
74
74
  "internalType": "enum MarketLib.MarketType",
75
- "name": "marketType",
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": "uint32",
88
- "name": "index",
89
- "type": "uint32"
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": "uint256",
577
+ "internalType": "address",
608
578
  "name": "",
609
- "type": "uint256"
579
+ "type": "address"
610
580
  }
611
581
  ],
612
- "name": "_userSummaries",
582
+ "name": "_trueIdentifcations",
613
583
  "outputs": [
614
584
  {
615
- "internalType": "contract UserSummary",
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": "address",
627
- "name": "universalAddress",
628
- "type": "address"
596
+ "internalType": "uint256",
597
+ "name": "",
598
+ "type": "uint256"
629
599
  }
630
600
  ],
631
- "name": "createUserSummary",
601
+ "name": "_userSummaries",
632
602
  "outputs": [
633
603
  {
634
- "internalType": "address",
604
+ "internalType": "contract UserSummary",
635
605
  "name": "",
636
606
  "type": "address"
637
607
  }
638
608
  ],
639
- "stateMutability": "nonpayable",
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": "taskMetadataPointer",
727
+ "name": "_taskMetadataPointer",
764
728
  "type": "string"
765
729
  },
766
730
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.661",
3
+ "version": "0.0.662",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -67,30 +67,23 @@
67
67
  "inputs": [
68
68
  {
69
69
  "internalType": "string",
70
- "name": "marketName",
70
+ "name": "_marketName",
71
71
  "type": "string"
72
72
  },
73
73
  {
74
74
  "internalType": "enum MarketLib.MarketType",
75
- "name": "marketType",
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": "uint32",
88
- "name": "index",
89
- "type": "uint32"
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": "uint256",
577
+ "internalType": "address",
608
578
  "name": "",
609
- "type": "uint256"
579
+ "type": "address"
610
580
  }
611
581
  ],
612
- "name": "_userSummaries",
582
+ "name": "_trueIdentifcations",
613
583
  "outputs": [
614
584
  {
615
- "internalType": "contract UserSummary",
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": "address",
627
- "name": "universalAddress",
628
- "type": "address"
596
+ "internalType": "uint256",
597
+ "name": "",
598
+ "type": "uint256"
629
599
  }
630
600
  ],
631
- "name": "createUserSummary",
601
+ "name": "_userSummaries",
632
602
  "outputs": [
633
603
  {
634
- "internalType": "address",
604
+ "internalType": "contract UserSummary",
635
605
  "name": "",
636
606
  "type": "address"
637
607
  }
638
608
  ],
639
- "stateMutability": "nonpayable",
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": "taskMetadataPointer",
727
+ "name": "_taskMetadataPointer",
764
728
  "type": "string"
765
729
  },
766
730
  {