You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(simulator): add hardhat network and fix JsonRpcService import (#676)
* feat: add hardhat node and web3 package
- Add Hardhat node service with Docker configuration
- Configure hardhat.config.js with local network settings
- Add 20 test accounts with 10,000 ETH each
- Add web3 Python package to backend requirements
- Update .gitignore for Hardhat artifacts and cache
* feat: add contract and try script
* feat: setup contract compilation and artifact handling
- Add contract compilation setup with hardhat
- Configure project structure for smart contracts
- Fix file path for GhostContract.json artifact
- Add necessary dependencies for contract compilation
- Setup directory structure for contracts and artifacts
* feat: creating hardhat transactions in consensus mechanism
- Moved web3 python package into backend requirements file
- Added access to compiled hardhat contract in jsonrpc service
- Added database migration file so that a transaction has the ghost contract address of hardhat network
- When a genlayer contract is deployed then a hardhat contract is deployed, both are linked in the CurrentState table
- When a genlayer write method is executed then the new transaction gets the hardhat contract from the CurrentState table
- When a genlayer transaction changes from status then a rollup transaction is created on the hardhat network
- todo: remove rollup transaction table, put hardhat port in env, link genlayer account to hardhat account, check for out of gas, remove prints
* feat: put hardhat port in env
* feat: remove rollup transactions database table
* feat: free transactions on hardhat, one hardhat account
* test: add hardhat test with code from the transaction_processor
* fix: resolve pre-commit error
* test: moved test to integration tests, upgrade web3 version in requirements as it gave an import error
* feat(hardhat): add genlayer-consensus contracts and setup compilation
- Add genlayer-consensus smart contracts to hardhat/contracts directory
- Update hardhat.config.js to enable new code generator (viaIR: true)
- Add @openzeppelin/contracts and @openzeppelin/contracts-upgradeable dependencies
- Configure hardhat Docker container for contract compilation
- Verify hardhat node functionality in genlayer-studio
This commit sets up the smart contract development environment with the
necessary dependencies and configurations to compile and deploy
genlayer-consensus contracts.
* feat: deleted amm_adaptive.py
- Deleted amm_adaptive.py because is not using the new syntax
I will upload the new amm_adaptive.py whenevir will be ready
* fix: contract interaction
- Fixed contract deployment state updates for frontend synchronization
- Improved contract method interactions and state management
- Ensured proper state updates after contract value changes
* fix: pre-commit errors solved
* fix: solved black pre-commit issue
* fix(migrations): resolve multiple head revisions issue
- Identified and merged multiple migration heads
- Ensured database schema consistency
- Updated migration scripts to prevent future conflicts
This change resolves the issue with multiple Alembic head revisions, ensuring smooth database migrations and consistent schema state.
* fix: restore JsonRpcService import removed in last PR
Restores the JsonRpcService import that was accidentally removed in the last PR.
This fixes the build error where JsonRpcService was undefined.
---------
Co-authored-by: kstroobants <stroobants.kristof@hotmail.com>
Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com>
0 commit comments