@7kprotocol/sdk-ts 1.3.3 → 2.0.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.
Files changed (104) hide show
  1. package/README.md +167 -1
  2. package/lib/cjs/buildTx.js +13 -5
  3. package/lib/cjs/estimateGasFee.js +3 -3
  4. package/lib/cjs/libs/getSplitCoinForTx.js +5 -14
  5. package/lib/cjs/libs/protocols/aftermath/index.js +1 -1
  6. package/lib/cjs/libs/protocols/base.js +1 -1
  7. package/lib/cjs/libs/protocols/cetus/index.js +4 -4
  8. package/lib/cjs/libs/protocols/deepbook/index.js +1 -1
  9. package/lib/cjs/libs/protocols/kriyaV3/index.js +4 -4
  10. package/lib/cjs/libs/protocols/suiswap/index.js +2 -2
  11. package/lib/cjs/libs/protocols/turbos/index.js +2 -2
  12. package/lib/cjs/suiClient.js +1 -1
  13. package/lib/cjs/types/buildTx.d.ts +2 -2
  14. package/lib/cjs/types/buildTx.d.ts.map +1 -1
  15. package/lib/cjs/types/estimateGasFee.d.ts +1 -1
  16. package/lib/cjs/types/estimateGasFee.d.ts.map +1 -1
  17. package/lib/cjs/types/index.d.ts +1 -1
  18. package/lib/cjs/types/libs/getCoinOjectIdsByAmount.d.ts +1 -1
  19. package/lib/cjs/types/libs/getCoinOjectIdsByAmount.d.ts.map +1 -1
  20. package/lib/cjs/types/libs/getSplitCoinForTx.d.ts +3 -3
  21. package/lib/cjs/types/libs/getSplitCoinForTx.d.ts.map +1 -1
  22. package/lib/cjs/types/libs/protocols/aftermath/index.d.ts +4 -5
  23. package/lib/cjs/types/libs/protocols/aftermath/index.d.ts.map +1 -1
  24. package/lib/cjs/types/libs/protocols/base.d.ts +3 -22
  25. package/lib/cjs/types/libs/protocols/base.d.ts.map +1 -1
  26. package/lib/cjs/types/libs/protocols/bluemove/index.d.ts +4 -5
  27. package/lib/cjs/types/libs/protocols/bluemove/index.d.ts.map +1 -1
  28. package/lib/cjs/types/libs/protocols/cetus/index.d.ts +4 -5
  29. package/lib/cjs/types/libs/protocols/cetus/index.d.ts.map +1 -1
  30. package/lib/cjs/types/libs/protocols/deepbook/index.d.ts +4 -5
  31. package/lib/cjs/types/libs/protocols/deepbook/index.d.ts.map +1 -1
  32. package/lib/cjs/types/libs/protocols/flowx/index.d.ts +4 -5
  33. package/lib/cjs/types/libs/protocols/flowx/index.d.ts.map +1 -1
  34. package/lib/cjs/types/libs/protocols/kriya/index.d.ts +4 -5
  35. package/lib/cjs/types/libs/protocols/kriya/index.d.ts.map +1 -1
  36. package/lib/cjs/types/libs/protocols/kriyaV3/index.d.ts +4 -5
  37. package/lib/cjs/types/libs/protocols/kriyaV3/index.d.ts.map +1 -1
  38. package/lib/cjs/types/libs/protocols/suiswap/index.d.ts +4 -5
  39. package/lib/cjs/types/libs/protocols/suiswap/index.d.ts.map +1 -1
  40. package/lib/cjs/types/libs/protocols/turbos/index.d.ts +4 -5
  41. package/lib/cjs/types/libs/protocols/turbos/index.d.ts.map +1 -1
  42. package/lib/cjs/types/libs/swapWithRoute.d.ts +2 -2
  43. package/lib/cjs/types/libs/swapWithRoute.d.ts.map +1 -1
  44. package/lib/cjs/types/suiClient.d.ts +1 -1
  45. package/lib/cjs/types/suiClient.d.ts.map +1 -1
  46. package/lib/cjs/types/types/sui.d.ts +1 -1
  47. package/lib/cjs/types/types/sui.d.ts.map +1 -1
  48. package/lib/cjs/types/types/tx.d.ts +5 -2
  49. package/lib/cjs/types/types/tx.d.ts.map +1 -1
  50. package/lib/cjs/types/utils/sui.d.ts +10 -11
  51. package/lib/cjs/types/utils/sui.d.ts.map +1 -1
  52. package/lib/cjs/utils/sui.js +8 -9
  53. package/lib/esm/buildTx.js +13 -5
  54. package/lib/esm/estimateGasFee.js +3 -3
  55. package/lib/esm/libs/getSplitCoinForTx.js +5 -14
  56. package/lib/esm/libs/protocols/aftermath/index.js +1 -1
  57. package/lib/esm/libs/protocols/base.js +1 -1
  58. package/lib/esm/libs/protocols/cetus/index.js +4 -4
  59. package/lib/esm/libs/protocols/deepbook/index.js +1 -1
  60. package/lib/esm/libs/protocols/kriyaV3/index.js +4 -4
  61. package/lib/esm/libs/protocols/suiswap/index.js +2 -2
  62. package/lib/esm/libs/protocols/turbos/index.js +2 -2
  63. package/lib/esm/suiClient.js +1 -1
  64. package/lib/esm/types/buildTx.d.ts +2 -2
  65. package/lib/esm/types/buildTx.d.ts.map +1 -1
  66. package/lib/esm/types/estimateGasFee.d.ts +1 -1
  67. package/lib/esm/types/estimateGasFee.d.ts.map +1 -1
  68. package/lib/esm/types/index.d.ts +1 -1
  69. package/lib/esm/types/libs/getCoinOjectIdsByAmount.d.ts +1 -1
  70. package/lib/esm/types/libs/getCoinOjectIdsByAmount.d.ts.map +1 -1
  71. package/lib/esm/types/libs/getSplitCoinForTx.d.ts +3 -3
  72. package/lib/esm/types/libs/getSplitCoinForTx.d.ts.map +1 -1
  73. package/lib/esm/types/libs/protocols/aftermath/index.d.ts +4 -5
  74. package/lib/esm/types/libs/protocols/aftermath/index.d.ts.map +1 -1
  75. package/lib/esm/types/libs/protocols/base.d.ts +3 -22
  76. package/lib/esm/types/libs/protocols/base.d.ts.map +1 -1
  77. package/lib/esm/types/libs/protocols/bluemove/index.d.ts +4 -5
  78. package/lib/esm/types/libs/protocols/bluemove/index.d.ts.map +1 -1
  79. package/lib/esm/types/libs/protocols/cetus/index.d.ts +4 -5
  80. package/lib/esm/types/libs/protocols/cetus/index.d.ts.map +1 -1
  81. package/lib/esm/types/libs/protocols/deepbook/index.d.ts +4 -5
  82. package/lib/esm/types/libs/protocols/deepbook/index.d.ts.map +1 -1
  83. package/lib/esm/types/libs/protocols/flowx/index.d.ts +4 -5
  84. package/lib/esm/types/libs/protocols/flowx/index.d.ts.map +1 -1
  85. package/lib/esm/types/libs/protocols/kriya/index.d.ts +4 -5
  86. package/lib/esm/types/libs/protocols/kriya/index.d.ts.map +1 -1
  87. package/lib/esm/types/libs/protocols/kriyaV3/index.d.ts +4 -5
  88. package/lib/esm/types/libs/protocols/kriyaV3/index.d.ts.map +1 -1
  89. package/lib/esm/types/libs/protocols/suiswap/index.d.ts +4 -5
  90. package/lib/esm/types/libs/protocols/suiswap/index.d.ts.map +1 -1
  91. package/lib/esm/types/libs/protocols/turbos/index.d.ts +4 -5
  92. package/lib/esm/types/libs/protocols/turbos/index.d.ts.map +1 -1
  93. package/lib/esm/types/libs/swapWithRoute.d.ts +2 -2
  94. package/lib/esm/types/libs/swapWithRoute.d.ts.map +1 -1
  95. package/lib/esm/types/suiClient.d.ts +1 -1
  96. package/lib/esm/types/suiClient.d.ts.map +1 -1
  97. package/lib/esm/types/types/sui.d.ts +1 -1
  98. package/lib/esm/types/types/sui.d.ts.map +1 -1
  99. package/lib/esm/types/types/tx.d.ts +5 -2
  100. package/lib/esm/types/types/tx.d.ts.map +1 -1
  101. package/lib/esm/types/utils/sui.d.ts +10 -11
  102. package/lib/esm/types/utils/sui.d.ts.map +1 -1
  103. package/lib/esm/utils/sui.js +8 -9
  104. package/package.json +2 -2
package/README.md CHANGED
@@ -8,6 +8,8 @@ npm i @7kprotocol/sdk-ts
8
8
 
9
9
  ## Usage
10
10
 
11
+ ## v2.x.x (used with @mysten/sui)
12
+
11
13
  ### 1. Set Sui Client (Optional)
12
14
 
13
15
  ```typescript
@@ -76,6 +78,165 @@ const tx = await buildTx({
76
78
 
77
79
  or
78
80
 
81
+ ```typescript
82
+ import { Transaction } from "@mysten/sui/transactions";
83
+ import { buildTx } from "@7kprotocol/sdk-ts";
84
+
85
+ const tx = new Transaction();
86
+
87
+ await buildTx({
88
+ quoteResponse,
89
+ accountAddress: "0xSenderAddress",
90
+ slippage: 0.01, // 1%
91
+ commission: {
92
+ partner: "<address to receive fee if any>",
93
+ commissionBps: 0, // 0 means no fee, 1bps = 0.01%, for example, 20bps = 0.2%
94
+ },
95
+ extendTx: {
96
+ tx,
97
+ // explicit consume this coin object instead of loading all available coin objects from wallet
98
+ coinIn: tx.object("0xCoinObjectAddress"),
99
+ },
100
+ });
101
+ ```
102
+
103
+ ### Full Example
104
+
105
+ ```typescript
106
+ import { SuiClient, getFullnodeUrl } from "@mysten/sui/client";
107
+ import { setSuiClient, getQuote, buildTx } from "@7kprotocol/sdk-ts";
108
+
109
+ // optional
110
+ const network = "mainnet";
111
+ const suiClient = new SuiClient({ url: getFullnodeUrl(network) });
112
+ setSuiClient(suiClient);
113
+
114
+ const quoteResponse = await getQuote({
115
+ tokenIn: "0x2::sui::SUI",
116
+ tokenOut:
117
+ "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
118
+ amountIn: "1000000000",
119
+ });
120
+
121
+ const tx = await buildTx({
122
+ quoteResponse,
123
+ accountAddress: "0xSenderAddress",
124
+ slippage: 0.01, // 1%
125
+ commission: {
126
+ partner: "<address to receive fee if any>",
127
+ commissionBps: 0, // 0 means no fee, 1bps = 0.01%, for example, 20bps = 0.2%
128
+ },
129
+ });
130
+
131
+ console.log(tx);
132
+ ```
133
+
134
+ ### Estimate Gas Fee
135
+
136
+ ```typescript
137
+ import { estimateGasFee } from "@7kprotocol/sdk-ts";
138
+
139
+ const feeInUsd = await estimateGasFee({
140
+ quoteResponse,
141
+ accountAddress: "0xSenderAddress",
142
+ slippage: 0.01, // 1%
143
+ commission: {
144
+ partner: "<address to receive fee if any>",
145
+ commissionBps: 0, // 0 means no fee, 1bps = 0.01%, for example, 20bps = 0.2%
146
+ },
147
+ });
148
+ ```
149
+
150
+ or
151
+
152
+ ```typescript
153
+ import { getSuiPrice, estimateGasFee } from "@7kprotocol/sdk-ts";
154
+
155
+ // get sui price using sdk or from else where
156
+ const suiPrice = await getSuiPrice();
157
+
158
+ const feeInUsd = await estimateGasFee({
159
+ quoteResponse,
160
+ accountAddress: "0xSenderAddress",
161
+ slippage: 0.01, // 1%
162
+ suiPrice,
163
+ commission: {
164
+ partner: "<address to receive fee if any>",
165
+ commissionBps: 0, // 0 means no fee, 1bps = 0.01%, for example, 20bps = 0.2%
166
+ },
167
+ });
168
+ ```
169
+
170
+ ## v1.x.x (used with @mysten/sui.js)
171
+
172
+ ### 1. Set Sui Client (Optional)
173
+
174
+ ```typescript
175
+ import { SuiClient, getFullnodeUrl } from "@mysten/sui.js/client";
176
+ import { setSuiClient } from "@7kprotocol/sdk-ts";
177
+
178
+ const network = "mainnet";
179
+ const suiClient = new SuiClient({ url: getFullnodeUrl(network) });
180
+ setSuiClient(suiClient);
181
+ ```
182
+
183
+ Note: this package only supports **mainnet** for now.
184
+
185
+ ### 2. Get Quote
186
+
187
+ ```typescript
188
+ import { getQuote } from "@7kprotocol/sdk-ts";
189
+
190
+ const quoteResponse = await getQuote({
191
+ tokenIn: "0x2::sui::SUI",
192
+ tokenOut:
193
+ "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
194
+ amountIn: "1000000000",
195
+ });
196
+ ```
197
+
198
+ or
199
+
200
+ ```typescript
201
+ import { getQuote } from "@7kprotocol/sdk-ts";
202
+
203
+ const quoteResponse = await getQuote({
204
+ tokenIn: "0x2::sui::SUI",
205
+ tokenOut:
206
+ "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
207
+ amountIn: "1000000000",
208
+ sources: [
209
+ "suiswap",
210
+ "turbos",
211
+ "cetus",
212
+ "bluemove",
213
+ "kriya",
214
+ "kriya_v3",
215
+ "aftermath",
216
+ "deepbook",
217
+ "flowx",
218
+ ], // Optional: if empty, the latest sources supported by the current SDK version will be used.
219
+ });
220
+ ```
221
+
222
+ ### 3. Build Transaction
223
+
224
+ ```typescript
225
+ import { buildTx } from "@7kprotocol/sdk-ts";
226
+
227
+ const tx = await buildTx({
228
+ quoteResponse,
229
+ accountAddress: "0xSenderAddress",
230
+ slippage: 0.01, // 1%
231
+ commission: {
232
+ partner: "<address to receive fee if any>",
233
+ commissionBps: 0, // 0 means no fee, 1bps = 0.01%, for example, 20bps = 0.2%
234
+ },
235
+ });
236
+ ```
237
+
238
+ or
239
+
79
240
  ```typescript
80
241
  import { TransactionBlock } from "@mysten/sui.js/transactions";
81
242
  import { buildTx } from "@7kprotocol/sdk-ts";
@@ -83,7 +244,6 @@ import { buildTx } from "@7kprotocol/sdk-ts";
83
244
  const tx = new TransactionBlock();
84
245
 
85
246
  await buildTx({
86
- tx,
87
247
  quoteResponse,
88
248
  accountAddress: "0xSenderAddress",
89
249
  slippage: 0.01, // 1%
@@ -91,12 +251,18 @@ await buildTx({
91
251
  partner: "<address to receive fee if any>",
92
252
  commissionBps: 0, // 0 means no fee, 1bps = 0.01%, for example, 20bps = 0.2%
93
253
  },
254
+ extendTx: {
255
+ tx,
256
+ // explicit consume this coin object instead of loading all available coin objects from wallet
257
+ coinIn: tx.object("0xCoinObjectAddress"),
258
+ },
94
259
  });
95
260
  ```
96
261
 
97
262
  ### Full Example
98
263
 
99
264
  ```typescript
265
+ import { SuiClient, getFullnodeUrl } from "@mysten/sui.js/client";
100
266
  import { setSuiClient, getQuote, buildTx } from "@7kprotocol/sdk-ts";
101
267
 
102
268
  // optional
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.buildTx = void 0;
16
- const transactions_1 = require("@mysten/sui.js/transactions");
16
+ const transactions_1 = require("@mysten/sui/transactions");
17
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
18
  const getSplitCoinForTx_1 = require("./libs/getSplitCoinForTx");
19
19
  const groupSwapRoutes_1 = require("./libs/groupSwapRoutes");
@@ -21,8 +21,9 @@ const swapWithRoute_1 = require("./libs/swapWithRoute");
21
21
  const token_1 = require("./utils/token");
22
22
  const sui_1 = require("./utils/sui");
23
23
  const _7k_1 = require("./constants/_7k");
24
- const utils_1 = require("@mysten/sui.js/utils");
25
- const buildTx = (_a) => __awaiter(void 0, [_a], void 0, function* ({ quoteResponse, accountAddress, slippage, tx: _tx, commission: _commission, isGasEstimate, }) {
24
+ const utils_1 = require("@mysten/sui/utils");
25
+ const buildTx = (_a) => __awaiter(void 0, [_a], void 0, function* ({ quoteResponse, accountAddress, slippage, commission: _commission, isGasEstimate, extendTx, }) {
26
+ const { tx: _tx, coinIn } = extendTx || {};
26
27
  if (!accountAddress) {
27
28
  throw new Error("Sender address is required");
28
29
  }
@@ -32,10 +33,17 @@ const buildTx = (_a) => __awaiter(void 0, [_a], void 0, function* ({ quoteRespon
32
33
  if (!(0, utils_1.isValidSuiAddress)(_commission.partner)) {
33
34
  throw new Error("Invalid commission partner address");
34
35
  }
35
- const tx = _tx || new transactions_1.TransactionBlock();
36
+ const tx = _tx || new transactions_1.Transaction();
36
37
  const routes = (0, groupSwapRoutes_1.groupSwapRoutes)(quoteResponse);
37
38
  const splits = routes.map((group) => { var _a, _b; return (_b = (_a = group[0]) === null || _a === void 0 ? void 0 : _a.amount) !== null && _b !== void 0 ? _b : "0"; });
38
- const { coinData } = yield (0, getSplitCoinForTx_1.getSplitCoinForTx)(accountAddress, quoteResponse.swapAmountWithDecimal, splits, (0, token_1.denormalizeTokenType)(quoteResponse.tokenIn), tx, isGasEstimate);
39
+ let coinData;
40
+ if (coinIn) {
41
+ coinData = tx.splitCoins(coinIn, splits);
42
+ }
43
+ else {
44
+ const { coinData: _data } = yield (0, getSplitCoinForTx_1.getSplitCoinForTx)(accountAddress, quoteResponse.swapAmountWithDecimal, splits, (0, token_1.denormalizeTokenType)(quoteResponse.tokenIn), tx, isGasEstimate);
45
+ coinData = _data;
46
+ }
39
47
  const coinObjects = [];
40
48
  yield Promise.all(routes.map((route, index) => __awaiter(void 0, void 0, void 0, function* () {
41
49
  const inputCoinObject = coinData[index];
@@ -14,17 +14,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.estimateGasFee = estimateGasFee;
16
16
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
- const utils_1 = require("@mysten/sui.js/utils");
17
+ const utils_1 = require("@mysten/sui/utils");
18
18
  const buildTx_1 = require("./buildTx");
19
19
  const number_1 = require("./utils/number");
20
20
  const suiClient_1 = require("./suiClient");
21
21
  const getSuiPrice_1 = require("./getSuiPrice");
22
22
  function estimateGasFee(_a) {
23
- return __awaiter(this, arguments, void 0, function* ({ quoteResponse, accountAddress, slippage, suiPrice: _suiPrice, tx: _tx, commission, }) {
23
+ return __awaiter(this, arguments, void 0, function* ({ quoteResponse, accountAddress, slippage, suiPrice: _suiPrice, extendTx, commission, }) {
24
24
  if (!accountAddress)
25
25
  return 0;
26
26
  const tx = yield (0, buildTx_1.buildTx)({
27
- tx: _tx,
27
+ extendTx,
28
28
  quoteResponse,
29
29
  accountAddress,
30
30
  slippage,
@@ -10,40 +10,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getSplitCoinForTx = void 0;
13
- const transactions_1 = require("@mysten/sui.js/transactions");
13
+ const transactions_1 = require("@mysten/sui/transactions");
14
14
  const getCoinOjectIdsByAmount_1 = require("./getCoinOjectIdsByAmount");
15
15
  const tokens_1 = require("../constants/tokens");
16
16
  const getSplitCoinForTx = (account, amount, splits, coinType, inheritTx, inspecTransaction) => __awaiter(void 0, void 0, void 0, function* () {
17
- const tx = inheritTx !== null && inheritTx !== void 0 ? inheritTx : new transactions_1.TransactionBlock();
17
+ const tx = inheritTx !== null && inheritTx !== void 0 ? inheritTx : new transactions_1.Transaction();
18
18
  const { objectIds } = yield (0, getCoinOjectIdsByAmount_1.getCoinOjectIdsByAmount)(account, amount, coinType);
19
19
  const coinObjectId = objectIds[0];
20
20
  if (coinType === tokens_1.SUI_TYPE) {
21
- const pureAmount = [];
22
- for (const split of splits) {
23
- pureAmount.push(tx.pure(split));
24
- }
25
21
  let coin;
26
22
  if (inspecTransaction) {
27
23
  if (objectIds.length > 1) {
28
24
  tx.mergeCoins(tx.object(coinObjectId), objectIds.slice(1).map((item) => tx.object(item)));
29
25
  }
30
- coin = tx.splitCoins(tx.object(coinObjectId), pureAmount);
26
+ coin = tx.splitCoins(tx.object(coinObjectId), splits);
31
27
  }
32
28
  else {
33
- coin = tx.splitCoins(tx.gas, pureAmount);
29
+ coin = tx.splitCoins(tx.gas, splits);
34
30
  }
35
31
  return { tx, coinData: coin };
36
32
  }
37
33
  if (objectIds.length > 1) {
38
34
  tx.mergeCoins(tx.object(coinObjectId), objectIds.slice(1).map((item) => tx.object(item)));
39
35
  }
40
- //handle split coin
41
- const pureAmount = [];
42
- for (const split of splits) {
43
- pureAmount.push(tx.pure(split));
44
- }
45
36
  // split correct amount to swap
46
- const coinData = tx.splitCoins(tx.object(coinObjectId), pureAmount);
37
+ const coinData = tx.splitCoins(tx.object(coinObjectId), splits);
47
38
  return { tx, coinData };
48
39
  });
49
40
  exports.getSplitCoinForTx = getSplitCoinForTx;
@@ -41,7 +41,7 @@ class AfterMathContract extends base_1.BaseContract {
41
41
  tx.object(INSURANCE_FUND),
42
42
  tx.object(REFERRAL_VAULT),
43
43
  inputCoinObject,
44
- tx.pure(returnAmount),
44
+ tx.pure.u64(returnAmount),
45
45
  tx.pure.u64("1000000000000000000"), // slippage
46
46
  ],
47
47
  });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseContract = void 0;
4
- const utils_1 = require("@mysten/sui.js/utils");
4
+ const utils_1 = require("@mysten/sui/utils");
5
5
  const sui_1 = require("../../utils/sui");
6
6
  class BaseContract {
7
7
  constructor({ swapInfo, inputCoinObject, currentAccount, }) {
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CetusContract = void 0;
13
13
  const base_1 = require("../base");
14
- const utils_1 = require("@mysten/sui.js/utils");
14
+ const utils_1 = require("@mysten/sui/utils");
15
15
  const utils_2 = require("../utils");
16
16
  const sui_1 = require("../../../utils/sui");
17
17
  const GLOBAL_CONFIG_ID = "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f";
@@ -40,11 +40,11 @@ class CetusContract extends base_1.BaseContract {
40
40
  tx.object(this.swapInfo.poolId),
41
41
  this.swapInfo.swapXtoY ? this.inputCoinObject : zeroOut, // coin A
42
42
  this.swapInfo.swapXtoY ? zeroOut : this.inputCoinObject, // coin B
43
- tx.pure(this.swapInfo.swapXtoY), // a to b or b to a
44
- tx.pure(true), // exact in or out
43
+ tx.pure.bool(this.swapInfo.swapXtoY), // a to b or b to a
44
+ tx.pure.bool(true), // exact in or out
45
45
  amountIn, // swap amount
46
46
  tx.pure.u128(sqrtPriceLimit.toString()), // sqrt price limit
47
- tx.pure(false),
47
+ tx.pure.bool(false),
48
48
  tx.object(utils_1.SUI_CLOCK_OBJECT_ID),
49
49
  ],
50
50
  });
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DeepBookContract = void 0;
13
- const utils_1 = require("@mysten/sui.js/utils");
13
+ const utils_1 = require("@mysten/sui/utils");
14
14
  const base_1 = require("../base");
15
15
  const _7k_1 = require("../../../constants/_7k");
16
16
  const PACKAGE_ID = "0xdee9";
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.KriyaV3Contract = void 0;
13
13
  const base_1 = require("../base");
14
- const utils_1 = require("@mysten/sui.js/utils");
14
+ const utils_1 = require("@mysten/sui/utils");
15
15
  const token_1 = require("../../../utils/token");
16
16
  const PACKAGE_ID = "0xbd8d4489782042c6fafad4de4bc6a5e0b84a43c6c00647ffd7062d1e2bb7549e";
17
17
  const VERSION_ID = "0xf5145a7ac345ca8736cf8c76047d00d6d378f30e81be6f6eb557184d9de93c78";
@@ -29,10 +29,10 @@ class KriyaV3Contract extends base_1.BaseContract {
29
29
  typeArguments: this.getTypeParams(),
30
30
  arguments: [
31
31
  tx.object(poolId),
32
- tx.pure(swapXtoY),
33
- tx.pure(true),
32
+ tx.pure.bool(swapXtoY),
33
+ tx.pure.bool(true),
34
34
  this.getInputCoinValue(tx),
35
- tx.pure(swapXtoY ? LowLimitPrice : limitPrice),
35
+ tx.pure.u128(swapXtoY ? LowLimitPrice : limitPrice),
36
36
  tx.object(utils_1.SUI_CLOCK_OBJECT_ID),
37
37
  tx.object(VERSION_ID),
38
38
  ],
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SuiswapContract = void 0;
13
- const utils_1 = require("@mysten/sui.js/utils");
13
+ const utils_1 = require("@mysten/sui/utils");
14
14
  const base_1 = require("../base");
15
15
  const PACKAGE_ID = "0xd075d51486df71e750872b4edf82ea3409fda397ceecc0b6aedf573d923c54a0";
16
16
  const MODULE_NAME = "pool";
@@ -31,7 +31,7 @@ class SuiswapContract extends base_1.BaseContract {
31
31
  arguments: [
32
32
  tx.object(poolId),
33
33
  tx.makeMoveVec({
34
- objects: [inputCoin],
34
+ elements: [inputCoin],
35
35
  }),
36
36
  inputAmount,
37
37
  tx.object(utils_1.SUI_CLOCK_OBJECT_ID),
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TurbosContract = void 0;
13
- const utils_1 = require("@mysten/sui.js/utils");
13
+ const utils_1 = require("@mysten/sui/utils");
14
14
  const base_1 = require("../base");
15
15
  const utils_2 = require("../utils");
16
16
  const constants_1 = require("./constants");
@@ -33,7 +33,7 @@ class TurbosContract extends base_1.BaseContract {
33
33
  arguments: [
34
34
  tx.object(poolId),
35
35
  tx.makeMoveVec({
36
- objects: [this.inputCoinObject],
36
+ elements: [this.inputCoinObject],
37
37
  }),
38
38
  inputAmount,
39
39
  tx.pure.u64(0),
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSuiClient = getSuiClient;
4
4
  exports.setSuiClient = setSuiClient;
5
- const client_1 = require("@mysten/sui.js/client");
5
+ const client_1 = require("@mysten/sui/client");
6
6
  let suiClient = new client_1.SuiClient({
7
7
  url: (0, client_1.getFullnodeUrl)("mainnet"),
8
8
  });
@@ -1,4 +1,4 @@
1
- import { TransactionBlock } from "@mysten/sui.js/transactions";
1
+ import { Transaction } from "@mysten/sui/transactions";
2
2
  import { BuildTxParams } from "./types/tx";
3
- export declare const buildTx: ({ quoteResponse, accountAddress, slippage, tx: _tx, commission: _commission, isGasEstimate, }: BuildTxParams) => Promise<TransactionBlock>;
3
+ export declare const buildTx: ({ quoteResponse, accountAddress, slippage, commission: _commission, isGasEstimate, extendTx, }: BuildTxParams) => Promise<Transaction>;
4
4
  //# sourceMappingURL=buildTx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildTx.d.ts","sourceRoot":"","sources":["../../../src/buildTx.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEjB,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,eAAO,MAAM,OAAO,kGAOjB,aAAa,8BAsEf,CAAC"}
1
+ {"version":3,"file":"buildTx.d.ts","sourceRoot":"","sources":["../../../src/buildTx.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,eAAO,MAAM,OAAO,mGAOjB,aAAa,yBA8Ef,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { EstimateGasFeeParams } from "./types/tx";
2
- export declare function estimateGasFee({ quoteResponse, accountAddress, slippage, suiPrice: _suiPrice, tx: _tx, commission, }: EstimateGasFeeParams): Promise<number>;
2
+ export declare function estimateGasFee({ quoteResponse, accountAddress, slippage, suiPrice: _suiPrice, extendTx, commission, }: EstimateGasFeeParams): Promise<number>;
3
3
  //# sourceMappingURL=estimateGasFee.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"estimateGasFee.d.ts","sourceRoot":"","sources":["../../../src/estimateGasFee.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIlD,wBAAsB,cAAc,CAAC,EACnC,aAAa,EACb,cAAc,EACd,QAAQ,EACR,QAAQ,EAAE,SAAS,EACnB,EAAE,EAAE,GAAG,EACP,UAAU,GACX,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqCxC"}
1
+ {"version":3,"file":"estimateGasFee.d.ts","sourceRoot":"","sources":["../../../src/estimateGasFee.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIlD,wBAAsB,cAAc,CAAC,EACnC,aAAa,EACb,cAAc,EACd,QAAQ,EACR,QAAQ,EAAE,SAAS,EACnB,QAAQ,EACR,UAAU,GACX,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqCxC"}
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  getQuote: typeof getQuote;
12
12
  getSuiPrice: typeof getSuiPrice;
13
13
  estimateGasFee: typeof estimateGasFee;
14
- buildTx: ({ quoteResponse, accountAddress, slippage, tx: _tx, commission: _commission, isGasEstimate, }: import("./types/tx").BuildTxParams) => Promise<import("@mysten/sui.js/dist/cjs/transactions").TransactionBlock>;
14
+ buildTx: ({ quoteResponse, accountAddress, slippage, commission: _commission, isGasEstimate, extendTx, }: import("./types/tx").BuildTxParams) => Promise<import("@mysten/sui/dist/cjs/transactions").Transaction>;
15
15
  };
16
16
  export default _default;
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CoinStruct } from "@mysten/sui.js/client";
1
+ import { CoinStruct } from "@mysten/sui/client";
2
2
  export declare const getCoinOjectIdsByAmount: (address: string, amount: string, coinType: string) => Promise<{
3
3
  objectIds: string[];
4
4
  objectCoins: CoinStruct[];
@@ -1 +1 @@
1
- {"version":3,"file":"getCoinOjectIdsByAmount.d.ts","sourceRoot":"","sources":["../../../../src/libs/getCoinOjectIdsByAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,uBAAuB,CAAC;AA2BnE,eAAO,MAAM,uBAAuB,YACzB,MAAM,UACP,MAAM,YACJ,MAAM,KACf,OAAO,CAAC;IACT,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB,CA0CA,CAAC"}
1
+ {"version":3,"file":"getCoinOjectIdsByAmount.d.ts","sourceRoot":"","sources":["../../../../src/libs/getCoinOjectIdsByAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AA2BhE,eAAO,MAAM,uBAAuB,YACzB,MAAM,UACP,MAAM,YACJ,MAAM,KACf,OAAO,CAAC;IACT,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB,CA0CA,CAAC"}
@@ -1,6 +1,6 @@
1
- import { TransactionBlock, TransactionResult } from "@mysten/sui.js/transactions";
2
- export declare const getSplitCoinForTx: (account: string, amount: string, splits: string[], coinType: string, inheritTx?: TransactionBlock, inspecTransaction?: boolean) => Promise<{
3
- tx: TransactionBlock;
1
+ import { Transaction, TransactionResult } from "@mysten/sui/transactions";
2
+ export declare const getSplitCoinForTx: (account: string, amount: string, splits: string[], coinType: string, inheritTx?: Transaction, inspecTransaction?: boolean) => Promise<{
3
+ tx: Transaction;
4
4
  coinData: TransactionResult;
5
5
  }>;
6
6
  //# sourceMappingURL=getSplitCoinForTx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSplitCoinForTx.d.ts","sourceRoot":"","sources":["../../../../src/libs/getSplitCoinForTx.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,iBAAiB,YACnB,MAAM,UACP,MAAM,UACN,MAAM,EAAE,YACN,MAAM,cACJ,gBAAgB,sBACR,OAAO,KAC1B,OAAO,CAAC;IACT,EAAE,EAAE,gBAAgB,CAAC;IACrB,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CA4CA,CAAC"}
1
+ {"version":3,"file":"getSplitCoinForTx.d.ts","sourceRoot":"","sources":["../../../../src/libs/getSplitCoinForTx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAI1E,eAAO,MAAM,iBAAiB,YACnB,MAAM,UACP,MAAM,UACN,MAAM,EAAE,YACN,MAAM,cACJ,WAAW,sBACH,OAAO,KAC1B,OAAO,CAAC;IACT,EAAE,EAAE,WAAW,CAAC;IAChB,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CAkCA,CAAC"}
@@ -1,10 +1,9 @@
1
- import { TransactionBlock } from "@mysten/sui.js/transactions";
1
+ import { Transaction } from "@mysten/sui/transactions";
2
2
  import { BaseContract } from "../base";
3
3
  export declare class AfterMathContract extends BaseContract {
4
- swap(tx: TransactionBlock): Promise<{
5
- index: number;
6
- resultIndex: number;
7
- kind: "NestedResult";
4
+ swap(tx: Transaction): Promise<{
5
+ $kind: "NestedResult";
6
+ NestedResult: [number, number];
8
7
  }>;
9
8
  }
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/aftermath/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAkBvC,qBAAa,iBAAkB,SAAQ,YAAY;IAC3C,IAAI,CAAC,EAAE,EAAE,gBAAgB;;;;;CA2BhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/aftermath/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAkBvC,qBAAa,iBAAkB,SAAQ,YAAY;IAC3C,IAAI,CAAC,EAAE,EAAE,WAAW;;;;CA2B3B"}
@@ -1,4 +1,4 @@
1
- import { TransactionBlock } from "@mysten/sui.js/transactions";
1
+ import { Transaction } from "@mysten/sui/transactions";
2
2
  import { TxSorSwap } from "../../types/aggregator";
3
3
  import { TransactionResultItem } from "../../types/sui";
4
4
  export interface BaseContractParams {
@@ -11,27 +11,8 @@ export declare abstract class BaseContract {
11
11
  protected inputCoinObject: TransactionResultItem;
12
12
  protected currentAccount: string;
13
13
  constructor({ swapInfo, inputCoinObject, currentAccount, }: BaseContractParams);
14
- abstract swap(tx: TransactionBlock): Promise<TransactionResultItem>;
15
- protected getInputCoinValue(tx: TransactionBlock): {
16
- index: number;
17
- kind: "Input";
18
- value?: any;
19
- type?: "object" | undefined;
20
- } | {
21
- index: number;
22
- kind: "Input";
23
- type: "pure";
24
- value?: any;
25
- } | {
26
- kind: "GasCoin";
27
- } | {
28
- index: number;
29
- kind: "Result";
30
- } | {
31
- index: number;
32
- resultIndex: number;
33
- kind: "NestedResult";
34
- };
14
+ abstract swap(tx: Transaction): Promise<TransactionResultItem>;
15
+ protected getInputCoinValue(tx: Transaction): import("@mysten/sui/transactions").TransactionArgument;
35
16
  protected getTypeParams(): string[];
36
17
  }
37
18
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/libs/protocols/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,EAAE,qBAAqB,CAAC;IACvC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,8BAAsB,YAAY;IAChC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC9B,SAAS,CAAC,eAAe,EAAE,qBAAqB,CAAC;IACjD,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;gBAErB,EACV,QAAQ,EACR,eAAe,EACf,cAAc,GACf,EAAE,kBAAkB;IAMrB,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAEnE,SAAS,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;IAQhD,SAAS,CAAC,aAAa;CAKxB"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/libs/protocols/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,EAAE,qBAAqB,CAAC;IACvC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,8BAAsB,YAAY;IAChC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC9B,SAAS,CAAC,eAAe,EAAE,qBAAqB,CAAC;IACjD,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;gBAErB,EACV,QAAQ,EACR,eAAe,EACf,cAAc,GACf,EAAE,kBAAkB;IAMrB,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAE9D,SAAS,CAAC,iBAAiB,CAAC,EAAE,EAAE,WAAW;IAQ3C,SAAS,CAAC,aAAa;CAKxB"}
@@ -1,10 +1,9 @@
1
- import { TransactionBlock } from "@mysten/sui.js/transactions";
1
+ import { Transaction } from "@mysten/sui/transactions";
2
2
  import { BaseContract } from "../base";
3
3
  export declare class BluemoveContract extends BaseContract {
4
- swap(tx: TransactionBlock): Promise<{
5
- index: number;
6
- resultIndex: number;
7
- kind: "NestedResult";
4
+ swap(tx: Transaction): Promise<{
5
+ $kind: "NestedResult";
6
+ NestedResult: [number, number];
8
7
  }>;
9
8
  }
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/bluemove/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQvC,qBAAa,gBAAiB,SAAQ,YAAY;IAC1C,IAAI,CAAC,EAAE,EAAE,gBAAgB;;;;;CAoBhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/bluemove/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQvC,qBAAa,gBAAiB,SAAQ,YAAY;IAC1C,IAAI,CAAC,EAAE,EAAE,WAAW;;;;CAoB3B"}
@@ -1,10 +1,9 @@
1
- import { TransactionBlock } from "@mysten/sui.js/transactions";
1
+ import { Transaction } from "@mysten/sui/transactions";
2
2
  import { BaseContract } from "../base";
3
3
  export declare class CetusContract extends BaseContract {
4
- swap(tx: TransactionBlock): Promise<{
5
- index: number;
6
- resultIndex: number;
7
- kind: "NestedResult";
4
+ swap(tx: Transaction): Promise<{
5
+ $kind: "NestedResult";
6
+ NestedResult: [number, number];
8
7
  }>;
9
8
  }
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/cetus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAWvC,qBAAa,aAAc,SAAQ,YAAY;IACvC,IAAI,CAAC,EAAE,EAAE,gBAAgB;;;;;CAyChC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/cetus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAWvC,qBAAa,aAAc,SAAQ,YAAY;IACvC,IAAI,CAAC,EAAE,EAAE,WAAW;;;;CAyC3B"}
@@ -1,10 +1,9 @@
1
- import { TransactionBlock } from "@mysten/sui.js/transactions";
1
+ import { Transaction } from "@mysten/sui/transactions";
2
2
  import { BaseContract } from "../base";
3
3
  export declare class DeepBookContract extends BaseContract {
4
- swap(tx: TransactionBlock): Promise<{
5
- index: number;
6
- resultIndex: number;
7
- kind: "NestedResult";
4
+ swap(tx: Transaction): Promise<{
5
+ $kind: "NestedResult";
6
+ NestedResult: [number, number];
8
7
  }>;
9
8
  private createAccountCap;
10
9
  private deleteAccountCap;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/deepbook/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,qBAAa,gBAAiB,SAAQ,YAAY;IAC1C,IAAI,CAAC,EAAE,EAAE,gBAAgB;;;;;IA+D/B,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,gBAAgB;CAMzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/deepbook/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,qBAAa,gBAAiB,SAAQ,YAAY;IAC1C,IAAI,CAAC,EAAE,EAAE,WAAW;;;;IA+D1B,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,gBAAgB;CAMzB"}