Skip to content

feat(genvm): update to v0.0.16 - #1109

Merged
cristiam86 merged 19 commits into
mainfrom
feat/update-genvm-to-v0.0.16
Jun 5, 2025
Merged

cristiam86 merged 19 commits into
mainfrom
feat/update-genvm-to-v0.0.16

Conversation

@kp2pml30

@kp2pml30 kp2pml30 commented Apr 19, 2025 •

Copy link
Copy Markdown
Member

Closes DXP-239

  • created separate validators manager (service)
  • switched webdriver to genvm-distributed one
  • removed webrequest completely
  • had to unite all tasks that rely on validators manager into one thread&async loop

Why

  • to update genvm
  • to use genvm greyboxing
  • ran unit tests
  • ran integration tests
  • deployed something in UI

Decisions made

Checks

  • I have tested this code
  • I have reviewed my own PR
  • I have created an issue for this PR
  • I have set a descriptive PR title compliant with conventional commits

Reviewing tips

User facing release notes

Summary by CodeRabbit

  • New Features

    • Introduced asynchronous validator management, snapshots, and concurrency control for improved validator lifecycle handling.
    • Added support for new LLM provider plugins, including "openai-compatible" and "google", and updated configuration schemas and endpoints accordingly.
    • Integrated new modules for managing LLM and web service subprocesses, with enhanced configuration and lifecycle management.
    • Added a Lua module to support backend prompt execution with retry logic.
  • Improvements

    • Refactored contract execution and node creation to use dynamic validator snapshots and configuration paths.
    • Updated Docker and service orchestration to remove obsolete webrequest components and add Ollama service support.
    • Enhanced error handling and concurrency in core backend and protocol RPC services.
    • Expanded contract method schemas to explicitly indicate non-payable methods.
  • Bug Fixes

    • Fixed provider/model selection and plugin naming inconsistencies across backend, frontend, and tests.
    • Improved contract deployment and state management logic for better reliability.
  • Chores

    • Updated dependencies and environment files for consistency with new services and plugins.
    • Removed deprecated files related to the webrequest service and associated tests.
  • Tests

    • Migrated and updated tests for asynchronous validator registry and plugin management.
    • Adjusted test fixtures and expected outputs to align with updated provider and model configurations.
  • Documentation

    • Updated example contracts and configuration samples to reflect new provider and model names.

@kp2pml30 kp2pml30 self-assigned this Apr 19, 2025
@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch from fd5bb5a to 4b99e60 Compare April 19, 2025 17:22
@kp2pml30

Copy link
Copy Markdown
Member Author

You will probably see in stderr

libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE

It is related to wasmtime issue 8897 . I had no time to look into it

@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch 2 times, most recently from 9a73b7c to 4f9e02e Compare April 21, 2025 16:44
@codecov

codecov Bot commented Apr 21, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 14.85%. Comparing base (09384fe) to head (2787131).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1109      +/-   ##
==========================================
- Coverage   14.90%   14.85%   -0.06%     
==========================================
  Files         123      123              
  Lines        7439     7468      +29     
  Branches      254      254              
==========================================
  Hits         1109     1109              
- Misses       6266     6295      +29     
  Partials       64       64              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch 3 times, most recently from e6966e5 to 6433eaa Compare April 21, 2025 17:30
@kp2pml30
kp2pml30 marked this pull request as ready for review April 21, 2025 17:36
@kp2pml30
kp2pml30 requested a review from cristiam86 April 21, 2025 17:36
@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch from ea2c12e to 763cfef Compare April 24, 2025 09:09
@kstroobants kstroobants mentioned this pull request Apr 30, 2025
4 tasks done
Comment thread tests/common/request.py
Comment on lines 257 to +192
def decode_contract_state(contract_state):
decoded_state = {}
for key, value in contract_state.items():
decoded_state[decode_base64(key)] = {
decode_base64(k): decode_base64(v) for k, v in value.items()
}
decoded_state[decode_base64(key)] = decode_base64(value)

@danieljrc888 danieljrc888 Apr 30, 2025 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kp2pml30 Do these changes mean the format of the contract state is different from before, and how it should be decoded? Could this affect the GenLayer JS SDK?

@kp2pml30

kp2pml30 commented May 6, 2025 •

Copy link
Copy Markdown
Member Author

Help requests

Passing data from db to llm module

  1. temperature
  2. metadata about model: use max_tokens or max_completion_tokens, max_tokens, supports_json (for future: supports_image)

rollup related methods implementation

https://linear.app/genlayer-labs/issue/DXP-47/feat-add-support-for-calling-eth-methods-and-sending-eth-transaction

reported bugs

I couldn't reproduce

  1. https://linear.app/genlayer-labs/issue/DXP-239/featgenvm-update-to-v0016#comment-187b5fbe
  2. https://linear.app/genlayer-labs/issue/DXP-239/featgenvm-update-to-v0016#comment-3bd33d62

What to do with models that don't support json mode?

gpt-4

@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch from 763cfef to cdeb412 Compare May 6, 2025 15:34
@kp2pml30

kp2pml30 commented May 6, 2025

Copy link
Copy Markdown
Member Author

@cristiam86

about llm retries: by default there are retries to different providers. but in studio lua script I removed this functionality because studio has 1 validator = 1 provider
As of waiting before a retry --- it's true you can't wait from lua (except for an active wait with a for loop). Though I am not sure that if provider failed with some internal error (such as service unavailable) then a retry would help

@cristiam86

Copy link
Copy Markdown
Contributor

@cristiam86

about llm retries: by default there are retries to different providers. but in studio lua script I removed this functionality because studio has 1 validator = 1 provider As of waiting before a retry --- it's true you can't wait from lua (except for an active wait with a for loop). Though I am not sure that if provider failed with some internal error (such as service unavailable) then a retry would help

Ok, so do you think the retry should be added to the lua script instead of where it is right now?
Regarding retrying, it is also helpful when the LLM returns other types of errors. Currently we find ourselves re-sending transactions to get a valid response from the LLM when they fail.

cc: @kstroobants

@kp2pml30

kp2pml30 commented May 7, 2025 •

Copy link
Copy Markdown
Member Author

I will look deeper into what is returned to lua, but essentially you can catch errors with lua pcall

Default script is following:

	for provider_name, provider_data in pairs(search_in) do
		local model = lib.get_first_from_table(provider_data.models)
		prompt.use_max_completion_tokens = model.value.use_max_completion_tokens

		local success, result = pcall(function ()
			return args.handler:exec_in_backend({
				provider = provider_name,
				model = model.key,
				prompt = prompt,
				format = format,
			})
		end)

		lib.log{message = "executed with", type = type(result), res = result}
		if success then
			return result
		elseif tostring(result):match("runtime error: ([a-zA-Z]*)") == "Overloaded" then
			-- nothing/continue
		else
			error(result)
		end
	end

Overloaded is following:

    match res.status() {
        StatusCode::REQUEST_TIMEOUT
        | StatusCode::SERVICE_UNAVAILABLE
        | StatusCode::TOO_MANY_REQUESTS
        | StatusCode::GATEWAY_TIMEOUT => return Err(OverloadedError.into()),
        StatusCode::OK => return Ok(res),
        x if [529].contains(&x.as_u16()) => return Err(OverloadedError.into()),
        _ => {}
    }

What are the other types of errors that aren't caused by malformed request?

@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch from cdeb412 to e15c259 Compare May 7, 2025 16:16
@kp2pml30

kp2pml30 commented May 7, 2025

Copy link
Copy Markdown
Member Author
  1. Implemented timeout via genvm timeout and retry via, well, retry in llm
  2. fixed some errors that were caused by losing validator key during dataclass <-> dict transforms
  3. removed hotfix from docker for llmerc20

