getSwapJettonToTonTxParams method
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,
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,
);
}