rainbow-swap-sdk 1.0.0 → 1.0.1
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,8 +1,8 @@
|
|
|
1
1
|
import { AssetsRecordResponse } from '../types/assets-record-response.type';
|
|
2
2
|
import { BestRouteResponse } from '../types/best-route-response.type';
|
|
3
|
-
export declare const getAssetsRecord: () => Promise<
|
|
3
|
+
export declare const getAssetsRecord: () => Promise<AssetsRecordResponse>;
|
|
4
4
|
export declare const getBestRoute: (params: {
|
|
5
5
|
inputAssetAmount: string;
|
|
6
6
|
inputAssetAddress: string;
|
|
7
7
|
outputAssetAddress: string;
|
|
8
|
-
}) => Promise<
|
|
8
|
+
}) => Promise<BestRouteResponse>;
|
package/dist/utils/api.utils.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBestRoute = exports.getAssetsRecord = void 0;
|
|
4
4
|
const globals_1 = require("../globals");
|
|
5
|
-
const getAssetsRecord = () => globals_1.API.get('/assets-record')
|
|
5
|
+
const getAssetsRecord = () => globals_1.API.get('/assets-record')
|
|
6
|
+
.then(response => response.data);
|
|
6
7
|
exports.getAssetsRecord = getAssetsRecord;
|
|
7
|
-
const getBestRoute = (params) => globals_1.API.get('/best-route', { params })
|
|
8
|
+
const getBestRoute = (params) => globals_1.API.get('/best-route', { params })
|
|
9
|
+
.then(response => response.data);
|
|
8
10
|
exports.getBestRoute = getBestRoute;
|
package/package.json
CHANGED