Repository navigation
fix: make studio blocking independent of genvm errors - #1262
Conversation
…alization in test
…memory_allocation_error
…request becasue webdriver has hardcoded 60s shutdown
WalkthroughThis update introduces robust error-handling integration tests for contract execution, LLM, and web interactions. It adds a Lua web validator, enhances the GenVM host runner with retries and state copying, and adjusts contract state typing. Several internal logic checks are tightened, and new test contracts and modules are implemented for comprehensive error scenario validation. Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Integration Test
participant Node as Node/GenVM Host
participant Contract as Test Contract
participant LLM as LLM Provider
participant Web as Web Validator
Test->>Node: Deploy contract (with error scenario)
Node->>Contract: Execute contract method
alt Execution error (e.g., TypeError, OOM, etc.)
Contract-->>Node: Raise error
Node-->>Test: Return error receipt
else LLM interaction
Contract->>LLM: Send prompt
alt LLM API error
LLM-->>Contract: Error/invalid JSON
Contract-->>Node: Raise error
Node-->>Test: Return error receipt
else Success
LLM-->>Contract: Valid response
Contract-->>Node: Success
Node-->>Test: Return success receipt
end
else Web interaction
Contract->>Web: Render or request URL
alt Web error (timeout, forbidden, etc.)
Web-->>Contract: Error
Contract-->>Node: Raise error
Node-->>Test: Return error receipt
else Success
Web-->>Contract: Page content/screenshot
Contract-->>Node: Success
Node-->>Test: Return success receipt
end
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used🧬 Code Graph Analysis (1)tests/integration/icontracts/tests/test_error_llm.py (6)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
|
🎉 This PR is included in version 0.69.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* fix: add default consensus history object for old transactions (#1094) * feat: improve providers and models distribution on hosted studio (#1100) * chore: removed unused models and update existing ones * chore: config more diverse providers and models * chore: updated env example with multiple validators * feat: added output and eq principle outputs to transaction detail modal * chore: clean up models that doesn't perform well * fix: transaction details modal horizontal scroll * fix: frontend build * fix: format * refactor: updated providers schema in frontend * refactor: removed unused property in providers schema * fix: add XAI_API_KEY, remove prints * fix: format and missing env variable example * fix: duplicated XAI_API_KEY in env file --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: renamed infra repo (#1102) * feat: do not create snapshots along the consensus execution (#1103) * feat: removed contract_snapshot_supplier, created contract snapshot inside context init * fix: remove hardcoded majority_agrees for testing * fix: no creation of contract snapshot when transaction is funding; add check for restore_stuck_transactions --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: merge renovate changes into main (#1097) * chore(deps): update dependency @vue/eslint-config-prettier to v10 (#697) * chore(deps): update dependency @vue/eslint-config-prettier to v10 * fix: adding Hardhat Dockerfile in GitHub Workflow (#693) * fix(hardhat): prevent race conditions in contract deployment (#704) * fix(hardhat): Add contract deployment and healthcheck to prevent race conditions - Added healthcheck to hardhat service in docker-compose.yml - Modified Dockerfile.hardhat to deploy contracts after node is ready - Added proper service dependency in docker-compose.yml to ensure jsonrpc waits for hardhat This fixes the race condition where jsonrpc would try to access hardhat accounts before they were available, causing the finality window to crash. * fix: use named volume for hardhat artifacts to fix permissions issue - Changed hardhat artifacts from bind mount to named volume - This ensures correct permissions are maintained - Fixes CI/CD pipeline issues with hardhat compilation * chore(docker): add curl to Dockerfile.hardhat and update healthcheck method * chore(docker): merge RUN instructions and sort package names in Dockerfile * fix: change health check command to nc instead of curl * fix: healthcheck trying curl with increased retries --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: catch exception to keep loop running (#705) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add BACKEND_BUILD_TARGET used in docker compose file in .env.example to run in debug (#707) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: Update reviewers for renovate (#694) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> * chore(deps): update sonarsource/sonarcloud-github-action action to v4 (#696) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update node.js to v22 (#695) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update codecov/codecov-action action to v5 (#660) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency pre-commit to v4 (#557) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @types/chai to v5 (#551) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update all non-major dependencies (#534) * fix(deps): update all non-major dependencies * remove trailing whitespace --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Den <den@Deniss-MacBook-Pro.local> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @vitejs/plugin-vue-jsx to v4 (#514) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: updated target branch to staging * chore: update dependencies * chore(deps): update dependency @vue/eslint-config-prettier to v10 (#716) * chore(deps): update dependency @vue/eslint-config-prettier to v10 * fix: adding Hardhat Dockerfile in GitHub Workflow (#693) * fix(hardhat): prevent race conditions in contract deployment (#704) * fix(hardhat): Add contract deployment and healthcheck to prevent race conditions - Added healthcheck to hardhat service in docker-compose.yml - Modified Dockerfile.hardhat to deploy contracts after node is ready - Added proper service dependency in docker-compose.yml to ensure jsonrpc waits for hardhat This fixes the race condition where jsonrpc would try to access hardhat accounts before they were available, causing the finality window to crash. * fix: use named volume for hardhat artifacts to fix permissions issue - Changed hardhat artifacts from bind mount to named volume - This ensures correct permissions are maintained - Fixes CI/CD pipeline issues with hardhat compilation * chore(docker): add curl to Dockerfile.hardhat and update healthcheck method * chore(docker): merge RUN instructions and sort package names in Dockerfile * fix: change health check command to nc instead of curl * fix: healthcheck trying curl with increased retries --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: catch exception to keep loop running (#705) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add BACKEND_BUILD_TARGET used in docker compose file in .env.example to run in debug (#707) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: Update reviewers for renovate (#694) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> * chore(deps): update node.js to v22 (#717) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: updated frontend dependencies config * fix: dependencies * chore(deps): update dependency @vue/eslint-config-typescript to v14 (#698) * chore(deps): update dependency @vue/eslint-config-typescript to v14 * fix: adding Hardhat Dockerfile in GitHub Workflow (#693) * fix(hardhat): prevent race conditions in contract deployment (#704) * fix(hardhat): Add contract deployment and healthcheck to prevent race conditions - Added healthcheck to hardhat service in docker-compose.yml - Modified Dockerfile.hardhat to deploy contracts after node is ready - Added proper service dependency in docker-compose.yml to ensure jsonrpc waits for hardhat This fixes the race condition where jsonrpc would try to access hardhat accounts before they were available, causing the finality window to crash. * fix: use named volume for hardhat artifacts to fix permissions issue - Changed hardhat artifacts from bind mount to named volume - This ensures correct permissions are maintained - Fixes CI/CD pipeline issues with hardhat compilation * chore(docker): add curl to Dockerfile.hardhat and update healthcheck method * chore(docker): merge RUN instructions and sort package names in Dockerfile * fix: change health check command to nc instead of curl * fix: healthcheck trying curl with increased retries --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: catch exception to keep loop running (#705) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add BACKEND_BUILD_TARGET used in docker compose file in .env.example to run in debug (#707) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: Update reviewers for renovate (#694) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @vue/eslint-config-typescript to v14 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> * chore(deps): update codecov/codecov-action action to v5 (#719) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: docker python images version * fix: removed unused dependencies * chore(deps): update dependency jsdom to v25 (#517) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency sinon to v19 (#520) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update vitest monorepo to v2 (#526) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @globalhive/vuejs-tour to v2 (#529) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update all non-major dependencies (#718) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/chai to v5 (#722) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @vitejs/plugin-vue-jsx to v4 (#724) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency pre-commit to v4 (#728) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency mocha to v11 (#737) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency npm-run-all2 to v7 (#738) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency vite to v6 (#739) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update dependency @nomicfoundation/hardhat-toolbox to v5 (#740) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update dependency hardhat-gas-reporter to v2 (#741) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update dependency uuid to v11 (#742) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: updated deps * chore(deps): update all non-major dependencies (#745) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#749) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#750) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#756) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#760) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#763) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#773) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#774) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#775) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#776) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#777) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#778) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#779) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#784) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#794) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#797) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#798) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#800) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#802) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#806) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#807) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#808) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#810) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#811) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#815) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#816) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#817) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#825) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#829) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#831) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#832) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#833) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#834) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#837) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.0.9 [security] (#836) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#845) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#848) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#849) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#852) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#854) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#855) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#856) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#860) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#862) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#866) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#868) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#871) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: downgraded hardhat-gas-reporter as it is not compatible with hardhat-toolbox; added requests in webrequests as newer version of anthropic raised an import error * chore(deps): update dependency black to v25 (#861) * chore(deps): update dependency black to v25 * fix: unknown compiler * fix: useWebSocketClient test saying object is possibly undefined --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update dependency web3 to v7.8.0 (#872) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency jsdom to v26 (#809) * chore(deps): update dependency jsdom to v26 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update dependency eth-account to v0.13.5 (#875) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update vitest monorepo to v3 (#819) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update all non-major dependencies to v3.0.4 (#876) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.61.1 (#879) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#882) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies to v3.0.5 (#884) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#885) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency genlayer-js to v0.6.4 (#888) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#889) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.22.23 (#890) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency lucide-vue-next to ^0.475.0 (#896) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.5.8 (#898) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update node.js to v22.14.0 (#899) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency prettier to v3.5.0 (#902) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.62.0 (#903) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.5.9 (#905) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.0 (#906) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#908) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#909) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#911) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.2 (#912) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency prettier to v3.5.1 (#913) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#914) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#917) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies to v12.7.0 (#919) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#923) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.66.4 (#928) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#931) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#932) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#935) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#936) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vue-tsc to v2.2.4 (#943) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#944) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#948) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency anthropic to v0.49.0 (#952) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.65.2 (#953) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency pytest to v8.3.5 (#954) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#955) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#958) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vue-tsc to v2.2.8 (#960) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#963) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.67.1 (#965) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.9 (#966) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.6 (#967) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#970) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#972) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#974) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#978) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#984) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#993) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.6.0 (#995) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#997) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @rushstack/eslint-patch to v1.11.0 (#999) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1000) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency genlayer-js to ^0.9.0 (#1002) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency start-server-and-test to v2.0.11 (#1003) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1004) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1006) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1007) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1008) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1011) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1012) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.12 (#1013) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1014) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency sinon to v19.0.4 (#1015) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.13 (#1016) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.11 (#1018) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1019) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.3 [security] (#1025) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency eth-account to v0.13.6 (#1029) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1030) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1032) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.15 (#1034) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1035) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1037) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.69.2 (#1039) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1042) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.4 [security] (#1043) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency aiohttp to v3.11.15 (#1044) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency aiohttp to v3.11.16 (#1048) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.71.0 (#1050) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.6.4 (#1051) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.71.1 (#1052) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies to v3.1.1 (#1053) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1054) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.24.3 (#1055) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.15 (#1056) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.16 (#1057) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.5 [security] (#1059) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.17 (#1060) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1061) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1062) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.25.0 (#1063) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.6.5 (#1064) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1067) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency pydantic to v2.11.3 (#1070) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.72.0 (#1073) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1077) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.72.0 (#1082) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1083) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.26.2 (#1084) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.6 [security] (#1089) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1087) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1090) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.73.0 (#1092) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.26.3 (#1093) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency pinia to v3 (#910) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1095) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1098) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update vueuse monorepo to v13 (#998) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix(deps): update dependency splitpanes to v4 (#973) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update tibdex/github-app-token action to v2 (#1096) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update dependency sinon to v20 (#1033) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix(deps): update all non-major dependencies (#1099) * fix(deps): update all non-major dependencies --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> Co-authored-by: Den <den@Deniss-MacBook-Pro.local> * fix: avoid activating new transactions when the previous one is not accepted (#1106) * fix: process pending transaction when previous does not exist, is appealed or is in an accepted/undetermined/finalized state * fix: add get_previous_transaction in test helpers * feat: update default provider presets at startup (#1091) * feat: update default provider presets at startup * fix: remove comments * fix: add is_default to GetProvidersAndModelsData frontend * fix: do not reset providers when migrating an empty database, at that point is_default does not exist --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: trigger newtransaction for contract dependent transactions in consensus (#1080) * feat: call addTransaction from _emit_transactions * feat: call _addTransaction inside solidity contract when calling emitTransactionAccepted or emitTransactionFinalized * fix: internal message for deployment needed more gas, contract_address is created in python because genvm does the same construction * fix: add InternalMessageProcessed * fix: split _emit_transactions --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: consensus contract state tests (#1104) * feat: add contract state checks for one tx for happy path, leader appeal, rollback validator appeal * feat: added test for one transaction in validator appeal and future transaction in accepted * feat: add test for one transaction in leader appeal and future transaction in accepted --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * added telegram link to readme (#1116) * fix: generate contracts address when consensus_service is not running (#1120) * fix: generate contracts address when consensus_service is not running * fix: autogenerate tx hash in the transaction processor * fix: check states when they are not timing dependent --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * feat: implement state snapshots (#1126) * feat: add snapshot model * feat: add snapshot manager * feat: add rpc endpoints * fix: minor updates * feat: add snapshot manager tests * chore: propagate failure on github actions * fix: old tests * fix: black * fix: chromedriver version * test: add an integration test for Intelligent Contracts Factory Pattern (#1122) * test: add an integration test for Intelligent Contracts Factory Pattern from intelligent oracle project * test: change prediction markets --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: error Handling on LLM calls (#1129) * feat: add timeout retry in node call * fix: changed timeout to 30 seconds --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: fixing genlayer-js version (#1137) * fix: use another openssl package (#1131) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: remove private_key from validators for endpoints methods (#1141) * fix: remove private_key from validators for endpoints methods * fix: solve failed testcase * refactor(tests): integrate genlayer test (#1114) * refactor: rename contracts extension to .gpy * refactor: integrate genlayer-test * fix: update import * fix: delete unused code * chore: add genlayer-test package * fix: use gltest command to run integration tests * chore: update frontend docker file to receive .py files * refactor: rename to .gpy * feat: integrate intelligent oracle test * chore: upgrade genlayer-test version * fix: black * fix: simplify logic * fix: add setup_validator fixture to all tests * chore: updated and fixed dependencies * fix: manage tx timestamp_appeal as int --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add missing transaction fields (#1144) * fix: add missing transaction fields * fix: black * refactor: increase genvm execution timeout to 5 minutes (#1146) * fix: make snapshots endpoints to be forbidden in hosted studio (#1149) * chore: update BSL date on PR merge (#1105) * chore: update BSL date on PR merge * chore: comment out condition for PR merge in update-bsl-date workflow * chore: add display changes step in update-bsl-date workflow * test * chore: update update-bsl-date workflow to trigger on opened, synchronize, and reopened PRs; add permissions for pull-requests * use current branch instead of main * chore: clean up update-bsl-date workflow --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: remove ollama from default docker compose (#1069) * made ollama optional * fix: don't have ollama in database when profile is not active --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * feat: mimic Node GenCall method (#1150) * feat: add gen_call * fix: gen_call read works by adding parsing * fix: remove prints * fix: add logs for newTransaction event in get receipt * fix: solve pre-commit issues * fix: change status to statusName, add Address type * fix: update genlayer-js to 0.9.3, solve pre-commit --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: frontend read method should show accepted and finalized contract state (#1152) * feat: add gen_call * fix: gen_call read works by adding parsing * fix: remove prints * feat: read accepte d and finalized state in frontend * fix: pre-commit solved * refactor: improved UI styles for both states * chore: updates genlayer-js * fix: tutorial location * fix: undo tutorial change * fix: use TransactionHashVariant from genlayer-js * fix: update genlayer-js to 0.9.5 --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: consensus history updated before logevent (#1134) * fix: consensus history updated before logevent * This is an empty commit --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: catch register contract error if it fails (#1165) * feat: bypass non implemented eth methods to hardhat node (#942) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: detect appeals from raw transaction (#1088) * feat: detect appeals from raw transaction * fix: update genlayer-js version; remove appeal function in endpoints * fix: frontend hash type --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: update contracts extension to py (#1166) * feat: rename example contracts extension to .py * refactor: reorganize intelligent contracts tests * bump genlayer-test to 0.1.1 * fix: frontend build and test * feat: update frontend .py files to .gpy * fix: ic tests * fix: frontend lint * docs: added README.md to run tests * fix: delete duplicated extension * feat: add config for rotation rounds per tx (#939) * feat: add config for rotation rounds per tx * fix: increase processing time for checks in consensus tests * fix: revert previous commit; put delay between setting timestamp appeal and appeal value for checks in consensus tests. It executes too fast in gh workflow * fix: update genlayer-js version to 0.9.0 * fix: update genlayer-js in package-lock.json * fix: make consensusMaxRotations undefined in callWriteMethod * fix: set config_rotation_rounds of insert_transaction where called * fix: add default max_rotations when no data is passed * fix: reorder params test --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: change the cancelling (#1181) * feat(genvm): update to v0.0.16 (#1109) * fix(genvm): update to v0.0.18 * fix: set is_available key of providers instead of filtering in endpoints * chore: fix after rebase * feat: support multiple images in llm calls * fix: cleanup * fix: increase gas for events because of hardhat error in test_intelligent_oracle_factory_pattern * fix: use url, key, plugin from default_providers files * fix: update to genvm 0.1.0 for deepseek * fix: provider_available sets is_model_available, otherwise all models of the same plugin will be unavailable * fix: solved rabbit comments * fix: pre-commit clean * fix: change gpt-4 to gpt-4-1106-preview; change gh workflow to only be cancelled for commits, not for comments like rabbitai * fix: Concurrency group identifier misconfiguration * chore: check if tests are cancelled * fix: update gh workflow * fix: remove commit hash from gh workflow * fix: gen_call when there is no finalized state yet --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: gen_call error with arguments (#1184) * fix: decode call data differently to take into account args * fix: check for null byte --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: leader also evaluates the validation function (#940) * feat: leader also evaluates the validation function * fix: vote can be none * fix: emits did not contain index for leader_receipt * fix: parse_transaction_data contains first leader_receipt * fix: put mock leader_receipt in a list * fix: put mock leader_receipt in a list * fix: merge typo * fix: call contract function schema * chore: update genlayer-test to version 0.1.2 * fix: apply rabbit suggestions * style: apply black * style: apply formatter and simplify logic * apply black * fix: tests --------- Co-authored-by: Daniel Rojas <danielrojasc888@gmail.com> * feat: mock llm calls in integration tests (#1190) * feat: mock llm calls in integration tests * fix: none mock_response not allowed * fix: add documentation, remove duplicated code --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: configurable Chain ID (#1192) * feat: use hardhat_chain_id from env file in hardhat config js and in studio backend for simulator_chain_id * fix: remove print * fix: add early fail when chain id is not set as an integer --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: increased GenVM Version to 0.1.1 (#1197) * fix: set new logo (#1202) * fix: merging removed index selection (#1203) * fix: reset the deploy contract instead of writing an empty state (#1204) * fix: Fix restore stuck transactions in Studio (#1208) * fix: bug in restore tx and added try excepts * fix: if tx cannot be delete we will need to put it to pending * fix: put to canceled instead of removing; check first if contract state can be recovered * fix: parse_transaction leader_receipts handling can be accessed for old transactions (#1209) * fix: Solve broken hosted studio (#1211) * fix: solve llm availability error; upgrade restore stuck tx * fix: cancel stuck transaction that do not have a contract in the db; ignore write method calls when there was no deploy call before * fix: to_address in checks was consensusmain address; added rabbitai suggestions * fix: add follow redirects; change yeagerai to genlayerlabs (#1233) * fix: Replace favicon, accessibility (#1237) * fix: change favicon, green text * fix: use mark instead of logo for loading screen * feat: process leader timeout and appeal (#1199) * feat: process leader timeout and appeal * fix: adapt doc string process_leader_timeout_appeal * fix: decode could raise errors; add underscore to leader timeout status * refactor: move code to LeaderTimeoutState class * fix: next tx can be processed when in leader_timeout status * fix: add timeout vote to consensus history frontend * fix: failed hardhat ci test * fix: comment out old hardhat test --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: add sim call endpoint and update gen_call endpoint (#1226) * feat: implement temporal snapshot in Manager * feat: implement sim_call and add new params to gen_call * refactor: abstract common logic for gen_call and sim_call * fix: remove custom gas estimation function to be handled by hardhat (#1222) * Revert "fix: remove custom gas estimation function to be handled by hardhat (…" (#1239) This reverts commit b3d3ea353b2d6f6a67b5848ce0109db896c2cb41. * feat: transaction data compatible with node (#1169) * feat: add data to return value of eth_getTransactionByHash RPC call * fix: make num_of_initial_validators optional in insert_transaction * fix: pass arg to test * fix: resolve some unknowns in transaction data and solve test fail * fix: fill in more transaction data fields * fix: use pending transactions instead of triggered transactions for messages * fix: test have empty address in message * fix: data was none * fix: last round result * refactor: replace with dict * refactor: move and split logic in transaction processor * refactor: apply rabbit suggestions * fix: tests * fix: tx receipt logic * fix: rabbit comments * fix: Fix restore stuck transactions in Studio (#1208) * fix: bug in restore tx and added try excepts * fix: if tx cannot be delete we will need to put it to pending * fix: put to canceled instead of removing; check first if contract state can be recovered * fix: parse_transaction leader_receipts handling can be accessed for old transactions (#1209) * fix: rabbit comments * fix: tests --------- Co-authored-by: Daniel Rojas <danielrojasc888@gmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat(genvm): update to v0.1.3 (#1212) * feat(genvm): update to v0.1.3 * fix: make llm mocking work again * fix: set ownership of genvm directory * fix: changed error --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: change webrequest to webdriver (#1235) * fix: change webrequest to webdriver * fix: remove webdriver publishing (#1246) * feat: mock response to a custom made eq principle (#1245) * license fix (#1252) * feat: update studio version through release process (#1256) * chore: Allow any genlayer and genlayerlabs subdomain to host an studio (#1258) * feat: process validator timeout (#1225) * feat: process leader timeout and appeal * fix: adapt doc string process_leader_timeout_appeal * fix: decode could raise errors; add underscore to leader timeout status * refactor: move code to LeaderTimeoutState class * fix: next tx can be processed when in leader_timeout status * feat: process validators timeout * fix: add timeout vote to consensus history frontend * fix: solve coderabbitai remarks * fix: failed hardhat ci test * fix: comment out old hardhat test * fix: remove testing code * fix: solve testcase, issue was that contract state is now updated after state change to finalized * fix: solve testcase, issue was that contract state is now updated after state change to finalized --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: error on reading state before deploy finalized (#1255) * fix: gen_call read does not throw a jsonrpcerror when execution is error; frontend does not show finalized state value in read when there was a genvm fail * fix: remove debug print * fix: remove console log for read method * fix: add code to finalized state when deploying * fix: don't show empty response * fix: add delay to test so triggered deployment is finalized * feat: custom plugin (#1221) * feat: custom plugin * fix: change order of getting models; old code removed model name if another provider had the same model name with the uniqBy * fix: add availability check for customer model * chore(deps): update genlayer test version (#1267) * chore: update genlayer-test version * test: update with new syntax * feat: setup Database as GCP managed postgres (#1269) * feat: use REMOTE_DATABASE env var to not start postgres service * fix: make studio blocking independent of genvm errors (#1262) * feat: add tests to check if consensus gets stuck when inserting errors * fix: add try catch for genvm execution; increase waiting time for finalization in test * fix: added retry until timeout for genvm crashes; added retry in web request because webdriver has hardcoded 60s shutdown * fix: it should not mock when no mock responses are given * fix: make added tests optional --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: Improve transaction processing and logging (#1281) * Fix: Improve transaction processing and logging This commit addresses several issues related to transaction processing and logging within the system. - It prevents errors when updating transaction statuses or consensus data after snapshot restores by skipping updates for non-existent transactions. - It enhances nonce handling by fetching the actual nonce from Hardhat, ensuring synchronization with the blockchain. If not connected it falls back to existing method. - It improves error handling during transaction forwarding, raising exceptions for nonce errors. - It truncates large transaction fields and contract states in logs (calldata, contract_code, state) unless in DEBUG mode, reducing log size and improving readability. - It updates gas estimation to use zkSync Era's gas limit and updates hardhat config to be the same. - It ensures LLM and Web modules are shutdown correctly and gracefully. - It updates the models to use the latest versions of openai, google, xai, anthropic and heuristai. * Fix: Improves transaction handling and stability This commit addresses several issues related to transaction processing and overall system stability: - Enhances transaction count retrieval by normalizing addresses, fetching from RPC with pending state, and gracefully falling back to the database. Includes error handling for RPC connection issues. - Prevents errors when updating appeal processing time by checking for null `timestamp_appeal` values. - Implements more robust process termination for LLM and Web modules, ensuring cleanup and preventing resource leaks. - Adds custom exception classes for nonce errors in the Consensus Service, improving error handling and reporting. - Expands allowed LLM models in provider schemas. These changes improve the reliability and accuracy of transaction-related operations and enhance the system's resilience to external factors. * fix: mocking hardhat count * fix: ran precommit * fix: move scattered truncations to MessageHandler * fix: do not send rollup tx when transactionType is sending for now * Feat: Forwards eth_ methods in batch requests to Hardhat This commit adds support for forwarding Ethereum-related methods (eth_*) within batch JSON-RPC requests to a Hardhat instance. Previously, batch requests containing eth_ methods were not handled correctly. This change ensures that such requests are forwarded to Hardhat for processing. Non-eth_ methods within batch requests are handled by Flask-JSONRPC. This allows interaction with Hardhat using batch requests. Error handling is also implemented, now if forwarding to Hardhat fails, an error response is returned to the client. * Refactor: Remove unused providers and update RPC handling Removes deprecated and unused provider configurations to streamline the available options. Updates the RPC endpoint generator to improve handling of batch requests, including more robust error handling and logging, and ensures that requests are correctly forwarded to Hardhat when appropriate and not handled locally. Also includes bug fixes for nonce checking in consensus service Adds unit tests for batch request handling, consensus service nonce exceptions, and transaction processor improvements BREAKING CHANGE: Removes heuristai_mistralaimixtral-8x22b-instruct, xai_grok-3-mini, and xai_grok-4-0709 providers * fix: rabbitai remarks; failing test because of mixtral-8x22b-instruct * fix: rabbitai remarks * fix: rabbitai remarks * chore: organize imports in healthcheck.py Sort imports alphabetically and separate third-party from standard library imports --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * feat: improve how prints are shown in the studio (#1280) * feat: prints individually appearing at logs * feat: adding contract button * feat: adding new contract log type * chore: improving mapping * chore: removing blue background color * chore: removing as const * chore: pre commit check * feat: using nodelog typing * fix: types * feat: new split top level util * fix: lint appointments * fix: coderabbit appointments * feat: SIM-FE Finalized status badge color (#1270) * feat: red finalized label * feat: red finalized label * fix: refactoring the conditional logic into a computed property --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: remove dockerfile webdriver (#1271) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: improve genvm error logs in the studio (#1282) * feat: new static code checking * feat: removing contract analysis box * feat: showing genvm errors at root * chore: remove unused code * chore: pre commit comments * chore: pre commit comments --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: AttributeError in eth_getTransactionReceipt endpoint (#1273) * fix: no replace on nonetype * fix: no replace on nonetype * fix: rabbitai remark --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: execute leaders validation concurrently with the validators (#1272) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: hotfix genvm executuon timeout (#1285) * hotfix: revert hardhat gas config (#1287) * hotfix: revert hardhat gas config * hotfix: revert changes rpc * fix tests * Update genlayer-js dependency to version 0.15.1 (#1295) - Updated genlayer-js from ^0.10.0 to 0.15.1 (exact version) - This version fixes retry behavior by disabling viem transport retries - Prevents duplicate requests by setting retryCount: 0 in transport config - Tested functionality - client initialization and UI work properly Ticket: DXP-630 Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Agustín Díaz <agustin.ramiro.diaz@gmail.com> * fix: hardhat db conection pool (#1288) * fix: hardhat db conection pool * docs: add connection pooling report * docs: add accounts manager db session analysis * feat: load fresh contract for each tx * remove incorrect config value * chore: improved db session management and creation config * fix remove expensive cache inval * fix: session:manager usage * refactor: reusable web3 connection management * chore: updated frontend dependencies * chore: setup 100+50 db pool size parameters * fix: remove hardhat forwarding * fix: safe checks for validators config and web3 node * refactor: open db connection status endpoint --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat(rpc): add gen_getContractCode endpoint; store accounts data a… (#1290) * fix: resolve PostgreSQL constraint violation for duplicate transaction hashes (#1294) * feat: implement database connection pool configuration - Add configurable connection pool settings with health checks - Configure pool_pre_ping for stale connection detection - Add pool_recycle for automatic connection renewal - Implement timeout configurations for better reliability - Add SessionManager for improved session lifecycle management - Include environment variables for pool configuration tuning Pool configuration addresses managed database integration issues: - Reduces pool size from 50 to 20 (configurable) - Adds connection health checks before use - Implements automatic connection recycling every hour - Sets proper timeouts for connection acquisition * feat: added new variables * feat: adding tests * feat: updated CLAUDE.md * feat: transactions working * feat: transactions working * feat: transactions working * feat: cleanning everything * feat: cleanning everything * feat: cleanning everything * feat: solve codeRabbit suggestion * feat: solve codeRabbit suggestion * feat: solve codeRabbit suggestion * feat: solve codeRabbit suggestion * feat: run pre-commit * feat: finished * feat: pre-commit runned * feat: deletted unnecesary functions * Update settings.json * feat: deletted cursor settings.json * fix: tests --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * ci: adding vector to studio compose (#1289) * feat: adding vector to studio compose * fix: coderabbitai minor issues * fix: formatting * fix: removing secrets from docker compose * feat: adding gcp_pubsub sink to redirect docker logs to a Pub/Sub topic --------- Co-authored-by: Claus <0xclausdev@gmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: removing the full path from the pub/sub topic (#1298) * chore: jsonrpc container generates logs in only 1 line (#1291) * feat: jsonrpc container generates logs in only 1 line * fix: formatting * fix: formatting * fix: formatting * fix: @coderabbitai refactor suggestion * fix: putting the required:false back to the docker-compose.yml file * refactor: merge main and pre-commit * chore: restore db pool params --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: start using selfstates in contract snapshot (#1302) * chore: improving code rediability and class usage * fix: wrong comment * chore: prettier * chore: prettier * chore: [DXP-638] Apply precommit hooks to all files (#1301) * Apply precommit hooks to all files Co-Authored-By: Agustín Díaz <agustin.ramiro.diaz@gmail.com> * chore: trigger CI re-run for title validation Co-Authored-By: Agustín Díaz <agustin.ramiro.diaz@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Agustín Díaz <agustin.ramiro.diaz@gmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: Allow simulating write calls in the studio frontend (#1300) * feat: upgrade genlayer-js + add simulation button * chore: align * chore: precommit * fix: strict typing for npm run build * fix: using SERVER_NAME instead of get_hostname for host (#1304) * fix: consensus async session handling (#1307) * fix: consensus async session handling * fix: pre-commit * feat: Return execution time (#1308) * feat: add processing time to receipt * fix: improve the unit test * fix: replace Mock with AsyncMock for async function patches in tests * fix: Enhance log parsing to support multiple formats and severity mapping (#1309) * fix: enhance log parsing to support multiple formats and severity mapping * fix: pre-commit fix * fix: enhance log parsing to support JSON and additional formats * feat: virtual validators and custom genvm_datetime in transaction execution (#1297) * feat: add SimConfig types and use it on gen_call and sim_call * feat: store sim_config on transactions table to be used by the consensus service * feat: override timestamp for different methods * refactor: timestamp to genvm_datetime * style: apply black * fix: comments and apply black * fix: rabbit comments * feat: execute transaction with virtual validators * fix: delete redundant try block * fix: Enhance log parsing to support additional formats (#1312) * fix: enhance log parsing to support additional formats including plain, ANSI, and XML * fix: extend log parsing to include TRACE and NOTICE levels, and improve message trimming * fix: remove unnecessary whitespace trimming from log messages in various formats * fix: update log parsing to handle severity extraction without altering message content * fix: update vector configuration to exclude severity from jsonPayload and specify JSON encoding * fix: remove JSON codec specification from vector configuration to streamline log processing * fix: enhance log parsing to ensure uppercase severity and add numeric severity mapping for GCP * fix: linter * fix: refine log severity handling to ensure fallback to INFO when not set * fix: add debug console sink for GCP log ou…


Fixes #DXP-302
What
_run_genvm_host. This way a genvm crash results in retrying until a timeout is reached.timeandcopyimports ingenvm/base.pyto keep track of how much time is remaining and when retrying to work with the same parameters for host execution as it would be the first time it is executed.ExecutionResultclass to include astateattribute so we can return the modified state and not the unmodified input state.web.luafor rendering and requesting web pages invalidators/web.lua. This is the same as genvm but added a retry when there is a timeout error.TransactionsProcessorclass to check for the length ofleader_resultbefore accessing its elements.Why
leader_resultwithout checking its length.Testing done
Decisions made
Checks
Reviewing tips
User facing release notes
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Refactor
Chores