-
Notifications
You must be signed in to change notification settings - Fork 35
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(starknet_patricia,starknet_committer): stop using custom CompiledClassHash type #4005
base: 02-06-feat_starknet_patricia_starknet_committer_stop_using_custom_nonce_type
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
24c6121
to
1600d5f
Compare
3e23729
to
57f6553
Compare
1600d5f
to
e9b4681
Compare
57f6553
to
bb71885
Compare
e9b4681
to
5c5c2af
Compare
bb71885
to
de524e4
Compare
5c5c2af
to
0848939
Compare
de524e4
to
8bfff93
Compare
0848939
to
5d0eaaa
Compare
8bfff93
to
ddac21a
Compare
5d0eaaa
to
d97391c
Compare
ddac21a
to
40b45c6
Compare
d97391c
to
d75a24c
Compare
40b45c6
to
6ea4684
Compare
d75a24c
to
6743852
Compare
6ea4684
to
f7b5c78
Compare
6743852
to
513011d
Compare
f7b5c78
to
3cf33b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 17 files reviewed, all discussions resolved
crates/starknet_patricia/src/patricia_merkle_tree/node_data/leaf_impls.rs
line 0 at r1 (raw file):
problem:
- the CompiledClassHash is defined in starknet_api
- the Storage traits
DBObject
,Deserializable
are defined in starknet_patricia (for the commitment computation abstraction) - the starknet_committer requires the CompiledClassHash implement these traits.
we can't implement (2) for (1) in starknet_committer... we can implement it in starknet_patricia, but that hurts the separation (the generic patricia crate is now "aware" that the compiled class hash can be a leaf type)...
hopefully we will be able to remove these storage traits in the future if we work with other APIs..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 17 files reviewed, all discussions resolved
a discussion (no related file):
py side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 17 files reviewed, all discussions resolved
crates/starknet_patricia/src/patricia_merkle_tree/node_data/leaf_impls.rs
line at r1 (raw file):
Previously, dorimedini-starkware wrote…
problem:
- the CompiledClassHash is defined in starknet_api
- the Storage traits
DBObject
,Deserializable
are defined in starknet_patricia (for the commitment computation abstraction)- the starknet_committer requires the CompiledClassHash implement these traits.
we can't implement (2) for (1) in starknet_committer... we can implement it in starknet_patricia, but that hurts the separation (the generic patricia crate is now "aware" that the compiled class hash can be a leaf type)...
hopefully we will be able to remove these storage traits in the future if we work with other APIs..?
this PR should wait until this stack is merged, after which we will be able to implement storage related traits directly in the starknet_api crate.
Should probably be gated behind a patricia_storage
feature though
513011d
to
4988bc6
Compare
3cf33b1
to
566e7e6
Compare
Artifacts upload workflows: |
No description provided.