Skip to content

Conversation

@ArielElp
Copy link
Contributor

@ArielElp ArielElp commented Jan 9, 2026

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

This was referenced Jan 9, 2026
Copy link
Contributor Author

ArielElp commented Jan 9, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ArielElp ArielElp force-pushed the ariel/add_layout_for_base_trait branch from 0e438d6 to 45766b2 Compare January 11, 2026 13:59
@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from efe1bf3 to 8aae7d9 Compare January 11, 2026 13:59
Copy link
Contributor Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArielElp made 4 comments.
Reviewable status: 5 of 6 files reviewed, 4 unresolved discussions (waiting on @nimrod-starkware and @yoavGrs).


crates/starknet_patricia/src/db_layout.rs line 89 at r2 (raw file):

Previously, yoavGrs wrote…

Why? You can convert to the DB type.

If you only hold NodeLayout, you only know the db type (which is L), the "logical leaf" (or base leaf, however you like to call it) is not part of the NodeLayout trait.


crates/starknet_patricia/src/db_layout.rs line 96 at r2 (raw file):

Previously, yoavGrs wrote…

Is it needed?

Nope


crates/starknet_patricia/src/db_layout.rs line 96 at r2 (raw file):

Previously, yoavGrs wrote…

Consider a more informative name.
DbLeafConvert?

The agent's name is not bad IMO. It's not converting, it's a layout that grounds both base leaf and dbleaf, e.g. it is the layout of ContractState or layout of StarknetStorageValue.

Some other Claude suggestions:
NodeLayoutForBase
NodeLayoutOverLeaf
TrieLayoutFor

Leaving it open for now


crates/starknet_patricia/src/db_layout.rs line 92 at r2 (raw file):

///
/// We require that the BaseLeaf type and its DB representation NodeLayout::DbLeaf are isomorphic.
/// The From<BaseLeaf> conversions are needed to convet incoming modifications, and the

Done.

@ArielElp ArielElp force-pushed the ariel/add_layout_for_base_trait branch from 9ee5e92 to fd65895 Compare January 12, 2026 13:13
@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from d6d529c to dd42241 Compare January 12, 2026 13:13
Copy link
Contributor

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yoavGrs reviewed 3 files and all commit messages, and resolved 3 discussions.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware).

Copy link
Contributor

@nimrod-starkware nimrod-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@nimrod-starkware made 1 comment.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @yoavGrs).

@ArielElp ArielElp changed the base branch from ariel/enrich_layout_for_serialization to graphite-base/11566 January 13, 2026 09:33
@ArielElp ArielElp force-pushed the ariel/add_layout_for_base_trait branch from a453ec3 to d3bbd34 Compare January 13, 2026 09:34
@ArielElp ArielElp changed the base branch from graphite-base/11566 to main-v0.14.1-committer January 13, 2026 09:34
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dorimedini-starkware reviewed 6 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).


a discussion (no related file):
much better :)


crates/starknet_patricia/src/db_layout.rs line 96 at r6 (raw file):

/// leaves. For more details see `create_contracts_trie`, `create_classes_trie`, and
/// `create_storage_tries` in `starknet_committer`.
pub trait NodeLayoutFor<BaseLeaf>: for<'a> NodeLayout<'a, Self::DbLeaf> {

no trait requirements for BaseLeaf?

Code quote:

NodeLayoutFor<BaseLeaf>

Copy link
Contributor Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArielElp made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).


crates/starknet_patricia/src/db_layout.rs line 96 at r6 (raw file):

Previously, dorimedini-starkware wrote…

no trait requirements for BaseLeaf?

No constraints on BaseLeaf here other than conversions with DbLeaf, the Leaf trait is only used from NodeLayout.

Copy link
Contributor Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArielElp resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp).

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp).

@ArielElp ArielElp added this pull request to the merge queue Jan 13, 2026
Merged via the queue into main-v0.14.1-committer with commit 10654a9 Jan 13, 2026
16 of 25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants