TokenLendingProgram.fromBytes constructor

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

Implementation

factory TokenLendingProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = TokenLendingProgramConst.lendingProgramId,
}) {
  return TokenLendingProgram(
      layout: TokenLendingProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}