StakePoolAccount class

Initialized program details.

Inheritance

Constructors

StakePoolAccount({required StakePoolAccountType accountType, required SolAddress manager, required SolAddress staker, required SolAddress stakeDepositAuthority, required int stakeWithdrawBumpSeed, required SolAddress validatorList, required SolAddress reserveStake, required SolAddress poolMint, required SolAddress managerFeeAccount, required SolAddress tokenProgramId, required BigInt totalLamports, required BigInt poolTokenSupply, required BigInt lastUpdateEpoch, required StakeLockup lockup, required StakePoolFee epochFee, StakePoolFee? nextEpochFee, SolAddress? preferredDepositValidatorVoteAddress, SolAddress? preferredWithdrawValidatorVoteAddress, required StakePoolFee stakeDepositFee, required StakePoolFee stakeWithdrawalFee, required StakePoolFee? nextStakeWithdrawalFee, required int stakeReferralFee, SolAddress? solDepositAuthority, required StakePoolFee solDepositFee, required int solReferralFee, SolAddress? solWithdrawAuthority, required StakePoolFee solWithdrawalFee, StakePoolFee? nextSolWithdrawalFee, required BigInt lastEpochPoolTokenSupply, required BigInt lastEpochTotalLamports, required SolAddress address})
const
StakePoolAccount.fromBuffer({required List<int> data, required SolAddress address})
factory

Properties

accountType StakePoolAccountType
Account type, must be StakePool currently
final
address SolAddress
final
epochFee StakePoolFee
Fee taken as a proportion of rewards each epoch
final
hashCode int
The hash code for this object.
no setterinherited
lastEpochPoolTokenSupply BigInt
Last epoch's total pool tokens, used only for APR estimation
final
lastEpochTotalLamports BigInt
Last epoch's total lamports, used only for APR estimation
final
lastUpdateEpoch BigInt
Last epoch the totalLamports field was updated
final
layout → StructLayout
The layout representing the structure of the object for serialization.
no setteroverride
lockup StakeLockup
Lockup that all stakes in the pool must have
final
manager SolAddress
Manager authority, allows for updating the staker, manager, and fee account
final
managerFeeAccount SolAddress
Manager fee account
final
nextEpochFee StakePoolFee?
Fee for next epoch
final
nextSolWithdrawalFee StakePoolFee?
Future SOL withdrawal fee, to be set for the following epoch
final
nextStakeWithdrawalFee StakePoolFee?
Future stake withdrawal fee, to be set for the following epoch
final
poolMint SolAddress
Pool Mint
final
poolTokenSupply BigInt
Total supply of pool tokens (should always match the supply in the Pool Mint)
final
preferredDepositValidatorVoteAddress SolAddress?
Preferred deposit validator vote account pubkey
final
preferredWithdrawValidatorVoteAddress SolAddress?
Preferred withdraw validator vote account pubkey
final
reserveStake SolAddress
Reserve stake account, holds deactivated stake
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solDepositAuthority SolAddress?
Toggles whether the DepositSol instruction requires a signature from this solDepositAuthority
final
solDepositFee StakePoolFee
Fee assessed on SOL deposits
final
solReferralFee int
Fees paid out to referrers on referred SOL deposits. Expressed as a percentage (0 - 100) of SOL deposit fees. i.e. solDepositFee% of SOL deposited is collected as deposit fees for every deposit and solReferralFee% of the collected SOL deposit fees is paid out to the referrer
final
solWithdrawalFee StakePoolFee
Fee assessed on SOL withdrawals
final
solWithdrawAuthority SolAddress?
Toggles whether the WithdrawSol instruction requires a signature from the deposit_authority
final
stakeDepositAuthority SolAddress
Stake deposit authority
final
stakeDepositFee StakePoolFee
Fee assessed on stake deposits
final
staker SolAddress
Staker authority, allows for adding and removing validators, and managing stake distribution
final
stakeReferralFee int
Fees paid out to referrers on referred stake deposits. Expressed as a percentage (0 - 100) of deposit fees. i.e. stakeDepositFee% of stake deposited is collected as deposit fees for every deposit and stake_referral_fee% of the collected stake deposit fees is paid out to the referrer
final
stakeWithdrawalFee StakePoolFee
Fee assessed on withdrawals
final
stakeWithdrawBumpSeed int
Stake withdrawal authority bump seed
final
tokenProgramId SolAddress
Pool token program id
final
totalLamports BigInt
Total stake under management. Note that if lastUpdateEpoch does not match the current epoch then this field may not be accurate
final
validatorList SolAddress
Validator stake list storage account
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
Serializes the object to a map.
override
toBytes() List<int>
Converts the object to bytes using Borsh serialization.
inherited
toHex() String
Converts the object to a hexadecimal string.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited