StakePoolReDelegateLayout.fromBuffer constructor

StakePoolReDelegateLayout.fromBuffer(
  1. List<int> bytes
)

Implementation

factory StakePoolReDelegateLayout.fromBuffer(List<int> bytes) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: bytes,
      instruction: StakePoolProgramInstruction.redelegate.insturction);
  return StakePoolReDelegateLayout(
      lamports: decode["lamports"],
      sourceTransientStakeSeed: decode["sourceTransientStakeSeed"],
      ephemeralStakeSeed: decode["ephemeralStakeSeed"],
      destinationTransientStakeSeed: decode["destinationTransientStakeSeed"]);
}