@cetusprotocol/aggregator-sdk 0.0.0-experimental-20241230111621 → 0.0.0-experimental-20250107115504
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/api.ts +1 -1
- package/src/client.ts +5 -3
package/dist/index.js
CHANGED
|
@@ -6479,7 +6479,7 @@ var AggregatorClient10 = class {
|
|
|
6479
6479
|
// Include cetus、deepbookv2、flowxv2 & v3、kriyav2 & v3、turbos、aftermath、haedal、afsui、volo、bluemove
|
|
6480
6480
|
publishedAt() {
|
|
6481
6481
|
if (this.env === 0 /* Mainnet */) {
|
|
6482
|
-
return "
|
|
6482
|
+
return "0x43eb15e430096fda554c131b73c29a80aee0b9c3d7234d8b52e4a9b1ac5fb630";
|
|
6483
6483
|
} else {
|
|
6484
6484
|
return "0x52eae33adeb44de55cfb3f281d4cc9e02d976181c0952f5323648b5717b33934";
|
|
6485
6485
|
}
|
|
@@ -6487,7 +6487,7 @@ var AggregatorClient10 = class {
|
|
|
6487
6487
|
// Include deepbookv3, scallop, bluefin
|
|
6488
6488
|
publishedAtV2() {
|
|
6489
6489
|
if (this.env === 0 /* Mainnet */) {
|
|
6490
|
-
return "
|
|
6490
|
+
return "0x347dd58bbd11cd82c8b386b344729717c04a998da73386e82a239cc196d5706b";
|
|
6491
6491
|
} else {
|
|
6492
6492
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78";
|
|
6493
6493
|
}
|
|
@@ -6779,7 +6779,7 @@ function getRouter(endpoint, params) {
|
|
|
6779
6779
|
url += `&providers=${providers.join(",")}`;
|
|
6780
6780
|
}
|
|
6781
6781
|
}
|
|
6782
|
-
url += "&v=
|
|
6782
|
+
url += "&v=1000315";
|
|
6783
6783
|
const response = yield fetch(url);
|
|
6784
6784
|
return response;
|
|
6785
6785
|
} catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -6477,7 +6477,7 @@ var AggregatorClient10 = class {
|
|
|
6477
6477
|
// Include cetus、deepbookv2、flowxv2 & v3、kriyav2 & v3、turbos、aftermath、haedal、afsui、volo、bluemove
|
|
6478
6478
|
publishedAt() {
|
|
6479
6479
|
if (this.env === 0 /* Mainnet */) {
|
|
6480
|
-
return "
|
|
6480
|
+
return "0x43eb15e430096fda554c131b73c29a80aee0b9c3d7234d8b52e4a9b1ac5fb630";
|
|
6481
6481
|
} else {
|
|
6482
6482
|
return "0x52eae33adeb44de55cfb3f281d4cc9e02d976181c0952f5323648b5717b33934";
|
|
6483
6483
|
}
|
|
@@ -6485,7 +6485,7 @@ var AggregatorClient10 = class {
|
|
|
6485
6485
|
// Include deepbookv3, scallop, bluefin
|
|
6486
6486
|
publishedAtV2() {
|
|
6487
6487
|
if (this.env === 0 /* Mainnet */) {
|
|
6488
|
-
return "
|
|
6488
|
+
return "0x347dd58bbd11cd82c8b386b344729717c04a998da73386e82a239cc196d5706b";
|
|
6489
6489
|
} else {
|
|
6490
6490
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78";
|
|
6491
6491
|
}
|
|
@@ -6777,7 +6777,7 @@ function getRouter(endpoint, params) {
|
|
|
6777
6777
|
url += `&providers=${providers.join(",")}`;
|
|
6778
6778
|
}
|
|
6779
6779
|
}
|
|
6780
|
-
url += "&v=
|
|
6780
|
+
url += "&v=1000315";
|
|
6781
6781
|
const response = yield fetch(url);
|
|
6782
6782
|
return response;
|
|
6783
6783
|
} catch (error) {
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
package/src/client.ts
CHANGED
|
@@ -40,7 +40,7 @@ import { Scallop } from "./transaction/scallop"
|
|
|
40
40
|
import { Suilend } from "./transaction/suilend"
|
|
41
41
|
import { Bluefin } from "./transaction/bluefin"
|
|
42
42
|
import { HaedalPmm } from "./transaction/haedal_pmm"
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
|
|
45
45
|
export const CETUS = "CETUS"
|
|
46
46
|
export const DEEPBOOKV2 = "DEEPBOOK"
|
|
@@ -406,7 +406,8 @@ export class AggregatorClient {
|
|
|
406
406
|
// Include cetus、deepbookv2、flowxv2 & v3、kriyav2 & v3、turbos、aftermath、haedal、afsui、volo、bluemove
|
|
407
407
|
publishedAt(): string {
|
|
408
408
|
if (this.env === Env.Mainnet) {
|
|
409
|
-
return "0x11451575c775a3e633437b827ecbc1eb51a5964b0302210b28f5b89880be21a2" // version 5
|
|
409
|
+
// return "0x11451575c775a3e633437b827ecbc1eb51a5964b0302210b28f5b89880be21a2" // version 5
|
|
410
|
+
return "0x43eb15e430096fda554c131b73c29a80aee0b9c3d7234d8b52e4a9b1ac5fb630" // pre
|
|
410
411
|
} else {
|
|
411
412
|
// return "0x0ed287d6c3fe4962d0994ffddc1d19a15fba6a81533f3f0dcc2bbcedebce0637" // version 2
|
|
412
413
|
return "0x52eae33adeb44de55cfb3f281d4cc9e02d976181c0952f5323648b5717b33934"
|
|
@@ -421,7 +422,8 @@ export class AggregatorClient {
|
|
|
421
422
|
// return "0x16d9418726c26d8cb4ce8c9dd75917fa9b1c7bf47d38d7a1a22603135f0f2a56" // version 4, add suilend
|
|
422
423
|
// return "0x3b6d71bdeb8ce5b06febfd3cfc29ecd60d50da729477c8b8038ecdae34541b91" // version 5, add bluefin
|
|
423
424
|
// return "0x81ade554cb24a7564ca43a4bfb7381b08d9e5c5f375162c95215b696ab903502" // version 6, force upgrade scallop
|
|
424
|
-
return "
|
|
425
|
+
return "0x347dd58bbd11cd82c8b386b344729717c04a998da73386e82a239cc196d5706b"
|
|
426
|
+
// return "0x20d4f23a1d119c6887cea9b036035e57ae90b4cb3d7a0acb94dfed72a9095fb7" // pre
|
|
425
427
|
} else {
|
|
426
428
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78"
|
|
427
429
|
}
|