-
Notifications
You must be signed in to change notification settings - Fork 3
feat!: add subnet add-validator + align P-Chain command names with avalanchego tx types (v2.0.0)
#33
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
Open
owenwahlgren
wants to merge
4
commits into
main
Choose a base branch
from
feature/subnet-add-validator
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat!: add subnet add-validator + align P-Chain command names with avalanchego tx types (v2.0.0)
#33
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5f3f51f
feat: add `subnet add-validator` command (AddSubnetValidatorTx)
owenwahlgren 2404412
refactor: align P-Chain command names with avalanchego tx types
owenwahlgren 3e9ae74
refactor!: remove deprecated command aliases (hard cutover)
owenwahlgren 1342d93
fix: address PR review — CI guard, group footgun, subnet add-validato…
owenwahlgren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,22 @@ | ||
| # P-Chain Operations Reference | ||
|
|
||
| | Operation | Command | SDK Method | | ||
| |-----------|---------|------------| | ||
| | Send AVAX | `transfer send` | `IssueBaseTx` | | ||
| | Export | `transfer export` | `IssueExportTx` | | ||
| | Import | `transfer import` | `IssueImportTx` | | ||
| | Add Validator | `validator add` | `IssueAddPermissionlessValidatorTx` | | ||
| | Add Delegator | `validator delegate` | `IssueAddPermissionlessDelegatorTx` | | ||
| | Create Subnet | `subnet create` | `IssueCreateSubnetTx` | | ||
| | Transfer Subnet Ownership | `subnet transfer-ownership` | `IssueTransferSubnetOwnershipTx` | | ||
| | Convert to L1 | `subnet convert-l1` | `IssueConvertSubnetToL1Tx` | | ||
| | Register L1 Validator | `l1 register-validator` | `IssueRegisterL1ValidatorTx` | | ||
| | Set L1 Validator Weight | `l1 set-weight` | `IssueSetL1ValidatorWeightTx` | | ||
| | Increase L1 Balance | `l1 add-balance` | `IssueIncreaseL1ValidatorBalanceTx` | | ||
| | Disable L1 Validator | `l1 disable-validator` | `IssueDisableL1ValidatorTx` | | ||
| | Create Chain | `chain create` | `IssueCreateChainTx` | | ||
| Command names mirror the avalanchego transaction type each one issues. The | ||
| "Previous name" column lists names that were **removed in v2.0.0** (no aliases) — | ||
| use it to migrate existing scripts. | ||
|
|
||
| | Tx Type | Command | SDK Method | Previous name (removed in v2.0.0) | | ||
| |---------|---------|------------|-----------------------------------| | ||
| | `BaseTx` | `transfer send` | `IssueBaseTx` | — | | ||
| | `ExportTx` | `transfer export` | `IssueExportTx` | — | | ||
| | `ImportTx` | `transfer import` | `IssueImportTx` | — | | ||
| | `AddPermissionlessValidatorTx` | `validator add-permissionless` | `IssueAddPermissionlessValidatorTx` | `validator add` | | ||
| | `AddPermissionlessDelegatorTx` | `validator add-permissionless-delegator` | `IssueAddPermissionlessDelegatorTx` | `validator delegate` | | ||
| | `CreateSubnetTx` | `subnet create` | `IssueCreateSubnetTx` | — | | ||
| | `TransferSubnetOwnershipTx` | `subnet transfer-ownership` | `IssueTransferSubnetOwnershipTx` | — | | ||
| | `ConvertSubnetToL1Tx` | `subnet convert-to-l1` | `IssueConvertSubnetToL1Tx` | `subnet convert-l1` | | ||
| | `AddSubnetValidatorTx` | `subnet add-validator` | `IssueAddSubnetValidatorTx` | — | | ||
| | `RegisterL1ValidatorTx` | `l1 register-validator` | `IssueRegisterL1ValidatorTx` | — | | ||
| | `SetL1ValidatorWeightTx` | `l1 set-validator-weight` | `IssueSetL1ValidatorWeightTx` | `l1 set-weight` | | ||
| | `IncreaseL1ValidatorBalanceTx` | `l1 increase-validator-balance` | `IssueIncreaseL1ValidatorBalanceTx` | `l1 add-balance` | | ||
| | `DisableL1ValidatorTx` | `l1 disable-validator` | `IssueDisableL1ValidatorTx` | — | | ||
| | `CreateChainTx` | `chain create` | `IssueCreateChainTx` | — | |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Question on
--start: avalanchego is pinned at v1.14.1 (post-Durango), where I believe the P-chain ignores the tx Start for subnet/permissionless validators — they begin at acceptance. If that is right, parseTimeRange returning now+30s and feeding it into the tx has no on-chain effect, so--startis effectively a no-op and might deserve a note in the flag help. Not specific to this PR (the existing add-permissionless commands do the same) — just flagging it since this new flag advertises a start time.