createBurnBody method

Cell createBurnBody({
  1. required InternalAddress responseAddress,
  2. required BigInt amount,
  3. BigInt? queryId,
})

Implementation

Cell createBurnBody({
  required InternalAddress responseAddress,
  required BigInt amount,
  BigInt? queryId,
}) {
  return beginCell()
      .storeUint(DexOpCodes.BURN.op, 32)
      .storeUint(queryId ?? BigInt.zero, 64)
      .storeCoins(amount)
      .storeAddress(responseAddress)
      .endCell();
}