@eluvio/elv-client-js 4.0.11 → 4.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/.keep +0 -0
  2. package/dist/ElvClient-min.js +11 -10
  3. package/dist/ElvClient-node-min.js +11 -10
  4. package/dist/ElvFrameClient-min.js +11 -10
  5. package/dist/ElvPermissionsClient-min.js +10 -9
  6. package/dist/ElvWalletClient-min.js +10 -9
  7. package/dist/ElvWalletClient-node-min.js +10 -9
  8. package/dist/src/AuthorizationClient.js +1555 -2076
  9. package/dist/src/ContentObjectVerification.js +134 -185
  10. package/dist/src/Crypto.js +224 -319
  11. package/dist/src/ElvClient.js +822 -1114
  12. package/dist/src/ElvWallet.js +64 -106
  13. package/dist/src/EthClient.js +719 -974
  14. package/dist/src/FrameClient.js +223 -319
  15. package/dist/src/HttpClient.js +117 -156
  16. package/dist/src/Id.js +1 -6
  17. package/dist/src/LogMessage.js +4 -8
  18. package/dist/src/PermissionsClient.js +973 -1271
  19. package/dist/src/RemoteSigner.js +161 -232
  20. package/dist/src/UserProfileClient.js +781 -1038
  21. package/dist/src/Utils.js +159 -299
  22. package/dist/src/Validation.js +2 -17
  23. package/dist/src/client/ABRPublishing.js +828 -958
  24. package/dist/src/client/AccessGroups.js +849 -1095
  25. package/dist/src/client/ContentAccess.js +3323 -4195
  26. package/dist/src/client/ContentManagement.js +1818 -2290
  27. package/dist/src/client/Contracts.js +468 -614
  28. package/dist/src/client/Files.js +1506 -1846
  29. package/dist/src/client/NFT.js +94 -116
  30. package/dist/src/client/NTP.js +326 -425
  31. package/dist/src/index.js +2 -5
  32. package/dist/src/walletClient/ClientMethods.js +1368 -1763
  33. package/dist/src/walletClient/Configuration.js +5 -3
  34. package/dist/src/walletClient/Notifications.js +98 -127
  35. package/dist/src/walletClient/Profile.js +184 -246
  36. package/dist/src/walletClient/Utils.js +76 -122
  37. package/dist/src/walletClient/index.js +1171 -1496
  38. package/package.json +4 -21
  39. package/src/FrameClient.js +1 -0
  40. package/src/HttpClient.js +4 -2
  41. package/src/client/ABRPublishing.js +126 -105
  42. package/src/client/ContentAccess.js +1 -0
  43. package/src/client/ContentManagement.js +4 -2
  44. package/src/walletClient/Configuration.js +3 -2
  45. package/dist/AccessClient-min.js +0 -54
  46. package/dist/AccessClient-node-min.js +0 -74
  47. package/dist/src/AccessClient.js +0 -798
  48. package/dist/src/LimitedMap.js +0 -120
  49. package/dist/src/client/Access.js +0 -1
  50. package/dist/src/client/Management.js +0 -1606
  51. package/dist/src/contracts/AccessIndexor.js +0 -831
  52. package/dist/src/contracts/Accessible.js +0 -31
  53. package/dist/src/contracts/AdmgrAdvertisement.js +0 -695
  54. package/dist/src/contracts/AdmgrCampaign.js +0 -648
  55. package/dist/src/contracts/AdmgrCampaignManager.js +0 -493
  56. package/dist/src/contracts/AdmgrCommercialOffering.js +0 -622
  57. package/dist/src/contracts/AdmgrCommercialOfferingManager.js +0 -413
  58. package/dist/src/contracts/AdmgrMarketPlace.js +0 -413
  59. package/dist/src/contracts/AvailsDelivery.js +0 -535
  60. package/dist/src/contracts/BaseAccessControlGroup.js +0 -1221
  61. package/dist/src/contracts/BaseAccessWallet.js +0 -1575
  62. package/dist/src/contracts/BaseAccessWalletFactory.js +0 -93
  63. package/dist/src/contracts/BaseContent.js +0 -1104
  64. package/dist/src/contracts/BaseContentFactory.js +0 -99
  65. package/dist/src/contracts/BaseContentFactoryExt.js +0 -219
  66. package/dist/src/contracts/BaseContentSpace.js +0 -1346
  67. package/dist/src/contracts/BaseContentType.js +0 -353
  68. package/dist/src/contracts/BaseFactory.js +0 -107
  69. package/dist/src/contracts/BaseGroupFactory.js +0 -93
  70. package/dist/src/contracts/BaseLibrary.js +0 -1035
  71. package/dist/src/contracts/BaseLibraryFactory.js +0 -96
  72. package/dist/src/contracts/Certifyer.js +0 -87
  73. package/dist/src/contracts/Container.js +0 -543
  74. package/dist/src/contracts/Content.js +0 -432
  75. package/dist/src/contracts/Editable.js +0 -295
  76. package/dist/src/contracts/FactorySpace.js +0 -57
  77. package/dist/src/contracts/KmsSpace.js +0 -52
  78. package/dist/src/contracts/LvProvider.js +0 -512
  79. package/dist/src/contracts/LvRecordableStream.js +0 -1026
  80. package/dist/src/contracts/LvRecording.js +0 -627
  81. package/dist/src/contracts/LvStreamRightsHolder.js +0 -551
  82. package/dist/src/contracts/MetaObject.js +0 -110
  83. package/dist/src/contracts/Node.js +0 -167
  84. package/dist/src/contracts/NodeSpace.js +0 -18
  85. package/dist/src/contracts/NodeSpaceImpl.js +0 -273
  86. package/dist/src/contracts/Ownable.js +0 -87
  87. package/dist/src/contracts/PaymentService.js +0 -616
  88. package/dist/src/contracts/Precompile.js +0 -15
  89. package/dist/src/contracts/SampleContentAdMarketplace.js +0 -564
  90. package/dist/src/contracts/SampleContentAdvertising.js +0 -444
  91. package/dist/src/contracts/SampleContentHelloWorld.js +0 -459
  92. package/dist/src/contracts/SampleContentLicensing.js +0 -618
  93. package/dist/src/contracts/SampleContentSigned.js +0 -447
  94. package/dist/src/contracts/SampleInstance.js +0 -438
  95. package/dist/src/contracts/SampleInstanceFactory.js +0 -451
  96. package/dist/src/contracts/Transactable.js +0 -82
  97. package/dist/src/contracts/UserSpace.js +0 -18
  98. package/dist/src/contracts/UserSpaceImpl.js +0 -43
  99. package/dist/src/contracts/Utils.js +0 -18
  100. package/dist/src/contracts/Verifier.js +0 -53
  101. package/dist/src/contracts/strings.js +0 -4
  102. package/dist/src/contracts/v2/BaseContentFactoryExt.js +0 -219
  103. package/dist/src/contracts/v2/FactorySpace.js +0 -57
  104. package/dist/src/contracts/v2/KmsSpace.js +0 -52
  105. package/dist/src/contracts/v2/NodeSpaceImpl.js +0 -273
  106. package/dist/src/contracts/v2/UserSpaceImpl.js +0 -43
  107. package/dist/src/marketplaceClient/ClientMethods.js +0 -1918
  108. package/dist/src/marketplaceClient/Configuration.js +0 -29
  109. package/dist/src/marketplaceClient/Utils.js +0 -304
  110. package/dist/src/marketplaceClient/index.js +0 -1553
  111. package/utilities/ListAccessGroups.js +0 -34
