MetaplexAuctioneerExecuteSaleLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory MetaplexAuctioneerExecuteSaleLayout.fromBuffer(List<int> data) {
  final decode = MetaplexAuctioneerProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction:
          MetaplexAuctioneerProgramInstruction.executeSale.insturction);
  return MetaplexAuctioneerExecuteSaleLayout(
      escrowPaymentBump: decode["escrowPaymentBump"],
      freeTradeStateBump: decode["freeTradeStateBump"],
      programAsSignerBump: decode["programAsSignerBump"],
      auctioneerAuthorityBump: decode["auctioneerAuthorityBump"],
      buyerPrice: decode["buyerPrice"],
      tokenSize: decode["tokenSize"]);
}