genlayer 0.0.17 → 0.0.19
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/.github/workflows/publish.yml +10 -3
- package/CHANGELOG.md +2 -0
- package/LICENSE +21 -0
- package/README.md +47 -0
- package/dist/index.js +43813 -0
- package/package.json +7 -2
- package/src/commands/general/init.ts +86 -5
- package/src/index.ts +1 -0
- package/src/lib/clients/jsonRpcClient.ts +34 -11
- package/src/lib/clients/system.ts +57 -0
- package/src/lib/config/simulator.ts +11 -1
- package/src/lib/errors/jsonRpcClientError.ts +9 -0
- package/src/lib/errors/missingRequirement.ts +9 -0
- package/src/lib/services/simulator.ts +121 -0
- package/tests/commands/init.test.ts +5 -6
|
@@ -4,16 +4,23 @@ on:
|
|
|
4
4
|
workflow_dispatch:
|
|
5
5
|
push:
|
|
6
6
|
branches:
|
|
7
|
-
-
|
|
7
|
+
- main
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
release:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
|
+
- name: Get CI Bot Token
|
|
14
|
+
uses: tibdex/github-app-token@v1
|
|
15
|
+
id: ci_bot_token
|
|
16
|
+
with:
|
|
17
|
+
app_id: ${{ secrets.CI_BOT_APP_ID }}
|
|
18
|
+
private_key: ${{ secrets.CI_BOT_SECRET }}
|
|
19
|
+
|
|
13
20
|
- name: Checkout source code
|
|
14
21
|
uses: actions/checkout@v4
|
|
15
22
|
with:
|
|
16
|
-
token: ${{
|
|
23
|
+
token: ${{ steps.ci_bot_token.outputs.token }}
|
|
17
24
|
- name: Setup Node.js
|
|
18
25
|
uses: actions/setup-node@v2
|
|
19
26
|
with:
|
|
@@ -30,5 +37,5 @@ jobs:
|
|
|
30
37
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
31
38
|
- run: npm run release
|
|
32
39
|
env:
|
|
33
|
-
GITHUB_TOKEN: ${{
|
|
40
|
+
GITHUB_TOKEN: ${{ steps.ci_bot_token.outputs.token }}
|
|
34
41
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
package/CHANGELOG.md
CHANGED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present YeagerAI LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# GenLayer CLI
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
The GenLayer CLI is designed to streamline the setup and local execution of the GenLayer simulator. This tool automates the process of downloading and launching the GenLayer simulator, making it easy to start simulating and testing locally with minimal setup.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Before installing the GenLayer CLI, ensure you have Node.js installed on your system. You can then install the CLI globally using npm:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g genlayer
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
To initialize and start the GenLayer simulator, run the following command:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
genlayer init
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
This command will download the necessary components and start the simulator. Once initialized, you will be ready to execute further commands (to be implemented) to interact with the simulator.
|
|
24
|
+
|
|
25
|
+
## Contributing
|
|
26
|
+
|
|
27
|
+
Contributions to the GenLayer CLI are welcome! Please feel free to fork the repository, make your changes, and submit a pull request. We appreciate your efforts to improve the software.
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
This project is licensed under the ... License - see the [LICENSE](LICENSE) file for details.
|
|
32
|
+
|
|
33
|
+
## Credits
|
|
34
|
+
|
|
35
|
+
- TBD
|
|
36
|
+
|
|
37
|
+
## Contact
|
|
38
|
+
|
|
39
|
+
- TBD
|
|
40
|
+
|
|
41
|
+
## Further Development
|
|
42
|
+
|
|
43
|
+
Further commands are planned for implementation to enhance interaction with the GenLayer simulator. Stay tuned for updates.
|
|
44
|
+
|
|
45
|
+
## Feedback
|
|
46
|
+
|
|
47
|
+
If you have any feedback, please reach out to us at the contact provided above.
|