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