@kp2pml30
kp2pml30 force-pushed the feat/update-genvm-to-v0.0.16 branch from e15c259 to e9122a2 Compare May 7, 2025 16:18
@cristiam86

Copy link
Copy Markdown
Contributor
  1. Implemented timeout via genvm timeout and retry via, well, retry in llm
  2. fixed some errors that were caused by losing validator key during dataclass <-> dict transforms
  3. removed hotfix from docker for llmerc20

Is there anything else pending on this PR @kp2pml30 ?

@kp2pml30

kp2pml30 commented May 7, 2025

Copy link
Copy Markdown
Member Author

@cristiam86

I think it is, but I can't make test_intelligent_oracle_factory_pattern.py work

>           assert market_state["status"] == "Resolved"
E           AssertionError: assert 'Active' == 'Resolved'
E             
E             - Resolved
E             + Active
=== stdout ===
Result of get_contract_addresses: ['0x22Fb1cf98f78C717a4ef91ffF1d1832A3B804E98']
Result of get_dict: {'analysis': '', 'data_source_domains': ['thepostrace.com'], 'description': 'Predict the male winner of a major marathon event.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Bekele Fikre', 'Tafa Mitku', 'Chebii Douglas'], 'prediction_market_id': 'marathon2024', 'resolution_urls': [], 'rules': ['The outcome is based on the official race results announced by the marathon organizers.'], 'status': 'Active', 'title': 'Marathon Winner Prediction'}
Result of get_contract_addresses: ['0x22Fb1cf98f78C717a4ef91ffF1d1832A3B804E98', '0xaA74e80E01673B79928E50eDE1Aa791d908E2370']
Result of get_dict: {'analysis': '', 'data_source_domains': ['bbc.com'], 'description': 'Predict the winner of the 2024 US presidential election.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Kamala Harris', 'Donald Trump'], 'prediction_market_id': 'election2024', 'resolution_urls': [], 'rules': ['The outcome is based on official election results.'], 'status': 'Active', 'title': 'Election Prediction'}
Result of get_dict: {'analysis': '', 'data_source_domains': ['thepostrace.com'], 'description': 'Predict the male winner of a major marathon event.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Bekele Fikre', 'Tafa Mitku', 'Chebii Douglas'], 'prediction_market_id': 'marathon2024', 'resolution_urls': [], 'rules': ['The outcome is based on the official race results announced by the marathon organizers.'], 'status': 'Active', 'title': 'Marathon Winner Prediction'}
Result of get_dict: {'analysis': '', 'data_source_domains': ['bbc.com'], 'description': 'Predict the winner of the 2024 US presidential election.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Kamala Harris', 'Donald Trump'], 'prediction_market_id': 'election2024', 'resolution_urls': [], 'rules': ['The outcome is based on official election results.'], 'status': 'Active', 'title': 'Election Prediction'}
Result of get_dict: {'analysis': '{"relevant_sources": ["https://thepostrace.com/en/blog/marathon-de-madrid-2024-results-and-rankings/?srsltid=AfmBOor1uG6O3_4oJ447hkah_ilOYuy0XXMvl8j70EApe1Z7Bzd94XJl"], "reasoning": "The processed data from the provided source confirms that the event has occurred and provides the official race results for the Madrid Marathon 2024. It specifically mentions that the male winner is Tafa Mitku with a time of 2h08\\u201957\\u201d. This aligns with the user-defined rules that state the outcome should be based on the official race results announced by the marathon organizers. The current date is well after the event date, ensuring the validity of the information. The potential outcome \'Tafa Mitku\' matches one of the options provided in the potential outcomes list.", "outcome": "Tafa Mitku"}', 'data_source_domains': ['thepostrace.com'], 'description': 'Predict the male winner of a major marathon event.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': 'Tafa Mitku', 'potential_outcomes': ['Bekele Fikre', 'Tafa Mitku', 'Chebii Douglas'], 'prediction_market_id': 'marathon2024', 'resolution_urls': [], 'rules': ['The outcome is based on the official race results announced by the marathon organizers.'], 'status': 'Resolved', 'title': 'Marathon Winner Prediction'}
Result of get_dict: {'analysis': '', 'data_source_domains': ['bbc.com'], 'description': 'Predict the winner of the 2024 US presidential election.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Kamala Harris', 'Donald Trump'], 'prediction_market_id': 'election2024', 'resolution_urls': [], 'rules': ['The outcome is based on official election results.'], 'status': 'Active', 'title': 'Election Prediction'}

