@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.
- package/API/getRelayerURL.cjs +1 -1
- package/API/getRelayerURL.mjs +4 -4
- package/API/getServerURL.cjs +1 -1
- package/API/getServerURL.mjs +14 -12
- package/API/tenderly.api.cjs +1 -1
- package/API/tenderly.api.d.ts +9 -7
- package/API/tenderly.api.mjs +37 -29
- package/constants/axelar.constants.cjs +1 -1
- package/constants/axelar.constants.mjs +8 -8
- package/constants/chains.constants.cjs +1 -1
- package/constants/chains.constants.d.ts +2 -0
- package/constants/chains.constants.mjs +24 -15
- package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +9328 -3470
- package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-avalanche.json.mjs +9323 -3461
- package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-base.json.mjs +8668 -3820
- package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +8966 -3102
- package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +6413 -4517
- package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +171 -61
- package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-polygon.json.mjs +9311 -3477
- package/constants/protocol.constants.cjs +1 -1
- package/constants/protocol.constants.d.ts +2 -0
- package/constants/protocol.constants.mjs +14 -12
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +20 -0
- package/constants/server.constants.mjs +39 -19
- package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistry.json.mjs +321 -84
- package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/arbMainnetRegistryFixed.json.mjs +313 -82
- package/constants/token-data/avalancheRegistry.json.cjs +1 -1
- package/constants/token-data/avalancheRegistry.json.mjs +220 -55
- package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
- package/constants/token-data/avalancheRegistryFixed.json.mjs +220 -55
- package/constants/token-data/baseRegistry.json.cjs +1 -1
- package/constants/token-data/baseRegistry.json.mjs +216 -54
- package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
- package/constants/token-data/baseRegistryFixed.json.mjs +204 -51
- package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistry.json.mjs +895 -225
- package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
- package/constants/token-data/ethMainnetRegistryFixed.json.mjs +855 -215
- package/constants/token-data/index.d.ts +433 -0
- package/constants/token-data/polygonRegistry.json.cjs +1 -1
- package/constants/token-data/polygonRegistry.json.mjs +501 -129
- package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
- package/constants/token-data/polygonRegistryFixed.json.mjs +477 -123
- package/constants/vite.constants.cjs +1 -1
- package/constants/vite.constants.d.ts +2 -1
- package/constants/vite.constants.mjs +22 -21
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.mjs +4 -3
- package/data-structures/Hinkal/hinkalProoflessDeposit.cjs +1 -1
- package/data-structures/Hinkal/hinkalProoflessDeposit.mjs +7 -7
- package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -1
- package/data-structures/TokenDBs/PublicTokensDB.mjs +43 -38
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +1 -1
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +2 -2
- package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
- package/data-structures/merkle-tree/MerkleTree.d.ts +1 -1
- package/data-structures/merkle-tree/MerkleTree.mjs +15 -14
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -1
- package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +1 -1
- package/functions/utils/merkleTree.utils.cjs +1 -1
- package/functions/utils/merkleTree.utils.mjs +7 -6
- package/functions/web3/getTokenHolder.cjs +1 -0
- package/functions/web3/getTokenHolder.d.ts +1 -0
- package/functions/web3/getTokenHolder.mjs +12 -0
- package/functions/web3/index.d.ts +1 -0
- package/index.cjs +1 -1
- package/index.mjs +722 -714
- package/package.json +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "
|
|
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: "
|
|
804
|
+
internalType: "uint256",
|
|
786
805
|
name: "",
|
|
787
|
-
type: "
|
|
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: "
|
|
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: "
|
|
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 = "
|
|
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 = "
|
|
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 = "
|
|
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 = "
|
|
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 = "
|
|
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: "
|
|
12093
|
+
internalType: "uint256",
|
|
12022
12094
|
name: "",
|
|
12023
|
-
type: "
|
|
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: "
|
|
12402
|
+
internalType: "uint256",
|
|
12331
12403
|
name: "",
|
|
12332
|
-
type: "
|
|
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 = "
|
|
13833
|
+
], C = "0x96B80d64e3257fC0C765171b8cC0E444C6fcdb48", I = "0xAde6caA3EC51EEb7C1b9b0fA0aC3bF1d02fA1a0f", R = "0xeDfBC45C547e0D0A986437CD6107669a035FddC9", D = [
|
|
13724
13834
|
{
|
|
13725
13835
|
inputs: [],
|
|
13726
13836
|
stateMutability: "nonpayable",
|