opportunity-service 0.0.515 → 0.0.519
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/OpportunityService.ts +4 -4
- package/src/api/internal/addresses.ts +5 -5
- package/src/sync/sync-markets.ts +1 -1
- package/dist/OpportunityService.js +0 -140
- package/dist/OpportunityService.js.map +0 -1
- package/dist/api/ethereum/sendAsync.js +0 -37
- package/dist/api/ethereum/sendAsync.js.map +0 -1
- package/dist/api/exchange/complete-relationship.js +0 -4
- package/dist/api/exchange/complete-relationship.js.map +0 -1
- package/dist/api/exchange/create-dispute.js +0 -41
- package/dist/api/exchange/create-dispute.js.map +0 -1
- package/dist/api/exchange/create-task.js +0 -70
- package/dist/api/exchange/create-task.js.map +0 -1
- package/dist/api/exchange/enter-work-relationship.js +0 -61
- package/dist/api/exchange/enter-work-relationship.js.map +0 -1
- package/dist/api/exchange/index.js +0 -1
- package/dist/api/exchange/index.js.map +0 -1
- package/dist/api/exchange/inspect-relationship.js +0 -6
- package/dist/api/exchange/inspect-relationship.js.map +0 -1
- package/dist/api/identity/register-new-user.js +0 -30
- package/dist/api/identity/register-new-user.js.map +0 -1
- package/dist/api/index.js +0 -43
- package/dist/api/index.js.map +0 -1
- package/dist/api/internal/abis.js +0 -9
- package/dist/api/internal/abis.js.map +0 -1
- package/dist/api/internal/addresses.js +0 -10
- package/dist/api/internal/addresses.js.map +0 -1
- package/dist/api/internal/events.js +0 -10
- package/dist/api/internal/events.js.map +0 -1
- package/dist/api/internal/index.js +0 -5
- package/dist/api/internal/index.js.map +0 -1
- package/dist/api/market/create-market.js +0 -4
- package/dist/api/market/create-market.js.map +0 -1
- package/dist/api/voting/census.js +0 -38
- package/dist/api/voting/census.js.map +0 -1
- package/dist/api/voting/connect.js +0 -33
- package/dist/api/voting/connect.js.map +0 -1
- package/dist/api/voting/entity.js +0 -39
- package/dist/api/voting/entity.js.map +0 -1
- package/dist/api/voting/process.js +0 -101
- package/dist/api/voting/process.js.map +0 -1
- package/dist/blockchain/abi.json +0 -955
- package/dist/blockchain/addresses.json +0 -14
- package/dist/blockchain/blocks.json +0 -3
- package/dist/blockchain/bytecode.json +0 -4
- package/dist/constants/interface.js +0 -1
- package/dist/constants/interface.js.map +0 -1
- package/dist/constants/voting.js +0 -1
- package/dist/constants/voting.js.map +0 -1
- package/dist/constants.js +0 -93
- package/dist/constants.js.map +0 -1
- package/dist/events/OpportunityEventEmitter.js +0 -32
- package/dist/events/OpportunityEventEmitter.js.map +0 -1
- package/dist/events/get-log.js +0 -1
- package/dist/events/get-log.js.map +0 -1
- package/dist/events/start-event-listeners.js +0 -9
- package/dist/events/start-event-listeners.js.map +0 -1
- package/dist/events/sync-with-ethereum-node.js +0 -20
- package/dist/events/sync-with-ethereum-node.js.map +0 -1
- package/dist/gas.js +0 -1
- package/dist/gas.js.map +0 -1
- package/dist/logger.js +0 -1
- package/dist/logger.js.map +0 -1
- package/dist/modules/storage/OpportunityStorageProvider.js +0 -64
- package/dist/modules/storage/OpportunityStorageProvider.js.map +0 -1
- package/dist/sync/process/process-log.js +0 -69
- package/dist/sync/process/process-log.js.map +0 -1
- package/dist/sync/process/processDisputeCreated.js +0 -33
- package/dist/sync/process/processDisputeCreated.js.map +0 -1
- package/dist/sync/process/processMarketCreatedLog.js +0 -33
- package/dist/sync/process/processMarketCreatedLog.js.map +0 -1
- package/dist/sync/process/processMarketDestroyedEvent.js +0 -10
- package/dist/sync/process/processMarketDestroyedEvent.js.map +0 -1
- package/dist/sync/process/processUserAssignedTrueIdentification.js +0 -21
- package/dist/sync/process/processUserAssignedTrueIdentification.js.map +0 -1
- package/dist/sync/process/processUserRegistered.js +0 -20
- package/dist/sync/process/processUserRegistered.js.map +0 -1
- package/dist/sync/process/processUserSummaryCreated.js +0 -22
- package/dist/sync/process/processUserSummaryCreated.js.map +0 -1
- package/dist/sync/process/processWorkRelationshipCreated.js +0 -38
- package/dist/sync/process/processWorkRelationshipCreated.js.map +0 -1
- package/dist/sync/sync-jobs.js +0 -33
- package/dist/sync/sync-jobs.js.map +0 -1
- package/dist/sync/sync-markets.js +0 -35
- package/dist/sync/sync-markets.js.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/util.js +0 -1
- package/dist/util.js.map +0 -1
package/dist/blockchain/abi.json
DELETED
@@ -1,955 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"MarketFactory": [
|
3
|
-
{
|
4
|
-
"anonymous": false,
|
5
|
-
"inputs": [
|
6
|
-
{
|
7
|
-
"indexed": true,
|
8
|
-
"internalType": "address",
|
9
|
-
"name": "_market",
|
10
|
-
"type": "address"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"indexed": true,
|
14
|
-
"internalType": "uint256",
|
15
|
-
"name": "index",
|
16
|
-
"type": "uint256"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"indexed": false,
|
20
|
-
"internalType": "address",
|
21
|
-
"name": "owner",
|
22
|
-
"type": "address"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"indexed": false,
|
26
|
-
"internalType": "string",
|
27
|
-
"name": "marketName",
|
28
|
-
"type": "string"
|
29
|
-
}
|
30
|
-
],
|
31
|
-
"name": "MarketCreated",
|
32
|
-
"type": "event"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"anonymous": false,
|
36
|
-
"inputs": [
|
37
|
-
{
|
38
|
-
"indexed": true,
|
39
|
-
"internalType": "address",
|
40
|
-
"name": "_marketAddress",
|
41
|
-
"type": "address"
|
42
|
-
}
|
43
|
-
],
|
44
|
-
"name": "MarketDestroyed",
|
45
|
-
"type": "event"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"inputs": [
|
49
|
-
{
|
50
|
-
"internalType": "string",
|
51
|
-
"name": "marketName",
|
52
|
-
"type": "string"
|
53
|
-
},
|
54
|
-
{
|
55
|
-
"internalType": "enum MarketLib.MarketType",
|
56
|
-
"name": "marketType",
|
57
|
-
"type": "uint8"
|
58
|
-
}
|
59
|
-
],
|
60
|
-
"name": "createMarket",
|
61
|
-
"outputs": [],
|
62
|
-
"stateMutability": "nonpayable",
|
63
|
-
"type": "function"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"inputs": [
|
67
|
-
{
|
68
|
-
"internalType": "uint32",
|
69
|
-
"name": "index",
|
70
|
-
"type": "uint32"
|
71
|
-
}
|
72
|
-
],
|
73
|
-
"name": "destroyMarket",
|
74
|
-
"outputs": [],
|
75
|
-
"stateMutability": "nonpayable",
|
76
|
-
"type": "function"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"inputs": [],
|
80
|
-
"name": "getNumMarkets",
|
81
|
-
"outputs": [
|
82
|
-
{
|
83
|
-
"internalType": "uint256",
|
84
|
-
"name": "",
|
85
|
-
"type": "uint256"
|
86
|
-
}
|
87
|
-
],
|
88
|
-
"stateMutability": "view",
|
89
|
-
"type": "function"
|
90
|
-
}
|
91
|
-
],
|
92
|
-
"WorkRelationship": [
|
93
|
-
{
|
94
|
-
"inputs": [
|
95
|
-
{
|
96
|
-
"internalType": "address",
|
97
|
-
"name": "_owner",
|
98
|
-
"type": "address"
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"internalType": "enum Evaluation.ContractType",
|
102
|
-
"name": "_contractType",
|
103
|
-
"type": "uint8"
|
104
|
-
},
|
105
|
-
{
|
106
|
-
"internalType": "string",
|
107
|
-
"name": "_taskMetadataPointer",
|
108
|
-
"type": "string"
|
109
|
-
},
|
110
|
-
{
|
111
|
-
"internalType": "address",
|
112
|
-
"name": "_daiTokenAddress",
|
113
|
-
"type": "address"
|
114
|
-
},
|
115
|
-
{
|
116
|
-
"internalType": "address",
|
117
|
-
"name": "_cDaiTokenAddress",
|
118
|
-
"type": "address"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"internalType": "address",
|
122
|
-
"name": "_banker",
|
123
|
-
"type": "address"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"stateMutability": "nonpayable",
|
127
|
-
"type": "constructor"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"inputs": [],
|
131
|
-
"name": "REVIEW_TYPEHASH",
|
132
|
-
"outputs": [
|
133
|
-
{
|
134
|
-
"internalType": "bytes32",
|
135
|
-
"name": "",
|
136
|
-
"type": "bytes32"
|
137
|
-
}
|
138
|
-
],
|
139
|
-
"stateMutability": "view",
|
140
|
-
"type": "function"
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"inputs": [],
|
144
|
-
"name": "SUBMIT_TYPEHASH",
|
145
|
-
"outputs": [
|
146
|
-
{
|
147
|
-
"internalType": "bytes32",
|
148
|
-
"name": "",
|
149
|
-
"type": "bytes32"
|
150
|
-
}
|
151
|
-
],
|
152
|
-
"stateMutability": "view",
|
153
|
-
"type": "function"
|
154
|
-
},
|
155
|
-
{
|
156
|
-
"inputs": [],
|
157
|
-
"name": "WORK_TYPEHASH",
|
158
|
-
"outputs": [
|
159
|
-
{
|
160
|
-
"internalType": "bytes32",
|
161
|
-
"name": "",
|
162
|
-
"type": "bytes32"
|
163
|
-
}
|
164
|
-
],
|
165
|
-
"stateMutability": "view",
|
166
|
-
"type": "function"
|
167
|
-
},
|
168
|
-
{
|
169
|
-
"inputs": [
|
170
|
-
{
|
171
|
-
"internalType": "address payable",
|
172
|
-
"name": "_newWorker",
|
173
|
-
"type": "address"
|
174
|
-
},
|
175
|
-
{
|
176
|
-
"internalType": "uint256",
|
177
|
-
"name": "_wad",
|
178
|
-
"type": "uint256"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"internalType": "uint256",
|
182
|
-
"name": "nonce",
|
183
|
-
"type": "uint256"
|
184
|
-
},
|
185
|
-
{
|
186
|
-
"internalType": "uint256",
|
187
|
-
"name": "expiry",
|
188
|
-
"type": "uint256"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"internalType": "uint8",
|
192
|
-
"name": "eV",
|
193
|
-
"type": "uint8"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"internalType": "bytes32",
|
197
|
-
"name": "eR",
|
198
|
-
"type": "bytes32"
|
199
|
-
},
|
200
|
-
{
|
201
|
-
"internalType": "bytes32",
|
202
|
-
"name": "eS",
|
203
|
-
"type": "bytes32"
|
204
|
-
},
|
205
|
-
{
|
206
|
-
"internalType": "uint8",
|
207
|
-
"name": "vDeny",
|
208
|
-
"type": "uint8"
|
209
|
-
},
|
210
|
-
{
|
211
|
-
"internalType": "bytes32",
|
212
|
-
"name": "rDeny",
|
213
|
-
"type": "bytes32"
|
214
|
-
},
|
215
|
-
{
|
216
|
-
"internalType": "bytes32",
|
217
|
-
"name": "sDeny",
|
218
|
-
"type": "bytes32"
|
219
|
-
}
|
220
|
-
],
|
221
|
-
"name": "assignNewWorker",
|
222
|
-
"outputs": [],
|
223
|
-
"stateMutability": "nonpayable",
|
224
|
-
"type": "function"
|
225
|
-
},
|
226
|
-
{
|
227
|
-
"inputs": [
|
228
|
-
{
|
229
|
-
"internalType": "address",
|
230
|
-
"name": "workerUniversalAddress",
|
231
|
-
"type": "address"
|
232
|
-
},
|
233
|
-
{
|
234
|
-
"components": [
|
235
|
-
{
|
236
|
-
"internalType": "string",
|
237
|
-
"name": "industry",
|
238
|
-
"type": "string"
|
239
|
-
},
|
240
|
-
{
|
241
|
-
"internalType": "uint256",
|
242
|
-
"name": "industrylevel",
|
243
|
-
"type": "uint256"
|
244
|
-
},
|
245
|
-
{
|
246
|
-
"internalType": "uint256",
|
247
|
-
"name": "reputation",
|
248
|
-
"type": "uint256"
|
249
|
-
}
|
250
|
-
],
|
251
|
-
"internalType": "struct Evaluation.EvaluationState",
|
252
|
-
"name": "evaluationState",
|
253
|
-
"type": "tuple"
|
254
|
-
}
|
255
|
-
],
|
256
|
-
"name": "checkWorkerEvaluation",
|
257
|
-
"outputs": [
|
258
|
-
{
|
259
|
-
"internalType": "bool",
|
260
|
-
"name": "",
|
261
|
-
"type": "bool"
|
262
|
-
}
|
263
|
-
],
|
264
|
-
"stateMutability": "nonpayable",
|
265
|
-
"type": "function"
|
266
|
-
},
|
267
|
-
{
|
268
|
-
"inputs": [],
|
269
|
-
"name": "contractOwnership",
|
270
|
-
"outputs": [
|
271
|
-
{
|
272
|
-
"internalType": "enum WorkRelationship.ContractOwnership",
|
273
|
-
"name": "",
|
274
|
-
"type": "uint8"
|
275
|
-
}
|
276
|
-
],
|
277
|
-
"stateMutability": "view",
|
278
|
-
"type": "function"
|
279
|
-
},
|
280
|
-
{
|
281
|
-
"inputs": [],
|
282
|
-
"name": "contractState",
|
283
|
-
"outputs": [
|
284
|
-
{
|
285
|
-
"internalType": "enum WorkRelationship.ContractState",
|
286
|
-
"name": "",
|
287
|
-
"type": "uint8"
|
288
|
-
}
|
289
|
-
],
|
290
|
-
"stateMutability": "view",
|
291
|
-
"type": "function"
|
292
|
-
},
|
293
|
-
{
|
294
|
-
"inputs": [],
|
295
|
-
"name": "contractStatus",
|
296
|
-
"outputs": [
|
297
|
-
{
|
298
|
-
"internalType": "enum WorkRelationship.ContractStatus",
|
299
|
-
"name": "",
|
300
|
-
"type": "uint8"
|
301
|
-
}
|
302
|
-
],
|
303
|
-
"stateMutability": "view",
|
304
|
-
"type": "function"
|
305
|
-
},
|
306
|
-
{
|
307
|
-
"inputs": [],
|
308
|
-
"name": "contractType",
|
309
|
-
"outputs": [
|
310
|
-
{
|
311
|
-
"internalType": "enum Evaluation.ContractType",
|
312
|
-
"name": "",
|
313
|
-
"type": "uint8"
|
314
|
-
}
|
315
|
-
],
|
316
|
-
"stateMutability": "view",
|
317
|
-
"type": "function"
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"inputs": [],
|
321
|
-
"name": "domain_separator",
|
322
|
-
"outputs": [
|
323
|
-
{
|
324
|
-
"internalType": "bytes32",
|
325
|
-
"name": "",
|
326
|
-
"type": "bytes32"
|
327
|
-
}
|
328
|
-
],
|
329
|
-
"stateMutability": "view",
|
330
|
-
"type": "function"
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"inputs": [],
|
334
|
-
"name": "getTaskSolutionPointer",
|
335
|
-
"outputs": [
|
336
|
-
{
|
337
|
-
"internalType": "bytes32",
|
338
|
-
"name": "",
|
339
|
-
"type": "bytes32"
|
340
|
-
}
|
341
|
-
],
|
342
|
-
"stateMutability": "view",
|
343
|
-
"type": "function"
|
344
|
-
},
|
345
|
-
{
|
346
|
-
"inputs": [],
|
347
|
-
"name": "owner",
|
348
|
-
"outputs": [
|
349
|
-
{
|
350
|
-
"internalType": "address",
|
351
|
-
"name": "",
|
352
|
-
"type": "address"
|
353
|
-
}
|
354
|
-
],
|
355
|
-
"stateMutability": "view",
|
356
|
-
"type": "function"
|
357
|
-
},
|
358
|
-
{
|
359
|
-
"inputs": [
|
360
|
-
{
|
361
|
-
"internalType": "bool",
|
362
|
-
"name": "_approve",
|
363
|
-
"type": "bool"
|
364
|
-
},
|
365
|
-
{
|
366
|
-
"internalType": "uint8",
|
367
|
-
"name": "_v",
|
368
|
-
"type": "uint8"
|
369
|
-
},
|
370
|
-
{
|
371
|
-
"internalType": "bytes32",
|
372
|
-
"name": "_r",
|
373
|
-
"type": "bytes32"
|
374
|
-
},
|
375
|
-
{
|
376
|
-
"internalType": "bytes32",
|
377
|
-
"name": "_s",
|
378
|
-
"type": "bytes32"
|
379
|
-
}
|
380
|
-
],
|
381
|
-
"name": "review",
|
382
|
-
"outputs": [],
|
383
|
-
"stateMutability": "nonpayable",
|
384
|
-
"type": "function"
|
385
|
-
},
|
386
|
-
{
|
387
|
-
"inputs": [
|
388
|
-
{
|
389
|
-
"internalType": "bytes32",
|
390
|
-
"name": "_submission",
|
391
|
-
"type": "bytes32"
|
392
|
-
},
|
393
|
-
{
|
394
|
-
"internalType": "uint8",
|
395
|
-
"name": "_v",
|
396
|
-
"type": "uint8"
|
397
|
-
},
|
398
|
-
{
|
399
|
-
"internalType": "bytes32",
|
400
|
-
"name": "_r",
|
401
|
-
"type": "bytes32"
|
402
|
-
},
|
403
|
-
{
|
404
|
-
"internalType": "bytes32",
|
405
|
-
"name": "_s",
|
406
|
-
"type": "bytes32"
|
407
|
-
}
|
408
|
-
],
|
409
|
-
"name": "submit",
|
410
|
-
"outputs": [],
|
411
|
-
"stateMutability": "nonpayable",
|
412
|
-
"type": "function"
|
413
|
-
},
|
414
|
-
{
|
415
|
-
"inputs": [],
|
416
|
-
"name": "taskMetadataPointer",
|
417
|
-
"outputs": [
|
418
|
-
{
|
419
|
-
"internalType": "string",
|
420
|
-
"name": "",
|
421
|
-
"type": "string"
|
422
|
-
}
|
423
|
-
],
|
424
|
-
"stateMutability": "view",
|
425
|
-
"type": "function"
|
426
|
-
},
|
427
|
-
{
|
428
|
-
"inputs": [
|
429
|
-
{
|
430
|
-
"internalType": "string",
|
431
|
-
"name": "newTaskPointerHash",
|
432
|
-
"type": "string"
|
433
|
-
}
|
434
|
-
],
|
435
|
-
"name": "updateTaskMetadataPointer",
|
436
|
-
"outputs": [],
|
437
|
-
"stateMutability": "nonpayable",
|
438
|
-
"type": "function"
|
439
|
-
},
|
440
|
-
{
|
441
|
-
"inputs": [],
|
442
|
-
"name": "wad",
|
443
|
-
"outputs": [
|
444
|
-
{
|
445
|
-
"internalType": "uint256",
|
446
|
-
"name": "",
|
447
|
-
"type": "uint256"
|
448
|
-
}
|
449
|
-
],
|
450
|
-
"stateMutability": "view",
|
451
|
-
"type": "function"
|
452
|
-
},
|
453
|
-
{
|
454
|
-
"inputs": [
|
455
|
-
{
|
456
|
-
"internalType": "bool",
|
457
|
-
"name": "_accepted",
|
458
|
-
"type": "bool"
|
459
|
-
},
|
460
|
-
{
|
461
|
-
"internalType": "uint8",
|
462
|
-
"name": "wV",
|
463
|
-
"type": "uint8"
|
464
|
-
},
|
465
|
-
{
|
466
|
-
"internalType": "bytes32",
|
467
|
-
"name": "wR",
|
468
|
-
"type": "bytes32"
|
469
|
-
},
|
470
|
-
{
|
471
|
-
"internalType": "bytes32",
|
472
|
-
"name": "wS",
|
473
|
-
"type": "bytes32"
|
474
|
-
}
|
475
|
-
],
|
476
|
-
"name": "work",
|
477
|
-
"outputs": [],
|
478
|
-
"stateMutability": "nonpayable",
|
479
|
-
"type": "function"
|
480
|
-
},
|
481
|
-
{
|
482
|
-
"inputs": [],
|
483
|
-
"name": "worker",
|
484
|
-
"outputs": [
|
485
|
-
{
|
486
|
-
"internalType": "address",
|
487
|
-
"name": "",
|
488
|
-
"type": "address"
|
489
|
-
}
|
490
|
-
],
|
491
|
-
"stateMutability": "view",
|
492
|
-
"type": "function"
|
493
|
-
}
|
494
|
-
],
|
495
|
-
"UserRegistration": [
|
496
|
-
{
|
497
|
-
"inputs": [
|
498
|
-
{
|
499
|
-
"internalType": "address",
|
500
|
-
"name": "userSummaryFactoryAddress",
|
501
|
-
"type": "address"
|
502
|
-
}
|
503
|
-
],
|
504
|
-
"stateMutability": "nonpayable",
|
505
|
-
"type": "constructor"
|
506
|
-
},
|
507
|
-
{
|
508
|
-
"anonymous": false,
|
509
|
-
"inputs": [
|
510
|
-
{
|
511
|
-
"indexed": true,
|
512
|
-
"internalType": "address",
|
513
|
-
"name": "universalAddress",
|
514
|
-
"type": "address"
|
515
|
-
},
|
516
|
-
{
|
517
|
-
"indexed": true,
|
518
|
-
"internalType": "address",
|
519
|
-
"name": "userSummaryContractAddress",
|
520
|
-
"type": "address"
|
521
|
-
}
|
522
|
-
],
|
523
|
-
"name": "UserAssignedTrueIdentification",
|
524
|
-
"type": "event"
|
525
|
-
},
|
526
|
-
{
|
527
|
-
"anonymous": false,
|
528
|
-
"inputs": [
|
529
|
-
{
|
530
|
-
"indexed": true,
|
531
|
-
"internalType": "address",
|
532
|
-
"name": "universalAddress",
|
533
|
-
"type": "address"
|
534
|
-
}
|
535
|
-
],
|
536
|
-
"name": "UserRegistered",
|
537
|
-
"type": "event"
|
538
|
-
},
|
539
|
-
{
|
540
|
-
"inputs": [
|
541
|
-
{
|
542
|
-
"internalType": "address",
|
543
|
-
"name": "universalAddress",
|
544
|
-
"type": "address"
|
545
|
-
}
|
546
|
-
],
|
547
|
-
"name": "getTrueIdentification",
|
548
|
-
"outputs": [
|
549
|
-
{
|
550
|
-
"internalType": "address",
|
551
|
-
"name": "",
|
552
|
-
"type": "address"
|
553
|
-
}
|
554
|
-
],
|
555
|
-
"stateMutability": "view",
|
556
|
-
"type": "function"
|
557
|
-
},
|
558
|
-
{
|
559
|
-
"inputs": [
|
560
|
-
{
|
561
|
-
"internalType": "address",
|
562
|
-
"name": "universalAddress",
|
563
|
-
"type": "address"
|
564
|
-
}
|
565
|
-
],
|
566
|
-
"name": "registerNewUser",
|
567
|
-
"outputs": [
|
568
|
-
{
|
569
|
-
"internalType": "address",
|
570
|
-
"name": "",
|
571
|
-
"type": "address"
|
572
|
-
}
|
573
|
-
],
|
574
|
-
"stateMutability": "nonpayable",
|
575
|
-
"type": "function"
|
576
|
-
}
|
577
|
-
],
|
578
|
-
"Market": [
|
579
|
-
{
|
580
|
-
"inputs": [
|
581
|
-
{
|
582
|
-
"internalType": "string",
|
583
|
-
"name": "marketName",
|
584
|
-
"type": "string"
|
585
|
-
},
|
586
|
-
{
|
587
|
-
"internalType": "enum MarketLib.MarketType",
|
588
|
-
"name": "marketType",
|
589
|
-
"type": "uint8"
|
590
|
-
}
|
591
|
-
],
|
592
|
-
"stateMutability": "nonpayable",
|
593
|
-
"type": "constructor"
|
594
|
-
},
|
595
|
-
{
|
596
|
-
"anonymous": false,
|
597
|
-
"inputs": [
|
598
|
-
{
|
599
|
-
"indexed": true,
|
600
|
-
"internalType": "address",
|
601
|
-
"name": "marketAddress",
|
602
|
-
"type": "address"
|
603
|
-
},
|
604
|
-
{
|
605
|
-
"indexed": true,
|
606
|
-
"internalType": "string",
|
607
|
-
"name": "marketName",
|
608
|
-
"type": "string"
|
609
|
-
}
|
610
|
-
],
|
611
|
-
"name": "MarketPaused",
|
612
|
-
"type": "event"
|
613
|
-
},
|
614
|
-
{
|
615
|
-
"anonymous": false,
|
616
|
-
"inputs": [
|
617
|
-
{
|
618
|
-
"indexed": true,
|
619
|
-
"internalType": "address",
|
620
|
-
"name": "marketAddress",
|
621
|
-
"type": "address"
|
622
|
-
},
|
623
|
-
{
|
624
|
-
"indexed": true,
|
625
|
-
"internalType": "string",
|
626
|
-
"name": "marketName",
|
627
|
-
"type": "string"
|
628
|
-
}
|
629
|
-
],
|
630
|
-
"name": "MarketResumed",
|
631
|
-
"type": "event"
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"anonymous": false,
|
635
|
-
"inputs": [
|
636
|
-
{
|
637
|
-
"indexed": true,
|
638
|
-
"internalType": "address",
|
639
|
-
"name": "owner",
|
640
|
-
"type": "address"
|
641
|
-
},
|
642
|
-
{
|
643
|
-
"indexed": true,
|
644
|
-
"internalType": "address",
|
645
|
-
"name": "relationship",
|
646
|
-
"type": "address"
|
647
|
-
},
|
648
|
-
{
|
649
|
-
"indexed": true,
|
650
|
-
"internalType": "address",
|
651
|
-
"name": "marketAddress",
|
652
|
-
"type": "address"
|
653
|
-
}
|
654
|
-
],
|
655
|
-
"name": "WorkRelationshipCreated",
|
656
|
-
"type": "event"
|
657
|
-
},
|
658
|
-
{
|
659
|
-
"anonymous": false,
|
660
|
-
"inputs": [
|
661
|
-
{
|
662
|
-
"indexed": true,
|
663
|
-
"internalType": "address",
|
664
|
-
"name": "owner",
|
665
|
-
"type": "address"
|
666
|
-
},
|
667
|
-
{
|
668
|
-
"indexed": true,
|
669
|
-
"internalType": "address",
|
670
|
-
"name": "relationship",
|
671
|
-
"type": "address"
|
672
|
-
}
|
673
|
-
],
|
674
|
-
"name": "WorkRelationshipEnded",
|
675
|
-
"type": "event"
|
676
|
-
},
|
677
|
-
{
|
678
|
-
"inputs": [],
|
679
|
-
"name": "_marketName",
|
680
|
-
"outputs": [
|
681
|
-
{
|
682
|
-
"internalType": "string",
|
683
|
-
"name": "",
|
684
|
-
"type": "string"
|
685
|
-
}
|
686
|
-
],
|
687
|
-
"stateMutability": "view",
|
688
|
-
"type": "function"
|
689
|
-
},
|
690
|
-
{
|
691
|
-
"inputs": [],
|
692
|
-
"name": "_marketStatus",
|
693
|
-
"outputs": [
|
694
|
-
{
|
695
|
-
"internalType": "enum MarketLib.MarketStatus",
|
696
|
-
"name": "",
|
697
|
-
"type": "uint8"
|
698
|
-
}
|
699
|
-
],
|
700
|
-
"stateMutability": "view",
|
701
|
-
"type": "function"
|
702
|
-
},
|
703
|
-
{
|
704
|
-
"inputs": [],
|
705
|
-
"name": "_marketType",
|
706
|
-
"outputs": [
|
707
|
-
{
|
708
|
-
"internalType": "enum MarketLib.MarketType",
|
709
|
-
"name": "",
|
710
|
-
"type": "uint8"
|
711
|
-
}
|
712
|
-
],
|
713
|
-
"stateMutability": "view",
|
714
|
-
"type": "function"
|
715
|
-
},
|
716
|
-
{
|
717
|
-
"inputs": [],
|
718
|
-
"name": "_requiredIndustryWeight",
|
719
|
-
"outputs": [
|
720
|
-
{
|
721
|
-
"internalType": "uint256",
|
722
|
-
"name": "",
|
723
|
-
"type": "uint256"
|
724
|
-
}
|
725
|
-
],
|
726
|
-
"stateMutability": "view",
|
727
|
-
"type": "function"
|
728
|
-
},
|
729
|
-
{
|
730
|
-
"inputs": [],
|
731
|
-
"name": "_requiredReputation",
|
732
|
-
"outputs": [
|
733
|
-
{
|
734
|
-
"internalType": "uint256",
|
735
|
-
"name": "",
|
736
|
-
"type": "uint256"
|
737
|
-
}
|
738
|
-
],
|
739
|
-
"stateMutability": "view",
|
740
|
-
"type": "function"
|
741
|
-
},
|
742
|
-
{
|
743
|
-
"inputs": [
|
744
|
-
{
|
745
|
-
"internalType": "address",
|
746
|
-
"name": "taskOwner",
|
747
|
-
"type": "address"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"internalType": "enum Evaluation.ContractType",
|
751
|
-
"name": "_contractType",
|
752
|
-
"type": "uint8"
|
753
|
-
},
|
754
|
-
{
|
755
|
-
"internalType": "string",
|
756
|
-
"name": "taskMetadataPointer",
|
757
|
-
"type": "string"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"internalType": "address",
|
761
|
-
"name": "_daiTokenAddress",
|
762
|
-
"type": "address"
|
763
|
-
},
|
764
|
-
{
|
765
|
-
"internalType": "address",
|
766
|
-
"name": "_cDaiTokenAddress",
|
767
|
-
"type": "address"
|
768
|
-
},
|
769
|
-
{
|
770
|
-
"internalType": "address",
|
771
|
-
"name": "_banker",
|
772
|
-
"type": "address"
|
773
|
-
}
|
774
|
-
],
|
775
|
-
"name": "createJob",
|
776
|
-
"outputs": [],
|
777
|
-
"stateMutability": "nonpayable",
|
778
|
-
"type": "function"
|
779
|
-
},
|
780
|
-
{
|
781
|
-
"inputs": [],
|
782
|
-
"name": "getNumJobs",
|
783
|
-
"outputs": [
|
784
|
-
{
|
785
|
-
"internalType": "uint256",
|
786
|
-
"name": "",
|
787
|
-
"type": "uint256"
|
788
|
-
}
|
789
|
-
],
|
790
|
-
"stateMutability": "view",
|
791
|
-
"type": "function"
|
792
|
-
},
|
793
|
-
{
|
794
|
-
"inputs": [],
|
795
|
-
"name": "getWorkRelationships",
|
796
|
-
"outputs": [
|
797
|
-
{
|
798
|
-
"internalType": "contract WorkRelationship[]",
|
799
|
-
"name": "",
|
800
|
-
"type": "address[]"
|
801
|
-
}
|
802
|
-
],
|
803
|
-
"stateMutability": "view",
|
804
|
-
"type": "function"
|
805
|
-
}
|
806
|
-
],
|
807
|
-
"Dai": [{ "inputs": [{ "internalType": "uint256", "name": "chainId_", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": true, "internalType": "address", "name": "guy", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": true, "inputs": [{ "indexed": true, "internalType": "bytes4", "name": "sig", "type": "bytes4" }, { "indexed": true, "internalType": "address", "name": "usr", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "arg1", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "arg2", "type": "bytes32" }, { "indexed": false, "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "LogNote", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dst", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "constant": true, "inputs": [], "name": "DOMAIN_SEPARATOR", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "PERMIT_TYPEHASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "guy", "type": "address" }], "name": "deny", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "move", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "nonces", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, { "internalType": "bool", "name": "allowed", "type": "bool" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "permit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "pull", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "push", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "guy", "type": "address" }], "name": "rely", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "version", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "wards", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }],
|
808
|
-
"Banker": [
|
809
|
-
{
|
810
|
-
"anonymous": false,
|
811
|
-
"inputs": [
|
812
|
-
{
|
813
|
-
"indexed": false,
|
814
|
-
"internalType": "address",
|
815
|
-
"name": "donor",
|
816
|
-
"type": "address"
|
817
|
-
},
|
818
|
-
{
|
819
|
-
"indexed": false,
|
820
|
-
"internalType": "uint256",
|
821
|
-
"name": "amount",
|
822
|
-
"type": "uint256"
|
823
|
-
}
|
824
|
-
],
|
825
|
-
"name": "ERC20Redeemed",
|
826
|
-
"type": "event"
|
827
|
-
},
|
828
|
-
{
|
829
|
-
"anonymous": false,
|
830
|
-
"inputs": [
|
831
|
-
{
|
832
|
-
"indexed": false,
|
833
|
-
"internalType": "address",
|
834
|
-
"name": "donor",
|
835
|
-
"type": "address"
|
836
|
-
},
|
837
|
-
{
|
838
|
-
"indexed": false,
|
839
|
-
"internalType": "uint256",
|
840
|
-
"name": "amount",
|
841
|
-
"type": "uint256"
|
842
|
-
}
|
843
|
-
],
|
844
|
-
"name": "ERC20Supplied",
|
845
|
-
"type": "event"
|
846
|
-
},
|
847
|
-
{
|
848
|
-
"inputs": [
|
849
|
-
{
|
850
|
-
"internalType": "address",
|
851
|
-
"name": "",
|
852
|
-
"type": "address"
|
853
|
-
}
|
854
|
-
],
|
855
|
-
"name": "addressToLendAmount",
|
856
|
-
"outputs": [
|
857
|
-
{
|
858
|
-
"internalType": "uint256",
|
859
|
-
"name": "",
|
860
|
-
"type": "uint256"
|
861
|
-
}
|
862
|
-
],
|
863
|
-
"stateMutability": "view",
|
864
|
-
"type": "function"
|
865
|
-
},
|
866
|
-
{
|
867
|
-
"inputs": [
|
868
|
-
{
|
869
|
-
"internalType": "address",
|
870
|
-
"name": "_donor",
|
871
|
-
"type": "address"
|
872
|
-
}
|
873
|
-
],
|
874
|
-
"name": "checkRedeemableAmount",
|
875
|
-
"outputs": [
|
876
|
-
{
|
877
|
-
"internalType": "uint256",
|
878
|
-
"name": "",
|
879
|
-
"type": "uint256"
|
880
|
-
}
|
881
|
-
],
|
882
|
-
"stateMutability": "nonpayable",
|
883
|
-
"type": "function"
|
884
|
-
},
|
885
|
-
{
|
886
|
-
"inputs": [
|
887
|
-
{
|
888
|
-
"internalType": "uint256",
|
889
|
-
"name": "amount",
|
890
|
-
"type": "uint256"
|
891
|
-
},
|
892
|
-
{
|
893
|
-
"internalType": "bool",
|
894
|
-
"name": "redeemType",
|
895
|
-
"type": "bool"
|
896
|
-
},
|
897
|
-
{
|
898
|
-
"internalType": "address",
|
899
|
-
"name": "_cErc20Contract",
|
900
|
-
"type": "address"
|
901
|
-
},
|
902
|
-
{
|
903
|
-
"internalType": "address",
|
904
|
-
"name": "_donor",
|
905
|
-
"type": "address"
|
906
|
-
}
|
907
|
-
],
|
908
|
-
"name": "redeemCErc20Tokens",
|
909
|
-
"outputs": [
|
910
|
-
{
|
911
|
-
"internalType": "bool",
|
912
|
-
"name": "",
|
913
|
-
"type": "bool"
|
914
|
-
}
|
915
|
-
],
|
916
|
-
"stateMutability": "nonpayable",
|
917
|
-
"type": "function"
|
918
|
-
},
|
919
|
-
{
|
920
|
-
"inputs": [
|
921
|
-
{
|
922
|
-
"internalType": "address",
|
923
|
-
"name": "_erc20Contract",
|
924
|
-
"type": "address"
|
925
|
-
},
|
926
|
-
{
|
927
|
-
"internalType": "address",
|
928
|
-
"name": "_cErc20Contract",
|
929
|
-
"type": "address"
|
930
|
-
},
|
931
|
-
{
|
932
|
-
"internalType": "address",
|
933
|
-
"name": "_donor",
|
934
|
-
"type": "address"
|
935
|
-
},
|
936
|
-
{
|
937
|
-
"internalType": "uint256",
|
938
|
-
"name": "_numTokensToSupply",
|
939
|
-
"type": "uint256"
|
940
|
-
}
|
941
|
-
],
|
942
|
-
"name": "supplyErc20ToCompound",
|
943
|
-
"outputs": [
|
944
|
-
{
|
945
|
-
"internalType": "uint256",
|
946
|
-
"name": "",
|
947
|
-
"type": "uint256"
|
948
|
-
}
|
949
|
-
],
|
950
|
-
"stateMutability": "nonpayable",
|
951
|
-
"type": "function"
|
952
|
-
}
|
953
|
-
],
|
954
|
-
"Dispute": {}
|
955
|
-
}
|