@cetusprotocol/aggregator-sdk 0.0.0-experimental-20250611175820 → 0.0.0-experimental-20250613190040
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 +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5271,8 +5271,8 @@ var Turbos = class {
|
|
|
5271
5271
|
// src/transaction/cetus.ts
|
|
5272
5272
|
var Cetus = class {
|
|
5273
5273
|
constructor(env, partner) {
|
|
5274
|
-
this.globalConfig = env === 0 /* Mainnet */ ? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f" : "
|
|
5275
|
-
this.partner = partner != null ? partner : env === 0 /* Mainnet */ ? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b" : "
|
|
5274
|
+
this.globalConfig = env === 0 /* Mainnet */ ? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f" : "0xc6273f844b4bc258952c4e477697aa12c918c8e08106fac6b934811298c9820a";
|
|
5275
|
+
this.partner = partner != null ? partner : env === 0 /* Mainnet */ ? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b" : "0xd67361aaecc23e5fdfd77970a61153ca183dfcb2ae466e65a60e3859eeb8aad0";
|
|
5276
5276
|
}
|
|
5277
5277
|
flash_swap(client, txb, path, amount_arg, by_amount_in, packages) {
|
|
5278
5278
|
const { direction, from, target } = path;
|
|
@@ -5804,7 +5804,7 @@ function swapInPools(client, params, sender, env) {
|
|
|
5804
5804
|
const targetCoin = completionCoin(target);
|
|
5805
5805
|
const tx = new transactions.Transaction();
|
|
5806
5806
|
const direction = compareCoins(fromCoin, targetCoin);
|
|
5807
|
-
const integratePublishedAt = env === 0 /* Mainnet */ ? "0xb2db7142fa83210a7d78d9c12ac49c043b3cbbd482224fea6e3da00aa5a5ae2d" : "
|
|
5807
|
+
const integratePublishedAt = env === 0 /* Mainnet */ ? "0xb2db7142fa83210a7d78d9c12ac49c043b3cbbd482224fea6e3da00aa5a5ae2d" : "0x36187418dd79415d50e2e5903f9b3caca582052005f062959c86da64e82107a9";
|
|
5808
5808
|
const coinA = direction ? fromCoin : targetCoin;
|
|
5809
5809
|
const coinB = direction ? targetCoin : fromCoin;
|
|
5810
5810
|
const typeArguments = [coinA, coinB];
|
|
@@ -7348,7 +7348,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7348
7348
|
if (this.env === 0 /* Mainnet */) {
|
|
7349
7349
|
return "0x47a7b90756fba96fe649c2aaa10ec60dec6b8cb8545573d621310072721133aa";
|
|
7350
7350
|
} else {
|
|
7351
|
-
return "
|
|
7351
|
+
return "0xdf49f2dc1c8090372a8c0d1542f33313f430cfbe9fa656c1386559e2a0bd2ffd";
|
|
7352
7352
|
}
|
|
7353
7353
|
}
|
|
7354
7354
|
// Include deepbookv3, scallop, bluefin
|
|
@@ -7356,14 +7356,14 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7356
7356
|
if (this.env === 0 /* Mainnet */) {
|
|
7357
7357
|
return "0x8093d002bba575f1378b0da206a8df1fc55c4b5b3718752304f1b67a505d2be4";
|
|
7358
7358
|
} else {
|
|
7359
|
-
return "
|
|
7359
|
+
return "0xdf49f2dc1c8090372a8c0d1542f33313f430cfbe9fa656c1386559e2a0bd2ffd";
|
|
7360
7360
|
}
|
|
7361
7361
|
}
|
|
7362
7362
|
publishedAtV2Extend2() {
|
|
7363
7363
|
if (this.env === 0 /* Mainnet */) {
|
|
7364
7364
|
return "0x96356d1cfc7a4dec5bc0171f085ddaf1f650b1c6c412f209518d496c8ffed212";
|
|
7365
7365
|
} else {
|
|
7366
|
-
return "
|
|
7366
|
+
return "0xdf49f2dc1c8090372a8c0d1542f33313f430cfbe9fa656c1386559e2a0bd2ffd";
|
|
7367
7367
|
}
|
|
7368
7368
|
}
|
|
7369
7369
|
deepbookv3DeepFeeType() {
|
|
@@ -7762,7 +7762,7 @@ function processEndpoint(endpoint) {
|
|
|
7762
7762
|
|
|
7763
7763
|
// src/api.ts
|
|
7764
7764
|
var import_bn7 = __toESM(require_bn());
|
|
7765
|
-
var SDK_VERSION =
|
|
7765
|
+
var SDK_VERSION = 1001201;
|
|
7766
7766
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
7767
7767
|
return __async(this, null, function* () {
|
|
7768
7768
|
let response;
|
package/dist/index.mjs
CHANGED
|
@@ -5269,8 +5269,8 @@ var Turbos = class {
|
|
|
5269
5269
|
// src/transaction/cetus.ts
|
|
5270
5270
|
var Cetus = class {
|
|
5271
5271
|
constructor(env, partner) {
|
|
5272
|
-
this.globalConfig = env === 0 /* Mainnet */ ? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f" : "
|
|
5273
|
-
this.partner = partner != null ? partner : env === 0 /* Mainnet */ ? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b" : "
|
|
5272
|
+
this.globalConfig = env === 0 /* Mainnet */ ? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f" : "0xc6273f844b4bc258952c4e477697aa12c918c8e08106fac6b934811298c9820a";
|
|
5273
|
+
this.partner = partner != null ? partner : env === 0 /* Mainnet */ ? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b" : "0xd67361aaecc23e5fdfd77970a61153ca183dfcb2ae466e65a60e3859eeb8aad0";
|
|
5274
5274
|
}
|
|
5275
5275
|
flash_swap(client, txb, path, amount_arg, by_amount_in, packages) {
|
|
5276
5276
|
const { direction, from, target } = path;
|
|
@@ -5802,7 +5802,7 @@ function swapInPools(client, params, sender, env) {
|
|
|
5802
5802
|
const targetCoin = completionCoin(target);
|
|
5803
5803
|
const tx = new Transaction();
|
|
5804
5804
|
const direction = compareCoins(fromCoin, targetCoin);
|
|
5805
|
-
const integratePublishedAt = env === 0 /* Mainnet */ ? "0xb2db7142fa83210a7d78d9c12ac49c043b3cbbd482224fea6e3da00aa5a5ae2d" : "
|
|
5805
|
+
const integratePublishedAt = env === 0 /* Mainnet */ ? "0xb2db7142fa83210a7d78d9c12ac49c043b3cbbd482224fea6e3da00aa5a5ae2d" : "0x36187418dd79415d50e2e5903f9b3caca582052005f062959c86da64e82107a9";
|
|
5806
5806
|
const coinA = direction ? fromCoin : targetCoin;
|
|
5807
5807
|
const coinB = direction ? targetCoin : fromCoin;
|
|
5808
5808
|
const typeArguments = [coinA, coinB];
|
|
@@ -7346,7 +7346,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7346
7346
|
if (this.env === 0 /* Mainnet */) {
|
|
7347
7347
|
return "0x47a7b90756fba96fe649c2aaa10ec60dec6b8cb8545573d621310072721133aa";
|
|
7348
7348
|
} else {
|
|
7349
|
-
return "
|
|
7349
|
+
return "0xdf49f2dc1c8090372a8c0d1542f33313f430cfbe9fa656c1386559e2a0bd2ffd";
|
|
7350
7350
|
}
|
|
7351
7351
|
}
|
|
7352
7352
|
// Include deepbookv3, scallop, bluefin
|
|
@@ -7354,14 +7354,14 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7354
7354
|
if (this.env === 0 /* Mainnet */) {
|
|
7355
7355
|
return "0x8093d002bba575f1378b0da206a8df1fc55c4b5b3718752304f1b67a505d2be4";
|
|
7356
7356
|
} else {
|
|
7357
|
-
return "
|
|
7357
|
+
return "0xdf49f2dc1c8090372a8c0d1542f33313f430cfbe9fa656c1386559e2a0bd2ffd";
|
|
7358
7358
|
}
|
|
7359
7359
|
}
|
|
7360
7360
|
publishedAtV2Extend2() {
|
|
7361
7361
|
if (this.env === 0 /* Mainnet */) {
|
|
7362
7362
|
return "0x96356d1cfc7a4dec5bc0171f085ddaf1f650b1c6c412f209518d496c8ffed212";
|
|
7363
7363
|
} else {
|
|
7364
|
-
return "
|
|
7364
|
+
return "0xdf49f2dc1c8090372a8c0d1542f33313f430cfbe9fa656c1386559e2a0bd2ffd";
|
|
7365
7365
|
}
|
|
7366
7366
|
}
|
|
7367
7367
|
deepbookv3DeepFeeType() {
|
|
@@ -7760,7 +7760,7 @@ function processEndpoint(endpoint) {
|
|
|
7760
7760
|
|
|
7761
7761
|
// src/api.ts
|
|
7762
7762
|
var import_bn7 = __toESM(require_bn());
|
|
7763
|
-
var SDK_VERSION =
|
|
7763
|
+
var SDK_VERSION = 1001201;
|
|
7764
7764
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
7765
7765
|
return __async(this, null, function* () {
|
|
7766
7766
|
let response;
|