StakePoolAccount constructor

const StakePoolAccount({
  1. required StakePoolAccountType accountType,
  2. required SolAddress manager,
  3. required SolAddress staker,
  4. required SolAddress stakeDepositAuthority,
  5. required int stakeWithdrawBumpSeed,
  6. required SolAddress validatorList,
  7. required SolAddress reserveStake,
  8. required SolAddress poolMint,
  9. required SolAddress managerFeeAccount,
  10. required SolAddress tokenProgramId,
  11. required BigInt totalLamports,
  12. required BigInt poolTokenSupply,
  13. required BigInt lastUpdateEpoch,
  14. required StakeLockup lockup,
  15. required StakePoolFee epochFee,
  16. StakePoolFee? nextEpochFee,
  17. SolAddress? preferredDepositValidatorVoteAddress,
  18. SolAddress? preferredWithdrawValidatorVoteAddress,
  19. required StakePoolFee stakeDepositFee,
  20. required StakePoolFee stakeWithdrawalFee,
  21. required StakePoolFee? nextStakeWithdrawalFee,
  22. required int stakeReferralFee,
  23. SolAddress? solDepositAuthority,
  24. required StakePoolFee solDepositFee,
  25. required int solReferralFee,
  26. SolAddress? solWithdrawAuthority,
  27. required StakePoolFee solWithdrawalFee,
  28. StakePoolFee? nextSolWithdrawalFee,
  29. required BigInt lastEpochPoolTokenSupply,
  30. required BigInt lastEpochTotalLamports,
  31. required SolAddress address,
})

Implementation

const StakePoolAccount(
    {required this.accountType,
    required this.manager,
    required this.staker,
    required this.stakeDepositAuthority,
    required this.stakeWithdrawBumpSeed,
    required this.validatorList,
    required this.reserveStake,
    required this.poolMint,
    required this.managerFeeAccount,
    required this.tokenProgramId,
    required this.totalLamports,
    required this.poolTokenSupply,
    required this.lastUpdateEpoch,
    required this.lockup,
    required this.epochFee,
    this.nextEpochFee,
    this.preferredDepositValidatorVoteAddress,
    this.preferredWithdrawValidatorVoteAddress,
    required this.stakeDepositFee,
    required this.stakeWithdrawalFee,
    required this.nextStakeWithdrawalFee,
    required this.stakeReferralFee,
    this.solDepositAuthority,
    required this.solDepositFee,
    required this.solReferralFee,
    this.solWithdrawAuthority,
    required this.solWithdrawalFee,
    this.nextSolWithdrawalFee,
    required this.lastEpochPoolTokenSupply,
    required this.lastEpochTotalLamports,
    required this.address});