in logs I see

jsonrpc-1             | ERROR    | [RPC] Error executing endpoint eth_call:  {"endpoint_name": "eth_call", "error": "", "traceback": "Traceback (most recent call last):\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 83, in endpoint\n    result = await run_in_main_server_loop(result)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 33, in run_in_main_server_loop\n    return await my_target\n           ^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 24, in body\n    res = await initial_result\n          ^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoints.py\", line 467, in call\n    contract_snapshot=ContractSnapshot(to_address, session),\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/database_handler/contract_snapshot.py\", line 26, in __init__\n    self.contract_code = self.contract_data[\"code\"]\n                         ~~~~~~~~~~~~~~~~~~^^^^^^^^\nTypeError: string indices must be integers, not 'str'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/app/backend/protocol_rpc/message_handler/base.py\", line 120, in wrapper\n    result = await result\n             ^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 89, in endpoint\n    raise JSONRPCError(\nflask_jsonrpc.exceptions.JSONRPCError\n", "jsonrpc_error": {"name": "JSONRPCError", "code": -32000, "message": "string indices must be integers, not 'str'", "data": {"error": {"kind": "exception", "args": ["string indices must be integers, not 'str'"], "traceback": ["Traceback (most recent call last):\n", "  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 83, in endpoint\n    result = await run_in_main_server_loop(result)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "  File \"/app/backend/protocol_rpc/aio.py\", line 33, in run_in_main_server_loop\n    return await my_target\n           ^^^^^^^^^^^^^^^\n", "  File \"/app/backend/protocol_rpc/aio.py\", line 24, in body\n    res = await initial_result\n          ^^^^^^^^^^^^^^^^^^^^\n", "  File \"/app/backend/protocol_rpc/endpoints.py\", line 467, in call\n    contract_snapshot=ContractSnapshot(to_address, session),\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "  File \"/app/backend/database_handler/contract_snapshot.py\", line 26, in __init__\n    self.contract_code = self.contract_data[\"code\"]\n                         ~~~~~~~~~~~~~~~~~~^^^^^^^^\n", "TypeError: string indices must be integers, not 'str'\n"]}}, "stack": "Traceback (most recent call last):\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 83, in endpoint\n    result = await run_in_main_server_loop(result)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 33, in run_in_main_server_loop\n    return await my_target\n           ^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 24, in body\n    res = await initial_result\n          ^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoints.py\", line 467, in call\n    contract_snapshot=ContractSnapshot(to_address, session),\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/database_handler/contract_snapshot.py\", line 26, in __init__\n    self.contract_code = self.contract_data[\"code\"]\n                         ~~~~~~~~~~~~~~~~~~^^^^^^^^\nTypeError: string indices must be integers, not 'str'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/app/backend/protocol_rpc/message_handler/base.py\", line 120, in wrapper\n    result = await result\n             ^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 89, in endpoint\n    raise JSONRPCError(\nflask_jsonrpc.exceptions.JSONRPCError\n", "executable": "/usr/bin/python3"}}

all other tests/integration/contract_examples passed locally

Comment thread backend/validators/greyboxing.lua Resolved
@kstroobants

Copy link
Copy Markdown
Contributor

@cristiam86

I think it is, but I can't make test_intelligent_oracle_factory_pattern.py work

