Skip to content

Init up refactoring#183

Merged
epsjunior merged 68 commits intostagingfrom
init-up-refactoring
Feb 20, 2025
Merged

Init up refactoring#183
epsjunior merged 68 commits intostagingfrom
init-up-refactoring

Conversation

@epsjunior
Copy link
Contributor

No description provided.

cristiam86 and others added 30 commits July 15, 2024 17:06
* 3 cli   setup testing framework (#35)

* test: setup jest configuration with typescript

* refactor: removed path alias and changed simulator service toa class injected in the command declaration

* test: added init action adn command tests

* docs: added testing section on readme file

* fix: handle Fetch Error (Mac M3)

* refactor: improved function response

* fix: await for runSimulator async function

* fix: added init action test

* fix: solving conflicts

* test: added reset docker images and containers calls from init

* 33 cli add a warning at init to say that the config is going to be overwritten (#38)

* feat: added initial warning about reseting the setup

* test: added a test for new step introduced

* 37 cli run simulator on certain branch (#39)

* feat: added initial warning about reseting the setup

* test: added a test for new step introduced

* feat: added optional branch when fetching the simulator from github

* feat: added branch name on init and up commands

* test: added tests for branch option on init command

* 41 cli add beta releases for staging branch (#42)

* chore: added npm command for beta release

* ci: added github action for beta release

* Release v0.0.32-beta.0 [skip ci]

* 43 cli fix missing endpoints and simulator response (#44)

* fix: removed non existing simulator endpoint

* refactor: adapted ping simulator response for current and next version

* tests: removed non existing simulator endpoint test

* Release v0.0.32-beta.1 [skip ci]

* 43 cli fix missing endpoints and simulator response (#45)

* fix: removed non existing simulator endpoint

* refactor: adapted ping simulator response for current and next version

* tests: removed non existing simulator endpoint test

* Release v0.0.32-beta.2 [skip ci]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@genlayer.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update dependency prettier to v3.3.3 (#90)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @release-it/conventional-changelog to v8.0.2 (#79)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/jest to v29.5.14 (#80)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint to v8.57.1 (#82)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-import-resolver-typescript to v3.6.3 (#83)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/node to v20.17.0 (#85)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency esbuild to ^0.24.0 (#87)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-plugin-import to v2.31.0 (#89)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/jest to v29.5.14 (#93)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* add node and docker version checks

* remove redundant check

* set correct version numbers, add todo

* use config constant for versions

* refactor methods and improve error handling

* implement PR comments: split install and version checks in two separate checks, move checkVersion method to simulator service

* add tests for version checks on init command

* flip version issue evalution

* separate checks in two steps

* remove console log

---------

Co-authored-by: den <26140541+denishacquin@users.noreply.github.com>
Co-authored-by: Den <den@Deniss-MacBook-Pro.local>
* 3 cli   setup testing framework (#35)

* test: setup jest configuration with typescript

* refactor: removed path alias and changed simulator service toa class injected in the command declaration

* test: added init action adn command tests

* docs: added testing section on readme file

* fix: handle Fetch Error (Mac M3)

* refactor: improved function response

* fix: await for runSimulator async function

* fix: added init action test

* fix: solving conflicts

* test: added reset docker images and containers calls from init

* 33 cli add a warning at init to say that the config is going to be overwritten (#38)

* feat: added initial warning about reseting the setup

* test: added a test for new step introduced

* 37 cli run simulator on certain branch (#39)

* feat: added initial warning about reseting the setup

* test: added a test for new step introduced

* feat: added optional branch when fetching the simulator from github

* feat: added branch name on init and up commands

* test: added tests for branch option on init command

* 41 cli add beta releases for staging branch (#42)

* chore: added npm command for beta release

* ci: added github action for beta release

* Release v0.0.32-beta.0 [skip ci]

* 43 cli fix missing endpoints and simulator response (#44)

* fix: removed non existing simulator endpoint

* refactor: adapted ping simulator response for current and next version

* tests: removed non existing simulator endpoint test

* Release v0.0.32-beta.1 [skip ci]

* 43 cli fix missing endpoints and simulator response (#45)

* fix: removed non existing simulator endpoint

* refactor: adapted ping simulator response for current and next version

* tests: removed non existing simulator endpoint test

* Release v0.0.32-beta.2 [skip ci]

* 46 cli add node and docker version (#47)

* add node and docker version checks

* remove redundant check

* set correct version numbers, add todo

* use config constant for versions

* refactor methods and improve error handling

* implement PR comments: split install and version checks in two separate checks, move checkVersion method to simulator service

* add tests for version checks on init command

* flip version issue evalution

* separate checks in two steps

* remove console log

---------

Co-authored-by: Den <den@Deniss-MacBook-Pro.local>

* Release v0.0.32-beta.3 [skip ci]

* fix: removed unused import

* fix: removed unused import

* fix: updated license in package.json

* tests: added jest setup for globals

* feat: added location for init and up commands

* fix: fixed default location and related tests

* fix: removing genlayer-simulator folder

* fix: removing unused code

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@genlayer.com>
Co-authored-by: den <26140541+denishacquin@users.noreply.github.com>
Co-authored-by: Den <den@Deniss-MacBook-Pro.local>
Co-authored-by: Edinaldo Junior <epsjunior@icloud.com>
* feat: jest to vitest

* refactor: init command and action now covering 100% using vitest

* refactor: removing unused comments

* test: adding 2 new tests - if only node version is too low AND if only docker version is too low

* fix: test always cloning a new repo and trying to checkout AND .gitignore converage folder

* fix: remove comments

* fix: removing redundant test and line description
* feat: jest to vitest

* refactor: init command and action now covering 100% using vitest

* refactor: removing unused comments

* test: testing up command

* fix: interface types

* fix: removing coverage folder

* test: adding 2 new tests - if only node version is too low AND if only docker version is too low

* fix: test always cloning a new repo and trying to checkout AND .gitignore converage folder

* fix: including location in two tests
* feat: jest to vitest

* refactor: init command and action now covering 100% using vitest

* refactor: removing unused comments

* test: start action

* refactor: removing comments

* test: adding 2 new tests - if only node version is too low AND if only docker version is too low

* fix: test always cloning a new repo and trying to checkout AND .gitignore converage folder

* fix: adding setSimulatorLocation

---------

Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com>
* feat: jest to vitest

* refactor: init command and action now covering 100% using vitest

* refactor: removing unused comments

* test: jsonRpcClient test 100%

* test: changing test to cover line 39

* refactor: changing folders name

* test: adding 2 new tests - if only node version is too low AND if only docker version is too low

* fix: test always cloning a new repo and trying to checkout AND .gitignore converage folder
* feat: docker abstraction (initial config)

* fix: container name and unused var

* test: docker tests

* feat: adding docker ping and improving unit tests

* fix: message and test adjustments

* feat: adding docker.ping

* test: 100% coverage
github-actions[bot] and others added 29 commits December 11, 2024 14:52
…153)

* feat: new deploy command

* fix: Genvm returning error when theres no args

* fix: moving getPrivateKey

* fix: moving getPrivateKey

* fix: new folder to contracts commands

* removing kwargs
* fix: removing volumes to stop error when running node without nvm and removing backup .env file to allow users to run genlayer globally without root user

* fix: removing service to not conflict with other PR
* feat: new deploy command

* fix: Genvm returning error when theres no args

* fix: moving getPrivateKey

* fix: moving getPrivateKey

* fix: new folder to contracts commands

* removing kwargs

* feat: call command (contract)

* fix: adding new env var

* feat: method type is chosen dynamically
* fix: CLI hardcoded version and solving issues with containers and images

* feat: new global var to deal with compatible version

* Release v0.10.0-beta.0 [skip ci]

* fix: removing default value from .env.example

* feat: new update ollama command

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@genlayer.com>
* fix: CLI hardcoded version and solving issues with containers and images

* feat: new global var to deal with compatible version

* Release v0.10.0-beta.0 [skip ci]

* fix: removing default value from .env.example

* feat: all validators commands

* fix: json rpc bug and tests

* feat: non interactive validator creation

* feat: adding models to create random

* test: improving create random validators tests

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@genlayer.com>
* fix: updated studio version

* fix: hardhat volumes sharing

* chore: increased localnet default compatible version

* chore: removed unused docker volumes

* fix: hardhat version now uses localnetversion var

---------

Co-authored-by: Edinaldo Junior <epsjunior@icloud.com>
* feat: add a new ollama provider when it does not exist

* test: removing comments
* feat: new command stop

* chore: improving logs
@epsjunior epsjunior merged commit c7b2284 into staging Feb 20, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants