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

feat: _prepare_trie #654

Merged
merged 5 commits into from
Feb 11, 2025
Merged

feat: _prepare_trie #654

merged 5 commits into from
Feb 11, 2025

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented Feb 4, 2025

Closes #636

note: this is using the storage_tries as Trie[Bytes32, U256]. At some point we will need to re-build this trie in Cairo from the Trie[Tuple[Address, Bytes32], U256].

We need to scope an issue on how to go from our internal representation to a storage trie per account. This likely goes in the state root epic

@enitrat enitrat force-pushed the feat/prepare-trie branch 2 times, most recently from 3bf07bb to 85c63d0 Compare February 5, 2025 17:46
@Eikix
Copy link
Member

Eikix commented Feb 6, 2025

to be rebased and then will be ready for review
@enitrat will get this to done monday

@enitrat enitrat force-pushed the feat/prepare-trie branch 2 times, most recently from 044fc03 to 85bb42c Compare February 6, 2025 11:18
@enitrat enitrat requested review from ClementWalter, Eikix and obatirou and removed request for ClementWalter and Eikix February 6, 2025 11:21
@enitrat enitrat marked this pull request as ready for review February 6, 2025 11:22
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 98.77676% with 4 lines in your changes missing coverage. Please review.

Project coverage is 82.48%. Comparing base (412daf2) to head (b0443d3).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
cairo/ethereum/cancun/trie.cairo 98.77% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #654      +/-   ##
==========================================
+ Coverage   82.09%   82.48%   +0.38%     
==========================================
  Files          56       56              
  Lines       12227    12558     +331     
==========================================
+ Hits        10038    10358     +320     
- Misses       2189     2200      +11     

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

@enitrat enitrat force-pushed the feat/prepare-trie branch 2 times, most recently from 4ffd081 to b9dd53a Compare February 10, 2025 10:24
@enitrat enitrat requested review from ClementWalter, Eikix and obatirou and removed request for ClementWalter and obatirou February 10, 2025 10:25
@enitrat enitrat mentioned this pull request Feb 10, 2025
@ClementWalter
Copy link
Member

add the required cases for 100% coverage

@ClementWalter
Copy link
Member

also, I think that the eels trie as it is (with the secure param) eventually makes us hash several time the same node, tbc

@enitrat enitrat merged commit 5a1cd98 into main Feb 11, 2025
11 checks passed
@enitrat enitrat deleted the feat/prepare-trie branch February 11, 2025 08:32
ClementWalter added a commit that referenced this pull request Feb 11, 2025
depends on #654 

closes #649

---------

Co-authored-by: Clément Walter <[email protected]>
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.

feat: prepare_trie
4 participants