Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
32ff6d6
Release 0.0.32 (#40)
cristiam86 Jul 15, 2024
86ca56e
Release v0.0.32 [skip ci]
Jul 15, 2024
09c824f
fix: response check (#78)
kstroobants Oct 22, 2024
3710008
Release v0.0.33 [skip ci]
Oct 22, 2024
64744b4
Add renovate.json (#75)
renovate[bot] Oct 22, 2024
90c72f8
Release v0.0.34 [skip ci]
Oct 22, 2024
cb4d63e
chore: update dependencies (#91)
epsjunior Oct 25, 2024
8de4a76
46 cli add node and docker version (#47) (#88)
epsjunior Oct 25, 2024
63cf9d3
feat: improve install location behavior (#86)
cristiam86 Nov 6, 2024
07ff0c3
refactor: init command and action now covering 100% using vitest (#115)
epsjunior Nov 8, 2024
efe5dbf
test: up command (#105)
epsjunior Nov 8, 2024
9f0d981
test: start action (#111)
epsjunior Nov 8, 2024
c498369
feat: group all non major updates (#113)
epsjunior Nov 8, 2024
d05d874
Release v0.1.0 [skip ci]
Nov 8, 2024
a2d04c1
test: jsonRpcClient test 100% (#116)
epsjunior Nov 8, 2024
89eb749
Release v0.1.1 [skip ci]
Nov 8, 2024
a1945c4
test: 100% coverage on system.ts (#125)
epsjunior Nov 8, 2024
e7decaf
Release v0.1.2 [skip ci]
Nov 8, 2024
7741604
test: simulator service tests 100% (#124)
epsjunior Nov 8, 2024
070f9bc
Release v0.1.3 [skip ci]
Nov 8, 2024
721eebf
fix: changing linux command to fix display issue and fixing waiting s…
epsjunior Nov 12, 2024
0b866bb
Release v0.1.4 [skip ci]
Nov 12, 2024
d9bfbc2
feat: adding headless option to cli (#128)
epsjunior Nov 14, 2024
65ba695
Release v0.2.0 [skip ci]
Nov 14, 2024
48985bb
feat: abstract docker interaction (#129)
epsjunior Nov 15, 2024
5284302
Release v0.3.0 [skip ci]
Nov 15, 2024
f5d1659
test: 100% coverage across all files (#138)
epsjunior Nov 19, 2024
fb62333
fix: removing paid feature (#137)
epsjunior Nov 19, 2024
d5cbd1f
fix: fixing bug when the command does not exist (#141)
epsjunior Nov 22, 2024
e3fed64
feat: new reset db option (#139)
epsjunior Nov 22, 2024
3b22154
Release v0.4.0 [skip ci]
Nov 22, 2024
00ada3b
feat: chack cli version (#143)
epsjunior Dec 3, 2024
261ceed
Release v0.5.0 [skip ci]
Dec 3, 2024
351dae1
feat: Refactor Docker Setup for CLI (#145)
epsjunior Dec 3, 2024
6168782
feat: keygen create command (#147)
epsjunior Dec 3, 2024
0ba2c91
Release v0.6.0 [skip ci]
Dec 3, 2024
a7bf419
feat: adding localnet version option on init (#151)
epsjunior Dec 9, 2024
eeaef38
Release v0.7.0 [skip ci]
Dec 9, 2024
cc0f2ca
feat: implement config command (#149)
epsjunior Dec 11, 2024
6bc8cf6
Release v0.8.0 [skip ci]
Dec 11, 2024
8744b2d
feat: Add Deploy Command and Update Configurations for Compatibility …
epsjunior Dec 13, 2024
a3c485c
Release v0.9.0 [skip ci]
Dec 13, 2024
189c759
fix: removing volumes to stop error when running node without nvm (#156)
epsjunior Dec 13, 2024
fb13438
Release v0.9.1 [skip ci]
Dec 13, 2024
89cb74f
157 cli is always breaking when a new studio version is released (#159)
epsjunior Jan 7, 2025
13cfe51
feat: Add `call` Command for Contract Interactions (#154)
epsjunior Jan 7, 2025
e48e31e
feat: Add Ollama Model Management Features (#163)
epsjunior Jan 7, 2025
140565c
feat: Add New GitHub Action (#130)
epsjunior Jan 9, 2025
d9e440d
feat: getting default ollama model from config file (#167)
epsjunior Jan 9, 2025
1665b50
Release v0.10.0 [skip ci]
Jan 28, 2025
fb563e6
fix: updating studio version and docker compose breaking change (#173)
epsjunior Jan 29, 2025
148cbda
Release v0.10.1 [skip ci]
Jan 29, 2025
81c6087
feat: implement validators commands (#162)
epsjunior Jan 29, 2025
e70e7f2
fix: updated studio version (#174)
cristiam86 Jan 30, 2025
6f72fd7
Release v0.10.2 [skip ci]
Jan 30, 2025
3dc7a96
feat: Enhance Ollama Command Workflow and Default Model Handling (#171)
epsjunior Jan 31, 2025
91504b7
Release v0.11.0 [skip ci]
Jan 31, 2025
a957ffa
chore: new reset message (#177)
epsjunior Feb 5, 2025
7b221c1
Release v0.11.1 [skip ci]
Feb 5, 2025
dbae62c
feat: Add `stop` Command and Improve Docker Container Management (#178)
epsjunior Feb 5, 2025
1e9d916
Release v0.12.0 [skip ci]
Feb 5, 2025
39ec17b
feat: new log and spinner class
epsjunior Feb 14, 2025
134df7f
feat: adding spinner to keygen command
epsjunior Feb 14, 2025
25967f9
feat: adding spinner and logs to command config
epsjunior Feb 14, 2025
0c9f777
feat: new up command(class)
epsjunior Feb 17, 2025
5544edb
feat: refac init, base action and unit tests
epsjunior Feb 20, 2025
5c454bd
merging
epsjunior Feb 20, 2025
07d1f86
fix: merging commit
epsjunior Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# PostgreSQL database credentials
DBNAME=genlayer_state
DBUSER=postgres
DBPASSWORD=postgres
DBPORT=5432
DBHOST='postgres'

# Logging Configuration
LOGCONFIG='dev' # dev/prod
FLASK_LOG_LEVEL='ERROR' # DEBUG/INFO/WARNING/ERROR/CRITICAL
DISABLE_INFO_LOGS_ENDPOINTS='["ping", "eth_getTransactionByHash","gen_getContractSchemaForCode","gen_getContractSchema"]'


# JSON-RPC server details
RPCPORT=4000
RPCDEBUGPORT=4678
RPCHOST='jsonrpc'
RPCPROTOCOL='http'
JSONRPC_REPLICAS='1' # number of JsonRPC container replicas to run, used to scale up for production


# WebRequest Server Configuration
WEBREQUESTPORT=5000
WEBREQUESTSELENIUMPORT=5001
WEBREQUESTPROTOCOL='http'
WEBREQUESTHOST='webrequest'


# Ollama server details
OLAMAPROTOCOL='http'
OLAMAHOST='ollama'
OLAMAPORT='11434'


# Frontend details
FRONTEND_PORT=8080
FRONTEND_BUILD_TARGET=final
VITE_JSON_RPC_SERVER_URL='http://127.0.0.1:4000/api' # if VITE_PROXY_ENABLED = 'true' change to '/api'
VITE_WS_SERVER_URL= 'ws://127.0.0.1:4000' # if VITE_PROXY_ENABLED = 'true' change to '/'
VITE_PLAUSIBLE_DOMAIN='studio.genlayer.com'


# GenVM Configuration
GENVM_BIN="/genvm/bin"


# Vite Proxy Configuration (for local development)
VITE_PROXY_ENABLED='false'
VITE_PROXY_JSON_RPC_SERVER_URL='http://jsonrpc:4000'
VITE_PROXY_WS_SERVER_URL='ws://jsonrpc:4000'
VITE_IS_HOSTED='false'

# LLM Providers Configuration
# If you want to use OpenAI LLMs, add your key here
OPENAIKEY='<add_your_openai_api_key_here>'

# If you want to use Anthropic AI LLMs, add your key here
ANTHROPIC_API_KEY='<add_your_anthropic_api_key_here>'

# If you want to use Heurist AI LLMs, add your key here
HEURISTAIURL='https://llm-gateway.heurist.xyz'
HEURISTAIMODELSURL='https://raw.githubusercontent.com/heurist-network/heurist-models/main/models.json'
HEURISTAIAPIKEY='<add_your_heuristai_api_key_here>'

# Validator Configuration
# JSON array of initial validators to be created on startup.
# Example: VALIDATORS_CONFIG_JSON = '[{"stake": 100, "provider": "openai", "model": "gpt-4o", "amount": 2}, {"stake": 200, "provider": "anthropic", "model": "claude-3-haiku-20240307", "amount": 1}]'
VALIDATORS_CONFIG_JSON=''


VSCODEDEBUG="false"
LOCALNETVERSION=""

FRONTEND_BUILD_TARGET = 'final' # change to 'dev' to run in dev mode

# Hardhat port
HARDHAT_URL = 'http://hardhat'
HARDHAT_PORT = '8545'
HARDHAT_PRIVATE_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'

BACKEND_BUILD_TARGET = 'debug'
VITE_FINALITY_WINDOW=1
44 changes: 44 additions & 0 deletions .github/workflows/validate-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI Workflow

on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build the project
run: npm run build

- name: Run tests
run: npm run test:coverage

- name: Upload coverage report
if: success()
uses: codecov/codecov-action@v5.1.1
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
directory: coverage
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules
.env
.DS_Store
dist
dist
.idea
coverage
.ollama
145 changes: 145 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,152 @@


## 0.12.0 (2025-02-05)


### Features

* 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))

## 0.11.1 (2025-02-05)

## 0.11.0 (2025-01-31)


### Features

* 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))

## 0.10.2 (2025-01-30)


### Bug Fixes

* updated studio version ([#174](https://github.com/yeagerai/genlayer-cli/issues/174)) ([e70e7f2](https://github.com/yeagerai/genlayer-cli/commit/e70e7f2e549abc9c9633ae066820fb272c9334ee))

## 0.10.1 (2025-01-29)


### Bug Fixes

* 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))

## 0.10.0 (2025-01-28)


### Features

* 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))

## 0.10.0-beta.0 (2024-12-13)


### Features

* new global var to deal with compatible version ([33a4c02](https://github.com/yeagerai/genlayer-cli/commit/33a4c02f091e87faf1b884177ee854fe1b66f52b))

## 0.9.1 (2024-12-13)


### Bug Fixes

* 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))

## 0.9.0 (2024-12-13)


### Features

* 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))

## 0.8.0 (2024-12-11)


### Features

* implement config command ([#149](https://github.com/yeagerai/genlayer-cli/issues/149)) ([cc0f2ca](https://github.com/yeagerai/genlayer-cli/commit/cc0f2caee2c55f00efc7da0671663827a69be557))

## 0.7.0 (2024-12-09)


### Features

* adding localnet version option on init ([#151](https://github.com/yeagerai/genlayer-cli/issues/151)) ([a7bf419](https://github.com/yeagerai/genlayer-cli/commit/a7bf41986e89e8db95003df290d381e77dad127f))

## 0.6.0 (2024-12-03)


### Features

* keygen create command ([#147](https://github.com/yeagerai/genlayer-cli/issues/147)) ([6168782](https://github.com/yeagerai/genlayer-cli/commit/6168782af5c028d80c2376559d3f6e5aecef2c3b))

## 0.5.1-beta.0 (2024-12-03)


### Bug Fixes

* merging main and resolving conflicts ([df23e36](https://github.com/yeagerai/genlayer-cli/commit/df23e365c4f481a153ae8b39051500aaad5b8b0e))

## 0.5.0 (2024-12-03)


### Features

* chack cli version ([#143](https://github.com/yeagerai/genlayer-cli/issues/143)) ([00ada3b](https://github.com/yeagerai/genlayer-cli/commit/00ada3b01ab8f727dbeadc2da0b810dc4211b6c9))

## 0.4.0 (2024-11-22)


### Features

* new reset db option ([#139](https://github.com/yeagerai/genlayer-cli/issues/139)) ([e3fed64](https://github.com/yeagerai/genlayer-cli/commit/e3fed6437e7313002685258aeced710a6fd63f4f))

## 0.3.0 (2024-11-15)


### Features

* abstract docker interaction ([#129](https://github.com/yeagerai/genlayer-cli/issues/129)) ([48985bb](https://github.com/yeagerai/genlayer-cli/commit/48985bb7ff81356c6b448996573d54472b45d58f))

## 0.2.0 (2024-11-14)


### Features

* adding headless option to cli ([#128](https://github.com/yeagerai/genlayer-cli/issues/128)) ([d9bfbc2](https://github.com/yeagerai/genlayer-cli/commit/d9bfbc2dc2bcb8a4673f419d868f2c41d8396bd8))

## 0.1.4 (2024-11-12)


### Bug Fixes

* 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))

## 0.1.3 (2024-11-08)

## 0.1.2 (2024-11-08)

## 0.1.1 (2024-11-08)

## 0.1.0 (2024-11-08)


### Features

* group all non major updates ([#113](https://github.com/yeagerai/genlayer-cli/issues/113)) ([c498369](https://github.com/yeagerai/genlayer-cli/commit/c4983698ac4120e5f147bf3d529da2210d178770))

## 0.0.34 (2024-10-22)

## 0.0.33 (2024-10-22)


### Bug Fixes

* response check ([#78](https://github.com/yeagerai/genlayer-cli/issues/78)) ([09c824f](https://github.com/yeagerai/genlayer-cli/commit/09c824f8b7ac1fff5355317d046752fbf58ab162))

## 0.0.32-beta.3 (2024-07-26)

## 0.0.32 (2024-07-15)

## 0.0.32-beta.2 (2024-07-03)

## 0.0.32-beta.1 (2024-07-03)
Expand Down
Loading
Loading