MetaplexAuctionHouseBuyLayout.fromBuffer constructor
Constructs the layout from raw bytes.
Implementation
factory MetaplexAuctionHouseBuyLayout.fromBuffer(List<int> data) {
final decode = MetaplexAuctionHouseProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: MetaplexAuctionHouseProgramInstruction.buy.insturction);
return MetaplexAuctionHouseBuyLayout(
tradeStateBump: decode["tradeStateBump"],
escrowPaymentBump: decode["escrowPaymentBump"],
buyerPrice: decode["buyerPrice"],
tokenSize: decode["tokenSize"]);
}