Skip to content

apollo_propeller: add base types (Channel, ShardIndex, MessageRoot)#11048

Merged
sirandreww-starkware merged 1 commit intomain-v0.14.1-committerfrom
12-23-apollo_propeller_add_base_types_channel_shardindex_messageroot_
Jan 14, 2026
Merged

apollo_propeller: add base types (Channel, ShardIndex, MessageRoot)#11048
sirandreww-starkware merged 1 commit intomain-v0.14.1-committerfrom
12-23-apollo_propeller_add_base_types_channel_shardindex_messageroot_

Conversation

@sirandreww-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

sirandreww-starkware commented Dec 24, 2025

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

This was referenced Dec 24, 2025
Copy link
Contributor Author

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

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

@sirandreww-starkware made 5 comments.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @ShahakShama).


crates/apollo_propeller/src/types.rs line 7 at r1 (raw file):

Previously, ShahakShama wrote…

Remove these

I want to keep them, the file gets larger and I use these to separate different sections I can add a TODO to remove these later but I think they should remain if we don't want to split this file up


crates/apollo_propeller/src/types.rs line 10 at r1 (raw file):

Previously, ShahakShama wrote…

Update according to what we decided in the proto PR

As we said there, once we finish the PR stack we will change this all across the codebase


crates/apollo_propeller/src/types.rs line 12 at r1 (raw file):

Previously, ShahakShama wrote…

What's wrong with the regular display?

What is a regular display? you mean the one you get with Debug?
https://doc.rust-lang.org/rust-by-example/hello/print/print_display.html
I just wanted the ability to print normally. And for the print output to be a bit nicer, this is not that important for Channel and Shard Index but is important for MessageRoot.
What do you think we should do?


crates/apollo_propeller/src/types.rs line 23 at r1 (raw file):

Previously, ShahakShama wrote…

Same here

^


crates/apollo_propeller/src/types.rs line 34 at r1 (raw file):

Previously, ShahakShama wrote…

Same here

^

@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/11048 to 12-23-apollo_propeller_add_reed-solomon_erasure_coding January 4, 2026 16:43
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_reed-solomon_erasure_coding branch from d14f0e1 to b483341 Compare January 4, 2026 17:07
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_base_types_channel_shardindex_messageroot_ branch from 685dbb1 to 2193ed5 Compare January 4, 2026 17:07
Copy link
Contributor

@guy-starkware guy-starkware left a comment

Choose a reason for hiding this comment

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

@guy-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @noamsp-starkware and @ShahakShama).


crates/apollo_propeller/src/types.rs line 12 at r1 (raw file):

Previously, sirandreww-starkware (Andrew Luka) wrote…

What is a regular display? you mean the one you get with Debug?
https://doc.rust-lang.org/rust-by-example/hello/print/print_display.html
I just wanted the ability to print normally. And for the print output to be a bit nicer, this is not that important for Channel and Shard Index but is important for MessageRoot.
What do you think we should do?

From what I've seen in other places, we only implement a Display function if we really need it to look prettier (e.g., the debug dump is too cluttered). IMO if you don't need this, better just derive(Debug) and use that (less code to read is always welcome).

On the other hand, if you want this to work as a standalone crate, maybe there's motivation to be "complete" about user-facing functionality. I don't know. Whatever makes more sense to you.

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama made 2 comments and resolved 1 discussion.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @sirandreww-starkware).


crates/apollo_propeller/src/types.rs line 7 at r1 (raw file):

Previously, sirandreww-starkware (Andrew Luka) wrote…

I want to keep them, the file gets larger and I use these to separate different sections I can add a TODO to remove these later but I think they should remain if we don't want to split this file up

If the file is too large then the correct thing to do is to split it


crates/apollo_propeller/src/types.rs line 12 at r1 (raw file):

Previously, guy-starkware wrote…

From what I've seen in other places, we only implement a Display function if we really need it to look prettier (e.g., the debug dump is too cluttered). IMO if you don't need this, better just derive(Debug) and use that (less code to read is always welcome).

On the other hand, if you want this to work as a standalone crate, maybe there's motivation to be "complete" about user-facing functionality. I don't know. Whatever makes more sense to you.

I agree with @guy-starkware 's less paragraph. Let's just delete this code

@sirandreww-starkware sirandreww-starkware changed the base branch from 12-23-apollo_propeller_add_reed-solomon_erasure_coding to graphite-base/11048 January 11, 2026 10:34
Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama made 1 comment.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @sirandreww-starkware).


crates/apollo_propeller/src/types.rs line 10 at r2 (raw file):

#[derive(Debug, Default, PartialEq, Clone, Copy, Ord, PartialOrd, Eq, Hash)]
pub struct Channel(pub u32);

Rename to ChannelId

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama made 1 comment.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @sirandreww-starkware).


crates/apollo_propeller/src/types.rs line 12 at r1 (raw file):

Previously, ShahakShama wrote…

I agree with @guy-starkware 's less paragraph. Let's just delete this code

first*

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama made 2 comments.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @sirandreww-starkware).


crates/apollo_propeller/src/types.rs line 23 at r1 (raw file):

Previously, sirandreww-starkware (Andrew Luka) wrote…

^

^


crates/apollo_propeller/src/types.rs line 34 at r1 (raw file):

Previously, sirandreww-starkware (Andrew Luka) wrote…

^

^

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @sirandreww-starkware).

Copy link
Contributor Author

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

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

@sirandreww-starkware made 5 comments.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @noamsp-starkware and @ShahakShama).


crates/apollo_propeller/src/types.rs line 7 at r1 (raw file):

Previously, ShahakShama wrote…

If the file is too large then the correct thing to do is to split it

correct


crates/apollo_propeller/src/types.rs line 12 at r1 (raw file):

Previously, ShahakShama wrote…

first*

Done.


crates/apollo_propeller/src/types.rs line 23 at r1 (raw file):

Previously, ShahakShama wrote…

^

Done.


crates/apollo_propeller/src/types.rs line 34 at r1 (raw file):

Previously, ShahakShama wrote…

^

Done.


crates/apollo_propeller/src/types.rs line 10 at r2 (raw file):

Previously, ShahakShama wrote…

Rename to ChannelId

I will put a TODO for now because I want to do this all over the code when it's all in. Do you accept?

@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_base_types_channel_shardindex_messageroot_ branch from 2193ed5 to 7a08a3c Compare January 12, 2026 14:23
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/11048 to 12-23-apollo_propeller_add_reed-solomon_erasure_coding January 12, 2026 14:23
Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed 2 files and all commit messages, and resolved 5 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware).

@graphite-app graphite-app bot changed the base branch from 12-23-apollo_propeller_add_reed-solomon_erasure_coding to graphite-base/11048 January 13, 2026 08:10
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_base_types_channel_shardindex_messageroot_ branch from 7a08a3c to 8bed384 Compare January 13, 2026 10:54
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_base_types_channel_shardindex_messageroot_ branch from 8bed384 to 871b8eb Compare January 13, 2026 15:06
@graphite-app graphite-app bot changed the base branch from graphite-base/11048 to main-v0.14.1-committer January 13, 2026 15:06
@graphite-app
Copy link

graphite-app bot commented Jan 13, 2026

Merge activity

  • Jan 13, 3:07 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

@sirandreww-starkware sirandreww-starkware added this pull request to the merge queue Jan 14, 2026
Merged via the queue into main-v0.14.1-committer with commit 208ae26 Jan 14, 2026
32 of 44 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 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.

4 participants

Comments