>           assert market_state["status"] == "Resolved"
E           AssertionError: assert 'Active' == 'Resolved'
E             
E             - Resolved
E             + Active
=== stdout ===
Result of get_contract_addresses: ['0x22Fb1cf98f78C717a4ef91ffF1d1832A3B804E98']
Result of get_dict: {'analysis': '', 'data_source_domains': ['thepostrace.com'], 'description': 'Predict the male winner of a major marathon event.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Bekele Fikre', 'Tafa Mitku', 'Chebii Douglas'], 'prediction_market_id': 'marathon2024', 'resolution_urls': [], 'rules': ['The outcome is based on the official race results announced by the marathon organizers.'], 'status': 'Active', 'title': 'Marathon Winner Prediction'}
Result of get_contract_addresses: ['0x22Fb1cf98f78C717a4ef91ffF1d1832A3B804E98', '0xaA74e80E01673B79928E50eDE1Aa791d908E2370']
Result of get_dict: {'analysis': '', 'data_source_domains': ['bbc.com'], 'description': 'Predict the winner of the 2024 US presidential election.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Kamala Harris', 'Donald Trump'], 'prediction_market_id': 'election2024', 'resolution_urls': [], 'rules': ['The outcome is based on official election results.'], 'status': 'Active', 'title': 'Election Prediction'}
Result of get_dict: {'analysis': '', 'data_source_domains': ['thepostrace.com'], 'description': 'Predict the male winner of a major marathon event.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Bekele Fikre', 'Tafa Mitku', 'Chebii Douglas'], 'prediction_market_id': 'marathon2024', 'resolution_urls': [], 'rules': ['The outcome is based on the official race results announced by the marathon organizers.'], 'status': 'Active', 'title': 'Marathon Winner Prediction'}
Result of get_dict: {'analysis': '', 'data_source_domains': ['bbc.com'], 'description': 'Predict the winner of the 2024 US presidential election.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Kamala Harris', 'Donald Trump'], 'prediction_market_id': 'election2024', 'resolution_urls': [], 'rules': ['The outcome is based on official election results.'], 'status': 'Active', 'title': 'Election Prediction'}
Result of get_dict: {'analysis': '{"relevant_sources": ["https://thepostrace.com/en/blog/marathon-de-madrid-2024-results-and-rankings/?srsltid=AfmBOor1uG6O3_4oJ447hkah_ilOYuy0XXMvl8j70EApe1Z7Bzd94XJl"], "reasoning": "The processed data from the provided source confirms that the event has occurred and provides the official race results for the Madrid Marathon 2024. It specifically mentions that the male winner is Tafa Mitku with a time of 2h08\\u201957\\u201d. This aligns with the user-defined rules that state the outcome should be based on the official race results announced by the marathon organizers. The current date is well after the event date, ensuring the validity of the information. The potential outcome \'Tafa Mitku\' matches one of the options provided in the potential outcomes list.", "outcome": "Tafa Mitku"}', 'data_source_domains': ['thepostrace.com'], 'description': 'Predict the male winner of a major marathon event.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': 'Tafa Mitku', 'potential_outcomes': ['Bekele Fikre', 'Tafa Mitku', 'Chebii Douglas'], 'prediction_market_id': 'marathon2024', 'resolution_urls': [], 'rules': ['The outcome is based on the official race results announced by the marathon organizers.'], 'status': 'Resolved', 'title': 'Marathon Winner Prediction'}
Result of get_dict: {'analysis': '', 'data_source_domains': ['bbc.com'], 'description': 'Predict the winner of the 2024 US presidential election.', 'earliest_resolution_date': '2024-01-01T00:00:00+00:00', 'outcome': '', 'potential_outcomes': ['Kamala Harris', 'Donald Trump'], 'prediction_market_id': 'election2024', 'resolution_urls': [], 'rules': ['The outcome is based on official election results.'], 'status': 'Active', 'title': 'Election Prediction'}

in logs I see

