@hinkal/common 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/API/getRelayerURL.cjs +1 -1
  2. package/API/getRelayerURL.mjs +4 -4
  3. package/API/getServerURL.cjs +1 -1
  4. package/API/getServerURL.mjs +14 -12
  5. package/API/tenderly.api.cjs +1 -1
  6. package/API/tenderly.api.d.ts +9 -7
  7. package/API/tenderly.api.mjs +37 -29
  8. package/constants/axelar.constants.cjs +1 -1
  9. package/constants/axelar.constants.mjs +8 -8
  10. package/constants/chains.constants.cjs +1 -1
  11. package/constants/chains.constants.d.ts +2 -0
  12. package/constants/chains.constants.mjs +24 -15
  13. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  14. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +9328 -3470
  15. package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
  16. package/constants/deploy-data/deploy-data-avalanche.json.mjs +9323 -3461
  17. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  18. package/constants/deploy-data/deploy-data-base.json.mjs +8668 -3820
  19. package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
  20. package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +8966 -3102
  21. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  22. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +6413 -4517
  23. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  24. package/constants/deploy-data/deploy-data-optimism.json.mjs +171 -61
  25. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  26. package/constants/deploy-data/deploy-data-polygon.json.mjs +9311 -3477
  27. package/constants/protocol.constants.cjs +1 -1
  28. package/constants/protocol.constants.d.ts +2 -0
  29. package/constants/protocol.constants.mjs +14 -12
  30. package/constants/server.constants.cjs +1 -1
  31. package/constants/server.constants.d.ts +20 -0
  32. package/constants/server.constants.mjs +39 -19
  33. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  34. package/constants/token-data/arbMainnetRegistry.json.mjs +321 -84
  35. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  36. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +313 -82
  37. package/constants/token-data/avalancheRegistry.json.cjs +1 -1
  38. package/constants/token-data/avalancheRegistry.json.mjs +220 -55
  39. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
  40. package/constants/token-data/avalancheRegistryFixed.json.mjs +220 -55
  41. package/constants/token-data/baseRegistry.json.cjs +1 -1
  42. package/constants/token-data/baseRegistry.json.mjs +216 -54
  43. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  44. package/constants/token-data/baseRegistryFixed.json.mjs +204 -51
  45. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  46. package/constants/token-data/ethMainnetRegistry.json.mjs +895 -225
  47. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  48. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +855 -215
  49. package/constants/token-data/index.d.ts +433 -0
  50. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  51. package/constants/token-data/polygonRegistry.json.mjs +501 -129
  52. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  53. package/constants/token-data/polygonRegistryFixed.json.mjs +477 -123
  54. package/constants/vite.constants.cjs +1 -1
  55. package/constants/vite.constants.d.ts +2 -1
  56. package/constants/vite.constants.mjs +22 -21
  57. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  58. package/data-structures/Hinkal/Hinkal.mjs +4 -3
  59. package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
  60. package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +7 -7
  61. package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -1
  62. package/data-structures/TokenDBs/PublicTokensDB.mjs +43 -38
  63. package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
  64. package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +1 -1
  65. package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
  66. package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +2 -2
  67. package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  68. package/data-structures/merkle-tree/MerkleTree.d.ts +1 -1
  69. package/data-structures/merkle-tree/MerkleTree.mjs +15 -14
  70. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -1
  71. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +1 -1
  72. package/functions/utils/merkleTree.utils.cjs +1 -1
  73. package/functions/utils/merkleTree.utils.mjs +7 -6
  74. package/functions/web3/getTokenHolder.cjs +1 -0
  75. package/functions/web3/getTokenHolder.d.ts +1 -0
  76. package/functions/web3/getTokenHolder.mjs +12 -0
  77. package/functions/web3/index.d.ts +1 -0
  78. package/index.cjs +1 -1
  79. package/index.mjs +722 -714
  80. package/package.json +1 -1
  81. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
  82. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
  83. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  84. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
@@ -1,4 +1,4 @@
1
- const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
1
+ const e = "0x13b65FA5375af51A12762499602bE7B92afB8CD6", t = [
2
2
  {
3
3
  inputs: [
4
4
  {
@@ -496,6 +496,25 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
496
496
  stateMutability: "pure",
497
497
  type: "function"
498
498
  },
499
+ {
500
+ inputs: [
501
+ {
502
+ internalType: "uint256",
503
+ name: "",
504
+ type: "uint256"
505
+ }
506
+ ],
507
+ name: "externalActionMap",
508
+ outputs: [
509
+ {
510
+ internalType: "address",
511
+ name: "",
512
+ type: "address"
513
+ }
514
+ ],
515
+ stateMutability: "view",
516
+ type: "function"
517
+ },
499
518
  {
500
519
  inputs: [
501
520
  {
@@ -782,9 +801,9 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
782
801
  name: "m_index",
783
802
  outputs: [
784
803
  {
785
- internalType: "uint128",
804
+ internalType: "uint256",
786
805
  name: "",
787
- type: "uint128"
806
+ type: "uint256"
788
807
  }
789
808
  ],
790
809
  stateMutability: "view",
@@ -1074,9 +1093,28 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
1074
1093
  name: "rootIndex",
1075
1094
  outputs: [
1076
1095
  {
1077
- internalType: "uint128",
1096
+ internalType: "uint256",
1097
+ name: "",
1098
+ type: "uint256"
1099
+ }
1100
+ ],
1101
+ stateMutability: "view",
1102
+ type: "function"
1103
+ },
1104
+ {
1105
+ inputs: [
1106
+ {
1107
+ internalType: "uint256",
1108
+ name: "",
1109
+ type: "uint256"
1110
+ }
1111
+ ],
1112
+ name: "roots",
1113
+ outputs: [
1114
+ {
1115
+ internalType: "uint256",
1078
1116
  name: "",
1079
- type: "uint128"
1117
+ type: "uint256"
1080
1118
  }
1081
1119
  ],
1082
1120
  stateMutability: "view",
@@ -1463,11 +1501,30 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
1463
1501
  stateMutability: "view",
1464
1502
  type: "function"
1465
1503
  },
1504
+ {
1505
+ inputs: [
1506
+ {
1507
+ internalType: "uint256",
1508
+ name: "",
1509
+ type: "uint256"
1510
+ }
1511
+ ],
1512
+ name: "verifierMap",
1513
+ outputs: [
1514
+ {
1515
+ internalType: "contract IVerifier",
1516
+ name: "",
1517
+ type: "address"
1518
+ }
1519
+ ],
1520
+ stateMutability: "view",
1521
+ type: "function"
1522
+ },
1466
1523
  {
1467
1524
  stateMutability: "payable",
1468
1525
  type: "receive"
1469
1526
  }
1470
- ], n = "0xF8141e873e87aB9ae99c607C9822c0a2F488810F", a = [
1527
+ ], n = "0x6D5DFa6Ec97bF1Da5396033F305dFA8575c1f5a7", a = [
1471
1528
  {
1472
1529
  inputs: [
1473
1530
  {
@@ -1480,16 +1537,6 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
1480
1537
  name: "_accessToken",
1481
1538
  type: "address"
1482
1539
  },
1483
- {
1484
- internalType: "uint256[]",
1485
- name: "_openCircuitIds",
1486
- type: "uint256[]"
1487
- },
1488
- {
1489
- internalType: "uint256[]",
1490
- name: "_receiveCircuitIds",
1491
- type: "uint256[]"
1492
- },
1493
1540
  {
1494
1541
  internalType: "uint256[]",
1495
1542
  name: "_stakeCircuitIds",
@@ -2206,6 +2253,11 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
2206
2253
  internalType: "struct Dimensions",
2207
2254
  name: "dimensions",
2208
2255
  type: "tuple"
2256
+ },
2257
+ {
2258
+ internalType: "address",
2259
+ name: "sender",
2260
+ type: "address"
2209
2261
  }
2210
2262
  ],
2211
2263
  name: "performHinkalChecks",
@@ -2219,6 +2271,62 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
2219
2271
  stateMutability: "view",
2220
2272
  type: "function"
2221
2273
  },
2274
+ {
2275
+ inputs: [
2276
+ {
2277
+ internalType: "address[]",
2278
+ name: "erc20Addresses",
2279
+ type: "address[]"
2280
+ },
2281
+ {
2282
+ internalType: "uint256[]",
2283
+ name: "amounts",
2284
+ type: "uint256[]"
2285
+ },
2286
+ {
2287
+ internalType: "uint256[]",
2288
+ name: "tokenIds",
2289
+ type: "uint256[]"
2290
+ },
2291
+ {
2292
+ components: [
2293
+ {
2294
+ internalType: "uint256",
2295
+ name: "extraRandomization",
2296
+ type: "uint256"
2297
+ },
2298
+ {
2299
+ internalType: "uint256",
2300
+ name: "stealthAddress",
2301
+ type: "uint256"
2302
+ },
2303
+ {
2304
+ internalType: "uint256",
2305
+ name: "H0",
2306
+ type: "uint256"
2307
+ },
2308
+ {
2309
+ internalType: "uint256",
2310
+ name: "H1",
2311
+ type: "uint256"
2312
+ }
2313
+ ],
2314
+ internalType: "struct StealthAddressStructure[]",
2315
+ name: "stealthAddressStructures",
2316
+ type: "tuple[]"
2317
+ }
2318
+ ],
2319
+ name: "performProoflessDepositChecks",
2320
+ outputs: [
2321
+ {
2322
+ internalType: "bool",
2323
+ name: "",
2324
+ type: "bool"
2325
+ }
2326
+ ],
2327
+ stateMutability: "view",
2328
+ type: "function"
2329
+ },
2222
2330
  {
2223
2331
  inputs: [
2224
2332
  {
@@ -2620,42 +2728,6 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
2620
2728
  stateMutability: "nonpayable",
2621
2729
  type: "function"
2622
2730
  },
2623
- {
2624
- inputs: [
2625
- {
2626
- internalType: "uint256",
2627
- name: "externalActionId",
2628
- type: "uint256"
2629
- },
2630
- {
2631
- internalType: "bool",
2632
- name: "value",
2633
- type: "bool"
2634
- }
2635
- ],
2636
- name: "updateOpenCircuits",
2637
- outputs: [],
2638
- stateMutability: "nonpayable",
2639
- type: "function"
2640
- },
2641
- {
2642
- inputs: [
2643
- {
2644
- internalType: "uint256",
2645
- name: "externalActionId",
2646
- type: "uint256"
2647
- },
2648
- {
2649
- internalType: "bool",
2650
- name: "value",
2651
- type: "bool"
2652
- }
2653
- ],
2654
- name: "updateReceiveCircuits",
2655
- outputs: [],
2656
- stateMutability: "nonpayable",
2657
- type: "function"
2658
- },
2659
2731
  {
2660
2732
  inputs: [
2661
2733
  {
@@ -2674,7 +2746,7 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
2674
2746
  stateMutability: "nonpayable",
2675
2747
  type: "function"
2676
2748
  }
2677
- ], i = "0x037FF7e93aaA2c1172ee8A46A21b980D2d23c399", s = [
2749
+ ], i = "0x82C4B40BFb0eD6Af3675aDf3FBa655f01c132D33", s = [
2678
2750
  {
2679
2751
  inputs: [
2680
2752
  {
@@ -3435,7 +3507,7 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
3435
3507
  stateMutability: "nonpayable",
3436
3508
  type: "function"
3437
3509
  }
3438
- ], p = "0xDC3E627cb07fe0af6c7ACf2Cf6a5F64a5874a215", r = "0xE6B435Ec775c8BbB1035bae4cabD32BE8292C464", y = "0x0b5fe739faC083F72654006E68aFeeB38734a025", u = [
3510
+ ], p = "0xedE0F2e6C64cA3b89276a2388BC6591De79332E9", r = "0xd55824BfD102D533f00518796D69f329F4292E11", y = "0x3c0d3881EdE9d5F784E254490B6Bb36b9Da56777", u = [
3439
3511
  {
3440
3512
  inputs: [
3441
3513
  {
@@ -10401,7 +10473,7 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
10401
10473
  stateMutability: "nonpayable",
10402
10474
  type: "function"
10403
10475
  }
10404
- ], k = "0xe665ECe17D5646826b176BB9979116B927571E43", h = [
10476
+ ], k = "0x894cC8142dd3AeF8cc56884ae2BAfA76310F8aCD", h = [
10405
10477
  {
10406
10478
  inputs: [
10407
10479
  {
@@ -10713,7 +10785,7 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
10713
10785
  stateMutability: "payable",
10714
10786
  type: "receive"
10715
10787
  }
10716
- ], x = "0x2b243B5C856121C30664e715A3f2b7D0c2C38F5E", g = [
10788
+ ], x = "0x4083a88Ce6e56CBeBAB29E20fDD9217442d7a1A0", g = [
10717
10789
  {
10718
10790
  inputs: [
10719
10791
  {
@@ -12018,9 +12090,9 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
12018
12090
  name: "m_index",
12019
12091
  outputs: [
12020
12092
  {
12021
- internalType: "uint128",
12093
+ internalType: "uint256",
12022
12094
  name: "",
12023
- type: "uint128"
12095
+ type: "uint256"
12024
12096
  }
12025
12097
  ],
12026
12098
  stateMutability: "view",
@@ -12327,9 +12399,28 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
12327
12399
  name: "rootIndex",
12328
12400
  outputs: [
12329
12401
  {
12330
- internalType: "uint128",
12402
+ internalType: "uint256",
12331
12403
  name: "",
12332
- type: "uint128"
12404
+ type: "uint256"
12405
+ }
12406
+ ],
12407
+ stateMutability: "view",
12408
+ type: "function"
12409
+ },
12410
+ {
12411
+ inputs: [
12412
+ {
12413
+ internalType: "uint256",
12414
+ name: "",
12415
+ type: "uint256"
12416
+ }
12417
+ ],
12418
+ name: "roots",
12419
+ outputs: [
12420
+ {
12421
+ internalType: "uint256",
12422
+ name: "",
12423
+ type: "uint256"
12333
12424
  }
12334
12425
  ],
12335
12426
  stateMutability: "view",
@@ -12812,6 +12903,25 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
12812
12903
  stateMutability: "view",
12813
12904
  type: "function"
12814
12905
  },
12906
+ {
12907
+ inputs: [
12908
+ {
12909
+ internalType: "uint256",
12910
+ name: "",
12911
+ type: "uint256"
12912
+ }
12913
+ ],
12914
+ name: "verifierMap",
12915
+ outputs: [
12916
+ {
12917
+ internalType: "contract IVerifier",
12918
+ name: "",
12919
+ type: "address"
12920
+ }
12921
+ ],
12922
+ stateMutability: "view",
12923
+ type: "function"
12924
+ },
12815
12925
  {
12816
12926
  stateMutability: "payable",
12817
12927
  type: "receive"
@@ -13720,7 +13830,7 @@ const e = "0xe1Cc1A5b0C5CE2cB7589287071F9510Db5E2C399", t = [
13720
13830
  stateMutability: "view",
13721
13831
  type: "function"
13722
13832
  }
13723
- ], C = "0x3E1184E5967A84FdCd4f84E22929c8A1749F28c8", I = "0x0Df06Ad4c0A664A4fa58c49Fdd8782c5F49561ef", R = "0x24Ec68E3200B9917Fd02fAB1580D93A3847f33F4", D = [
13833
+ ], C = "0x96B80d64e3257fC0C765171b8cC0E444C6fcdb48", I = "0xAde6caA3EC51EEb7C1b9b0fA0aC3bF1d02fA1a0f", R = "0xeDfBC45C547e0D0A986437CD6107669a035FddC9", D = [
13724
13834
  {
13725
13835
  inputs: [],
13726
13836
  stateMutability: "nonpayable",