rainbow-swap-sdk 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,10 @@ const dedust_getTransferParams = async (route, queryId, gasAmount, senderAddress
|
|
|
30
30
|
const poolAddress = core_1.Address.parse(firstRouteStep.dexPairAddress);
|
|
31
31
|
const minOutputAmount = (0, slippage_tolerance_utils_1.applySlippageTolerance)(firstRouteStep.outputAssetAmount, slippageTolerance);
|
|
32
32
|
const nextSwapStep = createNextSwapStepPayload(route.slice(1), slippageTolerance);
|
|
33
|
-
const swapParams = {
|
|
33
|
+
const swapParams = {
|
|
34
|
+
recipientAddress: receiverAddress,
|
|
35
|
+
referralAddress: globals_1.REFERRAL_ADDRESS
|
|
36
|
+
};
|
|
34
37
|
if (firstRouteStep.inputAssetAddress === globals_1.TON) {
|
|
35
38
|
return {
|
|
36
39
|
to: vaultAddress,
|
package/dist/globals.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Address } from '@ton/core';
|
|
1
2
|
import { TonClient } from '@ton/ton';
|
|
2
3
|
export declare const TON = "ton";
|
|
3
4
|
export declare const WORKCHAIN = 0;
|
|
@@ -5,3 +6,4 @@ export declare const API: import("axios").AxiosInstance;
|
|
|
5
6
|
export declare const TON_CLIENT: TonClient;
|
|
6
7
|
export declare const GAS_AMOUNT: bigint;
|
|
7
8
|
export declare const JETTON_TRANSFER_GAS_AMOUNT: bigint;
|
|
9
|
+
export declare const REFERRAL_ADDRESS: Address;
|
package/dist/globals.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.JETTON_TRANSFER_GAS_AMOUNT = exports.GAS_AMOUNT = exports.TON_CLIENT = exports.API = exports.WORKCHAIN = exports.TON = void 0;
|
|
6
|
+
exports.REFERRAL_ADDRESS = exports.JETTON_TRANSFER_GAS_AMOUNT = exports.GAS_AMOUNT = exports.TON_CLIENT = exports.API = exports.WORKCHAIN = exports.TON = void 0;
|
|
7
7
|
const core_1 = require("@ton/core");
|
|
8
8
|
const ton_1 = require("@ton/ton");
|
|
9
9
|
const axios_1 = __importDefault(require("axios"));
|
|
@@ -17,3 +17,4 @@ exports.TON_CLIENT = new ton_1.TonClient({
|
|
|
17
17
|
});
|
|
18
18
|
exports.GAS_AMOUNT = (0, core_1.toNano)('0.255');
|
|
19
19
|
exports.JETTON_TRANSFER_GAS_AMOUNT = (0, core_1.toNano)('0.065');
|
|
20
|
+
exports.REFERRAL_ADDRESS = core_1.Address.parse('UQBBPVrn4Y6F0Fci4j0mXuSAXmRDeE-nZCRIInQsNC9__8vG');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rainbow-swap-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "SDK for building applications on top of Rainbow Swap 🌈 - The Next Gen DEX Aggregator on TON 💎.",
|
|
5
5
|
"repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git",
|
|
6
6
|
"license": "Apache-2.0",
|