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

Rename l1ID -> subnetID #695

Merged
merged 4 commits into from
Jan 6, 2025
Merged

Rename l1ID -> subnetID #695

merged 4 commits into from
Jan 6, 2025

Conversation

cam-schultz
Copy link
Contributor

Why this should be merged

Partially reverts the recent nomenclature changes to continue to use subnetID instead of l1ID.

subnetID should be used to refer to both Subnets that have not been converted, and L1s that have. It's not as explicit as it could be, but note that the ACP-77 message specifications use subnetID to identify the converted L1. Also note that the subnetID is the tx hash of the CreateSubnetTx, and therefore does not change when the Subnet is converted to an L1. As such, changing the name of the identifier of a static value depending on the Subnet/L1 status would be confusing in its own right. Eventually, once Subnets are fully deprecated in favor of L1s, it will make more sense to revisit this terminology.

How this works

Renames all instances of l1ID to subnetID

How this was tested

CI

How is this documented

Adds a note describing this nomenclature, as it jmay be confusing why validator manager contracts that by definition only apply to L1s would use the Subnet terminology.

Copy link
Contributor

@bernard-avalabs bernard-avalabs left a comment

Choose a reason for hiding this comment

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

LGTM. The comment about the naming scheme is very helpful.

@cam-schultz cam-schultz merged commit 2afc96d into main Jan 6, 2025
17 checks passed
@cam-schultz cam-schultz deleted the revert-rename-subnet-id branch January 6, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✅
Development

Successfully merging this pull request may close these issues.

4 participants