rainbow-swap-sdk
Advanced tools
Comparing version 1.3.6 to 1.4.0
@@ -1,10 +0,1 @@ | ||
import { Address } from '@ton/core'; | ||
import { TonClient } from '@ton/ton'; | ||
export declare const TON = "ton"; | ||
export declare const WORKCHAIN = 0; | ||
export declare const API: import("axios").AxiosInstance; | ||
export declare const TON_CLIENT: TonClient; | ||
export declare const GAS_AMOUNT: bigint; | ||
export declare const JETTON_TRANSFER_GAS_AMOUNT: bigint; | ||
export declare const REFERRAL_ADDRESS: Address; | ||
export declare const REFERRAL_VALUE = 0n; |
@@ -6,17 +6,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.REFERRAL_VALUE = exports.REFERRAL_ADDRESS = exports.JETTON_TRANSFER_GAS_AMOUNT = exports.GAS_AMOUNT = exports.TON_CLIENT = exports.API = exports.WORKCHAIN = exports.TON = void 0; | ||
const core_1 = require("@ton/core"); | ||
const ton_1 = require("@ton/ton"); | ||
exports.API = void 0; | ||
const axios_1 = __importDefault(require("axios")); | ||
exports.TON = 'ton'; | ||
exports.WORKCHAIN = 0; | ||
exports.API = axios_1.default.create({ | ||
baseURL: 'https://api.blackbot.technology/rainbow/api' | ||
}); | ||
exports.TON_CLIENT = new ton_1.TonClient({ | ||
endpoint: `https://api.blackbot.technology/ton-http-api/jsonRPC` | ||
}); | ||
exports.GAS_AMOUNT = (0, core_1.toNano)('0.255'); | ||
exports.JETTON_TRANSFER_GAS_AMOUNT = (0, core_1.toNano)('0.065'); | ||
exports.REFERRAL_ADDRESS = core_1.Address.parse('UQBBPVrn4Y6F0Fci4j0mXuSAXmRDeE-nZCRIInQsNC9__8vG'); | ||
exports.REFERRAL_VALUE = 0n; |
@@ -15,4 +15,2 @@ export { mapSwapRouteToRoute } from './dexes/shared/calculated-swap-route.utils'; | ||
export { getAssetsRecord, getBestRoute, getAppStatus } from './utils/api.utils'; | ||
export { getSwapMessages, getRainbowWalletActivationMessages } from './utils/message.utils'; | ||
export { getIsRainbowWalletActive, getIsActivationRequired } from './utils/rainbow-wallet.utils'; | ||
export { getQueryId } from './utils/transfer-params.utils'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getQueryId = exports.getIsActivationRequired = exports.getIsRainbowWalletActive = exports.getRainbowWalletActivationMessages = exports.getSwapMessages = exports.getAppStatus = exports.getBestRoute = exports.getAssetsRecord = exports.SwapRouteType = exports.RouteDirectionEnum = exports.DexTypeEnum = exports.mapSwapRouteToRoute = void 0; | ||
exports.getQueryId = exports.getAppStatus = exports.getBestRoute = exports.getAssetsRecord = exports.SwapRouteType = exports.RouteDirectionEnum = exports.DexTypeEnum = exports.mapSwapRouteToRoute = void 0; | ||
var calculated_swap_route_utils_1 = require("./dexes/shared/calculated-swap-route.utils"); | ||
@@ -16,9 +16,3 @@ Object.defineProperty(exports, "mapSwapRouteToRoute", { enumerable: true, get: function () { return calculated_swap_route_utils_1.mapSwapRouteToRoute; } }); | ||
Object.defineProperty(exports, "getAppStatus", { enumerable: true, get: function () { return api_utils_1.getAppStatus; } }); | ||
var message_utils_1 = require("./utils/message.utils"); | ||
Object.defineProperty(exports, "getSwapMessages", { enumerable: true, get: function () { return message_utils_1.getSwapMessages; } }); | ||
Object.defineProperty(exports, "getRainbowWalletActivationMessages", { enumerable: true, get: function () { return message_utils_1.getRainbowWalletActivationMessages; } }); | ||
var rainbow_wallet_utils_1 = require("./utils/rainbow-wallet.utils"); | ||
Object.defineProperty(exports, "getIsRainbowWalletActive", { enumerable: true, get: function () { return rainbow_wallet_utils_1.getIsRainbowWalletActive; } }); | ||
Object.defineProperty(exports, "getIsActivationRequired", { enumerable: true, get: function () { return rainbow_wallet_utils_1.getIsActivationRequired; } }); | ||
var transfer_params_utils_1 = require("./utils/transfer-params.utils"); | ||
Object.defineProperty(exports, "getQueryId", { enumerable: true, get: function () { return transfer_params_utils_1.getQueryId; } }); |
{ | ||
"name": "rainbow-swap-sdk", | ||
"version": "1.3.6", | ||
"description": "SDK for building applications on top of Rainbow Swap 🌈 - The Next Gen DEX Aggregator on TON 💎.", | ||
"version": "1.4.0", | ||
"description": "SDK for building applications on top of Rainbow Swap - Swap Aggregator on TON 💎.", | ||
"repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git", | ||
@@ -20,7 +20,3 @@ "license": "Apache-2.0", | ||
"@rnw-community/shared": "^0.74.0", | ||
"@ton/core": "^0.58.1", | ||
"@ton/crypto": "^3.3.0", | ||
"@ton/ton": "^15.0.0", | ||
"axios": "^1.7.7", | ||
"buffer": "^6.0.3" | ||
"axios": "^1.7.7" | ||
}, | ||
@@ -27,0 +23,0 @@ "devDependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2
1
32163
67
326
1
- Removed@ton/core@^0.58.1
- Removed@ton/crypto@^3.3.0
- Removed@ton/ton@^15.0.0
- Removedbuffer@^6.0.3
- Removed@ton/core@0.58.10.60.0(transitive)
- Removed@ton/crypto@3.3.0(transitive)
- Removed@ton/crypto-primitives@2.1.0(transitive)
- Removed@ton/ton@15.2.1(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@6.0.3(transitive)
- Removeddataloader@2.2.3(transitive)
- Removedieee754@1.2.1(transitive)
- Removedjssha@3.2.0(transitive)
- Removedsymbol.inspect@1.0.1(transitive)
- Removedteslabot@1.5.0(transitive)
- Removedtweetnacl@1.0.3(transitive)
- Removedzod@3.24.2(transitive)