genlayer 0.34.0 → 0.34.3

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 (128) hide show
  1. package/dist/index.js +13 -3
  2. package/package.json +11 -2
  3. package/.eslintignore +0 -2
  4. package/.github/workflows/cli-docs.yml +0 -121
  5. package/.github/workflows/publish-beta.yml +0 -41
  6. package/.github/workflows/publish.yml +0 -43
  7. package/.github/workflows/validate-code.yml +0 -47
  8. package/.prettierignore +0 -19
  9. package/.prettierrc +0 -12
  10. package/.release-it.json +0 -64
  11. package/CHANGELOG.md +0 -425
  12. package/CLAUDE.md +0 -55
  13. package/CONTRIBUTING.md +0 -117
  14. package/docker-compose.yml +0 -154
  15. package/docs/delegator-guide.md +0 -203
  16. package/docs/validator-guide.md +0 -329
  17. package/esbuild.config.dev.js +0 -17
  18. package/esbuild.config.js +0 -22
  19. package/esbuild.config.prod.js +0 -17
  20. package/eslint.config.js +0 -60
  21. package/renovate.json +0 -22
  22. package/src/commands/account/create.ts +0 -30
  23. package/src/commands/account/export.ts +0 -106
  24. package/src/commands/account/import.ts +0 -135
  25. package/src/commands/account/index.ts +0 -129
  26. package/src/commands/account/list.ts +0 -34
  27. package/src/commands/account/lock.ts +0 -39
  28. package/src/commands/account/remove.ts +0 -30
  29. package/src/commands/account/send.ts +0 -162
  30. package/src/commands/account/show.ts +0 -74
  31. package/src/commands/account/unlock.ts +0 -56
  32. package/src/commands/account/use.ts +0 -21
  33. package/src/commands/config/getSetReset.ts +0 -51
  34. package/src/commands/config/index.ts +0 -30
  35. package/src/commands/contracts/call.ts +0 -39
  36. package/src/commands/contracts/code.ts +0 -33
  37. package/src/commands/contracts/deploy.ts +0 -157
  38. package/src/commands/contracts/index.ts +0 -86
  39. package/src/commands/contracts/schema.ts +0 -31
  40. package/src/commands/contracts/write.ts +0 -49
  41. package/src/commands/general/index.ts +0 -45
  42. package/src/commands/general/init.ts +0 -179
  43. package/src/commands/general/start.ts +0 -116
  44. package/src/commands/general/stop.ts +0 -26
  45. package/src/commands/localnet/index.ts +0 -100
  46. package/src/commands/localnet/validators.ts +0 -269
  47. package/src/commands/network/index.ts +0 -29
  48. package/src/commands/network/setNetwork.ts +0 -77
  49. package/src/commands/scaffold/index.ts +0 -16
  50. package/src/commands/scaffold/new.ts +0 -34
  51. package/src/commands/staking/StakingAction.ts +0 -279
  52. package/src/commands/staking/delegatorClaim.ts +0 -41
  53. package/src/commands/staking/delegatorExit.ts +0 -56
  54. package/src/commands/staking/delegatorJoin.ts +0 -44
  55. package/src/commands/staking/index.ts +0 -357
  56. package/src/commands/staking/setIdentity.ts +0 -78
  57. package/src/commands/staking/setOperator.ts +0 -46
  58. package/src/commands/staking/stakingInfo.ts +0 -584
  59. package/src/commands/staking/validatorClaim.ts +0 -43
  60. package/src/commands/staking/validatorDeposit.ts +0 -48
  61. package/src/commands/staking/validatorExit.ts +0 -63
  62. package/src/commands/staking/validatorHistory.ts +0 -298
  63. package/src/commands/staking/validatorJoin.ts +0 -47
  64. package/src/commands/staking/validatorPrime.ts +0 -73
  65. package/src/commands/staking/wizard.ts +0 -809
  66. package/src/commands/transactions/appeal.ts +0 -39
  67. package/src/commands/transactions/index.ts +0 -39
  68. package/src/commands/transactions/receipt.ts +0 -90
  69. package/src/commands/update/index.ts +0 -25
  70. package/src/commands/update/ollama.ts +0 -103
  71. package/src/lib/actions/BaseAction.ts +0 -299
  72. package/src/lib/clients/jsonRpcClient.ts +0 -41
  73. package/src/lib/clients/system.ts +0 -73
  74. package/src/lib/config/ConfigFileManager.ts +0 -194
  75. package/src/lib/config/KeychainManager.ts +0 -89
  76. package/src/lib/config/simulator.ts +0 -68
  77. package/src/lib/config/text.ts +0 -2
  78. package/src/lib/errors/missingRequirement.ts +0 -9
  79. package/src/lib/errors/versionRequired.ts +0 -9
  80. package/src/lib/interfaces/ISimulatorService.ts +0 -37
  81. package/src/lib/services/simulator.ts +0 -351
  82. package/src/types/node-fetch.d.ts +0 -1
  83. package/tests/actions/appeal.test.ts +0 -99
  84. package/tests/actions/call.test.ts +0 -94
  85. package/tests/actions/code.test.ts +0 -87
  86. package/tests/actions/create.test.ts +0 -65
  87. package/tests/actions/deploy.test.ts +0 -420
  88. package/tests/actions/getSetReset.test.ts +0 -88
  89. package/tests/actions/init.test.ts +0 -467
  90. package/tests/actions/lock.test.ts +0 -86
  91. package/tests/actions/new.test.ts +0 -80
  92. package/tests/actions/ollama.test.ts +0 -193
  93. package/tests/actions/receipt.test.ts +0 -261
  94. package/tests/actions/schema.test.ts +0 -94
  95. package/tests/actions/setNetwork.test.ts +0 -160
  96. package/tests/actions/staking.test.ts +0 -279
  97. package/tests/actions/start.test.ts +0 -235
  98. package/tests/actions/stop.test.ts +0 -77
  99. package/tests/actions/unlock.test.ts +0 -139
  100. package/tests/actions/validators.test.ts +0 -750
  101. package/tests/actions/write.test.ts +0 -102
  102. package/tests/commands/account.test.ts +0 -146
  103. package/tests/commands/appeal.test.ts +0 -58
  104. package/tests/commands/call.test.ts +0 -78
  105. package/tests/commands/code.test.ts +0 -69
  106. package/tests/commands/config.test.ts +0 -54
  107. package/tests/commands/deploy.test.ts +0 -83
  108. package/tests/commands/init.test.ts +0 -101
  109. package/tests/commands/localnet.test.ts +0 -131
  110. package/tests/commands/network.test.ts +0 -60
  111. package/tests/commands/new.test.ts +0 -68
  112. package/tests/commands/receipt.test.ts +0 -142
  113. package/tests/commands/schema.test.ts +0 -67
  114. package/tests/commands/staking.test.ts +0 -329
  115. package/tests/commands/stop.test.ts +0 -27
  116. package/tests/commands/up.test.ts +0 -105
  117. package/tests/commands/update.test.ts +0 -45
  118. package/tests/commands/write.test.ts +0 -76
  119. package/tests/index.test.ts +0 -56
  120. package/tests/libs/baseAction.test.ts +0 -516
  121. package/tests/libs/configFileManager.test.ts +0 -117
  122. package/tests/libs/jsonRpcClient.test.ts +0 -59
  123. package/tests/libs/keychainManager.test.ts +0 -156
  124. package/tests/libs/system.test.ts +0 -148
  125. package/tests/services/simulator.test.ts +0 -705
  126. package/tests/utils.ts +0 -13
  127. package/tsconfig.json +0 -120
  128. package/vitest.config.ts +0 -12
package/CHANGELOG.md DELETED
@@ -1,425 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.34.0 (2026-02-08)
4
-
5
- ### Features
6
-
7
- * add --password flag for non-interactive CLI usage ([#275](https://github.com/yeagerai/genlayer-cli/issues/275)) ([c5fffa6](https://github.com/yeagerai/genlayer-cli/commit/c5fffa6faaf0133ad83dd47279e3383d0a0cbacb))
8
-
9
- ## 0.33.1 (2026-02-07)
10
-
11
- ### Bug Fixes
12
-
13
- * bump genlayer-js to 0.18.10 with phase4 testnet addresses ([#274](https://github.com/yeagerai/genlayer-cli/issues/274)) ([faa9a9b](https://github.com/yeagerai/genlayer-cli/commit/faa9a9bfaadf3ff158e2b21457330bc629d977e9))
14
-
15
- ## 0.33.0 (2026-01-13)
16
-
17
- ### Features
18
-
19
- * validator tree traversal, primed column, prime-all command ([#270](https://github.com/yeagerai/genlayer-cli/issues/270)) ([75b9b06](https://github.com/yeagerai/genlayer-cli/commit/75b9b06a3bb80a24e7dabf422ceed44620765ccb))
20
-
21
- ## 0.32.8 (2025-12-12)
22
-
23
- ## 0.32.5 (2025-12-09)
24
-
25
- ## 0.32.4 (2025-12-05)
26
-
27
- ## 0.32.3 (2025-12-05)
28
-
29
- ## 0.32.2 (2025-12-04)
30
-
31
- ## 0.32.1 (2025-12-04)
32
-
33
- ## 0.32.0 (2025-12-03)
34
-
35
- ### Features
36
-
37
- * Implements staking functionality ([#266](https://github.com/yeagerai/genlayer-cli/issues/266)) ([36e4180](https://github.com/yeagerai/genlayer-cli/commit/36e4180c6093f380d1f552e9051345812e6bd024))
38
-
39
- ## 0.31.0 (2025-09-03)
40
-
41
- ### Features
42
-
43
- * get contract code new cli command ([#253](https://github.com/yeagerai/genlayer-cli/issues/253)) ([d6ea30d](https://github.com/yeagerai/genlayer-cli/commit/d6ea30d96e2453fb90bd1493266d8b54c04e830b))
44
-
45
- ## 0.30.0 (2025-09-03)
46
-
47
- ### Features
48
-
49
- * genlayercli api reference auto generated ([#247](https://github.com/yeagerai/genlayer-cli/issues/247)) ([b08c342](https://github.com/yeagerai/genlayer-cli/commit/b08c34218b9f02a1d8d7f1c0b532ab55cc4ca5af))
50
-
51
- ## 0.29.0 (2025-09-03)
52
-
53
- ### Features
54
-
55
- * rename studio validators commands ([#249](https://github.com/yeagerai/genlayer-cli/issues/249)) ([fb875e5](https://github.com/yeagerai/genlayer-cli/commit/fb875e5569d21346507eab07b8eacb88b395a15d))
56
-
57
- ## 0.28.1 (2025-09-03)
58
-
59
- ## 0.28.0 (2025-09-03)
60
-
61
- ### Features
62
-
63
- * improve how cli shows transactions receipts ([#250](https://github.com/yeagerai/genlayer-cli/issues/250)) ([610831a](https://github.com/yeagerai/genlayer-cli/commit/610831a23d0fc35b6b2d1ec0e1b1d88fb357c4b5))
64
-
65
- ## 0.27.0 (2025-09-01)
66
-
67
- ### Features
68
-
69
- * implement os keychain support for secure private key storage ([#243](https://github.com/yeagerai/genlayer-cli/issues/243)) ([af93c6f](https://github.com/yeagerai/genlayer-cli/commit/af93c6fdd8e3673ffe3e3471bb5a8c6ea565687d))
70
-
71
- ## 0.26.0 (2025-08-07)
72
-
73
- ### Features
74
-
75
- * add schema command to inspect deployed contract schema ([#244](https://github.com/yeagerai/genlayer-cli/issues/244)) ([4d66a7b](https://github.com/yeagerai/genlayer-cli/commit/4d66a7b9b2ac813cf0d47f12fc82cbc06ed25b3c))
76
-
77
- ## 0.25.0 (2025-07-23)
78
-
79
- ### Features
80
-
81
- * Add Temporary Key Caching System with Read-Only Client Support ([#241](https://github.com/yeagerai/genlayer-cli/issues/241)) ([89d57f9](https://github.com/yeagerai/genlayer-cli/commit/89d57f9e35a331ef22edcdbd17384807c6fa18ac))
82
-
83
- ## 0.24.0 (2025-07-16)
84
-
85
- ### Features
86
-
87
- * Add Docker Volume Cleanup to Init Flow ([#240](https://github.com/yeagerai/genlayer-cli/issues/240)) ([e61b82c](https://github.com/yeagerai/genlayer-cli/commit/e61b82c3d31aa71860eccad510141cd3f932e4aa))
88
-
89
- ## 0.23.0 (2025-07-15)
90
-
91
- ### Features
92
-
93
- * fetch transaction receipt command ([#234](https://github.com/yeagerai/genlayer-cli/issues/234)) ([5cf868c](https://github.com/yeagerai/genlayer-cli/commit/5cf868c28ce036e41b7b40ed6cdde222cdc5dcf0))
94
-
95
- ## 0.22.1 (2025-07-14)
96
-
97
- ## 0.22.0 (2025-07-14)
98
-
99
- ### Features
100
-
101
- * ignoring templates path ([#238](https://github.com/yeagerai/genlayer-cli/issues/238)) ([7e41a84](https://github.com/yeagerai/genlayer-cli/commit/7e41a842fcd646f47984f2ce745b37b50c299771))
102
-
103
- ## 0.21.0 (2025-07-14)
104
-
105
- ### Features
106
-
107
- * update docker compose ([#237](https://github.com/yeagerai/genlayer-cli/issues/237)) ([18ea508](https://github.com/yeagerai/genlayer-cli/commit/18ea508a155bc9112612430add49c4c0e23ad3d5))
108
-
109
- ## 0.20.0 (2025-07-09)
110
-
111
- ### Features
112
-
113
- * use keystore to store private keys ([#235](https://github.com/yeagerai/genlayer-cli/issues/235)) ([f18f2af](https://github.com/yeagerai/genlayer-cli/commit/f18f2afbc35c2dd988908d51ffce6b0523cfee81))
114
-
115
- ## 0.19.0 (2025-07-09)
116
-
117
- ### Features
118
-
119
- * appeal command ([#233](https://github.com/yeagerai/genlayer-cli/issues/233)) ([a33f882](https://github.com/yeagerai/genlayer-cli/commit/a33f882ec7f1e7758bbf6daef67b425be10e87f2))
120
-
121
- ## 0.18.5 (2025-07-09)
122
-
123
- ## 0.18.4 (2025-06-27)
124
-
125
- ### Bug Fixes
126
-
127
- * refactor log output formatting and address spinner display ([#228](https://github.com/yeagerai/genlayer-cli/issues/228)) ([ea0ac10](https://github.com/yeagerai/genlayer-cli/commit/ea0ac100cdbed0cf184ae1eaf1d9c0fd580fc92c))
128
-
129
- ## 0.18.3 (2025-05-29)
130
-
131
- ## 0.18.2 (2025-05-29)
132
-
133
- ## 0.18.2-beta.0 (2025-05-29)
134
-
135
- ## 0.18.0-beta.0 (2025-05-09)
136
-
137
- ### Features
138
-
139
- * separate read and write calls ([#222](https://github.com/yeagerai/genlayer-cli/issues/222)) ([fce8904](https://github.com/yeagerai/genlayer-cli/commit/fce8904f6b51587bfb9e690b0e42efe441f19b1d))
140
- ## 0.18.1 (2025-05-29)
141
-
142
- ## 0.18.0 (2025-05-28)
143
-
144
- ### Features
145
-
146
- * using profiles to set frontend and ollama containers ([#221](https://github.com/yeagerai/genlayer-cli/issues/221)) ([a3d0d4e](https://github.com/yeagerai/genlayer-cli/commit/a3d0d4e77e7a92a5a31ae534f5f83e81a1672783))
147
-
148
- ## 0.17.0 (2025-05-05)
149
-
150
- ### Features
151
-
152
- * check if the simulator is running before launching it again ([#219](https://github.com/yeagerai/genlayer-cli/issues/219)) ([f45e1f7](https://github.com/yeagerai/genlayer-cli/commit/f45e1f7bcee9b1319cf60e658fa433fe5ec8c3eb))
153
-
154
- ## 0.16.0 (2025-05-02)
155
-
156
- ### Features
157
-
158
- * update studios compatible version ([#220](https://github.com/yeagerai/genlayer-cli/issues/220)) ([cedf568](https://github.com/yeagerai/genlayer-cli/commit/cedf56888c81098ef83647bff4ad55dd7d697fb8))
159
-
160
- ## 0.15.0 (2025-04-29)
161
-
162
- ### Features
163
-
164
- * custom rpc for interacting with contracts ([#218](https://github.com/yeagerai/genlayer-cli/issues/218)) ([138babd](https://github.com/yeagerai/genlayer-cli/commit/138babd76b24d2333356ec64cfdb712add312585))
165
-
166
- ## 0.14.1 (2025-04-25)
167
-
168
- ## 0.14.0 (2025-04-25)
169
-
170
- ### Features
171
-
172
- * adding gemini and XAI ([#216](https://github.com/yeagerai/genlayer-cli/issues/216)) ([01310b2](https://github.com/yeagerai/genlayer-cli/commit/01310b2c4856880d8b4209a8b659445bf6d4d501))
173
-
174
- ## 0.13.0 (2025-04-24)
175
-
176
- ### Features
177
-
178
- * create account if it doesnt exists ([#214](https://github.com/yeagerai/genlayer-cli/issues/214)) ([12d2faa](https://github.com/yeagerai/genlayer-cli/commit/12d2faa68202310059c688c9c17a99ef6e577412))
179
-
180
- ## 0.12.5 (2025-04-24)
181
-
182
- ## 0.12.4 (2025-04-03)
183
-
184
- ### Bug Fixes
185
-
186
- * map objects ([#207](https://github.com/yeagerai/genlayer-cli/issues/207)) ([45956f6](https://github.com/yeagerai/genlayer-cli/commit/45956f64e02505262a3585b1349dbfbf0f195d73))
187
-
188
- ## 0.12.3 (2025-03-07)
189
-
190
- ### Bug Fixes
191
-
192
- * production build ([#204](https://github.com/yeagerai/genlayer-cli/issues/204)) ([ceed97b](https://github.com/yeagerai/genlayer-cli/commit/ceed97be6f0b6720d3d243cc41326d6b98569f26))
193
-
194
- ## 0.12.2 (2025-03-07)
195
-
196
- ## 0.12.1 (2025-02-20)
197
-
198
- ## 0.12.0 (2025-02-05)
199
-
200
-
201
- ### Features
202
-
203
- * Add `stop` Command and Improve Docker Container Management ([#178](https://github.com/yeagerai/genlayer-cli/issues/178)) ([dbae62c](https://github.com/yeagerai/genlayer-cli/commit/dbae62cd6ea0c90ee7fb6953112006f9dff729c3))
204
-
205
- ## 0.11.1 (2025-02-05)
206
-
207
- ## 0.11.0 (2025-01-31)
208
-
209
-
210
- ### Features
211
-
212
- * Enhance Ollama Command Workflow and Default Model Handling ([#171](https://github.com/yeagerai/genlayer-cli/issues/171)) ([3dc7a96](https://github.com/yeagerai/genlayer-cli/commit/3dc7a9673ada8116b1fb99e089439a75e06237ec))
213
-
214
- ## 0.10.2 (2025-01-30)
215
-
216
-
217
- ### Bug Fixes
218
-
219
- * updated studio version ([#174](https://github.com/yeagerai/genlayer-cli/issues/174)) ([e70e7f2](https://github.com/yeagerai/genlayer-cli/commit/e70e7f2e549abc9c9633ae066820fb272c9334ee))
220
-
221
- ## 0.10.1 (2025-01-29)
222
-
223
-
224
- ### Bug Fixes
225
-
226
- * updating studio version and docker compose breaking change ([#173](https://github.com/yeagerai/genlayer-cli/issues/173)) ([fb563e6](https://github.com/yeagerai/genlayer-cli/commit/fb563e6db4a01355baf95b2b07335374966a9cdb))
227
-
228
- ## 0.10.0 (2025-01-28)
229
-
230
-
231
- ### Features
232
-
233
- * getting default ollama model from config file ([#167](https://github.com/yeagerai/genlayer-cli/issues/167)) ([d9e440d](https://github.com/yeagerai/genlayer-cli/commit/d9e440d0cd37368e0d8b154c7b5cbcdad463256f))
234
-
235
- ## 0.10.0-beta.0 (2024-12-13)
236
-
237
-
238
- ### Features
239
-
240
- * new global var to deal with compatible version ([33a4c02](https://github.com/yeagerai/genlayer-cli/commit/33a4c02f091e87faf1b884177ee854fe1b66f52b))
241
-
242
- ## 0.9.1 (2024-12-13)
243
-
244
-
245
- ### Bug Fixes
246
-
247
- * removing volumes to stop error when running node without nvm ([#156](https://github.com/yeagerai/genlayer-cli/issues/156)) ([189c759](https://github.com/yeagerai/genlayer-cli/commit/189c7592fedb6373e3603f1bdb4366c79f289160))
248
-
249
- ## 0.9.0 (2024-12-13)
250
-
251
-
252
- ### Features
253
-
254
- * Add Deploy Command and Update Configurations for Compatibility ([#153](https://github.com/yeagerai/genlayer-cli/issues/153)) ([8744b2d](https://github.com/yeagerai/genlayer-cli/commit/8744b2d3ef2b4d7fd4d3ac71ac6e8eef69ed1555))
255
-
256
- ## 0.8.0 (2024-12-11)
257
-
258
-
259
- ### Features
260
-
261
- * implement config command ([#149](https://github.com/yeagerai/genlayer-cli/issues/149)) ([cc0f2ca](https://github.com/yeagerai/genlayer-cli/commit/cc0f2caee2c55f00efc7da0671663827a69be557))
262
-
263
- ## 0.7.0 (2024-12-09)
264
-
265
-
266
- ### Features
267
-
268
- * adding localnet version option on init ([#151](https://github.com/yeagerai/genlayer-cli/issues/151)) ([a7bf419](https://github.com/yeagerai/genlayer-cli/commit/a7bf41986e89e8db95003df290d381e77dad127f))
269
-
270
- ## 0.6.0 (2024-12-03)
271
-
272
-
273
- ### Features
274
-
275
- * keygen create command ([#147](https://github.com/yeagerai/genlayer-cli/issues/147)) ([6168782](https://github.com/yeagerai/genlayer-cli/commit/6168782af5c028d80c2376559d3f6e5aecef2c3b))
276
-
277
- ## 0.5.1-beta.0 (2024-12-03)
278
-
279
-
280
- ### Bug Fixes
281
-
282
- * merging main and resolving conflicts ([df23e36](https://github.com/yeagerai/genlayer-cli/commit/df23e365c4f481a153ae8b39051500aaad5b8b0e))
283
-
284
- ## 0.5.0 (2024-12-03)
285
-
286
-
287
- ### Features
288
-
289
- * chack cli version ([#143](https://github.com/yeagerai/genlayer-cli/issues/143)) ([00ada3b](https://github.com/yeagerai/genlayer-cli/commit/00ada3b01ab8f727dbeadc2da0b810dc4211b6c9))
290
-
291
- ## 0.4.0 (2024-11-22)
292
-
293
-
294
- ### Features
295
-
296
- * new reset db option ([#139](https://github.com/yeagerai/genlayer-cli/issues/139)) ([e3fed64](https://github.com/yeagerai/genlayer-cli/commit/e3fed6437e7313002685258aeced710a6fd63f4f))
297
-
298
- ## 0.3.0 (2024-11-15)
299
-
300
-
301
- ### Features
302
-
303
- * abstract docker interaction ([#129](https://github.com/yeagerai/genlayer-cli/issues/129)) ([48985bb](https://github.com/yeagerai/genlayer-cli/commit/48985bb7ff81356c6b448996573d54472b45d58f))
304
-
305
- ## 0.2.0 (2024-11-14)
306
-
307
-
308
- ### Features
309
-
310
- * adding headless option to cli ([#128](https://github.com/yeagerai/genlayer-cli/issues/128)) ([d9bfbc2](https://github.com/yeagerai/genlayer-cli/commit/d9bfbc2dc2bcb8a4673f419d868f2c41d8396bd8))
311
-
312
- ## 0.1.4 (2024-11-12)
313
-
314
-
315
- ### Bug Fixes
316
-
317
- * changing linux command to fix display issue and fixing waiting simulator issue ([#127](https://github.com/yeagerai/genlayer-cli/issues/127)) ([721eebf](https://github.com/yeagerai/genlayer-cli/commit/721eebfea758a0897f23afd60b5767c59d593eb1))
318
-
319
- ## 0.1.3 (2024-11-08)
320
-
321
- ## 0.1.2 (2024-11-08)
322
-
323
- ## 0.1.1 (2024-11-08)
324
-
325
- ## 0.1.0 (2024-11-08)
326
-
327
-
328
- ### Features
329
-
330
- * group all non major updates ([#113](https://github.com/yeagerai/genlayer-cli/issues/113)) ([c498369](https://github.com/yeagerai/genlayer-cli/commit/c4983698ac4120e5f147bf3d529da2210d178770))
331
-
332
- ## 0.0.34 (2024-10-22)
333
-
334
- ## 0.0.33 (2024-10-22)
335
-
336
-
337
- ### Bug Fixes
338
-
339
- * response check ([#78](https://github.com/yeagerai/genlayer-cli/issues/78)) ([09c824f](https://github.com/yeagerai/genlayer-cli/commit/09c824f8b7ac1fff5355317d046752fbf58ab162))
340
-
341
- ## 0.0.32-beta.3 (2024-07-26)
342
-
343
- ## 0.0.32 (2024-07-15)
344
-
345
- ## 0.0.32-beta.2 (2024-07-03)
346
-
347
- ## 0.0.32-beta.1 (2024-07-03)
348
-
349
- ## 0.0.32-beta.0 (2024-07-03)
350
-
351
- ## 0.0.31 (2024-05-27)
352
-
353
-
354
- ### Bug Fixes
355
-
356
- * handle Fetch Error (Mac M3) ([#36](https://github.com/yeagerai/genlayer-cli/issues/36)) ([deae77a](https://github.com/yeagerai/genlayer-cli/commit/deae77a7c5a0f00694d2aa94f26d3e3be67e0178))
357
-
358
- ## 0.0.30 (2024-05-22)
359
-
360
- ## 0.0.29 (2024-05-15)
361
-
362
- ## 0.0.28 (2024-05-13)
363
-
364
- ## 0.0.27 (2024-05-08)
365
-
366
- ## 0.0.26 (2024-05-07)
367
-
368
- ## 0.0.25 (2024-05-06)
369
-
370
-
371
- ### Bug Fixes
372
-
373
- * OPEN AI .env key renamed in simulator ([#21](https://github.com/yeagerai/genlayer-cli/issues/21)) ([676d159](https://github.com/yeagerai/genlayer-cli/commit/676d1591871d6f81f1b8695bd4366997384579c6))
374
-
375
- ## 0.0.24 (2024-05-06)
376
-
377
- ## 0.0.23 (2024-05-01)
378
-
379
-
380
- ### Bug Fixes
381
-
382
- * windows installation ([#19](https://github.com/yeagerai/genlayer-cli/issues/19)) ([3eafe6d](https://github.com/yeagerai/genlayer-cli/commit/3eafe6df9f5f657139177a588d6d53a652a25bd3))
383
-
384
- ## 0.0.22 (2024-04-30)
385
-
386
-
387
- ### Bug Fixes
388
-
389
- * running on windows ([#18](https://github.com/yeagerai/genlayer-cli/issues/18)) ([5017bb6](https://github.com/yeagerai/genlayer-cli/commit/5017bb68b7cbfd1f18b73cf36db9f925207a708d))
390
-
391
- ## 0.0.21 (2024-04-30)
392
-
393
- ## 0.0.20 (2024-04-26)
394
-
395
- ## 0.0.19 (2024-04-26)
396
-
397
- ## 0.0.17 (2024-04-23)
398
-
399
- ## 0.0.16 (2024-04-23)
400
-
401
- ## [0.0.15](https://github.com/yeagerai/genlayer-cli/compare/v0.0.14...v0.0.15) (2024-04-23)
402
-
403
- ## [0.0.14](https://github.com/yeagerai/genlayer-cli/compare/v0.0.13...v0.0.14) (2024-04-23)
404
-
405
- ## [0.0.13](https://github.com/yeagerai/genlayer-cli/compare/v0.0.12...v0.0.13) (2024-04-23)
406
-
407
- ## [0.0.12](https://github.com/yeagerai/genlayer-cli/compare/v0.0.11...v0.0.12) (2024-04-23)
408
-
409
- ## [0.0.11](https://github.com/yeagerai/genlayer-cli/compare/v0.0.10...v0.0.11) (2024-04-23)
410
-
411
- ## [0.0.10](https://github.com/yeagerai/genlayer-cli/compare/v0.0.9...v0.0.10) (2024-04-23)
412
-
413
- ## [0.0.9](https://github.com/yeagerai/genlayer-cli/compare/v0.0.8...v0.0.9) (2024-04-23)
414
-
415
- ## [0.0.8](https://github.com/yeagerai/genlayer-cli/compare/v0.0.7...v0.0.8) (2024-04-23)
416
-
417
- ## [0.0.7](https://github.com/yeagerai/genlayer-cli/compare/v0.0.6...v0.0.7) (2024-04-23)
418
-
419
- ## [0.0.6](https://github.com/yeagerai/genlayer-cli/compare/v0.0.5...v0.0.6) (2024-04-23)
420
-
421
- ## [0.0.5](https://github.com/yeagerai/genlayer-cli/compare/v0.0.4...v0.0.5) (2024-04-23)
422
-
423
- ## [0.0.4](https://github.com/yeagerai/genlayer-cli/compare/v0.0.3...v0.0.4) (2024-04-23)
424
-
425
- ## 0.0.3 (2024-04-23)
package/CLAUDE.md DELETED
@@ -1,55 +0,0 @@
1
- # CLAUDE.md
2
-
3
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
- ## Build & Development
6
-
7
- ```bash
8
- npm install # Install dependencies
9
- npm run dev # Watch mode development build (uses esbuild)
10
- npm run build # Production build
11
- node dist/index.js # Run CLI from source
12
- ```
13
-
14
- ## Testing
15
-
16
- ```bash
17
- npm test # Run all tests (vitest)
18
- npm run test:watch # Watch mode
19
- npm run test:coverage # Coverage report
20
- npx vitest tests/commands/deploy.test.ts # Single test file
21
- npx vitest -t "test name pattern" # Run specific test by name
22
- ```
23
-
24
- ## Architecture
25
-
26
- ### Entry Point & Command Structure
27
- - `src/index.ts` - Main entry, initializes Commander program and registers all command groups
28
- - Commands organized in `src/commands/<domain>/index.ts` - each exports `initialize*Commands(program)` function
29
- - Command domains: general (init/up/stop), account, contracts, config, localnet, update, scaffold, network, transactions, staking
30
-
31
- ### Core Classes
32
- - `BaseAction` (`src/lib/actions/BaseAction.ts`) - Base class for all CLI actions. Provides:
33
- - GenLayer client initialization via `genlayer-js` SDK
34
- - Keystore management (encrypted wallet with password)
35
- - Spinner/logging utilities (ora, chalk)
36
- - User prompts (inquirer)
37
- - `ConfigFileManager` (`src/lib/config/ConfigFileManager.ts`) - Manages `~/.genlayer/genlayer-config.json`
38
- - `KeychainManager` (`src/lib/config/KeychainManager.ts`) - System keychain integration via keytar
39
-
40
- ### Pattern for Adding Commands
41
- 1. Create action class extending `BaseAction` in `src/commands/<domain>/<action>.ts`
42
- 2. Export action options interface
43
- 3. Register in domain's `index.ts` via Commander
44
- 4. Add tests in `tests/commands/<domain>.test.ts` and `tests/actions/<action>.test.ts`
45
-
46
- ### External Dependencies
47
- - `commander` - CLI framework
48
- - `genlayer-js` - GenLayer SDK for blockchain interactions
49
- - `ethers` - Wallet/keystore encryption
50
- - `dockerode` - Docker management for localnet
51
- - `viem` - Ethereum utilities
52
-
53
- ### Path Aliases
54
- - `@/*` → `./src/*`
55
- - `@@/tests/*` → `./tests/*`
package/CONTRIBUTING.md DELETED
@@ -1,117 +0,0 @@
1
- # Contributing to GenLayer CLI
2
-
3
- We're thrilled that you're interested in contributing to the GenLayer CLI! This document will guide you through the contribution process.
4
-
5
- ## What is the GenLayer CLI?
6
-
7
- The GenLayer CLI is a command-line tool designed to:
8
- 1. Streamline the setup and local execution of the GenLayer simulator. It automates the process of downloading and launching the GenLayer simulator, making it easy to start simulating and testing locally with minimal setup.
9
- 2. Deploy Intelligent Contracts on any network, read their state and send transactions to them.
10
- 3. Perform Validators operations
11
-
12
- ## How You Can Contribute?
13
-
14
- Contributions to the GenLayer CLI are welcome in several forms:
15
-
16
- ### Testing the CLI and Providing Feedback
17
-
18
- Help us make the CLI better by testing and giving feedback:
19
-
20
- - Start by installing the CLI globally using the command:
21
- ```sh
22
- $ npm install -g genlayer
23
- ```
24
- - Try out the CLI features and tell us what you think through our [feedback form](https://forms.gle/ZbbxHsZrJxKucurB7) or on our [Discord Channel](https://discord.gg/8Jm4v89VAu).
25
- - If you find any issues, please report them on our [GitHub issues page](https://github.com/yeagerai/genlayer-cli/issues).
26
-
27
- ### Sharing New Ideas and Use Cases
28
-
29
- Have ideas for new features or use cases? We're eager to hear them! But first:
30
-
31
- - Ensure you have the CLI installed to explore existing functionality.
32
- - After familiarizing yourself with the CLI, contribute your unique use case and share your ideas in our [Discord channel](https://discord.gg/8Jm4v89VAu).
33
-
34
- ### Bug fixing and Feature development
35
-
36
- #### 1. Set yourself up to start coding
37
-
38
- - **1.1. Pick an issue**: Select one from the project GitHub repository [issue list](https://github.com/yeagerai/genlayer-cli/issues) and assign it to yourself.
39
-
40
- - **1.2. Create a branch**: create the branch that you will work on by using the link provided in the issue details page (right panel at the bottom - section "Development")
41
-
42
- - **1.3. Setup the CLI locally**: clone the repository and install dependencies
43
-
44
- ```sh
45
- $ git clone https://github.com/yeagerai/genlayer-cli.git
46
- $ cd genlayer-cli
47
- $ npm install
48
- ```
49
-
50
- - **1.4. Run the CLI in dev mode**: to run the CLI in development mode with hot reload enabled:
51
-
52
- ```sh
53
- $ npm run dev
54
- ```
55
-
56
- - **1.5. Test the CLI locally**: to test the CLI commands locally during development:
57
-
58
- ```sh
59
- $ node dist/index.js <command>
60
- ```
61
-
62
- For example:
63
- ```sh
64
- $ node dist/index.js init
65
- $ node dist/index.js up
66
- $ node dist/index.js validators get
67
- ```
68
-
69
- - **1.6. Run unit tests**:
70
- The GenLayer CLI uses Jest in combination with ts-jest to handle testing of TypeScript files. The configuration is tailored to support ES Modules (ESM), aligning with the latest JavaScript standards and ensuring compatibility with modern tooling and Node.js features.
71
-
72
- ##### Running Tests
73
-
74
- To run the tests, use the following command:
75
-
76
- ```bash
77
- npm run test
78
- ```
79
-
80
- This command sets the appropriate Node.js options to handle ES Modules and watches for changes in the test files, making it suitable for development.
81
-
82
- ##### Test Configuration
83
-
84
- Our `jest.config.js` is set up as follows:
85
-
86
- - ES Module Support: Configured to treat .ts files as ES Modules.
87
- - Test Environment: Uses Node.js as the testing environment.
88
- - Transformation: Utilizes ts-jest with an ESM preset to process TypeScript files.
89
-
90
- Tests are located in the tests/ directory and should be named using the following pattern: [filename].test.ts. When writing tests, you can use all Jest functionalities such as describe, test, expect, and Jest mocks for testing asynchronous functions, component interactions, or API calls.
91
-
92
- #### 2. Submit your solution
93
-
94
- - **2.1. Prettier Formatter on Save File**: Configure IDE extensions to format your code with [Prettier](https://prettier.io/) before submitting it.
95
- - **2.2. Code solution**: implement the solution in the code.
96
- - **2.3. Run tests**: Ensure all tests pass before submitting:
97
- ```sh
98
- $ npm run test
99
- ```
100
- - **2.4. Pull Request**: Submit your changes through a pull request (PR). Fill the entire PR template and set the PR title as a valid conventional commit.
101
- - **2.5. Check PR and issue linking**: if the issue and the PR are not linked, you can do it manually in the right panel of the Pull Request details page.
102
- - **2.6. Peer Review**: One or more core contributors will review your PR. They may suggest changes or improvements.
103
- - **2.7. Approval and Merge**: After approval from the reviewers, you can merge your PR with a squash and merge type of action.
104
-
105
-
106
- ### Improving Documentation
107
-
108
- To contribute to our docs, visit our [Documentation Repository](https://github.com/yeagerai/genlayer-docs) to create new issues or contribute to existing issues.
109
-
110
- ## Community
111
-
112
- Connect with the GenLayer community to discuss, collaborate, and share insights:
113
-
114
- - **[Discord Channel](https://discord.gg/8Jm4v89VAu)**: Our primary hub for discussions, support, and announcements.
115
- - **[Telegram Group](https://t.me/genlayer)**: For more informal chats and quick updates.
116
-
117
- Your continuous feedback drives better product development. Please engage with us regularly to test, discuss, and improve the GenLayer CLI.