Skip to content

Conversation

@kariy
Copy link
Member

@kariy kariy commented Dec 18, 2025

Update RPC types to Starknet JSON-RPC specification v0.10.0:

  • Add migrated_compiled_classes to state diff
  • Make old_root optional in pre-confirmed state updates
  • Add transaction_index and event_index to emitted events

Starknet JSON-RPC v0.10.0 specifications: https://github.com/starkware-libs/starknet-specs/blob/v0.10.0/api/starknet_api_openrpc.json

Backward compatibility

RPC

The new fields are made optional to allow for temporary backward-compatibility - it only matters if Katana is forking using a RPC provider that is not on v0.10. Will change once the whole ecosystem has defaulted to the new spec.

Database

This only affect the RPC types. The internal changes are made in #379 and is backward compatible.

@kariy kariy changed the title feat(rpc): update to JSON-RPC spec v0.10.0 feat(rpc): update to Starknet JSON-RPC spec v0.10.0 Dec 18, 2025
@kariy kariy force-pushed the main branch 2 times, most recently from e3bd68b to e897bbb Compare December 30, 2025 17:28
@kariy kariy force-pushed the feat/rpc-v0.10 branch 2 times, most recently from 5aa460c to 500d9d5 Compare December 30, 2025 17:49
@codecov
Copy link

codecov bot commented Jan 1, 2026

Codecov Report

❌ Patch coverage is 86.66667% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.75%. Comparing base (9bde0ae) to head (9a23645).
⚠️ Report is 230 commits behind head on main.

Files with missing lines Patch % Lines
crates/gateway/gateway-types/src/conversion.rs 0.00% 2 Missing ⚠️
crates/gateway/gateway-types/src/state_update.rs 66.66% 1 Missing ⚠️
crates/node/src/full/pending/provider.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
- Coverage   73.32%   72.75%   -0.58%     
==========================================
  Files         209      248      +39     
  Lines       23132    29649    +6517     
==========================================
+ Hits        16961    21570    +4609     
- Misses       6171     8079    +1908     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kariy kariy merged commit dca26b6 into main Jan 1, 2026
8 of 11 checks passed
@kariy kariy deleted the feat/rpc-v0.10 branch January 1, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants