@cetusprotocol/aggregator-sdk 0.3.27 → 0.3.28
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.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
- package/src/api.ts +4 -1
- package/src/client.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -6675,7 +6675,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
6675
6675
|
// Include deepbookv3, scallop, bluefin
|
|
6676
6676
|
publishedAtV2Extend() {
|
|
6677
6677
|
if (this.env === 0 /* Mainnet */) {
|
|
6678
|
-
return "
|
|
6678
|
+
return "0x34ef25b60b51f9d07cd9b7dc5b08dfdf26c7b0ff00c57bb17454c161fa6b6b83";
|
|
6679
6679
|
} else {
|
|
6680
6680
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78";
|
|
6681
6681
|
}
|
|
@@ -7009,6 +7009,7 @@ function processEndpoint(endpoint) {
|
|
|
7009
7009
|
}
|
|
7010
7010
|
|
|
7011
7011
|
// src/api.ts
|
|
7012
|
+
var SDK_VERSION = 1000328;
|
|
7012
7013
|
function getRouterResult(endpoint, params) {
|
|
7013
7014
|
return __async(this, null, function* () {
|
|
7014
7015
|
let response;
|
|
@@ -7106,7 +7107,7 @@ function getRouter(endpoint, params) {
|
|
|
7106
7107
|
url += `&providers=${providers.join(",")}`;
|
|
7107
7108
|
}
|
|
7108
7109
|
}
|
|
7109
|
-
url +=
|
|
7110
|
+
url += `&v=${SDK_VERSION}`;
|
|
7110
7111
|
const response = yield fetch(url);
|
|
7111
7112
|
return response;
|
|
7112
7113
|
} catch (error) {
|
|
@@ -7148,7 +7149,8 @@ function postRouterWithLiquidityChanges(endpoint, params) {
|
|
|
7148
7149
|
tick_lower: change.ticklower,
|
|
7149
7150
|
tick_upper: change.tickUpper,
|
|
7150
7151
|
delta_liquidity: change.deltaLiquidity
|
|
7151
|
-
}))
|
|
7152
|
+
})),
|
|
7153
|
+
v: SDK_VERSION
|
|
7152
7154
|
};
|
|
7153
7155
|
try {
|
|
7154
7156
|
const response = yield fetch(url, {
|
package/dist/index.mjs
CHANGED
|
@@ -6673,7 +6673,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
6673
6673
|
// Include deepbookv3, scallop, bluefin
|
|
6674
6674
|
publishedAtV2Extend() {
|
|
6675
6675
|
if (this.env === 0 /* Mainnet */) {
|
|
6676
|
-
return "
|
|
6676
|
+
return "0x34ef25b60b51f9d07cd9b7dc5b08dfdf26c7b0ff00c57bb17454c161fa6b6b83";
|
|
6677
6677
|
} else {
|
|
6678
6678
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78";
|
|
6679
6679
|
}
|
|
@@ -7007,6 +7007,7 @@ function processEndpoint(endpoint) {
|
|
|
7007
7007
|
}
|
|
7008
7008
|
|
|
7009
7009
|
// src/api.ts
|
|
7010
|
+
var SDK_VERSION = 1000328;
|
|
7010
7011
|
function getRouterResult(endpoint, params) {
|
|
7011
7012
|
return __async(this, null, function* () {
|
|
7012
7013
|
let response;
|
|
@@ -7104,7 +7105,7 @@ function getRouter(endpoint, params) {
|
|
|
7104
7105
|
url += `&providers=${providers.join(",")}`;
|
|
7105
7106
|
}
|
|
7106
7107
|
}
|
|
7107
|
-
url +=
|
|
7108
|
+
url += `&v=${SDK_VERSION}`;
|
|
7108
7109
|
const response = yield fetch(url);
|
|
7109
7110
|
return response;
|
|
7110
7111
|
} catch (error) {
|
|
@@ -7146,7 +7147,8 @@ function postRouterWithLiquidityChanges(endpoint, params) {
|
|
|
7146
7147
|
tick_lower: change.ticklower,
|
|
7147
7148
|
tick_upper: change.tickUpper,
|
|
7148
7149
|
delta_liquidity: change.deltaLiquidity
|
|
7149
|
-
}))
|
|
7150
|
+
})),
|
|
7151
|
+
v: SDK_VERSION
|
|
7150
7152
|
};
|
|
7151
7153
|
try {
|
|
7152
7154
|
const response = yield fetch(url, {
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
} from "./errors"
|
|
9
9
|
import { parseRouterResponse } from "./client"
|
|
10
10
|
|
|
11
|
+
const SDK_VERSION = 1000328
|
|
12
|
+
|
|
11
13
|
export interface FindRouterParams {
|
|
12
14
|
from: string
|
|
13
15
|
target: string
|
|
@@ -205,7 +207,7 @@ async function getRouter(endpoint: string, params: FindRouterParams) {
|
|
|
205
207
|
}
|
|
206
208
|
|
|
207
209
|
// set newest sdk version
|
|
208
|
-
url +=
|
|
210
|
+
url += `&v=${SDK_VERSION}`
|
|
209
211
|
|
|
210
212
|
const response = await fetch(url)
|
|
211
213
|
return response
|
|
@@ -252,6 +254,7 @@ async function postRouterWithLiquidityChanges(
|
|
|
252
254
|
tick_upper: change.tickUpper,
|
|
253
255
|
delta_liquidity: change.deltaLiquidity,
|
|
254
256
|
})),
|
|
257
|
+
v: SDK_VERSION,
|
|
255
258
|
}
|
|
256
259
|
|
|
257
260
|
try {
|
package/src/client.ts
CHANGED
|
@@ -601,7 +601,8 @@ export class AggregatorClient {
|
|
|
601
601
|
// return "0x81ade554cb24a7564ca43a4bfb7381b08d9e5c5f375162c95215b696ab903502" // version 6, force upgrade scallop
|
|
602
602
|
// return "0x347dd58bbd11cd82c8b386b344729717c04a998da73386e82a239cc196d5706b" // version 7
|
|
603
603
|
// return "0xf2fcea41dc217385019828375764fa06d9bd25e8e4726ba1962680849fb8d613" // version 8
|
|
604
|
-
return "0xa2d8a4279d69d8fec04b2fea8852d0d467d3cc0d39c5890180d439ae7a9953ed" // version 9
|
|
604
|
+
// return "0xa2d8a4279d69d8fec04b2fea8852d0d467d3cc0d39c5890180d439ae7a9953ed" // version 9
|
|
605
|
+
return "0x34ef25b60b51f9d07cd9b7dc5b08dfdf26c7b0ff00c57bb17454c161fa6b6b83" // version 10
|
|
605
606
|
} else {
|
|
606
607
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78"
|
|
607
608
|
}
|