@cartesi/cli 2.0.0-alpha.2 → 2.0.0-alpha.20

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 (170) hide show
  1. package/dist/base.d.ts +28 -0
  2. package/dist/base.d.ts.map +1 -0
  3. package/dist/base.js +109 -0
  4. package/dist/builder/directory.d.ts +2 -2
  5. package/dist/builder/directory.d.ts.map +1 -1
  6. package/dist/builder/directory.js +5 -3
  7. package/dist/builder/docker.d.ts +2 -2
  8. package/dist/builder/docker.d.ts.map +1 -1
  9. package/dist/builder/docker.js +39 -37
  10. package/dist/builder/empty.d.ts +1 -1
  11. package/dist/builder/empty.d.ts.map +1 -1
  12. package/dist/builder/empty.js +1 -1
  13. package/dist/builder/none.d.ts +1 -1
  14. package/dist/builder/none.d.ts.map +1 -1
  15. package/dist/builder/none.js +1 -1
  16. package/dist/builder/tar.d.ts +1 -1
  17. package/dist/builder/tar.d.ts.map +1 -1
  18. package/dist/builder/tar.js +1 -1
  19. package/dist/commands/address-book.d.ts +5 -8
  20. package/dist/commands/address-book.d.ts.map +1 -1
  21. package/dist/commands/address-book.js +18 -14
  22. package/dist/commands/build.d.ts +7 -11
  23. package/dist/commands/build.d.ts.map +1 -1
  24. package/dist/commands/build.js +82 -58
  25. package/dist/commands/clean.d.ts +2 -7
  26. package/dist/commands/clean.d.ts.map +1 -1
  27. package/dist/commands/clean.js +9 -10
  28. package/dist/commands/create.d.ts +6 -15
  29. package/dist/commands/create.d.ts.map +1 -1
  30. package/dist/commands/create.js +25 -54
  31. package/dist/commands/deploy/build.d.ts +2 -14
  32. package/dist/commands/deploy/build.d.ts.map +1 -1
  33. package/dist/commands/deploy/build.js +8 -61
  34. package/dist/commands/deploy.d.ts +3 -0
  35. package/dist/commands/deploy.d.ts.map +1 -0
  36. package/dist/commands/deploy.js +12 -0
  37. package/dist/commands/deposit/erc1155.d.ts +18 -0
  38. package/dist/commands/deposit/erc1155.d.ts.map +1 -0
  39. package/dist/commands/deposit/erc1155.js +254 -0
  40. package/dist/commands/deposit/erc20.d.ts +10 -0
  41. package/dist/commands/deposit/erc20.d.ts.map +1 -0
  42. package/dist/commands/deposit/erc20.js +125 -0
  43. package/dist/commands/deposit/erc721.d.ts +10 -0
  44. package/dist/commands/deposit/erc721.d.ts.map +1 -0
  45. package/dist/commands/deposit/erc721.js +143 -0
  46. package/dist/commands/deposit/ether.d.ts +10 -0
  47. package/dist/commands/deposit/ether.d.ts.map +1 -0
  48. package/dist/commands/deposit/ether.js +65 -0
  49. package/dist/commands/deposit.d.ts +9 -0
  50. package/dist/commands/deposit.d.ts.map +1 -0
  51. package/dist/commands/deposit.js +37 -0
  52. package/dist/commands/doctor.d.ts +2 -12
  53. package/dist/commands/doctor.d.ts.map +1 -1
  54. package/dist/commands/doctor.js +90 -91
  55. package/dist/commands/hash.d.ts +4 -9
  56. package/dist/commands/hash.d.ts.map +1 -1
  57. package/dist/commands/hash.js +14 -14
  58. package/dist/commands/logs.d.ts +9 -0
  59. package/dist/commands/logs.d.ts.map +1 -0
  60. package/dist/commands/logs.js +34 -0
  61. package/dist/commands/run.d.ts +14 -20
  62. package/dist/commands/run.d.ts.map +1 -1
  63. package/dist/commands/run.js +193 -182
  64. package/dist/commands/send.d.ts +10 -0
  65. package/dist/commands/send.d.ts.map +1 -0
  66. package/dist/commands/send.js +130 -0
  67. package/dist/commands/shell.d.ts +6 -14
  68. package/dist/commands/shell.d.ts.map +1 -1
  69. package/dist/commands/shell.js +34 -51
  70. package/dist/commands/status.d.ts +6 -0
  71. package/dist/commands/status.d.ts.map +1 -0
  72. package/dist/commands/status.js +50 -0
  73. package/dist/compose/default.env +36 -0
  74. package/dist/compose/docker-compose-anvil.yaml +39 -0
  75. package/dist/compose/docker-compose-bundler.yaml +71 -0
  76. package/dist/{node → compose}/docker-compose-database.yaml +4 -2
  77. package/dist/compose/docker-compose-explorer.yaml +96 -0
  78. package/dist/compose/docker-compose-graphql.yaml +38 -0
  79. package/dist/compose/docker-compose-node-cpus.yaml +6 -0
  80. package/dist/compose/docker-compose-node-memory.yaml +6 -0
  81. package/dist/compose/docker-compose-node.yaml +50 -0
  82. package/dist/compose/docker-compose-passkey-server.yaml +37 -0
  83. package/dist/compose/docker-compose-paymaster.yaml +40 -0
  84. package/dist/compose/docker-compose-proxy.yaml +24 -0
  85. package/dist/config.d.ts +30 -9
  86. package/dist/config.d.ts.map +1 -1
  87. package/dist/config.js +93 -53
  88. package/dist/contracts.d.ts +1695 -1636
  89. package/dist/contracts.d.ts.map +1 -1
  90. package/dist/contracts.js +632 -592
  91. package/dist/exec/cartesi-machine.d.ts +2 -2
  92. package/dist/exec/cartesi-machine.d.ts.map +1 -1
  93. package/dist/exec/cartesi-machine.js +3 -5
  94. package/dist/exec/genext2fs.d.ts +6 -3
  95. package/dist/exec/genext2fs.d.ts.map +1 -1
  96. package/dist/exec/genext2fs.js +5 -5
  97. package/dist/exec/index.d.ts +0 -1
  98. package/dist/exec/index.d.ts.map +1 -1
  99. package/dist/exec/index.js +0 -1
  100. package/dist/exec/mksquashfs.d.ts +2 -2
  101. package/dist/exec/mksquashfs.d.ts.map +1 -1
  102. package/dist/exec/mksquashfs.js +4 -2
  103. package/dist/exec/rollups.d.ts +105 -0
  104. package/dist/exec/rollups.d.ts.map +1 -0
  105. package/dist/exec/rollups.js +383 -0
  106. package/dist/exec/util.d.ts +1 -16
  107. package/dist/exec/util.d.ts.map +1 -1
  108. package/dist/exec/util.js +3 -50
  109. package/dist/index.d.ts +2 -1
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +57 -1
  112. package/dist/machine.d.ts +8 -2
  113. package/dist/machine.d.ts.map +1 -1
  114. package/dist/machine.js +26 -16
  115. package/dist/prompts.d.ts +13 -2
  116. package/dist/prompts.d.ts.map +1 -1
  117. package/dist/prompts.js +60 -26
  118. package/dist/template.d.ts +3 -0
  119. package/dist/template.d.ts.map +1 -0
  120. package/dist/template.js +16 -0
  121. package/dist/wallet.d.ts +9222 -21
  122. package/dist/wallet.d.ts.map +1 -1
  123. package/dist/wallet.js +35 -198
  124. package/package.json +39 -57
  125. package/bin/dev.cmd +0 -3
  126. package/bin/dev.js +0 -25
  127. package/bin/run.cmd +0 -3
  128. package/bin/run.js +0 -8
  129. package/dist/baseCommand.d.ts +0 -22
  130. package/dist/baseCommand.d.ts.map +0 -1
  131. package/dist/baseCommand.js +0 -92
  132. package/dist/commands/deploy/index.d.ts +0 -12
  133. package/dist/commands/deploy/index.d.ts.map +0 -1
  134. package/dist/commands/deploy/index.js +0 -78
  135. package/dist/commands/send/erc20.d.ts +0 -14
  136. package/dist/commands/send/erc20.d.ts.map +0 -1
  137. package/dist/commands/send/erc20.js +0 -70
  138. package/dist/commands/send/erc721.d.ts +0 -14
  139. package/dist/commands/send/erc721.d.ts.map +0 -1
  140. package/dist/commands/send/erc721.js +0 -73
  141. package/dist/commands/send/ether.d.ts +0 -13
  142. package/dist/commands/send/ether.d.ts.map +0 -1
  143. package/dist/commands/send/ether.js +0 -32
  144. package/dist/commands/send/generic.d.ts +0 -15
  145. package/dist/commands/send/generic.d.ts.map +0 -1
  146. package/dist/commands/send/generic.js +0 -119
  147. package/dist/commands/send/index.d.ts +0 -28
  148. package/dist/commands/send/index.d.ts.map +0 -1
  149. package/dist/commands/send/index.js +0 -102
  150. package/dist/exec/crane.d.ts +0 -15
  151. package/dist/exec/crane.d.ts.map +0 -1
  152. package/dist/exec/crane.js +0 -17
  153. package/dist/flags.d.ts +0 -17
  154. package/dist/flags.d.ts.map +0 -1
  155. package/dist/flags.js +0 -28
  156. package/dist/node/DockerfileDeploy.txt +0 -4
  157. package/dist/node/default.env +0 -27
  158. package/dist/node/docker-compose-anvil.yaml +0 -50
  159. package/dist/node/docker-compose-bundler.yaml +0 -57
  160. package/dist/node/docker-compose-envfile.yaml +0 -4
  161. package/dist/node/docker-compose-explorer.yaml +0 -88
  162. package/dist/node/docker-compose-host.yaml +0 -30
  163. package/dist/node/docker-compose-paymaster.yaml +0 -33
  164. package/dist/node/docker-compose-prompt.yaml +0 -17
  165. package/dist/node/docker-compose-proxy.yaml +0 -48
  166. package/dist/node/docker-compose-snapshot-volume.yaml +0 -8
  167. package/dist/node/docker-compose-validator-cpus.yaml +0 -6
  168. package/dist/node/docker-compose-validator-memory.yaml +0 -6
  169. package/dist/node/docker-compose-validator.yaml +0 -59
  170. package/oclif.manifest.json +0 -876
