MetaplexAuctioneerSellLayout.fromBuffer constructor

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

Constructs the layout from raw bytes.

Implementation

factory MetaplexAuctioneerSellLayout.fromBuffer(List<int> data) {
  final decode = MetaplexAuctioneerProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexAuctioneerProgramInstruction.sell.insturction);
  return MetaplexAuctioneerSellLayout(
      tradeStateBump: decode["tradeStateBump"],
      freeTradeStateBump: decode["freeTradeStateBump"],
      programAsSignerBump: decode["programAsSignerBump"],
      auctioneerAuthorityBump: decode["auctioneerAuthorityBump"],
      tokenSize: decode["tokenSize"],
      startTime: decode["startTime"],
      endTime: decode["endTime"],
      allowHighBidCancel: decode["allowHighBidCancel"],
      minBidIncrement: decode["minBidIncrement"],
      reservePrice: decode["reservePrice"],
      timeExtDelta: decode["timeExtDelta"],
      timeExtPeriod: decode["timeExtPeriod"]);
}