StakeAuthorizeLayout.fromBuffer constructor

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

Implementation

factory StakeAuthorizeLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: StakeProgramInstruction.authorize.insturction);
  return StakeAuthorizeLayout._(
      decode["newAuthorized"], decode["stakeAuthorizationType"]);
}