MetaplexAuctioneerDepositLayout.fromBuffer constructor

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

Implementation

factory MetaplexAuctioneerDepositLayout.fromBuffer(List<int> data) {
  final decode = MetaplexAuctioneerProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexAuctioneerProgramInstruction.deposit.insturction);
  return MetaplexAuctioneerDepositLayout(
      amount: decode["amount"],
      auctioneerAuthorityBump: decode["auctioneerAuthorityBump"],
      escrowPaymentBump: decode["escrowPaymentBump"]);
}