@@ -1,1575 +0,0 @@
1
- var contract = {
2
- "abi": [{
3
- "constant": true,
4
- "inputs": [],
5
- "name": "parentAddress",
6
- "outputs": [{
7
- "name": "",
8
- "type": "address"
9
- }],
10
- "payable": false,
11
- "stateMutability": "view",
12
- "type": "function"
13
- }, {
14
- "constant": true,
15
- "inputs": [],
16
- "name": "creator",
17
- "outputs": [{
18
- "name": "",
19
- "type": "address"
20
- }],
21
- "payable": false,
22
- "stateMutability": "view",
23
- "type": "function"
24
- }, {
25
- "constant": false,
26
- "inputs": [],
27
- "name": "cleanUpContentObjects",
28
- "outputs": [{
29
- "name": "",
30
- "type": "uint256"
31
- }],
32
- "payable": false,
33
- "stateMutability": "nonpayable",
34
- "type": "function"
35
- }, {
36
- "constant": true,
37
- "inputs": [],
38
- "name": "execStatusNonceFail",
39
- "outputs": [{
40
- "name": "",
41
- "type": "int256"
42
- }],
43
- "payable": false,
44
- "stateMutability": "view",
45
- "type": "function"
46
- }, {
47
- "constant": false,
48
- "inputs": [{
49
- "name": "content_space",
50
- "type": "address"
51
- }],
52
- "name": "setContentSpace",
53
- "outputs": [],
54
- "payable": false,
55
- "stateMutability": "nonpayable",
56
- "type": "function"
57
- }, {
58
- "constant": true,
59
- "inputs": [],
60
- "name": "execStatusSendFail",
61
- "outputs": [{
62
- "name": "",
63
- "type": "int256"
64
- }],
65
- "payable": false,
66
- "stateMutability": "view",
67
- "type": "function"
68
- }, {
69
- "constant": true,
70
- "inputs": [{
71
- "name": "obj",
72
- "type": "address"
73
- }],
74
- "name": "getContractRights",
75
- "outputs": [{
76
- "name": "",
77
- "type": "uint8"
78
- }],
79
- "payable": false,
80
- "stateMutability": "view",
81
- "type": "function"
82
- }, {
83
- "constant": true,
84
- "inputs": [],
85
- "name": "CATEGORY_CONTENT_OBJECT",
86
- "outputs": [{
87
- "name": "",
88
- "type": "uint8"
89
- }],
90
- "payable": false,
91
- "stateMutability": "view",
92
- "type": "function"
93
- }, {
94
- "constant": false,
95
- "inputs": [{
96
- "name": "content_address",
97
- "type": "address"
98
- }, {
99
- "name": "",
100
- "type": "bytes"
101
- }, {
102
- "name": "level",
103
- "type": "uint8"
104
- }, {
105
- "name": "pke_requestor",
106
- "type": "string"
107
- }, {
108
- "name": "pke_AFGH",
109
- "type": "string"
110
- }, {
111
- "name": "custom_values",
112
- "type": "bytes32[]"
113
- }, {
114
- "name": "stakeholders",
115
- "type": "address[]"
116
- }],
117
- "name": "contentAccessRequest",
118
- "outputs": [{
119
- "name": "",
120
- "type": "uint256"
121
- }],
122
- "payable": false,
123
- "stateMutability": "nonpayable",
124
- "type": "function"
125
- }, {
126
- "constant": true,
127
- "inputs": [],
128
- "name": "getAccessGroupsLength",
129
- "outputs": [{
130
- "name": "",
131
- "type": "uint256"
132
- }],
133
- "payable": false,
134
- "stateMutability": "view",
135
- "type": "function"
136
- }, {
137
- "constant": true,
138
- "inputs": [{
139
- "name": "_candidate",
140
- "type": "address"
141
- }],
142
- "name": "canContribute",
143
- "outputs": [{
144
- "name": "",
145
- "type": "bool"
146
- }],
147
- "payable": false,
148
- "stateMutability": "view",
149
- "type": "function"
150
- }, {
151
- "constant": false,
152
- "inputs": [{
153
- "name": "content_type",
154
- "type": "address"
155
- }, {
156
- "name": "content_contract",
157
- "type": "address"
158
- }],
159
- "name": "addContentType",
160
- "outputs": [],
161
- "payable": false,
162
- "stateMutability": "nonpayable",
163
- "type": "function"
164
- }, {
165
- "constant": true,
166
- "inputs": [],
167
- "name": "CATEGORY_GROUP",
168
- "outputs": [{
169
- "name": "",
170
- "type": "uint8"
171
- }],
172
- "payable": false,
173
- "stateMutability": "view",
174
- "type": "function"
175
- }, {
176
- "constant": true,
177
- "inputs": [],
178
- "name": "canConfirm",
179
- "outputs": [{
180
- "name": "",
181
- "type": "bool"
182
- }],
183
- "payable": false,
184
- "stateMutability": "view",
185
- "type": "function"
186
- }, {
187
- "constant": true,
188
- "inputs": [{
189
- "name": "group",
190
- "type": "address"
191
- }, {
192
- "name": "access_type",
193
- "type": "uint8"
194
- }],
195
- "name": "checkAccessGroupRights",
196
- "outputs": [{
197
- "name": "",
198
- "type": "bool"
199
- }],
200
- "payable": false,
201
- "stateMutability": "view",
202
- "type": "function"
203
- }, {
204
- "constant": true,
205
- "inputs": [],
206
- "name": "CATEGORY_LIBRARY",
207
- "outputs": [{
208
- "name": "",
209
- "type": "uint8"
210
- }],
211
- "payable": false,
212
- "stateMutability": "view",
213
- "type": "function"
214
- }, {
215
- "constant": true,
216
- "inputs": [],
217
- "name": "ACCESS_CONFIRMED",
218
- "outputs": [{
219
- "name": "",
220
- "type": "uint8"
221
- }],
222
- "payable": false,
223
- "stateMutability": "view",
224
- "type": "function"
225
- }, {
226
- "constant": true,
227
- "inputs": [{
228
- "name": "",
229
- "type": "address"
230
- }],
231
- "name": "contentTypeContracts",
232
- "outputs": [{
233
- "name": "",
234
- "type": "address"
235
- }],
236
- "payable": false,
237
- "stateMutability": "view",
238
- "type": "function"
239
- }, {
240
- "constant": true,
241
- "inputs": [],
242
- "name": "currentTimestamp",
243
- "outputs": [{
244
- "name": "",
245
- "type": "uint256"
246
- }],
247
- "payable": false,
248
- "stateMutability": "view",
249
- "type": "function"
250
- }, {
251
- "constant": true,
252
- "inputs": [{
253
- "name": "typeHash",
254
- "type": "bytes32"
255
- }],
256
- "name": "findTypeByHash",
257
- "outputs": [{
258
- "name": "",
259
- "type": "address"
260
- }],
261
- "payable": false,
262
- "stateMutability": "view",
263
- "type": "function"
264
- }, {
265
- "constant": false,
266
- "inputs": [{
267
- "name": "obj",
268
- "type": "address"
269
- }, {
270
- "name": "access_type",
271
- "type": "uint8"
272
- }, {
273
- "name": "access",
274
- "type": "uint8"
275
- }],
276
- "name": "setContractRights",
277
- "outputs": [],
278
- "payable": false,
279
- "stateMutability": "nonpayable",
280
- "type": "function"
281
- }, {
282
- "constant": true,
283
- "inputs": [{
284
- "name": "candidate",
285
- "type": "address"
286
- }],
287
- "name": "canNodePublish",
288
- "outputs": [{
289
- "name": "",
290
- "type": "bool"
291
- }],
292
- "payable": false,
293
- "stateMutability": "view",
294
- "type": "function"
295
- }, {
296
- "constant": true,
297
- "inputs": [{
298
- "name": "",
299
- "type": "address"
300
- }],
301
- "name": "canReview",
302
- "outputs": [{
303
- "name": "",
304
- "type": "bool"
305
- }],
306
- "payable": false,
307
- "stateMutability": "view",
308
- "type": "function"
309
- }, {
310
- "constant": true,
311
- "inputs": [{
312
- "name": "content_type",
313
- "type": "address"
314
- }],
315
- "name": "validType",
316
- "outputs": [{
317
- "name": "",
318
- "type": "bool"
319
- }],
320
- "payable": false,
321
- "stateMutability": "view",
322
- "type": "function"
323
- }, {
324
- "constant": false,
325
- "inputs": [{
326
- "name": "contentObj",
327
- "type": "address"
328
- }],
329
- "name": "publish",
330
- "outputs": [{
331
- "name": "",
332
- "type": "bool"
333
- }],
334
- "payable": false,
335
- "stateMutability": "nonpayable",
336
- "type": "function"
337
- }, {
338
- "constant": true,
339
- "inputs": [{
340
- "name": "position",
341
- "type": "uint256"
342
- }],
343
- "name": "getAccessGroup",
344
- "outputs": [{
345
- "name": "",
346
- "type": "address"
347
- }],
348
- "payable": false,
349
- "stateMutability": "view",
350
- "type": "function"
351
- }, {
352
- "constant": false,
353
- "inputs": [],
354
- "name": "cleanUpAll",
355
- "outputs": [{
356
- "name": "",
357
- "type": "uint256"
358
- }, {
359
- "name": "",
360
- "type": "uint256"
361
- }, {
362
- "name": "",
363
- "type": "uint256"
364
- }, {
365
- "name": "",
366
- "type": "uint256"
367
- }, {
368
- "name": "",
369
- "type": "uint256"
370
- }],
371
- "payable": false,
372
- "stateMutability": "nonpayable",
373
- "type": "function"
374
- }, {
375
- "constant": true,
376
- "inputs": [{
377
- "name": "group",
378
- "type": "address"
379
- }],
380
- "name": "getAccessGroupRights",
381
- "outputs": [{
382
- "name": "",
383
- "type": "uint8"
384
- }],
385
- "payable": false,
386
- "stateMutability": "view",
387
- "type": "function"
388
- }, {
389
- "constant": true,
390
- "inputs": [],
391
- "name": "accessGroups",
392
- "outputs": [{
393
- "name": "category",
394
- "type": "uint8"
395
- }, {
396
- "name": "length",
397
- "type": "uint256"
398
- }],
399
- "payable": false,
400
- "stateMutability": "view",
401
- "type": "function"
402
- }, {
403
- "constant": true,
404
- "inputs": [],
405
- "name": "addressKMS",
406
- "outputs": [{
407
- "name": "",
408
- "type": "address"
409
- }],
410
- "payable": false,
411
- "stateMutability": "view",
412
- "type": "function"
413
- }, {
414
- "constant": true,
415
- "inputs": [],
416
- "name": "countVersionHashes",
417
- "outputs": [{
418
- "name": "",
419
- "type": "uint256"
420
- }],
421
- "payable": false,
422
- "stateMutability": "view",
423
- "type": "function"
424
- }, {
425
- "constant": true,
426
- "inputs": [],
427
- "name": "commitPending",
428
- "outputs": [{
429
- "name": "",
430
- "type": "bool"
431
- }],
432
- "payable": false,
433
- "stateMutability": "view",
434
- "type": "function"
435
- }, {
436
- "constant": false,
437
- "inputs": [{
438
- "name": "content_address",
439
- "type": "address"
440
- }, {
441
- "name": "",
442
- "type": "bytes"
443
- }, {
444
- "name": "request_ID",
445
- "type": "uint256"
446
- }, {
447
- "name": "score_pct",
448
- "type": "uint256"
449
- }, {
450
- "name": "ml_out_hash",
451
- "type": "bytes32"
452
- }],
453
- "name": "contentAccessComplete",
454
- "outputs": [{
455
- "name": "",
456
- "type": "bool"
457
- }],
458
- "payable": true,
459
- "stateMutability": "payable",
460
- "type": "function"
461
- }, {
462
- "constant": true,
463
- "inputs": [],
464
- "name": "requiresReview",
465
- "outputs": [{
466
- "name": "",
467
- "type": "bool"
468
- }],
469
- "payable": false,
470
- "stateMutability": "view",
471
- "type": "function"
472
- }, {
473
- "constant": false,
474
- "inputs": [{
475
- "name": "obj",
476
- "type": "address"
477
- }, {
478
- "name": "access_type",
479
- "type": "uint8"
480
- }, {
481
- "name": "access",
482
- "type": "uint8"
483
- }],
484
- "name": "setContentObjectRights",
485
- "outputs": [],
486
- "payable": false,
487
- "stateMutability": "nonpayable",
488
- "type": "function"
489
- }, {
490
- "constant": false,
491
- "inputs": [],
492
- "name": "kill",
493
- "outputs": [],
494
- "payable": false,
495
- "stateMutability": "nonpayable",
496
- "type": "function"
497
- }, {
498
- "constant": true,
499
- "inputs": [{
500
- "name": "candidate",
501
- "type": "address"
502
- }],
503
- "name": "hasManagerAccess",
504
- "outputs": [{
505
- "name": "",
506
- "type": "bool"
507
- }],
508
- "payable": false,
509
- "stateMutability": "view",
510
- "type": "function"
511
- }, {
512
- "constant": false,
513
- "inputs": [],
514
- "name": "confirmCommit",
515
- "outputs": [{
516
- "name": "",
517
- "type": "bool"
518
- }],
519
- "payable": true,
520
- "stateMutability": "payable",
521
- "type": "function"
522
- }, {
523
- "constant": true,
524
- "inputs": [],
525
- "name": "ACCESS_TENTATIVE",
526
- "outputs": [{
527
- "name": "",
528
- "type": "uint8"
529
- }],
530
- "payable": false,
531
- "stateMutability": "view",
532
- "type": "function"
533
- }, {
534
- "constant": false,
535
- "inputs": [{
536
- "name": "_guarantor",
537
- "type": "address"
538
- }, {
539
- "name": "_v",
540
- "type": "uint8"
541
- }, {
542
- "name": "_r",
543
- "type": "bytes32"
544
- }, {
545
- "name": "_s",
546
- "type": "bytes32"
547
- }, {
548
- "name": "_dest",
549
- "type": "address"
550
- }, {
551
- "name": "_value",
552
- "type": "uint256"
553
- }, {
554
- "name": "_ts",
555
- "type": "uint256"
556
- }],
557
- "name": "execute",
558
- "outputs": [{
559
- "name": "",
560
- "type": "bool"
561
- }],
562
- "payable": false,
563
- "stateMutability": "nonpayable",
564
- "type": "function"
565
- }, {
566
- "constant": true,
567
- "inputs": [],
568
- "name": "version",
569
- "outputs": [{
570
- "name": "",
571
- "type": "bytes32"
572
- }],
573
- "payable": false,
574
- "stateMutability": "view",
575
- "type": "function"
576
- }, {
577
- "constant": true,
578
- "inputs": [],
579
- "name": "getContentTypesLength",
580
- "outputs": [{
581
- "name": "",
582
- "type": "uint256"
583
- }],
584
- "payable": false,
585
- "stateMutability": "view",
586
- "type": "function"
587
- }, {
588
- "constant": true,
589
- "inputs": [],
590
- "name": "TYPE_EDIT",
591
- "outputs": [{
592
- "name": "",
593
- "type": "uint8"
594
- }],
595
- "payable": false,
596
- "stateMutability": "view",
597
- "type": "function"
598
- }, {
599
- "constant": false,
600
- "inputs": [],
601
- "name": "clearPending",
602
- "outputs": [],
603
- "payable": false,
604
- "stateMutability": "nonpayable",
605
- "type": "function"
606
- }, {
607
- "constant": true,
608
- "inputs": [{
609
- "name": "obj",
610
- "type": "address"
611
- }, {
612
- "name": "access_type",
613
- "type": "uint8"
614
- }],
615
- "name": "checkContentObjectRights",
616
- "outputs": [{
617
- "name": "",
618
- "type": "bool"
619
- }],
620
- "payable": false,
621
- "stateMutability": "view",
622
- "type": "function"
623
- }, {
624
- "constant": true,
625
- "inputs": [],
626
- "name": "pendingHash",
627
- "outputs": [{
628
- "name": "",
629
- "type": "string"
630
- }],
631
- "payable": false,
632
- "stateMutability": "view",
633
- "type": "function"
634
- }, {
635
- "constant": true,
636
- "inputs": [],
637
- "name": "CATEGORY_CONTRACT",
638
- "outputs": [{
639
- "name": "",
640
- "type": "uint8"
641
- }],
642
- "payable": false,
643
- "stateMutability": "view",
644
- "type": "function"
645
- }, {
646
- "constant": true,
647
- "inputs": [{
648
- "name": "lib",
649
- "type": "address"
650
- }, {
651
- "name": "access_type",
652
- "type": "uint8"
653
- }],
654
- "name": "checkLibraryRights",
655
- "outputs": [{
656
- "name": "",
657
- "type": "bool"
658
- }],
659
- "payable": false,
660
- "stateMutability": "view",
661
- "type": "function"
662
- }, {
663
- "constant": true,
664
- "inputs": [],
665
- "name": "CATEGORY_CONTENT_TYPE",
666
- "outputs": [{
667
- "name": "",
668
- "type": "uint8"
669
- }],
670
- "payable": false,
671
- "stateMutability": "view",
672
- "type": "function"
673
- }, {
674
- "constant": true,
675
- "inputs": [{
676
- "name": "obj",
677
- "type": "address"
678
- }],
679
- "name": "getContentObjectRights",
680
- "outputs": [{
681
- "name": "",
682
- "type": "uint8"
683
- }],
684
- "payable": false,
685
- "stateMutability": "view",
686
- "type": "function"
687
- }, {
688
- "constant": true,
689
- "inputs": [],
690
- "name": "contracts",
691
- "outputs": [{
692
- "name": "category",
693
- "type": "uint8"
694
- }, {
695
- "name": "length",
696
- "type": "uint256"
697
- }],
698
- "payable": false,
699
- "stateMutability": "view",
700
- "type": "function"
701
- }, {
702
- "constant": false,
703
- "inputs": [{
704
- "name": "newCreator",
705
- "type": "address"
706
- }],
707
- "name": "transferCreatorship",
708
- "outputs": [],
709
- "payable": false,
710
- "stateMutability": "nonpayable",
711
- "type": "function"
712
- }, {
713
- "constant": true,
714
- "inputs": [],
715
- "name": "canCommit",
716
- "outputs": [{
717
- "name": "",
718
- "type": "bool"
719
- }],
720
- "payable": false,
721
- "stateMutability": "view",
722
- "type": "function"
723
- }, {
724
- "constant": true,
725
- "inputs": [{
726
- "name": "position",
727
- "type": "uint256"
728
- }],
729
- "name": "getContract",
730
- "outputs": [{
731
- "name": "",
732
- "type": "address"
733
- }],
734
- "payable": false,
735
- "stateMutability": "view",
736
- "type": "function"
737
- }, {
738
- "constant": true,
739
- "inputs": [{
740
- "name": "_v",
741
- "type": "uint8"
742
- }, {
743
- "name": "_r",
744
- "type": "bytes32"
745
- }, {
746
- "name": "_s",
747
- "type": "bytes32"
748
- }, {
749
- "name": "_dest",
750
- "type": "address"
751
- }, {
752
- "name": "_value",
753
- "type": "uint256"
754
- }, {
755
- "name": "_ts",
756
- "type": "uint256"
757
- }],
758
- "name": "validateTransaction",
759
- "outputs": [{
760
- "name": "",
761
- "type": "bool"
762
- }],
763
- "payable": false,
764
- "stateMutability": "view",
765
- "type": "function"
766
- }, {
767
- "constant": true,
768
- "inputs": [{
769
- "name": "addr",
770
- "type": "address"
771
- }],
772
- "name": "contractExists",
773
- "outputs": [{
774
- "name": "",
775
- "type": "bool"
776
- }],
777
- "payable": false,
778
- "stateMutability": "view",
779
- "type": "function"
780
- }, {
781
- "constant": true,
782
- "inputs": [{
783
- "name": "",
784
- "type": "uint256"
785
- }],
786
- "name": "versionTimestamp",
787
- "outputs": [{
788
- "name": "",
789
- "type": "uint256"
790
- }],
791
- "payable": false,
792
- "stateMutability": "view",
793
- "type": "function"
794
- }, {
795
- "constant": true,
796
- "inputs": [{
797
- "name": "",
798
- "type": "uint256"
799
- }],
800
- "name": "versionHashes",
801
- "outputs": [{
802
- "name": "",
803
- "type": "string"
804
- }],
805
- "payable": false,
806
- "stateMutability": "view",
807
- "type": "function"
808
- }, {
809
- "constant": false,
810
- "inputs": [{
811
- "name": "lib",
812
- "type": "address"
813
- }, {
814
- "name": "access_type",
815
- "type": "uint8"
816
- }, {
817
- "name": "access",
818
- "type": "uint8"
819
- }],
820
- "name": "setLibraryRights",
821
- "outputs": [],
822
- "payable": false,
823
- "stateMutability": "nonpayable",
824
- "type": "function"
825
- }, {
826
- "constant": true,
827
- "inputs": [{
828
- "name": "index_type",
829
- "type": "uint8"
830
- }, {
831
- "name": "obj",
832
- "type": "address"
833
- }, {
834
- "name": "access_type",
835
- "type": "uint8"
836
- }],
837
- "name": "checkRights",
838
- "outputs": [{
839
- "name": "",
840
- "type": "bool"
841
- }],
842
- "payable": false,
843
- "stateMutability": "view",
844
- "type": "function"
845
- }, {
846
- "constant": true,
847
- "inputs": [],
848
- "name": "ACCESS_NONE",
849
- "outputs": [{
850
- "name": "",
851
- "type": "uint8"
852
- }],
853
- "payable": false,
854
- "stateMutability": "view",
855
- "type": "function"
856
- }, {
857
- "constant": false,
858
- "inputs": [],
859
- "name": "cleanUpContentTypes",
860
- "outputs": [{
861
- "name": "",
862
- "type": "uint256"
863
- }],
864
- "payable": false,
865
- "stateMutability": "nonpayable",
866
- "type": "function"
867
- }, {
868
- "constant": false,
869
- "inputs": [{
870
- "name": "obj",
871
- "type": "address"
872
- }, {
873
- "name": "access_type",
874
- "type": "uint8"
875
- }, {
876
- "name": "access",
877
- "type": "uint8"
878
- }],
879
- "name": "setContentTypeRights",
880
- "outputs": [],
881
- "payable": false,
882
- "stateMutability": "nonpayable",
883
- "type": "function"
884
- }, {
885
- "constant": true,
886
- "inputs": [],
887
- "name": "owner",
888
- "outputs": [{
889
- "name": "",
890
- "type": "address"
891
- }],
892
- "payable": false,
893
- "stateMutability": "view",
894
- "type": "function"
895
- }, {
896
- "constant": false,
897
- "inputs": [],
898
- "name": "cleanUpLibraries",
899
- "outputs": [{
900
- "name": "",
901
- "type": "uint256"
902
- }],
903
- "payable": false,
904
- "stateMutability": "nonpayable",
905
- "type": "function"
906
- }, {
907
- "constant": true,
908
- "inputs": [],
909
- "name": "execStatusBalanceFail",
910
- "outputs": [{
911
- "name": "",
912
- "type": "int256"
913
- }],
914
- "payable": false,
915
- "stateMutability": "view",
916
- "type": "function"
917
- }, {
918
- "constant": true,
919
- "inputs": [{
920
- "name": "content_address",
921
- "type": "address"
922
- }, {
923
- "name": "level",
924
- "type": "uint8"
925
- }, {
926
- "name": "pke_requestor",
927
- "type": "string"
928
- }, {
929
- "name": "pke_AFGH",
930
- "type": "string"
931
- }, {
932
- "name": "custom_values",
933
- "type": "bytes32[]"
934
- }, {
935
- "name": "stakeholders",
936
- "type": "address[]"
937
- }],
938
- "name": "accessRequestMsg",
939
- "outputs": [{
940
- "name": "",
941
- "type": "bytes32"
942
- }],
943
- "payable": false,
944
- "stateMutability": "pure",
945
- "type": "function"
946
- }, {
947
- "constant": true,
948
- "inputs": [{
949
- "name": "",
950
- "type": "address"
951
- }],
952
- "name": "hasAccess",
953
- "outputs": [{
954
- "name": "",
955
- "type": "bool"
956
- }],
957
- "payable": false,
958
- "stateMutability": "view",
959
- "type": "function"
960
- }, {
961
- "constant": true,
962
- "inputs": [],
963
- "name": "execStatusOk",
964
- "outputs": [{
965
- "name": "",
966
- "type": "int256"
967
- }],
968
- "payable": false,
969
- "stateMutability": "view",
970
- "type": "function"
971
- }, {
972
- "constant": true,
973
- "inputs": [],
974
- "name": "TYPE_SEE",
975
- "outputs": [{
976
- "name": "",
977
- "type": "uint8"
978
- }],
979
- "payable": false,
980
- "stateMutability": "view",
981
- "type": "function"
982
- }, {
983
- "constant": true,
984
- "inputs": [{
985
- "name": "content_address",
986
- "type": "address"
987
- }, {
988
- "name": "request_ID",
989
- "type": "uint256"
990
- }, {
991
- "name": "score_pct",
992
- "type": "uint256"
993
- }, {
994
- "name": "ml_out_hash",
995
- "type": "bytes32"
996
- }],
997
- "name": "accessCompleteMsg",
998
- "outputs": [{
999
- "name": "",
1000
- "type": "bytes32"
1001
- }],
1002
- "payable": false,
1003
- "stateMutability": "pure",
1004
- "type": "function"
1005
- }, {
1006
- "constant": false,
1007
- "inputs": [{
1008
- "name": "_objectHash",
1009
- "type": "string"
1010
- }],
1011
- "name": "commit",
1012
- "outputs": [],
1013
- "payable": false,
1014
- "stateMutability": "nonpayable",
1015
- "type": "function"
1016
- }, {
1017
- "constant": true,
1018
- "inputs": [{
1019
- "name": "",
1020
- "type": "uint256"
1021
- }],
1022
- "name": "contentTypes",
1023
- "outputs": [{
1024
- "name": "",
1025
- "type": "address"
1026
- }],
1027
- "payable": false,
1028
- "stateMutability": "view",
1029
- "type": "function"
1030
- }, {
1031
- "constant": true,
1032
- "inputs": [{
1033
- "name": "_candidate",
1034
- "type": "address"
1035
- }],
1036
- "name": "canPublish",
1037
- "outputs": [{
1038
- "name": "",
1039
- "type": "bool"
1040
- }],
1041
- "payable": false,
1042
- "stateMutability": "view",
1043
- "type": "function"
1044
- }, {
1045
- "constant": true,
1046
- "inputs": [{
1047
- "name": "content_type",
1048
- "type": "address"
1049
- }],
1050
- "name": "whitelistedType",
1051
- "outputs": [{
1052
- "name": "",
1053
- "type": "bool"
1054
- }],
1055
- "payable": false,
1056
- "stateMutability": "view",
1057
- "type": "function"
1058
- }, {
1059
- "constant": true,
1060
- "inputs": [],
1061
- "name": "contentTypes",
1062
- "outputs": [{
1063
- "name": "category",
1064
- "type": "uint8"
1065
- }, {
1066
- "name": "length",
1067
- "type": "uint256"
1068
- }],
1069
- "payable": false,
1070
- "stateMutability": "view",
1071
- "type": "function"
1072
- }, {
1073
- "constant": true,
1074
- "inputs": [{
1075
- "name": "index_type",
1076
- "type": "uint8"
1077
- }, {
1078
- "name": "obj",
1079
- "type": "address"
1080
- }, {
1081
- "name": "access_type",
1082
- "type": "uint8"
1083
- }],
1084
- "name": "checkDirectRights",
1085
- "outputs": [{
1086
- "name": "",
1087
- "type": "bool"
1088
- }],
1089
- "payable": false,
1090
- "stateMutability": "view",
1091
- "type": "function"
1092
- }, {
1093
- "constant": true,
1094
- "inputs": [{
1095
- "name": "obj",
1096
- "type": "address"
1097
- }],
1098
- "name": "getContentTypeRights",
1099
- "outputs": [{
1100
- "name": "",
1101
- "type": "uint8"
1102
- }],
1103
- "payable": false,
1104
- "stateMutability": "view",
1105
- "type": "function"
1106
- }, {
1107
- "constant": true,
1108
- "inputs": [{
1109
- "name": "obj",
1110
- "type": "address"
1111
- }, {
1112
- "name": "access_type",
1113
- "type": "uint8"
1114
- }],
1115
- "name": "checkContractRights",
1116
- "outputs": [{
1117
- "name": "",
1118
- "type": "bool"
1119
- }],
1120
- "payable": false,
1121
- "stateMutability": "view",
1122
- "type": "function"
1123
- }, {
1124
- "constant": true,
1125
- "inputs": [],
1126
- "name": "contentObjects",
1127
- "outputs": [{
1128
- "name": "category",
1129
- "type": "uint8"
1130
- }, {
1131
- "name": "length",
1132
- "type": "uint256"
1133
- }],
1134
- "payable": false,
1135
- "stateMutability": "view",
1136
- "type": "function"
1137
- }, {
1138
- "constant": true,
1139
- "inputs": [{
1140
- "name": "position",
1141
- "type": "uint256"
1142
- }],
1143
- "name": "getContentType",
1144
- "outputs": [{
1145
- "name": "",
1146
- "type": "address"
1147
- }],
1148
- "payable": false,
1149
- "stateMutability": "view",
1150
- "type": "function"
1151
- }, {
1152
- "constant": true,
1153
- "inputs": [],
1154
- "name": "contentSpace",
1155
- "outputs": [{
1156
- "name": "",
1157
- "type": "address"
1158
- }],
1159
- "payable": false,
1160
- "stateMutability": "view",
1161
- "type": "function"
1162
- }, {
1163
- "constant": false,
1164
- "inputs": [],
1165
- "name": "setAccessRights",
1166
- "outputs": [],
1167
- "payable": false,
1168
- "stateMutability": "nonpayable",
1169
- "type": "function"
1170
- }, {
1171
- "constant": false,
1172
- "inputs": [],
1173
- "name": "updateRequest",
1174
- "outputs": [],
1175
- "payable": false,
1176
- "stateMutability": "nonpayable",
1177
- "type": "function"
1178
- }, {
1179
- "constant": true,
1180
- "inputs": [],
1181
- "name": "libraries",
1182
- "outputs": [{
1183
- "name": "category",
1184
- "type": "uint8"
1185
- }, {
1186
- "name": "length",
1187
- "type": "uint256"
1188
- }],
1189
- "payable": false,
1190
- "stateMutability": "view",
1191
- "type": "function"
1192
- }, {
1193
- "constant": true,
1194
- "inputs": [],
1195
- "name": "contentTypesLength",
1196
- "outputs": [{
1197
- "name": "",
1198
- "type": "uint256"
1199
- }],
1200
- "payable": false,
1201
- "stateMutability": "view",
1202
- "type": "function"
1203
- }, {
1204
- "constant": false,
1205
- "inputs": [{
1206
- "name": "address_KMS",
1207
- "type": "address"
1208
- }],
1209
- "name": "setAddressKMS",
1210
- "outputs": [],
1211
- "payable": false,
1212
- "stateMutability": "nonpayable",
1213
- "type": "function"
1214
- }, {
1215
- "constant": true,
1216
- "inputs": [],
1217
- "name": "getLibrariesLength",
1218
- "outputs": [{
1219
- "name": "",
1220
- "type": "uint256"
1221
- }],
1222
- "payable": false,
1223
- "stateMutability": "view",
1224
- "type": "function"
1225
- }, {
1226
- "constant": true,
1227
- "inputs": [{
1228
- "name": "position",
1229
- "type": "uint256"
1230
- }],
1231
- "name": "getContentObject",
1232
- "outputs": [{
1233
- "name": "",
1234
- "type": "address"
1235
- }],
1236
- "payable": false,
1237
- "stateMutability": "view",
1238
- "type": "function"
1239
- }, {
1240
- "constant": true,
1241
- "inputs": [{
1242
- "name": "position",
1243
- "type": "uint256"
1244
- }],
1245
- "name": "getLibrary",
1246
- "outputs": [{
1247
- "name": "",
1248
- "type": "address"
1249
- }],
1250
- "payable": false,
1251
- "stateMutability": "view",
1252
- "type": "function"
1253
- }, {
1254
- "constant": true,
1255
- "inputs": [],
1256
- "name": "TYPE_ACCESS",
1257
- "outputs": [{
1258
- "name": "",
1259
- "type": "uint8"
1260
- }],
1261
- "payable": false,
1262
- "stateMutability": "view",
1263
- "type": "function"
1264
- }, {
1265
- "constant": false,
1266
- "inputs": [],
1267
- "name": "cleanUpAccessGroups",
1268
- "outputs": [{
1269
- "name": "",
1270
- "type": "uint256"
1271
- }],
1272
- "payable": false,
1273
- "stateMutability": "nonpayable",
1274
- "type": "function"
1275
- }, {
1276
- "constant": true,
1277
- "inputs": [],
1278
- "name": "objectHash",
1279
- "outputs": [{
1280
- "name": "",
1281
- "type": "string"
1282
- }],
1283
- "payable": false,
1284
- "stateMutability": "view",
1285
- "type": "function"
1286
- }, {
1287
- "constant": false,
1288
- "inputs": [{
1289
- "name": "_versionHash",
1290
- "type": "string"
1291
- }],
1292
- "name": "deleteVersion",
1293
- "outputs": [{
1294
- "name": "",
1295
- "type": "int256"
1296
- }],
1297
- "payable": false,
1298
- "stateMutability": "nonpayable",
1299
- "type": "function"
1300
- }, {
1301
- "constant": true,
1302
- "inputs": [],
1303
- "name": "execStatusSigFail",
1304
- "outputs": [{
1305
- "name": "",
1306
- "type": "int256"
1307
- }],
1308
- "payable": false,
1309
- "stateMutability": "view",
1310
- "type": "function"
1311
- }, {
1312
- "constant": true,
1313
- "inputs": [],
1314
- "name": "getContentObjectsLength",
1315
- "outputs": [{
1316
- "name": "",
1317
- "type": "uint256"
1318
- }],
1319
- "payable": false,
1320
- "stateMutability": "view",
1321
- "type": "function"
1322
- }, {
1323
- "constant": false,
1324
- "inputs": [],
1325
- "name": "accessRequest",
1326
- "outputs": [{
1327
- "name": "",
1328
- "type": "bool"
1329
- }],
1330
- "payable": false,
1331
- "stateMutability": "nonpayable",
1332
- "type": "function"
1333
- }, {
1334
- "constant": false,
1335
- "inputs": [{
1336
- "name": "group",
1337
- "type": "address"
1338
- }, {
1339
- "name": "access_type",
1340
- "type": "uint8"
1341
- }, {
1342
- "name": "access",
1343
- "type": "uint8"
1344
- }],
1345
- "name": "setAccessGroupRights",
1346
- "outputs": [],
1347
- "payable": false,
1348
- "stateMutability": "nonpayable",
1349
- "type": "function"
1350
- }, {
1351
- "constant": false,
1352
- "inputs": [{
1353
- "name": "newOwner",
1354
- "type": "address"
1355
- }],
1356
- "name": "transferOwnership",
1357
- "outputs": [],
1358
- "payable": false,
1359
- "stateMutability": "nonpayable",
1360
- "type": "function"
1361
- }, {
1362
- "constant": true,
1363
- "inputs": [{
1364
- "name": "_ts",
1365
- "type": "uint256"
1366
- }],
1367
- "name": "validateTimestamp",
1368
- "outputs": [{
1369
- "name": "",
1370
- "type": "bool"
1371
- }],
1372
- "payable": false,
1373
- "stateMutability": "view",
1374
- "type": "function"
1375
- }, {
1376
- "constant": true,
1377
- "inputs": [{
1378
- "name": "lib",
1379
- "type": "address"
1380
- }],
1381
- "name": "getLibraryRights",
1382
- "outputs": [{
1383
- "name": "",
1384
- "type": "uint8"
1385
- }],
1386
- "payable": false,
1387
- "stateMutability": "view",
1388
- "type": "function"
1389
- }, {
1390
- "constant": true,
1391
- "inputs": [],
1392
- "name": "getContractsLength",
1393
- "outputs": [{
1394
- "name": "",
1395
- "type": "uint256"
1396
- }],
1397
- "payable": false,
1398
- "stateMutability": "view",
1399
- "type": "function"
1400
- }, {
1401
- "constant": false,
1402
- "inputs": [{
1403
- "name": "content_type",
1404
- "type": "address"
1405
- }],
1406
- "name": "removeContentType",
1407
- "outputs": [{
1408
- "name": "",
1409
- "type": "bool"
1410
- }],
1411
- "payable": false,
1412
- "stateMutability": "nonpayable",
1413
- "type": "function"
1414
- }, {
1415
- "constant": true,
1416
- "inputs": [{
1417
- "name": "obj",
1418
- "type": "address"
1419
- }, {
1420
- "name": "access_type",
1421
- "type": "uint8"
1422
- }],
1423
- "name": "checkContentTypeRights",
1424
- "outputs": [{
1425
- "name": "",
1426
- "type": "bool"
1427
- }],
1428
- "payable": false,
1429
- "stateMutability": "view",
1430
- "type": "function"
1431
- }, {
1432
- "inputs": [{
1433
- "name": "content_space",
1434
- "type": "address"
1435
- }],
1436
- "payable": true,
1437
- "stateMutability": "payable",
1438
- "type": "constructor"
1439
- }, {
1440
- "payable": true,
1441
- "stateMutability": "payable",
1442
- "type": "fallback"
1443
- }, {
1444
- "anonymous": false,
1445
- "inputs": [{
1446
- "indexed": false,
1447
- "name": "guarantor",
1448
- "type": "address"
1449
- }, {
1450
- "indexed": false,
1451
- "name": "code",
1452
- "type": "int256"
1453
- }],
1454
- "name": "ExecStatus",
1455
- "type": "event"
1456
- }, {
1457
- "anonymous": false,
1458
- "inputs": [{
1459
- "indexed": false,
1460
- "name": "principal",
1461
- "type": "address"
1462
- }, {
1463
- "indexed": false,
1464
- "name": "entity",
1465
- "type": "address"
1466
- }, {
1467
- "indexed": false,
1468
- "name": "aggregate",
1469
- "type": "uint8"
1470
- }],
1471
- "name": "RightsChanged",
1472
- "type": "event"
1473
- }, {
1474
- "anonymous": false,
1475
- "inputs": [{
1476
- "indexed": false,
1477
- "name": "label",
1478
- "type": "string"
1479
- }, {
1480
- "indexed": false,
1481
- "name": "index",
1482
- "type": "uint256"
1483
- }, {
1484
- "indexed": false,
1485
- "name": "a",
1486
- "type": "address"
1487
- }],
1488
- "name": "dbgAddress",
1489
- "type": "event"
1490
- }, {
1491
- "anonymous": false,
1492
- "inputs": [{
1493
- "indexed": false,
1494
- "name": "contentType",
1495
- "type": "address"
1496
- }, {
1497
- "indexed": false,
1498
- "name": "contentContract",
1499
- "type": "address"
1500
- }],
1501
- "name": "ContentTypeAdded",
1502
- "type": "event"
1503
- }, {
1504
- "anonymous": false,
1505
- "inputs": [{
1506
- "indexed": false,
1507
- "name": "contentType",
1508
- "type": "address"
1509
- }],
1510
- "name": "ContentTypeRemoved",
1511
- "type": "event"
1512
- }, {
1513
- "anonymous": false,
1514
- "inputs": [{
1515
- "indexed": false,
1516
- "name": "spaceAddress",
1517
- "type": "address"
1518
- }, {
1519
- "indexed": false,
1520
- "name": "parentAddress",
1521
- "type": "address"
1522
- }, {
1523
- "indexed": false,
1524
- "name": "objectHash",
1525
- "type": "string"
1526
- }],
1527
- "name": "CommitPending",
1528
- "type": "event"
1529
- }, {
1530
- "anonymous": false,
1531
- "inputs": [{
1532
- "indexed": false,
1533
- "name": "objectHash",
1534
- "type": "string"
1535
- }],
1536
- "name": "UpdateRequest",
1537
- "type": "event"
1538
- }, {
1539
- "anonymous": false,
1540
- "inputs": [{
1541
- "indexed": false,
1542
- "name": "spaceAddress",
1543
- "type": "address"
1544
- }, {
1545
- "indexed": false,
1546
- "name": "objectHash",
1547
- "type": "string"
1548
- }],
1549
- "name": "VersionConfirm",
1550
- "type": "event"
1551
- }, {
1552
- "anonymous": false,
1553
- "inputs": [{
1554
- "indexed": false,
1555
- "name": "spaceAddress",
1556
- "type": "address"
1557
- }, {
1558
- "indexed": false,
1559
- "name": "versionHash",
1560
- "type": "string"
1561
- }, {
1562
- "indexed": false,
1563
- "name": "index",
1564
- "type": "int256"
1565
- }],
1566
- "name": "VersionDelete",
1567
- "type": "event"
1568
- }, {
1569
- "anonymous": false,
1570
- "inputs": [],
1571
- "name": "AccessRequest",
1572
- "type": "event"
1573
- }]
1574
- };
1575
- module.exports = contract;