jsonrpc-1             | ERROR    | [RPC] Error executing endpoint eth_call:  {"endpoint_name": "eth_call", "error": "", "traceback": "Traceback (most recent call last):\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 83, in endpoint\n    result = await run_in_main_server_loop(result)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 33, in run_in_main_server_loop\n    return await my_target\n           ^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 24, in body\n    res = await initial_result\n          ^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoints.py\", line 467, in call\n    contract_snapshot=ContractSnapshot(to_address, session),\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/database_handler/contract_snapshot.py\", line 26, in __init__\n    self.contract_code = self.contract_data[\"code\"]\n                         ~~~~~~~~~~~~~~~~~~^^^^^^^^\nTypeError: string indices must be integers, not 'str'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/app/backend/protocol_rpc/message_handler/base.py\", line 120, in wrapper\n    result = await result\n             ^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 89, in endpoint\n    raise JSONRPCError(\nflask_jsonrpc.exceptions.JSONRPCError\n", "jsonrpc_error": {"name": "JSONRPCError", "code": -32000, "message": "string indices must be integers, not 'str'", "data": {"error": {"kind": "exception", "args": ["string indices must be integers, not 'str'"], "traceback": ["Traceback (most recent call last):\n", "  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 83, in endpoint\n    result = await run_in_main_server_loop(result)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "  File \"/app/backend/protocol_rpc/aio.py\", line 33, in run_in_main_server_loop\n    return await my_target\n           ^^^^^^^^^^^^^^^\n", "  File \"/app/backend/protocol_rpc/aio.py\", line 24, in body\n    res = await initial_result\n          ^^^^^^^^^^^^^^^^^^^^\n", "  File \"/app/backend/protocol_rpc/endpoints.py\", line 467, in call\n    contract_snapshot=ContractSnapshot(to_address, session),\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "  File \"/app/backend/database_handler/contract_snapshot.py\", line 26, in __init__\n    self.contract_code = self.contract_data[\"code\"]\n                         ~~~~~~~~~~~~~~~~~~^^^^^^^^\n", "TypeError: string indices must be integers, not 'str'\n"]}}, "stack": "Traceback (most recent call last):\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 83, in endpoint\n    result = await run_in_main_server_loop(result)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 33, in run_in_main_server_loop\n    return await my_target\n           ^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/aio.py\", line 24, in body\n    res = await initial_result\n          ^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoints.py\", line 467, in call\n    contract_snapshot=ContractSnapshot(to_address, session),\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/backend/database_handler/contract_snapshot.py\", line 26, in __init__\n    self.contract_code = self.contract_data[\"code\"]\n                         ~~~~~~~~~~~~~~~~~~^^^^^^^^\nTypeError: string indices must be integers, not 'str'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/app/backend/protocol_rpc/message_handler/base.py\", line 120, in wrapper\n    result = await result\n             ^^^^^^^^^^^^\n  File \"/app/backend/protocol_rpc/endpoint_generator.py\", line 89, in endpoint\n    raise JSONRPCError(\nflask_jsonrpc.exceptions.JSONRPCError\n", "executable": "/usr/bin/python3"}}

all other tests/integration/contract_examples passed locally

The error in the logs is not related to the failed assert. The testcase uses wait_for_contract_deployment which will output the error when the contract is not yet deployed.

@kp2pml30

This comment was marked as resolved.

@kstroobants

This comment was marked as resolved.

…e cancelled for commits, not for comments like rabbitai
coderabbitai[bot]

This comment was marked as resolved.

@kstroobants kstroobants mentioned this pull request Jun 3, 2025
4 tasks done
@kp2pml30

kp2pml30 commented Jun 3, 2025 •

Copy link
Copy Markdown
Member Author
  1. "now code resides in the storage. I haven't written db migration or removed code field". You mean that contract_snapshot.contract_code is also in the contract_snapshot.states? I can take care of that.

yes, code field is not redundant, it just resides in a regular storage slot. It is part of this proposal, if you are interested in the details

  1. How can I use a custom plugin for a custom provider? In the past we could create a custom plugin class in our python code but I guess now we need to add it to genvm? Or should we use LLMModule().change_config?

