opportunity-service 0.0.654 → 0.0.658

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,13 +23,16 @@ function registerNewUser() {
23
23
  throw new Error('Message sender is undefined');
24
24
  const userRegistrationInstance = new ethers.Contract(userRegistrationAddress, userRegistrationInterface, opportunityService.getProviderInterface());
25
25
  console.log('Checking true identificaiton of msgSender: ' + msgSender);
26
- console.log('The true identificaiton is: ' + userRegistrationInstance.getTrueIdentification(msgSender));
27
- if (userRegistrationInstance.getTrueIdentification(msgSender) == '0x0000000000000000000000000000000000000000') {
26
+ const id = yield userRegistrationInstance.getTrueIdentification(msgSender);
27
+ console.log('The true identificaiton is: ' + id);
28
+ if (id == '0x0000000000000000000000000000000000000000') {
28
29
  console.log('Registering new user: ' + msgSender);
29
- const tx = new Contract(addressMap[opportunityService.getEthNetwork()][Contracts.USER_REGISTRATION], abiMap[Contracts.USER_REGISTRATION]).connect(opportunityService.getSignersInterface())
30
+ const tx = yield new Contract(addressMap[opportunityService.getEthNetwork()][Contracts.USER_REGISTRATION], abiMap[Contracts.USER_REGISTRATION])
31
+ .connect(opportunityService.getSignersInterface())
30
32
  .registerNewUser({
31
33
  from: msgSender
32
34
  });
35
+ console.log(tx);
33
36
  const receipt = yield tx.wait();
34
37
  console.log('the receipt');
35
38
  console.log(receipt);
@@ -1 +1 @@
1
- {"version":3,"file":"register-new-user.js","sourceRoot":"","sources":["../../../src/api/identity/register-new-user.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AACvD,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,UAAU,MAAM,iCAAiC,CAAA;AACxD,OAAO,MAAM,MAAM,2BAA2B,CAAA;AAG9C,SAAe,eAAe;;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;YACzC,IAA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AC;qBACjB;yBAAM;wBACH,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;wBACjC,OAAO,CAAC,KAAK,CAAC,CAAA;qBACjB;iBACJ;qBAAM;oBACH,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;oBACtC,OAAO,CAAC,KAAK,CAAC,CAAA;iBACjB;aAGJ;YAAC,OAAM,KAAK,EAAE;gBACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;gBAClB,MAAM,CAAC,8DAA8D,CAAC,CAAA;aACzE;QACL,CAAC,CAAA,CAAC,CAAA;IACN,CAAC;CAAA;AAED,eAAe,eAAe,CAAC"}
@@ -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.654",
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": {
@@ -5,6 +5,7 @@ import { Contracts } from '../../constants';
5
5
  import addressMap from '../../blockchain/addresses.json'
6
6
  import abiMap from '../../blockchain/abi.json'
7
7
  import { Result } from 'ethers/lib/utils';
8
+ import { TransactionResponse } from '@ethersproject/providers';
8
9
 
9
10
  async function registerNewUser() {
10
11
  return new Promise(async (resolve, reject) => {
@@ -18,18 +19,21 @@ async function registerNewUser() {
18
19
  const userRegistrationInstance = new ethers.Contract(userRegistrationAddress, userRegistrationInterface, opportunityService.getProviderInterface())
19
20
 
20
21
  console.log('Checking true identificaiton of msgSender: ' + msgSender)
21
- console.log('The true identificaiton is: ' + userRegistrationInstance.getTrueIdentification(msgSender))
22
-
23
- if (userRegistrationInstance.getTrueIdentification(msgSender) == '0x0000000000000000000000000000000000000000')
22
+ const id = await userRegistrationInstance.getTrueIdentification(msgSender)
23
+ console.log('The true identificaiton is: ' + id)
24
+
25
+ if (id == '0x0000000000000000000000000000000000000000')
24
26
  {
25
27
  console.log('Registering new user: ' + msgSender)
26
- const tx = new Contract(
27
- addressMap[opportunityService.getEthNetwork()][Contracts.USER_REGISTRATION],
28
- abiMap[Contracts.USER_REGISTRATION]).connect(opportunityService.getSignersInterface())
28
+ const tx : TransactionResponse = await new Contract(
29
+ addressMap[opportunityService.getEthNetwork()][Contracts.USER_REGISTRATION], abiMap[Contracts.USER_REGISTRATION])
30
+ .connect(opportunityService.getSignersInterface())
29
31
  .registerNewUser({
30
32
  from: msgSender
31
33
  })
32
34
 
35
+ console.log(tx)
36
+
33
37
  const receipt = await tx.wait()
34
38
  console.log('the receipt')
35
39
  console.log(receipt)
@@ -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",