@cetusprotocol/aggregator-sdk 0.5.0 → 0.6.0
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6045,12 +6045,12 @@ var Bluemove = class {
|
|
|
6045
6045
|
// src/transaction/deepbook_v3.ts
|
|
6046
6046
|
var DeepbookV3 = class {
|
|
6047
6047
|
constructor(env) {
|
|
6048
|
-
this.deepbookV3Config = env === 0 /* Mainnet */ ? "
|
|
6048
|
+
this.deepbookV3Config = env === 0 /* Mainnet */ ? "0x699d455ab8c5e02075b4345ea1f91be55bf46064ae6026cc2528e701ce3ac135" : "0xe19b5d072346cae83a037d4e3c8492068a74410a74e5830b3a68012db38296aa";
|
|
6049
6049
|
}
|
|
6050
6050
|
swap(client, txb, path, inputCoin, packages, deepbookv3DeepFee) {
|
|
6051
6051
|
return __async(this, null, function* () {
|
|
6052
6052
|
const { direction, from, target } = path;
|
|
6053
|
-
const [func, coinAType, coinBType] = direction ? ["
|
|
6053
|
+
const [func, coinAType, coinBType] = direction ? ["swap_a2b_v2", from, target] : ["swap_b2a_v2", target, from];
|
|
6054
6054
|
let deepFee;
|
|
6055
6055
|
if (deepbookv3DeepFee) {
|
|
6056
6056
|
deepFee = deepbookv3DeepFee;
|
|
@@ -7053,7 +7053,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7053
7053
|
// Include deepbookv3, scallop, bluefin
|
|
7054
7054
|
publishedAtV2Extend() {
|
|
7055
7055
|
if (this.env === 0 /* Mainnet */) {
|
|
7056
|
-
return "
|
|
7056
|
+
return "0x39402d188b7231036e52266ebafad14413b4bf3daea4ac17115989444e6cd516";
|
|
7057
7057
|
} else {
|
|
7058
7058
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78";
|
|
7059
7059
|
}
|
|
@@ -7425,7 +7425,7 @@ function processEndpoint(endpoint) {
|
|
|
7425
7425
|
|
|
7426
7426
|
// src/api.ts
|
|
7427
7427
|
var import_bn7 = __toESM(require_bn());
|
|
7428
|
-
var SDK_VERSION =
|
|
7428
|
+
var SDK_VERSION = 1000600;
|
|
7429
7429
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
7430
7430
|
return __async(this, null, function* () {
|
|
7431
7431
|
let response;
|
package/dist/index.mjs
CHANGED
|
@@ -6043,12 +6043,12 @@ var Bluemove = class {
|
|
|
6043
6043
|
// src/transaction/deepbook_v3.ts
|
|
6044
6044
|
var DeepbookV3 = class {
|
|
6045
6045
|
constructor(env) {
|
|
6046
|
-
this.deepbookV3Config = env === 0 /* Mainnet */ ? "
|
|
6046
|
+
this.deepbookV3Config = env === 0 /* Mainnet */ ? "0x699d455ab8c5e02075b4345ea1f91be55bf46064ae6026cc2528e701ce3ac135" : "0xe19b5d072346cae83a037d4e3c8492068a74410a74e5830b3a68012db38296aa";
|
|
6047
6047
|
}
|
|
6048
6048
|
swap(client, txb, path, inputCoin, packages, deepbookv3DeepFee) {
|
|
6049
6049
|
return __async(this, null, function* () {
|
|
6050
6050
|
const { direction, from, target } = path;
|
|
6051
|
-
const [func, coinAType, coinBType] = direction ? ["
|
|
6051
|
+
const [func, coinAType, coinBType] = direction ? ["swap_a2b_v2", from, target] : ["swap_b2a_v2", target, from];
|
|
6052
6052
|
let deepFee;
|
|
6053
6053
|
if (deepbookv3DeepFee) {
|
|
6054
6054
|
deepFee = deepbookv3DeepFee;
|
|
@@ -7051,7 +7051,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7051
7051
|
// Include deepbookv3, scallop, bluefin
|
|
7052
7052
|
publishedAtV2Extend() {
|
|
7053
7053
|
if (this.env === 0 /* Mainnet */) {
|
|
7054
|
-
return "
|
|
7054
|
+
return "0x39402d188b7231036e52266ebafad14413b4bf3daea4ac17115989444e6cd516";
|
|
7055
7055
|
} else {
|
|
7056
7056
|
return "0xabb6a81c8a216828e317719e06125de5bb2cb0fe8f9916ff8c023ca5be224c78";
|
|
7057
7057
|
}
|
|
@@ -7423,7 +7423,7 @@ function processEndpoint(endpoint) {
|
|
|
7423
7423
|
|
|
7424
7424
|
// src/api.ts
|
|
7425
7425
|
var import_bn7 = __toESM(require_bn());
|
|
7426
|
-
var SDK_VERSION =
|
|
7426
|
+
var SDK_VERSION = 1000600;
|
|
7427
7427
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
7428
7428
|
return __async(this, null, function* () {
|
|
7429
7429
|
let response;
|