@strkfarm/sdk 1.1.14 → 1.1.16
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.browser.global.js +16 -17
- package/dist/index.browser.mjs +10 -11
- package/dist/index.js +10 -11
- package/dist/index.mjs +10 -11
- package/package.json +1 -1
- package/src/data/vesu-pool-v2.abi.json +1852 -0
- package/src/global.ts +5 -6
- package/src/strategies/ekubo-cl-vault.tsx +1 -1
|
@@ -49099,8 +49099,8 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49099
49099
|
decimals: 8,
|
|
49100
49100
|
coingeckId: void 0,
|
|
49101
49101
|
displayDecimals: 6,
|
|
49102
|
-
priceCheckAmount: 1e-
|
|
49103
|
-
// 112000 * 0.0001 = $
|
|
49102
|
+
priceCheckAmount: 1e-3
|
|
49103
|
+
// 112000 * 0.0001 = $110.2
|
|
49104
49104
|
}, {
|
|
49105
49105
|
name: "tBTC",
|
|
49106
49106
|
symbol: "tBTC",
|
|
@@ -49109,8 +49109,8 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49109
49109
|
decimals: 18,
|
|
49110
49110
|
coingeckId: void 0,
|
|
49111
49111
|
displayDecimals: 6,
|
|
49112
|
-
priceCheckAmount: 1e-
|
|
49113
|
-
// 112000 * 0.0001 = $
|
|
49112
|
+
priceCheckAmount: 1e-3
|
|
49113
|
+
// 112000 * 0.0001 = $110.2
|
|
49114
49114
|
}, {
|
|
49115
49115
|
name: "solvBTC",
|
|
49116
49116
|
symbol: "solvBTC",
|
|
@@ -49141,9 +49141,8 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49141
49141
|
decimals: 8,
|
|
49142
49142
|
coingeckId: void 0,
|
|
49143
49143
|
displayDecimals: 6,
|
|
49144
|
-
|
|
49145
|
-
|
|
49146
|
-
// 112000 * 0.0001 = $11.2
|
|
49144
|
+
priceCheckAmount: 1e-3
|
|
49145
|
+
// 112000 * 0.0001 = $110.2
|
|
49147
49146
|
}, {
|
|
49148
49147
|
name: "xsBTC",
|
|
49149
49148
|
symbol: "xsBTC",
|
|
@@ -49156,6 +49155,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49156
49155
|
priceCheckAmount: 1e-4
|
|
49157
49156
|
// 112000 * 0.0001 = $11.2
|
|
49158
49157
|
}, {
|
|
49158
|
+
// todo upgrade proxy tokens once feeds are available
|
|
49159
49159
|
name: "xtBTC",
|
|
49160
49160
|
symbol: "xtBTC",
|
|
49161
49161
|
logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
|
|
@@ -49163,9 +49163,8 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
49163
49163
|
decimals: 18,
|
|
49164
49164
|
coingeckId: void 0,
|
|
49165
49165
|
displayDecimals: 6,
|
|
49166
|
-
|
|
49167
|
-
|
|
49168
|
-
// 112000 * 0.0001 = $11.2
|
|
49166
|
+
priceCheckAmount: 1e-3
|
|
49167
|
+
// 112000 * 0.0001 = $110.2
|
|
49169
49168
|
}, {
|
|
49170
49169
|
name: "xLBTC",
|
|
49171
49170
|
symbol: "xLBTC",
|
|
@@ -51385,7 +51384,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
51385
51384
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
|
|
51386
51385
|
});
|
|
51387
51386
|
|
|
51388
|
-
// node_modules/@
|
|
51387
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/utils.js
|
|
51389
51388
|
var _0n7 = /* @__PURE__ */ BigInt(0);
|
|
51390
51389
|
var _1n7 = /* @__PURE__ */ BigInt(1);
|
|
51391
51390
|
function abool2(value, title = "") {
|
|
@@ -51531,7 +51530,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
51531
51530
|
};
|
|
51532
51531
|
}
|
|
51533
51532
|
|
|
51534
|
-
// node_modules/@
|
|
51533
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/modular.js
|
|
51535
51534
|
var _0n8 = /* @__PURE__ */ BigInt(0);
|
|
51536
51535
|
var _1n8 = /* @__PURE__ */ BigInt(1);
|
|
51537
51536
|
var _2n6 = /* @__PURE__ */ BigInt(2);
|
|
@@ -51909,7 +51908,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
51909
51908
|
return isLE2 ? numberToBytesLE2(reduced, fieldLen) : numberToBytesBE2(reduced, fieldLen);
|
|
51910
51909
|
}
|
|
51911
51910
|
|
|
51912
|
-
// node_modules/@
|
|
51911
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/poseidon.js
|
|
51913
51912
|
function assertValidPosOpts(opts) {
|
|
51914
51913
|
const { Fp, roundsFull } = opts;
|
|
51915
51914
|
validateField2(Fp);
|
|
@@ -52077,7 +52076,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
52077
52076
|
var hmac2 = (hash2, key, message) => new _HMAC(hash2, key).update(message).digest();
|
|
52078
52077
|
hmac2.create = (hash2, key) => new _HMAC(hash2, key);
|
|
52079
52078
|
|
|
52080
|
-
// node_modules/@
|
|
52079
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/curve.js
|
|
52081
52080
|
var _0n9 = /* @__PURE__ */ BigInt(0);
|
|
52082
52081
|
var _1n9 = /* @__PURE__ */ BigInt(1);
|
|
52083
52082
|
function negateCt(condition, item) {
|
|
@@ -52310,7 +52309,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
52310
52309
|
};
|
|
52311
52310
|
}
|
|
52312
52311
|
|
|
52313
|
-
// node_modules/@
|
|
52312
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/weierstrass.js
|
|
52314
52313
|
var divNearest2 = (num2, den) => (num2 + (num2 >= 0 ? den : -den) / _2n7) / den;
|
|
52315
52314
|
function _splitEndoScalar(k, basis, n) {
|
|
52316
52315
|
const [[a1, b1], [a2, b2]] = basis;
|
|
@@ -53446,7 +53445,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
53446
53445
|
/* @__PURE__ */ oidNist(1)
|
|
53447
53446
|
);
|
|
53448
53447
|
|
|
53449
|
-
// node_modules/@scure/starknet/index.js
|
|
53448
|
+
// node_modules/.pnpm/@scure+starknet@2.0.0/node_modules/@scure/starknet/index.js
|
|
53450
53449
|
var CURVE_ORDER2 = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583");
|
|
53451
53450
|
var MAX_VALUE2 = BigInt("0x800000000000000000000000000000000000000000000000000000000000000");
|
|
53452
53451
|
var nBitLength2 = 252;
|
|
@@ -68152,7 +68151,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68152
68151
|
address: ContractAddr.from(
|
|
68153
68152
|
"0x785dc3dfc4e80ef2690a99512481e3ed3a5266180adda5a47e856245d68a4af"
|
|
68154
68153
|
),
|
|
68155
|
-
launchBlock:
|
|
68154
|
+
launchBlock: 2415667,
|
|
68156
68155
|
// must be same order as poolKey token0 and token1
|
|
68157
68156
|
depositTokens: [
|
|
68158
68157
|
Global.getDefaultTokens().find((t) => t.symbol === "xtBTC"),
|
package/dist/index.browser.mjs
CHANGED
|
@@ -192,8 +192,8 @@ var defaultTokens = [{
|
|
|
192
192
|
decimals: 8,
|
|
193
193
|
coingeckId: void 0,
|
|
194
194
|
displayDecimals: 6,
|
|
195
|
-
priceCheckAmount: 1e-
|
|
196
|
-
// 112000 * 0.0001 = $
|
|
195
|
+
priceCheckAmount: 1e-3
|
|
196
|
+
// 112000 * 0.0001 = $110.2
|
|
197
197
|
}, {
|
|
198
198
|
name: "tBTC",
|
|
199
199
|
symbol: "tBTC",
|
|
@@ -202,8 +202,8 @@ var defaultTokens = [{
|
|
|
202
202
|
decimals: 18,
|
|
203
203
|
coingeckId: void 0,
|
|
204
204
|
displayDecimals: 6,
|
|
205
|
-
priceCheckAmount: 1e-
|
|
206
|
-
// 112000 * 0.0001 = $
|
|
205
|
+
priceCheckAmount: 1e-3
|
|
206
|
+
// 112000 * 0.0001 = $110.2
|
|
207
207
|
}, {
|
|
208
208
|
name: "solvBTC",
|
|
209
209
|
symbol: "solvBTC",
|
|
@@ -234,9 +234,8 @@ var defaultTokens = [{
|
|
|
234
234
|
decimals: 8,
|
|
235
235
|
coingeckId: void 0,
|
|
236
236
|
displayDecimals: 6,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
// 112000 * 0.0001 = $11.2
|
|
237
|
+
priceCheckAmount: 1e-3
|
|
238
|
+
// 112000 * 0.0001 = $110.2
|
|
240
239
|
}, {
|
|
241
240
|
name: "xsBTC",
|
|
242
241
|
symbol: "xsBTC",
|
|
@@ -249,6 +248,7 @@ var defaultTokens = [{
|
|
|
249
248
|
priceCheckAmount: 1e-4
|
|
250
249
|
// 112000 * 0.0001 = $11.2
|
|
251
250
|
}, {
|
|
251
|
+
// todo upgrade proxy tokens once feeds are available
|
|
252
252
|
name: "xtBTC",
|
|
253
253
|
symbol: "xtBTC",
|
|
254
254
|
logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
|
|
@@ -256,9 +256,8 @@ var defaultTokens = [{
|
|
|
256
256
|
decimals: 18,
|
|
257
257
|
coingeckId: void 0,
|
|
258
258
|
displayDecimals: 6,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
// 112000 * 0.0001 = $11.2
|
|
259
|
+
priceCheckAmount: 1e-3
|
|
260
|
+
// 112000 * 0.0001 = $110.2
|
|
262
261
|
}, {
|
|
263
262
|
name: "xLBTC",
|
|
264
263
|
symbol: "xLBTC",
|
|
@@ -16574,7 +16573,7 @@ var lstStrategies = [
|
|
|
16574
16573
|
address: ContractAddr.from(
|
|
16575
16574
|
"0x785dc3dfc4e80ef2690a99512481e3ed3a5266180adda5a47e856245d68a4af"
|
|
16576
16575
|
),
|
|
16577
|
-
launchBlock:
|
|
16576
|
+
launchBlock: 2415667,
|
|
16578
16577
|
// must be same order as poolKey token0 and token1
|
|
16579
16578
|
depositTokens: [
|
|
16580
16579
|
Global.getDefaultTokens().find((t) => t.symbol === "xtBTC"),
|
package/dist/index.js
CHANGED
|
@@ -325,8 +325,8 @@ var defaultTokens = [{
|
|
|
325
325
|
decimals: 8,
|
|
326
326
|
coingeckId: void 0,
|
|
327
327
|
displayDecimals: 6,
|
|
328
|
-
priceCheckAmount: 1e-
|
|
329
|
-
// 112000 * 0.0001 = $
|
|
328
|
+
priceCheckAmount: 1e-3
|
|
329
|
+
// 112000 * 0.0001 = $110.2
|
|
330
330
|
}, {
|
|
331
331
|
name: "tBTC",
|
|
332
332
|
symbol: "tBTC",
|
|
@@ -335,8 +335,8 @@ var defaultTokens = [{
|
|
|
335
335
|
decimals: 18,
|
|
336
336
|
coingeckId: void 0,
|
|
337
337
|
displayDecimals: 6,
|
|
338
|
-
priceCheckAmount: 1e-
|
|
339
|
-
// 112000 * 0.0001 = $
|
|
338
|
+
priceCheckAmount: 1e-3
|
|
339
|
+
// 112000 * 0.0001 = $110.2
|
|
340
340
|
}, {
|
|
341
341
|
name: "solvBTC",
|
|
342
342
|
symbol: "solvBTC",
|
|
@@ -367,9 +367,8 @@ var defaultTokens = [{
|
|
|
367
367
|
decimals: 8,
|
|
368
368
|
coingeckId: void 0,
|
|
369
369
|
displayDecimals: 6,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
// 112000 * 0.0001 = $11.2
|
|
370
|
+
priceCheckAmount: 1e-3
|
|
371
|
+
// 112000 * 0.0001 = $110.2
|
|
373
372
|
}, {
|
|
374
373
|
name: "xsBTC",
|
|
375
374
|
symbol: "xsBTC",
|
|
@@ -382,6 +381,7 @@ var defaultTokens = [{
|
|
|
382
381
|
priceCheckAmount: 1e-4
|
|
383
382
|
// 112000 * 0.0001 = $11.2
|
|
384
383
|
}, {
|
|
384
|
+
// todo upgrade proxy tokens once feeds are available
|
|
385
385
|
name: "xtBTC",
|
|
386
386
|
symbol: "xtBTC",
|
|
387
387
|
logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
|
|
@@ -389,9 +389,8 @@ var defaultTokens = [{
|
|
|
389
389
|
decimals: 18,
|
|
390
390
|
coingeckId: void 0,
|
|
391
391
|
displayDecimals: 6,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
// 112000 * 0.0001 = $11.2
|
|
392
|
+
priceCheckAmount: 1e-3
|
|
393
|
+
// 112000 * 0.0001 = $110.2
|
|
395
394
|
}, {
|
|
396
395
|
name: "xLBTC",
|
|
397
396
|
symbol: "xLBTC",
|
|
@@ -16661,7 +16660,7 @@ var lstStrategies = [
|
|
|
16661
16660
|
address: ContractAddr.from(
|
|
16662
16661
|
"0x785dc3dfc4e80ef2690a99512481e3ed3a5266180adda5a47e856245d68a4af"
|
|
16663
16662
|
),
|
|
16664
|
-
launchBlock:
|
|
16663
|
+
launchBlock: 2415667,
|
|
16665
16664
|
// must be same order as poolKey token0 and token1
|
|
16666
16665
|
depositTokens: [
|
|
16667
16666
|
Global.getDefaultTokens().find((t) => t.symbol === "xtBTC"),
|
package/dist/index.mjs
CHANGED
|
@@ -233,8 +233,8 @@ var defaultTokens = [{
|
|
|
233
233
|
decimals: 8,
|
|
234
234
|
coingeckId: void 0,
|
|
235
235
|
displayDecimals: 6,
|
|
236
|
-
priceCheckAmount: 1e-
|
|
237
|
-
// 112000 * 0.0001 = $
|
|
236
|
+
priceCheckAmount: 1e-3
|
|
237
|
+
// 112000 * 0.0001 = $110.2
|
|
238
238
|
}, {
|
|
239
239
|
name: "tBTC",
|
|
240
240
|
symbol: "tBTC",
|
|
@@ -243,8 +243,8 @@ var defaultTokens = [{
|
|
|
243
243
|
decimals: 18,
|
|
244
244
|
coingeckId: void 0,
|
|
245
245
|
displayDecimals: 6,
|
|
246
|
-
priceCheckAmount: 1e-
|
|
247
|
-
// 112000 * 0.0001 = $
|
|
246
|
+
priceCheckAmount: 1e-3
|
|
247
|
+
// 112000 * 0.0001 = $110.2
|
|
248
248
|
}, {
|
|
249
249
|
name: "solvBTC",
|
|
250
250
|
symbol: "solvBTC",
|
|
@@ -275,9 +275,8 @@ var defaultTokens = [{
|
|
|
275
275
|
decimals: 8,
|
|
276
276
|
coingeckId: void 0,
|
|
277
277
|
displayDecimals: 6,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
// 112000 * 0.0001 = $11.2
|
|
278
|
+
priceCheckAmount: 1e-3
|
|
279
|
+
// 112000 * 0.0001 = $110.2
|
|
281
280
|
}, {
|
|
282
281
|
name: "xsBTC",
|
|
283
282
|
symbol: "xsBTC",
|
|
@@ -290,6 +289,7 @@ var defaultTokens = [{
|
|
|
290
289
|
priceCheckAmount: 1e-4
|
|
291
290
|
// 112000 * 0.0001 = $11.2
|
|
292
291
|
}, {
|
|
292
|
+
// todo upgrade proxy tokens once feeds are available
|
|
293
293
|
name: "xtBTC",
|
|
294
294
|
symbol: "xtBTC",
|
|
295
295
|
logo: "https://assets.strkfarm.com/integrations/tokens/xtbtc.svg",
|
|
@@ -297,9 +297,8 @@ var defaultTokens = [{
|
|
|
297
297
|
decimals: 18,
|
|
298
298
|
coingeckId: void 0,
|
|
299
299
|
displayDecimals: 6,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
// 112000 * 0.0001 = $11.2
|
|
300
|
+
priceCheckAmount: 1e-3
|
|
301
|
+
// 112000 * 0.0001 = $110.2
|
|
303
302
|
}, {
|
|
304
303
|
name: "xLBTC",
|
|
305
304
|
symbol: "xLBTC",
|
|
@@ -16573,7 +16572,7 @@ var lstStrategies = [
|
|
|
16573
16572
|
address: ContractAddr.from(
|
|
16574
16573
|
"0x785dc3dfc4e80ef2690a99512481e3ed3a5266180adda5a47e856245d68a4af"
|
|
16575
16574
|
),
|
|
16576
|
-
launchBlock:
|
|
16575
|
+
launchBlock: 2415667,
|
|
16577
16576
|
// must be same order as poolKey token0 and token1
|
|
16578
16577
|
depositTokens: [
|
|
16579
16578
|
Global.getDefaultTokens().find((t) => t.symbol === "xtBTC"),
|