Skip to content

feat: support ACP-236 auto-renewed staking commands#28

Draft
anishnar wants to merge 4 commits into
mainfrom
anish/acp236-add-auto-renewed-validator
Draft

feat: support ACP-236 auto-renewed staking commands#28
anishnar wants to merge 4 commits into
mainfrom
anish/acp236-add-auto-renewed-validator

Conversation

@anishnar
Copy link
Copy Markdown

@anishnar anishnar commented Jun 3, 2026

Summary

  • add platform validator add-auto-renewed for ACP-236 auto-renewed validator creation inputs
  • add platform validator set-auto-config for next-cycle config updates and graceful cycle-end exit
  • add platform validator reward-auto for manual RewardAutoRenewedValidatorTx submission when needed
  • add pkg/pchain wrappers that map CLI config to the future AvalancheGo ACP-236 wallet APIs
  • keep the repo on released AvalancheGo and gate live submission with clear SDK-support errors until upstream wallet/devnet support lands
  • bump Go module metadata to go 1.25.11 and golang.org/x/net v0.53.0 so govulncheck uses fixed versions

Notes

  • RewardAutoRenewedValidatorTx is normally block-builder driven at cycle end; the CLI command exists for the manual trigger path requested in Support ACP-236 auto-renewed staking P-Chain transaction types #20.
  • Current released AvalancheGo does not expose public P-wallet issue methods for these ACP-236 txs yet, so this PR remains draft until we pin or implement against the matching devnet AvalancheGo code.
  • I checked the current ACP-236/devnet branches: they expose the tx types and visitor support, but not the public wallet issue helpers this PR is gated on.

Closes #20

Tests

  • go test ./...
  • GOTOOLCHAIN=go1.25.11 go test ./...
  • GOTOOLCHAIN=go1.25.9+auto go run golang.org/x/vuln/cmd/govulncheck@v1.2.0 ./...
  • go run . validator add-auto-renewed --help
  • go run . validator set-auto-config --help
  • go run . validator reward-auto --help

@anishnar anishnar changed the title Add auto-renewed validator command scaffold Support ACP-236 auto-renewed staking commands Jun 4, 2026
@anishnar anishnar changed the title Support ACP-236 auto-renewed staking commands feat: support ACP-236 auto-renewed staking commands Jun 4, 2026
Comment thread cmd/validator.go
if timestamp == 0 {
return 0, time.Time{}, fmt.Errorf("timestamp must be positive")
}
return timestamp, time.Unix(int64(timestamp), 0).UTC(), nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ACP-236 auto-renewed staking P-Chain transaction types

2 participants