@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.
Files changed (88) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +19 -0
  3. package/bin/dev.cmd +3 -0
  4. package/bin/dev.js +25 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +8 -0
  7. package/dist/baseCommand.d.ts +26 -0
  8. package/dist/baseCommand.d.ts.map +1 -0
  9. package/dist/baseCommand.js +80 -0
  10. package/dist/commands/address-book.d.ts +9 -0
  11. package/dist/commands/address-book.d.ts.map +1 -0
  12. package/dist/commands/address-book.js +21 -0
  13. package/dist/commands/build.d.ts +24 -0
  14. package/dist/commands/build.d.ts.map +1 -0
  15. package/dist/commands/build.js +219 -0
  16. package/dist/commands/clean.d.ts +8 -0
  17. package/dist/commands/clean.d.ts.map +1 -0
  18. package/dist/commands/clean.js +11 -0
  19. package/dist/commands/create.d.ts +16 -0
  20. package/dist/commands/create.d.ts.map +1 -0
  21. package/dist/commands/create.js +66 -0
  22. package/dist/commands/deploy/build.d.ts +12 -0
  23. package/dist/commands/deploy/build.d.ts.map +1 -0
  24. package/dist/commands/deploy/build.js +61 -0
  25. package/dist/commands/deploy/index.d.ts +13 -0
  26. package/dist/commands/deploy/index.d.ts.map +1 -0
  27. package/dist/commands/deploy/index.js +78 -0
  28. package/dist/commands/doctor.d.ts +13 -0
  29. package/dist/commands/doctor.d.ts.map +1 -0
  30. package/dist/commands/doctor.js +106 -0
  31. package/dist/commands/hash.d.ts +10 -0
  32. package/dist/commands/hash.d.ts.map +1 -0
  33. package/dist/commands/hash.js +22 -0
  34. package/dist/commands/run.d.ts +15 -0
  35. package/dist/commands/run.d.ts.map +1 -0
  36. package/dist/commands/run.js +137 -0
  37. package/dist/commands/send/dapp-address.d.ts +9 -0
  38. package/dist/commands/send/dapp-address.d.ts.map +1 -0
  39. package/dist/commands/send/dapp-address.js +20 -0
  40. package/dist/commands/send/erc20.d.ts +14 -0
  41. package/dist/commands/send/erc20.d.ts.map +1 -0
  42. package/dist/commands/send/erc20.js +70 -0
  43. package/dist/commands/send/erc721.d.ts +14 -0
  44. package/dist/commands/send/erc721.d.ts.map +1 -0
  45. package/dist/commands/send/erc721.js +73 -0
  46. package/dist/commands/send/ether.d.ts +13 -0
  47. package/dist/commands/send/ether.d.ts.map +1 -0
  48. package/dist/commands/send/ether.js +32 -0
  49. package/dist/commands/send/generic.d.ts +15 -0
  50. package/dist/commands/send/generic.d.ts.map +1 -0
  51. package/dist/commands/send/generic.js +119 -0
  52. package/dist/commands/send/index.d.ts +28 -0
  53. package/dist/commands/send/index.d.ts.map +1 -0
  54. package/dist/commands/send/index.js +102 -0
  55. package/dist/commands/shell.d.ts +14 -0
  56. package/dist/commands/shell.d.ts.map +1 -0
  57. package/dist/commands/shell.js +65 -0
  58. package/dist/contracts.d.ts +4863 -0
  59. package/dist/contracts.d.ts.map +1 -0
  60. package/dist/contracts.js +2074 -0
  61. package/dist/flags.d.ts +17 -0
  62. package/dist/flags.d.ts.map +1 -0
  63. package/dist/flags.js +28 -0
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.d.ts.map +1 -0
  66. package/dist/index.js +1 -0
  67. package/dist/node/DockerfileDeploy.txt +4 -0
  68. package/dist/node/default.env +28 -0
  69. package/dist/node/docker-compose-anvil.yaml +49 -0
  70. package/dist/node/docker-compose-database.yaml +15 -0
  71. package/dist/node/docker-compose-envfile.yaml +4 -0
  72. package/dist/node/docker-compose-explorer.yaml +84 -0
  73. package/dist/node/docker-compose-host.yaml +30 -0
  74. package/dist/node/docker-compose-prompt.yaml +17 -0
  75. package/dist/node/docker-compose-proxy.yaml +48 -0
  76. package/dist/node/docker-compose-snapshot-volume.yaml +8 -0
  77. package/dist/node/docker-compose-validator.yaml +59 -0
  78. package/dist/prompts.d.ts +62 -0
  79. package/dist/prompts.d.ts.map +1 -0
  80. package/dist/prompts.js +159 -0
  81. package/dist/types/docker.d.ts +22 -0
  82. package/dist/types/docker.d.ts.map +1 -0
  83. package/dist/types/docker.js +1 -0
  84. package/dist/wallet.d.ts +24 -0
  85. package/dist/wallet.d.ts.map +1 -0
  86. package/dist/wallet.js +204 -0
  87. package/oclif.manifest.json +887 -0
  88. package/package.json +100 -0
package/package.json ADDED
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@cartesi/cli",
3
+ "version": "0.14.0",
4
+ "description": "Cartesi CLI",
5
+ "author": "Danilo Tuler <tuler@pobox.com>",
6
+ "bin": {
7
+ "cartesi": "./bin/run.js"
8
+ },
9
+ "type": "module",
10
+ "homepage": "https://github.com/cartesi/cli",
11
+ "license": "Apache-2.0",
12
+ "exports": "./dist/index.js",
13
+ "repository": "cartesi/cli",
14
+ "files": [
15
+ "/bin",
16
+ "/dist",
17
+ "/npm-shrinkwrap.json",
18
+ "/oclif.manifest.json"
19
+ ],
20
+ "dependencies": {
21
+ "@inquirer/confirm": "^3.1.6",
22
+ "@inquirer/core": "^8.1.0",
23
+ "@inquirer/input": "^2.1.6",
24
+ "@inquirer/select": "^2.3.2",
25
+ "@inquirer/type": "^1.3.1",
26
+ "@oclif/core": "^3.26.5",
27
+ "@oclif/plugin-help": "^6.0.21",
28
+ "@oclif/plugin-plugins": "^5.0.17",
29
+ "bytes": "^3.1",
30
+ "chalk": "^5.3.0",
31
+ "execa": "^8.0",
32
+ "fs-extra": "^11",
33
+ "giget": "^1.2.3",
34
+ "lookpath": "^1.2.2",
35
+ "open": "^10.1.0",
36
+ "ora": "^8.0.1",
37
+ "progress-stream": "^2.0",
38
+ "semver": "^7.5",
39
+ "tmp": "^0.2.3",
40
+ "viem": "^2.9.29"
41
+ },
42
+ "devDependencies": {
43
+ "@sunodo/wagmi-plugin-hardhat-deploy": "^0.3.0",
44
+ "@types/bytes": "^3.1",
45
+ "@types/fs-extra": "^11",
46
+ "@types/inquirer": "^9",
47
+ "@types/node": "^20.12.7",
48
+ "@types/node-fetch": "^2.6",
49
+ "@types/progress-stream": "^2.0",
50
+ "@types/prompts": "^2.4",
51
+ "@types/semver": "^7.5.8",
52
+ "@types/tmp": "^0.2",
53
+ "@wagmi/cli": "^2.1.4",
54
+ "copyfiles": "^2",
55
+ "eslint": "^8.57.0",
56
+ "eslint-config-oclif": "^5.1.3",
57
+ "eslint-config-oclif-typescript": "^3.1.7",
58
+ "npm-run-all": "^4",
59
+ "oclif": "^4.9.3",
60
+ "rimraf": "^5",
61
+ "ts-node": "^10",
62
+ "tslib": "^2",
63
+ "typescript": "^5.4.5",
64
+ "vitest": "^1.5.3",
65
+ "@cartesi/devnet": "1.6.0",
66
+ "tsconfig": "0.0.0",
67
+ "@cartesi/eslint-config": "0.0.0"
68
+ },
69
+ "oclif": {
70
+ "bin": "cartesi",
71
+ "dirname": "cartesi",
72
+ "commands": "./dist/commands",
73
+ "plugins": [
74
+ "@oclif/plugin-help"
75
+ ],
76
+ "topicSeparator": " ",
77
+ "macos": {
78
+ "identifier": "io.cartesi.cli"
79
+ }
80
+ },
81
+ "engines": {
82
+ "node": ">=18.0.0"
83
+ },
84
+ "bugs": "https://github.com/cartesi/cli/issues",
85
+ "keywords": [
86
+ "oclif"
87
+ ],
88
+ "types": "dist/index.d.ts",
89
+ "scripts": {
90
+ "build": "run-s clean codegen compile copy-files",
91
+ "clean": "rimraf dist",
92
+ "codegen": "run-p codegen:wagmi",
93
+ "codegen:wagmi": "wagmi generate",
94
+ "compile": "tsc -b",
95
+ "copy-files": "copyfiles -u 1 \"src/**/*.yaml\" \"src/**/*.env\" \"src/**/*.txt\" dist",
96
+ "lint": "eslint \"src/**/*.ts*\"",
97
+ "posttest": "pnpm lint",
98
+ "test": "vitest"
99
+ }
100
+ }