@hinkal/common 0.0.40 → 0.0.42
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/assets/{snarkjsWorkerLogic-DiaByR1H.js → snarkjsWorkerLogic-C_MtXVdj.js} +2 -2
- package/assets/{utxoWorkerLogic-DHb7wtxM.js → utxoWorkerLogic-xG7UH4_1.js} +2 -2
- package/assets/{viteWorkerURL.constant-Bx32O0Qa.js → viteWorkerURL.constant-DDSRgJCA.js} +2 -2
- package/assets/{zkProofWorkerLauncher-DvQXC-QM.js → zkProofWorkerLauncher-BNaaoPQ7.js} +1 -1
- package/assets/{zkProofWorkerLogic-DIo7waUX.js → zkProofWorkerLogic--J1eNnn8.js} +57485 -57459
- package/data-structures/Hinkal/Hinkal.d.ts +1 -0
- package/data-structures/Hinkal/IHinkal.d.ts +1 -0
- package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +1 -1
- package/externalABIs/index.d.ts +2 -1
- package/functions/private-wallet/emporium.helpers.d.ts +2 -1
- package/functions/private-wallet/index.d.ts +1 -0
- package/functions/private-wallet/opProducer.d.ts +5 -0
- package/{index-C7zxPPzW.mjs → index-CM_2gH9C.mjs} +855 -269
- package/index.mjs +407 -404
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-BszTPPlr.mjs → snarkjsWorkerLogic-2EWVLyPP.mjs} +2 -2
- package/{utxoWorkerLogic-WtCYAQcE.mjs → utxoWorkerLogic-CKtUc0cJ.mjs} +2 -2
- package/viteWorkerURL.constant-BdSJ3XVe.mjs +9 -0
- package/{workerProxy-DrJgrlsz.mjs → workerProxy-CCAQBiy-.mjs} +1 -1
- package/{zkProofWorkerLogic-Zc8QRB_b.mjs → zkProofWorkerLogic-BIMoPB0E.mjs} +2 -2
- package/viteWorkerURL.constant-sXT6CAEx.mjs +0 -9
|
@@ -300067,7 +300067,7 @@ class WorkerFactory {
|
|
|
300067
300067
|
constructor() {
|
|
300068
300068
|
}
|
|
300069
300069
|
static resolveWorkerURL = async (t) => {
|
|
300070
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
300070
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-BdSJ3XVe.mjs");
|
|
300071
300071
|
return new URL(c[t], n);
|
|
300072
300072
|
};
|
|
300073
300073
|
static createWorker = async (t) => {
|
|
@@ -300075,13 +300075,13 @@ class WorkerFactory {
|
|
|
300075
300075
|
let c;
|
|
300076
300076
|
return t === WorkerVariant.SnarkJS ? c = await import(
|
|
300077
300077
|
/* @vite-ignore */
|
|
300078
|
-
"./snarkjsWorkerLogic-
|
|
300078
|
+
"./snarkjsWorkerLogic-2EWVLyPP.mjs"
|
|
300079
300079
|
) : t === WorkerVariant.ZKProof ? c = await import(
|
|
300080
300080
|
/* @vite-ignore */
|
|
300081
|
-
"./zkProofWorkerLogic-
|
|
300081
|
+
"./zkProofWorkerLogic-BIMoPB0E.mjs"
|
|
300082
300082
|
) : t === WorkerVariant.UTXO && (c = await import(
|
|
300083
300083
|
/* @vite-ignore */
|
|
300084
|
-
"./utxoWorkerLogic-
|
|
300084
|
+
"./utxoWorkerLogic-CKtUc0cJ.mjs"
|
|
300085
300085
|
)), c.default;
|
|
300086
300086
|
}
|
|
300087
300087
|
const n = await WorkerFactory.resolveWorkerURL(t);
|
|
@@ -300523,8 +300523,8 @@ async function callRelayerTransactAPI(a, t) {
|
|
|
300523
300523
|
return (await axios$3.post(`${getRelayerURL(a)}${RELAYER_CONFIG.TRANSACT}`, t)).data;
|
|
300524
300524
|
}
|
|
300525
300525
|
const emporiumOp = (a, t, n, c, l) => {
|
|
300526
|
-
let u, p = new Uint8Array();
|
|
300527
|
-
typeof a == "object" && "address" in a ? (u = arrayify(a.address), t && (p = arrayify(a.interface.encodeFunctionData(t, n)))) : u = arrayify(a);
|
|
300526
|
+
let u = new Uint8Array(), p = new Uint8Array();
|
|
300527
|
+
typeof a == "object" && "address" in a ? (u = arrayify(a.address), t && (p = arrayify(a.interface.encodeFunctionData(t, n)))) : typeof a == "object" && "_isInterface" in a ? p = arrayify(a.encodeFunctionData(t, n)) : u = arrayify(a);
|
|
300528
300528
|
const T = arrayify([c ? 1 : 0]), H = zeroPad(arrayify(BigNumber.from(l ?? 0n)), 16), O = concat$2([u, T, H, p]);
|
|
300529
300529
|
return hexlify(O);
|
|
300530
300530
|
}, encodeEmporiumMetadata = (a, t) => defaultAbiCoder.encode(
|
|
@@ -302953,7 +302953,7 @@ async function getExtendedPoolInfo(a, t) {
|
|
|
302953
302953
|
virtualPrice: Number((await t.functions.get_virtual_price())[0].toBigInt() / 100000000000000n) / 1e4
|
|
302954
302954
|
};
|
|
302955
302955
|
}
|
|
302956
|
-
const abi$
|
|
302956
|
+
const abi$w = [
|
|
302957
302957
|
{
|
|
302958
302958
|
anonymous: !1,
|
|
302959
302959
|
inputs: [
|
|
@@ -303299,7 +303299,7 @@ const abi$v = [
|
|
|
303299
303299
|
stateMutability: "nonpayable",
|
|
303300
303300
|
type: "function"
|
|
303301
303301
|
}
|
|
303302
|
-
], abi$
|
|
303302
|
+
], abi$v = [
|
|
303303
303303
|
{
|
|
303304
303304
|
anonymous: !1,
|
|
303305
303305
|
inputs: [
|
|
@@ -303865,7 +303865,7 @@ const abi$v = [
|
|
|
303865
303865
|
stateMutability: "nonpayable",
|
|
303866
303866
|
type: "function"
|
|
303867
303867
|
}
|
|
303868
|
-
], abi$
|
|
303868
|
+
], abi$u = [
|
|
303869
303869
|
{
|
|
303870
303870
|
constant: !0,
|
|
303871
303871
|
inputs: [],
|
|
@@ -304380,7 +304380,7 @@ const abi$v = [
|
|
|
304380
304380
|
stateMutability: "nonpayable",
|
|
304381
304381
|
type: "function"
|
|
304382
304382
|
}
|
|
304383
|
-
], abi$
|
|
304383
|
+
], abi$t = [
|
|
304384
304384
|
{
|
|
304385
304385
|
name: "TokenExchange",
|
|
304386
304386
|
inputs: [
|
|
@@ -305798,7 +305798,7 @@ const abi$v = [
|
|
|
305798
305798
|
}
|
|
305799
305799
|
]
|
|
305800
305800
|
}
|
|
305801
|
-
], abi$
|
|
305801
|
+
], abi$s = [
|
|
305802
305802
|
{
|
|
305803
305803
|
name: "TokenExchange",
|
|
305804
305804
|
inputs: [
|
|
@@ -306930,7 +306930,7 @@ const abi$v = [
|
|
|
306930
306930
|
}
|
|
306931
306931
|
]
|
|
306932
306932
|
}
|
|
306933
|
-
], abi$
|
|
306933
|
+
], abi$r = [
|
|
306934
306934
|
{
|
|
306935
306935
|
inputs: [{ internalType: "uint256", name: "chainId_", type: "uint256" }],
|
|
306936
306936
|
payable: !1,
|
|
@@ -307260,7 +307260,7 @@ const abi$v = [
|
|
|
307260
307260
|
stateMutability: "view",
|
|
307261
307261
|
type: "function"
|
|
307262
307262
|
}
|
|
307263
|
-
], abi$
|
|
307263
|
+
], abi$q = [
|
|
307264
307264
|
{
|
|
307265
307265
|
inputs: [
|
|
307266
307266
|
{
|
|
@@ -307547,7 +307547,7 @@ const abi$v = [
|
|
|
307547
307547
|
stateMutability: "nonpayable",
|
|
307548
307548
|
type: "function"
|
|
307549
307549
|
}
|
|
307550
|
-
], abi$
|
|
307550
|
+
], abi$p = [
|
|
307551
307551
|
{
|
|
307552
307552
|
inputs: [
|
|
307553
307553
|
{
|
|
@@ -307748,7 +307748,7 @@ const abi$v = [
|
|
|
307748
307748
|
stateMutability: "nonpayable",
|
|
307749
307749
|
type: "function"
|
|
307750
307750
|
}
|
|
307751
|
-
], abi$
|
|
307751
|
+
], abi$o = [
|
|
307752
307752
|
{
|
|
307753
307753
|
anonymous: !1,
|
|
307754
307754
|
inputs: [
|
|
@@ -307945,7 +307945,7 @@ const abi$v = [
|
|
|
307945
307945
|
stateMutability: "nonpayable",
|
|
307946
307946
|
type: "function"
|
|
307947
307947
|
}
|
|
307948
|
-
], abi$
|
|
307948
|
+
], abi$n = [
|
|
307949
307949
|
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
307950
307950
|
{
|
|
307951
307951
|
anonymous: !1,
|
|
@@ -308030,7 +308030,7 @@ const abi$v = [
|
|
|
308030
308030
|
stateMutability: "nonpayable",
|
|
308031
308031
|
type: "function"
|
|
308032
308032
|
}
|
|
308033
|
-
], abi$
|
|
308033
|
+
], abi$m = [
|
|
308034
308034
|
{
|
|
308035
308035
|
anonymous: !1,
|
|
308036
308036
|
inputs: [
|
|
@@ -308747,7 +308747,7 @@ const abi$v = [
|
|
|
308747
308747
|
stateMutability: "view",
|
|
308748
308748
|
type: "function"
|
|
308749
308749
|
}
|
|
308750
|
-
], abi$
|
|
308750
|
+
], abi$l = [
|
|
308751
308751
|
{
|
|
308752
308752
|
anonymous: !1,
|
|
308753
308753
|
inputs: [
|
|
@@ -309089,7 +309089,7 @@ const abi$v = [
|
|
|
309089
309089
|
type: "function"
|
|
309090
309090
|
},
|
|
309091
309091
|
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }
|
|
309092
|
-
], abi$
|
|
309092
|
+
], abi$k = [
|
|
309093
309093
|
{
|
|
309094
309094
|
name: "Transfer",
|
|
309095
309095
|
inputs: [
|
|
@@ -309627,7 +309627,7 @@ const abi$v = [
|
|
|
309627
309627
|
outputs: [{ name: "", type: "address" }],
|
|
309628
309628
|
gas: "3468"
|
|
309629
309629
|
}
|
|
309630
|
-
], abi$
|
|
309630
|
+
], abi$j = [
|
|
309631
309631
|
{
|
|
309632
309632
|
constant: !0,
|
|
309633
309633
|
inputs: [],
|
|
@@ -310016,7 +310016,7 @@ const abi$v = [
|
|
|
310016
310016
|
},
|
|
310017
310017
|
{ anonymous: !1, inputs: [], name: "Pause", type: "event" },
|
|
310018
310018
|
{ anonymous: !1, inputs: [], name: "Unpause", type: "event" }
|
|
310019
|
-
], abi$
|
|
310019
|
+
], abi$i = [
|
|
310020
310020
|
{
|
|
310021
310021
|
constant: !0,
|
|
310022
310022
|
inputs: [],
|
|
@@ -310168,6 +310168,570 @@ const abi$v = [
|
|
|
310168
310168
|
name: "Withdrawal",
|
|
310169
310169
|
type: "event"
|
|
310170
310170
|
}
|
|
310171
|
+
], abi$h = [
|
|
310172
|
+
{
|
|
310173
|
+
inputs: [
|
|
310174
|
+
{
|
|
310175
|
+
internalType: "address",
|
|
310176
|
+
name: "_factory",
|
|
310177
|
+
type: "address"
|
|
310178
|
+
},
|
|
310179
|
+
{
|
|
310180
|
+
internalType: "address",
|
|
310181
|
+
name: "_WETH9",
|
|
310182
|
+
type: "address"
|
|
310183
|
+
}
|
|
310184
|
+
],
|
|
310185
|
+
stateMutability: "nonpayable",
|
|
310186
|
+
type: "constructor"
|
|
310187
|
+
},
|
|
310188
|
+
{
|
|
310189
|
+
inputs: [],
|
|
310190
|
+
name: "WETH9",
|
|
310191
|
+
outputs: [
|
|
310192
|
+
{
|
|
310193
|
+
internalType: "address",
|
|
310194
|
+
name: "",
|
|
310195
|
+
type: "address"
|
|
310196
|
+
}
|
|
310197
|
+
],
|
|
310198
|
+
stateMutability: "view",
|
|
310199
|
+
type: "function"
|
|
310200
|
+
},
|
|
310201
|
+
{
|
|
310202
|
+
inputs: [
|
|
310203
|
+
{
|
|
310204
|
+
components: [
|
|
310205
|
+
{
|
|
310206
|
+
internalType: "bytes",
|
|
310207
|
+
name: "path",
|
|
310208
|
+
type: "bytes"
|
|
310209
|
+
},
|
|
310210
|
+
{
|
|
310211
|
+
internalType: "address",
|
|
310212
|
+
name: "recipient",
|
|
310213
|
+
type: "address"
|
|
310214
|
+
},
|
|
310215
|
+
{
|
|
310216
|
+
internalType: "uint256",
|
|
310217
|
+
name: "deadline",
|
|
310218
|
+
type: "uint256"
|
|
310219
|
+
},
|
|
310220
|
+
{
|
|
310221
|
+
internalType: "uint256",
|
|
310222
|
+
name: "amountIn",
|
|
310223
|
+
type: "uint256"
|
|
310224
|
+
},
|
|
310225
|
+
{
|
|
310226
|
+
internalType: "uint256",
|
|
310227
|
+
name: "amountOutMinimum",
|
|
310228
|
+
type: "uint256"
|
|
310229
|
+
}
|
|
310230
|
+
],
|
|
310231
|
+
internalType: "struct ISwapRouter.ExactInputParams",
|
|
310232
|
+
name: "params",
|
|
310233
|
+
type: "tuple"
|
|
310234
|
+
}
|
|
310235
|
+
],
|
|
310236
|
+
name: "exactInput",
|
|
310237
|
+
outputs: [
|
|
310238
|
+
{
|
|
310239
|
+
internalType: "uint256",
|
|
310240
|
+
name: "amountOut",
|
|
310241
|
+
type: "uint256"
|
|
310242
|
+
}
|
|
310243
|
+
],
|
|
310244
|
+
stateMutability: "payable",
|
|
310245
|
+
type: "function"
|
|
310246
|
+
},
|
|
310247
|
+
{
|
|
310248
|
+
inputs: [
|
|
310249
|
+
{
|
|
310250
|
+
components: [
|
|
310251
|
+
{
|
|
310252
|
+
internalType: "address",
|
|
310253
|
+
name: "tokenIn",
|
|
310254
|
+
type: "address"
|
|
310255
|
+
},
|
|
310256
|
+
{
|
|
310257
|
+
internalType: "address",
|
|
310258
|
+
name: "tokenOut",
|
|
310259
|
+
type: "address"
|
|
310260
|
+
},
|
|
310261
|
+
{
|
|
310262
|
+
internalType: "uint24",
|
|
310263
|
+
name: "fee",
|
|
310264
|
+
type: "uint24"
|
|
310265
|
+
},
|
|
310266
|
+
{
|
|
310267
|
+
internalType: "address",
|
|
310268
|
+
name: "recipient",
|
|
310269
|
+
type: "address"
|
|
310270
|
+
},
|
|
310271
|
+
{
|
|
310272
|
+
internalType: "uint256",
|
|
310273
|
+
name: "deadline",
|
|
310274
|
+
type: "uint256"
|
|
310275
|
+
},
|
|
310276
|
+
{
|
|
310277
|
+
internalType: "uint256",
|
|
310278
|
+
name: "amountIn",
|
|
310279
|
+
type: "uint256"
|
|
310280
|
+
},
|
|
310281
|
+
{
|
|
310282
|
+
internalType: "uint256",
|
|
310283
|
+
name: "amountOutMinimum",
|
|
310284
|
+
type: "uint256"
|
|
310285
|
+
},
|
|
310286
|
+
{
|
|
310287
|
+
internalType: "uint160",
|
|
310288
|
+
name: "sqrtPriceLimitX96",
|
|
310289
|
+
type: "uint160"
|
|
310290
|
+
}
|
|
310291
|
+
],
|
|
310292
|
+
internalType: "struct ISwapRouter.ExactInputSingleParams",
|
|
310293
|
+
name: "params",
|
|
310294
|
+
type: "tuple"
|
|
310295
|
+
}
|
|
310296
|
+
],
|
|
310297
|
+
name: "exactInputSingle",
|
|
310298
|
+
outputs: [
|
|
310299
|
+
{
|
|
310300
|
+
internalType: "uint256",
|
|
310301
|
+
name: "amountOut",
|
|
310302
|
+
type: "uint256"
|
|
310303
|
+
}
|
|
310304
|
+
],
|
|
310305
|
+
stateMutability: "payable",
|
|
310306
|
+
type: "function"
|
|
310307
|
+
},
|
|
310308
|
+
{
|
|
310309
|
+
inputs: [
|
|
310310
|
+
{
|
|
310311
|
+
components: [
|
|
310312
|
+
{
|
|
310313
|
+
internalType: "bytes",
|
|
310314
|
+
name: "path",
|
|
310315
|
+
type: "bytes"
|
|
310316
|
+
},
|
|
310317
|
+
{
|
|
310318
|
+
internalType: "address",
|
|
310319
|
+
name: "recipient",
|
|
310320
|
+
type: "address"
|
|
310321
|
+
},
|
|
310322
|
+
{
|
|
310323
|
+
internalType: "uint256",
|
|
310324
|
+
name: "deadline",
|
|
310325
|
+
type: "uint256"
|
|
310326
|
+
},
|
|
310327
|
+
{
|
|
310328
|
+
internalType: "uint256",
|
|
310329
|
+
name: "amountOut",
|
|
310330
|
+
type: "uint256"
|
|
310331
|
+
},
|
|
310332
|
+
{
|
|
310333
|
+
internalType: "uint256",
|
|
310334
|
+
name: "amountInMaximum",
|
|
310335
|
+
type: "uint256"
|
|
310336
|
+
}
|
|
310337
|
+
],
|
|
310338
|
+
internalType: "struct ISwapRouter.ExactOutputParams",
|
|
310339
|
+
name: "params",
|
|
310340
|
+
type: "tuple"
|
|
310341
|
+
}
|
|
310342
|
+
],
|
|
310343
|
+
name: "exactOutput",
|
|
310344
|
+
outputs: [
|
|
310345
|
+
{
|
|
310346
|
+
internalType: "uint256",
|
|
310347
|
+
name: "amountIn",
|
|
310348
|
+
type: "uint256"
|
|
310349
|
+
}
|
|
310350
|
+
],
|
|
310351
|
+
stateMutability: "payable",
|
|
310352
|
+
type: "function"
|
|
310353
|
+
},
|
|
310354
|
+
{
|
|
310355
|
+
inputs: [
|
|
310356
|
+
{
|
|
310357
|
+
components: [
|
|
310358
|
+
{
|
|
310359
|
+
internalType: "address",
|
|
310360
|
+
name: "tokenIn",
|
|
310361
|
+
type: "address"
|
|
310362
|
+
},
|
|
310363
|
+
{
|
|
310364
|
+
internalType: "address",
|
|
310365
|
+
name: "tokenOut",
|
|
310366
|
+
type: "address"
|
|
310367
|
+
},
|
|
310368
|
+
{
|
|
310369
|
+
internalType: "uint24",
|
|
310370
|
+
name: "fee",
|
|
310371
|
+
type: "uint24"
|
|
310372
|
+
},
|
|
310373
|
+
{
|
|
310374
|
+
internalType: "address",
|
|
310375
|
+
name: "recipient",
|
|
310376
|
+
type: "address"
|
|
310377
|
+
},
|
|
310378
|
+
{
|
|
310379
|
+
internalType: "uint256",
|
|
310380
|
+
name: "deadline",
|
|
310381
|
+
type: "uint256"
|
|
310382
|
+
},
|
|
310383
|
+
{
|
|
310384
|
+
internalType: "uint256",
|
|
310385
|
+
name: "amountOut",
|
|
310386
|
+
type: "uint256"
|
|
310387
|
+
},
|
|
310388
|
+
{
|
|
310389
|
+
internalType: "uint256",
|
|
310390
|
+
name: "amountInMaximum",
|
|
310391
|
+
type: "uint256"
|
|
310392
|
+
},
|
|
310393
|
+
{
|
|
310394
|
+
internalType: "uint160",
|
|
310395
|
+
name: "sqrtPriceLimitX96",
|
|
310396
|
+
type: "uint160"
|
|
310397
|
+
}
|
|
310398
|
+
],
|
|
310399
|
+
internalType: "struct ISwapRouter.ExactOutputSingleParams",
|
|
310400
|
+
name: "params",
|
|
310401
|
+
type: "tuple"
|
|
310402
|
+
}
|
|
310403
|
+
],
|
|
310404
|
+
name: "exactOutputSingle",
|
|
310405
|
+
outputs: [
|
|
310406
|
+
{
|
|
310407
|
+
internalType: "uint256",
|
|
310408
|
+
name: "amountIn",
|
|
310409
|
+
type: "uint256"
|
|
310410
|
+
}
|
|
310411
|
+
],
|
|
310412
|
+
stateMutability: "payable",
|
|
310413
|
+
type: "function"
|
|
310414
|
+
},
|
|
310415
|
+
{
|
|
310416
|
+
inputs: [],
|
|
310417
|
+
name: "factory",
|
|
310418
|
+
outputs: [
|
|
310419
|
+
{
|
|
310420
|
+
internalType: "address",
|
|
310421
|
+
name: "",
|
|
310422
|
+
type: "address"
|
|
310423
|
+
}
|
|
310424
|
+
],
|
|
310425
|
+
stateMutability: "view",
|
|
310426
|
+
type: "function"
|
|
310427
|
+
},
|
|
310428
|
+
{
|
|
310429
|
+
inputs: [
|
|
310430
|
+
{
|
|
310431
|
+
internalType: "bytes[]",
|
|
310432
|
+
name: "data",
|
|
310433
|
+
type: "bytes[]"
|
|
310434
|
+
}
|
|
310435
|
+
],
|
|
310436
|
+
name: "multicall",
|
|
310437
|
+
outputs: [
|
|
310438
|
+
{
|
|
310439
|
+
internalType: "bytes[]",
|
|
310440
|
+
name: "results",
|
|
310441
|
+
type: "bytes[]"
|
|
310442
|
+
}
|
|
310443
|
+
],
|
|
310444
|
+
stateMutability: "payable",
|
|
310445
|
+
type: "function"
|
|
310446
|
+
},
|
|
310447
|
+
{
|
|
310448
|
+
inputs: [],
|
|
310449
|
+
name: "refundETH",
|
|
310450
|
+
outputs: [],
|
|
310451
|
+
stateMutability: "payable",
|
|
310452
|
+
type: "function"
|
|
310453
|
+
},
|
|
310454
|
+
{
|
|
310455
|
+
inputs: [
|
|
310456
|
+
{
|
|
310457
|
+
internalType: "address",
|
|
310458
|
+
name: "token",
|
|
310459
|
+
type: "address"
|
|
310460
|
+
},
|
|
310461
|
+
{
|
|
310462
|
+
internalType: "uint256",
|
|
310463
|
+
name: "value",
|
|
310464
|
+
type: "uint256"
|
|
310465
|
+
},
|
|
310466
|
+
{
|
|
310467
|
+
internalType: "uint256",
|
|
310468
|
+
name: "deadline",
|
|
310469
|
+
type: "uint256"
|
|
310470
|
+
},
|
|
310471
|
+
{
|
|
310472
|
+
internalType: "uint8",
|
|
310473
|
+
name: "v",
|
|
310474
|
+
type: "uint8"
|
|
310475
|
+
},
|
|
310476
|
+
{
|
|
310477
|
+
internalType: "bytes32",
|
|
310478
|
+
name: "r",
|
|
310479
|
+
type: "bytes32"
|
|
310480
|
+
},
|
|
310481
|
+
{
|
|
310482
|
+
internalType: "bytes32",
|
|
310483
|
+
name: "s",
|
|
310484
|
+
type: "bytes32"
|
|
310485
|
+
}
|
|
310486
|
+
],
|
|
310487
|
+
name: "selfPermit",
|
|
310488
|
+
outputs: [],
|
|
310489
|
+
stateMutability: "payable",
|
|
310490
|
+
type: "function"
|
|
310491
|
+
},
|
|
310492
|
+
{
|
|
310493
|
+
inputs: [
|
|
310494
|
+
{
|
|
310495
|
+
internalType: "address",
|
|
310496
|
+
name: "token",
|
|
310497
|
+
type: "address"
|
|
310498
|
+
},
|
|
310499
|
+
{
|
|
310500
|
+
internalType: "uint256",
|
|
310501
|
+
name: "nonce",
|
|
310502
|
+
type: "uint256"
|
|
310503
|
+
},
|
|
310504
|
+
{
|
|
310505
|
+
internalType: "uint256",
|
|
310506
|
+
name: "expiry",
|
|
310507
|
+
type: "uint256"
|
|
310508
|
+
},
|
|
310509
|
+
{
|
|
310510
|
+
internalType: "uint8",
|
|
310511
|
+
name: "v",
|
|
310512
|
+
type: "uint8"
|
|
310513
|
+
},
|
|
310514
|
+
{
|
|
310515
|
+
internalType: "bytes32",
|
|
310516
|
+
name: "r",
|
|
310517
|
+
type: "bytes32"
|
|
310518
|
+
},
|
|
310519
|
+
{
|
|
310520
|
+
internalType: "bytes32",
|
|
310521
|
+
name: "s",
|
|
310522
|
+
type: "bytes32"
|
|
310523
|
+
}
|
|
310524
|
+
],
|
|
310525
|
+
name: "selfPermitAllowed",
|
|
310526
|
+
outputs: [],
|
|
310527
|
+
stateMutability: "payable",
|
|
310528
|
+
type: "function"
|
|
310529
|
+
},
|
|
310530
|
+
{
|
|
310531
|
+
inputs: [
|
|
310532
|
+
{
|
|
310533
|
+
internalType: "address",
|
|
310534
|
+
name: "token",
|
|
310535
|
+
type: "address"
|
|
310536
|
+
},
|
|
310537
|
+
{
|
|
310538
|
+
internalType: "uint256",
|
|
310539
|
+
name: "nonce",
|
|
310540
|
+
type: "uint256"
|
|
310541
|
+
},
|
|
310542
|
+
{
|
|
310543
|
+
internalType: "uint256",
|
|
310544
|
+
name: "expiry",
|
|
310545
|
+
type: "uint256"
|
|
310546
|
+
},
|
|
310547
|
+
{
|
|
310548
|
+
internalType: "uint8",
|
|
310549
|
+
name: "v",
|
|
310550
|
+
type: "uint8"
|
|
310551
|
+
},
|
|
310552
|
+
{
|
|
310553
|
+
internalType: "bytes32",
|
|
310554
|
+
name: "r",
|
|
310555
|
+
type: "bytes32"
|
|
310556
|
+
},
|
|
310557
|
+
{
|
|
310558
|
+
internalType: "bytes32",
|
|
310559
|
+
name: "s",
|
|
310560
|
+
type: "bytes32"
|
|
310561
|
+
}
|
|
310562
|
+
],
|
|
310563
|
+
name: "selfPermitAllowedIfNecessary",
|
|
310564
|
+
outputs: [],
|
|
310565
|
+
stateMutability: "payable",
|
|
310566
|
+
type: "function"
|
|
310567
|
+
},
|
|
310568
|
+
{
|
|
310569
|
+
inputs: [
|
|
310570
|
+
{
|
|
310571
|
+
internalType: "address",
|
|
310572
|
+
name: "token",
|
|
310573
|
+
type: "address"
|
|
310574
|
+
},
|
|
310575
|
+
{
|
|
310576
|
+
internalType: "uint256",
|
|
310577
|
+
name: "value",
|
|
310578
|
+
type: "uint256"
|
|
310579
|
+
},
|
|
310580
|
+
{
|
|
310581
|
+
internalType: "uint256",
|
|
310582
|
+
name: "deadline",
|
|
310583
|
+
type: "uint256"
|
|
310584
|
+
},
|
|
310585
|
+
{
|
|
310586
|
+
internalType: "uint8",
|
|
310587
|
+
name: "v",
|
|
310588
|
+
type: "uint8"
|
|
310589
|
+
},
|
|
310590
|
+
{
|
|
310591
|
+
internalType: "bytes32",
|
|
310592
|
+
name: "r",
|
|
310593
|
+
type: "bytes32"
|
|
310594
|
+
},
|
|
310595
|
+
{
|
|
310596
|
+
internalType: "bytes32",
|
|
310597
|
+
name: "s",
|
|
310598
|
+
type: "bytes32"
|
|
310599
|
+
}
|
|
310600
|
+
],
|
|
310601
|
+
name: "selfPermitIfNecessary",
|
|
310602
|
+
outputs: [],
|
|
310603
|
+
stateMutability: "payable",
|
|
310604
|
+
type: "function"
|
|
310605
|
+
},
|
|
310606
|
+
{
|
|
310607
|
+
inputs: [
|
|
310608
|
+
{
|
|
310609
|
+
internalType: "address",
|
|
310610
|
+
name: "token",
|
|
310611
|
+
type: "address"
|
|
310612
|
+
},
|
|
310613
|
+
{
|
|
310614
|
+
internalType: "uint256",
|
|
310615
|
+
name: "amountMinimum",
|
|
310616
|
+
type: "uint256"
|
|
310617
|
+
},
|
|
310618
|
+
{
|
|
310619
|
+
internalType: "address",
|
|
310620
|
+
name: "recipient",
|
|
310621
|
+
type: "address"
|
|
310622
|
+
}
|
|
310623
|
+
],
|
|
310624
|
+
name: "sweepToken",
|
|
310625
|
+
outputs: [],
|
|
310626
|
+
stateMutability: "payable",
|
|
310627
|
+
type: "function"
|
|
310628
|
+
},
|
|
310629
|
+
{
|
|
310630
|
+
inputs: [
|
|
310631
|
+
{
|
|
310632
|
+
internalType: "address",
|
|
310633
|
+
name: "token",
|
|
310634
|
+
type: "address"
|
|
310635
|
+
},
|
|
310636
|
+
{
|
|
310637
|
+
internalType: "uint256",
|
|
310638
|
+
name: "amountMinimum",
|
|
310639
|
+
type: "uint256"
|
|
310640
|
+
},
|
|
310641
|
+
{
|
|
310642
|
+
internalType: "address",
|
|
310643
|
+
name: "recipient",
|
|
310644
|
+
type: "address"
|
|
310645
|
+
},
|
|
310646
|
+
{
|
|
310647
|
+
internalType: "uint256",
|
|
310648
|
+
name: "feeBips",
|
|
310649
|
+
type: "uint256"
|
|
310650
|
+
},
|
|
310651
|
+
{
|
|
310652
|
+
internalType: "address",
|
|
310653
|
+
name: "feeRecipient",
|
|
310654
|
+
type: "address"
|
|
310655
|
+
}
|
|
310656
|
+
],
|
|
310657
|
+
name: "sweepTokenWithFee",
|
|
310658
|
+
outputs: [],
|
|
310659
|
+
stateMutability: "payable",
|
|
310660
|
+
type: "function"
|
|
310661
|
+
},
|
|
310662
|
+
{
|
|
310663
|
+
inputs: [
|
|
310664
|
+
{
|
|
310665
|
+
internalType: "int256",
|
|
310666
|
+
name: "amount0Delta",
|
|
310667
|
+
type: "int256"
|
|
310668
|
+
},
|
|
310669
|
+
{
|
|
310670
|
+
internalType: "int256",
|
|
310671
|
+
name: "amount1Delta",
|
|
310672
|
+
type: "int256"
|
|
310673
|
+
},
|
|
310674
|
+
{
|
|
310675
|
+
internalType: "bytes",
|
|
310676
|
+
name: "_data",
|
|
310677
|
+
type: "bytes"
|
|
310678
|
+
}
|
|
310679
|
+
],
|
|
310680
|
+
name: "uniswapV3SwapCallback",
|
|
310681
|
+
outputs: [],
|
|
310682
|
+
stateMutability: "nonpayable",
|
|
310683
|
+
type: "function"
|
|
310684
|
+
},
|
|
310685
|
+
{
|
|
310686
|
+
inputs: [
|
|
310687
|
+
{
|
|
310688
|
+
internalType: "uint256",
|
|
310689
|
+
name: "amountMinimum",
|
|
310690
|
+
type: "uint256"
|
|
310691
|
+
},
|
|
310692
|
+
{
|
|
310693
|
+
internalType: "address",
|
|
310694
|
+
name: "recipient",
|
|
310695
|
+
type: "address"
|
|
310696
|
+
}
|
|
310697
|
+
],
|
|
310698
|
+
name: "unwrapWETH9",
|
|
310699
|
+
outputs: [],
|
|
310700
|
+
stateMutability: "payable",
|
|
310701
|
+
type: "function"
|
|
310702
|
+
},
|
|
310703
|
+
{
|
|
310704
|
+
inputs: [
|
|
310705
|
+
{
|
|
310706
|
+
internalType: "uint256",
|
|
310707
|
+
name: "amountMinimum",
|
|
310708
|
+
type: "uint256"
|
|
310709
|
+
},
|
|
310710
|
+
{
|
|
310711
|
+
internalType: "address",
|
|
310712
|
+
name: "recipient",
|
|
310713
|
+
type: "address"
|
|
310714
|
+
},
|
|
310715
|
+
{
|
|
310716
|
+
internalType: "uint256",
|
|
310717
|
+
name: "feeBips",
|
|
310718
|
+
type: "uint256"
|
|
310719
|
+
},
|
|
310720
|
+
{
|
|
310721
|
+
internalType: "address",
|
|
310722
|
+
name: "feeRecipient",
|
|
310723
|
+
type: "address"
|
|
310724
|
+
}
|
|
310725
|
+
],
|
|
310726
|
+
name: "unwrapWETH9WithFee",
|
|
310727
|
+
outputs: [],
|
|
310728
|
+
stateMutability: "payable",
|
|
310729
|
+
type: "function"
|
|
310730
|
+
},
|
|
310731
|
+
{
|
|
310732
|
+
stateMutability: "payable",
|
|
310733
|
+
type: "receive"
|
|
310734
|
+
}
|
|
310171
310735
|
], lidoStEthAbi = [
|
|
310172
310736
|
{
|
|
310173
310737
|
constant: !1,
|
|
@@ -319265,7 +319829,7 @@ class TokenPriceFetcher extends TokenChecker {
|
|
|
319265
319829
|
(l) => caseInsensitiveEqual(t, l.earnedTokenAddress) && beefyChainIds[n] === l.chain
|
|
319266
319830
|
);
|
|
319267
319831
|
if (c && this.provider) {
|
|
319268
|
-
const { earnedTokenAddress: l, id: u } = c, T = (await new Contract(l, abi$
|
|
319832
|
+
const { earnedTokenAddress: l, id: u } = c, T = (await new Contract(l, abi$v, this.provider).totalSupply()).toBigInt(), H = Number(formatUnits(T, 18));
|
|
319269
319833
|
Object.keys(this.beefyTvlData).length === 0 && (this.beefyTvlData = (await axios$3.get(urlForBeefyVaultTotalInUSD)).data);
|
|
319270
319834
|
const O = this.beefyTvlData[n][u];
|
|
319271
319835
|
return !O || !H ? void 0 : O / H;
|
|
@@ -319837,7 +320401,43 @@ class MultiThreadedUtxoUtils {
|
|
|
319837
320401
|
return await this.createUtxoPromise(l);
|
|
319838
320402
|
}
|
|
319839
320403
|
}
|
|
319840
|
-
const multiThreadedUtxoUtils = new MultiThreadedUtxoUtils()
|
|
320404
|
+
const multiThreadedUtxoUtils = new MultiThreadedUtxoUtils(), hinkalPrivateWallet = async (a, t, n, c = [], l, u = !1) => {
|
|
320405
|
+
const { flatFees: p, feeUnit: T } = await getFlatFees(
|
|
320406
|
+
a.getCurrentChainId(),
|
|
320407
|
+
t,
|
|
320408
|
+
ExternalActionId.Emporium,
|
|
320409
|
+
n
|
|
320410
|
+
);
|
|
320411
|
+
n = processAmountChanges({ erc20Addresses: t, amountChanges: n, flatFees: p, feeUnit: T, externalActionId: ExternalActionId.Emporium });
|
|
320412
|
+
const H = [...await addPaddingToUtxos(a, t, n)], O = t.map((U) => !1), M = [];
|
|
320413
|
+
for (let U = 0; U < t.length; U += 1) {
|
|
320414
|
+
const { outputUtxos: q } = outputUtxoProcessing(a.userKeys, H[U], n[U]);
|
|
320415
|
+
M.push(q);
|
|
320416
|
+
}
|
|
320417
|
+
const Z = await a.getRandomRelay();
|
|
320418
|
+
if (!Z)
|
|
320419
|
+
throw Error(transactionErrorCodes.RELAYER_NOT_AVAILABLE);
|
|
320420
|
+
const { contractData: w } = networkRegistry[a.getCurrentChainId()], fe = w.emporiumAddress;
|
|
320421
|
+
if (!fe)
|
|
320422
|
+
throw Error("No Emporium Address Provided");
|
|
320423
|
+
const { zkCallData: ie, circomData: L, dimData: X } = await constructEmporiumProof(
|
|
320424
|
+
a.merkleTreeHinkal,
|
|
320425
|
+
a.merkleTreeAccessToken,
|
|
320426
|
+
H,
|
|
320427
|
+
M,
|
|
320428
|
+
a.userKeys,
|
|
320429
|
+
n.length,
|
|
320430
|
+
H[0].length,
|
|
320431
|
+
fe,
|
|
320432
|
+
c,
|
|
320433
|
+
Z,
|
|
320434
|
+
a.getCurrentChainId(),
|
|
320435
|
+
O,
|
|
320436
|
+
p,
|
|
320437
|
+
l
|
|
320438
|
+
);
|
|
320439
|
+
return u ? await estimateGasRelayer(a, ie, X, L) : await transactCallRelayer(a.getCurrentChainId(), ie, X, L);
|
|
320440
|
+
};
|
|
319841
320441
|
class Hinkal {
|
|
319842
320442
|
providerAdapter;
|
|
319843
320443
|
userKeys;
|
|
@@ -320074,47 +320674,14 @@ class Hinkal {
|
|
|
320074
320674
|
async actionStake(t, n, c, l) {
|
|
320075
320675
|
return hinkalActionStake(this, t, n, c, l);
|
|
320076
320676
|
}
|
|
320677
|
+
async actionPrivateWallet(t, n, c = [], l, u = !1) {
|
|
320678
|
+
return hinkalPrivateWallet(this, t, n, c, l, u);
|
|
320679
|
+
}
|
|
320077
320680
|
async getPendleLPClaimableParams(t, n) {
|
|
320078
320681
|
return hinkalGetPendleLPClaimableParams(this, t, n);
|
|
320079
320682
|
}
|
|
320080
320683
|
}
|
|
320081
320684
|
const hinkalTransfer = async () => {
|
|
320082
|
-
}, hinkalPrivateWallet = async (a, t, n, c = [], l, u = !1) => {
|
|
320083
|
-
const { flatFees: p, feeUnit: T } = await getFlatFees(
|
|
320084
|
-
a.getCurrentChainId(),
|
|
320085
|
-
t,
|
|
320086
|
-
ExternalActionId.Emporium,
|
|
320087
|
-
n
|
|
320088
|
-
);
|
|
320089
|
-
n = processAmountChanges({ erc20Addresses: t, amountChanges: n, flatFees: p, feeUnit: T, externalActionId: ExternalActionId.Emporium });
|
|
320090
|
-
const H = [...await addPaddingToUtxos(a, t, n)], O = t.map((U) => !1), M = [];
|
|
320091
|
-
for (let U = 0; U < t.length; U += 1) {
|
|
320092
|
-
const { outputUtxos: q } = outputUtxoProcessing(a.userKeys, H[U], n[U]);
|
|
320093
|
-
M.push(q);
|
|
320094
|
-
}
|
|
320095
|
-
const Z = await a.getRandomRelay();
|
|
320096
|
-
if (!Z)
|
|
320097
|
-
throw Error(transactionErrorCodes.RELAYER_NOT_AVAILABLE);
|
|
320098
|
-
const { contractData: w } = networkRegistry[a.getCurrentChainId()], fe = w.emporiumAddress;
|
|
320099
|
-
if (!fe)
|
|
320100
|
-
throw Error("No Emporium Address Provided");
|
|
320101
|
-
const { zkCallData: ie, circomData: L, dimData: X } = await constructEmporiumProof(
|
|
320102
|
-
a.merkleTreeHinkal,
|
|
320103
|
-
a.merkleTreeAccessToken,
|
|
320104
|
-
H,
|
|
320105
|
-
M,
|
|
320106
|
-
a.userKeys,
|
|
320107
|
-
n.length,
|
|
320108
|
-
H[0].length,
|
|
320109
|
-
fe,
|
|
320110
|
-
c,
|
|
320111
|
-
Z,
|
|
320112
|
-
a.getCurrentChainId(),
|
|
320113
|
-
O,
|
|
320114
|
-
p,
|
|
320115
|
-
l
|
|
320116
|
-
);
|
|
320117
|
-
return u ? await estimateGasRelayer(a, ie, X, L) : await transactCallRelayer(a.getCurrentChainId(), ie, X, L);
|
|
320118
320685
|
};
|
|
320119
320686
|
async function checkErrorForSnapshotRestore(a, t) {
|
|
320120
320687
|
const n = t.getCurrentChainId(), c = extractMessage(a);
|
|
@@ -320568,7 +321135,23 @@ const determinePendleSwapType = (a, t, n) => {
|
|
|
320568
321135
|
), calculateStakeNullifier = (a, t) => poseidonHash(a, t), encodeHStakeMetadata = (a, t, n, c, l) => defaultAbiCoder.encode(
|
|
320569
321136
|
["uint8", "uint256", "address", "bytes", "bytes"],
|
|
320570
321137
|
[a, t, n, c, l]
|
|
320571
|
-
)
|
|
321138
|
+
);
|
|
321139
|
+
var OpType = /* @__PURE__ */ ((a) => (a[a.Erc20Token = 0] = "Erc20Token", a[a.Uniswap = 1] = "Uniswap", a))(OpType || {});
|
|
321140
|
+
const produceOp = (a, t, n, c, l) => {
|
|
321141
|
+
let u;
|
|
321142
|
+
switch (a) {
|
|
321143
|
+
case 0:
|
|
321144
|
+
u = String(abi$q);
|
|
321145
|
+
break;
|
|
321146
|
+
case 1:
|
|
321147
|
+
u = String(abi$h);
|
|
321148
|
+
break;
|
|
321149
|
+
}
|
|
321150
|
+
if (!u)
|
|
321151
|
+
throw Error("No ABI match in produceOp");
|
|
321152
|
+
const p = new Interface(u);
|
|
321153
|
+
return emporiumOp(p, t, n, c, l);
|
|
321154
|
+
}, HINKAL_UNIVERSAL_FEE = 8n, HINKAL_EXTERNAL_ACTION_FEE = 3n, getHinkalFeeRateInBeeps = (a) => a ? HINKAL_UNIVERSAL_FEE : HINKAL_EXTERNAL_ACTION_FEE, getRelayFee = (a, t = !1) => {
|
|
320572
321155
|
const n = absBigInt(a);
|
|
320573
321156
|
return getHinkalFeeRateInBeeps(t) * n / 10000n;
|
|
320574
321157
|
}, getSlippageFee = (a, t) => {
|
|
@@ -327869,13 +328452,13 @@ const determinePendleSwapType = (a, t, n) => {
|
|
|
327869
328452
|
type: "function"
|
|
327870
328453
|
}
|
|
327871
328454
|
], uniswapV3FactoryData = {
|
|
327872
|
-
abi: abi$
|
|
328455
|
+
abi: abi$o
|
|
327873
328456
|
}, uniswapV3PoolData = {
|
|
327874
328457
|
abi: abi$3
|
|
327875
328458
|
}, uniswapV2PoolData = {
|
|
327876
328459
|
abi: abi$2
|
|
327877
328460
|
}, uniswapV3QuoterData = {
|
|
327878
|
-
abi: abi$
|
|
328461
|
+
abi: abi$p
|
|
327879
328462
|
}, CurvePoolWithIntCoinsInterface = new Interface([
|
|
327880
328463
|
"function coins(int128 arg0) external view returns (address)"
|
|
327881
328464
|
]), CurvePoolWithIntBalancesInterface = new Interface([
|
|
@@ -327926,7 +328509,7 @@ const determinePendleSwapType = (a, t, n) => {
|
|
|
327926
328509
|
abi: uniswapV3QuoterData.abi
|
|
327927
328510
|
}),
|
|
327928
328511
|
[ContractType.ERC20Contract]: () => ({
|
|
327929
|
-
abi: abi$
|
|
328512
|
+
abi: abi$q
|
|
327930
328513
|
}),
|
|
327931
328514
|
[ContractType.WATokenContract]: (a) => ({
|
|
327932
328515
|
abi: a.waTokenABI
|
|
@@ -327949,10 +328532,10 @@ const determinePendleSwapType = (a, t, n) => {
|
|
|
327949
328532
|
abi: wrappedStrakedRewardsCurveLpABI
|
|
327950
328533
|
}),
|
|
327951
328534
|
[ContractType.CurveWrappedMainPool]: () => ({
|
|
327952
|
-
abi: abi$
|
|
328535
|
+
abi: abi$s
|
|
327953
328536
|
}),
|
|
327954
328537
|
[ContractType.CurveReadingWrapper]: () => ({
|
|
327955
|
-
abi: abi$
|
|
328538
|
+
abi: abi$t
|
|
327956
328539
|
}),
|
|
327957
328540
|
// we use curveReadingWrapper has withdraw one coin as uint whereas curveWrappedMainPool has it as int
|
|
327958
328541
|
[ContractType.CurvePoolLPTokenAmountCalculator2]: () => ({
|
|
@@ -328014,7 +328597,7 @@ const determinePendleSwapType = (a, t, n) => {
|
|
|
328014
328597
|
abi: abi$5
|
|
328015
328598
|
}),
|
|
328016
328599
|
[ContractType.BeefyVault]: () => ({
|
|
328017
|
-
abi: abi$
|
|
328600
|
+
abi: abi$v
|
|
328018
328601
|
}),
|
|
328019
328602
|
[ContractType.BeefyZap]: () => ({
|
|
328020
328603
|
abi: abi$b
|
|
@@ -405537,53 +406120,53 @@ export {
|
|
|
405537
406120
|
hinkalActionConvex as cy,
|
|
405538
406121
|
hinkalActionCurve as cz,
|
|
405539
406122
|
requireStreamBrowserify as d,
|
|
405540
|
-
|
|
406123
|
+
getERC20Token as d$,
|
|
405541
406124
|
extractMessage as d0,
|
|
405542
406125
|
getErrorMessage as d1,
|
|
405543
406126
|
checkErrorForSnapshotRestore as d2,
|
|
405544
406127
|
ErrorCategory as d3,
|
|
405545
|
-
abi$
|
|
405546
|
-
abi$
|
|
405547
|
-
abi$
|
|
405548
|
-
abi$
|
|
405549
|
-
abi$
|
|
405550
|
-
abi$
|
|
405551
|
-
|
|
405552
|
-
|
|
405553
|
-
|
|
405554
|
-
|
|
405555
|
-
|
|
405556
|
-
|
|
405557
|
-
|
|
405558
|
-
|
|
405559
|
-
|
|
405560
|
-
|
|
405561
|
-
|
|
405562
|
-
|
|
405563
|
-
|
|
405564
|
-
|
|
405565
|
-
|
|
405566
|
-
|
|
405567
|
-
|
|
405568
|
-
|
|
405569
|
-
|
|
405570
|
-
|
|
405571
|
-
|
|
405572
|
-
|
|
405573
|
-
|
|
405574
|
-
|
|
405575
|
-
|
|
405576
|
-
|
|
405577
|
-
|
|
405578
|
-
abi$
|
|
405579
|
-
abi$
|
|
405580
|
-
abi$
|
|
405581
|
-
abi$
|
|
405582
|
-
abi$
|
|
405583
|
-
abi$
|
|
405584
|
-
abi$
|
|
405585
|
-
abi$
|
|
405586
|
-
abi$
|
|
406128
|
+
abi$s as d4,
|
|
406129
|
+
abi$t as d5,
|
|
406130
|
+
abi$p as d6,
|
|
406131
|
+
abi$o as d7,
|
|
406132
|
+
abi$w as d8,
|
|
406133
|
+
abi$v as d9,
|
|
406134
|
+
calculateSum as dA,
|
|
406135
|
+
beepsToPercentage as dB,
|
|
406136
|
+
calculateAmountUsingBeeps as dC,
|
|
406137
|
+
toBigInt as dD,
|
|
406138
|
+
toBigIntOrUndefined as dE,
|
|
406139
|
+
toNumberOrUndefined as dF,
|
|
406140
|
+
toInt as dG,
|
|
406141
|
+
bigintApplySugar as dH,
|
|
406142
|
+
bigintMax as dI,
|
|
406143
|
+
fixDecimalsAmount as dJ,
|
|
406144
|
+
getValueFirstNDigit as dK,
|
|
406145
|
+
trimLeadingZeros as dL,
|
|
406146
|
+
toCommaSeparatedNumberString as dM,
|
|
406147
|
+
truncateTo18DecimalPlaces as dN,
|
|
406148
|
+
absBigInt as dO,
|
|
406149
|
+
minBigInt as dP,
|
|
406150
|
+
getHinkalCache as dQ,
|
|
406151
|
+
setHinkalCache as dR,
|
|
406152
|
+
resetCache as dS,
|
|
406153
|
+
saveTxsCache as dT,
|
|
406154
|
+
loadTxsCache as dU,
|
|
406155
|
+
createProvider as dV,
|
|
406156
|
+
getExternalActionIdHash as dW,
|
|
406157
|
+
getExternalActionIdFromNumber as dX,
|
|
406158
|
+
getActionFromMetadata as dY,
|
|
406159
|
+
decodeMetadata as dZ,
|
|
406160
|
+
getExternalMetadataHash as d_,
|
|
406161
|
+
abi$q as da,
|
|
406162
|
+
abi$m as db,
|
|
406163
|
+
abi$r as dc,
|
|
406164
|
+
abi$l as dd,
|
|
406165
|
+
abi$k as de,
|
|
406166
|
+
abi$j as df,
|
|
406167
|
+
abi$i as dg,
|
|
406168
|
+
abi$u as dh,
|
|
406169
|
+
abi$n as di,
|
|
405587
406170
|
lidoStEthAbi as dj,
|
|
405588
406171
|
lidoStMaticAbi as dk,
|
|
405589
406172
|
lidoWithdrawalQueueERC721Abi as dl,
|
|
@@ -405594,169 +406177,172 @@ export {
|
|
|
405594
406177
|
abi$f as dr,
|
|
405595
406178
|
abi$e as ds,
|
|
405596
406179
|
OptimismGasPriceOracle as dt,
|
|
405597
|
-
|
|
405598
|
-
|
|
405599
|
-
|
|
405600
|
-
|
|
405601
|
-
|
|
405602
|
-
|
|
406180
|
+
abi$h as du,
|
|
406181
|
+
checkHinkalAccessToken as dv,
|
|
406182
|
+
mintAccessToken as dw,
|
|
406183
|
+
mintTokenCrossChain as dx,
|
|
406184
|
+
openDefaultPassportWindow as dy,
|
|
406185
|
+
openPassportWindow as dz,
|
|
405603
406186
|
eventsExports as e,
|
|
405604
|
-
|
|
405605
|
-
|
|
405606
|
-
|
|
405607
|
-
|
|
405608
|
-
|
|
405609
|
-
|
|
405610
|
-
|
|
405611
|
-
|
|
405612
|
-
|
|
405613
|
-
|
|
405614
|
-
|
|
405615
|
-
|
|
405616
|
-
|
|
405617
|
-
|
|
405618
|
-
|
|
405619
|
-
|
|
405620
|
-
|
|
405621
|
-
|
|
405622
|
-
|
|
405623
|
-
|
|
405624
|
-
|
|
405625
|
-
|
|
405626
|
-
|
|
405627
|
-
|
|
405628
|
-
|
|
405629
|
-
|
|
405630
|
-
|
|
405631
|
-
|
|
405632
|
-
|
|
405633
|
-
|
|
405634
|
-
|
|
405635
|
-
|
|
405636
|
-
|
|
405637
|
-
|
|
405638
|
-
|
|
405639
|
-
|
|
405640
|
-
|
|
405641
|
-
|
|
405642
|
-
|
|
405643
|
-
|
|
405644
|
-
|
|
405645
|
-
|
|
405646
|
-
|
|
405647
|
-
|
|
405648
|
-
|
|
405649
|
-
|
|
405650
|
-
|
|
405651
|
-
|
|
405652
|
-
|
|
405653
|
-
|
|
405654
|
-
|
|
405655
|
-
|
|
405656
|
-
|
|
405657
|
-
|
|
405658
|
-
|
|
405659
|
-
|
|
405660
|
-
|
|
405661
|
-
|
|
405662
|
-
|
|
405663
|
-
|
|
405664
|
-
|
|
405665
|
-
|
|
405666
|
-
|
|
405667
|
-
|
|
406187
|
+
calcStealthAddressStructure as e$,
|
|
406188
|
+
getERC20TokenBySymbol as e0,
|
|
406189
|
+
getHToken as e1,
|
|
406190
|
+
requireEnv as e2,
|
|
406191
|
+
resolveSync as e3,
|
|
406192
|
+
getSequence as e4,
|
|
406193
|
+
convertIntegrationProviderToExternalActionId as e5,
|
|
406194
|
+
getInteractionFromAction as e6,
|
|
406195
|
+
outputUtxoProcessing as e7,
|
|
406196
|
+
processGasEstimates as e8,
|
|
406197
|
+
processAmountChanges as e9,
|
|
406198
|
+
getAmountWithPrecision as eA,
|
|
406199
|
+
calculateDollarValue as eB,
|
|
406200
|
+
getAmountWithPrecisionOrZero as eC,
|
|
406201
|
+
getInputUtxosFromEncryptedOutputs as eD,
|
|
406202
|
+
getInputUtxoAndBalance as eE,
|
|
406203
|
+
getShieldedBalance as eF,
|
|
406204
|
+
addPaddingToUtxos as eG,
|
|
406205
|
+
retrieveEvents as eH,
|
|
406206
|
+
getDepositEvents as eI,
|
|
406207
|
+
balanceChangedHandler as eJ,
|
|
406208
|
+
searchPoolAndFee as eK,
|
|
406209
|
+
getUniswapPriceHelper as eL,
|
|
406210
|
+
getUniswapFee as eM,
|
|
406211
|
+
getUniswapPrice as eN,
|
|
406212
|
+
getOdosPrice as eO,
|
|
406213
|
+
getOneInchPrice as eP,
|
|
406214
|
+
runContractFunction as eQ,
|
|
406215
|
+
constructZkProof as eR,
|
|
406216
|
+
constructEmporiumProof as eS,
|
|
406217
|
+
buildInNullifiers as eT,
|
|
406218
|
+
buildOutCommitments as eU,
|
|
406219
|
+
calcAmountChanges as eV,
|
|
406220
|
+
calcEncryptedOutputs as eW,
|
|
406221
|
+
serializeCircomData as eX,
|
|
406222
|
+
deserializeCircomData as eY,
|
|
406223
|
+
createCallDataHash as eZ,
|
|
406224
|
+
calcPublicSignalCount as e_,
|
|
406225
|
+
getFlatFees as ea,
|
|
406226
|
+
getNetworkObject as eb,
|
|
406227
|
+
getNetworkType as ec,
|
|
406228
|
+
getAxelarMigrationInfo as ed,
|
|
406229
|
+
browserSupported as ee,
|
|
406230
|
+
walletSupported as ef,
|
|
406231
|
+
decodeTxInput as eg,
|
|
406232
|
+
decodeTxLogs as eh,
|
|
406233
|
+
deserializeDecodedTxs as ei,
|
|
406234
|
+
serializeDecodedTxs as ej,
|
|
406235
|
+
reloadPage as ek,
|
|
406236
|
+
toTitleCase as el,
|
|
406237
|
+
capitalizeFirstLetter as em,
|
|
406238
|
+
isNullOrEmpty as en,
|
|
406239
|
+
isNicknameValid as eo,
|
|
406240
|
+
caseInsensitiveEqual as ep,
|
|
406241
|
+
lowerCaseIncludes as eq,
|
|
406242
|
+
lowerCaseStartsWith as er,
|
|
406243
|
+
waitLittle as es,
|
|
406244
|
+
patchRegistry as et,
|
|
406245
|
+
ethToWei as eu,
|
|
406246
|
+
randomBigInt as ev,
|
|
406247
|
+
getAmountInToken as ew,
|
|
406248
|
+
getAmountInWei as ex,
|
|
406249
|
+
toBigIntWithDecimals as ey,
|
|
406250
|
+
getAmountInWeiOrZero as ez,
|
|
405668
406251
|
poseidonFunction as f,
|
|
405669
|
-
|
|
405670
|
-
|
|
405671
|
-
|
|
405672
|
-
|
|
405673
|
-
|
|
405674
|
-
|
|
405675
|
-
|
|
405676
|
-
|
|
405677
|
-
|
|
405678
|
-
|
|
405679
|
-
|
|
405680
|
-
|
|
405681
|
-
|
|
405682
|
-
|
|
405683
|
-
|
|
405684
|
-
|
|
405685
|
-
|
|
405686
|
-
|
|
405687
|
-
|
|
405688
|
-
|
|
405689
|
-
|
|
405690
|
-
|
|
405691
|
-
|
|
405692
|
-
|
|
405693
|
-
|
|
405694
|
-
|
|
405695
|
-
|
|
405696
|
-
|
|
405697
|
-
|
|
405698
|
-
|
|
405699
|
-
|
|
405700
|
-
|
|
405701
|
-
|
|
405702
|
-
|
|
405703
|
-
|
|
405704
|
-
|
|
405705
|
-
|
|
405706
|
-
|
|
405707
|
-
|
|
405708
|
-
|
|
405709
|
-
|
|
405710
|
-
|
|
405711
|
-
|
|
405712
|
-
|
|
405713
|
-
|
|
405714
|
-
|
|
405715
|
-
|
|
405716
|
-
|
|
405717
|
-
|
|
405718
|
-
|
|
405719
|
-
|
|
405720
|
-
|
|
405721
|
-
|
|
405722
|
-
|
|
405723
|
-
|
|
405724
|
-
|
|
405725
|
-
|
|
405726
|
-
|
|
405727
|
-
|
|
405728
|
-
|
|
405729
|
-
|
|
405730
|
-
|
|
405731
|
-
|
|
405732
|
-
|
|
406252
|
+
RewardsHistoryStatuses as f$,
|
|
406253
|
+
generateZkProof as f0,
|
|
406254
|
+
getCRV as f1,
|
|
406255
|
+
getCVX as f2,
|
|
406256
|
+
erc20TokenFromPendleAsset as f3,
|
|
406257
|
+
getAssetTypeFromPendleMarket as f4,
|
|
406258
|
+
determinePendleSwapType as f5,
|
|
406259
|
+
determinePendleSwapTypeApiRoute as f6,
|
|
406260
|
+
getTokenIndexForPendleFlatFee as f7,
|
|
406261
|
+
encryptStake as f8,
|
|
406262
|
+
decryptStake as f9,
|
|
406263
|
+
INTERACTION as fA,
|
|
406264
|
+
VERIFICATION_TYPE as fB,
|
|
406265
|
+
VerificationTypes as fC,
|
|
406266
|
+
KycVerificationResult as fD,
|
|
406267
|
+
KycVerificationStatus as fE,
|
|
406268
|
+
ApprovalType as fF,
|
|
406269
|
+
SlippageType as fG,
|
|
406270
|
+
slippageLevels as fH,
|
|
406271
|
+
emptyDecodedTx as fI,
|
|
406272
|
+
secondInMilliseconds as fJ,
|
|
406273
|
+
minuteInMilliseconds as fK,
|
|
406274
|
+
hourInMilliseconds as fL,
|
|
406275
|
+
dayInMilliseconds as fM,
|
|
406276
|
+
weekInMilliseconds as fN,
|
|
406277
|
+
getDateFromWeek as fO,
|
|
406278
|
+
getWeekTimestamps as fP,
|
|
406279
|
+
getCurrentWeek as fQ,
|
|
406280
|
+
parseWeek as fR,
|
|
406281
|
+
toDateString as fS,
|
|
406282
|
+
isWeekCurrent as fT,
|
|
406283
|
+
hasCertificationPeriodExpired as fU,
|
|
406284
|
+
getNextDay as fV,
|
|
406285
|
+
MONTHS as fW,
|
|
406286
|
+
divideMonthOnIntervals as fX,
|
|
406287
|
+
TIER_LEVEL as fY,
|
|
406288
|
+
LP_TIER as fZ,
|
|
406289
|
+
RewardsPageTabs as f_,
|
|
406290
|
+
createStakeCommitment as fa,
|
|
406291
|
+
calculateStakeNullifier as fb,
|
|
406292
|
+
encodeHStakeMetadata as fc,
|
|
406293
|
+
emporiumOp as fd,
|
|
406294
|
+
encodeEmporiumMetadata as fe,
|
|
406295
|
+
OpType as ff,
|
|
406296
|
+
produceOp as fg,
|
|
406297
|
+
dataBeefyApiConfig as fh,
|
|
406298
|
+
isBeefyDeposit as fi,
|
|
406299
|
+
emptyStealthAddressStructure as fj,
|
|
406300
|
+
defaultHookData as fk,
|
|
406301
|
+
defaultHookDataArray as fl,
|
|
406302
|
+
defaultStealthAddressStructure as fm,
|
|
406303
|
+
ContractType as fn,
|
|
406304
|
+
ExternalActionId as fo,
|
|
406305
|
+
EventType as fp,
|
|
406306
|
+
IntegrationProvider as fq,
|
|
406307
|
+
StakeProvider as fr,
|
|
406308
|
+
CurveAction as fs,
|
|
406309
|
+
ConvexAction as ft,
|
|
406310
|
+
BeefyAction as fu,
|
|
406311
|
+
LidoVariant as fv,
|
|
406312
|
+
LidoAction as fw,
|
|
406313
|
+
PendleAction as fx,
|
|
406314
|
+
PendleLPAction as fy,
|
|
406315
|
+
VolatileAction as fz,
|
|
405733
406316
|
getDefaultExportFromCjs$1 as g,
|
|
405734
|
-
|
|
405735
|
-
|
|
405736
|
-
|
|
405737
|
-
|
|
405738
|
-
|
|
405739
|
-
|
|
405740
|
-
|
|
405741
|
-
|
|
405742
|
-
|
|
405743
|
-
|
|
405744
|
-
|
|
405745
|
-
|
|
405746
|
-
|
|
405747
|
-
|
|
405748
|
-
|
|
405749
|
-
|
|
405750
|
-
|
|
405751
|
-
|
|
405752
|
-
|
|
405753
|
-
|
|
405754
|
-
|
|
405755
|
-
|
|
405756
|
-
|
|
405757
|
-
|
|
405758
|
-
|
|
405759
|
-
|
|
406317
|
+
RewardsHistorySnapshots as g0,
|
|
406318
|
+
RewardsHistoryEligibility as g1,
|
|
406319
|
+
RewardsHistoryDistribution as g2,
|
|
406320
|
+
RafflePrizeType as g3,
|
|
406321
|
+
PointType as g4,
|
|
406322
|
+
Timeline as g5,
|
|
406323
|
+
PaymentStatus as g6,
|
|
406324
|
+
CertifyType as g7,
|
|
406325
|
+
RewardPage as g8,
|
|
406326
|
+
BonusType as g9,
|
|
406327
|
+
emptyUserPointsResponse as ga,
|
|
406328
|
+
emptyUserPointsBreakdown as gb,
|
|
406329
|
+
PendleTabs as gc,
|
|
406330
|
+
PendleTradeGeneralTabs as gd,
|
|
406331
|
+
PendleTradeTabs as ge,
|
|
406332
|
+
PendlePoolTabs as gf,
|
|
406333
|
+
PendlePoolZapTabs as gg,
|
|
406334
|
+
PendlePoolManualTabs as gh,
|
|
406335
|
+
PendleDashboardTabs as gi,
|
|
406336
|
+
PendleEarnTabs as gj,
|
|
406337
|
+
PendleChains as gk,
|
|
406338
|
+
PendleAssetType as gl,
|
|
406339
|
+
PendleSwapType as gm,
|
|
406340
|
+
PendleMarketTransactionTypes as gn,
|
|
406341
|
+
curveNetworkNames as go,
|
|
406342
|
+
curvePools as gp,
|
|
406343
|
+
UpperTabPossibleValues as gq,
|
|
406344
|
+
StatType as gr,
|
|
406345
|
+
HinkalStakeMode as gs,
|
|
405760
406346
|
calcCommitmentsSiblingAndSides as h,
|
|
405761
406347
|
calcAccessTokenSiblingsAndSides as i,
|
|
405762
406348
|
preProcessing as j,
|