Repository navigation
feat: virtual validators and custom genvm_datetime in transaction execution - #1297
Conversation
WalkthroughAdds a nullable JSONB sim_config column and ORM field, introduces SimConfig/SimValidatorConfig types, threads sim_config through RPC, transaction insertion and snapshot restore, enables optional GenVM timestamp overrides, and implements per-transaction temporal validator snapshots and virtual validators. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant RPC as Protocol RPC
participant TP as TransactionsProcessor
participant Snap as ValidatorsManager / Snapshot
participant Consensus
participant Node
participant GenVM
rect rgba(230,245,255,0.5)
note over Client,RPC: Client request may include sim_config
Client->>RPC: send_raw_transaction(..., sim_config?)
RPC->>RPC: SimConfig.from_dict(sim_config)
alt sim_config.validators present
RPC->>RPC: build per-validator LLMProviders
RPC->>Snap: temporal_snapshot(validators)
else
RPC->>Snap: snapshot()
end
Snap-->>RPC: validators_snapshot
RPC->>TP: insert_transaction(..., sim_config)
TP-->>RPC: tx_hash
RPC-->>Client: tx_hash
end
Note over Node,GenVM: When executing transaction later
Node->>Consensus: exec_transaction(transaction, validators_snapshot)
alt sim_config.genvm_datetime present
Node->>GenVM: run(..., transaction_datetime=genvm_datetime)
else
Node->>GenVM: run(..., transaction_datetime=transaction.created_at)
end
GenVM-->>Node: receipt
sequenceDiagram
autonumber
participant Restore as Snapshot Restore
participant DB as DB Layer
Restore->>DB: create Transactions(..., sim_config=tx_info.get("sim_config"))
DB-->>Restore: persisted row (with sim_config JSONB)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks (1 passed, 2 warnings)❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
eb0a454 to
4c51202
Compare
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (5)
backend/database_handler/transactions_processor.py (4)
100-101: Bug: gaslimit is set to nonce in parsed outputgaslimit should reflect the DB column, not the nonce.
Apply:
- "gaslimit": transaction_data.nonce, + "gaslimit": transaction_data.gaslimit,
149-167: Always-true condition in Base64 decode pathThe check
if byte_content or len(byte_content) >= 0is always true; it masks decoding failures and returns empty strings.Apply:
- byte_content = re.sub(r"^[\x00-\x1f]+", "", decoded_str) - if byte_content or len(byte_content) >= 0: - return byte_content - return decoded_str + byte_content = re.sub(r"^[\x00-\x1f]+", "", decoded_str) + return byte_content if byte_content else decoded_str
705-717: Missing commit after updating timestamp_awaiting_finalizationThe setter updates a persisted field but never commits; other setters do commit.
Apply:
else: transaction.timestamp_awaiting_finalization = int(time.time()) + self.session.commit()
1029-1046: reset_transaction_rotation_count does not persist the changeThe value is updated without a commit, unlike the increment path.
Apply:
transaction.rotation_count = 0 + self.session.commit()backend/database_handler/snapshot_manager.py (1)
46-82: sim_config is not captured in snapshots (breaks restore)create_snapshot omits sim_config, but restore expects it, leading to KeyError and data loss.
Add sim_config and remove duplicate ‘appealed’:
transaction_data = { tx.hash: { "status": tx.status.value, "from_address": tx.from_address, "to_address": tx.to_address, "input_data": tx.input_data, "data": tx.data, "consensus_data": tx.consensus_data, "nonce": tx.nonce, "value": tx.value, "type": tx.type, "gaslimit": tx.gaslimit, "created_at": tx.created_at.isoformat() if tx.created_at else None, "leader_only": tx.leader_only, "r": tx.r, "s": tx.s, "v": tx.v, "appeal_failed": tx.appeal_failed, "consensus_history": tx.consensus_history, "timestamp_appeal": tx.timestamp_appeal, "appeal_processing_time": tx.appeal_processing_time, "contract_snapshot": tx.contract_snapshot, "config_rotation_rounds": tx.config_rotation_rounds, - "appealed": tx.appealed, "appeal_undetermined": tx.appeal_undetermined, "triggered_by_hash": tx.triggered_by_hash, - "appealed": tx.appealed, + "appealed": tx.appealed, "timestamp_awaiting_finalization": tx.timestamp_awaiting_finalization, "num_of_initial_validators": tx.num_of_initial_validators, "last_vote_timestamp": tx.last_vote_timestamp, "rotation_count": tx.rotation_count, "appeal_leader_timeout": tx.appeal_leader_timeout, "leader_timeout_validators": tx.leader_timeout_validators, "appeal_validators_timeout": tx.appeal_validators_timeout, + "sim_config": tx.sim_config, } for tx in transactions }
🧹 Nitpick comments (9)
backend/database_handler/models.py (1)
111-111: Consider indexing if you’ll query by sim_config keys.If RPCs/nodes filter on sim_config.genvm_datetime or validators, add a GIN index in a follow-up migration.
Example (migration):
op.execute("CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_transactions_sim_config_gin ON transactions USING GIN (sim_config)")backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.py (1)
21-24: Optional: align ORM and migration defaults.If you set default=None on the ORM column, no change needed here; nullable=True is fine. If you add a GIN index later, place it in a separate migration (CONCURRENTLY).
backend/domain/types.py (3)
46-50: Make validators optional with a safe default.This reduces boilerplate when only genvm_datetime is supplied.
-@dataclass -class SimConfig: - validators: list[SimValidatorConfig] +@dataclass +class SimConfig: + validators: list[SimValidatorConfig] = field(default_factory=list) genvm_datetime: str | None = None
59-68: Harden from_dict against None and mixed inputs.Avoid KeyError when d is None and ensure validators are built consistently.
- def from_dict(cls, d: dict) -> "SimConfig": - validators = [ - SimValidatorConfig.from_dict(v) if isinstance(v, dict) else v - for v in d.get("validators", []) - ] - return cls( - validators=validators, - genvm_datetime=d.get("genvm_datetime"), - ) + def from_dict(cls, d: dict | None) -> "SimConfig": + d = d or {} + validators = [ + SimValidatorConfig.from_dict(v) if isinstance(v, dict) else v + for v in d.get("validators", []) + ] + return cls( + validators=validators, + genvm_datetime=d.get("genvm_datetime"), + )
24-33: Validate required keys in SimValidatorConfig.from_dict.Defensive checks make RPC payload errors easier to diagnose.
@classmethod def from_dict(cls, d: dict) -> "SimValidatorConfig": - return cls( + missing = [k for k in ("stake","provider","model","config","plugin","plugin_config") if k not in d] + if missing: + raise ValueError(f"SimValidatorConfig missing keys: {', '.join(missing)}") + return cls( stake=d["stake"], provider=d["provider"], model=d["model"], config=d["config"], plugin=d["plugin"], plugin_config=d["plugin_config"], )backend/protocol_rpc/endpoints.py (4)
49-49: Duplicate import of JSONRPCErrorRemove the second import; it’s already imported on Line 8.
-from flask_jsonrpc.exceptions import JSONRPCError
441-443: Simplify sim_config presence checkUse get() per lint hint.
- sim_config_obj = None - if "sim_config" in params and params["sim_config"]: - sim_config_obj = SimConfig.from_dict(params["sim_config"]) + sim_config_obj = SimConfig.from_dict(params["sim_config"]) if params.get("sim_config") else None
627-629: Same simplification hereMirror the get() usage.
- sim_config = None - if "sim_config" in params and params["sim_config"]: - sim_config = SimConfig.from_dict(params["sim_config"]) + sim_config = SimConfig.from_dict(params["sim_config"]) if params.get("sim_config") else None
588-596: Don’t shadow built-in name ‘type’Use call_type to avoid confusion.
- type = params["type"] + call_type = params["type"]Also update subsequent references to call_type in this function.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (7)
backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.py(1 hunks)backend/database_handler/models.py(1 hunks)backend/database_handler/snapshot_manager.py(1 hunks)backend/database_handler/transactions_processor.py(3 hunks)backend/domain/types.py(5 hunks)backend/node/base.py(3 hunks)backend/protocol_rpc/endpoints.py(5 hunks)
🧰 Additional context used
🧬 Code graph analysis (3)
backend/node/base.py (1)
backend/node/genvm/base.py (2)
run_contract(92-106)run_contract(147-195)
backend/domain/types.py (3)
backend/database_handler/types.py (3)
ConsensusData(7-48)from_dict(30-48)to_dict(14-27)backend/database_handler/contract_snapshot.py (3)
ContractSnapshot(7-68)from_dict(46-54)to_dict(36-43)backend/database_handler/validators_registry.py (1)
to_dict(13-25)
backend/protocol_rpc/endpoints.py (5)
backend/domain/types.py (8)
LLMProvider(80-97)Validator(101-141)SimConfig(47-76)from_dict(25-33)from_dict(60-68)from_dict(109-124)from_dict(228-270)genvm_datetime_as_datetime(52-57)backend/node/create_nodes/providers.py (2)
get_default_provider_for(88-99)validate_provider(38-48)backend/database_handler/accounts_manager.py (1)
create_new_account(24-31)backend/validators/__init__.py (1)
temporal_snapshot(191-208)backend/node/base.py (3)
get_contract_data(237-255)run_contract(221-235)deploy_contract(182-219)
🪛 GitHub Actions: pre-commit
backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.py
[error] 1-1: Black formatting changed this file; run 'black' to reformat and commit changes. Command: pre-commit run --show-diff-on-failure --color=always --all-files.
backend/protocol_rpc/endpoints.py
[error] 1-1: Trailing whitespace detected; fixed by pre-commit hook (trailing-whitespace). Command: pre-commit run --show-diff-on-failure --color=always --all-files.
🪛 Ruff (0.12.2)
backend/protocol_rpc/endpoints.py
441-441: Unnecessary key check before dictionary access
Replace with dict.get
(RUF019)
627-627: Unnecessary key check before dictionary access
Replace with dict.get
(RUF019)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: backend-unit-tests
🔇 Additional comments (7)
backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.py (1)
1-31: Run Black to fix formatting
CI indicates this migration file isn’t formatted according to Black. Runblack backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.pyand commit the resulting changes.
backend/domain/types.py (1)
185-185: Add round-trip tests for sim_config in Transaction serialization.Ensure to_dict/from_dict preserve sim_config and genvm_datetime parsing.
I can add a small unit test module covering:
- Transaction(..., sim_config=SimConfig([...], "2024-07-01T00:00:00Z")) -> to_dict -> from_dict -> equality on key fields.
Do you want me to open a follow-up PR with tests?Also applies to: 224-224, 265-269
backend/database_handler/transactions_processor.py (3)
127-128: Include sim_config in API output — good additionPersisting and exposing sim_config from DB to API responses looks correct.
284-285: Storing sim_config with the transaction — OKField is forwarded as-is into the model. Consider validating shape upstream (endpoints).
231-233: Allinsert_transactioncall sites rely on the defaultsim_config— change is backward-compatible
No call passes the newsim_configargument; no updates required.backend/node/base.py (1)
242-254: get_contract_data now accepts transaction_datetime — LGTMDefaulting to current UTC preserves prior behavior.
backend/protocol_rpc/endpoints.py (1)
768-883: Verified Alembic migration and model mapping forsim_config
Migration 035ef00c2779 adds a nullable JSONBsim_configcolumn totransactionsand models.py definessim_config: Mapped[Optional[dict]] = mapped_column(JSONB). Ensure this migration is applied in all environments.
There was a problem hiding this comment.
Actionable comments posted: 4
♻️ Duplicate comments (2)
backend/database_handler/models.py (1)
111-113: Persist in-place mutations: wrap JSONB with MutableDict and keep default NoneWithout
MutableDict, updates liketx.sim_config["foo"]="bar"won’t be tracked. Make it mutable and optional.- sim_config: Mapped[Optional[dict]] = mapped_column( - JSONB, nullable=True, default=None - ) + sim_config: Mapped[Optional[dict]] = mapped_column( + MutableDict.as_mutable(JSONB), nullable=True, default=None + )Add import near the other SQLAlchemy imports:
+from sqlalchemy.ext.mutable import MutableDictbackend/node/base.py (1)
174-182: Accept datetime objects in parser (future-proof API)Allow
_date_from_strto takedatetimeas well; normalizing to UTC keeps behavior consistent.- def _date_from_str(self, date: str | None) -> datetime.datetime | None: + def _date_from_str(self, date: str | datetime.datetime | None) -> datetime.datetime | None: if date is None: return None - # Accept ISO‐8601 strings with a trailing ‘Z’ by normalizing to +00:00 - date_str = date.replace("Z", "+00:00") - res = datetime.datetime.fromisoformat(date_str) + if isinstance(date, datetime.datetime): + res = date + else: + # Accept ISO-8601 strings with a trailing 'Z' by normalizing to +00:00 + date_str = date.replace("Z", "+00:00") + res = datetime.datetime.fromisoformat(date_str) if res.tzinfo is None: res = res.replace(tzinfo=datetime.UTC) return res
🧹 Nitpick comments (6)
tests/db-sqlalchemy/contract_snapshot_refresh_test.py (1)
25-50: Optional: align with Ruff S101 policy for testsIf Ruff enforces S101, either configure an ignore for tests or switch to pytest-style assertions/helpers accordingly. No action needed if S101 is disabled for tests.
Also applies to: 69-90
backend/protocol_rpc/endpoints.py (4)
49-49: Remove duplicate import of JSONRPCError
JSONRPCErroris already imported on Line 8.- from flask_jsonrpc.exceptions import JSONRPCError
441-446: Use dict.get for simplicitySimplify access and avoid redundant key check.
- sim_config_obj = None - if "sim_config" in params and params["sim_config"]: - sim_config_obj = SimConfig.from_dict(params["sim_config"]) + sc_raw = params.get("sim_config") + sim_config_obj = SimConfig.from_dict(sc_raw) if sc_raw else None
447-476: Avoid persisting ephemeral sim validators’ accounts
accounts_manager.create_new_account()persists to DB. For simulated calls this can pollute state. Prefer ephemeral addresses (no DB write), e.g., a helper that returns(address, key)without persistence.I can draft a minimal
create_ephemeral_account()in AccountsManager (or a local utility) and wire it here if you want.
528-535: Include JSON-RPC code when no validators availableReturn a proper error code for clients to handle.
- if len(snapshot.nodes) == 0: - raise JSONRPCError("No validators exist to execute the call") + if len(snapshot.nodes) == 0: + raise JSONRPCError(code=-32000, message="No validators exist to execute the call", data={"reason": "no_validators"})backend/node/base.py (1)
177-179: Nit: ASCII punctuation in commentReplace Unicode hyphen/quotes to satisfy Ruff RUF003.
- # Accept ISO‐8601 strings with a trailing ‘Z’ by normalizing to +00:00 + # Accept ISO-8601 strings with a trailing 'Z' by normalizing to +00:00
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (9)
backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.py(1 hunks)backend/database_handler/models.py(1 hunks)backend/database_handler/session_manager.py(2 hunks)backend/database_handler/snapshot_manager.py(1 hunks)backend/domain/types.py(5 hunks)backend/node/base.py(4 hunks)backend/protocol_rpc/endpoints.py(5 hunks)backend/rollup/web3_pool.py(4 hunks)tests/db-sqlalchemy/contract_snapshot_refresh_test.py(2 hunks)
✅ Files skipped from review due to trivial changes (2)
- backend/database_handler/session_manager.py
- backend/rollup/web3_pool.py
🚧 Files skipped from review as they are similar to previous changes (2)
- backend/database_handler/migration/versions/035ef00c2779_add_sim_config_to_transactions.py
- backend/database_handler/snapshot_manager.py
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-03T15:21:09.877Z
Learnt from: epsjunior
PR: genlayerlabs/genlayer-studio#1302
File: backend/protocol_rpc/endpoints.py:431-438
Timestamp: 2025-09-03T15:21:09.877Z
Learning: ContractSnapshot class in backend/database_handler/contract_snapshot.py handles deployment validation by raising Exception("Contract {address} not found") for missing contracts and Exception("Contract {address} not deployed") for contracts with empty data, centralizing validation logic that was previously in RPC endpoints.
Applied to files:
tests/db-sqlalchemy/contract_snapshot_refresh_test.py
🧬 Code graph analysis (4)
backend/domain/types.py (3)
backend/database_handler/types.py (3)
ConsensusData(7-48)from_dict(30-48)to_dict(14-27)backend/database_handler/contract_snapshot.py (3)
ContractSnapshot(7-68)from_dict(46-54)to_dict(36-43)backend/database_handler/validators_registry.py (1)
to_dict(13-25)
backend/node/base.py (1)
backend/node/genvm/base.py (2)
run_contract(92-106)run_contract(147-195)
backend/protocol_rpc/endpoints.py (4)
backend/domain/types.py (8)
LLMProvider(81-98)Validator(102-142)SimConfig(47-77)from_dict(25-33)from_dict(61-69)from_dict(110-125)from_dict(229-271)genvm_datetime_as_datetime(52-58)backend/database_handler/accounts_manager.py (1)
create_new_account(24-31)backend/validators/__init__.py (1)
temporal_snapshot(191-208)backend/node/base.py (3)
get_contract_data(239-257)run_contract(223-237)deploy_contract(184-221)
tests/db-sqlalchemy/contract_snapshot_refresh_test.py (3)
backend/database_handler/models.py (1)
CurrentState(50-65)tests/db-sqlalchemy/conftest.py (1)
session(35-39)backend/database_handler/contract_snapshot.py (1)
ContractSnapshot(7-68)
🪛 Ruff (0.12.2)
backend/node/base.py
177-177: Comment contains ambiguous ‐ (HYPHEN). Did you mean - (HYPHEN-MINUS)?
(RUF003)
177-177: Comment contains ambiguous ‘ (LEFT SINGLE QUOTATION MARK). Did you mean ``` (GRAVE ACCENT)?
(RUF003)
177-177: Comment contains ambiguous ’ (RIGHT SINGLE QUOTATION MARK). Did you mean ``` (GRAVE ACCENT)?
(RUF003)
backend/protocol_rpc/endpoints.py
441-441: Unnecessary key check before dictionary access
Replace with dict.get
(RUF019)
627-627: Unnecessary key check before dictionary access
Replace with dict.get
(RUF019)
tests/db-sqlalchemy/contract_snapshot_refresh_test.py
26-26: Use of assert detected
(S101)
27-27: Use of assert detected
(S101)
45-45: Use of assert detected
(S101)
46-46: Use of assert detected
(S101)
71-71: Use of assert detected
(S101)
85-85: Use of assert detected
(S101)
88-88: Use of assert detected
(S101)
🔇 Additional comments (6)
tests/db-sqlalchemy/contract_snapshot_refresh_test.py (1)
16-21: LGTM: formatting-only changesNo behavioral impact; reads cleaner.
backend/domain/types.py (2)
51-59: Good: UTC-aware normalization for genvm_datetimeParsing handles 'Z' suffix and ensures an aware UTC datetime. This prevents timezone drift.
60-69: Minor: guard against invalid ISO strings (or validate upstream)
fromisoformatwill raiseValueError. Consider either documenting that contract, or have callers (endpoints) catch and map to JSON-RPC -32602. See suggested endpoint changes.backend/protocol_rpc/endpoints.py (1)
520-525: LGTM: temporal snapshot chosen when virtual validators presentCorrectly switches to
temporal_snapshotwith provided validators.backend/node/base.py (2)
126-131: Timestamp override path looks correctOverride is applied consistently for deploy/run; downstream parsing handles TZ.
Also applies to: 140-149
251-256: LGTM: defaulting read datetime to now in UTCGood default; ensures GenVM gets an aware timestamp.
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (4)
backend/protocol_rpc/endpoints.py (4)
451-454: Use dict.get; avoid redundant membership check (RUF019)Simpler and avoids double lookup.
- sim_config_obj = None - if "sim_config" in params and params["sim_config"]: - sim_config_obj = SimConfig.from_dict(params["sim_config"]) + sc_raw = params.get("sim_config") + sim_config_obj = SimConfig.from_dict(sc_raw) if sc_raw else None
637-644: Pre-parse genvm_datetime and map invalid format to JSON-RPC -32602Prevents 500s from bubbling up on bad input; also eliminates the redundant key check (RUF019).
- sim_config = None - if "sim_config" in params and params["sim_config"]: - sim_config = SimConfig.from_dict(params["sim_config"]) - - override_transaction_datetime: bool = ( - sim_config is not None and sim_config.genvm_datetime is not None - ) + sc_raw = params.get("sim_config") + sim_config = SimConfig.from_dict(sc_raw) if sc_raw else None + override_transaction_datetime: bool = bool(sim_config and sim_config.genvm_datetime) + # Pre-parse timestamp override and map errors to -32602 + txn_dt = None + if sim_config and override_transaction_datetime: + try: + txn_dt = sim_config.genvm_datetime_as_datetime + except ValueError as e: + raise JSONRPCError( + code=-32602, + message=f"Invalid sim_config.genvm_datetime: {sim_config.genvm_datetime}", + data={}, + ) from e @@ - transaction_datetime=( - sim_config.genvm_datetime_as_datetime - if (sim_config and override_transaction_datetime) - else None - ), + transaction_datetime=txn_dt,Also applies to: 651-656
658-667: Validate genvm_datetime before write; return -32602 on parse errorsAligns write path with read path behavior; avoids server error on invalid input.
- receipt = await node.run_contract( + txn_created_at = None + if sim_config and override_transaction_datetime: + try: + _ = sim_config.genvm_datetime_as_datetime # validation only + txn_created_at = sim_config.genvm_datetime + except ValueError as e: + raise JSONRPCError( + code=-32602, + message=f"Invalid sim_config.genvm_datetime: {sim_config.genvm_datetime}", + data={}, + ) from e + receipt = await node.run_contract( from_address=from_address, calldata=decoded_data.calldata, - transaction_created_at=( - sim_config.genvm_datetime - if (sim_config and override_transaction_datetime) - else None - ), + transaction_created_at=txn_created_at, )
670-679: Validate genvm_datetime before deploy; return -32602 on parse errorsSame handling for deploy path.
- receipt = await node.deploy_contract( + txn_created_at = None + if sim_config and override_transaction_datetime: + try: + _ = sim_config.genvm_datetime_as_datetime # validation only + txn_created_at = sim_config.genvm_datetime + except ValueError as e: + raise JSONRPCError( + code=-32602, + message=f"Invalid sim_config.genvm_datetime: {sim_config.genvm_datetime}", + data={}, + ) from e + receipt = await node.deploy_contract( from_address=from_address, code_to_deploy=decoded_data.contract_code, calldata=decoded_data.calldata, - transaction_created_at=( - sim_config.genvm_datetime - if (sim_config and override_transaction_datetime) - else None - ), + transaction_created_at=txn_created_at, )
🧹 Nitpick comments (2)
backend/protocol_rpc/endpoints.py (2)
455-456: DRY the LLM provider resolution and centralize error mapping to -32602Eliminates duplicated try/except blocks and keeps behavior consistent across multi/single validator paths.
virtual_validators = [] + def _resolve_llm_provider(provider, model, config, plugin, plugin_config): + try: + if config is None or plugin is None or plugin_config is None: + return get_default_provider_for(provider, model) + llm_provider = LLMProvider( + provider=provider, + model=model, + config=config, + plugin=plugin, + plugin_config=plugin_config, + ) + validate_provider(llm_provider) + return llm_provider + except ValueError as e: + raise JSONRPCError(code=-32602, message=str(e), data={}) from e + - # Use sim_config_obj if provided - if sim_config_obj and sim_config_obj.validators: - for validator in sim_config_obj.validators: - provider = validator.provider - model = validator.model - config = validator.config - plugin = validator.plugin - plugin_config = validator.plugin_config - try: - if config is None or plugin is None or plugin_config is None: - llm_provider = get_default_provider_for(provider, model) - else: - llm_provider = LLMProvider( - provider=provider, - model=model, - config=config, - plugin=plugin, - plugin_config=plugin_config, - ) - validate_provider(llm_provider) - except ValueError as e: - raise JSONRPCError(code=-32602, message=str(e), data={}) from e - account = accounts_manager.create_new_account() - virtual_validators.append( - Validator( - address=account.address, - private_key=account.key, - stake=validator.stake, - llmprovider=llm_provider, - ) - ) + # Use sim_config_obj if provided + if sim_config_obj and sim_config_obj.validators: + for vconf in sim_config_obj.validators: + llm_provider = _resolve_llm_provider( + vconf.provider, + vconf.model, + vconf.config, + vconf.plugin, + vconf.plugin_config, + ) + account = accounts_manager.create_new_account() + virtual_validators.append( + Validator( + address=account.address, + private_key=account.key, + stake=vconf.stake, + llmprovider=llm_provider, + ) + ) @@ - try: - if config is None or plugin is None or plugin_config is None: - llm_provider = get_default_provider_for(provider, model) - else: - llm_provider = LLMProvider( - provider=provider, - model=model, - config=config, - plugin=plugin, - plugin_config=plugin_config, - ) - validate_provider(llm_provider) - except ValueError as e: - raise JSONRPCError(code=-32602, message=str(e), data={}) from e + llm_provider = _resolve_llm_provider( + provider, + model, + config, + plugin, + plugin_config, + )Also applies to: 459-487, 499-513
488-498: Reuse sc_raw; avoid re-reading params and keep naming consistentMinor clean-up.
- sim_config = params.get("sim_config", {}) - provider = sim_config.get("provider") - model = sim_config.get("model") + sc = sc_raw or {} + provider = sc.get("provider") + model = sc.get("model")And below, when fetching optional fields:
- config = sim_config.get("config") - plugin = sim_config.get("plugin") - plugin_config = sim_config.get("plugin_config") + config = sc.get("config") + plugin = sc.get("plugin") + plugin_config = sc.get("plugin_config")
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
backend/database_handler/transactions_processor.py(3 hunks)backend/protocol_rpc/endpoints.py(5 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- backend/database_handler/transactions_processor.py
🧰 Additional context used
🧬 Code graph analysis (1)
backend/protocol_rpc/endpoints.py (5)
backend/domain/types.py (8)
LLMProvider(81-98)Validator(102-142)SimConfig(47-77)from_dict(25-33)from_dict(61-69)from_dict(110-125)from_dict(229-271)genvm_datetime_as_datetime(52-58)backend/node/create_nodes/providers.py (2)
get_default_provider_for(88-99)validate_provider(38-48)backend/database_handler/accounts_manager.py (1)
create_new_account(24-31)backend/validators/__init__.py (1)
temporal_snapshot(191-208)backend/node/base.py (3)
get_contract_data(239-257)run_contract(223-237)deploy_contract(184-221)
🪛 Ruff (0.12.2)
backend/protocol_rpc/endpoints.py
452-452: Unnecessary key check before dictionary access
Replace with dict.get
(RUF019)
638-638: Unnecessary key check before dictionary access
Replace with dict.get
(RUF019)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Load Tests / load-test
- GitHub Check: test
- GitHub Check: backend-unit-tests
🔇 Additional comments (3)
backend/protocol_rpc/endpoints.py (3)
17-17: Import of SimConfig is appropriateNeeded for parsing sim_config and timestamp overrides. No issues.
893-894: insert_transaction signature and DB migration verified
Signature in transactions_processor.py includessim_config: dict | None = None, and migration 035ef00c2779 adds a nullable JSONBsim_configcolumn.
779-780: Verify RPC wrapper supports optional sim_config param
Ensure the JSON-RPC dispatch ineth_sendRawTransactioncorrectly accepts a single positional argument (the signed tx) whensim_configis omitted, and update your RPC docs to describe the newsim_configextension.
…12-override-timestamp-in-gen_call-or-sim_call
…12-override-timestamp-in-gen_call-or-sim_call
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
backend/domain/types.py (1)
51-59: Resolved: UTC-aware normalization for genvm_datetime.Getter now guarantees an aware UTC datetime (handles “Z”, attaches tz if naive, normalizes to UTC). Good fix.
🧹 Nitpick comments (2)
backend/domain/types.py (2)
46-50: Make validators list optional with a default factory.Avoids needing to always pass an explicit list and simplifies callers.
-@dataclass -class SimConfig: - validators: list[SimValidatorConfig] +@dataclass +class SimConfig: + validators: list[SimValidatorConfig] = field(default_factory=list) genvm_datetime: str | None = None
24-33: Validate required fields in SimValidatorConfig.from_dict.Fail early if provider/model are missing; otherwise downstream raises are harder to diagnose.
@classmethod def from_dict(cls, d: dict) -> "SimValidatorConfig": + if not d.get("provider") or not d.get("model"): + raise ValueError("SimValidatorConfig requires non-empty 'provider' and 'model'.") return cls( stake=d.get("stake", 0), provider=d.get("provider"), model=d.get("model"), config=d.get("config"), plugin=d.get("plugin"), plugin_config=d.get("plugin_config"), )
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
backend/consensus/base.py(2 hunks)backend/domain/types.py(5 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
backend/consensus/base.py (4)
backend/node/create_nodes/providers.py (2)
get_default_provider_for(88-99)validate_provider(38-48)backend/domain/types.py (2)
LLMProvider(81-98)Validator(102-142)backend/database_handler/accounts_manager.py (1)
create_new_account(24-31)backend/validators/__init__.py (2)
temporal_snapshot(191-208)snapshot(177-188)
backend/domain/types.py (2)
backend/database_handler/types.py (3)
ConsensusData(7-48)from_dict(30-48)to_dict(14-27)backend/database_handler/validators_registry.py (1)
to_dict(13-25)
🪛 Ruff (0.12.2)
backend/consensus/base.py
536-537: Remove exception handler; error is immediately re-raised
(TRY203)
537-537: Use raise without specifying exception name
Remove exception name
(TRY201)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Load Tests / load-test
- GitHub Check: test
- GitHub Check: backend-unit-tests
🔇 Additional comments (2)
backend/domain/types.py (1)
186-271: Transaction.sim_config round-trip looks correct.Field is added, serialized, and deserialized via SimConfig.{to,from}_dict, preserving None as expected.
backend/consensus/base.py (1)
36-39: Imports for provider defaults/validation are appropriate.They scope provider selection and schema validation to the node creation flow. Looks good.
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
backend/node/base.py (1)
125-131: Prevent crash when sim_config.genvm_datetime is a datetime (type mismatch flows into _date_from_str).If SimConfig parses genvm_datetime into a datetime (dataclass validation), transaction_created_at becomes a datetime. Passing it into _date_from_str (which assumes str and calls .replace("Z", ...)) will raise a TypeError. Widen the accepted types at the call boundary to avoid runtime failures.
Apply this diff to the affected signatures:
@@ - async def deploy_contract( + async def deploy_contract( self, from_address: str, code_to_deploy: bytes, calldata: bytes, transaction_hash: str | None = None, - transaction_created_at: str | None = None, + transaction_created_at: str | datetime.datetime | None = None, ) -> Receipt: @@ - async def run_contract( + async def run_contract( self, from_address: str, calldata: bytes, transaction_hash: str | None = None, - transaction_created_at: str | None = None, + transaction_created_at: str | datetime.datetime | None = None, ) -> Receipt:Optionally, add a quick guard in exec_transaction to make the intent explicit:
@@ - if sim_config is not None and sim_config.genvm_datetime is not None: - transaction_created_at = sim_config.genvm_datetime + if sim_config is not None and sim_config.genvm_datetime is not None: + transaction_created_at = sim_config.genvm_datetime # may be str or datetimeRun to confirm the SimConfig type for genvm_datetime:
#!/bin/bash rg -nP -C2 '\bclass\s+SimConfig\b|genvm_datetime' backend | sed -n '1,200p'Also applies to: 140-141, 148-149
🧹 Nitpick comments (2)
backend/node/base.py (2)
244-244: Double-check behavior change: get_contract_data now forces “now UTC” instead of letting GenVM use “latest.”Previously, passing None meant “allow latest” (host flag is still set). For time-sensitive contracts this may alter results and reduce determinism across nodes. If this switch is intentional, prefer a simpler and clearer expression; if not, revert to passing None by default.
Option A (preserve prior semantics — no implicit timestamp):
- transaction_datetime=( - transaction_datetime - if transaction_datetime is not None - else datetime.datetime.now().astimezone(datetime.UTC) - ), + transaction_datetime=transaction_datetime,Option B (keep “now” default but simplify and avoid local-tz hop):
- transaction_datetime=( - transaction_datetime - if transaction_datetime is not None - else datetime.datetime.now().astimezone(datetime.UTC) - ), + transaction_datetime=transaction_datetime or datetime.datetime.now(datetime.UTC),Also applies to: 251-255
177-179: Fix non-ASCII punctuation flagged by Ruff (RUF003).Replace the Unicode hyphen and curly quotes in the comment with ASCII equivalents.
- # Accept ISO‐8601 strings with a trailing ‘Z’ by normalizing to +00:00 + # Accept ISO-8601 strings with a trailing 'Z' by normalizing to +00:00
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
backend/node/base.py(4 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
backend/node/base.py (1)
backend/node/genvm/base.py (2)
run_contract(93-107)run_contract(148-200)
🪛 Ruff (0.12.2)
backend/node/base.py
177-177: Comment contains ambiguous ‐ (HYPHEN). Did you mean - (HYPHEN-MINUS)?
(RUF003)
177-177: Comment contains ambiguous ‘ (LEFT SINGLE QUOTATION MARK). Did you mean ``` (GRAVE ACCENT)?
(RUF003)
177-177: Comment contains ambiguous ’ (RIGHT SINGLE QUOTATION MARK). Did you mean ``` (GRAVE ACCENT)?
(RUF003)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Load Tests / load-test
- GitHub Check: test
- GitHub Check: backend-unit-tests
…12-override-timestamp-in-gen_call-or-sim_call
|
|
🎉 This PR is included in version 0.74.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* fix: add default consensus history object for old transactions (#1094) * feat: improve providers and models distribution on hosted studio (#1100) * chore: removed unused models and update existing ones * chore: config more diverse providers and models * chore: updated env example with multiple validators * feat: added output and eq principle outputs to transaction detail modal * chore: clean up models that doesn't perform well * fix: transaction details modal horizontal scroll * fix: frontend build * fix: format * refactor: updated providers schema in frontend * refactor: removed unused property in providers schema * fix: add XAI_API_KEY, remove prints * fix: format and missing env variable example * fix: duplicated XAI_API_KEY in env file --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: renamed infra repo (#1102) * feat: do not create snapshots along the consensus execution (#1103) * feat: removed contract_snapshot_supplier, created contract snapshot inside context init * fix: remove hardcoded majority_agrees for testing * fix: no creation of contract snapshot when transaction is funding; add check for restore_stuck_transactions --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: merge renovate changes into main (#1097) * chore(deps): update dependency @vue/eslint-config-prettier to v10 (#697) * chore(deps): update dependency @vue/eslint-config-prettier to v10 * fix: adding Hardhat Dockerfile in GitHub Workflow (#693) * fix(hardhat): prevent race conditions in contract deployment (#704) * fix(hardhat): Add contract deployment and healthcheck to prevent race conditions - Added healthcheck to hardhat service in docker-compose.yml - Modified Dockerfile.hardhat to deploy contracts after node is ready - Added proper service dependency in docker-compose.yml to ensure jsonrpc waits for hardhat This fixes the race condition where jsonrpc would try to access hardhat accounts before they were available, causing the finality window to crash. * fix: use named volume for hardhat artifacts to fix permissions issue - Changed hardhat artifacts from bind mount to named volume - This ensures correct permissions are maintained - Fixes CI/CD pipeline issues with hardhat compilation * chore(docker): add curl to Dockerfile.hardhat and update healthcheck method * chore(docker): merge RUN instructions and sort package names in Dockerfile * fix: change health check command to nc instead of curl * fix: healthcheck trying curl with increased retries --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: catch exception to keep loop running (#705) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add BACKEND_BUILD_TARGET used in docker compose file in .env.example to run in debug (#707) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: Update reviewers for renovate (#694) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> * chore(deps): update sonarsource/sonarcloud-github-action action to v4 (#696) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update node.js to v22 (#695) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update codecov/codecov-action action to v5 (#660) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency pre-commit to v4 (#557) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @types/chai to v5 (#551) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update all non-major dependencies (#534) * fix(deps): update all non-major dependencies * remove trailing whitespace --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Den <den@Deniss-MacBook-Pro.local> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @vitejs/plugin-vue-jsx to v4 (#514) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: updated target branch to staging * chore: update dependencies * chore(deps): update dependency @vue/eslint-config-prettier to v10 (#716) * chore(deps): update dependency @vue/eslint-config-prettier to v10 * fix: adding Hardhat Dockerfile in GitHub Workflow (#693) * fix(hardhat): prevent race conditions in contract deployment (#704) * fix(hardhat): Add contract deployment and healthcheck to prevent race conditions - Added healthcheck to hardhat service in docker-compose.yml - Modified Dockerfile.hardhat to deploy contracts after node is ready - Added proper service dependency in docker-compose.yml to ensure jsonrpc waits for hardhat This fixes the race condition where jsonrpc would try to access hardhat accounts before they were available, causing the finality window to crash. * fix: use named volume for hardhat artifacts to fix permissions issue - Changed hardhat artifacts from bind mount to named volume - This ensures correct permissions are maintained - Fixes CI/CD pipeline issues with hardhat compilation * chore(docker): add curl to Dockerfile.hardhat and update healthcheck method * chore(docker): merge RUN instructions and sort package names in Dockerfile * fix: change health check command to nc instead of curl * fix: healthcheck trying curl with increased retries --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: catch exception to keep loop running (#705) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add BACKEND_BUILD_TARGET used in docker compose file in .env.example to run in debug (#707) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: Update reviewers for renovate (#694) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> * chore(deps): update node.js to v22 (#717) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: updated frontend dependencies config * fix: dependencies * chore(deps): update dependency @vue/eslint-config-typescript to v14 (#698) * chore(deps): update dependency @vue/eslint-config-typescript to v14 * fix: adding Hardhat Dockerfile in GitHub Workflow (#693) * fix(hardhat): prevent race conditions in contract deployment (#704) * fix(hardhat): Add contract deployment and healthcheck to prevent race conditions - Added healthcheck to hardhat service in docker-compose.yml - Modified Dockerfile.hardhat to deploy contracts after node is ready - Added proper service dependency in docker-compose.yml to ensure jsonrpc waits for hardhat This fixes the race condition where jsonrpc would try to access hardhat accounts before they were available, causing the finality window to crash. * fix: use named volume for hardhat artifacts to fix permissions issue - Changed hardhat artifacts from bind mount to named volume - This ensures correct permissions are maintained - Fixes CI/CD pipeline issues with hardhat compilation * chore(docker): add curl to Dockerfile.hardhat and update healthcheck method * chore(docker): merge RUN instructions and sort package names in Dockerfile * fix: change health check command to nc instead of curl * fix: healthcheck trying curl with increased retries --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: catch exception to keep loop running (#705) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add BACKEND_BUILD_TARGET used in docker compose file in .env.example to run in debug (#707) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: Update reviewers for renovate (#694) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @vue/eslint-config-typescript to v14 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> * chore(deps): update codecov/codecov-action action to v5 (#719) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: docker python images version * fix: removed unused dependencies * chore(deps): update dependency jsdom to v25 (#517) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency sinon to v19 (#520) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update vitest monorepo to v2 (#526) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @globalhive/vuejs-tour to v2 (#529) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update all non-major dependencies (#718) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/chai to v5 (#722) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency @vitejs/plugin-vue-jsx to v4 (#724) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency pre-commit to v4 (#728) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency mocha to v11 (#737) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency npm-run-all2 to v7 (#738) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore(deps): update dependency vite to v6 (#739) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update dependency @nomicfoundation/hardhat-toolbox to v5 (#740) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update dependency hardhat-gas-reporter to v2 (#741) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix(deps): update dependency uuid to v11 (#742) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: updated deps * chore(deps): update all non-major dependencies (#745) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#749) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#750) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#756) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#760) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#763) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#773) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#774) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#775) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#776) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#777) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#778) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#779) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#784) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#794) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#797) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#798) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#800) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#802) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#806) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#807) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#808) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#810) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#811) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#815) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#816) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#817) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#825) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#829) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#831) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#832) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#833) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#834) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#837) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.0.9 [security] (#836) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#845) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#848) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#849) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#852) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#854) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#855) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#856) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#860) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#862) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#866) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#868) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#871) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: downgraded hardhat-gas-reporter as it is not compatible with hardhat-toolbox; added requests in webrequests as newer version of anthropic raised an import error * chore(deps): update dependency black to v25 (#861) * chore(deps): update dependency black to v25 * fix: unknown compiler * fix: useWebSocketClient test saying object is possibly undefined --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update dependency web3 to v7.8.0 (#872) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency jsdom to v26 (#809) * chore(deps): update dependency jsdom to v26 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update dependency eth-account to v0.13.5 (#875) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update vitest monorepo to v3 (#819) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update all non-major dependencies to v3.0.4 (#876) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.61.1 (#879) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#882) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies to v3.0.5 (#884) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#885) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency genlayer-js to v0.6.4 (#888) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#889) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.22.23 (#890) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency lucide-vue-next to ^0.475.0 (#896) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.5.8 (#898) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update node.js to v22.14.0 (#899) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency prettier to v3.5.0 (#902) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.62.0 (#903) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.5.9 (#905) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.0 (#906) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#908) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#909) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#911) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.2 (#912) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency prettier to v3.5.1 (#913) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#914) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#917) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies to v12.7.0 (#919) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#923) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.66.4 (#928) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#931) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#932) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#935) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#936) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vue-tsc to v2.2.4 (#943) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#944) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#948) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency anthropic to v0.49.0 (#952) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.65.2 (#953) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency pytest to v8.3.5 (#954) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#955) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#958) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vue-tsc to v2.2.8 (#960) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#963) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.67.1 (#965) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.9 (#966) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.6 (#967) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#970) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#972) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#974) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#978) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#984) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#993) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.6.0 (#995) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#997) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @rushstack/eslint-patch to v1.11.0 (#999) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1000) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency genlayer-js to ^0.9.0 (#1002) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency start-server-and-test to v2.0.11 (#1003) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1004) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1006) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1007) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1008) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1011) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1012) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.12 (#1013) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1014) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency sinon to v19.0.4 (#1015) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.13 (#1016) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.11 (#1018) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1019) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.3 [security] (#1025) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency eth-account to v0.13.6 (#1029) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1030) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1032) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.23.15 (#1034) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1035) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1037) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.69.2 (#1039) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1042) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.4 [security] (#1043) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency aiohttp to v3.11.15 (#1044) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency aiohttp to v3.11.16 (#1048) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.71.0 (#1050) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.6.4 (#1051) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.71.1 (#1052) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies to v3.1.1 (#1053) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1054) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.24.3 (#1055) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.15 (#1056) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.16 (#1057) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.5 [security] (#1059) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v22.13.17 (#1060) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1061) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1062) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.25.0 (#1063) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ollama/ollama docker tag to v0.6.5 (#1064) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1067) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency pydantic to v2.11.3 (#1070) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency openai to v1.72.0 (#1073) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1077) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.72.0 (#1082) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1083) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.26.2 (#1084) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vite to v6.2.6 [security] (#1089) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1087) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1090) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @tanstack/vue-query to v5.73.0 (#1092) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency viem to v2.26.3 (#1093) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency pinia to v3 (#910) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> * fix(deps): update all non-major dependencies (#1095) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update all non-major dependencies (#1098) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update vueuse monorepo to v13 (#998) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix(deps): update dependency splitpanes to v4 (#973) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update tibdex/github-app-token action to v2 (#1096) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * chore(deps): update dependency sinon to v20 (#1033) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix(deps): update all non-major dependencies (#1099) * fix(deps): update all non-major dependencies --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edinaldo Pereira da Silva Junior <69252337+epsjunior@users.noreply.github.com> Co-authored-by: Miguel Paya <71258059+mpaya5@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: Agustín Díaz <49416765+AgustinRamiroDiaz@users.noreply.github.com> Co-authored-by: Den <den@Deniss-MacBook-Pro.local> * fix: avoid activating new transactions when the previous one is not accepted (#1106) * fix: process pending transaction when previous does not exist, is appealed or is in an accepted/undetermined/finalized state * fix: add get_previous_transaction in test helpers * feat: update default provider presets at startup (#1091) * feat: update default provider presets at startup * fix: remove comments * fix: add is_default to GetProvidersAndModelsData frontend * fix: do not reset providers when migrating an empty database, at that point is_default does not exist --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: trigger newtransaction for contract dependent transactions in consensus (#1080) * feat: call addTransaction from _emit_transactions * feat: call _addTransaction inside solidity contract when calling emitTransactionAccepted or emitTransactionFinalized * fix: internal message for deployment needed more gas, contract_address is created in python because genvm does the same construction * fix: add InternalMessageProcessed * fix: split _emit_transactions --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: consensus contract state tests (#1104) * feat: add contract state checks for one tx for happy path, leader appeal, rollback validator appeal * feat: added test for one transaction in validator appeal and future transaction in accepted * feat: add test for one transaction in leader appeal and future transaction in accepted --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * added telegram link to readme (#1116) * fix: generate contracts address when consensus_service is not running (#1120) * fix: generate contracts address when consensus_service is not running * fix: autogenerate tx hash in the transaction processor * fix: check states when they are not timing dependent --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * feat: implement state snapshots (#1126) * feat: add snapshot model * feat: add snapshot manager * feat: add rpc endpoints * fix: minor updates * feat: add snapshot manager tests * chore: propagate failure on github actions * fix: old tests * fix: black * fix: chromedriver version * test: add an integration test for Intelligent Contracts Factory Pattern (#1122) * test: add an integration test for Intelligent Contracts Factory Pattern from intelligent oracle project * test: change prediction markets --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: error Handling on LLM calls (#1129) * feat: add timeout retry in node call * fix: changed timeout to 30 seconds --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: fixing genlayer-js version (#1137) * fix: use another openssl package (#1131) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: remove private_key from validators for endpoints methods (#1141) * fix: remove private_key from validators for endpoints methods * fix: solve failed testcase * refactor(tests): integrate genlayer test (#1114) * refactor: rename contracts extension to .gpy * refactor: integrate genlayer-test * fix: update import * fix: delete unused code * chore: add genlayer-test package * fix: use gltest command to run integration tests * chore: update frontend docker file to receive .py files * refactor: rename to .gpy * feat: integrate intelligent oracle test * chore: upgrade genlayer-test version * fix: black * fix: simplify logic * fix: add setup_validator fixture to all tests * chore: updated and fixed dependencies * fix: manage tx timestamp_appeal as int --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: add missing transaction fields (#1144) * fix: add missing transaction fields * fix: black * refactor: increase genvm execution timeout to 5 minutes (#1146) * fix: make snapshots endpoints to be forbidden in hosted studio (#1149) * chore: update BSL date on PR merge (#1105) * chore: update BSL date on PR merge * chore: comment out condition for PR merge in update-bsl-date workflow * chore: add display changes step in update-bsl-date workflow * test * chore: update update-bsl-date workflow to trigger on opened, synchronize, and reopened PRs; add permissions for pull-requests * use current branch instead of main * chore: clean up update-bsl-date workflow --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: remove ollama from default docker compose (#1069) * made ollama optional * fix: don't have ollama in database when profile is not active --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * feat: mimic Node GenCall method (#1150) * feat: add gen_call * fix: gen_call read works by adding parsing * fix: remove prints * fix: add logs for newTransaction event in get receipt * fix: solve pre-commit issues * fix: change status to statusName, add Address type * fix: update genlayer-js to 0.9.3, solve pre-commit --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: frontend read method should show accepted and finalized contract state (#1152) * feat: add gen_call * fix: gen_call read works by adding parsing * fix: remove prints * feat: read accepte d and finalized state in frontend * fix: pre-commit solved * refactor: improved UI styles for both states * chore: updates genlayer-js * fix: tutorial location * fix: undo tutorial change * fix: use TransactionHashVariant from genlayer-js * fix: update genlayer-js to 0.9.5 --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: consensus history updated before logevent (#1134) * fix: consensus history updated before logevent * This is an empty commit --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: catch register contract error if it fails (#1165) * feat: bypass non implemented eth methods to hardhat node (#942) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: detect appeals from raw transaction (#1088) * feat: detect appeals from raw transaction * fix: update genlayer-js version; remove appeal function in endpoints * fix: frontend hash type --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: update contracts extension to py (#1166) * feat: rename example contracts extension to .py * refactor: reorganize intelligent contracts tests * bump genlayer-test to 0.1.1 * fix: frontend build and test * feat: update frontend .py files to .gpy * fix: ic tests * fix: frontend lint * docs: added README.md to run tests * fix: delete duplicated extension * feat: add config for rotation rounds per tx (#939) * feat: add config for rotation rounds per tx * fix: increase processing time for checks in consensus tests * fix: revert previous commit; put delay between setting timestamp appeal and appeal value for checks in consensus tests. It executes too fast in gh workflow * fix: update genlayer-js version to 0.9.0 * fix: update genlayer-js in package-lock.json * fix: make consensusMaxRotations undefined in callWriteMethod * fix: set config_rotation_rounds of insert_transaction where called * fix: add default max_rotations when no data is passed * fix: reorder params test --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: change the cancelling (#1181) * feat(genvm): update to v0.0.16 (#1109) * fix(genvm): update to v0.0.18 * fix: set is_available key of providers instead of filtering in endpoints * chore: fix after rebase * feat: support multiple images in llm calls * fix: cleanup * fix: increase gas for events because of hardhat error in test_intelligent_oracle_factory_pattern * fix: use url, key, plugin from default_providers files * fix: update to genvm 0.1.0 for deepseek * fix: provider_available sets is_model_available, otherwise all models of the same plugin will be unavailable * fix: solved rabbit comments * fix: pre-commit clean * fix: change gpt-4 to gpt-4-1106-preview; change gh workflow to only be cancelled for commits, not for comments like rabbitai * fix: Concurrency group identifier misconfiguration * chore: check if tests are cancelled * fix: update gh workflow * fix: remove commit hash from gh workflow * fix: gen_call when there is no finalized state yet --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * fix: gen_call error with arguments (#1184) * fix: decode call data differently to take into account args * fix: check for null byte --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: leader also evaluates the validation function (#940) * feat: leader also evaluates the validation function * fix: vote can be none * fix: emits did not contain index for leader_receipt * fix: parse_transaction_data contains first leader_receipt * fix: put mock leader_receipt in a list * fix: put mock leader_receipt in a list * fix: merge typo * fix: call contract function schema * chore: update genlayer-test to version 0.1.2 * fix: apply rabbit suggestions * style: apply black * style: apply formatter and simplify logic * apply black * fix: tests --------- Co-authored-by: Daniel Rojas <danielrojasc888@gmail.com> * feat: mock llm calls in integration tests (#1190) * feat: mock llm calls in integration tests * fix: none mock_response not allowed * fix: add documentation, remove duplicated code --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: configurable Chain ID (#1192) * feat: use hardhat_chain_id from env file in hardhat config js and in studio backend for simulator_chain_id * fix: remove print * fix: add early fail when chain id is not set as an integer --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * chore: increased GenVM Version to 0.1.1 (#1197) * fix: set new logo (#1202) * fix: merging removed index selection (#1203) * fix: reset the deploy contract instead of writing an empty state (#1204) * fix: Fix restore stuck transactions in Studio (#1208) * fix: bug in restore tx and added try excepts * fix: if tx cannot be delete we will need to put it to pending * fix: put to canceled instead of removing; check first if contract state can be recovered * fix: parse_transaction leader_receipts handling can be accessed for old transactions (#1209) * fix: Solve broken hosted studio (#1211) * fix: solve llm availability error; upgrade restore stuck tx * fix: cancel stuck transaction that do not have a contract in the db; ignore write method calls when there was no deploy call before * fix: to_address in checks was consensusmain address; added rabbitai suggestions * fix: add follow redirects; change yeagerai to genlayerlabs (#1233) * fix: Replace favicon, accessibility (#1237) * fix: change favicon, green text * fix: use mark instead of logo for loading screen * feat: process leader timeout and appeal (#1199) * feat: process leader timeout and appeal * fix: adapt doc string process_leader_timeout_appeal * fix: decode could raise errors; add underscore to leader timeout status * refactor: move code to LeaderTimeoutState class * fix: next tx can be processed when in leader_timeout status * fix: add timeout vote to consensus history frontend * fix: failed hardhat ci test * fix: comment out old hardhat test --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: add sim call endpoint and update gen_call endpoint (#1226) * feat: implement temporal snapshot in Manager * feat: implement sim_call and add new params to gen_call * refactor: abstract common logic for gen_call and sim_call * fix: remove custom gas estimation function to be handled by hardhat (#1222) * Revert "fix: remove custom gas estimation function to be handled by hardhat (…" (#1239) This reverts commit b3d3ea353b2d6f6a67b5848ce0109db896c2cb41. * feat: transaction data compatible with node (#1169) * feat: add data to return value of eth_getTransactionByHash RPC call * fix: make num_of_initial_validators optional in insert_transaction * fix: pass arg to test * fix: resolve some unknowns in transaction data and solve test fail * fix: fill in more transaction data fields * fix: use pending transactions instead of triggered transactions for messages * fix: test have empty address in message * fix: data was none * fix: last round result * refactor: replace with dict * refactor: move and split logic in transaction processor * refactor: apply rabbit suggestions * fix: tests * fix: tx receipt logic * fix: rabbit comments * fix: Fix restore stuck transactions in Studio (#1208) * fix: bug in restore tx and added try excepts * fix: if tx cannot be delete we will need to put it to pending * fix: put to canceled instead of removing; check first if contract state can be recovered * fix: parse_transaction leader_receipts handling can be accessed for old transactions (#1209) * fix: rabbit comments * fix: tests --------- Co-authored-by: Daniel Rojas <danielrojasc888@gmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat(genvm): update to v0.1.3 (#1212) * feat(genvm): update to v0.1.3 * fix: make llm mocking work again * fix: set ownership of genvm directory * fix: changed error --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: kstroobants <130580298+kstroobants@users.noreply.github.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: change webrequest to webdriver (#1235) * fix: change webrequest to webdriver * fix: remove webdriver publishing (#1246) * feat: mock response to a custom made eq principle (#1245) * license fix (#1252) * feat: update studio version through release process (#1256) * chore: Allow any genlayer and genlayerlabs subdomain to host an studio (#1258) * feat: process validator timeout (#1225) * feat: process leader timeout and appeal * fix: adapt doc string process_leader_timeout_appeal * fix: decode could raise errors; add underscore to leader timeout status * refactor: move code to LeaderTimeoutState class * fix: next tx can be processed when in leader_timeout status * feat: process validators timeout * fix: add timeout vote to consensus history frontend * fix: solve coderabbitai remarks * fix: failed hardhat ci test * fix: comment out old hardhat test * fix: remove testing code * fix: solve testcase, issue was that contract state is now updated after state change to finalized * fix: solve testcase, issue was that contract state is now updated after state change to finalized --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: error on reading state before deploy finalized (#1255) * fix: gen_call read does not throw a jsonrpcerror when execution is error; frontend does not show finalized state value in read when there was a genvm fail * fix: remove debug print * fix: remove console log for read method * fix: add code to finalized state when deploying * fix: don't show empty response * fix: add delay to test so triggered deployment is finalized * feat: custom plugin (#1221) * feat: custom plugin * fix: change order of getting models; old code removed model name if another provider had the same model name with the uniqBy * fix: add availability check for customer model * chore(deps): update genlayer test version (#1267) * chore: update genlayer-test version * test: update with new syntax * feat: setup Database as GCP managed postgres (#1269) * feat: use REMOTE_DATABASE env var to not start postgres service * fix: make studio blocking independent of genvm errors (#1262) * feat: add tests to check if consensus gets stuck when inserting errors * fix: add try catch for genvm execution; increase waiting time for finalization in test * fix: added retry until timeout for genvm crashes; added retry in web request because webdriver has hardcoded 60s shutdown * fix: it should not mock when no mock responses are given * fix: make added tests optional --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: Improve transaction processing and logging (#1281) * Fix: Improve transaction processing and logging This commit addresses several issues related to transaction processing and logging within the system. - It prevents errors when updating transaction statuses or consensus data after snapshot restores by skipping updates for non-existent transactions. - It enhances nonce handling by fetching the actual nonce from Hardhat, ensuring synchronization with the blockchain. If not connected it falls back to existing method. - It improves error handling during transaction forwarding, raising exceptions for nonce errors. - It truncates large transaction fields and contract states in logs (calldata, contract_code, state) unless in DEBUG mode, reducing log size and improving readability. - It updates gas estimation to use zkSync Era's gas limit and updates hardhat config to be the same. - It ensures LLM and Web modules are shutdown correctly and gracefully. - It updates the models to use the latest versions of openai, google, xai, anthropic and heuristai. * Fix: Improves transaction handling and stability This commit addresses several issues related to transaction processing and overall system stability: - Enhances transaction count retrieval by normalizing addresses, fetching from RPC with pending state, and gracefully falling back to the database. Includes error handling for RPC connection issues. - Prevents errors when updating appeal processing time by checking for null `timestamp_appeal` values. - Implements more robust process termination for LLM and Web modules, ensuring cleanup and preventing resource leaks. - Adds custom exception classes for nonce errors in the Consensus Service, improving error handling and reporting. - Expands allowed LLM models in provider schemas. These changes improve the reliability and accuracy of transaction-related operations and enhance the system's resilience to external factors. * fix: mocking hardhat count * fix: ran precommit * fix: move scattered truncations to MessageHandler * fix: do not send rollup tx when transactionType is sending for now * Feat: Forwards eth_ methods in batch requests to Hardhat This commit adds support for forwarding Ethereum-related methods (eth_*) within batch JSON-RPC requests to a Hardhat instance. Previously, batch requests containing eth_ methods were not handled correctly. This change ensures that such requests are forwarded to Hardhat for processing. Non-eth_ methods within batch requests are handled by Flask-JSONRPC. This allows interaction with Hardhat using batch requests. Error handling is also implemented, now if forwarding to Hardhat fails, an error response is returned to the client. * Refactor: Remove unused providers and update RPC handling Removes deprecated and unused provider configurations to streamline the available options. Updates the RPC endpoint generator to improve handling of batch requests, including more robust error handling and logging, and ensures that requests are correctly forwarded to Hardhat when appropriate and not handled locally. Also includes bug fixes for nonce checking in consensus service Adds unit tests for batch request handling, consensus service nonce exceptions, and transaction processor improvements BREAKING CHANGE: Removes heuristai_mistralaimixtral-8x22b-instruct, xai_grok-3-mini, and xai_grok-4-0709 providers * fix: rabbitai remarks; failing test because of mixtral-8x22b-instruct * fix: rabbitai remarks * fix: rabbitai remarks * chore: organize imports in healthcheck.py Sort imports alphabetically and separate third-party from standard library imports --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> * feat: improve how prints are shown in the studio (#1280) * feat: prints individually appearing at logs * feat: adding contract button * feat: adding new contract log type * chore: improving mapping * chore: removing blue background color * chore: removing as const * chore: pre commit check * feat: using nodelog typing * fix: types * feat: new split top level util * fix: lint appointments * fix: coderabbit appointments * feat: SIM-FE Finalized status badge color (#1270) * feat: red finalized label * feat: red finalized label * fix: refactoring the conditional logic into a computed property --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: remove dockerfile webdriver (#1271) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: improve genvm error logs in the studio (#1282) * feat: new static code checking * feat: removing contract analysis box * feat: showing genvm errors at root * chore: remove unused code * chore: pre commit comments * chore: pre commit comments --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: AttributeError in eth_getTransactionReceipt endpoint (#1273) * fix: no replace on nonetype * fix: no replace on nonetype * fix: rabbitai remark --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: execute leaders validation concurrently with the validators (#1272) Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: hotfix genvm executuon timeout (#1285) * hotfix: revert hardhat gas config (#1287) * hotfix: revert hardhat gas config * hotfix: revert changes rpc * fix tests * Update genlayer-js dependency to version 0.15.1 (#1295) - Updated genlayer-js from ^0.10.0 to 0.15.1 (exact version) - This version fixes retry behavior by disabling viem transport retries - Prevents duplicate requests by setting retryCount: 0 in transport config - Tested functionality - client initialization and UI work properly Ticket: DXP-630 Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Agustín Díaz <agustin.ramiro.diaz@gmail.com> * fix: hardhat db conection pool (#1288) * fix: hardhat db conection pool * docs: add connection pooling report * docs: add accounts manager db session analysis * feat: load fresh contract for each tx * remove incorrect config value * chore: improved db session management and creation config * fix remove expensive cache inval * fix: session:manager usage * refactor: reusable web3 connection management * chore: updated frontend dependencies * chore: setup 100+50 db pool size parameters * fix: remove hardhat forwarding * fix: safe checks for validators config and web3 node * refactor: open db connection status endpoint --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat(rpc): add gen_getContractCode endpoint; store accounts data a… (#1290) * fix: resolve PostgreSQL constraint violation for duplicate transaction hashes (#1294) * feat: implement database connection pool configuration - Add configurable connection pool settings with health checks - Configure pool_pre_ping for stale connection detection - Add pool_recycle for automatic connection renewal - Implement timeout configurations for better reliability - Add SessionManager for improved session lifecycle management - Include environment variables for pool configuration tuning Pool configuration addresses managed database integration issues: - Reduces pool size from 50 to 20 (configurable) - Adds connection health checks before use - Implements automatic connection recycling every hour - Sets proper timeouts for connection acquisition * feat: added new variables * feat: adding tests * feat: updated CLAUDE.md * feat: transactions working * feat: transactions working * feat: transactions working * feat: cleanning everything * feat: cleanning everything * feat: cleanning everything * feat: solve codeRabbit suggestion * feat: solve codeRabbit suggestion * feat: solve codeRabbit suggestion * feat: solve codeRabbit suggestion * feat: run pre-commit * feat: finished * feat: pre-commit runned * feat: deletted unnecesary functions * Update settings.json * feat: deletted cursor settings.json * fix: tests --------- Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * ci: adding vector to studio compose (#1289) * feat: adding vector to studio compose * fix: coderabbitai minor issues * fix: formatting * fix: removing secrets from docker compose * feat: adding gcp_pubsub sink to redirect docker logs to a Pub/Sub topic --------- Co-authored-by: Claus <0xclausdev@gmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * fix: removing the full path from the pub/sub topic (#1298) * chore: jsonrpc container generates logs in only 1 line (#1291) * feat: jsonrpc container generates logs in only 1 line * fix: formatting * fix: formatting * fix: formatting * fix: @coderabbitai refactor suggestion * fix: putting the required:false back to the docker-compose.yml file * refactor: merge main and pre-commit * chore: restore db pool params --------- Co-authored-by: kstroobants <stroobants.kristof@hotmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: start using selfstates in contract snapshot (#1302) * chore: improving code rediability and class usage * fix: wrong comment * chore: prettier * chore: prettier * chore: [DXP-638] Apply precommit hooks to all files (#1301) * Apply precommit hooks to all files Co-Authored-By: Agustín Díaz <agustin.ramiro.diaz@gmail.com> * chore: trigger CI re-run for title validation Co-Authored-By: Agustín Díaz <agustin.ramiro.diaz@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Agustín Díaz <agustin.ramiro.diaz@gmail.com> Co-authored-by: Cristiam Da Silva <cristiam86@gmail.com> * feat: Allow simulating write calls in the studio frontend (#1300) * feat: upgrade genlayer-js + add simulation button * chore: align * chore: precommit * fix: strict typing for npm run build * fix: using SERVER_NAME instead of get_hostname for host (#1304) * fix: consensus async session handling (#1307) * fix: consensus async session handling * fix: pre-commit * feat: Return execution time (#1308) * feat: add processing time to receipt * fix: improve the unit test * fix: replace Mock with AsyncMock for async function patches in tests * fix: Enhance log parsing to support multiple formats and severity mapping (#1309) * fix: enhance log parsing to support multiple formats and severity mapping * fix: pre-commit fix * fix: enhance log parsing to support JSON and additional formats * feat: virtual validators and custom genvm_datetime in transaction execution (#1297) * feat: add SimConfig types and use it on gen_call and sim_call * feat: store sim_config on transactions table to be used by the consensus service * feat: override timestamp for different methods * refactor: timestamp to genvm_datetime * style: apply black * fix: comments and apply black * fix: rabbit comments * feat: execute transaction with virtual validators * fix: delete redundant try block * fix: Enhance log parsing to support additional formats (#1312) * fix: enhance log parsing to support additional formats including plain, ANSI, and XML * fix: extend log parsing to include TRACE and NOTICE levels, and improve message trimming * fix: remove unnecessary whitespace trimming from log messages in various formats * fix: update log parsing to handle severity extraction without altering message content * fix: update vector configuration to exclude severity from jsonPayload and specify JSON encoding * fix: remove JSON codec specification from vector configuration to streamline log processing * fix: enhance log parsing to ensure uppercase severity and add numeric severity mapping for GCP * fix: linter * fix: refine log severity handling to ensure fallback to INFO when not set * fix: add debug console sink for GCP log ou…


Fixes DXP-612
Fixes DXP-610
What:
configuration
simulation configuration
sim_config
with individual configurations
transactions
genvm_datetime is provided
Why:
stakes and settings
testing
capabilities
Testing done:
Decisions made:
and new multi-validator formats
modifying system time
Reviewing tips:
User facing release notes:
Users can now:
simulations
Summary by CodeRabbit