StakeProgram.fromBytes constructor

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

Implementation

factory StakeProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = StakeProgramConst.programId,
}) {
  return StakeProgram(
      layout: StakeProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}