Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Complete starknet RPC v0.7.0 [issues#39] #73

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

haisenCx
Copy link
Contributor

@haisenCx haisenCx commented Aug 2, 2024

close #39

Mainly completed the adaptation of itachi to Starknet version 0.7 RPC: https://github.com/starkware-libs/starknet-specs/blob/v0.7.0_rc/starknet_vs_ethereum_node_apis.md

Additional Notes:
1.Added a Pebble DB to store stateUpdate data during block generation. The primary key is blockNum. This is mainly used for the RPC method: getStateUpdate. If a block does not have stateDiff, it will not be stored.
2.Modified the format of blockHash during commit to facilitate the conversion between Felt and Hash in Starknet. This ensures that there is no information loss when converting between Felt and uint256. Without this handling, users would lose 4 bits of information when using Starknet RPC for uint252->256 bit conversion.
3.Added some type codes in the cairo/types.go file required for version 0.7 RPC. The code is sourced from the v0.11.9-3-g4e6dcd72 version of Juno.

@haisenCx haisenCx requested a review from Lawliet-Chan August 5, 2024 13:30
@haisenCx haisenCx merged commit a9726ba into reddio-com:main Aug 12, 2024
2 checks passed
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.

Complete starknet RPC v0.7.0
2 participants