genlayer 0.9.1 → 0.10.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/.env.example +2 -1
- package/.github/workflows/validate-code.yml +44 -0
- package/CHANGELOG.md +14 -0
- package/dist/index.js +2341 -6984
- package/package.json +6 -1
- package/src/commands/contracts/call.ts +87 -0
- package/src/commands/contracts/deploy.ts +5 -2
- package/src/commands/contracts/index.ts +11 -1
- package/src/commands/general/index.ts +3 -1
- package/src/commands/general/init.ts +13 -4
- package/src/commands/update/index.ts +26 -0
- package/src/commands/update/ollama.ts +42 -0
- package/src/index.ts +2 -0
- package/src/lib/config/simulator.ts +6 -4
- package/src/lib/interfaces/ISimulatorService.ts +0 -1
- package/src/lib/services/simulator.ts +4 -36
- package/tests/actions/call.test.ts +146 -0
- package/tests/actions/deploy.test.ts +2 -0
- package/tests/actions/init.test.ts +51 -8
- package/tests/actions/ollama.test.ts +129 -0
- package/tests/commands/call.test.ts +70 -0
- package/tests/commands/init.test.ts +2 -1
- package/tests/commands/update.test.ts +43 -0
- package/tests/index.test.ts +4 -0
- package/tests/services/simulator.test.ts +6 -78
package/.env.example
CHANGED
|
@@ -69,7 +69,7 @@ VALIDATORS_CONFIG_JSON=''
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
VSCODEDEBUG="false"
|
|
72
|
-
LOCALNETVERSION="
|
|
72
|
+
LOCALNETVERSION=""
|
|
73
73
|
|
|
74
74
|
FRONTEND_BUILD_TARGET = 'final' # change to 'dev' to run in dev mode
|
|
75
75
|
|
|
@@ -79,3 +79,4 @@ HARDHAT_PORT = '8545'
|
|
|
79
79
|
HARDHAT_PRIVATE_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
|
|
80
80
|
|
|
81
81
|
BACKEND_BUILD_TARGET = 'debug'
|
|
82
|
+
VITE_FINALITY_WINDOW=1
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: CI Workflow
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize
|
|
8
|
+
- reopened
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build-and-test:
|
|
15
|
+
name: Build and Test
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout code
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Set up Node.js
|
|
23
|
+
uses: actions/setup-node@v3
|
|
24
|
+
with:
|
|
25
|
+
node-version: 18
|
|
26
|
+
cache: "npm"
|
|
27
|
+
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: npm ci
|
|
30
|
+
|
|
31
|
+
- name: Build the project
|
|
32
|
+
run: npm run build
|
|
33
|
+
|
|
34
|
+
- name: Run tests
|
|
35
|
+
run: npm run test:coverage
|
|
36
|
+
|
|
37
|
+
- name: Upload coverage report
|
|
38
|
+
if: success()
|
|
39
|
+
uses: codecov/codecov-action@v5.1.1
|
|
40
|
+
with:
|
|
41
|
+
verbose: true
|
|
42
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
43
|
+
fail_ci_if_error: true
|
|
44
|
+
directory: coverage
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## 0.10.0 (2025-01-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
## 0.10.0-beta.0 (2024-12-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* new global var to deal with compatible version ([33a4c02](https://github.com/yeagerai/genlayer-cli/commit/33a4c02f091e87faf1b884177ee854fe1b66f52b))
|
|
16
|
+
|
|
3
17
|
## 0.9.1 (2024-12-13)
|
|
4
18
|
|
|
5
19
|
|