Skip to content

feat: support acp-236#421

Open
meeh0w wants to merge 6 commits intomainfrom
feat/acp-236
Open

feat: support acp-236#421
meeh0w wants to merge 6 commits intomainfrom
feat/acp-236

Conversation

@meeh0w
Copy link
Copy Markdown
Contributor

@meeh0w meeh0w commented Apr 23, 2026

Summary

Adds support for ACP-236 (Auto-Renewed Validators) so wallets can parse and render the three new P-Chain transaction types end-to-end.

Related PRs:

Changes

  • Types (@avalabs/vm-module-types) – introduce new staking tx shapes and TxType values:
    • AddAutoRenewedValidatornodeID, stake, delegationFee, weight, autoCompoundRewardShares, period, optional BLS publicKey/signature
    • SetAutoRenewedValidatorConfig – updates period and autoCompoundRewardShares for an existing auto-renewed validator
    • RewardAutoRenewedValidator – references the original validator tx ID
  • Avalanche module – new UI builders under transaction-detail-sections/ that render Account, Node, Stake Amount, Delegation Fee, Cycle Duration and Compound Rewards %, plus the matching wiring in get-transaction-detail-sections.ts and parse-tx-details.ts. Unit handling converts period (seconds → days) and PPM values (×10,000 → %).
  • SDK bumps – updated @avalabs/avalanchejs, wallet SDK and related packages to the versions that expose ACP-236 on-chain data; tests adjusted accordingly.
  • RefactorgetProvider() now takes a Network instead of resolving it internally, simplifying callers in get-address, get-balances, get-network-fee, derive-address and avalanche-send-transaction.

Testing

  • Existing unit tests pass (yarn test)
  • New get-transaction-detail-sections tests cover all three ACP-236 tx types
  • Verify rendering in core-extension against the companion PR core-extension#907

@meeh0w meeh0w changed the title Feat/acp 236 feat: support acp-236 Apr 23, 2026
@meeh0w meeh0w marked this pull request as ready for review April 24, 2026 16:46
@meeh0w meeh0w requested a review from a team as a code owner April 24, 2026 16:46
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.

1 participant