StakePoolReDelegateLayout.fromBuffer constructor
StakePoolReDelegateLayout.fromBuffer(
- 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"]);
}