I am working right now in the genvm on lua part. I already implemented requests there, so users will be able to just do requests to rest API. However, I haven't finished the PR yet

  1. Performing read contract (gen_call) when deploy transaction is in accepted state fails. It succeeds after it goes to finalized. gen_call works during a write method. I will have a look if it is related to genvm or to the new async implementation.

Interesting... GenVM reads with state of the VM, so it should be "default" for entry VM (which in turn should be initialized to "latest_non_final" (accepted)). However, looking at the code this storage type is just discarded here:

assert type != StorageType.LATEST_FINAL

I think when I was integrating the genvm to studio initially, there was no acceptance...

I remember seeing magic strings like "accepted" for the first parameter of storage dictionary in StorageProxy implementation. It can be related to that

@kp2pml30

kp2pml30 commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

first one:
message is a bit misleading (it expects ok, not yes as printed...) but the check is correct.

❯ curl https://llm-gateway.heurist.xyz/v1/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer $HEURISTKEY" \
        -d '{
      "model": "mistralai/mixtral-8x22b-instruct",
      "messages": [
        {
          "role": "user", 
          "content": "Respond with two letters \\"ok\\" (without quotes) and only this word, lowercase"
        }
      ]
    }'
{"id":"","object":"chat.completion","created":1748959112,"model":"mistralai/mixtral-8x22b-instruct","choices":[{"index":0,"message":{"role":"assistant","content":"ok ok"},"finish_reason":"stop"}],"usage":{"prompt_tokens":25,"completion_tokens":3,"total_tokens":28}}

"ok ok" is not two letters "ok", so check fails (== model is unintelligent)

    let res = res.trim().to_lowercase();

    if res != "ok" {
        ...

@kstroobants

Copy link
Copy Markdown
Contributor

first one: message is a bit misleading (it expects ok, not yes as printed...) but the check is correct.

❯ curl https://llm-gateway.heurist.xyz/v1/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer $HEURISTKEY" \
        -d '{
      "model": "mistralai/mixtral-8x22b-instruct",
      "messages": [
        {
          "role": "user", 
          "content": "Respond with two letters \\"ok\\" (without quotes) and only this word, lowercase"
        }
      ]
    }'
{"id":"","object":"chat.completion","created":1748959112,"model":"mistralai/mixtral-8x22b-instruct","choices":[{"index":0,"message":{"role":"assistant","content":"ok ok"},"finish_reason":"stop"}],"usage":{"prompt_tokens":25,"completion_tokens":3,"total_tokens":28}}

