MetaplexAuctionHouseAuctioneerExecutePartialSaleLayout.fromBuffer constructor

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

Implementation

factory MetaplexAuctionHouseAuctioneerExecutePartialSaleLayout.fromBuffer(
    List<int> data) {
  final decode = MetaplexAuctionHouseProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexAuctionHouseProgramInstruction
          .auctioneerExecutePartialSale.insturction);
  return MetaplexAuctionHouseAuctioneerExecutePartialSaleLayout(
      escrowPaymentBump: decode["escrowPaymentBump"],
      freeTradeStateBump: decode["freeTradeStateBump"],
      programAsSignerBump: decode["programAsSignerBump"],
      buyerPrice: decode["buyerPrice"],
      tokenSize: decode["tokenSize"],
      partialOrderPrice: decode["partialOrderPrice"],
      partialOrderSize: decode["partialOrderSize"]);
}