@hinkal/common 0.0.41 → 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.
@@ -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-CcHOyB0R.mjs");
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-BYot7cHK.mjs"
300078
+ "./snarkjsWorkerLogic-2EWVLyPP.mjs"
300079
300079
  ) : t === WorkerVariant.ZKProof ? c = await import(
300080
300080
  /* @vite-ignore */
300081
- "./zkProofWorkerLogic-M3vNqxJ5.mjs"
300081
+ "./zkProofWorkerLogic-BIMoPB0E.mjs"
300082
300082
  ) : t === WorkerVariant.UTXO && (c = await import(
300083
300083
  /* @vite-ignore */
300084
- "./utxoWorkerLogic-BOp8Uau0.mjs"
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$v = [
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$u = [
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$t = [
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$s = [
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$r = [
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$q = [
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$p = [
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$o = [
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$n = [
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$m = [
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$l = [
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$k = [
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$j = [
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$i = [
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$h = [
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$u, this.provider).totalSupply()).toBigInt(), H = Number(formatUnits(T, 18));
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;
@@ -320571,7 +321135,23 @@ const determinePendleSwapType = (a, t, n) => {
320571
321135
  ), calculateStakeNullifier = (a, t) => poseidonHash(a, t), encodeHStakeMetadata = (a, t, n, c, l) => defaultAbiCoder.encode(
320572
321136
  ["uint8", "uint256", "address", "bytes", "bytes"],
320573
321137
  [a, t, n, c, l]
320574
- ), HINKAL_UNIVERSAL_FEE = 8n, HINKAL_EXTERNAL_ACTION_FEE = 3n, getHinkalFeeRateInBeeps = (a) => a ? HINKAL_UNIVERSAL_FEE : HINKAL_EXTERNAL_ACTION_FEE, getRelayFee = (a, t = !1) => {
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) => {
320575
321155
  const n = absBigInt(a);
320576
321156
  return getHinkalFeeRateInBeeps(t) * n / 10000n;
320577
321157
  }, getSlippageFee = (a, t) => {
@@ -327872,13 +328452,13 @@ const determinePendleSwapType = (a, t, n) => {
327872
328452
  type: "function"
327873
328453
  }
327874
328454
  ], uniswapV3FactoryData = {
327875
- abi: abi$n
328455
+ abi: abi$o
327876
328456
  }, uniswapV3PoolData = {
327877
328457
  abi: abi$3
327878
328458
  }, uniswapV2PoolData = {
327879
328459
  abi: abi$2
327880
328460
  }, uniswapV3QuoterData = {
327881
- abi: abi$o
328461
+ abi: abi$p
327882
328462
  }, CurvePoolWithIntCoinsInterface = new Interface([
327883
328463
  "function coins(int128 arg0) external view returns (address)"
327884
328464
  ]), CurvePoolWithIntBalancesInterface = new Interface([
@@ -327929,7 +328509,7 @@ const determinePendleSwapType = (a, t, n) => {
327929
328509
  abi: uniswapV3QuoterData.abi
327930
328510
  }),
327931
328511
  [ContractType.ERC20Contract]: () => ({
327932
- abi: abi$p
328512
+ abi: abi$q
327933
328513
  }),
327934
328514
  [ContractType.WATokenContract]: (a) => ({
327935
328515
  abi: a.waTokenABI
@@ -327952,10 +328532,10 @@ const determinePendleSwapType = (a, t, n) => {
327952
328532
  abi: wrappedStrakedRewardsCurveLpABI
327953
328533
  }),
327954
328534
  [ContractType.CurveWrappedMainPool]: () => ({
327955
- abi: abi$r
328535
+ abi: abi$s
327956
328536
  }),
327957
328537
  [ContractType.CurveReadingWrapper]: () => ({
327958
- abi: abi$s
328538
+ abi: abi$t
327959
328539
  }),
327960
328540
  // we use curveReadingWrapper has withdraw one coin as uint whereas curveWrappedMainPool has it as int
327961
328541
  [ContractType.CurvePoolLPTokenAmountCalculator2]: () => ({
@@ -328017,7 +328597,7 @@ const determinePendleSwapType = (a, t, n) => {
328017
328597
  abi: abi$5
328018
328598
  }),
328019
328599
  [ContractType.BeefyVault]: () => ({
328020
- abi: abi$u
328600
+ abi: abi$v
328021
328601
  }),
328022
328602
  [ContractType.BeefyZap]: () => ({
328023
328603
  abi: abi$b
@@ -405540,53 +406120,53 @@ export {
405540
406120
  hinkalActionConvex as cy,
405541
406121
  hinkalActionCurve as cz,
405542
406122
  requireStreamBrowserify as d,
405543
- getERC20TokenBySymbol as d$,
406123
+ getERC20Token as d$,
405544
406124
  extractMessage as d0,
405545
406125
  getErrorMessage as d1,
405546
406126
  checkErrorForSnapshotRestore as d2,
405547
406127
  ErrorCategory as d3,
405548
- abi$r as d4,
405549
- abi$s as d5,
405550
- abi$o as d6,
405551
- abi$n as d7,
405552
- abi$v as d8,
405553
- abi$u as d9,
405554
- beepsToPercentage as dA,
405555
- calculateAmountUsingBeeps as dB,
405556
- toBigInt as dC,
405557
- toBigIntOrUndefined as dD,
405558
- toNumberOrUndefined as dE,
405559
- toInt as dF,
405560
- bigintApplySugar as dG,
405561
- bigintMax as dH,
405562
- fixDecimalsAmount as dI,
405563
- getValueFirstNDigit as dJ,
405564
- trimLeadingZeros as dK,
405565
- toCommaSeparatedNumberString as dL,
405566
- truncateTo18DecimalPlaces as dM,
405567
- absBigInt as dN,
405568
- minBigInt as dO,
405569
- getHinkalCache as dP,
405570
- setHinkalCache as dQ,
405571
- resetCache as dR,
405572
- saveTxsCache as dS,
405573
- loadTxsCache as dT,
405574
- createProvider as dU,
405575
- getExternalActionIdHash as dV,
405576
- getExternalActionIdFromNumber as dW,
405577
- getActionFromMetadata as dX,
405578
- decodeMetadata as dY,
405579
- getExternalMetadataHash as dZ,
405580
- getERC20Token as d_,
405581
- abi$p as da,
405582
- abi$l as db,
405583
- abi$q as dc,
405584
- abi$k as dd,
405585
- abi$j as de,
405586
- abi$i as df,
405587
- abi$h as dg,
405588
- abi$t as dh,
405589
- abi$m as di,
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,
405590
406170
  lidoStEthAbi as dj,
405591
406171
  lidoStMaticAbi as dk,
405592
406172
  lidoWithdrawalQueueERC721Abi as dl,
@@ -405597,169 +406177,172 @@ export {
405597
406177
  abi$f as dr,
405598
406178
  abi$e as ds,
405599
406179
  OptimismGasPriceOracle as dt,
405600
- checkHinkalAccessToken as du,
405601
- mintAccessToken as dv,
405602
- mintTokenCrossChain as dw,
405603
- openDefaultPassportWindow as dx,
405604
- openPassportWindow as dy,
405605
- calculateSum as dz,
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,
405606
406186
  eventsExports as e,
405607
- generateZkProof as e$,
405608
- getHToken as e0,
405609
- requireEnv as e1,
405610
- resolveSync as e2,
405611
- getSequence as e3,
405612
- convertIntegrationProviderToExternalActionId as e4,
405613
- getInteractionFromAction as e5,
405614
- outputUtxoProcessing as e6,
405615
- processGasEstimates as e7,
405616
- processAmountChanges as e8,
405617
- getFlatFees as e9,
405618
- calculateDollarValue as eA,
405619
- getAmountWithPrecisionOrZero as eB,
405620
- getInputUtxosFromEncryptedOutputs as eC,
405621
- getInputUtxoAndBalance as eD,
405622
- getShieldedBalance as eE,
405623
- addPaddingToUtxos as eF,
405624
- retrieveEvents as eG,
405625
- getDepositEvents as eH,
405626
- balanceChangedHandler as eI,
405627
- searchPoolAndFee as eJ,
405628
- getUniswapPriceHelper as eK,
405629
- getUniswapFee as eL,
405630
- getUniswapPrice as eM,
405631
- getOdosPrice as eN,
405632
- getOneInchPrice as eO,
405633
- runContractFunction as eP,
405634
- constructZkProof as eQ,
405635
- constructEmporiumProof as eR,
405636
- buildInNullifiers as eS,
405637
- buildOutCommitments as eT,
405638
- calcAmountChanges as eU,
405639
- calcEncryptedOutputs as eV,
405640
- serializeCircomData as eW,
405641
- deserializeCircomData as eX,
405642
- createCallDataHash as eY,
405643
- calcPublicSignalCount as eZ,
405644
- calcStealthAddressStructure as e_,
405645
- getNetworkObject as ea,
405646
- getNetworkType as eb,
405647
- getAxelarMigrationInfo as ec,
405648
- browserSupported as ed,
405649
- walletSupported as ee,
405650
- decodeTxInput as ef,
405651
- decodeTxLogs as eg,
405652
- deserializeDecodedTxs as eh,
405653
- serializeDecodedTxs as ei,
405654
- reloadPage as ej,
405655
- toTitleCase as ek,
405656
- capitalizeFirstLetter as el,
405657
- isNullOrEmpty as em,
405658
- isNicknameValid as en,
405659
- caseInsensitiveEqual as eo,
405660
- lowerCaseIncludes as ep,
405661
- lowerCaseStartsWith as eq,
405662
- waitLittle as er,
405663
- patchRegistry as es,
405664
- ethToWei as et,
405665
- randomBigInt as eu,
405666
- getAmountInToken as ev,
405667
- getAmountInWei as ew,
405668
- toBigIntWithDecimals as ex,
405669
- getAmountInWeiOrZero as ey,
405670
- getAmountWithPrecision as ez,
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,
405671
406251
  poseidonFunction as f,
405672
- RewardsHistoryDistribution as f$,
405673
- getCRV as f0,
405674
- getCVX as f1,
405675
- erc20TokenFromPendleAsset as f2,
405676
- getAssetTypeFromPendleMarket as f3,
405677
- determinePendleSwapType as f4,
405678
- determinePendleSwapTypeApiRoute as f5,
405679
- getTokenIndexForPendleFlatFee as f6,
405680
- encryptStake as f7,
405681
- decryptStake as f8,
405682
- createStakeCommitment as f9,
405683
- KycVerificationResult as fA,
405684
- KycVerificationStatus as fB,
405685
- ApprovalType as fC,
405686
- SlippageType as fD,
405687
- slippageLevels as fE,
405688
- emptyDecodedTx as fF,
405689
- secondInMilliseconds as fG,
405690
- minuteInMilliseconds as fH,
405691
- hourInMilliseconds as fI,
405692
- dayInMilliseconds as fJ,
405693
- weekInMilliseconds as fK,
405694
- getDateFromWeek as fL,
405695
- getWeekTimestamps as fM,
405696
- getCurrentWeek as fN,
405697
- parseWeek as fO,
405698
- toDateString as fP,
405699
- isWeekCurrent as fQ,
405700
- hasCertificationPeriodExpired as fR,
405701
- getNextDay as fS,
405702
- MONTHS as fT,
405703
- divideMonthOnIntervals as fU,
405704
- TIER_LEVEL as fV,
405705
- LP_TIER as fW,
405706
- RewardsPageTabs as fX,
405707
- RewardsHistoryStatuses as fY,
405708
- RewardsHistorySnapshots as fZ,
405709
- RewardsHistoryEligibility as f_,
405710
- calculateStakeNullifier as fa,
405711
- encodeHStakeMetadata as fb,
405712
- emporiumOp as fc,
405713
- encodeEmporiumMetadata as fd,
405714
- dataBeefyApiConfig as fe,
405715
- isBeefyDeposit as ff,
405716
- emptyStealthAddressStructure as fg,
405717
- defaultHookData as fh,
405718
- defaultHookDataArray as fi,
405719
- defaultStealthAddressStructure as fj,
405720
- ContractType as fk,
405721
- ExternalActionId as fl,
405722
- EventType as fm,
405723
- IntegrationProvider as fn,
405724
- StakeProvider as fo,
405725
- CurveAction as fp,
405726
- ConvexAction as fq,
405727
- BeefyAction as fr,
405728
- LidoVariant as fs,
405729
- LidoAction as ft,
405730
- PendleAction as fu,
405731
- PendleLPAction as fv,
405732
- VolatileAction as fw,
405733
- INTERACTION as fx,
405734
- VERIFICATION_TYPE as fy,
405735
- VerificationTypes as fz,
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,
405736
406316
  getDefaultExportFromCjs$1 as g,
405737
- RafflePrizeType as g0,
405738
- PointType as g1,
405739
- Timeline as g2,
405740
- PaymentStatus as g3,
405741
- CertifyType as g4,
405742
- RewardPage as g5,
405743
- BonusType as g6,
405744
- emptyUserPointsResponse as g7,
405745
- emptyUserPointsBreakdown as g8,
405746
- PendleTabs as g9,
405747
- PendleTradeGeneralTabs as ga,
405748
- PendleTradeTabs as gb,
405749
- PendlePoolTabs as gc,
405750
- PendlePoolZapTabs as gd,
405751
- PendlePoolManualTabs as ge,
405752
- PendleDashboardTabs as gf,
405753
- PendleEarnTabs as gg,
405754
- PendleChains as gh,
405755
- PendleAssetType as gi,
405756
- PendleSwapType as gj,
405757
- PendleMarketTransactionTypes as gk,
405758
- curveNetworkNames as gl,
405759
- curvePools as gm,
405760
- UpperTabPossibleValues as gn,
405761
- StatType as go,
405762
- HinkalStakeMode as gp,
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,
405763
406346
  calcCommitmentsSiblingAndSides as h,
405764
406347
  calcAccessTokenSiblingsAndSides as i,
405765
406348
  preProcessing as j,