Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

272 SIM - BE - Fix - json load for validator config #273

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

bradleySuira
Copy link
Contributor

This pr includes a hot fix for validator config parsing

cristiam86 and others added 2 commits July 11, 2024 15:33
* 150 sim add transactions audit table (#174)

* added transactions_audit table and insert and get functions, FIXED: app was not being passed to clear_db_tables

* (snapshot)

* standardized the output of clear_account_and_transactions_tables, created drop_db_if_it_already_exists for testing the create_db endpoint, put create_new_address and address_is_in_correct_format in common, created a simple function setup_db_and_tables in common for use with all the tests, added testing utility function get_all_rows_for_table, FIXED: create_account was not commiting to the db, TODO: remove rpc/utils.py

* added helper functions for testing in common/tests, added the helper functions to all the tests, marked plases where other tests should be written

* added status to transactions and adjusted endpoints and tests accordingly

* FIXED: create_random_validator endpoint was not passing an empty providers dict

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* FEATURE: add and implemented transactions_audit table

* added transaction_id to the transactitons_audit table to help with rollup in the future (as they will want to select by this), created a new database/helpers.py file with convert_to_dict which is the old db_query_data_to_json from rpc/utils.py (we are going to be moving away from utils files), returned all the transactions data after insert with ...RETURNED *; and saved ausing an additional select

* Main into staging (#180)

* Test docker revert (#169)

* fix: revert genvm and rpc docker files

* fix: reverted docker-compose

* feat: improve example contracts (#157)

* 160 simulator   UI fixes (#167)

* fix: added spinner for loading constructor params and handle errors when try to load the contract schema from code

* feat: adding loading indicator for deploy getter and execute methods

* fix: fixed methods update in Execute transactions ui

* fix: fixed re-render constructor inputs and added debounce when change the contract content

* fix: hide scrollbar in editor

* fix: fixed truncate large file names

* fix: added tutorial step for transactions

* feat: added json viewer

* fix: removed non used utils

* fix: fixed format

* fix: removed non used comments

* fix: fixed editor styles

* fix: comments about complex types in json box

* fix: debounce in run debug

* fix: removed logs

* fix: removed loading for constructor params

* Create CONTRIBUTING.md (#136)

* Create CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* add link

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* moved the try execpt up to the clear_account_and_transactions_tables … (#176)

* moved the try execpt up to the clear_account_and_transactions_tables function in rpc/server.py

* database function now only trucates tables if they exist

---------

Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Robert Johnstone <[email protected]>

* 171 simulator   e2e frontend tests for contract examples (#177)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* fix: fixed contract and method names in e2e tests

* 202 SIM - FE - Check transactions list not showing any (#203)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed transaction id from local and json viewer for transaction output

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* 204 SIM - FE - Check autoscrolling feature on logs (#205)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed node logs scroll behavior

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* fix: use v-show instead of v-iff to have the elements present for contract e2e test (#212)

* added version.txt (#209)

* 197 sim fe fix contract state and contract methods refresh after depl… (#214)

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: e2e frontend tests

---------

Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* v-show!

* 178 simulator   add unit testing setup and first tests (#186)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* feat: refactor json rpc service with methods for testing

* feat: refactor json service

* fix: fixed contract and method names in e2e tests

* feat: changed test runner and merge all with vitest

* feat: refactor rpc service and added tests

* feat: tests with mocks

* fix: fixed types

* fix: fixed test to compare deep objects

* fix: fixed tests

* fix: fixed unit tests for json rpc

* fix: fixed rpc client instances (#218)

* feat: replace node base image to slim version (#196)

* added and e2e test for wizard of coin (#187)

* added and e2e test for wizard of coin

* set up the PYTHONPATH environment variable correctly

* action now runs on pull request review, action now works and tests pass, OPENAIKEY is deleted from the .env so the one in the ga environment can be used, ga now uses the ping jsonrpc end point instead of the app one, e2e test_validators_endpoints.py moved to tests/e2e/ folder, rcp/tests/base.py deleted as common/tests/requests.py now used

* added additional gha triggers so the action gets run when prs are updated

* removed the cat .env statement (was used for testing a dfifferent approach

* added line to relpace jsonrpc with localhost in the .env for the tests

* (seeing if adding the OPENAIKEY directly to the .env helps)

* (wrapping OPENAIKEY in quotes to see if the ga environment picks it up)

* (seeing if the env: step command helps)

* (OPENAIKEY was not on a new line in the .env file)

* (added space at the end of the .env file for the OPENAIKEY line)

* (using printf as it offers more control)

* (print out the response so we can see what it is)

* (printing out the environ from the tests to see if we have the OPENAIKEY)

* (adding back in e2e for validators)

* (adding back in wizard of coin test)

* (remove print statments in the action)

* (updated action so it is only excuted when a pr is opened and approved)

* moved common file for testing to tests/common and updated e2e tests accordingly

* 206 SIM-FE-Ensure code editor always resize to max possible espace (#216)

* fix: handle code editor resize

* fix: fixed element resize using resize observer

* fix: removed non used deps and events

* 224 SIM-Create and Edit validator: make provider, model, and stake fields mandatory (#225)

* fix: added requred fields to create and update validators

* fix: added disabled opacity for update button inside update validator form

* Release 0.0.1 (#215)

* 150 sim add transactions audit table (#174)

* added transactions_audit table and insert and get functions, FIXED: app was not being passed to clear_db_tables

* (snapshot)

* standardized the output of clear_account_and_transactions_tables, created drop_db_if_it_already_exists for testing the create_db endpoint, put create_new_address and address_is_in_correct_format in common, created a simple function setup_db_and_tables in common for use with all the tests, added testing utility function get_all_rows_for_table, FIXED: create_account was not commiting to the db, TODO: remove rpc/utils.py

* added helper functions for testing in common/tests, added the helper functions to all the tests, marked plases where other tests should be written

* added status to transactions and adjusted endpoints and tests accordingly

* FIXED: create_random_validator endpoint was not passing an empty providers dict

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* FEATURE: add and implemented transactions_audit table

* added transaction_id to the transactitons_audit table to help with rollup in the future (as they will want to select by this), created a new database/helpers.py file with convert_to_dict which is the old db_query_data_to_json from rpc/utils.py (we are going to be moving away from utils files), returned all the transactions data after insert with ...RETURNED *; and saved ausing an additional select

* Main into staging (#180)

* Test docker revert (#169)

* fix: revert genvm and rpc docker files

* fix: reverted docker-compose

* feat: improve example contracts (#157)

* 160 simulator   UI fixes (#167)

* fix: added spinner for loading constructor params and handle errors when try to load the contract schema from code

* feat: adding loading indicator for deploy getter and execute methods

* fix: fixed methods update in Execute transactions ui

* fix: fixed re-render constructor inputs and added debounce when change the contract content

* fix: hide scrollbar in editor

* fix: fixed truncate large file names

* fix: added tutorial step for transactions

* feat: added json viewer

* fix: removed non used utils

* fix: fixed format

* fix: removed non used comments

* fix: fixed editor styles

* fix: comments about complex types in json box

* fix: debounce in run debug

* fix: removed logs

* fix: removed loading for constructor params

* Create CONTRIBUTING.md (#136)

* Create CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* add link

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* moved the try execpt up to the clear_account_and_transactions_tables … (#176)

* moved the try execpt up to the clear_account_and_transactions_tables function in rpc/server.py

* database function now only trucates tables if they exist

---------

Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Robert Johnstone <[email protected]>

* 171 simulator   e2e frontend tests for contract examples (#177)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* fix: fixed contract and method names in e2e tests

* 202 SIM - FE - Check transactions list not showing any (#203)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed transaction id from local and json viewer for transaction output

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* 204 SIM - FE - Check autoscrolling feature on logs (#205)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed node logs scroll behavior

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* fix: use v-show instead of v-iff to have the elements present for contract e2e test (#212)

* added version.txt (#209)

* 197 sim fe fix contract state and contract methods refresh after depl… (#214)

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: e2e frontend tests

---------

Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* v-show!

* 178 simulator   add unit testing setup and first tests (#186)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* feat: refactor json rpc service with methods for testing

* feat: refactor json service

* fix: fixed contract and method names in e2e tests

* feat: changed test runner and merge all with vitest

* feat: refactor rpc service and added tests

* feat: tests with mocks

* fix: fixed types

* fix: fixed test to compare deep objects

* fix: fixed tests

* fix: fixed unit tests for json rpc

* fix: fixed rpc client instances (#218)

---------

Co-authored-by: Robert Johnstone <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: jmlago <[email protected]>

* 191 SIM-Mock Tutorial execution (#221)

* feat: added pinia plugin to push node logs outside of component

* feat: added contracts and node store to split main store

* feat: added account store

* feat: removed all uses of main store

* fix: fixed scroll watcher

* 191 SIM-Mock Tutorial execution - store actions and state (#222)

* 226 sim fe refactor transaction sending processing and checking (#252)

* blacked

* readme and contributing fixed

* adding black to contributing

* refactor message handler

* clean unused code

* clean unused file

* LLM comments

* clean rpc endpoints + generator

* feat: added db client and deprecated db credentials file

* feat: added types to dbclient

* feat: added get function

* refactor: renamed db_client

* feat: implemented state domain and db service

* refactor: usage of central db table

* feat: added transaction db service

* feat: added transaction processing to state fund account method

* refactor: inject dependencies when initializing the app

* refactor: custom error and enforce types for State Domain

* refactor: enfoced types

* feat: added return column for insert and insert audit transaction

* feat: added get with condition and remove_all in db_client

* feat: added item not found error

* refactor: refactored validators

* refactor: removed unused code

* fix: added missing method to validators domain

* refactor: removed unused code

* feat: implemented send funds endpoint

* feat: added genvm service and rpc client

* refactor: renamed consensus folder

* feat: added deploy intelligent contract endpoint

* feat: added count validators endpoint

* feat: added limit and offset to get method in db client

* added Invalid Input Error

* feat: added get last contracts endpoint

* refactor: make rpc client generic

* fix: parsed results from state db

* feat: added endpoints for get contract schema

* feat: added call contract endpoint

* feat: added get_contract_state endpoint

* refactor: reusage of get acctount method

* refactor: removed unused code

* fix: build docker file

* fix: db manager imports

* fix: message_handler config file location

* fix: added message_handler to docker setup

* fix: endpoint generator and methods with aliases

* fix: default nodes config location

* add unit tests

* fix: return type for create db endpoint

* fix: create, update and remove validator endpoints

* fix: database init functions import

* fix: validators endpoints to create random validators

* fix: accounts and funds

* refactor: applied code format

* renaming folder structure

* cleaning files

* added requirements to the readme

* fix link

* refactor genvm, node, consensus

* consensus with queues

* adding snapshot classes

* feat: added chain snapshot

* feat: added ContractSnapshot

* fix: docker build

* chore: ignored converage files

* refactor: validators logic and db management

* refactor: added transactions processor to send funds function

* refactor: deploy intelligent contract endpoint

* refactor: call contract function

* refactor: removed unused endpoint to get last contracts

* refactor: accounts endpoints

* refactor: get contract schema endpoints

* reafactor: public account method

* refactor: get contract state

* feat: added transaction by id endpoint

* feat: transition transactions through different statuses while executing

* fix: transaction execution parameters

* refactor: moved create database script to docker postgress initialization script

* added the clear tables method to db client

* fix: several fixes to run the backend

* fix: several small fixes and contract schema endpoint fix

* fix: validators endpoints for creating and updating

* refactor: added transactions audit to init script

* fix: transactions updates and set transaction result at finish consensus

* fix: queues execution with 10 seconds sleep

* refactor: rename tx db field

* refactor: removed unused code

* fix: server and threads start up

* fix: deploy intelligent contract

* fix: queues blocking issue and continuous execution

* fix: db client error on fetching when not selecting

* fix: deploy intelligent contracts

* fix: examples fixed with new syntax and imports

* feat: added pending tx

* feat: added plugin to listen for pending transactions

* fix: parse transaction data from db

* feat: added transactions listener

* chore: set back get contract schema with address

* feat: added traceback error printing to node and consensus

* fix: get contract state

* fix: deployed contract listener toast and getter data binding

* fix: moved toast notify to ui component

* fix: call_contract_function fixed

* fix: avoid removing the pending transactions when the queues are empty

* feat: added loading indicator for transaction list

* fix: clear inputs after method call

* fix: node config and eq receipt usage

* fix: fixed filter for transactions listener

* feat: reverse order of transactions

* fix: filter logs and remove get_transacction_by_id

* feat: added clear transactions option in latest transactions

* fix: equivalence principle in GenVM execution

* feat: added transaction accepted status

* chore: enabled python modules

* fix: set 5 as total vallidators per consensus round

* tests: fixed wizard tests

* refactor: remove logger

* test: renamed e2e folder and added storage test

* test: fixed examples and added test for user storage

* test: added integration tests for llm_erc20 contract

* test: added football prediction market integration tests

* refactor: removed unused code

* refactor: removed logs in tests files

* test: fix test response

* 232 SIM Database Schema Migration (#234)

* docs: added database migration handling ADR

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* fix: DBport in docker-compose

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* feat: add SQLAlchemy and Alembic for backwards compatible migrations

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

---------

Signed-off-by: Agustín Ramiro Díaz <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* test:removed unused tests

* 241 SIM gh-action-to-run-unit-tests-on-pr-open-and-approvals (#242)

* feat[ghactions]: Add frontend unit tests

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* fix[ghactions]: fix working directory on tests

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* docs[ghaction]: rename

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

---------

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* 207 SIM-e2e tests for validators configuration (#235)

* feat: added selectors for validators modal

* fix: fixed all node validator tests and split in separated tests

* chore: enabled all tests

* fix: increse time out and wait for get state ui controls

* chore: enable all e2e tests

* fix: removed duration from notify ui call

* fix: remove temp files and added to ignore files

* fix: send all validator params to util function to create validator

* fix: lint settings page

* 190 Simulator - e2e tests for running the tutorial (#240)

* feat: added pinia plugin to push node logs outside of component

* feat: added contracts and node store to split main store

* feat: added account store

* feat: removed all uses of main store

* feat: added contract method call and contract state actions to contracts store

* fix: fixed scroll watcher

* feat: added contract methods to store

* feat: moved all run debug to pinia store

* feat: moved all node settings to pinia store

* feat: moved all node settings to pinia store

* feat: tutorial store first draft and refactor for tutorial container

* feat: added mock data for tutorial steps

* fix: use class for contract items in tutorial

* feat: added tutorial steps tests for welcome and contract examples/code editor

* feat: added deploying contract step test

* feat: added all steps for tutorial

* fix: refactor tutorial tests with utils page

* fix: fixed e2e tests timeout and setup stores

* feat: run cp examples tasks before run e2e tests

---------

Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: integration tests folder changed

---------

Signed-off-by: Agustín Ramiro Díaz <[email protected]>
Co-authored-by: jmlago <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Agustín Díaz <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>

* Sim - Fixed all merge conflicts from staging / main (#254)

* Release 0.0.2 (#227)

* 150 sim add transactions audit table (#174)

* added transactions_audit table and insert and get functions, FIXED: app was not being passed to clear_db_tables

* (snapshot)

* standardized the output of clear_account_and_transactions_tables, created drop_db_if_it_already_exists for testing the create_db endpoint, put create_new_address and address_is_in_correct_format in common, created a simple function setup_db_and_tables in common for use with all the tests, added testing utility function get_all_rows_for_table, FIXED: create_account was not commiting to the db, TODO: remove rpc/utils.py

* added helper functions for testing in common/tests, added the helper functions to all the tests, marked plases where other tests should be written

* added status to transactions and adjusted endpoints and tests accordingly

* FIXED: create_random_validator endpoint was not passing an empty providers dict

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* FEATURE: add and implemented transactions_audit table

* added transaction_id to the transactitons_audit table to help with rollup in the future (as they will want to select by this), created a new database/helpers.py file with convert_to_dict which is the old db_query_data_to_json from rpc/utils.py (we are going to be moving away from utils files), returned all the transactions data after insert with ...RETURNED *; and saved ausing an additional select

* Main into staging (#180)

* Test docker revert (#169)

* fix: revert genvm and rpc docker files

* fix: reverted docker-compose

* feat: improve example contracts (#157)

* 160 simulator   UI fixes (#167)

* fix: added spinner for loading constructor params and handle errors when try to load the contract schema from code

* feat: adding loading indicator for deploy getter and execute methods

* fix: fixed methods update in Execute transactions ui

* fix: fixed re-render constructor inputs and added debounce when change the contract content

* fix: hide scrollbar in editor

* fix: fixed truncate large file names

* fix: added tutorial step for transactions

* feat: added json viewer

* fix: removed non used utils

* fix: fixed format

* fix: removed non used comments

* fix: fixed editor styles

* fix: comments about complex types in json box

* fix: debounce in run debug

* fix: removed logs

* fix: removed loading for constructor params

* Create CONTRIBUTING.md (#136)

* Create CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* add link

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* moved the try execpt up to the clear_account_and_transactions_tables … (#176)

* moved the try execpt up to the clear_account_and_transactions_tables function in rpc/server.py

* database function now only trucates tables if they exist

---------

Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Robert Johnstone <[email protected]>

* 171 simulator   e2e frontend tests for contract examples (#177)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* fix: fixed contract and method names in e2e tests

* 202 SIM - FE - Check transactions list not showing any (#203)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed transaction id from local and json viewer for transaction output

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* 204 SIM - FE - Check autoscrolling feature on logs (#205)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed node logs scroll behavior

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* fix: use v-show instead of v-iff to have the elements present for contract e2e test (#212)

* added version.txt (#209)

* 197 sim fe fix contract state and contract methods refresh after depl… (#214)

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: e2e frontend tests

---------

Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* v-show!

* 178 simulator   add unit testing setup and first tests (#186)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* feat: refactor json rpc service with methods for testing

* feat: refactor json service

* fix: fixed contract and method names in e2e tests

* feat: changed test runner and merge all with vitest

* feat: refactor rpc service and added tests

* feat: tests with mocks

* fix: fixed types

* fix: fixed test to compare deep objects

* fix: fixed tests

* fix: fixed unit tests for json rpc

* fix: fixed rpc client instances (#218)

* feat: replace node base image to slim version (#196)

* added and e2e test for wizard of coin (#187)

* added and e2e test for wizard of coin

* set up the PYTHONPATH environment variable correctly

* action now runs on pull request review, action now works and tests pass, OPENAIKEY is deleted from the .env so the one in the ga environment can be used, ga now uses the ping jsonrpc end point instead of the app one, e2e test_validators_endpoints.py moved to tests/e2e/ folder, rcp/tests/base.py deleted as common/tests/requests.py now used

* added additional gha triggers so the action gets run when prs are updated

* removed the cat .env statement (was used for testing a dfifferent approach

* added line to relpace jsonrpc with localhost in the .env for the tests

* (seeing if adding the OPENAIKEY directly to the .env helps)

* (wrapping OPENAIKEY in quotes to see if the ga environment picks it up)

* (seeing if the env: step command helps)

* (OPENAIKEY was not on a new line in the .env file)

* (added space at the end of the .env file for the OPENAIKEY line)

* (using printf as it offers more control)

* (print out the response so we can see what it is)

* (printing out the environ from the tests to see if we have the OPENAIKEY)

* (adding back in e2e for validators)

* (adding back in wizard of coin test)

* (remove print statments in the action)

* (updated action so it is only excuted when a pr is opened and approved)

* moved common file for testing to tests/common and updated e2e tests accordingly

* 206 SIM-FE-Ensure code editor always resize to max possible espace (#216)

* fix: handle code editor resize

* fix: fixed element resize using resize observer

* fix: removed non used deps and events

* 224 SIM-Create and Edit validator: make provider, model, and stake fields mandatory (#225)

* fix: added requred fields to create and update validators

* fix: added disabled opacity for update button inside update validator form

* Release 0.0.1 (#215)

* 150 sim add transactions audit table (#174)

* added transactions_audit table and insert and get functions, FIXED: app was not being passed to clear_db_tables

* (snapshot)

* standardized the output of clear_account_and_transactions_tables, created drop_db_if_it_already_exists for testing the create_db endpoint, put create_new_address and address_is_in_correct_format in common, created a simple function setup_db_and_tables in common for use with all the tests, added testing utility function get_all_rows_for_table, FIXED: create_account was not commiting to the db, TODO: remove rpc/utils.py

* added helper functions for testing in common/tests, added the helper functions to all the tests, marked plases where other tests should be written

* added status to transactions and adjusted endpoints and tests accordingly

* FIXED: create_random_validator endpoint was not passing an empty providers dict

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* REVERT: reverting changes unrelated to transactiosn_audit table back to staging branch

* FEATURE: add and implemented transactions_audit table

* added transaction_id to the transactitons_audit table to help with rollup in the future (as they will want to select by this), created a new database/helpers.py file with convert_to_dict which is the old db_query_data_to_json from rpc/utils.py (we are going to be moving away from utils files), returned all the transactions data after insert with ...RETURNED *; and saved ausing an additional select

* Main into staging (#180)

* Test docker revert (#169)

* fix: revert genvm and rpc docker files

* fix: reverted docker-compose

* feat: improve example contracts (#157)

* 160 simulator   UI fixes (#167)

* fix: added spinner for loading constructor params and handle errors when try to load the contract schema from code

* feat: adding loading indicator for deploy getter and execute methods

* fix: fixed methods update in Execute transactions ui

* fix: fixed re-render constructor inputs and added debounce when change the contract content

* fix: hide scrollbar in editor

* fix: fixed truncate large file names

* fix: added tutorial step for transactions

* feat: added json viewer

* fix: removed non used utils

* fix: fixed format

* fix: removed non used comments

* fix: fixed editor styles

* fix: comments about complex types in json box

* fix: debounce in run debug

* fix: removed logs

* fix: removed loading for constructor params

* Create CONTRIBUTING.md (#136)

* Create CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* add link

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* moved the try execpt up to the clear_account_and_transactions_tables … (#176)

* moved the try execpt up to the clear_account_and_transactions_tables function in rpc/server.py

* database function now only trucates tables if they exist

---------

Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Robert Johnstone <[email protected]>

* 171 simulator   e2e frontend tests for contract examples (#177)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* fix: fixed contract and method names in e2e tests

* 202 SIM - FE - Check transactions list not showing any (#203)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed transaction id from local and json viewer for transaction output

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* 204 SIM - FE - Check autoscrolling feature on logs (#205)

* 188 sim   fix discord and docs links (#189)

* format: applied prettier

* format: formatted contributing guide

* fix: discord and docs links

* fix: home screen (#192)

* 193 sim   create tables in docker compose init (#194)

* refactor: format

* refactor: relocated init_db

* feat: added start up script and init db commands

* feat: override command in postgres docker compose service

* fix: changed line endings to CRLF

* fix: reverted line endings and changed bash command

* feat: deploy the database image in a dockerfile

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: fixed node logs scroll behavior

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* fix: use v-show instead of v-iff to have the elements present for contract e2e test (#212)

* added version.txt (#209)

* 197 sim fe fix contract state and contract methods refresh after depl… (#214)

* 197 sim fe fix contract state and contract methods refresh after deploying and switching tabs (#199)

* fix: fixed execute transactions abi update and selected method

* fix: removed non used deps

* fix: debounce only in contract content change

* fix: fixed watchers for contract changes

* fix: fixed watchers for contract changes

* fix: call get constructor inputs in mounted for run and debug

* docs: add required version and troubleshooting link (#198)

* Update README.md add required version

* Update README.md

* docs: updated readme and contributing

---------

Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: e2e frontend tests

---------

Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>

* v-show!

* 178 simulator   add unit testing setup and first tests (#186)

* fix: removed cypress settings

* feat: first setup contracts page and skip tutorial

* feat: added utils for e2e testing and contracts page

* feat: added check for contract params and fixed bug for contract file names

* feat: deploy contract example test

* feat: added file per contract example wizard of coin

* fix: set last step for first version

* fix: removed non used elements

* feat: added wait to get text results for contract state getter

* feat: added execute transaction for wizard of coin

* feat: added Storage test example

* feat: refactor json rpc service with methods for testing

* feat: refactor json service

* fix: fixed contract and method names in e2e tests

* feat: changed test runner and merge all with vitest

* feat: refactor rpc service and added tests

* feat: tests with mocks

* fix: fixed types

* fix: fixed test to compare deep objects

* fix: fixed tests

* fix: fixed unit tests for json rpc

* fix: fixed rpc client instances (#218)

---------

Co-authored-by: Robert Johnstone <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: jmlago <[email protected]>

* 191 SIM-Mock Tutorial execution (#221)

* feat: added pinia plugin to push node logs outside of component

* feat: added contracts and node store to split main store

* feat: added account store

* feat: removed all uses of main store

* fix: fixed scroll watcher

* 191 SIM-Mock Tutorial execution - store actions and state (#222)

---------

Co-authored-by: Robert Johnstone <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: jmlago <[email protected]>

* fix: fixed all merge conflicts from staging / main

* refactor: removed unused code

* fix: backend integration tests location

* refactor: renamed gh workflow for backend integration tests

---------

Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Robert Johnstone <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: jmlago <[email protected]>

* fix: validate input to accept only integers in stake validators / validate config type in update (#253)

* 247 SIM fix hot reload (#258)

* improvement[dockerfile]: improve backend docker layer caching

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* feat[docker-dev]: add watchdog to autoreload the backend on changes

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* improvement[dockefile]: minor simplify dockerfile

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

---------

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* 200 SIM-FE-Allow the user to reset all their contracts and local storage (#201)

* blacked

* readme and contributing fixed

* adding black to contributing

* refactor message handler

* clean unused code

* clean unused file

* LLM comments

* clean rpc endpoints + generator

* feat: added db client and deprecated db credentials file

* feat: added types to dbclient

* feat: added get function

* refactor: renamed db_client

* feat: implemented state domain and db service

* refactor: usage of central db table

* feat: added transaction db service

* feat: added transaction processing to state fund account method

* refactor: inject dependencies when initializing the app

* refactor: custom error and enforce types for State Domain

* refactor: enfoced types

* feat: added return column for insert and insert audit transaction

* feat: added get with condition and remove_all in db_client

* feat: added item not found error

* refactor: refactored validators

* refactor: removed unused code

* fix: added missing method to validators domain

* refactor: removed unused code

* feat: implemented send funds endpoint

* feat: added genvm service and rpc client

* refactor: renamed consensus folder

* feat: added deploy intelligent contract endpoint

* feat: added count validators endpoint

* feat: added limit and offset to get method in db client

* added Invalid Input Error

* feat: added get last contracts endpoint

* refactor: make rpc client generic

* fix: parsed results from state db

* feat: added endpoints for get contract schema

* feat: added call contract endpoint

* feat: added get_contract_state endpoint

* refactor: reusage of get acctount method

* refactor: removed unused code

* fix: build docker file

* fix: db manager imports

* fix: message_handler config file location

* fix: added message_handler to docker setup

* fix: endpoint generator and methods with aliases

* fix: default nodes config location

* add unit tests

* fix: return type for create db endpoint

* fix: create, update and remove validator endpoints

* fix: database init functions import

* fix: validators endpoints to create random validators

* fix: accounts and funds

* refactor: applied code format

* renaming folder structure

* cleaning files

* added requirements to the readme

* fix link

* refactor genvm, node, consensus

* feat: added reset contract storage option in settings screen

* consensus with queues

* adding snapshot classes

* feat: added chain snapshot

* feat: added ContractSnapshot

* fix: reset default examples state

* fix: added updatedAt field for contract file

* fix: filter files for old version and names

* fix: docker build

* chore: ignored converage files

* refactor: validators logic and db management

* refactor: added transactions processor to send funds function

* refactor: deploy intelligent contract endpoint

* refactor: call contract function

* refactor: removed unused endpoint to get last contracts

* refactor: accounts endpoints

* refactor: get contract schema endpoints

* reafactor: public account method

* refactor: get contract state

* feat: added transaction by id endpoint

* feat: transition transactions through different statuses while executing

* fix: transaction execution parameters

* refactor: moved create database script to docker postgress initialization script

* added the clear tables method to db client

* fix: several fixes to run the backend

* fix: several small fixes and contract schema endpoint fix

* fix: validators endpoints for creating and updating

* refactor: added transactions audit to init script

* fix: transactions updates and set transaction result at finish consensus

* fix: queues execution with 10 seconds sleep

* refactor: rename tx db field

* fix: fixed changes requsted

* Update frontend/src/views/Simulator/SettingsView.vue

Co-authored-by: Cristiam Da Silva <[email protected]>

* fix: reset all the examples, even those that have been modified

* fix: updated reset state message

* refactor: removed unused code

* fix: server and threads start up

* fix: deploy intelligent contract

* fix: queues blocking issue and continuous execution

* fix: db client error on fetching when not selecting

* fix: deploy intelligent contracts

* fix: examples fixed with new syntax and imports

* feat: added list of contracts to be deleted

* fix: updated message for reset storage

* fix: type

* feat: added pending tx

* feat: added plugin to listen for pending transactions

* fix: parse transaction data from db

* feat: added transactions listener

* chore: set back get contract schema with address

* feat: added traceback error printing to node and consensus

* fix: get contract state

* fix: deployed contract listener toast and getter data binding

* fix: moved toast notify to ui component

* fix: call_contract_function fixed

* fix: avoid removing the pending transactions when the queues are empty

* feat: added loading indicator for transaction list

* fix: clear inputs after method call

* fix: node config and eq receipt usage

* fix: fixed filter for transactions listener

* feat: reverse order of transactions

* fix: filter logs and remove get_transacction_by_id

* feat: added clear transactions option in latest transactions

* fix: equivalence principle in GenVM execution

* feat: added transaction accepted status

* chore: merged with latest

* fix: fixed all reset storage flow

* Update tests/test_rpc/test_address_utils.py

Co-authored-by: Agustín Díaz <[email protected]>

* Update tests/test_rpc/test_address_utils.py

Co-authored-by: Agustín Díaz <[email protected]>

---------

Co-authored-by: jmlago <[email protected]>
Co-authored-by: Cristiam Da Silva <[email protected]>
Co-authored-by: Agustín Díaz <[email protected]>

* fix: parse validator config from string (#266)

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

* improvement: improve llm handling of strings (#269)

Signed-off-by: Agustín Ramiro Díaz <[email protected]>

---------

Signed-off-by: Agustín Ramiro Díaz <[email protected]>
Co-authored-by: Robert Johnstone <[email protected]>
Co-authored-by: Muncle Uscles <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Favour Kelvin <[email protected]>
Co-authored-by: jmlago <[email protected]>
Co-authored-by: Bradley Suira <[email protected]>
Co-authored-by: Agustín Díaz <[email protected]>
@bradleySuira bradleySuira linked an issue Jul 11, 2024 that may be closed by this pull request
@bradleySuira bradleySuira self-assigned this Jul 11, 2024
Copy link
Contributor

@AgustinRamiroDiaz AgustinRamiroDiaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've talked with Bradley outside, and I don't think this is the right way to tackle this issue. I'll put more information on the issue

@bradleySuira
Copy link
Contributor Author

We've talked with Bradley outside, and I don't think this is the right way to tackle this issue. I'll put more information on the issue

pushed the fixes and updated the ticket with the details but want to add here

  • As you said be were storing a string in a jsonb field in database
  • I ended sending when call to create and update methods a valid json from the frontend
  • in the backend side in both, update and create, I ended using this "config": AsIs("'" + json.dumps(config) + "'"),, with this change the field is stored as a json in the database and not as string
  • Because the last point, we don't need to cal anymore the json.loads() method when we get the validators data, so json.loads(validator_data["config"]), is now validator_data["config"] like we have before

I tested addling listing and updating the validators and also the contract deployment and methods calls

backend/database_handler/validators_registry.py Outdated Show resolved Hide resolved
@bradleySuira bradleySuira changed the base branch from main to staging July 16, 2024 02:33
@bradleySuira bradleySuira dismissed AgustinRamiroDiaz’s stale review July 16, 2024 02:33

The base branch was changed.

@AgustinRamiroDiaz
Copy link
Contributor

AgustinRamiroDiaz commented Jul 16, 2024

@bradleySuira I've created #282 for handling backwards compatibility. Please test it and merge it to this PR

@bradleySuira bradleySuira merged commit 31e29e1 into staging Jul 17, 2024
1 of 2 checks passed
@bradleySuira bradleySuira deleted the 272-fix---json-load-for-validator-config branch July 17, 2024 04:54
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.

SIM - BE - Fix - json load for validator config
3 participants