@ethernity-cloud/sdk-js 1.1.0

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 (184) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +185 -0
  3. package/build.js +22 -0
  4. package/init.js +301 -0
  5. package/nodenithy/build/las/Dockerfile +5 -0
  6. package/nodenithy/build/securelock/Dockerfile.tmpl +65 -0
  7. package/nodenithy/build/securelock/scripts/binary-fs-build.sh +28 -0
  8. package/nodenithy/build/securelock/src/.env +3 -0
  9. package/nodenithy/build/securelock/src/etny_crypto.js +201 -0
  10. package/nodenithy/build/securelock/src/etny_exec.js +65 -0
  11. package/nodenithy/build/securelock/src/image_registry_abi.js +808 -0
  12. package/nodenithy/build/securelock/src/models.js +261 -0
  13. package/nodenithy/build/securelock/src/package.json +40 -0
  14. package/nodenithy/build/securelock/src/pox_abi.js +1491 -0
  15. package/nodenithy/build/securelock/src/securelock.js.tmpl +421 -0
  16. package/nodenithy/build/securelock/src/swift_stream_service.js +147 -0
  17. package/nodenithy/build/securelock/src/task_status.js +15 -0
  18. package/nodenithy/build/securelock/src/wallet.js +29 -0
  19. package/nodenithy/build/squash/Dockerfile +7 -0
  20. package/nodenithy/build/trustedzone/Dockerfile.tmpl +57 -0
  21. package/nodenithy/build/trustedzone/scripts/binary-fs-build.sh +22 -0
  22. package/nodenithy/build/trustedzone/src/.env +3 -0
  23. package/nodenithy/build/trustedzone/src/etny_crypto.js +202 -0
  24. package/nodenithy/build/trustedzone/src/etny_exec.js +54 -0
  25. package/nodenithy/build/trustedzone/src/image_registry_abi.js +808 -0
  26. package/nodenithy/build/trustedzone/src/models.js +261 -0
  27. package/nodenithy/build/trustedzone/src/package.json +40 -0
  28. package/nodenithy/build/trustedzone/src/pox_abi.js +1491 -0
  29. package/nodenithy/build/trustedzone/src/swift_stream_service.js +147 -0
  30. package/nodenithy/build/trustedzone/src/task_status.js +15 -0
  31. package/nodenithy/build/trustedzone/src/test.js +44 -0
  32. package/nodenithy/build/trustedzone/src/trustedzone.js.tmpl +508 -0
  33. package/nodenithy/build/trustedzone/src/wallet.js +28 -0
  34. package/nodenithy/build/validator/Dockerfile +58 -0
  35. package/nodenithy/build/validator/package-lock.json +6 -0
  36. package/nodenithy/build/validator/scripts/binary-fs-build.sh +19 -0
  37. package/nodenithy/build/validator/src/.env +3 -0
  38. package/nodenithy/build/validator/src/cert.pem +5 -0
  39. package/nodenithy/build/validator/src/etny_crypto.js +204 -0
  40. package/nodenithy/build/validator/src/etny_exec.js +52 -0
  41. package/nodenithy/build/validator/src/image_registry_abi.js +808 -0
  42. package/nodenithy/build/validator/src/key.pem +6 -0
  43. package/nodenithy/build/validator/src/models.js +261 -0
  44. package/nodenithy/build/validator/src/package-lock.json +2498 -0
  45. package/nodenithy/build/validator/src/package.json +40 -0
  46. package/nodenithy/build/validator/src/pox_abi.js +1491 -0
  47. package/nodenithy/build/validator/src/swift_stream_service.js +147 -0
  48. package/nodenithy/build/validator/src/task_status.js +15 -0
  49. package/nodenithy/build/validator/src/test.js +44 -0
  50. package/nodenithy/build/validator/src/trustedzone.js +613 -0
  51. package/nodenithy/build/validator/src/validator_abi.js +834 -0
  52. package/nodenithy/build/validator/src/wallet.js +28 -0
  53. package/nodenithy/build.js +184 -0
  54. package/nodenithy/build.mjs +179 -0
  55. package/nodenithy/build.sh +161 -0
  56. package/nodenithy/ipfs.js +135 -0
  57. package/nodenithy/ipfs.mjs +551 -0
  58. package/nodenithy/public/favicon.ico +0 -0
  59. package/nodenithy/public/index.html +43 -0
  60. package/nodenithy/public/logo192.png +0 -0
  61. package/nodenithy/public/logo512.png +0 -0
  62. package/nodenithy/public/manifest.json +25 -0
  63. package/nodenithy/public/robots.txt +3 -0
  64. package/nodenithy/run/__pycache__/swift_stream_service.cpython-312.pyc +0 -0
  65. package/nodenithy/run/app/input.txt +4 -0
  66. package/nodenithy/run/app/payload.js +4 -0
  67. package/nodenithy/run/docker-compose-final.yml.tmpl +65 -0
  68. package/nodenithy/run/docker-compose-swift-stream.yml +17 -0
  69. package/nodenithy/run/docker-compose.yml.tmpl +76 -0
  70. package/nodenithy/run/etny-securelock-test.yaml.tpl +46 -0
  71. package/nodenithy/run/etny-trustedzone-test.yaml.tpl +45 -0
  72. package/nodenithy/run/git.sh +22 -0
  73. package/nodenithy/run/image_registry.abi +1 -0
  74. package/nodenithy/run/image_registry.js +372 -0
  75. package/nodenithy/run/image_registry.py +327 -0
  76. package/nodenithy/run/image_registry_runner.py +71 -0
  77. package/nodenithy/run/ipfs.sh +58 -0
  78. package/nodenithy/run/ipfs_pre.sh +75 -0
  79. package/nodenithy/run/public_key_service.js +90 -0
  80. package/nodenithy/run/public_key_service.py +107 -0
  81. package/nodenithy/run/swift_stream_service.py +212 -0
  82. package/nodenithy/run/swiftstream.py +37 -0
  83. package/nodenithy/run/swiftstream1.py +27 -0
  84. package/nodenithy/run.js +538 -0
  85. package/nodenithy/run.sh +277 -0
  86. package/nodenithy/scripts/build-ipfs-upload.sh +23 -0
  87. package/nodenithy/scripts/build.sh +40 -0
  88. package/nodenithy/scripts/ipfs-daemon.sh +7 -0
  89. package/nodenithy/scripts/run.sh +50 -0
  90. package/nodenithy/src/App.css +57 -0
  91. package/nodenithy/src/ec_helloworld_example.js +64 -0
  92. package/nodenithy/src/index.css +13 -0
  93. package/nodenithy/src/index.js +17 -0
  94. package/nodenithy/src/preStart.js +45 -0
  95. package/nodenithy/src/preStart.mjs +57 -0
  96. package/nodenithy/src/reportWebVitals.js +13 -0
  97. package/nodenithy/src/serverless/backend.js +5 -0
  98. package/package.json +48 -0
  99. package/postinstall.js +34 -0
  100. package/publish.js +126 -0
  101. package/pynithy/build/docker-compose.yml +68 -0
  102. package/pynithy/build/las/Dockerfile +11 -0
  103. package/pynithy/build/las/src/etny_entrypoint.sh +6 -0
  104. package/pynithy/build/las/src/las_entrypoint.sh +26 -0
  105. package/pynithy/build/scripts/binary-fs-build.sh +28 -0
  106. package/pynithy/build/securelock/Dockerfile.tmpl +78 -0
  107. package/pynithy/build/securelock/scripts/binary-fs-build.sh +41 -0
  108. package/pynithy/build/securelock/src/app/.env +5 -0
  109. package/pynithy/build/securelock/src/app/cert1-ca1-clean.crt +10 -0
  110. package/pynithy/build/securelock/src/app/cert1-ca1-clean.key +6 -0
  111. package/pynithy/build/securelock/src/app/enclave_pub_cert.pem +10 -0
  112. package/pynithy/build/securelock/src/app/input.txt +1 -0
  113. package/pynithy/build/securelock/src/app/payload.py +25 -0
  114. package/pynithy/build/securelock/src/app/public-cert-clean.pem +10 -0
  115. package/pynithy/build/securelock/src/app/result.txt +1 -0
  116. package/pynithy/build/securelock/src/app/transaction.txt +1 -0
  117. package/pynithy/build/securelock/src/etny_crypto.py +167 -0
  118. package/pynithy/build/securelock/src/etny_exec.py +79 -0
  119. package/pynithy/build/securelock/src/image_registry.abi +1 -0
  120. package/pynithy/build/securelock/src/key_generation.py +17 -0
  121. package/pynithy/build/securelock/src/models.py +176 -0
  122. package/pynithy/build/securelock/src/pox.abi +1489 -0
  123. package/pynithy/build/securelock/src/securelock.py.tmpl +411 -0
  124. package/pynithy/build/securelock/src/swift_stream_service.py +186 -0
  125. package/pynithy/build/trustedzone/Dockerfile.tmpl +56 -0
  126. package/pynithy/build/trustedzone/scripts/binary-fs-build.sh +32 -0
  127. package/pynithy/build/trustedzone/src/app/.env +5 -0
  128. package/pynithy/build/trustedzone/src/app/cert1-ca1-clean.crt +10 -0
  129. package/pynithy/build/trustedzone/src/app/cert1-ca1-clean.key +6 -0
  130. package/pynithy/build/trustedzone/src/app/enclave_pub_cert.pem +10 -0
  131. package/pynithy/build/trustedzone/src/app/input.txt +1 -0
  132. package/pynithy/build/trustedzone/src/app/payload.py +25 -0
  133. package/pynithy/build/trustedzone/src/app/public-cert-clean.pem +10 -0
  134. package/pynithy/build/trustedzone/src/app/result.txt +1 -0
  135. package/pynithy/build/trustedzone/src/app/securelock.crt +10 -0
  136. package/pynithy/build/trustedzone/src/app/transaction.txt +1 -0
  137. package/pynithy/build/trustedzone/src/app/trustedzone.crt +10 -0
  138. package/pynithy/build/trustedzone/src/etny_crypto.py +188 -0
  139. package/pynithy/build/trustedzone/src/etny_exec.py +56 -0
  140. package/pynithy/build/trustedzone/src/formatter.py +42 -0
  141. package/pynithy/build/trustedzone/src/image_registry.abi +1 -0
  142. package/pynithy/build/trustedzone/src/key_generation.py +17 -0
  143. package/pynithy/build/trustedzone/src/models.py +176 -0
  144. package/pynithy/build/trustedzone/src/pox.abi +1489 -0
  145. package/pynithy/build/trustedzone/src/swift_stream_service.py +186 -0
  146. package/pynithy/build/trustedzone/src/trustedzone.py.tmpl +460 -0
  147. package/pynithy/build.mjs +179 -0
  148. package/pynithy/docker-compose.yml +0 -0
  149. package/pynithy/ipfs.mjs +244 -0
  150. package/pynithy/public/favicon.ico +0 -0
  151. package/pynithy/public/index.html +43 -0
  152. package/pynithy/public/logo192.png +0 -0
  153. package/pynithy/public/logo512.png +0 -0
  154. package/pynithy/public/manifest.json +25 -0
  155. package/pynithy/public/robots.txt +3 -0
  156. package/pynithy/run/certs/cert.pem +31 -0
  157. package/pynithy/run/certs/challenge.crt +10 -0
  158. package/pynithy/run/certs/key.pem +52 -0
  159. package/pynithy/run/docker-compose-final.yml +59 -0
  160. package/pynithy/run/docker-compose-final.yml.tmpl +59 -0
  161. package/pynithy/run/docker-compose-swift-stream.yml +27 -0
  162. package/pynithy/run/docker-compose-swift-stream.yml.tmpl +27 -0
  163. package/pynithy/run/docker-compose.yml +55 -0
  164. package/pynithy/run/docker-compose.yml.tmpl +55 -0
  165. package/pynithy/run/etny-pynity-test.yaml.tpl +46 -0
  166. package/pynithy/run/etny-securelock-test.yaml.tpl +46 -0
  167. package/pynithy/run/etny-trustedzone-test.yaml.tpl +46 -0
  168. package/pynithy/run/git.sh +22 -0
  169. package/pynithy/run/image_registry.abi +1 -0
  170. package/pynithy/run/image_registry.js +372 -0
  171. package/pynithy/run/image_registry.py +139 -0
  172. package/pynithy/run/image_registry_runner.py +45 -0
  173. package/pynithy/run/ipfs.sh +89 -0
  174. package/pynithy/run/public_key_service.js +90 -0
  175. package/pynithy/run/swiftstream.py +28 -0
  176. package/pynithy/run.js +538 -0
  177. package/pynithy/src/App.css +57 -0
  178. package/pynithy/src/ec_helloworld_example.js +64 -0
  179. package/pynithy/src/index.css +13 -0
  180. package/pynithy/src/index.js +17 -0
  181. package/pynithy/src/preStart.mjs +57 -0
  182. package/pynithy/src/reportWebVitals.js +13 -0
  183. package/pynithy/src/serverless/__init__.py +0 -0
  184. package/pynithy/src/serverless/backend.py +2 -0
@@ -0,0 +1,808 @@
1
+ const contract = [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "address",
8
+ "name": "wallet",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "name": "AllowedWalletAdded",
13
+ "type": "event"
14
+ },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "address",
21
+ "name": "wallet",
22
+ "type": "address"
23
+ }
24
+ ],
25
+ "name": "AllowedWalletRemoved",
26
+ "type": "event"
27
+ },
28
+ {
29
+ "anonymous": false,
30
+ "inputs": [
31
+ {
32
+ "indexed": false,
33
+ "internalType": "string",
34
+ "name": "ipfsHash",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "indexed": false,
39
+ "internalType": "string",
40
+ "name": "publicKey",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "indexed": false,
45
+ "internalType": "string",
46
+ "name": "version",
47
+ "type": "string"
48
+ }
49
+ ],
50
+ "name": "ImageAdded",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": false,
58
+ "internalType": "string",
59
+ "name": "ipfsHash",
60
+ "type": "string"
61
+ }
62
+ ],
63
+ "name": "ImagePublished",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": false,
71
+ "internalType": "string",
72
+ "name": "ipfsHash",
73
+ "type": "string"
74
+ }
75
+ ],
76
+ "name": "ImageRemoved",
77
+ "type": "event"
78
+ },
79
+ {
80
+ "anonymous": false,
81
+ "inputs": [
82
+ {
83
+ "indexed": false,
84
+ "internalType": "string",
85
+ "name": "ipfsHash",
86
+ "type": "string"
87
+ }
88
+ ],
89
+ "name": "ImageValidated",
90
+ "type": "event"
91
+ },
92
+ {
93
+ "anonymous": false,
94
+ "inputs": [
95
+ {
96
+ "indexed": true,
97
+ "internalType": "address",
98
+ "name": "previousOwner",
99
+ "type": "address"
100
+ },
101
+ {
102
+ "indexed": true,
103
+ "internalType": "address",
104
+ "name": "newOwner",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "name": "OwnerChanged",
109
+ "type": "event"
110
+ },
111
+ {
112
+ "anonymous": false,
113
+ "inputs": [
114
+ {
115
+ "indexed": false,
116
+ "internalType": "string",
117
+ "name": "ipfsHash",
118
+ "type": "string"
119
+ }
120
+ ],
121
+ "name": "TrustedZoneImageAdded",
122
+ "type": "event"
123
+ },
124
+ {
125
+ "anonymous": false,
126
+ "inputs": [
127
+ {
128
+ "indexed": false,
129
+ "internalType": "string",
130
+ "name": "ipfsHash",
131
+ "type": "string"
132
+ }
133
+ ],
134
+ "name": "TrustedZoneImageRemoved",
135
+ "type": "event"
136
+ },
137
+ {
138
+ "inputs": [
139
+ {
140
+ "internalType": "address",
141
+ "name": "wallet",
142
+ "type": "address"
143
+ }
144
+ ],
145
+ "name": "addAllowedWallet",
146
+ "outputs": [],
147
+ "stateMutability": "nonpayable",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "string",
154
+ "name": "ipfsHash",
155
+ "type": "string"
156
+ },
157
+ {
158
+ "internalType": "string",
159
+ "name": "certPublicKey",
160
+ "type": "string"
161
+ },
162
+ {
163
+ "internalType": "string",
164
+ "name": "version",
165
+ "type": "string"
166
+ },
167
+ {
168
+ "internalType": "string",
169
+ "name": "imageName",
170
+ "type": "string"
171
+ },
172
+ {
173
+ "internalType": "string",
174
+ "name": "dockerComposeHash",
175
+ "type": "string"
176
+ },
177
+ {
178
+ "internalType": "string",
179
+ "name": "session",
180
+ "type": "string"
181
+ },
182
+ {
183
+ "internalType": "uint8",
184
+ "name": "fee",
185
+ "type": "uint8"
186
+ }
187
+ ],
188
+ "name": "addImage",
189
+ "outputs": [],
190
+ "stateMutability": "nonpayable",
191
+ "type": "function"
192
+ },
193
+ {
194
+ "inputs": [
195
+ {
196
+ "internalType": "string",
197
+ "name": "ipfsHash",
198
+ "type": "string"
199
+ },
200
+ {
201
+ "internalType": "string",
202
+ "name": "certPublicKey",
203
+ "type": "string"
204
+ },
205
+ {
206
+ "internalType": "string",
207
+ "name": "version",
208
+ "type": "string"
209
+ },
210
+ {
211
+ "internalType": "string",
212
+ "name": "imageName",
213
+ "type": "string"
214
+ },
215
+ {
216
+ "internalType": "string",
217
+ "name": "dockerComposeHash",
218
+ "type": "string"
219
+ },
220
+ {
221
+ "internalType": "string",
222
+ "name": "session",
223
+ "type": "string"
224
+ },
225
+ {
226
+ "internalType": "uint8",
227
+ "name": "fee",
228
+ "type": "uint8"
229
+ }
230
+ ],
231
+ "name": "addTrustedZoneImage",
232
+ "outputs": [],
233
+ "stateMutability": "nonpayable",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "internalType": "string",
240
+ "name": "ipfsHash",
241
+ "type": "string"
242
+ },
243
+ {
244
+ "internalType": "address",
245
+ "name": "newRewardAddress",
246
+ "type": "address"
247
+ }
248
+ ],
249
+ "name": "changeImageRewardAddress",
250
+ "outputs": [],
251
+ "stateMutability": "nonpayable",
252
+ "type": "function"
253
+ },
254
+ {
255
+ "inputs": [
256
+ {
257
+ "internalType": "address",
258
+ "name": "newOwner",
259
+ "type": "address"
260
+ }
261
+ ],
262
+ "name": "changeOwner",
263
+ "outputs": [],
264
+ "stateMutability": "nonpayable",
265
+ "type": "function"
266
+ },
267
+ {
268
+ "inputs": [
269
+ {
270
+ "internalType": "string",
271
+ "name": "ipfsHash",
272
+ "type": "string"
273
+ },
274
+ {
275
+ "internalType": "address",
276
+ "name": "newRewardAddress",
277
+ "type": "address"
278
+ }
279
+ ],
280
+ "name": "changeTrustedZoneImageRewardAddress",
281
+ "outputs": [],
282
+ "stateMutability": "nonpayable",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "inputs": [
287
+ {
288
+ "internalType": "string",
289
+ "name": "ipfsHash",
290
+ "type": "string"
291
+ }
292
+ ],
293
+ "name": "publishImage",
294
+ "outputs": [],
295
+ "stateMutability": "nonpayable",
296
+ "type": "function"
297
+ },
298
+ {
299
+ "inputs": [
300
+ {
301
+ "internalType": "address",
302
+ "name": "wallet",
303
+ "type": "address"
304
+ }
305
+ ],
306
+ "name": "removeAllowedWallet",
307
+ "outputs": [],
308
+ "stateMutability": "nonpayable",
309
+ "type": "function"
310
+ },
311
+ {
312
+ "inputs": [
313
+ {
314
+ "internalType": "string",
315
+ "name": "ipfsHash",
316
+ "type": "string"
317
+ }
318
+ ],
319
+ "name": "validateImage",
320
+ "outputs": [],
321
+ "stateMutability": "nonpayable",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [],
326
+ "stateMutability": "nonpayable",
327
+ "type": "constructor"
328
+ },
329
+ {
330
+ "inputs": [
331
+ {
332
+ "internalType": "address",
333
+ "name": "",
334
+ "type": "address"
335
+ }
336
+ ],
337
+ "name": "allowedWallets",
338
+ "outputs": [
339
+ {
340
+ "internalType": "bool",
341
+ "name": "",
342
+ "type": "bool"
343
+ }
344
+ ],
345
+ "stateMutability": "view",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ {
351
+ "internalType": "string",
352
+ "name": "ipfsHash",
353
+ "type": "string"
354
+ }
355
+ ],
356
+ "name": "getImageCertPublicKey",
357
+ "outputs": [
358
+ {
359
+ "internalType": "string",
360
+ "name": "",
361
+ "type": "string"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [
369
+ {
370
+ "internalType": "string",
371
+ "name": "ipfsHash",
372
+ "type": "string"
373
+ }
374
+ ],
375
+ "name": "getImageSession",
376
+ "outputs": [
377
+ {
378
+ "internalType": "string",
379
+ "name": "",
380
+ "type": "string"
381
+ }
382
+ ],
383
+ "stateMutability": "view",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [
388
+ {
389
+ "internalType": "string",
390
+ "name": "imageName",
391
+ "type": "string"
392
+ },
393
+ {
394
+ "internalType": "string",
395
+ "name": "version",
396
+ "type": "string"
397
+ }
398
+ ],
399
+ "name": "getLatestImageVersionPublicKey",
400
+ "outputs": [
401
+ {
402
+ "internalType": "string",
403
+ "name": "",
404
+ "type": "string"
405
+ },
406
+ {
407
+ "internalType": "string",
408
+ "name": "",
409
+ "type": "string"
410
+ },
411
+ {
412
+ "internalType": "string",
413
+ "name": "",
414
+ "type": "string"
415
+ }
416
+ ],
417
+ "stateMutability": "view",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "string",
424
+ "name": "imageName",
425
+ "type": "string"
426
+ },
427
+ {
428
+ "internalType": "string",
429
+ "name": "version",
430
+ "type": "string"
431
+ }
432
+ ],
433
+ "name": "getLatestTrustedZoneImageCertPublicKey",
434
+ "outputs": [
435
+ {
436
+ "internalType": "string",
437
+ "name": "",
438
+ "type": "string"
439
+ },
440
+ {
441
+ "internalType": "string",
442
+ "name": "",
443
+ "type": "string"
444
+ },
445
+ {
446
+ "internalType": "string",
447
+ "name": "",
448
+ "type": "string"
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [
456
+ {
457
+ "internalType": "string",
458
+ "name": "ipfsHash",
459
+ "type": "string"
460
+ }
461
+ ],
462
+ "name": "getRewardAddress",
463
+ "outputs": [
464
+ {
465
+ "internalType": "address",
466
+ "name": "",
467
+ "type": "address"
468
+ }
469
+ ],
470
+ "stateMutability": "view",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [
475
+ {
476
+ "internalType": "string",
477
+ "name": "ipfsHash",
478
+ "type": "string"
479
+ }
480
+ ],
481
+ "name": "getTrustedZoneImageCertPublicKey",
482
+ "outputs": [
483
+ {
484
+ "internalType": "string",
485
+ "name": "",
486
+ "type": "string"
487
+ }
488
+ ],
489
+ "stateMutability": "view",
490
+ "type": "function"
491
+ },
492
+ {
493
+ "inputs": [
494
+ {
495
+ "internalType": "string",
496
+ "name": "ipfsHash",
497
+ "type": "string"
498
+ }
499
+ ],
500
+ "name": "getTrustedZoneImageSession",
501
+ "outputs": [
502
+ {
503
+ "internalType": "string",
504
+ "name": "",
505
+ "type": "string"
506
+ }
507
+ ],
508
+ "stateMutability": "view",
509
+ "type": "function"
510
+ },
511
+ {
512
+ "inputs": [
513
+ {
514
+ "internalType": "string",
515
+ "name": "ipfsHash",
516
+ "type": "string"
517
+ }
518
+ ],
519
+ "name": "getTrustedZoneRewardAddress",
520
+ "outputs": [
521
+ {
522
+ "internalType": "address",
523
+ "name": "",
524
+ "type": "address"
525
+ }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [
532
+ {
533
+ "internalType": "string",
534
+ "name": "",
535
+ "type": "string"
536
+ }
537
+ ],
538
+ "name": "imageDetails",
539
+ "outputs": [
540
+ {
541
+ "internalType": "address",
542
+ "name": "owner",
543
+ "type": "address"
544
+ },
545
+ {
546
+ "internalType": "string",
547
+ "name": "ipfsHash",
548
+ "type": "string"
549
+ },
550
+ {
551
+ "internalType": "string",
552
+ "name": "version",
553
+ "type": "string"
554
+ },
555
+ {
556
+ "internalType": "string",
557
+ "name": "session",
558
+ "type": "string"
559
+ },
560
+ {
561
+ "internalType": "uint8",
562
+ "name": "fee",
563
+ "type": "uint8"
564
+ },
565
+ {
566
+ "internalType": "address",
567
+ "name": "rewardAddress",
568
+ "type": "address"
569
+ },
570
+ {
571
+ "internalType": "bool",
572
+ "name": "validated",
573
+ "type": "bool"
574
+ },
575
+ {
576
+ "internalType": "bool",
577
+ "name": "published",
578
+ "type": "bool"
579
+ },
580
+ {
581
+ "internalType": "string",
582
+ "name": "certPublicKey",
583
+ "type": "string"
584
+ },
585
+ {
586
+ "internalType": "string",
587
+ "name": "dockerComposeHash",
588
+ "type": "string"
589
+ },
590
+ {
591
+ "internalType": "string",
592
+ "name": "name",
593
+ "type": "string"
594
+ }
595
+ ],
596
+ "stateMutability": "view",
597
+ "type": "function"
598
+ },
599
+ {
600
+ "inputs": [
601
+ {
602
+ "internalType": "uint256",
603
+ "name": "",
604
+ "type": "uint256"
605
+ }
606
+ ],
607
+ "name": "images",
608
+ "outputs": [
609
+ {
610
+ "internalType": "string",
611
+ "name": "",
612
+ "type": "string"
613
+ }
614
+ ],
615
+ "stateMutability": "view",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
621
+ "internalType": "string",
622
+ "name": "",
623
+ "type": "string"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "name": "imageVersions",
632
+ "outputs": [
633
+ {
634
+ "internalType": "string",
635
+ "name": "",
636
+ "type": "string"
637
+ }
638
+ ],
639
+ "stateMutability": "view",
640
+ "type": "function"
641
+ },
642
+ {
643
+ "inputs": [
644
+ {
645
+ "internalType": "string",
646
+ "name": "",
647
+ "type": "string"
648
+ },
649
+ {
650
+ "internalType": "string",
651
+ "name": "",
652
+ "type": "string"
653
+ },
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "name": "imageVersionsHash",
661
+ "outputs": [
662
+ {
663
+ "internalType": "string",
664
+ "name": "",
665
+ "type": "string"
666
+ }
667
+ ],
668
+ "stateMutability": "view",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [],
673
+ "name": "owner",
674
+ "outputs": [
675
+ {
676
+ "internalType": "address",
677
+ "name": "",
678
+ "type": "address"
679
+ }
680
+ ],
681
+ "stateMutability": "view",
682
+ "type": "function"
683
+ },
684
+ {
685
+ "inputs": [
686
+ {
687
+ "internalType": "string",
688
+ "name": "",
689
+ "type": "string"
690
+ }
691
+ ],
692
+ "name": "trustedZoneImageDetails",
693
+ "outputs": [
694
+ {
695
+ "internalType": "address",
696
+ "name": "owner",
697
+ "type": "address"
698
+ },
699
+ {
700
+ "internalType": "string",
701
+ "name": "ipfsHash",
702
+ "type": "string"
703
+ },
704
+ {
705
+ "internalType": "string",
706
+ "name": "version",
707
+ "type": "string"
708
+ },
709
+ {
710
+ "internalType": "string",
711
+ "name": "session",
712
+ "type": "string"
713
+ },
714
+ {
715
+ "internalType": "uint8",
716
+ "name": "fee",
717
+ "type": "uint8"
718
+ },
719
+ {
720
+ "internalType": "address",
721
+ "name": "rewardAddress",
722
+ "type": "address"
723
+ },
724
+ {
725
+ "internalType": "bool",
726
+ "name": "validated",
727
+ "type": "bool"
728
+ },
729
+ {
730
+ "internalType": "bool",
731
+ "name": "published",
732
+ "type": "bool"
733
+ },
734
+ {
735
+ "internalType": "string",
736
+ "name": "certPublicKey",
737
+ "type": "string"
738
+ },
739
+ {
740
+ "internalType": "string",
741
+ "name": "dockerComposeHash",
742
+ "type": "string"
743
+ },
744
+ {
745
+ "internalType": "string",
746
+ "name": "name",
747
+ "type": "string"
748
+ }
749
+ ],
750
+ "stateMutability": "view",
751
+ "type": "function"
752
+ },
753
+ {
754
+ "inputs": [
755
+ {
756
+ "internalType": "string",
757
+ "name": "",
758
+ "type": "string"
759
+ },
760
+ {
761
+ "internalType": "uint256",
762
+ "name": "",
763
+ "type": "uint256"
764
+ }
765
+ ],
766
+ "name": "trustedZoneImageVersions",
767
+ "outputs": [
768
+ {
769
+ "internalType": "string",
770
+ "name": "",
771
+ "type": "string"
772
+ }
773
+ ],
774
+ "stateMutability": "view",
775
+ "type": "function"
776
+ },
777
+ {
778
+ "inputs": [
779
+ {
780
+ "internalType": "string",
781
+ "name": "",
782
+ "type": "string"
783
+ },
784
+ {
785
+ "internalType": "string",
786
+ "name": "",
787
+ "type": "string"
788
+ },
789
+ {
790
+ "internalType": "uint256",
791
+ "name": "",
792
+ "type": "uint256"
793
+ }
794
+ ],
795
+ "name": "trustedZoneVersionsHash",
796
+ "outputs": [
797
+ {
798
+ "internalType": "string",
799
+ "name": "",
800
+ "type": "string"
801
+ }
802
+ ],
803
+ "stateMutability": "view",
804
+ "type": "function"
805
+ }
806
+ ]
807
+
808
+ module.exports = contract;