rainbow-swap-sdk 1.4.8 → 1.4.9
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GenericAbortSignal } from 'axios';
|
|
1
2
|
import { AppStatus } from '../types/app-status.type';
|
|
2
3
|
import { Asset } from '../types/asset.type';
|
|
3
4
|
import { AssetsListParams } from '../types/assets-list-patams.type';
|
|
@@ -6,5 +7,5 @@ import { BestRouteParams } from '../types/best-route-params.type';
|
|
|
6
7
|
import { BestRouteResponse } from '../types/best-route-response.type';
|
|
7
8
|
export declare const getAssetsRecord: () => Promise<AssetsRecord>;
|
|
8
9
|
export declare const getAssetsList: (params: AssetsListParams) => Promise<Asset[]>;
|
|
9
|
-
export declare const getBestRoute: (params: BestRouteParams) => Promise<BestRouteResponse>;
|
|
10
|
+
export declare const getBestRoute: (params: BestRouteParams, signal?: GenericAbortSignal) => Promise<BestRouteResponse>;
|
|
10
11
|
export declare const getAppStatus: () => Promise<AppStatus>;
|
package/dist/utils/api.utils.js
CHANGED
|
@@ -6,7 +6,7 @@ const getAssetsRecord = () => globals_1.API.get('/assets-record').then(response
|
|
|
6
6
|
exports.getAssetsRecord = getAssetsRecord;
|
|
7
7
|
const getAssetsList = (params) => globals_1.API.post('/assets-list', params).then(response => response.data);
|
|
8
8
|
exports.getAssetsList = getAssetsList;
|
|
9
|
-
const getBestRoute = (params) => globals_1.API.get('/best-route', { params }).then(response => response.data);
|
|
9
|
+
const getBestRoute = (params, signal) => globals_1.API.get('/best-route', { params, signal }).then(response => response.data);
|
|
10
10
|
exports.getBestRoute = getBestRoute;
|
|
11
11
|
const getAppStatus = () => globals_1.API.get('/app-status').then(response => response.data);
|
|
12
12
|
exports.getAppStatus = getAppStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rainbow-swap-sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "SDK for building applications on top of Rainbow.ag - Swap Aggregator on TON 💎.",
|
|
5
5
|
"repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git",
|
|
6
6
|
"license": "Apache-2.0",
|