@cetusprotocol/aggregator-sdk 0.0.0-experimental-20241011205228 → 0.0.0-experimental-20241012122711
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/api.ts +3 -0
- package/src/client.ts +1 -2
- package/tests/router.test.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -6242,7 +6242,7 @@ var AggregatorClient6 = class {
|
|
|
6242
6242
|
}
|
|
6243
6243
|
publishedAt() {
|
|
6244
6244
|
if (this.env === 0 /* Mainnet */) {
|
|
6245
|
-
return "
|
|
6245
|
+
return "0xf98ed029af555e4a103febf26243dc33ac09a7ea1b2da7e414c728b25b729086";
|
|
6246
6246
|
} else {
|
|
6247
6247
|
return "0x6cbaa3e9fbe902d90191b12f315932bc58079cba422bafbd4b4369f80e61f595";
|
|
6248
6248
|
}
|
|
@@ -6486,6 +6486,7 @@ function getRouter(endpoint, params) {
|
|
|
6486
6486
|
url += `&providers=${providers.join(",")}`;
|
|
6487
6487
|
}
|
|
6488
6488
|
}
|
|
6489
|
+
url += "&v=1000333";
|
|
6489
6490
|
const response = yield fetch(url);
|
|
6490
6491
|
return response;
|
|
6491
6492
|
} catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -6240,7 +6240,7 @@ var AggregatorClient6 = class {
|
|
|
6240
6240
|
}
|
|
6241
6241
|
publishedAt() {
|
|
6242
6242
|
if (this.env === 0 /* Mainnet */) {
|
|
6243
|
-
return "
|
|
6243
|
+
return "0xf98ed029af555e4a103febf26243dc33ac09a7ea1b2da7e414c728b25b729086";
|
|
6244
6244
|
} else {
|
|
6245
6245
|
return "0x6cbaa3e9fbe902d90191b12f315932bc58079cba422bafbd4b4369f80e61f595";
|
|
6246
6246
|
}
|
|
@@ -6484,6 +6484,7 @@ function getRouter(endpoint, params) {
|
|
|
6484
6484
|
url += `&providers=${providers.join(",")}`;
|
|
6485
6485
|
}
|
|
6486
6486
|
}
|
|
6487
|
+
url += "&v=1000333";
|
|
6487
6488
|
const response = yield fetch(url);
|
|
6488
6489
|
return response;
|
|
6489
6490
|
} catch (error) {
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
package/src/client.ts
CHANGED
|
@@ -337,8 +337,7 @@ export class AggregatorClient {
|
|
|
337
337
|
|
|
338
338
|
publishedAt(): string {
|
|
339
339
|
if (this.env === Env.Mainnet) {
|
|
340
|
-
|
|
341
|
-
return "0x7eb2f30d541c06fa7bcf26444845df56361647df0e778b82e5707fb26754c398"
|
|
340
|
+
return "0xf98ed029af555e4a103febf26243dc33ac09a7ea1b2da7e414c728b25b729086"
|
|
342
341
|
} else {
|
|
343
342
|
return "0x6cbaa3e9fbe902d90191b12f315932bc58079cba422bafbd4b4369f80e61f595"
|
|
344
343
|
}
|
package/tests/router.test.ts
CHANGED
|
@@ -45,7 +45,7 @@ describe("router module", () => {
|
|
|
45
45
|
// console.log("wallet", wallet, "\n", wallet.toString())
|
|
46
46
|
|
|
47
47
|
const wallet =
|
|
48
|
-
"
|
|
48
|
+
"0xf7b8d77dd06a6bb51c37ad3ce69e0a44c6f1064f52ac54606ef47763c8a71be6"
|
|
49
49
|
// const wallet =
|
|
50
50
|
// "0xa459702162b73204eed77420d93d9453b7a7b893a0edea1e268607cf7fa76e03"
|
|
51
51
|
// const wallet =
|