"ok ok" is not two letters "ok", so check fails (== model is unintelligent)

    let res = res.trim().to_lowercase();

    if res != "ok" {
        ...

When I change the prompt to this it returns two letters ok. Could we use that in genvm?
"content": "Respond with exactly two letters \"ok\" (without quotes) and only this word, lowercase
"content": "Respond with two letters \"ok\" (without quotes) and only this word, lowercase, no repetition

@kstroobants
kstroobants requested review from cristiam86 and removed request for cristiam86 June 5, 2025 05:24

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
frontend/src/components/Simulator/ContractMethodItem.vue (1)

71-71: Remove console.log from production code.

Console.log statements should not be present in production code as they can expose internal application state and clutter browser console output.

-    console.log('handleCallReadMethod', acceptedMsg, finalizedMsg);

Alternatively, if debugging output is needed, consider using a conditional debug logger:

-    console.log('handleCallReadMethod', acceptedMsg, finalizedMsg);
+    if (process.env.NODE_ENV === 'development') {
+      console.log('handleCallReadMethod', acceptedMsg, finalizedMsg);
+    }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7fcd446 and 36310d1.

📒 Files selected for processing (1)
  • frontend/src/components/Simulator/ContractMethodItem.vue (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Load Tests / load-test
  • GitHub Check: hardhat-test
  • GitHub Check: test
  • GitHub Check: backend-unit-tests
🔇 Additional comments (1)
frontend/src/components/Simulator/ContractMethodItem.vue (1)

58-69: Good improvement to use Promise.allSettled for better resilience.

The change from Promise.all to Promise.allSettled is a solid improvement that allows the UI to display partial results even if one of the concurrent calls fails. This enhances user experience by showing available data instead of complete failure.

Comment on lines 73 to +80
responseMessageAccepted.value =
acceptedMsg !== undefined
? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg))
: '<genlayer.client is undefined>';
acceptedMsg.status === 'fulfilled' && acceptedMsg.value !== undefined
? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg.value))
: `failed: ${acceptedMsg}`;
responseMessageFinalized.value =
finalizedMsg !== undefined
? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg))
: '<genlayer.client is undefined>';
finalizedMsg.status === 'fulfilled' && finalizedMsg.value !== undefined
? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg.value))
: `failed: ${finalizedMsg}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix error message display for rejected promises.

The current error handling displays the entire PromiseSettledResult object when promises are rejected, which results in unhelpful [object Object] messages for users.

    responseMessageAccepted.value =
-      acceptedMsg.status === 'fulfilled' && acceptedMsg.value !== undefined
-        ? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg.value))
-        : `failed: ${acceptedMsg}`;
+      acceptedMsg.status === 'fulfilled' && acceptedMsg.value !== undefined
+        ? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg.value))
+        : `Failed: ${acceptedMsg.status === 'rejected' ? acceptedMsg.reason?.message || 'Unknown error' : 'No data'}`;
    responseMessageFinalized.value =
-      finalizedMsg.status === 'fulfilled' && finalizedMsg.value !== undefined
-        ? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg.value))
-        : `failed: ${finalizedMsg}`;
+      finalizedMsg.status === 'fulfilled' && finalizedMsg.value !== undefined
+        ? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg.value))
+        : `Failed: ${finalizedMsg.status === 'rejected' ? finalizedMsg.reason?.message || 'Unknown error' : 'No data'}`;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
responseMessageAccepted.value =
acceptedMsg !== undefined
? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg))
: '<genlayer.client is undefined>';
acceptedMsg.status === 'fulfilled' && acceptedMsg.value !== undefined
? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg.value))
: `failed: ${acceptedMsg}`;
responseMessageFinalized.value =
finalizedMsg !== undefined
? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg))
: '<genlayer.client is undefined>';
finalizedMsg.status === 'fulfilled' && finalizedMsg.value !== undefined
? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg.value))
: `failed: ${finalizedMsg}`;
responseMessageAccepted.value =
acceptedMsg.status === 'fulfilled' && acceptedMsg.value !== undefined
? formatResponseIfNeeded(abi.calldata.toString(acceptedMsg.value))
: `Failed: ${acceptedMsg.status === 'rejected' ? acceptedMsg.reason?.message || 'Unknown error' : 'No data'}`;
responseMessageFinalized.value =
finalizedMsg.status === 'fulfilled' && finalizedMsg.value !== undefined
? formatResponseIfNeeded(abi.calldata.toString(finalizedMsg.value))
: `Failed: ${finalizedMsg.status === 'rejected' ? finalizedMsg.reason?.message || 'Unknown error' : 'No data'}`;
🤖 Prompt for AI Agents
In frontend/src/components/Simulator/ContractMethodItem.vue around lines 73 to
80, the error message for rejected promises currently displays the entire
PromiseSettledResult object, causing unhelpful output like [object Object]. To
fix this, update the error message to extract and display a meaningful error
description from the rejected promise, such as using acceptedMsg.reason or
finalizedMsg.reason, instead of the whole object.

@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2025

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
30.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@cristiam86
cristiam86 merged commit b4591d1 into main Jun 5, 2025
@github-actions

github-actions Bot commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.60.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@coderabbitai coderabbitai Bot mentioned this pull request Jun 24, 2025
4 tasks done
cristiam86 added a commit that referenced this pull request Feb 24, 2026
* 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…
@coderabbitai coderabbitai Bot mentioned this pull request Mar 9, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants