Skip to content

feat(flrp): add TxBuilder for P-chain staking#8063

Draft
joshisakshi wants to merge 1 commit intomasterfrom
SC-5233
Draft

feat(flrp): add TxBuilder for P-chain staking#8063
joshisakshi wants to merge 1 commit intomasterfrom
SC-5233

Conversation

@joshisakshi
Copy link
Contributor

@joshisakshi joshisakshi commented Feb 5, 2026

TICKET: SC-5233

Implement transaction builder for AddPermissionlessDelegator transactions on Flare P-chain, enabling stake delegation to validators.

Key changes:

  • Add PermissionlessDelegatorTxBuilder with full build and initBuilder support
  • Use post-Etna API (pvm.e.newAddPermissionlessDelegatorTx) exclusively
  • Require feeState parameter (consistent with Import/Export builders)
  • Add AddPermissionlessDelegatorTx to SerializedTx type union
  • Add FlrpStakingOptions interface for delegation parameters
  • Add transaction type verification in flrp.ts
  • Comprehensive unit tests for builder validation

Note: Rewards always go to the C-chain address derived from the delegator's public key though it does not affect onchain reward distribution and rewardAddress param is kept for rewards tracking

Copy link
Contributor

@Vijay-Jagannathan Vijay-Jagannathan left a comment

Choose a reason for hiding this comment

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

few comments

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.

3 participants