StakePoolProgram.updateTokenMetadata constructor
StakePoolProgram.updateTokenMetadata({
- required SolAddress stakePool,
- required SolAddress manager,
- required SolAddress tokenMetadata,
- required SolAddress withdrawAuthority,
- required StakePoolUpdateTokenMetaDataLayout layout,
Update token metadata for the stake-pool token in the metaplex-token program
Implementation
factory StakePoolProgram.updateTokenMetadata(
{
/// Stake pool
required SolAddress stakePool,
/// Manager
required SolAddress manager,
/// Token metadata account
required SolAddress tokenMetadata,
/// Stake pool withdraw authority
required SolAddress withdrawAuthority,
required StakePoolUpdateTokenMetaDataLayout layout}) {
return StakePoolProgram(
layout: layout,
keys: [
stakePool.toReadOnly(),
manager.toSigner(),
withdrawAuthority.toReadOnly(),
tokenMetadata.toWritable(),
SPLTokenProgramConst.metaDataProgramId.toReadOnly(),
],
programId: StakePoolProgramConst.programId);
}