@cetusprotocol/aggregator-sdk 0.15.0 → 0.16.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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +47 -9
- package/dist/index.mjs +46 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -90,6 +90,7 @@ declare const STEAMM_OMM_V2 = "STEAMM_OMM_V2";
|
|
|
90
90
|
declare const MAGMA = "MAGMA";
|
|
91
91
|
declare const SEVENK = "SEVENK";
|
|
92
92
|
declare const HAEDALHMMV2 = "HAEDALHMMV2";
|
|
93
|
+
declare const FULLSAIL = "FULLSAIL";
|
|
93
94
|
declare const DEFAULT_ENDPOINT = "https://api-sui.cetus.zone/router_v2";
|
|
94
95
|
declare const ALL_DEXES: string[];
|
|
95
96
|
type BuildRouterSwapParams = {
|
|
@@ -375,4 +376,4 @@ declare enum Env {
|
|
|
375
376
|
Testnet = 1
|
|
376
377
|
}
|
|
377
378
|
|
|
378
|
-
export { AFSUI, AFTERMATH, AGGREGATOR_V2, AGGREGATOR_V2_EXTEND, AGGREGATOR_V2_EXTEND2, ALL_DEXES, ALPHAFI, AggregatorClient, type AggregatorClientParams, type AggregatorResponse, BLUEFIN, BLUEMOVE, type BuildCoinResult, type BuildFastRouterSwapParams, type BuildFastRouterSwapParamsV2, type BuildRouterSwapParams, type BuildRouterSwapParamsV2, CETUS, CLOCK_ADDRESS, DEEPBOOKV2, DEEPBOOKV3, DEFAULT_ENDPOINT, type DeepbookV3Config, type DeepbookV3ConfigResponse, type Dex, Env, type ExtendedDetails, FLOWXV2, FLOWXV3, type FindRouterParams, HAEDAL, HAEDALHMMV2, HAEDALPMM, HAWAL, KRIYA, KRIYAV3, MAGMA, METASTABLE, MOMENTUM, OBRIC, ONE, type Path, type PreSwapLpChangeParams, type Router, type RouterData, type RouterError, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, type SwapInPoolsParams, type SwapInPoolsResult, TEN_POW_NINE, TURBOS, TWO, U128, U64_MAX, U64_MAX_BN, VOLO, ZERO, buildInputCoin, checkInvalidSuiAddress, compareCoins, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, extractAddressFromType, extractStructTagFromType, findPythPriceIDs, fixSuiObjectId, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getAllProviders, getDeepbookV3Config, getProvidersExcluding, getProvidersIncluding, getRouterResult, isSortedSymbols, mintZeroCoin, normalizeCoinType, parseRouterResponse, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams };
|
|
379
|
+
export { AFSUI, AFTERMATH, AGGREGATOR_V2, AGGREGATOR_V2_EXTEND, AGGREGATOR_V2_EXTEND2, ALL_DEXES, ALPHAFI, AggregatorClient, type AggregatorClientParams, type AggregatorResponse, BLUEFIN, BLUEMOVE, type BuildCoinResult, type BuildFastRouterSwapParams, type BuildFastRouterSwapParamsV2, type BuildRouterSwapParams, type BuildRouterSwapParamsV2, CETUS, CLOCK_ADDRESS, DEEPBOOKV2, DEEPBOOKV3, DEFAULT_ENDPOINT, type DeepbookV3Config, type DeepbookV3ConfigResponse, type Dex, Env, type ExtendedDetails, FLOWXV2, FLOWXV3, FULLSAIL, type FindRouterParams, HAEDAL, HAEDALHMMV2, HAEDALPMM, HAWAL, KRIYA, KRIYAV3, MAGMA, METASTABLE, MOMENTUM, OBRIC, ONE, type Path, type PreSwapLpChangeParams, type Router, type RouterData, type RouterError, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, type SwapInPoolsParams, type SwapInPoolsResult, TEN_POW_NINE, TURBOS, TWO, U128, U64_MAX, U64_MAX_BN, VOLO, ZERO, buildInputCoin, checkInvalidSuiAddress, compareCoins, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, extractAddressFromType, extractStructTagFromType, findPythPriceIDs, fixSuiObjectId, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getAllProviders, getDeepbookV3Config, getProvidersExcluding, getProvidersIncluding, getRouterResult, isSortedSymbols, mintZeroCoin, normalizeCoinType, parseRouterResponse, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ declare const STEAMM_OMM_V2 = "STEAMM_OMM_V2";
|
|
|
90
90
|
declare const MAGMA = "MAGMA";
|
|
91
91
|
declare const SEVENK = "SEVENK";
|
|
92
92
|
declare const HAEDALHMMV2 = "HAEDALHMMV2";
|
|
93
|
+
declare const FULLSAIL = "FULLSAIL";
|
|
93
94
|
declare const DEFAULT_ENDPOINT = "https://api-sui.cetus.zone/router_v2";
|
|
94
95
|
declare const ALL_DEXES: string[];
|
|
95
96
|
type BuildRouterSwapParams = {
|
|
@@ -375,4 +376,4 @@ declare enum Env {
|
|
|
375
376
|
Testnet = 1
|
|
376
377
|
}
|
|
377
378
|
|
|
378
|
-
export { AFSUI, AFTERMATH, AGGREGATOR_V2, AGGREGATOR_V2_EXTEND, AGGREGATOR_V2_EXTEND2, ALL_DEXES, ALPHAFI, AggregatorClient, type AggregatorClientParams, type AggregatorResponse, BLUEFIN, BLUEMOVE, type BuildCoinResult, type BuildFastRouterSwapParams, type BuildFastRouterSwapParamsV2, type BuildRouterSwapParams, type BuildRouterSwapParamsV2, CETUS, CLOCK_ADDRESS, DEEPBOOKV2, DEEPBOOKV3, DEFAULT_ENDPOINT, type DeepbookV3Config, type DeepbookV3ConfigResponse, type Dex, Env, type ExtendedDetails, FLOWXV2, FLOWXV3, type FindRouterParams, HAEDAL, HAEDALHMMV2, HAEDALPMM, HAWAL, KRIYA, KRIYAV3, MAGMA, METASTABLE, MOMENTUM, OBRIC, ONE, type Path, type PreSwapLpChangeParams, type Router, type RouterData, type RouterError, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, type SwapInPoolsParams, type SwapInPoolsResult, TEN_POW_NINE, TURBOS, TWO, U128, U64_MAX, U64_MAX_BN, VOLO, ZERO, buildInputCoin, checkInvalidSuiAddress, compareCoins, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, extractAddressFromType, extractStructTagFromType, findPythPriceIDs, fixSuiObjectId, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getAllProviders, getDeepbookV3Config, getProvidersExcluding, getProvidersIncluding, getRouterResult, isSortedSymbols, mintZeroCoin, normalizeCoinType, parseRouterResponse, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams };
|
|
379
|
+
export { AFSUI, AFTERMATH, AGGREGATOR_V2, AGGREGATOR_V2_EXTEND, AGGREGATOR_V2_EXTEND2, ALL_DEXES, ALPHAFI, AggregatorClient, type AggregatorClientParams, type AggregatorResponse, BLUEFIN, BLUEMOVE, type BuildCoinResult, type BuildFastRouterSwapParams, type BuildFastRouterSwapParamsV2, type BuildRouterSwapParams, type BuildRouterSwapParamsV2, CETUS, CLOCK_ADDRESS, DEEPBOOKV2, DEEPBOOKV3, DEFAULT_ENDPOINT, type DeepbookV3Config, type DeepbookV3ConfigResponse, type Dex, Env, type ExtendedDetails, FLOWXV2, FLOWXV3, FULLSAIL, type FindRouterParams, HAEDAL, HAEDALHMMV2, HAEDALPMM, HAWAL, KRIYA, KRIYAV3, MAGMA, METASTABLE, MOMENTUM, OBRIC, ONE, type Path, type PreSwapLpChangeParams, type Router, type RouterData, type RouterError, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, type SwapInPoolsParams, type SwapInPoolsResult, TEN_POW_NINE, TURBOS, TWO, U128, U64_MAX, U64_MAX_BN, VOLO, ZERO, buildInputCoin, checkInvalidSuiAddress, compareCoins, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, extractAddressFromType, extractStructTagFromType, findPythPriceIDs, fixSuiObjectId, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getAllProviders, getDeepbookV3Config, getProvidersExcluding, getProvidersIncluding, getRouterResult, isSortedSymbols, mintZeroCoin, normalizeCoinType, parseRouterResponse, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams };
|
package/dist/index.js
CHANGED
|
@@ -7014,6 +7014,39 @@ var HaedalHMMV2 = class {
|
|
|
7014
7014
|
}
|
|
7015
7015
|
};
|
|
7016
7016
|
|
|
7017
|
+
// src/transaction/fullsail.ts
|
|
7018
|
+
var FullSail = class {
|
|
7019
|
+
// private partner: string
|
|
7020
|
+
constructor(env) {
|
|
7021
|
+
this.globalConfig = "0xe93baa80cb570b3a494cbf0621b2ba96bc993926d34dc92508c9446f9a05d615";
|
|
7022
|
+
this.rewarder = "0xfb971d3a2fb98bde74e1c30ba15a3d8bef60a02789e59ae0b91660aeed3e64e1";
|
|
7023
|
+
this.stats = "0x6822a33d1d971e040c32f7cc74507010d1fe786f7d06ab89135083ddb07d2dc2";
|
|
7024
|
+
this.price_provider = "0x854b2d2c0381bb656ec962f8b443eb082654384cf97885359d1956c7d76e33c9";
|
|
7025
|
+
}
|
|
7026
|
+
swap(client, txb, path, inputCoin, packages) {
|
|
7027
|
+
return __async(this, null, function* () {
|
|
7028
|
+
const { direction, from, target } = path;
|
|
7029
|
+
const [func, coinAType, coinBType] = direction ? ["swap_a2b", from, target] : ["swap_b2a", target, from];
|
|
7030
|
+
const args = [
|
|
7031
|
+
txb.object(this.globalConfig),
|
|
7032
|
+
txb.object(this.rewarder),
|
|
7033
|
+
txb.object(path.id),
|
|
7034
|
+
inputCoin,
|
|
7035
|
+
txb.object(this.stats),
|
|
7036
|
+
txb.object(this.price_provider),
|
|
7037
|
+
txb.object(CLOCK_ADDRESS)
|
|
7038
|
+
];
|
|
7039
|
+
const publishedAt = getAggregatorV2Extend2PublishedAt(client.publishedAtV2Extend2(), packages);
|
|
7040
|
+
const res = txb.moveCall({
|
|
7041
|
+
target: `${publishedAt}::fullsail::${func}`,
|
|
7042
|
+
typeArguments: [coinAType, coinBType],
|
|
7043
|
+
arguments: args
|
|
7044
|
+
});
|
|
7045
|
+
return res;
|
|
7046
|
+
});
|
|
7047
|
+
}
|
|
7048
|
+
};
|
|
7049
|
+
|
|
7017
7050
|
// src/client.ts
|
|
7018
7051
|
var CETUS = "CETUS";
|
|
7019
7052
|
var DEEPBOOKV2 = "DEEPBOOK";
|
|
@@ -7044,6 +7077,7 @@ var STEAMM_OMM_V2 = "STEAMM_OMM_V2";
|
|
|
7044
7077
|
var MAGMA = "MAGMA";
|
|
7045
7078
|
var SEVENK = "SEVENK";
|
|
7046
7079
|
var HAEDALHMMV2 = "HAEDALHMMV2";
|
|
7080
|
+
var FULLSAIL = "FULLSAIL";
|
|
7047
7081
|
var DEFAULT_ENDPOINT = "https://api-sui.cetus.zone/router_v2";
|
|
7048
7082
|
var ALL_DEXES = [
|
|
7049
7083
|
CETUS,
|
|
@@ -7073,7 +7107,8 @@ var ALL_DEXES = [
|
|
|
7073
7107
|
STEAMM_OMM_V2,
|
|
7074
7108
|
MAGMA,
|
|
7075
7109
|
SEVENK,
|
|
7076
|
-
HAEDALHMMV2
|
|
7110
|
+
HAEDALHMMV2,
|
|
7111
|
+
FULLSAIL
|
|
7077
7112
|
];
|
|
7078
7113
|
function isBuilderRouterSwapParams(params) {
|
|
7079
7114
|
return Array.isArray(params.routers);
|
|
@@ -7635,7 +7670,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7635
7670
|
}
|
|
7636
7671
|
publishedAtV2Extend2() {
|
|
7637
7672
|
if (this.env === 0 /* Mainnet */) {
|
|
7638
|
-
return "
|
|
7673
|
+
return "0x88142be0f2c6b0150980109a7386220b4c040a5c4d9a16d5f7dd0bbd0135ba12";
|
|
7639
7674
|
} else {
|
|
7640
7675
|
return "0x0";
|
|
7641
7676
|
}
|
|
@@ -7750,6 +7785,8 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7750
7785
|
return new Sevenk(this.env, pythPriceIDs);
|
|
7751
7786
|
case HAEDALHMMV2:
|
|
7752
7787
|
return new HaedalHMMV2(this.env, pythPriceIDs);
|
|
7788
|
+
case FULLSAIL:
|
|
7789
|
+
return new FullSail(this.env);
|
|
7753
7790
|
default:
|
|
7754
7791
|
throw new Error(`Unsupported dex ${provider}`);
|
|
7755
7792
|
}
|
|
@@ -7845,7 +7882,7 @@ _AggregatorClient.CONFIG = {
|
|
|
7845
7882
|
pythStateId: "0x1f9310238ee9298fb703c3419030b35b22bb1cc37113e3bb5007c99aec79e5b8"
|
|
7846
7883
|
}
|
|
7847
7884
|
};
|
|
7848
|
-
var
|
|
7885
|
+
var AggregatorClient30 = _AggregatorClient;
|
|
7849
7886
|
function findPythPriceIDs(routes) {
|
|
7850
7887
|
const priceIDs = /* @__PURE__ */ new Set();
|
|
7851
7888
|
for (const route of routes) {
|
|
@@ -8062,7 +8099,7 @@ function processEndpoint(endpoint) {
|
|
|
8062
8099
|
|
|
8063
8100
|
// src/api.ts
|
|
8064
8101
|
var import_bn7 = __toESM(require_bn());
|
|
8065
|
-
var SDK_VERSION =
|
|
8102
|
+
var SDK_VERSION = 1001600;
|
|
8066
8103
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
8067
8104
|
return __async(this, null, function* () {
|
|
8068
8105
|
let response;
|
|
@@ -8252,10 +8289,10 @@ function getDeepbookV3Config(endpoint) {
|
|
|
8252
8289
|
}
|
|
8253
8290
|
|
|
8254
8291
|
// src/index.ts
|
|
8255
|
-
var Env = /* @__PURE__ */ ((
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
return
|
|
8292
|
+
var Env = /* @__PURE__ */ ((Env3) => {
|
|
8293
|
+
Env3[Env3["Mainnet"] = 0] = "Mainnet";
|
|
8294
|
+
Env3[Env3["Testnet"] = 1] = "Testnet";
|
|
8295
|
+
return Env3;
|
|
8259
8296
|
})(Env || {});
|
|
8260
8297
|
/*! Bundled license information:
|
|
8261
8298
|
|
|
@@ -8276,7 +8313,7 @@ exports.AGGREGATOR_V2_EXTEND = AGGREGATOR_V2_EXTEND;
|
|
|
8276
8313
|
exports.AGGREGATOR_V2_EXTEND2 = AGGREGATOR_V2_EXTEND2;
|
|
8277
8314
|
exports.ALL_DEXES = ALL_DEXES;
|
|
8278
8315
|
exports.ALPHAFI = ALPHAFI;
|
|
8279
|
-
exports.AggregatorClient =
|
|
8316
|
+
exports.AggregatorClient = AggregatorClient30;
|
|
8280
8317
|
exports.BLUEFIN = BLUEFIN;
|
|
8281
8318
|
exports.BLUEMOVE = BLUEMOVE;
|
|
8282
8319
|
exports.CETUS = CETUS;
|
|
@@ -8287,6 +8324,7 @@ exports.DEFAULT_ENDPOINT = DEFAULT_ENDPOINT;
|
|
|
8287
8324
|
exports.Env = Env;
|
|
8288
8325
|
exports.FLOWXV2 = FLOWXV2;
|
|
8289
8326
|
exports.FLOWXV3 = FLOWXV3;
|
|
8327
|
+
exports.FULLSAIL = FULLSAIL;
|
|
8290
8328
|
exports.HAEDAL = HAEDAL;
|
|
8291
8329
|
exports.HAEDALHMMV2 = HAEDALHMMV2;
|
|
8292
8330
|
exports.HAEDALPMM = HAEDALPMM;
|
package/dist/index.mjs
CHANGED
|
@@ -7008,6 +7008,39 @@ var HaedalHMMV2 = class {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
};
|
|
7010
7010
|
|
|
7011
|
+
// src/transaction/fullsail.ts
|
|
7012
|
+
var FullSail = class {
|
|
7013
|
+
// private partner: string
|
|
7014
|
+
constructor(env) {
|
|
7015
|
+
this.globalConfig = "0xe93baa80cb570b3a494cbf0621b2ba96bc993926d34dc92508c9446f9a05d615";
|
|
7016
|
+
this.rewarder = "0xfb971d3a2fb98bde74e1c30ba15a3d8bef60a02789e59ae0b91660aeed3e64e1";
|
|
7017
|
+
this.stats = "0x6822a33d1d971e040c32f7cc74507010d1fe786f7d06ab89135083ddb07d2dc2";
|
|
7018
|
+
this.price_provider = "0x854b2d2c0381bb656ec962f8b443eb082654384cf97885359d1956c7d76e33c9";
|
|
7019
|
+
}
|
|
7020
|
+
swap(client, txb, path, inputCoin, packages) {
|
|
7021
|
+
return __async(this, null, function* () {
|
|
7022
|
+
const { direction, from, target } = path;
|
|
7023
|
+
const [func, coinAType, coinBType] = direction ? ["swap_a2b", from, target] : ["swap_b2a", target, from];
|
|
7024
|
+
const args = [
|
|
7025
|
+
txb.object(this.globalConfig),
|
|
7026
|
+
txb.object(this.rewarder),
|
|
7027
|
+
txb.object(path.id),
|
|
7028
|
+
inputCoin,
|
|
7029
|
+
txb.object(this.stats),
|
|
7030
|
+
txb.object(this.price_provider),
|
|
7031
|
+
txb.object(CLOCK_ADDRESS)
|
|
7032
|
+
];
|
|
7033
|
+
const publishedAt = getAggregatorV2Extend2PublishedAt(client.publishedAtV2Extend2(), packages);
|
|
7034
|
+
const res = txb.moveCall({
|
|
7035
|
+
target: `${publishedAt}::fullsail::${func}`,
|
|
7036
|
+
typeArguments: [coinAType, coinBType],
|
|
7037
|
+
arguments: args
|
|
7038
|
+
});
|
|
7039
|
+
return res;
|
|
7040
|
+
});
|
|
7041
|
+
}
|
|
7042
|
+
};
|
|
7043
|
+
|
|
7011
7044
|
// src/client.ts
|
|
7012
7045
|
var CETUS = "CETUS";
|
|
7013
7046
|
var DEEPBOOKV2 = "DEEPBOOK";
|
|
@@ -7038,6 +7071,7 @@ var STEAMM_OMM_V2 = "STEAMM_OMM_V2";
|
|
|
7038
7071
|
var MAGMA = "MAGMA";
|
|
7039
7072
|
var SEVENK = "SEVENK";
|
|
7040
7073
|
var HAEDALHMMV2 = "HAEDALHMMV2";
|
|
7074
|
+
var FULLSAIL = "FULLSAIL";
|
|
7041
7075
|
var DEFAULT_ENDPOINT = "https://api-sui.cetus.zone/router_v2";
|
|
7042
7076
|
var ALL_DEXES = [
|
|
7043
7077
|
CETUS,
|
|
@@ -7067,7 +7101,8 @@ var ALL_DEXES = [
|
|
|
7067
7101
|
STEAMM_OMM_V2,
|
|
7068
7102
|
MAGMA,
|
|
7069
7103
|
SEVENK,
|
|
7070
|
-
HAEDALHMMV2
|
|
7104
|
+
HAEDALHMMV2,
|
|
7105
|
+
FULLSAIL
|
|
7071
7106
|
];
|
|
7072
7107
|
function isBuilderRouterSwapParams(params) {
|
|
7073
7108
|
return Array.isArray(params.routers);
|
|
@@ -7629,7 +7664,7 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7629
7664
|
}
|
|
7630
7665
|
publishedAtV2Extend2() {
|
|
7631
7666
|
if (this.env === 0 /* Mainnet */) {
|
|
7632
|
-
return "
|
|
7667
|
+
return "0x88142be0f2c6b0150980109a7386220b4c040a5c4d9a16d5f7dd0bbd0135ba12";
|
|
7633
7668
|
} else {
|
|
7634
7669
|
return "0x0";
|
|
7635
7670
|
}
|
|
@@ -7744,6 +7779,8 @@ var _AggregatorClient = class _AggregatorClient {
|
|
|
7744
7779
|
return new Sevenk(this.env, pythPriceIDs);
|
|
7745
7780
|
case HAEDALHMMV2:
|
|
7746
7781
|
return new HaedalHMMV2(this.env, pythPriceIDs);
|
|
7782
|
+
case FULLSAIL:
|
|
7783
|
+
return new FullSail(this.env);
|
|
7747
7784
|
default:
|
|
7748
7785
|
throw new Error(`Unsupported dex ${provider}`);
|
|
7749
7786
|
}
|
|
@@ -7839,7 +7876,7 @@ _AggregatorClient.CONFIG = {
|
|
|
7839
7876
|
pythStateId: "0x1f9310238ee9298fb703c3419030b35b22bb1cc37113e3bb5007c99aec79e5b8"
|
|
7840
7877
|
}
|
|
7841
7878
|
};
|
|
7842
|
-
var
|
|
7879
|
+
var AggregatorClient30 = _AggregatorClient;
|
|
7843
7880
|
function findPythPriceIDs(routes) {
|
|
7844
7881
|
const priceIDs = /* @__PURE__ */ new Set();
|
|
7845
7882
|
for (const route of routes) {
|
|
@@ -8056,7 +8093,7 @@ function processEndpoint(endpoint) {
|
|
|
8056
8093
|
|
|
8057
8094
|
// src/api.ts
|
|
8058
8095
|
var import_bn7 = __toESM(require_bn());
|
|
8059
|
-
var SDK_VERSION =
|
|
8096
|
+
var SDK_VERSION = 1001600;
|
|
8060
8097
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
8061
8098
|
return __async(this, null, function* () {
|
|
8062
8099
|
let response;
|
|
@@ -8246,10 +8283,10 @@ function getDeepbookV3Config(endpoint) {
|
|
|
8246
8283
|
}
|
|
8247
8284
|
|
|
8248
8285
|
// src/index.ts
|
|
8249
|
-
var Env = /* @__PURE__ */ ((
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
return
|
|
8286
|
+
var Env = /* @__PURE__ */ ((Env3) => {
|
|
8287
|
+
Env3[Env3["Mainnet"] = 0] = "Mainnet";
|
|
8288
|
+
Env3[Env3["Testnet"] = 1] = "Testnet";
|
|
8289
|
+
return Env3;
|
|
8253
8290
|
})(Env || {});
|
|
8254
8291
|
/*! Bundled license information:
|
|
8255
8292
|
|
|
@@ -8263,4 +8300,4 @@ decimal.js/decimal.mjs:
|
|
|
8263
8300
|
*)
|
|
8264
8301
|
*/
|
|
8265
8302
|
|
|
8266
|
-
export { AFSUI, AFTERMATH, AGGREGATOR_V2, AGGREGATOR_V2_EXTEND, AGGREGATOR_V2_EXTEND2, ALL_DEXES, ALPHAFI,
|
|
8303
|
+
export { AFSUI, AFTERMATH, AGGREGATOR_V2, AGGREGATOR_V2_EXTEND, AGGREGATOR_V2_EXTEND2, ALL_DEXES, ALPHAFI, AggregatorClient30 as AggregatorClient, BLUEFIN, BLUEMOVE, CETUS, CLOCK_ADDRESS, DEEPBOOKV2, DEEPBOOKV3, DEFAULT_ENDPOINT, Env, FLOWXV2, FLOWXV3, FULLSAIL, HAEDAL, HAEDALHMMV2, HAEDALPMM, HAWAL, KRIYA, KRIYAV3, MAGMA, METASTABLE, MOMENTUM, OBRIC, ONE, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, TEN_POW_NINE, TURBOS, TWO, U128, U64_MAX, U64_MAX_BN, VOLO, ZERO, buildInputCoin, checkInvalidSuiAddress, compareCoins, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, extractAddressFromType, extractStructTagFromType, findPythPriceIDs, fixSuiObjectId, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getAllProviders, getDeepbookV3Config, getProvidersExcluding, getProvidersIncluding, getRouterResult, isSortedSymbols, mintZeroCoin, normalizeCoinType, parseRouterResponse, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams };
|