StakeSplitLayout.fromBuffer constructor

StakeSplitLayout.fromBuffer(
  1. List<int> data
)

Implementation

factory StakeSplitLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: StakeProgramInstruction.split.insturction);
  return StakeSplitLayout(lamports: decode["lamports"]);
}