StakePoolProgram.fromBytes constructor

StakePoolProgram.fromBytes({
  1. required List<AccountMeta> keys,
  2. required List<int> instructionBytes,
  3. SolAddress programId = StakePoolProgramConst.programId,
})

Implementation

factory StakePoolProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = StakePoolProgramConst.programId,
}) {
  return StakePoolProgram(
      layout: StakePoolProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}