@@ -1,876 +0,0 @@
1
- {
2
- "commands": {
3
- "address-book": {
4
- "aliases": [],
5
- "args": {},
6
- "description": "Prints the addresses of all smart contracts deployed to the runtime environment of the application.",
7
- "examples": [
8
- "<%= config.bin %> <%= command.id %>"
9
- ],
10
- "flags": {
11
- "json": {
12
- "description": "Format output as json.",
13
- "helpGroup": "GLOBAL",
14
- "name": "json",
15
- "allowNo": false,
16
- "type": "boolean"
17
- }
18
- },
19
- "hasDynamicHelp": false,
20
- "hiddenAliases": [],
21
- "id": "address-book",
22
- "pluginAlias": "@cartesi/cli",
23
- "pluginName": "@cartesi/cli",
24
- "pluginType": "core",
25
- "strict": true,
26
- "summary": "Prints addresses of smart contracts deployed.",
27
- "enableJsonFlag": true,
28
- "isESM": true,
29
- "relativePath": [
30
- "dist",
31
- "commands",
32
- "address-book.js"
33
- ]
34
- },
35
- "build": {
36
- "aliases": [],
37
- "args": {},
38
- "description": "Build application by building Cartesi machine drives, configuring a machine and booting it",
39
- "examples": [
40
- "<%= config.bin %> <%= command.id %>"
41
- ],
42
- "flags": {
43
- "config": {
44
- "char": "c",
45
- "name": "config",
46
- "summary": "path to the configuration file",
47
- "default": "cartesi.toml",
48
- "hasDynamicHelp": false,
49
- "multiple": false,
50
- "type": "option"
51
- },
52
- "drives-only": {
53
- "name": "drives-only",
54
- "summary": "only build drives",
55
- "allowNo": false,
56
- "type": "boolean"
57
- }
58
- },
59
- "hasDynamicHelp": false,
60
- "hiddenAliases": [],
61
- "id": "build",
62
- "pluginAlias": "@cartesi/cli",
63
- "pluginName": "@cartesi/cli",
64
- "pluginType": "core",
65
- "strict": true,
66
- "summary": "Build application.",
67
- "isESM": true,
68
- "relativePath": [
69
- "dist",
70
- "commands",
71
- "build.js"
72
- ]
73
- },
74
- "clean": {
75
- "aliases": [],
76
- "args": {},
77
- "description": "Deletes all cached build artifacts of application.",
78
- "examples": [
79
- "<%= config.bin %> <%= command.id %>"
80
- ],
81
- "flags": {},
82
- "hasDynamicHelp": false,
83
- "hiddenAliases": [],
84
- "id": "clean",
85
- "pluginAlias": "@cartesi/cli",
86
- "pluginName": "@cartesi/cli",
87
- "pluginType": "core",
88
- "strict": true,
89
- "summary": "Clean build artifacts of application.",
90
- "isESM": true,
91
- "relativePath": [
92
- "dist",
93
- "commands",
94
- "clean.js"
95
- ]
96
- },
97
- "create": {
98
- "aliases": [],
99
- "args": {
100
- "name": {
101
- "description": "application and directory name",
102
- "name": "name",
103
- "required": true
104
- }
105
- },
106
- "description": "Create application",
107
- "examples": [
108
- "<%= config.bin %> <%= command.id %>"
109
- ],
110
- "flags": {
111
- "template": {
112
- "description": "template name to use",
113
- "name": "template",
114
- "required": true,
115
- "hasDynamicHelp": false,
116
- "multiple": false,
117
- "options": [
118
- "cpp",
119
- "cpp-low-level",
120
- "go",
121
- "javascript",
122
- "lua",
123
- "python",
124
- "ruby",
125
- "rust",
126
- "typescript"
127
- ],
128
- "type": "option"
129
- },
130
- "branch": {
131
- "description": "cartesi/application-templates repository branch name to use",
132
- "name": "branch",
133
- "default": "sdk-0.9",
134
- "hasDynamicHelp": false,
135
- "multiple": false,
136
- "type": "option"
137
- }
138
- },
139
- "hasDynamicHelp": false,
140
- "hiddenAliases": [],
141
- "id": "create",
142
- "pluginAlias": "@cartesi/cli",
143
- "pluginName": "@cartesi/cli",
144
- "pluginType": "core",
145
- "strict": true,
146
- "isESM": true,
147
- "relativePath": [
148
- "dist",
149
- "commands",
150
- "create.js"
151
- ]
152
- },
153
- "doctor": {
154
- "aliases": [],
155
- "args": {},
156
- "description": "Verify the minimal sytem requirements",
157
- "examples": [
158
- "<%= config.bin %> <%= command.id %>"
159
- ],
160
- "flags": {},
161
- "hasDynamicHelp": false,
162
- "hiddenAliases": [],
163
- "id": "doctor",
164
- "pluginAlias": "@cartesi/cli",
165
- "pluginName": "@cartesi/cli",
166
- "pluginType": "core",
167
- "strict": true,
168
- "MINIMUM_DOCKER_VERSION": "23.0.0",
169
- "MINIMUM_DOCKER_COMPOSE_VERSION": "2.21.0",
170
- "MINIMUM_BUILDX_VERSION": "0.13.0",
171
- "isESM": true,
172
- "relativePath": [
173
- "dist",
174
- "commands",
175
- "doctor.js"
176
- ]
177
- },
178
- "hash": {
179
- "aliases": [],
180
- "args": {},
181
- "description": "Converts the binary generated by the build command to hexadecimal and prints out the result to console",
182
- "flags": {
183
- "json": {
184
- "description": "Format output as json.",
185
- "helpGroup": "GLOBAL",
186
- "name": "json",
187
- "allowNo": false,
188
- "type": "boolean"
189
- }
190
- },
191
- "hasDynamicHelp": false,
192
- "hiddenAliases": [],
193
- "id": "hash",
194
- "pluginAlias": "@cartesi/cli",
195
- "pluginName": "@cartesi/cli",
196
- "pluginType": "core",
197
- "strict": true,
198
- "summary": "Prints out image hash generated by the build command",
199
- "enableJsonFlag": true,
200
- "isESM": true,
201
- "relativePath": [
202
- "dist",
203
- "commands",
204
- "hash.js"
205
- ]
206
- },
207
- "run": {
208
- "aliases": [],
209
- "args": {},
210
- "description": "Run a local cartesi node for the application.",
211
- "examples": [
212
- "<%= config.bin %> <%= command.id %>"
213
- ],
214
- "flags": {
215
- "block-time": {
216
- "description": "interval between blocks (in seconds)",
217
- "name": "block-time",
218
- "default": 5,
219
- "hasDynamicHelp": false,
220
- "multiple": false,
221
- "type": "option"
222
- },
223
- "disable-explorer": {
224
- "description": "disable local explorer service to save machine resources",
225
- "name": "disable-explorer",
226
- "summary": "disable explorer service",
227
- "allowNo": false,
228
- "type": "boolean"
229
- },
230
- "disable-bundler": {
231
- "description": "disable local bundler service to save machine resources",
232
- "name": "disable-bundler",
233
- "summary": "disable bundler service",
234
- "allowNo": false,
235
- "type": "boolean"
236
- },
237
- "disable-paymaster": {
238
- "description": "disable local paymaster service to save machine resources",
239
- "name": "disable-paymaster",
240
- "summary": "disable paymaster service",
241
- "allowNo": false,
242
- "type": "boolean"
243
- },
244
- "epoch-length": {
245
- "description": "length of an epoch (in blocks)",
246
- "name": "epoch-length",
247
- "default": 720,
248
- "hasDynamicHelp": false,
249
- "multiple": false,
250
- "type": "option"
251
- },
252
- "no-backend": {
253
- "description": "Run a node without the application code. Application must be executed by the developer on the host machine, fetching inputs from the node running at http://localhost:5004",
254
- "name": "no-backend",
255
- "summary": "run a node without the application code",
256
- "allowNo": false,
257
- "type": "boolean"
258
- },
259
- "verbose": {
260
- "char": "v",
261
- "description": "verbose output",
262
- "name": "verbose",
263
- "allowNo": false,
264
- "type": "boolean"
265
- },
266
- "listen-port": {
267
- "description": "port to listen for incoming connections",
268
- "name": "listen-port",
269
- "default": 8080,
270
- "hasDynamicHelp": false,
271
- "multiple": false,
272
- "type": "option"
273
- },
274
- "cpus": {
275
- "description": "Define the number of CPUs to use (eg.: 1) for the rollups-node",
276
- "name": "cpus",
277
- "summary": "number of cpu limits for the rollups-node",
278
- "hasDynamicHelp": false,
279
- "multiple": false,
280
- "type": "option"
281
- },
282
- "memory": {
283
- "description": "Define the amount of memory to use for the rollups-node in MB (eg.: 1024)",
284
- "name": "memory",
285
- "summary": "memory limit for the rollups-node in MB",
286
- "hasDynamicHelp": false,
287
- "multiple": false,
288
- "type": "option"
289
- },
290
- "dry-run": {
291
- "description": "show the docker compose configuration",
292
- "hidden": true,
293
- "name": "dry-run",
294
- "allowNo": false,
295
- "type": "boolean"
296
- }
297
- },
298
- "hasDynamicHelp": false,
299
- "hiddenAliases": [],
300
- "id": "run",
301
- "pluginAlias": "@cartesi/cli",
302
- "pluginName": "@cartesi/cli",
303
- "pluginType": "core",
304
- "strict": true,
305
- "summary": "Run application node.",
306
- "isESM": true,
307
- "relativePath": [
308
- "dist",
309
- "commands",
310
- "run.js"
311
- ]
312
- },
313
- "shell": {
314
- "aliases": [],
315
- "args": {
316
- "image": {
317
- "description": "image ID|name",
318
- "name": "image",
319
- "required": false
320
- }
321
- },
322
- "description": "Start a shell in cartesi machine of application",
323
- "examples": [
324
- "<%= config.bin %> <%= command.id %>"
325
- ],
326
- "flags": {
327
- "command": {
328
- "description": "shell command to run",
329
- "name": "command",
330
- "summary": "shell to run",
331
- "default": "/bin/sh",
332
- "hasDynamicHelp": false,
333
- "multiple": false,
334
- "type": "option"
335
- },
336
- "config": {
337
- "char": "c",
338
- "name": "config",
339
- "summary": "path to the configuration file",
340
- "default": "cartesi.toml",
341
- "hasDynamicHelp": false,
342
- "multiple": false,
343
- "type": "option"
344
- },
345
- "run-as-root": {
346
- "description": "run as root user",
347
- "name": "run-as-root",
348
- "summary": "run the cartesi machine as the root user",
349
- "allowNo": false,
350
- "type": "boolean"
351
- }
352
- },
353
- "hasDynamicHelp": false,
354
- "hiddenAliases": [],
355
- "id": "shell",
356
- "pluginAlias": "@cartesi/cli",
357
- "pluginName": "@cartesi/cli",
358
- "pluginType": "core",
359
- "strict": true,
360
- "isESM": true,
361
- "relativePath": [
362
- "dist",
363
- "commands",
364
- "shell.js"
365
- ]
366
- },
367
- "deploy:build": {
368
- "aliases": [],
369
- "args": {},
370
- "description": "Package the application in a Docker image ready to be deployed.",
371
- "examples": [
372
- "<%= config.bin %> <%= command.id %>"
373
- ],
374
- "flags": {
375
- "json": {
376
- "description": "Format output as json.",
377
- "helpGroup": "GLOBAL",
378
- "name": "json",
379
- "allowNo": false,
380
- "type": "boolean"
381
- },
382
- "platform": {
383
- "description": "Select the target platform for the produced Docker image. It depends on the platform where the application node will be deployed.",
384
- "name": "platform",
385
- "summary": "Docker image target platform",
386
- "hasDynamicHelp": false,
387
- "multiple": false,
388
- "options": [
389
- "linux/amd64",
390
- "linux/arm64"
391
- ],
392
- "type": "option"
393
- }
394
- },
395
- "hasDynamicHelp": false,
396
- "hiddenAliases": [],
397
- "id": "deploy:build",
398
- "pluginAlias": "@cartesi/cli",
399
- "pluginName": "@cartesi/cli",
400
- "pluginType": "core",
401
- "strict": true,
402
- "summary": "Build deployment Docker image of application.",
403
- "enableJsonFlag": true,
404
- "isESM": true,
405
- "relativePath": [
406
- "dist",
407
- "commands",
408
- "deploy",
409
- "build.js"
410
- ]
411
- },
412
- "deploy": {
413
- "aliases": [],
414
- "args": {},
415
- "description": "Package and deploy the application to a supported live network.",
416
- "examples": [
417
- "<%= config.bin %> <%= command.id %>"
418
- ],
419
- "flags": {
420
- "hosting": {
421
- "description": "Select wheather the user will host an application node himself, or use a third-party node provider",
422
- "name": "hosting",
423
- "summary": "hosting type",
424
- "hasDynamicHelp": false,
425
- "multiple": false,
426
- "options": [
427
- "self-hosted",
428
- "third-party"
429
- ],
430
- "type": "option"
431
- },
432
- "webapp": {
433
- "description": "address of deploy webapp",
434
- "name": "webapp",
435
- "required": true,
436
- "hasDynamicHelp": false,
437
- "multiple": false,
438
- "type": "option"
439
- }
440
- },
441
- "hasDynamicHelp": false,
442
- "hiddenAliases": [],
443
- "id": "deploy",
444
- "pluginAlias": "@cartesi/cli",
445
- "pluginName": "@cartesi/cli",
446
- "pluginType": "core",
447
- "strict": true,
448
- "summary": "Deploy application to a live network.",
449
- "isESM": true,
450
- "relativePath": [
451
- "dist",
452
- "commands",
453
- "deploy",
454
- "index.js"
455
- ]
456
- },
457
- "send:erc20": {
458
- "aliases": [],
459
- "args": {},
460
- "description": "Sends ERC-20 deposits to the application, optionally in interactive mode.",
461
- "examples": [
462
- "<%= config.bin %> <%= command.id %>"
463
- ],
464
- "flags": {
465
- "dapp": {
466
- "description": "the address of the DApp, defaults to the deployed DApp address if application is running.",
467
- "name": "dapp",
468
- "summary": "dapp address.",
469
- "hasDynamicHelp": false,
470
- "multiple": false,
471
- "type": "option"
472
- },
473
- "chain-id": {
474
- "char": "c",
475
- "description": "The EIP-155 chain ID.",
476
- "env": "CHAIN",
477
- "helpGroup": "Ethereum",
478
- "name": "chain-id",
479
- "hasDynamicHelp": false,
480
- "multiple": false,
481
- "options": [
482
- "31337",
483
- "421614",
484
- "84532",
485
- "11155420",
486
- "11155111",
487
- "42161",
488
- "8453",
489
- "1",
490
- "10"
491
- ],
492
- "type": "option"
493
- },
494
- "rpc-url": {
495
- "char": "r",
496
- "description": "The RPC endpoint.",
497
- "env": "ETH_RPC_URL",
498
- "helpGroup": "Ethereum",
499
- "name": "rpc-url",
500
- "hasDynamicHelp": false,
501
- "multiple": false,
502
- "type": "option"
503
- },
504
- "mnemonic-passphrase": {
505
- "description": "Use a BIP39 passphrase for the mnemonic.",
506
- "helpGroup": "Wallet",
507
- "name": "mnemonic-passphrase",
508
- "hasDynamicHelp": false,
509
- "multiple": false,
510
- "type": "option"
511
- },
512
- "mnemonic-index": {
513
- "description": "Use the private key from the given mnemonic index.",
514
- "helpGroup": "Wallet",
515
- "name": "mnemonic-index",
516
- "default": 0,
517
- "hasDynamicHelp": false,
518
- "multiple": false,
519
- "type": "option"
520
- },
521
- "token": {
522
- "description": "token address",
523
- "name": "token",
524
- "hasDynamicHelp": false,
525
- "multiple": false,
526
- "type": "option"
527
- },
528
- "amount": {
529
- "description": "amount",
530
- "name": "amount",
531
- "hasDynamicHelp": false,
532
- "multiple": false,
533
- "type": "option"
534
- }
535
- },
536
- "hasDynamicHelp": false,
537
- "hiddenAliases": [],
538
- "id": "send:erc20",
539
- "pluginAlias": "@cartesi/cli",
540
- "pluginName": "@cartesi/cli",
541
- "pluginType": "core",
542
- "summary": "Send ERC-20 deposit to the application.",
543
- "isESM": true,
544
- "relativePath": [
545
- "dist",
546
- "commands",
547
- "send",
548
- "erc20.js"
549
- ]
550
- },
551
- "send:erc721": {
552
- "aliases": [],
553
- "args": {},
554
- "description": "Sends ERC-721 deposits to the application, optionally in interactive mode.",
555
- "examples": [
556
- "<%= config.bin %> <%= command.id %>"
557
- ],
558
- "flags": {
559
- "dapp": {
560
- "description": "the address of the DApp, defaults to the deployed DApp address if application is running.",
561
- "name": "dapp",
562
- "summary": "dapp address.",
563
- "hasDynamicHelp": false,
564
- "multiple": false,
565
- "type": "option"
566
- },
567
- "chain-id": {
568
- "char": "c",
569
- "description": "The EIP-155 chain ID.",
570
- "env": "CHAIN",
571
- "helpGroup": "Ethereum",
572
- "name": "chain-id",
573
- "hasDynamicHelp": false,
574
- "multiple": false,
575
- "options": [
576
- "31337",
577
- "421614",
578
- "84532",
579
- "11155420",
580
- "11155111",
581
- "42161",
582
- "8453",
583
- "1",
584
- "10"
585
- ],
586
- "type": "option"
587
- },
588
- "rpc-url": {
589
- "char": "r",
590
- "description": "The RPC endpoint.",
591
- "env": "ETH_RPC_URL",
592
- "helpGroup": "Ethereum",
593
- "name": "rpc-url",
594
- "hasDynamicHelp": false,
595
- "multiple": false,
596
- "type": "option"
597
- },
598
- "mnemonic-passphrase": {
599
- "description": "Use a BIP39 passphrase for the mnemonic.",
600
- "helpGroup": "Wallet",
601
- "name": "mnemonic-passphrase",
602
- "hasDynamicHelp": false,
603
- "multiple": false,
604
- "type": "option"
605
- },
606
- "mnemonic-index": {
607
- "description": "Use the private key from the given mnemonic index.",
608
- "helpGroup": "Wallet",
609
- "name": "mnemonic-index",
610
- "default": 0,
611
- "hasDynamicHelp": false,
612
- "multiple": false,
613
- "type": "option"
614
- },
615
- "token": {
616
- "description": "token address",
617
- "name": "token",
618
- "hasDynamicHelp": false,
619
- "multiple": false,
620
- "type": "option"
621
- },
622
- "tokenId": {
623
- "description": "token ID",
624
- "name": "tokenId",
625
- "hasDynamicHelp": false,
626
- "multiple": false,
627
- "type": "option"
628
- }
629
- },
630
- "hasDynamicHelp": false,
631
- "hiddenAliases": [],
632
- "id": "send:erc721",
633
- "pluginAlias": "@cartesi/cli",
634
- "pluginName": "@cartesi/cli",
635
- "pluginType": "core",
636
- "summary": "Send ERC-721 deposit to the application.",
637
- "isESM": true,
638
- "relativePath": [
639
- "dist",
640
- "commands",
641
- "send",
642
- "erc721.js"
643
- ]
644
- },
645
- "send:ether": {
646
- "aliases": [],
647
- "args": {},
648
- "description": "Sends ether deposits to the application, optionally in interactive mode.",
649
- "examples": [
650
- "<%= config.bin %> <%= command.id %>"
651
- ],
652
- "flags": {
653
- "dapp": {
654
- "description": "the address of the DApp, defaults to the deployed DApp address if application is running.",
655
- "name": "dapp",
656
- "summary": "dapp address.",
657
- "hasDynamicHelp": false,
658
- "multiple": false,
659
- "type": "option"
660
- },
661
- "chain-id": {
662
- "char": "c",
663
- "description": "The EIP-155 chain ID.",
664
- "env": "CHAIN",
665
- "helpGroup": "Ethereum",
666
- "name": "chain-id",
667
- "hasDynamicHelp": false,
668
- "multiple": false,
669
- "options": [
670
- "31337",
671
- "421614",
672
- "84532",
673
- "11155420",
674
- "11155111",
675
- "42161",
676
- "8453",
677
- "1",
678
- "10"
679
- ],
680
- "type": "option"
681
- },
682
- "rpc-url": {
683
- "char": "r",
684
- "description": "The RPC endpoint.",
685
- "env": "ETH_RPC_URL",
686
- "helpGroup": "Ethereum",
687
- "name": "rpc-url",
688
- "hasDynamicHelp": false,
689
- "multiple": false,
690
- "type": "option"
691
- },
692
- "mnemonic-passphrase": {
693
- "description": "Use a BIP39 passphrase for the mnemonic.",
694
- "helpGroup": "Wallet",
695
- "name": "mnemonic-passphrase",
696
- "hasDynamicHelp": false,
697
- "multiple": false,
698
- "type": "option"
699
- },
700
- "mnemonic-index": {
701
- "description": "Use the private key from the given mnemonic index.",
702
- "helpGroup": "Wallet",
703
- "name": "mnemonic-index",
704
- "default": 0,
705
- "hasDynamicHelp": false,
706
- "multiple": false,
707
- "type": "option"
708
- },
709
- "amount": {
710
- "description": "amount, in ETH units",
711
- "name": "amount",
712
- "hasDynamicHelp": false,
713
- "multiple": false,
714
- "type": "option"
715
- },
716
- "execLayerData": {
717
- "description": "exec layer data",
718
- "name": "execLayerData",
719
- "default": "0x",
720
- "hasDynamicHelp": false,
721
- "multiple": false,
722
- "type": "option"
723
- }
724
- },
725
- "hasDynamicHelp": false,
726
- "hiddenAliases": [],
727
- "id": "send:ether",
728
- "pluginAlias": "@cartesi/cli",
729
- "pluginName": "@cartesi/cli",
730
- "pluginType": "core",
731
- "summary": "Send ether deposit to the application.",
732
- "isESM": true,
733
- "relativePath": [
734
- "dist",
735
- "commands",
736
- "send",
737
- "ether.js"
738
- ]
739
- },
740
- "send:generic": {
741
- "aliases": [],
742
- "args": {},
743
- "description": "Sends generics inputs to the application, optionally in interactive mode.",
744
- "examples": [
745
- "<%= config.bin %> <%= command.id %>"
746
- ],
747
- "flags": {
748
- "dapp": {
749
- "description": "the address of the DApp, defaults to the deployed DApp address if application is running.",
750
- "name": "dapp",
751
- "summary": "dapp address.",
752
- "hasDynamicHelp": false,
753
- "multiple": false,
754
- "type": "option"
755
- },
756
- "chain-id": {
757
- "char": "c",
758
- "description": "The EIP-155 chain ID.",
759
- "env": "CHAIN",
760
- "helpGroup": "Ethereum",
761
- "name": "chain-id",
762
- "hasDynamicHelp": false,
763
- "multiple": false,
764
- "options": [
765
- "31337",
766
- "421614",
767
- "84532",
768
- "11155420",
769
- "11155111",
770
- "42161",
771
- "8453",
772
- "1",
773
- "10"
774
- ],
775
- "type": "option"
776
- },
777
- "rpc-url": {
778
- "char": "r",
779
- "description": "The RPC endpoint.",
780
- "env": "ETH_RPC_URL",
781
- "helpGroup": "Ethereum",
782
- "name": "rpc-url",
783
- "hasDynamicHelp": false,
784
- "multiple": false,
785
- "type": "option"
786
- },
787
- "mnemonic-passphrase": {
788
- "description": "Use a BIP39 passphrase for the mnemonic.",
789
- "helpGroup": "Wallet",
790
- "name": "mnemonic-passphrase",
791
- "hasDynamicHelp": false,
792
- "multiple": false,
793
- "type": "option"
794
- },
795
- "mnemonic-index": {
796
- "description": "Use the private key from the given mnemonic index.",
797
- "helpGroup": "Wallet",
798
- "name": "mnemonic-index",
799
- "default": 0,
800
- "hasDynamicHelp": false,
801
- "multiple": false,
802
- "type": "option"
803
- },
804
- "input": {
805
- "description": "input payload",
806
- "name": "input",
807
- "summary": "see input-encoding for definition on how input is parsed",
808
- "hasDynamicHelp": false,
809
- "multiple": false,
810
- "type": "option"
811
- },
812
- "input-encoding": {
813
- "description": "input encoding",
814
- "name": "input-encoding",
815
- "summary": "if input-encoding is undefined, the input is parsed as a hex-string if it starts with 0x or else is parsed as a UTF-8 encoding",
816
- "hasDynamicHelp": false,
817
- "multiple": false,
818
- "options": [
819
- "hex",
820
- "string",
821
- "abi"
822
- ],
823
- "type": "option"
824
- },
825
- "input-abi-params": {
826
- "description": "input abi params",
827
- "name": "input-abi-params",
828
- "summary": "ABI params definition for input, following human-readable format specified at https://abitype.dev/api/human.html#parseabiparameters",
829
- "hasDynamicHelp": false,
830
- "multiple": false,
831
- "type": "option"
832
- }
833
- },
834
- "hasDynamicHelp": false,
835
- "hiddenAliases": [],
836
- "id": "send:generic",
837
- "pluginAlias": "@cartesi/cli",
838
- "pluginName": "@cartesi/cli",
839
- "pluginType": "core",
840
- "summary": "Send generic input to the application.",
841
- "isESM": true,
842
- "relativePath": [
843
- "dist",
844
- "commands",
845
- "send",
846
- "generic.js"
847
- ]
848
- },
849
- "send": {
850
- "aliases": [],
851
- "args": {},
852
- "description": "Sends different kinds of input to the application in interactive mode.",
853
- "examples": [
854
- "<%= config.bin %> <%= command.id %>"
855
- ],
856
- "flags": {},
857
- "hasDynamicHelp": false,
858
- "hiddenAliases": [],
859
- "id": "send",
860
- "pluginAlias": "@cartesi/cli",
861
- "pluginName": "@cartesi/cli",
862
- "pluginType": "core",
863
- "strict": true,
864
- "summary": "Send input to the application.",
865
- "enableJsonFlag": false,
866
- "isESM": true,
867
- "relativePath": [
868
- "dist",
869
- "commands",
870
- "send",
871
- "index.js"
872
- ]
873
- }
874
- },
875
- "version": "2.0.0-alpha.2"
876
- }