@cofhe/mock-contracts 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, BigNumberish, AddressLike, BytesLike, Result, Listener, ContractMethod } from 'ethers';
1
+ import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, BytesLike, AddressLike, BigNumberish, Result, Listener, ContractMethod } from 'ethers';
2
2
 
3
3
  type MockArtifact = {
4
4
  contractName: string;
@@ -118,6 +118,41 @@ declare const MockTaskManagerArtifact: {
118
118
  }];
119
119
  readonly outputs: readonly [];
120
120
  readonly stateMutability: "nonpayable";
121
+ }, {
122
+ readonly type: "function";
123
+ readonly name: "batchVerifyInputs";
124
+ readonly inputs: readonly [{
125
+ readonly name: "inputs";
126
+ readonly type: "tuple[]";
127
+ readonly internalType: "struct UnsignedEncryptedInput[]";
128
+ readonly components: readonly [{
129
+ readonly name: "ctHash";
130
+ readonly type: "uint256";
131
+ readonly internalType: "uint256";
132
+ }, {
133
+ readonly name: "securityZone";
134
+ readonly type: "uint8";
135
+ readonly internalType: "uint8";
136
+ }, {
137
+ readonly name: "utype";
138
+ readonly type: "uint8";
139
+ readonly internalType: "uint8";
140
+ }];
141
+ }, {
142
+ readonly name: "sender";
143
+ readonly type: "address";
144
+ readonly internalType: "address";
145
+ }, {
146
+ readonly name: "signature";
147
+ readonly type: "bytes";
148
+ readonly internalType: "bytes";
149
+ }];
150
+ readonly outputs: readonly [{
151
+ readonly name: "";
152
+ readonly type: "uint256[]";
153
+ readonly internalType: "uint256[]";
154
+ }];
155
+ readonly stateMutability: "nonpayable";
121
156
  }, {
122
157
  readonly type: "function";
123
158
  readonly name: "createDecryptTask";
@@ -314,9 +349,9 @@ declare const MockTaskManagerArtifact: {
314
349
  readonly type: "function";
315
350
  readonly name: "isAllowedWithPermission";
316
351
  readonly inputs: readonly [{
317
- readonly name: "permission";
352
+ readonly name: "acp";
318
353
  readonly type: "tuple";
319
- readonly internalType: "struct Permission";
354
+ readonly internalType: "struct ACP";
320
355
  readonly components: readonly [{
321
356
  readonly name: "issuer";
322
357
  readonly type: "address";
@@ -330,13 +365,25 @@ declare const MockTaskManagerArtifact: {
330
365
  readonly type: "address";
331
366
  readonly internalType: "address";
332
367
  }, {
333
- readonly name: "validatorId";
368
+ readonly name: "revokerData";
334
369
  readonly type: "uint256";
335
370
  readonly internalType: "uint256";
336
371
  }, {
337
- readonly name: "validatorContract";
372
+ readonly name: "revokerContract";
338
373
  readonly type: "address";
339
374
  readonly internalType: "address";
375
+ }, {
376
+ readonly name: "scope";
377
+ readonly type: "uint8";
378
+ readonly internalType: "uint8";
379
+ }, {
380
+ readonly name: "contracts";
381
+ readonly type: "address[]";
382
+ readonly internalType: "address[]";
383
+ }, {
384
+ readonly name: "handles";
385
+ readonly type: "bytes32[]";
386
+ readonly internalType: "bytes32[]";
340
387
  }, {
341
388
  readonly name: "sealingKey";
342
389
  readonly type: "bytes32";
@@ -445,6 +492,20 @@ declare const MockTaskManagerArtifact: {
445
492
  }];
446
493
  readonly outputs: readonly [];
447
494
  readonly stateMutability: "nonpayable";
495
+ }, {
496
+ readonly type: "function";
497
+ readonly name: "receiveCtHash";
498
+ readonly inputs: readonly [{
499
+ readonly name: "ctHash";
500
+ readonly type: "uint256";
501
+ readonly internalType: "uint256";
502
+ }, {
503
+ readonly name: "expectedSharer";
504
+ readonly type: "address";
505
+ readonly internalType: "address";
506
+ }];
507
+ readonly outputs: readonly [];
508
+ readonly stateMutability: "nonpayable";
448
509
  }, {
449
510
  readonly type: "function";
450
511
  readonly name: "removeFirstLetter";
@@ -543,6 +604,20 @@ declare const MockTaskManagerArtifact: {
543
604
  }];
544
605
  readonly outputs: readonly [];
545
606
  readonly stateMutability: "nonpayable";
607
+ }, {
608
+ readonly type: "function";
609
+ readonly name: "shareCtHash";
610
+ readonly inputs: readonly [{
611
+ readonly name: "ctHash";
612
+ readonly type: "uint256";
613
+ readonly internalType: "uint256";
614
+ }, {
615
+ readonly name: "receiver";
616
+ readonly type: "address";
617
+ readonly internalType: "address";
618
+ }];
619
+ readonly outputs: readonly [];
620
+ readonly stateMutability: "nonpayable";
546
621
  }, {
547
622
  readonly type: "function";
548
623
  readonly name: "sliceString";
@@ -653,41 +728,6 @@ declare const MockTaskManagerArtifact: {
653
728
  readonly internalType: "bool";
654
729
  }];
655
730
  readonly stateMutability: "view";
656
- }, {
657
- readonly type: "function";
658
- readonly name: "verifyInput";
659
- readonly inputs: readonly [{
660
- readonly name: "input";
661
- readonly type: "tuple";
662
- readonly internalType: "struct EncryptedInput";
663
- readonly components: readonly [{
664
- readonly name: "ctHash";
665
- readonly type: "uint256";
666
- readonly internalType: "uint256";
667
- }, {
668
- readonly name: "securityZone";
669
- readonly type: "uint8";
670
- readonly internalType: "uint8";
671
- }, {
672
- readonly name: "utype";
673
- readonly type: "uint8";
674
- readonly internalType: "uint8";
675
- }, {
676
- readonly name: "signature";
677
- readonly type: "bytes";
678
- readonly internalType: "bytes";
679
- }];
680
- }, {
681
- readonly name: "sender";
682
- readonly type: "address";
683
- readonly internalType: "address";
684
- }];
685
- readonly outputs: readonly [{
686
- readonly name: "";
687
- readonly type: "uint256";
688
- readonly internalType: "uint256";
689
- }];
690
- readonly stateMutability: "nonpayable";
691
731
  }, {
692
732
  readonly type: "event";
693
733
  readonly name: "DecryptionResult";
@@ -1104,11 +1144,11 @@ declare const MockACLArtifact: {
1104
1144
  readonly stateMutability: "view";
1105
1145
  }, {
1106
1146
  readonly type: "function";
1107
- readonly name: "checkPermitValidity";
1147
+ readonly name: "checkPermissionValidity";
1108
1148
  readonly inputs: readonly [{
1109
- readonly name: "permission";
1149
+ readonly name: "acp";
1110
1150
  readonly type: "tuple";
1111
- readonly internalType: "struct Permission";
1151
+ readonly internalType: "struct ACP";
1112
1152
  readonly components: readonly [{
1113
1153
  readonly name: "issuer";
1114
1154
  readonly type: "address";
@@ -1122,13 +1162,25 @@ declare const MockACLArtifact: {
1122
1162
  readonly type: "address";
1123
1163
  readonly internalType: "address";
1124
1164
  }, {
1125
- readonly name: "validatorId";
1165
+ readonly name: "revokerData";
1126
1166
  readonly type: "uint256";
1127
1167
  readonly internalType: "uint256";
1128
1168
  }, {
1129
- readonly name: "validatorContract";
1169
+ readonly name: "revokerContract";
1130
1170
  readonly type: "address";
1131
1171
  readonly internalType: "address";
1172
+ }, {
1173
+ readonly name: "scope";
1174
+ readonly type: "uint8";
1175
+ readonly internalType: "uint8";
1176
+ }, {
1177
+ readonly name: "contracts";
1178
+ readonly type: "address[]";
1179
+ readonly internalType: "address[]";
1180
+ }, {
1181
+ readonly name: "handles";
1182
+ readonly type: "bytes32[]";
1183
+ readonly internalType: "bytes32[]";
1132
1184
  }, {
1133
1185
  readonly name: "sealingKey";
1134
1186
  readonly type: "bytes32";
@@ -1155,6 +1207,16 @@ declare const MockACLArtifact: {
1155
1207
  readonly inputs: readonly [];
1156
1208
  readonly outputs: readonly [];
1157
1209
  readonly stateMutability: "nonpayable";
1210
+ }, {
1211
+ readonly type: "function";
1212
+ readonly name: "defaultRevokerContract";
1213
+ readonly inputs: readonly [];
1214
+ readonly outputs: readonly [{
1215
+ readonly name: "";
1216
+ readonly type: "address";
1217
+ readonly internalType: "address";
1218
+ }];
1219
+ readonly stateMutability: "view";
1158
1220
  }, {
1159
1221
  readonly type: "function";
1160
1222
  readonly name: "delegateAccount";
@@ -1297,9 +1359,9 @@ declare const MockACLArtifact: {
1297
1359
  readonly type: "function";
1298
1360
  readonly name: "isAllowedWithPermission";
1299
1361
  readonly inputs: readonly [{
1300
- readonly name: "permission";
1362
+ readonly name: "acp";
1301
1363
  readonly type: "tuple";
1302
- readonly internalType: "struct Permission";
1364
+ readonly internalType: "struct ACP";
1303
1365
  readonly components: readonly [{
1304
1366
  readonly name: "issuer";
1305
1367
  readonly type: "address";
@@ -1313,13 +1375,25 @@ declare const MockACLArtifact: {
1313
1375
  readonly type: "address";
1314
1376
  readonly internalType: "address";
1315
1377
  }, {
1316
- readonly name: "validatorId";
1378
+ readonly name: "revokerData";
1317
1379
  readonly type: "uint256";
1318
1380
  readonly internalType: "uint256";
1319
1381
  }, {
1320
- readonly name: "validatorContract";
1382
+ readonly name: "revokerContract";
1321
1383
  readonly type: "address";
1322
1384
  readonly internalType: "address";
1385
+ }, {
1386
+ readonly name: "scope";
1387
+ readonly type: "uint8";
1388
+ readonly internalType: "uint8";
1389
+ }, {
1390
+ readonly name: "contracts";
1391
+ readonly type: "address[]";
1392
+ readonly internalType: "address[]";
1393
+ }, {
1394
+ readonly name: "handles";
1395
+ readonly type: "bytes32[]";
1396
+ readonly internalType: "bytes32[]";
1323
1397
  }, {
1324
1398
  readonly name: "sealingKey";
1325
1399
  readonly type: "bytes32";
@@ -1362,6 +1436,72 @@ declare const MockACLArtifact: {
1362
1436
  readonly internalType: "bool";
1363
1437
  }];
1364
1438
  readonly stateMutability: "view";
1439
+ }, {
1440
+ readonly type: "function";
1441
+ readonly name: "receiveCtHash";
1442
+ readonly inputs: readonly [{
1443
+ readonly name: "handle";
1444
+ readonly type: "uint256";
1445
+ readonly internalType: "uint256";
1446
+ }, {
1447
+ readonly name: "expectedSharer";
1448
+ readonly type: "address";
1449
+ readonly internalType: "address";
1450
+ }, {
1451
+ readonly name: "receiver";
1452
+ readonly type: "address";
1453
+ readonly internalType: "address";
1454
+ }];
1455
+ readonly outputs: readonly [];
1456
+ readonly stateMutability: "nonpayable";
1457
+ }, {
1458
+ readonly type: "function";
1459
+ readonly name: "setDefaultRevokerContract";
1460
+ readonly inputs: readonly [{
1461
+ readonly name: "newAddress";
1462
+ readonly type: "address";
1463
+ readonly internalType: "address";
1464
+ }];
1465
+ readonly outputs: readonly [];
1466
+ readonly stateMutability: "nonpayable";
1467
+ }, {
1468
+ readonly type: "function";
1469
+ readonly name: "setShareRegistry";
1470
+ readonly inputs: readonly [{
1471
+ readonly name: "newAddress";
1472
+ readonly type: "address";
1473
+ readonly internalType: "address";
1474
+ }];
1475
+ readonly outputs: readonly [];
1476
+ readonly stateMutability: "nonpayable";
1477
+ }, {
1478
+ readonly type: "function";
1479
+ readonly name: "shareCtHash";
1480
+ readonly inputs: readonly [{
1481
+ readonly name: "handle";
1482
+ readonly type: "uint256";
1483
+ readonly internalType: "uint256";
1484
+ }, {
1485
+ readonly name: "sharer";
1486
+ readonly type: "address";
1487
+ readonly internalType: "address";
1488
+ }, {
1489
+ readonly name: "receiver";
1490
+ readonly type: "address";
1491
+ readonly internalType: "address";
1492
+ }];
1493
+ readonly outputs: readonly [];
1494
+ readonly stateMutability: "nonpayable";
1495
+ }, {
1496
+ readonly type: "function";
1497
+ readonly name: "shareRegistry";
1498
+ readonly inputs: readonly [];
1499
+ readonly outputs: readonly [{
1500
+ readonly name: "";
1501
+ readonly type: "address";
1502
+ readonly internalType: "address";
1503
+ }];
1504
+ readonly stateMutability: "view";
1365
1505
  }, {
1366
1506
  readonly type: "event";
1367
1507
  readonly name: "AllowedForDecryption";
@@ -1372,6 +1512,21 @@ declare const MockACLArtifact: {
1372
1512
  readonly internalType: "uint256[]";
1373
1513
  }];
1374
1514
  readonly anonymous: false;
1515
+ }, {
1516
+ readonly type: "event";
1517
+ readonly name: "DefaultRevokerContractUpdated";
1518
+ readonly inputs: readonly [{
1519
+ readonly name: "oldAddress";
1520
+ readonly type: "address";
1521
+ readonly indexed: false;
1522
+ readonly internalType: "address";
1523
+ }, {
1524
+ readonly name: "newAddress";
1525
+ readonly type: "address";
1526
+ readonly indexed: false;
1527
+ readonly internalType: "address";
1528
+ }];
1529
+ readonly anonymous: false;
1375
1530
  }, {
1376
1531
  readonly type: "event";
1377
1532
  readonly name: "EIP712DomainChanged";
@@ -1397,6 +1552,21 @@ declare const MockACLArtifact: {
1397
1552
  readonly internalType: "address";
1398
1553
  }];
1399
1554
  readonly anonymous: false;
1555
+ }, {
1556
+ readonly type: "event";
1557
+ readonly name: "ShareRegistryUpdated";
1558
+ readonly inputs: readonly [{
1559
+ readonly name: "oldAddress";
1560
+ readonly type: "address";
1561
+ readonly indexed: false;
1562
+ readonly internalType: "address";
1563
+ }, {
1564
+ readonly name: "newAddress";
1565
+ readonly type: "address";
1566
+ readonly indexed: false;
1567
+ readonly internalType: "address";
1568
+ }];
1569
+ readonly anonymous: false;
1400
1570
  }, {
1401
1571
  readonly type: "error";
1402
1572
  readonly name: "AlreadyDelegated";
@@ -1413,6 +1583,18 @@ declare const MockACLArtifact: {
1413
1583
  readonly type: "error";
1414
1584
  readonly name: "InvalidShortString";
1415
1585
  readonly inputs: readonly [];
1586
+ }, {
1587
+ readonly type: "error";
1588
+ readonly name: "NotShared";
1589
+ readonly inputs: readonly [{
1590
+ readonly name: "handle";
1591
+ readonly type: "uint256";
1592
+ readonly internalType: "uint256";
1593
+ }, {
1594
+ readonly name: "receiver";
1595
+ readonly type: "address";
1596
+ readonly internalType: "address";
1597
+ }];
1416
1598
  }, {
1417
1599
  readonly type: "error";
1418
1600
  readonly name: "PermissionInvalid_Disabled";
@@ -1449,32 +1631,67 @@ declare const MockACLArtifact: {
1449
1631
  readonly type: "string";
1450
1632
  readonly internalType: "string";
1451
1633
  }];
1634
+ }, {
1635
+ readonly type: "error";
1636
+ readonly name: "UnexpectedSharer";
1637
+ readonly inputs: readonly [{
1638
+ readonly name: "expected";
1639
+ readonly type: "address";
1640
+ readonly internalType: "address";
1641
+ }, {
1642
+ readonly name: "actual";
1643
+ readonly type: "address";
1644
+ readonly internalType: "address";
1645
+ }];
1452
1646
  }];
1453
1647
  };
1454
1648
 
1455
- declare const MockZkVerifierArtifact: {
1456
- readonly contractName: "MockZkVerifier";
1457
- readonly isFixed: true;
1458
- readonly fixedAddress: "0x0000000000000000000000000000000000005001";
1649
+ declare const ACPTimestampRevokerArtifact: {
1650
+ readonly contractName: "ACPTimestampRevoker";
1651
+ readonly isFixed: false;
1459
1652
  readonly abi: readonly [{
1460
1653
  readonly type: "function";
1461
- readonly name: "exists";
1462
- readonly inputs: readonly [];
1654
+ readonly name: "disabled";
1655
+ readonly inputs: readonly [{
1656
+ readonly name: "issuer";
1657
+ readonly type: "address";
1658
+ readonly internalType: "address";
1659
+ }, {
1660
+ readonly name: "id";
1661
+ readonly type: "uint256";
1662
+ readonly internalType: "uint256";
1663
+ }];
1463
1664
  readonly outputs: readonly [{
1464
1665
  readonly name: "";
1465
1666
  readonly type: "bool";
1466
1667
  readonly internalType: "bool";
1467
1668
  }];
1468
- readonly stateMutability: "pure";
1669
+ readonly stateMutability: "view";
1469
1670
  }, {
1470
1671
  readonly type: "function";
1471
- readonly name: "insertCtHash";
1672
+ readonly name: "revokeAllAt";
1472
1673
  readonly inputs: readonly [{
1473
- readonly name: "ctHash";
1674
+ readonly name: "";
1675
+ readonly type: "address";
1676
+ readonly internalType: "address";
1677
+ }];
1678
+ readonly outputs: readonly [{
1679
+ readonly name: "";
1474
1680
  readonly type: "uint256";
1475
1681
  readonly internalType: "uint256";
1476
- }, {
1477
- readonly name: "value";
1682
+ }];
1683
+ readonly stateMutability: "view";
1684
+ }, {
1685
+ readonly type: "function";
1686
+ readonly name: "revokeAllExisting";
1687
+ readonly inputs: readonly [];
1688
+ readonly outputs: readonly [];
1689
+ readonly stateMutability: "nonpayable";
1690
+ }, {
1691
+ readonly type: "function";
1692
+ readonly name: "revokeSingle";
1693
+ readonly inputs: readonly [{
1694
+ readonly name: "id";
1478
1695
  readonly type: "uint256";
1479
1696
  readonly internalType: "uint256";
1480
1697
  }];
@@ -1482,11 +1699,369 @@ declare const MockZkVerifierArtifact: {
1482
1699
  readonly stateMutability: "nonpayable";
1483
1700
  }, {
1484
1701
  readonly type: "function";
1485
- readonly name: "insertPackedCtHashes";
1702
+ readonly name: "revokedSingle";
1486
1703
  readonly inputs: readonly [{
1487
- readonly name: "ctHashes";
1488
- readonly type: "uint256[]";
1489
- readonly internalType: "uint256[]";
1704
+ readonly name: "";
1705
+ readonly type: "address";
1706
+ readonly internalType: "address";
1707
+ }, {
1708
+ readonly name: "";
1709
+ readonly type: "uint256";
1710
+ readonly internalType: "uint256";
1711
+ }];
1712
+ readonly outputs: readonly [{
1713
+ readonly name: "";
1714
+ readonly type: "bool";
1715
+ readonly internalType: "bool";
1716
+ }];
1717
+ readonly stateMutability: "view";
1718
+ }, {
1719
+ readonly type: "event";
1720
+ readonly name: "RevokedAll";
1721
+ readonly inputs: readonly [{
1722
+ readonly name: "issuer";
1723
+ readonly type: "address";
1724
+ readonly indexed: true;
1725
+ readonly internalType: "address";
1726
+ }, {
1727
+ readonly name: "at";
1728
+ readonly type: "uint256";
1729
+ readonly indexed: false;
1730
+ readonly internalType: "uint256";
1731
+ }];
1732
+ readonly anonymous: false;
1733
+ }, {
1734
+ readonly type: "event";
1735
+ readonly name: "RevokedSingle";
1736
+ readonly inputs: readonly [{
1737
+ readonly name: "issuer";
1738
+ readonly type: "address";
1739
+ readonly indexed: true;
1740
+ readonly internalType: "address";
1741
+ }, {
1742
+ readonly name: "id";
1743
+ readonly type: "uint256";
1744
+ readonly indexed: true;
1745
+ readonly internalType: "uint256";
1746
+ }];
1747
+ readonly anonymous: false;
1748
+ }];
1749
+ };
1750
+
1751
+ declare const ACPShareRegistryArtifact: {
1752
+ readonly contractName: "ACPShareRegistry";
1753
+ readonly isFixed: false;
1754
+ readonly abi: readonly [{
1755
+ readonly type: "function";
1756
+ readonly name: "getShare";
1757
+ readonly inputs: readonly [{
1758
+ readonly name: "shareId";
1759
+ readonly type: "bytes32";
1760
+ readonly internalType: "bytes32";
1761
+ }];
1762
+ readonly outputs: readonly [{
1763
+ readonly name: "";
1764
+ readonly type: "tuple";
1765
+ readonly internalType: "struct ACP";
1766
+ readonly components: readonly [{
1767
+ readonly name: "issuer";
1768
+ readonly type: "address";
1769
+ readonly internalType: "address";
1770
+ }, {
1771
+ readonly name: "expiration";
1772
+ readonly type: "uint64";
1773
+ readonly internalType: "uint64";
1774
+ }, {
1775
+ readonly name: "recipient";
1776
+ readonly type: "address";
1777
+ readonly internalType: "address";
1778
+ }, {
1779
+ readonly name: "revokerData";
1780
+ readonly type: "uint256";
1781
+ readonly internalType: "uint256";
1782
+ }, {
1783
+ readonly name: "revokerContract";
1784
+ readonly type: "address";
1785
+ readonly internalType: "address";
1786
+ }, {
1787
+ readonly name: "scope";
1788
+ readonly type: "uint8";
1789
+ readonly internalType: "uint8";
1790
+ }, {
1791
+ readonly name: "contracts";
1792
+ readonly type: "address[]";
1793
+ readonly internalType: "address[]";
1794
+ }, {
1795
+ readonly name: "handles";
1796
+ readonly type: "bytes32[]";
1797
+ readonly internalType: "bytes32[]";
1798
+ }, {
1799
+ readonly name: "sealingKey";
1800
+ readonly type: "bytes32";
1801
+ readonly internalType: "bytes32";
1802
+ }, {
1803
+ readonly name: "issuerSignature";
1804
+ readonly type: "bytes";
1805
+ readonly internalType: "bytes";
1806
+ }, {
1807
+ readonly name: "recipientSignature";
1808
+ readonly type: "bytes";
1809
+ readonly internalType: "bytes";
1810
+ }];
1811
+ }];
1812
+ readonly stateMutability: "view";
1813
+ }, {
1814
+ readonly type: "function";
1815
+ readonly name: "isShareValid";
1816
+ readonly inputs: readonly [{
1817
+ readonly name: "shareId";
1818
+ readonly type: "bytes32";
1819
+ readonly internalType: "bytes32";
1820
+ }];
1821
+ readonly outputs: readonly [{
1822
+ readonly name: "";
1823
+ readonly type: "bool";
1824
+ readonly internalType: "bool";
1825
+ }];
1826
+ readonly stateMutability: "view";
1827
+ }, {
1828
+ readonly type: "function";
1829
+ readonly name: "removeShare";
1830
+ readonly inputs: readonly [{
1831
+ readonly name: "shareId";
1832
+ readonly type: "bytes32";
1833
+ readonly internalType: "bytes32";
1834
+ }];
1835
+ readonly outputs: readonly [];
1836
+ readonly stateMutability: "nonpayable";
1837
+ }, {
1838
+ readonly type: "function";
1839
+ readonly name: "share";
1840
+ readonly inputs: readonly [{
1841
+ readonly name: "acp";
1842
+ readonly type: "tuple";
1843
+ readonly internalType: "struct ACP";
1844
+ readonly components: readonly [{
1845
+ readonly name: "issuer";
1846
+ readonly type: "address";
1847
+ readonly internalType: "address";
1848
+ }, {
1849
+ readonly name: "expiration";
1850
+ readonly type: "uint64";
1851
+ readonly internalType: "uint64";
1852
+ }, {
1853
+ readonly name: "recipient";
1854
+ readonly type: "address";
1855
+ readonly internalType: "address";
1856
+ }, {
1857
+ readonly name: "revokerData";
1858
+ readonly type: "uint256";
1859
+ readonly internalType: "uint256";
1860
+ }, {
1861
+ readonly name: "revokerContract";
1862
+ readonly type: "address";
1863
+ readonly internalType: "address";
1864
+ }, {
1865
+ readonly name: "scope";
1866
+ readonly type: "uint8";
1867
+ readonly internalType: "uint8";
1868
+ }, {
1869
+ readonly name: "contracts";
1870
+ readonly type: "address[]";
1871
+ readonly internalType: "address[]";
1872
+ }, {
1873
+ readonly name: "handles";
1874
+ readonly type: "bytes32[]";
1875
+ readonly internalType: "bytes32[]";
1876
+ }, {
1877
+ readonly name: "sealingKey";
1878
+ readonly type: "bytes32";
1879
+ readonly internalType: "bytes32";
1880
+ }, {
1881
+ readonly name: "issuerSignature";
1882
+ readonly type: "bytes";
1883
+ readonly internalType: "bytes";
1884
+ }, {
1885
+ readonly name: "recipientSignature";
1886
+ readonly type: "bytes";
1887
+ readonly internalType: "bytes";
1888
+ }];
1889
+ }];
1890
+ readonly outputs: readonly [{
1891
+ readonly name: "shareId";
1892
+ readonly type: "bytes32";
1893
+ readonly internalType: "bytes32";
1894
+ }];
1895
+ readonly stateMutability: "nonpayable";
1896
+ }, {
1897
+ readonly type: "function";
1898
+ readonly name: "sharesFor";
1899
+ readonly inputs: readonly [{
1900
+ readonly name: "recipient";
1901
+ readonly type: "address";
1902
+ readonly internalType: "address";
1903
+ }];
1904
+ readonly outputs: readonly [{
1905
+ readonly name: "acps";
1906
+ readonly type: "tuple[]";
1907
+ readonly internalType: "struct ACP[]";
1908
+ readonly components: readonly [{
1909
+ readonly name: "issuer";
1910
+ readonly type: "address";
1911
+ readonly internalType: "address";
1912
+ }, {
1913
+ readonly name: "expiration";
1914
+ readonly type: "uint64";
1915
+ readonly internalType: "uint64";
1916
+ }, {
1917
+ readonly name: "recipient";
1918
+ readonly type: "address";
1919
+ readonly internalType: "address";
1920
+ }, {
1921
+ readonly name: "revokerData";
1922
+ readonly type: "uint256";
1923
+ readonly internalType: "uint256";
1924
+ }, {
1925
+ readonly name: "revokerContract";
1926
+ readonly type: "address";
1927
+ readonly internalType: "address";
1928
+ }, {
1929
+ readonly name: "scope";
1930
+ readonly type: "uint8";
1931
+ readonly internalType: "uint8";
1932
+ }, {
1933
+ readonly name: "contracts";
1934
+ readonly type: "address[]";
1935
+ readonly internalType: "address[]";
1936
+ }, {
1937
+ readonly name: "handles";
1938
+ readonly type: "bytes32[]";
1939
+ readonly internalType: "bytes32[]";
1940
+ }, {
1941
+ readonly name: "sealingKey";
1942
+ readonly type: "bytes32";
1943
+ readonly internalType: "bytes32";
1944
+ }, {
1945
+ readonly name: "issuerSignature";
1946
+ readonly type: "bytes";
1947
+ readonly internalType: "bytes";
1948
+ }, {
1949
+ readonly name: "recipientSignature";
1950
+ readonly type: "bytes";
1951
+ readonly internalType: "bytes";
1952
+ }];
1953
+ }];
1954
+ readonly stateMutability: "view";
1955
+ }, {
1956
+ readonly type: "event";
1957
+ readonly name: "ShareRemoved";
1958
+ readonly inputs: readonly [{
1959
+ readonly name: "recipient";
1960
+ readonly type: "address";
1961
+ readonly indexed: true;
1962
+ readonly internalType: "address";
1963
+ }, {
1964
+ readonly name: "issuer";
1965
+ readonly type: "address";
1966
+ readonly indexed: true;
1967
+ readonly internalType: "address";
1968
+ }, {
1969
+ readonly name: "shareId";
1970
+ readonly type: "bytes32";
1971
+ readonly indexed: false;
1972
+ readonly internalType: "bytes32";
1973
+ }];
1974
+ readonly anonymous: false;
1975
+ }, {
1976
+ readonly type: "event";
1977
+ readonly name: "Shared";
1978
+ readonly inputs: readonly [{
1979
+ readonly name: "recipient";
1980
+ readonly type: "address";
1981
+ readonly indexed: true;
1982
+ readonly internalType: "address";
1983
+ }, {
1984
+ readonly name: "issuer";
1985
+ readonly type: "address";
1986
+ readonly indexed: true;
1987
+ readonly internalType: "address";
1988
+ }, {
1989
+ readonly name: "shareId";
1990
+ readonly type: "bytes32";
1991
+ readonly indexed: false;
1992
+ readonly internalType: "bytes32";
1993
+ }];
1994
+ readonly anonymous: false;
1995
+ }, {
1996
+ readonly type: "error";
1997
+ readonly name: "AlreadyShared";
1998
+ readonly inputs: readonly [];
1999
+ }, {
2000
+ readonly type: "error";
2001
+ readonly name: "IssuerSignatureMissing";
2002
+ readonly inputs: readonly [];
2003
+ }, {
2004
+ readonly type: "error";
2005
+ readonly name: "NotIssuer";
2006
+ readonly inputs: readonly [];
2007
+ }, {
2008
+ readonly type: "error";
2009
+ readonly name: "NotIssuerOrRecipient";
2010
+ readonly inputs: readonly [];
2011
+ }, {
2012
+ readonly type: "error";
2013
+ readonly name: "RecipientMissing";
2014
+ readonly inputs: readonly [];
2015
+ }, {
2016
+ readonly type: "error";
2017
+ readonly name: "SealingKeyMustBeEmpty";
2018
+ readonly inputs: readonly [];
2019
+ }, {
2020
+ readonly type: "error";
2021
+ readonly name: "ShareExpired";
2022
+ readonly inputs: readonly [];
2023
+ }, {
2024
+ readonly type: "error";
2025
+ readonly name: "UnknownShare";
2026
+ readonly inputs: readonly [];
2027
+ }];
2028
+ };
2029
+
2030
+ declare const MockZkVerifierArtifact: {
2031
+ readonly contractName: "MockZkVerifier";
2032
+ readonly isFixed: true;
2033
+ readonly fixedAddress: "0x0000000000000000000000000000000000005001";
2034
+ readonly abi: readonly [{
2035
+ readonly type: "function";
2036
+ readonly name: "exists";
2037
+ readonly inputs: readonly [];
2038
+ readonly outputs: readonly [{
2039
+ readonly name: "";
2040
+ readonly type: "bool";
2041
+ readonly internalType: "bool";
2042
+ }];
2043
+ readonly stateMutability: "pure";
2044
+ }, {
2045
+ readonly type: "function";
2046
+ readonly name: "insertCtHash";
2047
+ readonly inputs: readonly [{
2048
+ readonly name: "ctHash";
2049
+ readonly type: "uint256";
2050
+ readonly internalType: "uint256";
2051
+ }, {
2052
+ readonly name: "value";
2053
+ readonly type: "uint256";
2054
+ readonly internalType: "uint256";
2055
+ }];
2056
+ readonly outputs: readonly [];
2057
+ readonly stateMutability: "nonpayable";
2058
+ }, {
2059
+ readonly type: "function";
2060
+ readonly name: "insertPackedCtHashes";
2061
+ readonly inputs: readonly [{
2062
+ readonly name: "ctHashes";
2063
+ readonly type: "uint256[]";
2064
+ readonly internalType: "uint256[]";
1490
2065
  }, {
1491
2066
  readonly name: "values";
1492
2067
  readonly type: "uint256[]";
@@ -1675,15 +2250,15 @@ declare const MockThresholdNetworkArtifact: {
1675
2250
  readonly stateMutability: "pure";
1676
2251
  }, {
1677
2252
  readonly type: "function";
1678
- readonly name: "decryptForTxWithPermit";
2253
+ readonly name: "decryptForTxWithACP";
1679
2254
  readonly inputs: readonly [{
1680
2255
  readonly name: "ctHash";
1681
2256
  readonly type: "uint256";
1682
2257
  readonly internalType: "uint256";
1683
2258
  }, {
1684
- readonly name: "permission";
2259
+ readonly name: "acp";
1685
2260
  readonly type: "tuple";
1686
- readonly internalType: "struct Permission";
2261
+ readonly internalType: "struct ACP";
1687
2262
  readonly components: readonly [{
1688
2263
  readonly name: "issuer";
1689
2264
  readonly type: "address";
@@ -1697,13 +2272,25 @@ declare const MockThresholdNetworkArtifact: {
1697
2272
  readonly type: "address";
1698
2273
  readonly internalType: "address";
1699
2274
  }, {
1700
- readonly name: "validatorId";
2275
+ readonly name: "revokerData";
1701
2276
  readonly type: "uint256";
1702
2277
  readonly internalType: "uint256";
1703
2278
  }, {
1704
- readonly name: "validatorContract";
2279
+ readonly name: "revokerContract";
1705
2280
  readonly type: "address";
1706
2281
  readonly internalType: "address";
2282
+ }, {
2283
+ readonly name: "scope";
2284
+ readonly type: "uint8";
2285
+ readonly internalType: "uint8";
2286
+ }, {
2287
+ readonly name: "contracts";
2288
+ readonly type: "address[]";
2289
+ readonly internalType: "address[]";
2290
+ }, {
2291
+ readonly name: "handles";
2292
+ readonly type: "bytes32[]";
2293
+ readonly internalType: "bytes32[]";
1707
2294
  }, {
1708
2295
  readonly name: "sealingKey";
1709
2296
  readonly type: "bytes32";
@@ -1734,7 +2321,7 @@ declare const MockThresholdNetworkArtifact: {
1734
2321
  readonly stateMutability: "view";
1735
2322
  }, {
1736
2323
  readonly type: "function";
1737
- readonly name: "decryptForTxWithoutPermit";
2324
+ readonly name: "decryptForTxWithoutACP";
1738
2325
  readonly inputs: readonly [{
1739
2326
  readonly name: "ctHash";
1740
2327
  readonly type: "uint256";
@@ -1840,9 +2427,9 @@ declare const MockThresholdNetworkArtifact: {
1840
2427
  readonly type: "uint256";
1841
2428
  readonly internalType: "uint256";
1842
2429
  }, {
1843
- readonly name: "permission";
2430
+ readonly name: "acp";
1844
2431
  readonly type: "tuple";
1845
- readonly internalType: "struct Permission";
2432
+ readonly internalType: "struct ACP";
1846
2433
  readonly components: readonly [{
1847
2434
  readonly name: "issuer";
1848
2435
  readonly type: "address";
@@ -1856,13 +2443,25 @@ declare const MockThresholdNetworkArtifact: {
1856
2443
  readonly type: "address";
1857
2444
  readonly internalType: "address";
1858
2445
  }, {
1859
- readonly name: "validatorId";
2446
+ readonly name: "revokerData";
1860
2447
  readonly type: "uint256";
1861
2448
  readonly internalType: "uint256";
1862
2449
  }, {
1863
- readonly name: "validatorContract";
2450
+ readonly name: "revokerContract";
1864
2451
  readonly type: "address";
1865
2452
  readonly internalType: "address";
2453
+ }, {
2454
+ readonly name: "scope";
2455
+ readonly type: "uint8";
2456
+ readonly internalType: "uint8";
2457
+ }, {
2458
+ readonly name: "contracts";
2459
+ readonly type: "address[]";
2460
+ readonly internalType: "address[]";
2461
+ }, {
2462
+ readonly name: "handles";
2463
+ readonly type: "bytes32[]";
2464
+ readonly internalType: "bytes32[]";
1866
2465
  }, {
1867
2466
  readonly name: "sealingKey";
1868
2467
  readonly type: "bytes32";
@@ -1903,9 +2502,9 @@ declare const MockThresholdNetworkArtifact: {
1903
2502
  readonly type: "uint256";
1904
2503
  readonly internalType: "uint256";
1905
2504
  }, {
1906
- readonly name: "permission";
2505
+ readonly name: "acp";
1907
2506
  readonly type: "tuple";
1908
- readonly internalType: "struct Permission";
2507
+ readonly internalType: "struct ACP";
1909
2508
  readonly components: readonly [{
1910
2509
  readonly name: "issuer";
1911
2510
  readonly type: "address";
@@ -1919,13 +2518,25 @@ declare const MockThresholdNetworkArtifact: {
1919
2518
  readonly type: "address";
1920
2519
  readonly internalType: "address";
1921
2520
  }, {
1922
- readonly name: "validatorId";
2521
+ readonly name: "revokerData";
1923
2522
  readonly type: "uint256";
1924
2523
  readonly internalType: "uint256";
1925
2524
  }, {
1926
- readonly name: "validatorContract";
2525
+ readonly name: "revokerContract";
1927
2526
  readonly type: "address";
1928
2527
  readonly internalType: "address";
2528
+ }, {
2529
+ readonly name: "scope";
2530
+ readonly type: "uint8";
2531
+ readonly internalType: "uint8";
2532
+ }, {
2533
+ readonly name: "contracts";
2534
+ readonly type: "address[]";
2535
+ readonly internalType: "address[]";
2536
+ }, {
2537
+ readonly name: "handles";
2538
+ readonly type: "bytes32[]";
2539
+ readonly internalType: "bytes32[]";
1929
2540
  }, {
1930
2541
  readonly name: "sealingKey";
1931
2542
  readonly type: "bytes32";
@@ -2045,19 +2656,206 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
2045
2656
  staticCallResult(...args: ContractMethodArgs<A, 'view'>): Promise<R>;
2046
2657
  }
2047
2658
 
2048
- type PermissionStruct$2 = {
2659
+ type ACPStruct$3 = {
2660
+ issuer: AddressLike;
2661
+ expiration: BigNumberish;
2662
+ recipient: AddressLike;
2663
+ revokerData: BigNumberish;
2664
+ revokerContract: AddressLike;
2665
+ scope: BigNumberish;
2666
+ contracts: AddressLike[];
2667
+ handles: BytesLike[];
2668
+ sealingKey: BytesLike;
2669
+ issuerSignature: BytesLike;
2670
+ recipientSignature: BytesLike;
2671
+ };
2672
+ type ACPStructOutput = [
2673
+ issuer: string,
2674
+ expiration: bigint,
2675
+ recipient: string,
2676
+ revokerData: bigint,
2677
+ revokerContract: string,
2678
+ scope: bigint,
2679
+ contracts: string[],
2680
+ handles: string[],
2681
+ sealingKey: string,
2682
+ issuerSignature: string,
2683
+ recipientSignature: string
2684
+ ] & {
2685
+ issuer: string;
2686
+ expiration: bigint;
2687
+ recipient: string;
2688
+ revokerData: bigint;
2689
+ revokerContract: string;
2690
+ scope: bigint;
2691
+ contracts: string[];
2692
+ handles: string[];
2693
+ sealingKey: string;
2694
+ issuerSignature: string;
2695
+ recipientSignature: string;
2696
+ };
2697
+ interface ACPShareRegistryInterface extends Interface {
2698
+ getFunction(nameOrSignature: 'getShare' | 'isShareValid' | 'removeShare' | 'share' | 'sharesFor'): FunctionFragment;
2699
+ getEvent(nameOrSignatureOrTopic: 'ShareRemoved' | 'Shared'): EventFragment;
2700
+ encodeFunctionData(functionFragment: 'getShare', values: [BytesLike]): string;
2701
+ encodeFunctionData(functionFragment: 'isShareValid', values: [BytesLike]): string;
2702
+ encodeFunctionData(functionFragment: 'removeShare', values: [BytesLike]): string;
2703
+ encodeFunctionData(functionFragment: 'share', values: [ACPStruct$3]): string;
2704
+ encodeFunctionData(functionFragment: 'sharesFor', values: [AddressLike]): string;
2705
+ decodeFunctionResult(functionFragment: 'getShare', data: BytesLike): Result;
2706
+ decodeFunctionResult(functionFragment: 'isShareValid', data: BytesLike): Result;
2707
+ decodeFunctionResult(functionFragment: 'removeShare', data: BytesLike): Result;
2708
+ decodeFunctionResult(functionFragment: 'share', data: BytesLike): Result;
2709
+ decodeFunctionResult(functionFragment: 'sharesFor', data: BytesLike): Result;
2710
+ }
2711
+ declare namespace ShareRemovedEvent {
2712
+ type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
2713
+ type OutputTuple = [recipient: string, issuer: string, shareId: string];
2714
+ interface OutputObject {
2715
+ recipient: string;
2716
+ issuer: string;
2717
+ shareId: string;
2718
+ }
2719
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2720
+ type Filter = TypedDeferredTopicFilter<Event>;
2721
+ type Log = TypedEventLog<Event>;
2722
+ type LogDescription = TypedLogDescription<Event>;
2723
+ }
2724
+ declare namespace SharedEvent {
2725
+ type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
2726
+ type OutputTuple = [recipient: string, issuer: string, shareId: string];
2727
+ interface OutputObject {
2728
+ recipient: string;
2729
+ issuer: string;
2730
+ shareId: string;
2731
+ }
2732
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2733
+ type Filter = TypedDeferredTopicFilter<Event>;
2734
+ type Log = TypedEventLog<Event>;
2735
+ type LogDescription = TypedLogDescription<Event>;
2736
+ }
2737
+ interface ACPShareRegistry extends BaseContract {
2738
+ connect(runner?: ContractRunner | null): ACPShareRegistry;
2739
+ waitForDeployment(): Promise<this>;
2740
+ interface: ACPShareRegistryInterface;
2741
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
2742
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
2743
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
2744
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
2745
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
2746
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
2747
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
2748
+ listeners(eventName?: string): Promise<Array<Listener>>;
2749
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
2750
+ getShare: TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
2751
+ isShareValid: TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
2752
+ removeShare: TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
2753
+ share: TypedContractMethod<[acp: ACPStruct$3], [string], 'nonpayable'>;
2754
+ sharesFor: TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
2755
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2756
+ getFunction(nameOrSignature: 'getShare'): TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
2757
+ getFunction(nameOrSignature: 'isShareValid'): TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
2758
+ getFunction(nameOrSignature: 'removeShare'): TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
2759
+ getFunction(nameOrSignature: 'share'): TypedContractMethod<[acp: ACPStruct$3], [string], 'nonpayable'>;
2760
+ getFunction(nameOrSignature: 'sharesFor'): TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
2761
+ getEvent(key: 'ShareRemoved'): TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
2762
+ getEvent(key: 'Shared'): TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
2763
+ filters: {
2764
+ 'ShareRemoved(address,address,bytes32)': TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
2765
+ ShareRemoved: TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
2766
+ 'Shared(address,address,bytes32)': TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
2767
+ Shared: TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
2768
+ };
2769
+ }
2770
+
2771
+ interface ACPTimestampRevokerInterface extends Interface {
2772
+ getFunction(nameOrSignature: 'disabled' | 'revokeAllAt' | 'revokeAllExisting' | 'revokeSingle' | 'revokedSingle'): FunctionFragment;
2773
+ getEvent(nameOrSignatureOrTopic: 'RevokedAll' | 'RevokedSingle'): EventFragment;
2774
+ encodeFunctionData(functionFragment: 'disabled', values: [AddressLike, BigNumberish]): string;
2775
+ encodeFunctionData(functionFragment: 'revokeAllAt', values: [AddressLike]): string;
2776
+ encodeFunctionData(functionFragment: 'revokeAllExisting', values?: undefined): string;
2777
+ encodeFunctionData(functionFragment: 'revokeSingle', values: [BigNumberish]): string;
2778
+ encodeFunctionData(functionFragment: 'revokedSingle', values: [AddressLike, BigNumberish]): string;
2779
+ decodeFunctionResult(functionFragment: 'disabled', data: BytesLike): Result;
2780
+ decodeFunctionResult(functionFragment: 'revokeAllAt', data: BytesLike): Result;
2781
+ decodeFunctionResult(functionFragment: 'revokeAllExisting', data: BytesLike): Result;
2782
+ decodeFunctionResult(functionFragment: 'revokeSingle', data: BytesLike): Result;
2783
+ decodeFunctionResult(functionFragment: 'revokedSingle', data: BytesLike): Result;
2784
+ }
2785
+ declare namespace RevokedAllEvent {
2786
+ type InputTuple = [issuer: AddressLike, at: BigNumberish];
2787
+ type OutputTuple = [issuer: string, at: bigint];
2788
+ interface OutputObject {
2789
+ issuer: string;
2790
+ at: bigint;
2791
+ }
2792
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2793
+ type Filter = TypedDeferredTopicFilter<Event>;
2794
+ type Log = TypedEventLog<Event>;
2795
+ type LogDescription = TypedLogDescription<Event>;
2796
+ }
2797
+ declare namespace RevokedSingleEvent {
2798
+ type InputTuple = [issuer: AddressLike, id: BigNumberish];
2799
+ type OutputTuple = [issuer: string, id: bigint];
2800
+ interface OutputObject {
2801
+ issuer: string;
2802
+ id: bigint;
2803
+ }
2804
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2805
+ type Filter = TypedDeferredTopicFilter<Event>;
2806
+ type Log = TypedEventLog<Event>;
2807
+ type LogDescription = TypedLogDescription<Event>;
2808
+ }
2809
+ interface ACPTimestampRevoker extends BaseContract {
2810
+ connect(runner?: ContractRunner | null): ACPTimestampRevoker;
2811
+ waitForDeployment(): Promise<this>;
2812
+ interface: ACPTimestampRevokerInterface;
2813
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
2814
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
2815
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
2816
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
2817
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
2818
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
2819
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
2820
+ listeners(eventName?: string): Promise<Array<Listener>>;
2821
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
2822
+ disabled: TypedContractMethod<[issuer: AddressLike, id: BigNumberish], [boolean], 'view'>;
2823
+ revokeAllAt: TypedContractMethod<[arg0: AddressLike], [bigint], 'view'>;
2824
+ revokeAllExisting: TypedContractMethod<[], [void], 'nonpayable'>;
2825
+ revokeSingle: TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
2826
+ revokedSingle: TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [boolean], 'view'>;
2827
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2828
+ getFunction(nameOrSignature: 'disabled'): TypedContractMethod<[issuer: AddressLike, id: BigNumberish], [boolean], 'view'>;
2829
+ getFunction(nameOrSignature: 'revokeAllAt'): TypedContractMethod<[arg0: AddressLike], [bigint], 'view'>;
2830
+ getFunction(nameOrSignature: 'revokeAllExisting'): TypedContractMethod<[], [void], 'nonpayable'>;
2831
+ getFunction(nameOrSignature: 'revokeSingle'): TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
2832
+ getFunction(nameOrSignature: 'revokedSingle'): TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [boolean], 'view'>;
2833
+ getEvent(key: 'RevokedAll'): TypedContractEvent<RevokedAllEvent.InputTuple, RevokedAllEvent.OutputTuple, RevokedAllEvent.OutputObject>;
2834
+ getEvent(key: 'RevokedSingle'): TypedContractEvent<RevokedSingleEvent.InputTuple, RevokedSingleEvent.OutputTuple, RevokedSingleEvent.OutputObject>;
2835
+ filters: {
2836
+ 'RevokedAll(address,uint256)': TypedContractEvent<RevokedAllEvent.InputTuple, RevokedAllEvent.OutputTuple, RevokedAllEvent.OutputObject>;
2837
+ RevokedAll: TypedContractEvent<RevokedAllEvent.InputTuple, RevokedAllEvent.OutputTuple, RevokedAllEvent.OutputObject>;
2838
+ 'RevokedSingle(address,uint256)': TypedContractEvent<RevokedSingleEvent.InputTuple, RevokedSingleEvent.OutputTuple, RevokedSingleEvent.OutputObject>;
2839
+ RevokedSingle: TypedContractEvent<RevokedSingleEvent.InputTuple, RevokedSingleEvent.OutputTuple, RevokedSingleEvent.OutputObject>;
2840
+ };
2841
+ }
2842
+
2843
+ type ACPStruct$2 = {
2049
2844
  issuer: AddressLike;
2050
2845
  expiration: BigNumberish;
2051
2846
  recipient: AddressLike;
2052
- validatorId: BigNumberish;
2053
- validatorContract: AddressLike;
2847
+ revokerData: BigNumberish;
2848
+ revokerContract: AddressLike;
2849
+ scope: BigNumberish;
2850
+ contracts: AddressLike[];
2851
+ handles: BytesLike[];
2054
2852
  sealingKey: BytesLike;
2055
2853
  issuerSignature: BytesLike;
2056
2854
  recipientSignature: BytesLike;
2057
2855
  };
2058
2856
  interface MockACLInterface extends Interface {
2059
- getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'allowedOnBehalf' | 'allowedTransient' | 'checkPermitValidity' | 'cleanTransientStorage' | 'delegateAccount' | 'eip712Domain' | 'exists' | 'getTaskManagerAddress' | 'getVersion' | 'globalAllowed' | 'hashTypedDataV4' | 'isAllowed' | 'isAllowedForDecryption' | 'isAllowedWithPermission' | 'persistAllowed'): FunctionFragment;
2060
- getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'EIP712DomainChanged' | 'NewDelegation'): EventFragment;
2857
+ getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'allowedOnBehalf' | 'allowedTransient' | 'checkPermissionValidity' | 'cleanTransientStorage' | 'defaultRevokerContract' | 'delegateAccount' | 'eip712Domain' | 'exists' | 'getTaskManagerAddress' | 'getVersion' | 'globalAllowed' | 'hashTypedDataV4' | 'isAllowed' | 'isAllowedForDecryption' | 'isAllowedWithPermission' | 'persistAllowed' | 'receiveCtHash' | 'setDefaultRevokerContract' | 'setShareRegistry' | 'shareCtHash' | 'shareRegistry'): FunctionFragment;
2858
+ getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'NewDelegation' | 'ShareRegistryUpdated'): EventFragment;
2061
2859
  encodeFunctionData(functionFragment: 'TASK_MANAGER_ADDRESS_', values?: undefined): string;
2062
2860
  encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
2063
2861
  encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
@@ -2065,8 +2863,9 @@ interface MockACLInterface extends Interface {
2065
2863
  encodeFunctionData(functionFragment: 'allowTransient', values: [BigNumberish, AddressLike, AddressLike]): string;
2066
2864
  encodeFunctionData(functionFragment: 'allowedOnBehalf', values: [AddressLike, BigNumberish, AddressLike, AddressLike]): string;
2067
2865
  encodeFunctionData(functionFragment: 'allowedTransient', values: [BigNumberish, AddressLike]): string;
2068
- encodeFunctionData(functionFragment: 'checkPermitValidity', values: [PermissionStruct$2]): string;
2866
+ encodeFunctionData(functionFragment: 'checkPermissionValidity', values: [ACPStruct$2]): string;
2069
2867
  encodeFunctionData(functionFragment: 'cleanTransientStorage', values?: undefined): string;
2868
+ encodeFunctionData(functionFragment: 'defaultRevokerContract', values?: undefined): string;
2070
2869
  encodeFunctionData(functionFragment: 'delegateAccount', values: [AddressLike, AddressLike]): string;
2071
2870
  encodeFunctionData(functionFragment: 'eip712Domain', values?: undefined): string;
2072
2871
  encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
@@ -2076,8 +2875,13 @@ interface MockACLInterface extends Interface {
2076
2875
  encodeFunctionData(functionFragment: 'hashTypedDataV4', values: [BytesLike]): string;
2077
2876
  encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
2078
2877
  encodeFunctionData(functionFragment: 'isAllowedForDecryption', values: [BigNumberish]): string;
2079
- encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct$2, BigNumberish]): string;
2878
+ encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [ACPStruct$2, BigNumberish]): string;
2080
2879
  encodeFunctionData(functionFragment: 'persistAllowed', values: [BigNumberish, AddressLike]): string;
2880
+ encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
2881
+ encodeFunctionData(functionFragment: 'setDefaultRevokerContract', values: [AddressLike]): string;
2882
+ encodeFunctionData(functionFragment: 'setShareRegistry', values: [AddressLike]): string;
2883
+ encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
2884
+ encodeFunctionData(functionFragment: 'shareRegistry', values?: undefined): string;
2081
2885
  decodeFunctionResult(functionFragment: 'TASK_MANAGER_ADDRESS_', data: BytesLike): Result;
2082
2886
  decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
2083
2887
  decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
@@ -2085,8 +2889,9 @@ interface MockACLInterface extends Interface {
2085
2889
  decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
2086
2890
  decodeFunctionResult(functionFragment: 'allowedOnBehalf', data: BytesLike): Result;
2087
2891
  decodeFunctionResult(functionFragment: 'allowedTransient', data: BytesLike): Result;
2088
- decodeFunctionResult(functionFragment: 'checkPermitValidity', data: BytesLike): Result;
2892
+ decodeFunctionResult(functionFragment: 'checkPermissionValidity', data: BytesLike): Result;
2089
2893
  decodeFunctionResult(functionFragment: 'cleanTransientStorage', data: BytesLike): Result;
2894
+ decodeFunctionResult(functionFragment: 'defaultRevokerContract', data: BytesLike): Result;
2090
2895
  decodeFunctionResult(functionFragment: 'delegateAccount', data: BytesLike): Result;
2091
2896
  decodeFunctionResult(functionFragment: 'eip712Domain', data: BytesLike): Result;
2092
2897
  decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
@@ -2098,6 +2903,11 @@ interface MockACLInterface extends Interface {
2098
2903
  decodeFunctionResult(functionFragment: 'isAllowedForDecryption', data: BytesLike): Result;
2099
2904
  decodeFunctionResult(functionFragment: 'isAllowedWithPermission', data: BytesLike): Result;
2100
2905
  decodeFunctionResult(functionFragment: 'persistAllowed', data: BytesLike): Result;
2906
+ decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
2907
+ decodeFunctionResult(functionFragment: 'setDefaultRevokerContract', data: BytesLike): Result;
2908
+ decodeFunctionResult(functionFragment: 'setShareRegistry', data: BytesLike): Result;
2909
+ decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
2910
+ decodeFunctionResult(functionFragment: 'shareRegistry', data: BytesLike): Result;
2101
2911
  }
2102
2912
  declare namespace AllowedForDecryptionEvent {
2103
2913
  type InputTuple = [handlesList: BigNumberish[]];
@@ -2110,6 +2920,18 @@ declare namespace AllowedForDecryptionEvent {
2110
2920
  type Log = TypedEventLog<Event>;
2111
2921
  type LogDescription = TypedLogDescription<Event>;
2112
2922
  }
2923
+ declare namespace DefaultRevokerContractUpdatedEvent {
2924
+ type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
2925
+ type OutputTuple = [oldAddress: string, newAddress: string];
2926
+ interface OutputObject {
2927
+ oldAddress: string;
2928
+ newAddress: string;
2929
+ }
2930
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2931
+ type Filter = TypedDeferredTopicFilter<Event>;
2932
+ type Log = TypedEventLog<Event>;
2933
+ type LogDescription = TypedLogDescription<Event>;
2934
+ }
2113
2935
  declare namespace EIP712DomainChangedEvent {
2114
2936
  type InputTuple = [];
2115
2937
  type OutputTuple = [];
@@ -2133,6 +2955,18 @@ declare namespace NewDelegationEvent {
2133
2955
  type Log = TypedEventLog<Event>;
2134
2956
  type LogDescription = TypedLogDescription<Event>;
2135
2957
  }
2958
+ declare namespace ShareRegistryUpdatedEvent {
2959
+ type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
2960
+ type OutputTuple = [oldAddress: string, newAddress: string];
2961
+ interface OutputObject {
2962
+ oldAddress: string;
2963
+ newAddress: string;
2964
+ }
2965
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2966
+ type Filter = TypedDeferredTopicFilter<Event>;
2967
+ type Log = TypedEventLog<Event>;
2968
+ type LogDescription = TypedLogDescription<Event>;
2969
+ }
2136
2970
  interface MockACL extends BaseContract {
2137
2971
  connect(runner?: ContractRunner | null): MockACL;
2138
2972
  waitForDeployment(): Promise<this>;
@@ -2172,8 +3006,9 @@ interface MockACL extends BaseContract {
2172
3006
  boolean
2173
3007
  ], 'view'>;
2174
3008
  allowedTransient: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
2175
- checkPermitValidity: TypedContractMethod<[permission: PermissionStruct$2], [boolean], 'view'>;
3009
+ checkPermissionValidity: TypedContractMethod<[acp: ACPStruct$2], [boolean], 'view'>;
2176
3010
  cleanTransientStorage: TypedContractMethod<[], [void], 'nonpayable'>;
3011
+ defaultRevokerContract: TypedContractMethod<[], [string], 'view'>;
2177
3012
  delegateAccount: TypedContractMethod<[delegatee: AddressLike, delegateeContract: AddressLike], [void], 'nonpayable'>;
2178
3013
  eip712Domain: TypedContractMethod<[
2179
3014
  ], [
@@ -2202,8 +3037,25 @@ interface MockACL extends BaseContract {
2202
3037
  hashTypedDataV4: TypedContractMethod<[structHash: BytesLike], [string], 'view'>;
2203
3038
  isAllowed: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
2204
3039
  isAllowedForDecryption: TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
2205
- isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct$2, handle: BigNumberish], [boolean], 'view'>;
3040
+ isAllowedWithPermission: TypedContractMethod<[acp: ACPStruct$2, handle: BigNumberish], [boolean], 'view'>;
2206
3041
  persistAllowed: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
3042
+ receiveCtHash: TypedContractMethod<[
3043
+ handle: BigNumberish,
3044
+ expectedSharer: AddressLike,
3045
+ receiver: AddressLike
3046
+ ], [
3047
+ void
3048
+ ], 'nonpayable'>;
3049
+ setDefaultRevokerContract: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3050
+ setShareRegistry: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3051
+ shareCtHash: TypedContractMethod<[
3052
+ handle: BigNumberish,
3053
+ sharer: AddressLike,
3054
+ receiver: AddressLike
3055
+ ], [
3056
+ void
3057
+ ], 'nonpayable'>;
3058
+ shareRegistry: TypedContractMethod<[], [string], 'view'>;
2207
3059
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2208
3060
  getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_'): TypedContractMethod<[], [string], 'view'>;
2209
3061
  getFunction(nameOrSignature: 'allow'): TypedContractMethod<[handle: BigNumberish, account: AddressLike, requester: AddressLike], [void], 'nonpayable'>;
@@ -2219,8 +3071,9 @@ interface MockACL extends BaseContract {
2219
3071
  boolean
2220
3072
  ], 'view'>;
2221
3073
  getFunction(nameOrSignature: 'allowedTransient'): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
2222
- getFunction(nameOrSignature: 'checkPermitValidity'): TypedContractMethod<[permission: PermissionStruct$2], [boolean], 'view'>;
3074
+ getFunction(nameOrSignature: 'checkPermissionValidity'): TypedContractMethod<[acp: ACPStruct$2], [boolean], 'view'>;
2223
3075
  getFunction(nameOrSignature: 'cleanTransientStorage'): TypedContractMethod<[], [void], 'nonpayable'>;
3076
+ getFunction(nameOrSignature: 'defaultRevokerContract'): TypedContractMethod<[], [string], 'view'>;
2224
3077
  getFunction(nameOrSignature: 'delegateAccount'): TypedContractMethod<[delegatee: AddressLike, delegateeContract: AddressLike], [void], 'nonpayable'>;
2225
3078
  getFunction(nameOrSignature: 'eip712Domain'): TypedContractMethod<[
2226
3079
  ], [
@@ -2249,39 +3102,58 @@ interface MockACL extends BaseContract {
2249
3102
  getFunction(nameOrSignature: 'hashTypedDataV4'): TypedContractMethod<[structHash: BytesLike], [string], 'view'>;
2250
3103
  getFunction(nameOrSignature: 'isAllowed'): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
2251
3104
  getFunction(nameOrSignature: 'isAllowedForDecryption'): TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
2252
- getFunction(nameOrSignature: 'isAllowedWithPermission'): TypedContractMethod<[permission: PermissionStruct$2, handle: BigNumberish], [boolean], 'view'>;
3105
+ getFunction(nameOrSignature: 'isAllowedWithPermission'): TypedContractMethod<[acp: ACPStruct$2, handle: BigNumberish], [boolean], 'view'>;
2253
3106
  getFunction(nameOrSignature: 'persistAllowed'): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
3107
+ getFunction(nameOrSignature: 'receiveCtHash'): TypedContractMethod<[
3108
+ handle: BigNumberish,
3109
+ expectedSharer: AddressLike,
3110
+ receiver: AddressLike
3111
+ ], [
3112
+ void
3113
+ ], 'nonpayable'>;
3114
+ getFunction(nameOrSignature: 'setDefaultRevokerContract'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3115
+ getFunction(nameOrSignature: 'setShareRegistry'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3116
+ getFunction(nameOrSignature: 'shareCtHash'): TypedContractMethod<[handle: BigNumberish, sharer: AddressLike, receiver: AddressLike], [void], 'nonpayable'>;
3117
+ getFunction(nameOrSignature: 'shareRegistry'): TypedContractMethod<[], [string], 'view'>;
2254
3118
  getEvent(key: 'AllowedForDecryption'): TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
3119
+ getEvent(key: 'DefaultRevokerContractUpdated'): TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
2255
3120
  getEvent(key: 'EIP712DomainChanged'): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
2256
3121
  getEvent(key: 'NewDelegation'): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3122
+ getEvent(key: 'ShareRegistryUpdated'): TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
2257
3123
  filters: {
2258
3124
  'AllowedForDecryption(uint256[])': TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
2259
3125
  AllowedForDecryption: TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
3126
+ 'DefaultRevokerContractUpdated(address,address)': TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
3127
+ DefaultRevokerContractUpdated: TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
2260
3128
  'EIP712DomainChanged()': TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
2261
3129
  EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
2262
3130
  'NewDelegation(address,address,address)': TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
2263
3131
  NewDelegation: TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3132
+ 'ShareRegistryUpdated(address,address)': TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
3133
+ ShareRegistryUpdated: TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
2264
3134
  };
2265
3135
  }
2266
3136
 
2267
- type PermissionStruct$1 = {
3137
+ type UnsignedEncryptedInputStruct = {
3138
+ ctHash: BigNumberish;
3139
+ securityZone: BigNumberish;
3140
+ utype: BigNumberish;
3141
+ };
3142
+ type ACPStruct$1 = {
2268
3143
  issuer: AddressLike;
2269
3144
  expiration: BigNumberish;
2270
3145
  recipient: AddressLike;
2271
- validatorId: BigNumberish;
2272
- validatorContract: AddressLike;
3146
+ revokerData: BigNumberish;
3147
+ revokerContract: AddressLike;
3148
+ scope: BigNumberish;
3149
+ contracts: AddressLike[];
3150
+ handles: BytesLike[];
2273
3151
  sealingKey: BytesLike;
2274
3152
  issuerSignature: BytesLike;
2275
3153
  recipientSignature: BytesLike;
2276
3154
  };
2277
- type EncryptedInputStruct = {
2278
- ctHash: BigNumberish;
2279
- securityZone: BigNumberish;
2280
- utype: BigNumberish;
2281
- signature: BytesLike;
2282
- };
2283
3155
  interface MockTaskManagerInterface extends Interface {
2284
- getFunction(nameOrSignature: 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultBatch' | 'verifyDecryptResultBatchSafe' | 'verifyDecryptResultSafe' | 'verifyInput'): FunctionFragment;
3156
+ getFunction(nameOrSignature: 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'batchVerifyInputs' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'receiveCtHash' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'shareCtHash' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultBatch' | 'verifyDecryptResultBatchSafe' | 'verifyDecryptResultSafe'): FunctionFragment;
2285
3157
  getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
2286
3158
  encodeFunctionData(functionFragment: 'MOCK_logAllow', values: [string, BigNumberish, AddressLike]): string;
2287
3159
  encodeFunctionData(functionFragment: 'MOCK_setInEuintKey', values: [BigNumberish, BigNumberish]): string;
@@ -2291,6 +3163,7 @@ interface MockTaskManagerInterface extends Interface {
2291
3163
  encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish]): string;
2292
3164
  encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish]): string;
2293
3165
  encodeFunctionData(functionFragment: 'allowTransient', values: [BigNumberish, AddressLike]): string;
3166
+ encodeFunctionData(functionFragment: 'batchVerifyInputs', values: [UnsignedEncryptedInputStruct[], AddressLike, BytesLike]): string;
2294
3167
  encodeFunctionData(functionFragment: 'createDecryptTask', values: [BigNumberish, AddressLike]): string;
2295
3168
  encodeFunctionData(functionFragment: 'createRandomTask', values: [BigNumberish, BigNumberish, BigNumberish]): string;
2296
3169
  encodeFunctionData(functionFragment: 'createTask', values: [BigNumberish, BigNumberish, BigNumberish[], BigNumberish[]]): string;
@@ -2303,13 +3176,14 @@ interface MockTaskManagerInterface extends Interface {
2303
3176
  encodeFunctionData(functionFragment: 'inMockStorage', values: [BigNumberish]): string;
2304
3177
  encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
2305
3178
  encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
2306
- encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct$1, BigNumberish]): string;
3179
+ encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [ACPStruct$1, BigNumberish]): string;
2307
3180
  encodeFunctionData(functionFragment: 'isInitialized', values?: undefined): string;
2308
3181
  encodeFunctionData(functionFragment: 'isPubliclyAllowed', values: [BigNumberish]): string;
2309
3182
  encodeFunctionData(functionFragment: 'logOps', values?: undefined): string;
2310
3183
  encodeFunctionData(functionFragment: 'mockStorage', values: [BigNumberish]): string;
2311
3184
  encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
2312
3185
  encodeFunctionData(functionFragment: 'publishDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
3186
+ encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike]): string;
2313
3187
  encodeFunctionData(functionFragment: 'removeFirstLetter', values: [string]): string;
2314
3188
  encodeFunctionData(functionFragment: 'setACLContract', values: [AddressLike]): string;
2315
3189
  encodeFunctionData(functionFragment: 'setAggregator', values: [AddressLike]): string;
@@ -2319,12 +3193,12 @@ interface MockTaskManagerInterface extends Interface {
2319
3193
  encodeFunctionData(functionFragment: 'setSecurityZoneMin', values: [BigNumberish]): string;
2320
3194
  encodeFunctionData(functionFragment: 'setSecurityZones', values: [BigNumberish, BigNumberish]): string;
2321
3195
  encodeFunctionData(functionFragment: 'setVerifierSigner', values: [AddressLike]): string;
3196
+ encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike]): string;
2322
3197
  encodeFunctionData(functionFragment: 'sliceString', values: [string, BigNumberish, BigNumberish]): string;
2323
3198
  encodeFunctionData(functionFragment: 'verifyDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
2324
3199
  encodeFunctionData(functionFragment: 'verifyDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
2325
3200
  encodeFunctionData(functionFragment: 'verifyDecryptResultBatchSafe', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
2326
3201
  encodeFunctionData(functionFragment: 'verifyDecryptResultSafe', values: [BigNumberish, BigNumberish, BytesLike]): string;
2327
- encodeFunctionData(functionFragment: 'verifyInput', values: [EncryptedInputStruct, AddressLike]): string;
2328
3202
  decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
2329
3203
  decodeFunctionResult(functionFragment: 'MOCK_setInEuintKey', data: BytesLike): Result;
2330
3204
  decodeFunctionResult(functionFragment: 'acl', data: BytesLike): Result;
@@ -2333,6 +3207,7 @@ interface MockTaskManagerInterface extends Interface {
2333
3207
  decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
2334
3208
  decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
2335
3209
  decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
3210
+ decodeFunctionResult(functionFragment: 'batchVerifyInputs', data: BytesLike): Result;
2336
3211
  decodeFunctionResult(functionFragment: 'createDecryptTask', data: BytesLike): Result;
2337
3212
  decodeFunctionResult(functionFragment: 'createRandomTask', data: BytesLike): Result;
2338
3213
  decodeFunctionResult(functionFragment: 'createTask', data: BytesLike): Result;
@@ -2352,6 +3227,7 @@ interface MockTaskManagerInterface extends Interface {
2352
3227
  decodeFunctionResult(functionFragment: 'mockStorage', data: BytesLike): Result;
2353
3228
  decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
2354
3229
  decodeFunctionResult(functionFragment: 'publishDecryptResultBatch', data: BytesLike): Result;
3230
+ decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
2355
3231
  decodeFunctionResult(functionFragment: 'removeFirstLetter', data: BytesLike): Result;
2356
3232
  decodeFunctionResult(functionFragment: 'setACLContract', data: BytesLike): Result;
2357
3233
  decodeFunctionResult(functionFragment: 'setAggregator', data: BytesLike): Result;
@@ -2361,12 +3237,12 @@ interface MockTaskManagerInterface extends Interface {
2361
3237
  decodeFunctionResult(functionFragment: 'setSecurityZoneMin', data: BytesLike): Result;
2362
3238
  decodeFunctionResult(functionFragment: 'setSecurityZones', data: BytesLike): Result;
2363
3239
  decodeFunctionResult(functionFragment: 'setVerifierSigner', data: BytesLike): Result;
3240
+ decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
2364
3241
  decodeFunctionResult(functionFragment: 'sliceString', data: BytesLike): Result;
2365
3242
  decodeFunctionResult(functionFragment: 'verifyDecryptResult', data: BytesLike): Result;
2366
3243
  decodeFunctionResult(functionFragment: 'verifyDecryptResultBatch', data: BytesLike): Result;
2367
3244
  decodeFunctionResult(functionFragment: 'verifyDecryptResultBatchSafe', data: BytesLike): Result;
2368
3245
  decodeFunctionResult(functionFragment: 'verifyDecryptResultSafe', data: BytesLike): Result;
2369
- decodeFunctionResult(functionFragment: 'verifyInput', data: BytesLike): Result;
2370
3246
  }
2371
3247
  declare namespace DecryptionResultEvent {
2372
3248
  type InputTuple = [ctHash: BigNumberish, result: BigNumberish, requestor: AddressLike];
@@ -2436,6 +3312,13 @@ interface MockTaskManager extends BaseContract {
2436
3312
  allowForDecryption: TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
2437
3313
  allowGlobal: TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
2438
3314
  allowTransient: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
3315
+ batchVerifyInputs: TypedContractMethod<[
3316
+ inputs: UnsignedEncryptedInputStruct[],
3317
+ sender: AddressLike,
3318
+ signature: BytesLike
3319
+ ], [
3320
+ bigint[]
3321
+ ], 'nonpayable'>;
2439
3322
  createDecryptTask: TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
2440
3323
  createRandomTask: TypedContractMethod<[
2441
3324
  returnType: BigNumberish,
@@ -2480,7 +3363,7 @@ interface MockTaskManager extends BaseContract {
2480
3363
  inMockStorage: TypedContractMethod<[arg0: BigNumberish], [boolean], 'view'>;
2481
3364
  initialize: TypedContractMethod<[initialOwner: AddressLike], [void], 'nonpayable'>;
2482
3365
  isAllowed: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
2483
- isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct$1, handle: BigNumberish], [boolean], 'view'>;
3366
+ isAllowedWithPermission: TypedContractMethod<[acp: ACPStruct$1, handle: BigNumberish], [boolean], 'view'>;
2484
3367
  isInitialized: TypedContractMethod<[], [boolean], 'view'>;
2485
3368
  isPubliclyAllowed: TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
2486
3369
  logOps: TypedContractMethod<[], [boolean], 'view'>;
@@ -2499,6 +3382,7 @@ interface MockTaskManager extends BaseContract {
2499
3382
  ], [
2500
3383
  void
2501
3384
  ], 'nonpayable'>;
3385
+ receiveCtHash: TypedContractMethod<[ctHash: BigNumberish, expectedSharer: AddressLike], [void], 'nonpayable'>;
2502
3386
  removeFirstLetter: TypedContractMethod<[str: string], [string], 'view'>;
2503
3387
  setACLContract: TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
2504
3388
  setAggregator: TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
@@ -2508,6 +3392,7 @@ interface MockTaskManager extends BaseContract {
2508
3392
  setSecurityZoneMin: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
2509
3393
  setSecurityZones: TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
2510
3394
  setVerifierSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
3395
+ shareCtHash: TypedContractMethod<[ctHash: BigNumberish, receiver: AddressLike], [void], 'nonpayable'>;
2511
3396
  sliceString: TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
2512
3397
  verifyDecryptResult: TypedContractMethod<[
2513
3398
  ctHash: BigNumberish,
@@ -2537,7 +3422,6 @@ interface MockTaskManager extends BaseContract {
2537
3422
  ], [
2538
3423
  boolean
2539
3424
  ], 'view'>;
2540
- verifyInput: TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
2541
3425
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2542
3426
  getFunction(nameOrSignature: 'MOCK_logAllow'): TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
2543
3427
  getFunction(nameOrSignature: 'MOCK_setInEuintKey'): TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
@@ -2547,6 +3431,13 @@ interface MockTaskManager extends BaseContract {
2547
3431
  getFunction(nameOrSignature: 'allowForDecryption'): TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
2548
3432
  getFunction(nameOrSignature: 'allowGlobal'): TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
2549
3433
  getFunction(nameOrSignature: 'allowTransient'): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
3434
+ getFunction(nameOrSignature: 'batchVerifyInputs'): TypedContractMethod<[
3435
+ inputs: UnsignedEncryptedInputStruct[],
3436
+ sender: AddressLike,
3437
+ signature: BytesLike
3438
+ ], [
3439
+ bigint[]
3440
+ ], 'nonpayable'>;
2550
3441
  getFunction(nameOrSignature: 'createDecryptTask'): TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
2551
3442
  getFunction(nameOrSignature: 'createRandomTask'): TypedContractMethod<[
2552
3443
  returnType: BigNumberish,
@@ -2575,7 +3466,7 @@ interface MockTaskManager extends BaseContract {
2575
3466
  getFunction(nameOrSignature: 'inMockStorage'): TypedContractMethod<[arg0: BigNumberish], [boolean], 'view'>;
2576
3467
  getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[initialOwner: AddressLike], [void], 'nonpayable'>;
2577
3468
  getFunction(nameOrSignature: 'isAllowed'): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
2578
- getFunction(nameOrSignature: 'isAllowedWithPermission'): TypedContractMethod<[permission: PermissionStruct$1, handle: BigNumberish], [boolean], 'view'>;
3469
+ getFunction(nameOrSignature: 'isAllowedWithPermission'): TypedContractMethod<[acp: ACPStruct$1, handle: BigNumberish], [boolean], 'view'>;
2579
3470
  getFunction(nameOrSignature: 'isInitialized'): TypedContractMethod<[], [boolean], 'view'>;
2580
3471
  getFunction(nameOrSignature: 'isPubliclyAllowed'): TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
2581
3472
  getFunction(nameOrSignature: 'logOps'): TypedContractMethod<[], [boolean], 'view'>;
@@ -2588,6 +3479,7 @@ interface MockTaskManager extends BaseContract {
2588
3479
  ], [
2589
3480
  void
2590
3481
  ], 'nonpayable'>;
3482
+ getFunction(nameOrSignature: 'receiveCtHash'): TypedContractMethod<[ctHash: BigNumberish, expectedSharer: AddressLike], [void], 'nonpayable'>;
2591
3483
  getFunction(nameOrSignature: 'removeFirstLetter'): TypedContractMethod<[str: string], [string], 'view'>;
2592
3484
  getFunction(nameOrSignature: 'setACLContract'): TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
2593
3485
  getFunction(nameOrSignature: 'setAggregator'): TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
@@ -2597,6 +3489,7 @@ interface MockTaskManager extends BaseContract {
2597
3489
  getFunction(nameOrSignature: 'setSecurityZoneMin'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
2598
3490
  getFunction(nameOrSignature: 'setSecurityZones'): TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
2599
3491
  getFunction(nameOrSignature: 'setVerifierSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
3492
+ getFunction(nameOrSignature: 'shareCtHash'): TypedContractMethod<[ctHash: BigNumberish, receiver: AddressLike], [void], 'nonpayable'>;
2600
3493
  getFunction(nameOrSignature: 'sliceString'): TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
2601
3494
  getFunction(nameOrSignature: 'verifyDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
2602
3495
  getFunction(nameOrSignature: 'verifyDecryptResultBatch'): TypedContractMethod<[
@@ -2614,7 +3507,6 @@ interface MockTaskManager extends BaseContract {
2614
3507
  boolean[]
2615
3508
  ], 'view'>;
2616
3509
  getFunction(nameOrSignature: 'verifyDecryptResultSafe'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
2617
- getFunction(nameOrSignature: 'verifyInput'): TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
2618
3510
  getEvent(key: 'DecryptionResult'): TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
2619
3511
  getEvent(key: 'ProtocolNotification'): TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
2620
3512
  getEvent(key: 'TaskCreated'): TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
@@ -2628,33 +3520,36 @@ interface MockTaskManager extends BaseContract {
2628
3520
  };
2629
3521
  }
2630
3522
 
2631
- type PermissionStruct = {
3523
+ type ACPStruct = {
2632
3524
  issuer: AddressLike;
2633
3525
  expiration: BigNumberish;
2634
3526
  recipient: AddressLike;
2635
- validatorId: BigNumberish;
2636
- validatorContract: AddressLike;
3527
+ revokerData: BigNumberish;
3528
+ revokerContract: AddressLike;
3529
+ scope: BigNumberish;
3530
+ contracts: AddressLike[];
3531
+ handles: BytesLike[];
2637
3532
  sealingKey: BytesLike;
2638
3533
  issuerSignature: BytesLike;
2639
3534
  recipientSignature: BytesLike;
2640
3535
  };
2641
3536
  interface MockThresholdNetworkInterface extends Interface {
2642
- getFunction(nameOrSignature: 'decodeLowLevelReversion' | 'decryptForTxWithPermit' | 'decryptForTxWithoutPermit' | 'exists' | 'initialize' | 'mockAcl' | 'mockQueryDecrypt' | 'mockTaskManager' | 'queryDecrypt' | 'querySealOutput' | 'seal' | 'unseal'): FunctionFragment;
3537
+ getFunction(nameOrSignature: 'decodeLowLevelReversion' | 'decryptForTxWithACP' | 'decryptForTxWithoutACP' | 'exists' | 'initialize' | 'mockAcl' | 'mockQueryDecrypt' | 'mockTaskManager' | 'queryDecrypt' | 'querySealOutput' | 'seal' | 'unseal'): FunctionFragment;
2643
3538
  encodeFunctionData(functionFragment: 'decodeLowLevelReversion', values: [BytesLike]): string;
2644
- encodeFunctionData(functionFragment: 'decryptForTxWithPermit', values: [BigNumberish, PermissionStruct]): string;
2645
- encodeFunctionData(functionFragment: 'decryptForTxWithoutPermit', values: [BigNumberish]): string;
3539
+ encodeFunctionData(functionFragment: 'decryptForTxWithACP', values: [BigNumberish, ACPStruct]): string;
3540
+ encodeFunctionData(functionFragment: 'decryptForTxWithoutACP', values: [BigNumberish]): string;
2646
3541
  encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
2647
3542
  encodeFunctionData(functionFragment: 'initialize', values: [AddressLike, AddressLike]): string;
2648
3543
  encodeFunctionData(functionFragment: 'mockAcl', values?: undefined): string;
2649
3544
  encodeFunctionData(functionFragment: 'mockQueryDecrypt', values: [BigNumberish, BigNumberish, AddressLike]): string;
2650
3545
  encodeFunctionData(functionFragment: 'mockTaskManager', values?: undefined): string;
2651
- encodeFunctionData(functionFragment: 'queryDecrypt', values: [BigNumberish, BigNumberish, PermissionStruct]): string;
2652
- encodeFunctionData(functionFragment: 'querySealOutput', values: [BigNumberish, BigNumberish, PermissionStruct]): string;
3546
+ encodeFunctionData(functionFragment: 'queryDecrypt', values: [BigNumberish, BigNumberish, ACPStruct]): string;
3547
+ encodeFunctionData(functionFragment: 'querySealOutput', values: [BigNumberish, BigNumberish, ACPStruct]): string;
2653
3548
  encodeFunctionData(functionFragment: 'seal', values: [BigNumberish, BytesLike]): string;
2654
3549
  encodeFunctionData(functionFragment: 'unseal', values: [BytesLike, BytesLike]): string;
2655
3550
  decodeFunctionResult(functionFragment: 'decodeLowLevelReversion', data: BytesLike): Result;
2656
- decodeFunctionResult(functionFragment: 'decryptForTxWithPermit', data: BytesLike): Result;
2657
- decodeFunctionResult(functionFragment: 'decryptForTxWithoutPermit', data: BytesLike): Result;
3551
+ decodeFunctionResult(functionFragment: 'decryptForTxWithACP', data: BytesLike): Result;
3552
+ decodeFunctionResult(functionFragment: 'decryptForTxWithoutACP', data: BytesLike): Result;
2658
3553
  decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
2659
3554
  decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
2660
3555
  decodeFunctionResult(functionFragment: 'mockAcl', data: BytesLike): Result;
@@ -2679,9 +3574,9 @@ interface MockThresholdNetwork extends BaseContract {
2679
3574
  listeners(eventName?: string): Promise<Array<Listener>>;
2680
3575
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
2681
3576
  decodeLowLevelReversion: TypedContractMethod<[data: BytesLike], [string], 'view'>;
2682
- decryptForTxWithPermit: TypedContractMethod<[
3577
+ decryptForTxWithACP: TypedContractMethod<[
2683
3578
  ctHash: BigNumberish,
2684
- permission: PermissionStruct
3579
+ acp: ACPStruct
2685
3580
  ], [
2686
3581
  [
2687
3582
  boolean,
@@ -2693,7 +3588,7 @@ interface MockThresholdNetwork extends BaseContract {
2693
3588
  decryptedValue: bigint;
2694
3589
  }
2695
3590
  ], 'view'>;
2696
- decryptForTxWithoutPermit: TypedContractMethod<[
3591
+ decryptForTxWithoutACP: TypedContractMethod<[
2697
3592
  ctHash: BigNumberish
2698
3593
  ], [
2699
3594
  [
@@ -2723,7 +3618,7 @@ interface MockThresholdNetwork extends BaseContract {
2723
3618
  queryDecrypt: TypedContractMethod<[
2724
3619
  ctHash: BigNumberish,
2725
3620
  arg1: BigNumberish,
2726
- permission: PermissionStruct
3621
+ acp: ACPStruct
2727
3622
  ], [
2728
3623
  [boolean, string, bigint] & {
2729
3624
  allowed: boolean;
@@ -2733,7 +3628,7 @@ interface MockThresholdNetwork extends BaseContract {
2733
3628
  querySealOutput: TypedContractMethod<[
2734
3629
  ctHash: BigNumberish,
2735
3630
  arg1: BigNumberish,
2736
- permission: PermissionStruct
3631
+ acp: ACPStruct
2737
3632
  ], [
2738
3633
  [boolean, string, string] & {
2739
3634
  allowed: boolean;
@@ -2744,9 +3639,9 @@ interface MockThresholdNetwork extends BaseContract {
2744
3639
  unseal: TypedContractMethod<[hashed: BytesLike, key: BytesLike], [bigint], 'view'>;
2745
3640
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2746
3641
  getFunction(nameOrSignature: 'decodeLowLevelReversion'): TypedContractMethod<[data: BytesLike], [string], 'view'>;
2747
- getFunction(nameOrSignature: 'decryptForTxWithPermit'): TypedContractMethod<[
3642
+ getFunction(nameOrSignature: 'decryptForTxWithACP'): TypedContractMethod<[
2748
3643
  ctHash: BigNumberish,
2749
- permission: PermissionStruct
3644
+ acp: ACPStruct
2750
3645
  ], [
2751
3646
  [
2752
3647
  boolean,
@@ -2758,7 +3653,7 @@ interface MockThresholdNetwork extends BaseContract {
2758
3653
  decryptedValue: bigint;
2759
3654
  }
2760
3655
  ], 'view'>;
2761
- getFunction(nameOrSignature: 'decryptForTxWithoutPermit'): TypedContractMethod<[
3656
+ getFunction(nameOrSignature: 'decryptForTxWithoutACP'): TypedContractMethod<[
2762
3657
  ctHash: BigNumberish
2763
3658
  ], [
2764
3659
  [
@@ -2788,7 +3683,7 @@ interface MockThresholdNetwork extends BaseContract {
2788
3683
  getFunction(nameOrSignature: 'queryDecrypt'): TypedContractMethod<[
2789
3684
  ctHash: BigNumberish,
2790
3685
  arg1: BigNumberish,
2791
- permission: PermissionStruct
3686
+ acp: ACPStruct
2792
3687
  ], [
2793
3688
  [boolean, string, bigint] & {
2794
3689
  allowed: boolean;
@@ -2798,7 +3693,7 @@ interface MockThresholdNetwork extends BaseContract {
2798
3693
  getFunction(nameOrSignature: 'querySealOutput'): TypedContractMethod<[
2799
3694
  ctHash: BigNumberish,
2800
3695
  arg1: BigNumberish,
2801
- permission: PermissionStruct
3696
+ acp: ACPStruct
2802
3697
  ], [
2803
3698
  [boolean, string, string] & {
2804
3699
  allowed: boolean;
@@ -2928,4 +3823,4 @@ interface MockZkVerifier extends BaseContract {
2928
3823
  filters: {};
2929
3824
  }
2930
3825
 
2931
- export { type MockACL, MockACLArtifact, type MockArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };
3826
+ export { type ACPShareRegistry, ACPShareRegistryArtifact, type ACPTimestampRevoker, ACPTimestampRevokerArtifact, type MockACL, MockACLArtifact, type MockArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };