genlayer 0.12.4 → 0.13.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 +4 -0
- package/CHANGELOG.md +8 -0
- package/dist/index.js +17970 -17628
- package/esbuild.config.dev.js +1 -2
- package/esbuild.config.prod.js +1 -1
- package/eslint.config.js +2 -1
- package/package.json +5 -3
- package/src/commands/contracts/call.ts +23 -33
- package/src/commands/contracts/deploy.ts +109 -33
- package/src/commands/contracts/index.ts +14 -3
- package/src/commands/general/init.ts +0 -1
- package/src/commands/keygen/create.ts +5 -25
- package/src/commands/scaffold/index.ts +16 -0
- package/src/commands/scaffold/new.ts +34 -0
- package/src/index.ts +2 -0
- package/src/lib/accounts/KeypairManager.ts +43 -0
- package/src/lib/actions/BaseAction.ts +34 -7
- package/src/lib/config/simulator.ts +2 -2
- package/templates/default/LICENSE +21 -0
- package/templates/default/README.md +101 -0
- package/templates/default/__init__.py +0 -0
- package/templates/default/app/.env.example +2 -0
- package/templates/default/app/.vscode/extensions.json +3 -0
- package/templates/default/app/README.md +5 -0
- package/templates/default/app/index.html +17 -0
- package/templates/default/app/package-lock.json +4920 -0
- package/templates/default/app/package.json +23 -0
- package/templates/default/app/postcss.config.js +6 -0
- package/templates/default/app/public/favicon.png +0 -0
- package/templates/default/app/src/App.vue +16 -0
- package/templates/default/app/src/components/Address.vue +38 -0
- package/templates/default/app/src/components/BetsScreen.vue +329 -0
- package/templates/default/app/src/logic/FootballBets.js +100 -0
- package/templates/default/app/src/main.js +5 -0
- package/templates/default/app/src/services/genlayer.js +19 -0
- package/templates/default/app/src/style.css +3 -0
- package/templates/default/app/tailwind.config.js +8 -0
- package/templates/default/app/vite.config.js +7 -0
- package/templates/default/config/__init__.py +0 -0
- package/templates/default/config/genlayer_config.py +14 -0
- package/templates/default/contracts/__init__.py +0 -0
- package/templates/default/contracts/football_bets.py +119 -0
- package/templates/default/deploy/deployScript.ts +31 -0
- package/templates/default/package-lock.json +3231 -0
- package/templates/default/package.json +7 -0
- package/templates/default/requirements.txt +6 -0
- package/templates/default/test/__init__.py +0 -0
- package/templates/default/test/football_bets_get_contract_schema_for_code.py +124 -0
- package/templates/default/test/test_football_bet_success_draw.py +108 -0
- package/templates/default/test/test_football_bet_success_win.py +106 -0
- package/templates/default/test/test_football_bet_unsuccess.py +107 -0
- package/templates/default/tools/__init__.py +0 -0
- package/templates/default/tools/accounts.py +5 -0
- package/templates/default/tools/calldata.py +224 -0
- package/templates/default/tools/request.py +134 -0
- package/templates/default/tools/response.py +52 -0
- package/templates/default/tools/structure.py +39 -0
- package/templates/default/tools/transactions.py +28 -0
- package/templates/default/tools/types.py +214 -0
- package/templates/default/tsconfig.json +7 -0
- package/tests/actions/call.test.ts +39 -79
- package/tests/actions/create.test.ts +11 -72
- package/tests/actions/deploy.test.ts +201 -33
- package/tests/actions/new.test.ts +80 -0
- package/tests/commands/call.test.ts +6 -1
- package/tests/commands/deploy.test.ts +12 -1
- package/tests/commands/new.test.ts +68 -0
- package/tests/index.test.ts +4 -0
- package/tests/libs/accounts/KeypairManager.test.ts +110 -0
- package/tests/libs/baseAction.test.ts +40 -0
- package/vitest.config.ts +1 -1
- package/src/lib/accounts/getPrivateKey.ts +0 -21
- package/tests/libs/getPrivateKey.test.ts +0 -96
package/.env.example
CHANGED
|
@@ -38,6 +38,7 @@ FRONTEND_BUILD_TARGET=final
|
|
|
38
38
|
VITE_JSON_RPC_SERVER_URL='http://127.0.0.1:4000/api' # if VITE_PROXY_ENABLED = 'true' change to '/api'
|
|
39
39
|
VITE_WS_SERVER_URL= 'ws://127.0.0.1:4000' # if VITE_PROXY_ENABLED = 'true' change to '/'
|
|
40
40
|
VITE_PLAUSIBLE_DOMAIN='studio.genlayer.com'
|
|
41
|
+
VITE_FINALITY_WINDOW_APPEAL_FAILED_REDUCTION=0.2
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
# GenVM Configuration
|
|
@@ -77,6 +78,9 @@ FRONTEND_BUILD_TARGET = 'final' # change to 'dev' to run in dev mode
|
|
|
77
78
|
HARDHAT_URL = 'http://hardhat'
|
|
78
79
|
HARDHAT_PORT = '8545'
|
|
79
80
|
HARDHAT_PRIVATE_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
|
|
81
|
+
HARDHAT_CHAIN_ID=61999
|
|
82
|
+
COMPOSE_PROFILES='hardhat'
|
|
80
83
|
|
|
81
84
|
BACKEND_BUILD_TARGET = 'debug'
|
|
82
85
|
VITE_FINALITY_WINDOW=1
|
|
86
|
+
DEFAULT_CONSENSUS_MAX_ROTATIONS=3
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.0 (2025-04-24)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* create account if it doesnt exists ([#214](https://github.com/yeagerai/genlayer-cli/issues/214)) ([12d2faa](https://github.com/yeagerai/genlayer-cli/commit/12d2faa68202310059c688c9c17a99ef6e577412))
|
|
8
|
+
|
|
9
|
+
## 0.12.5 (2025-04-24)
|
|
10
|
+
|
|
3
11
|
## 0.12.4 (2025-04-03)
|
|
4
12
|
|
|
5
13
|
### Bug Fixes
|