@velora-dex/sdk 9.3.0-dev.1 → 9.3.0-dev.2
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.
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/methods/delta/getBridgeInfo.d.ts +2 -1
- package/dist/methods/delta/getBridgeInfo.d.ts.map +1 -1
- package/dist/methods/delta/getDeltaPrice.d.ts +3 -7
- package/dist/methods/delta/getDeltaPrice.d.ts.map +1 -1
- package/dist/methods/delta/helpers/types.d.ts +3 -0
- package/dist/methods/delta/helpers/types.d.ts.map +1 -1
- package/dist/sdk.cjs.development.js +5 -6
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +5 -6
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/methods/delta/getBridgeInfo.ts +4 -4
- package/src/methods/delta/getDeltaPrice.ts +8 -6
- package/src/methods/delta/helpers/types.ts +3 -0
package/dist/sdk.esm.js
CHANGED
|
@@ -4283,7 +4283,7 @@ var constructGetBridgeInfo = function constructGetBridgeInfo(_ref) {
|
|
|
4283
4283
|
var deltaBridgeUrl = apiURL + "/delta/prices";
|
|
4284
4284
|
var getBridgeInfo = /*#__PURE__*/function () {
|
|
4285
4285
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, requestParams) {
|
|
4286
|
-
var _params, allowBridgeAndSwap, bridges,
|
|
4286
|
+
var _params, allowBridgeAndSwap, bridges, bridgesString, search, fetchURL, data;
|
|
4287
4287
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4288
4288
|
while (1) switch (_context.prev = _context.next) {
|
|
4289
4289
|
case 0:
|
|
@@ -4291,23 +4291,22 @@ var constructGetBridgeInfo = function constructGetBridgeInfo(_ref) {
|
|
|
4291
4291
|
params = {};
|
|
4292
4292
|
}
|
|
4293
4293
|
_params = params, allowBridgeAndSwap = _params.allowBridgeAndSwap, bridges = _params.bridges;
|
|
4294
|
-
allowBridgeAndSwapString = allowBridgeAndSwap ? 'true' : 'false';
|
|
4295
4294
|
bridgesString = bridges ? bridges.join(',') : undefined;
|
|
4296
4295
|
search = constructSearchString({
|
|
4297
|
-
allowBridgeAndSwap:
|
|
4296
|
+
allowBridgeAndSwap: !!allowBridgeAndSwap,
|
|
4298
4297
|
bridges: bridgesString
|
|
4299
4298
|
});
|
|
4300
4299
|
fetchURL = deltaBridgeUrl + "/bridge-info" + search;
|
|
4301
|
-
_context.next =
|
|
4300
|
+
_context.next = 7;
|
|
4302
4301
|
return fetcher({
|
|
4303
4302
|
url: fetchURL,
|
|
4304
4303
|
method: 'GET',
|
|
4305
4304
|
requestParams: requestParams
|
|
4306
4305
|
});
|
|
4307
|
-
case
|
|
4306
|
+
case 7:
|
|
4308
4307
|
data = _context.sent;
|
|
4309
4308
|
return _context.abrupt("return", data.supportedTokens);
|
|
4310
|
-
case
|
|
4309
|
+
case 9:
|
|
4311
4310
|
case "end":
|
|
4312
4311
|
return _context.stop();
|
|
4313
4312
|
}
|