rubic-sdk 5.42.0-alpha.coffee.4 → 5.42.0-alpha.coffee.5
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.
@@ -7,7 +7,7 @@ class CoffeeSwapApiService {
|
|
7
7
|
try {
|
8
8
|
const input_token = this.getCoffeeToken(params.srcToken);
|
9
9
|
const output_token = this.getCoffeeToken(params.dstToken);
|
10
|
-
const res = await injector_1.Injector.httpClient.post(`${this.apiUrl}/route`, {
|
10
|
+
const res = await injector_1.Injector.httpClient.post(`${this.apiUrl}/v1/route`, {
|
11
11
|
input_token,
|
12
12
|
output_token,
|
13
13
|
input_amount: params.srcToken.tokenAmount.toNumber(),
|
@@ -31,7 +31,7 @@ class CoffeeSwapApiService {
|
|
31
31
|
}
|
32
32
|
static async fetchTonEncodedConfigs(walletAddress, slippage, paths) {
|
33
33
|
try {
|
34
|
-
const res = await injector_1.Injector.httpClient.post(`${this.apiUrl}/route/transactions`, {
|
34
|
+
const res = await injector_1.Injector.httpClient.post(`${this.apiUrl}/v2/route/transactions`, {
|
35
35
|
sender_address: walletAddress,
|
36
36
|
slippage,
|
37
37
|
referral_name: 'rubic',
|
@@ -53,5 +53,5 @@ class CoffeeSwapApiService {
|
|
53
53
|
}
|
54
54
|
}
|
55
55
|
exports.CoffeeSwapApiService = CoffeeSwapApiService;
|
56
|
-
CoffeeSwapApiService.apiUrl = 'https://backend.swap.coffee
|
56
|
+
CoffeeSwapApiService.apiUrl = 'https://backend.swap.coffee';
|
57
57
|
//# sourceMappingURL=coffee-swap-api-service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coffee-swap-api-service.js","sourceRoot":"","sources":["../../../../../../../../src/features/on-chain/calculation-manager/providers/aggregators/coffee-swap/services/coffee-swap-api-service.ts"],"names":[],"mappings":";;;AAGA,yDAAsD;AAStD,MAAa,oBAAoB;IAGtB,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAwB;QACnD,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACzD,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAE1D,MAAM,GAAG,GAAG,MAAM,mBAAQ,CAAC,UAAU,CAAC,IAAI,CACtC,GAAG,IAAI,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"coffee-swap-api-service.js","sourceRoot":"","sources":["../../../../../../../../src/features/on-chain/calculation-manager/providers/aggregators/coffee-swap/services/coffee-swap-api-service.ts"],"names":[],"mappings":";;;AAGA,yDAAsD;AAStD,MAAa,oBAAoB;IAGtB,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAwB;QACnD,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACzD,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAE1D,MAAM,GAAG,GAAG,MAAM,mBAAQ,CAAC,UAAU,CAAC,IAAI,CACtC,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB;gBACI,WAAW;gBACX,YAAY;gBACZ,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,EAAE;gBACpD,UAAU,EAAE,CAAC;gBACb,UAAU,EAAE,CAAC;gBACb,aAAa,EAAE;oBACX,WAAW,EAAE,CAAC,KAAK,CAAC;oBACpB,oGAAoG;oBACpG,cAAc,EAAE,GAAG;iBACtB;gBACD,eAAe,EAAE;oBACb,cAAc,EAAE,MAAM,CAAC,aAAa;oBACpC,aAAa,EAAE,OAAO;iBACzB;aACJ,CACJ,CAAC;YAEF,OAAO,GAAG,CAAC;QACf,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,GAAG,CAAC;QACd,CAAC;IACL,CAAC;IAE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