getSwapJettonToTonTxParams method

Future<SenderArguments> getSwapJettonToTonTxParams({
  1. required InternalAddress userWalletAddress,
  2. required InternalAddress offerJettonAddress,
  3. required Pton proxyTon,
  4. required BigInt offerAmount,
  5. required BigInt minAskAmount,
  6. InternalAddress? refundAddress,
  7. InternalAddress? excessesAddress,
  8. InternalAddress? referralAddress,
  9. BigInt? referralValue,
  10. Cell? customPayload,
  11. BigInt? customPayloadForwardGasAmount,
  12. Cell? refundPayload,
  13. BigInt? refundForwardGasAmount,
  14. BigInt? gasAmount,
  15. BigInt? forwardGasAmount,
  16. BigInt? queryId,
})

Implementation

Future<SenderArguments> getSwapJettonToTonTxParams({
  required InternalAddress userWalletAddress,
  required InternalAddress offerJettonAddress,
  required Pton proxyTon,
  required BigInt offerAmount,
  required BigInt minAskAmount,
  InternalAddress? refundAddress,
  InternalAddress? excessesAddress,
  InternalAddress? referralAddress,
  BigInt? referralValue,
  Cell? customPayload,
  BigInt? customPayloadForwardGasAmount,
  Cell? refundPayload,
  BigInt? refundForwardGasAmount,
  BigInt? gasAmount,
  BigInt? forwardGasAmount,
  BigInt? queryId,
}) async {
  return await getSwapJettonToJettonTxParams(
    askJettonAddress: proxyTon.address,
    gasAmount: gasAmount ?? gasConstants.swapJettonToTon.gasAmount,
    forwardGasAmount:
        forwardGasAmount ?? gasConstants.swapJettonToTon.forwardGasAmount,
    queryId: queryId,
    userWalletAddress: userWalletAddress,
    offerAmount: offerAmount,
    minAskAmount: minAskAmount,
    offerJettonAddress: offerJettonAddress,
    referralAddress: referralAddress,
    refundAddress: refundAddress,
    customPayload: customPayload,
    customPayloadForwardGasAmount: customPayloadForwardGasAmount,
    excessesAddress: excessesAddress,
    referralValue: referralValue,
    refundForwardGasAmount: refundForwardGasAmount,
    refundPayload: refundPayload,
  );
}