rubic-sdk 6.0.0-alpha.ton.37 → 6.0.0-alpha.ton.38
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.
@@ -9,8 +9,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SymbiosisApiService = void 0;
|
10
10
|
const errors_1 = require("../../../../../common/errors");
|
11
11
|
const decorators_1 = require("../../../../../common/utils/decorators");
|
12
|
-
const blockchain_name_1 = require("../../../../../core/blockchain/models/blockchain-name");
|
13
|
-
const blockchain_id_1 = require("../../../../../core/blockchain/utils/blockchains-info/constants/blockchain-id");
|
14
12
|
const injector_1 = require("../../../../../core/injector/injector");
|
15
13
|
const symbiosis_api_common_1 = require("../constants/symbiosis-api-common");
|
16
14
|
class SymbiosisApiService {
|
@@ -29,10 +27,11 @@ class SymbiosisApiService {
|
|
29
27
|
* @param params Swap request body
|
30
28
|
*/
|
31
29
|
static async getCrossChainSwapTx(params) {
|
32
|
-
const url =
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
// const url =
|
31
|
+
// params.tokenOut.chainId === blockchainId[BLOCKCHAIN_NAME.BITCOIN]
|
32
|
+
// ? `${SYMBIOSIS_API_ENDPOINT}/v1/swap`
|
33
|
+
// : `${SYMBIOSIS_API_ENDPOINT}/v1/swapping/exact_in?partnerId=rubic`;
|
34
|
+
const res = await injector_1.Injector.httpClient.post(`${symbiosis_api_common_1.SYMBIOSIS_API_ENDPOINT}/v1/swap`, params);
|
36
35
|
if ('code' in res && 'message' in res) {
|
37
36
|
throw new errors_1.RubicSdkError(res.message);
|
38
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"symbiosis-api-service.js","sourceRoot":"","sources":["../../../../../../src/features/common/providers/symbiosis/services/symbiosis-api-service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAkD;AAClD,4DAAoD;AACpD,
|
1
|
+
{"version":3,"file":"symbiosis-api-service.js","sourceRoot":"","sources":["../../../../../../src/features/common/providers/symbiosis/services/symbiosis-api-service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAkD;AAClD,4DAAoD;AACpD,yDAAsD;AAItD,4EAA2E;AAO3E,MAAa,mBAAmB;IAC5B;;OAEG;IAIiB,AAAb,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAChC,IAA8B;QAE9B,MAAM,GAAG,GAAG,MAAM,mBAAQ,CAAC,UAAU,CAAC,IAAI,CACtC,GAAG,6CAAsB,UAAU,EACnC,IAAI,CACP,CAAC;QAEF,IAAI,MAAM,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE;YACnC,MAAM,IAAI,sBAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACxC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAED;;;OAGG;IAIiB,AAAb,MAAM,CAAC,KAAK,CAAC,mBAAmB,CACnC,MAA+B;QAE/B,cAAc;QACd,wEAAwE;QACxE,gDAAgD;QAChD,8EAA8E;QAE9E,MAAM,GAAG,GAAG,MAAM,mBAAQ,CAAC,UAAU,CAAC,IAAI,CACtC,GAAG,6CAAsB,UAAU,EACnC,MAAM,CACT,CAAC;QAEF,IAAI,MAAM,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE;YACnC,MAAM,IAAI,sBAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACxC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AAhDD,kDAgDC;AAzCuB;IAHnB,IAAA,kBAAK,EAAC;QACH,MAAM,EAAE,KAAM;KACjB,CAAC;iDAcD;AASmB;IAHnB,IAAA,kBAAK,EAAC;QACH,MAAM,EAAE,KAAM;KACjB,CAAC;oDAmBD"}
|