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

Implement starknet_getStorageProof RPC #2383

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

weiihann
Copy link
Contributor

Fixes #2180

Implementation differs a lot from #2194, but tests are mostly imported from there.

Note that we currently do not support historical proofs, only the latest one.

@weiihann weiihann changed the title Implement starknet_getStorageProof Implement starknet_getStorageProof RPC Jan 16, 2025
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 61.37931% with 112 lines in your changes missing coverage. Please review.

Project coverage is 74.34%. Comparing base (e3acc28) to head (e8adad8).

Files with missing lines Patch % Lines
rpc/storage.go 58.97% 79 Missing and 17 partials ⚠️
core/state_snapshot.go 0.00% 6 Missing ⚠️
sync/pending.go 0.00% 6 Missing ⚠️
core/state.go 77.77% 2 Missing ⚠️
utils/slices.go 85.71% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2383      +/-   ##
==========================================
- Coverage   74.65%   74.34%   -0.32%     
==========================================
  Files         111      111              
  Lines       12123    12380     +257     
==========================================
+ Hits         9051     9204     +153     
- Misses       2372     2460      +88     
- Partials      700      716      +16     

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

rpc/storage.go Outdated Show resolved Hide resolved
utils/slices.go Outdated Show resolved Hide resolved
utils/orderedset_test.go Outdated Show resolved Hide resolved
@weiihann weiihann force-pushed the weiihann/get-storage-proof branch from 2f7a13d to 6daf85e Compare January 21, 2025 04:54
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.

RPC08 - starknet_getStorageProof
3 participants