@cofhe/mock-contracts 0.7.1 → 1.0.0-alpha.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/CHANGELOG.md +12 -0
- package/README.md +10 -0
- package/contracts/ACPShareRegistry.sol +227 -114
- package/contracts/ACPTimestampRevoker.sol +36 -34
- package/contracts/MockACL.sol +35 -16
- package/contracts/MockCoFHE.sol +201 -86
- package/contracts/MockCoFHEAddressBook.sol +64 -0
- package/contracts/MockERC1967Proxy.sol +13 -0
- package/contracts/MockPermissioned.sol +16 -0
- package/contracts/MockTaskManager.sol +143 -28
- package/contracts/MockThresholdNetwork.sol +5 -5
- package/contracts/MockZkVerifier.sol +2 -2
- package/contracts/Permissioned.sol +240 -143
- package/contracts/cofhe-contracts.json +10 -0
- package/dist/index.d.mts +980 -101
- package/dist/index.d.ts +980 -101
- package/dist/index.js +817 -118
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +816 -119
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -6
- package/remappings.txt +1 -0
- package/src/ACPShareRegistry.ts +469 -56
- package/src/MockACL.ts +56 -25
- package/src/MockCoFHEAddressBook.ts +114 -0
- package/src/MockERC1967Proxy.ts +74 -0
- package/src/MockTaskManager.ts +73 -6
- package/src/index.ts +4 -0
- package/src/typechain-types/ACPShareRegistry.ts +309 -12
- package/src/typechain-types/MockACL.ts +65 -6
- package/src/typechain-types/MockCoFHEAddressBook.ts +124 -0
- package/src/typechain-types/MockERC1967Proxy.ts +85 -0
- package/src/typechain-types/MockTaskManager.ts +66 -1
- package/src/typechain-types/index.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, BytesLike,
|
|
1
|
+
import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, AddressLike, BigNumberish, BaseContract, ContractRunner, Interface, BytesLike, Result, Listener, ContractMethod } from 'ethers';
|
|
2
2
|
|
|
3
3
|
type MockArtifact = {
|
|
4
4
|
contractName: string;
|
|
@@ -10,14 +10,123 @@ type MockArtifact = {
|
|
|
10
10
|
isFixed: false;
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
+
declare const MockCoFHEAddressBookArtifact: {
|
|
14
|
+
readonly contractName: "MockCoFHEAddressBook";
|
|
15
|
+
readonly isFixed: true;
|
|
16
|
+
readonly fixedAddress: "0xC0F4e00E531a2B086492Ae3DCC1515038307196b";
|
|
17
|
+
readonly abi: readonly [{
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
readonly name: "exists";
|
|
20
|
+
readonly inputs: readonly [];
|
|
21
|
+
readonly outputs: readonly [{
|
|
22
|
+
readonly name: "";
|
|
23
|
+
readonly type: "bool";
|
|
24
|
+
readonly internalType: "bool";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "pure";
|
|
27
|
+
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly name: "getTm";
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly name: "id";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "tm";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
readonly internalType: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "setTm";
|
|
44
|
+
readonly inputs: readonly [{
|
|
45
|
+
readonly name: "id";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "tm";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
}];
|
|
53
|
+
readonly outputs: readonly [];
|
|
54
|
+
readonly stateMutability: "nonpayable";
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "function";
|
|
57
|
+
readonly name: "unsetTm";
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly name: "id";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
}];
|
|
63
|
+
readonly outputs: readonly [];
|
|
64
|
+
readonly stateMutability: "nonpayable";
|
|
65
|
+
}, {
|
|
66
|
+
readonly type: "event";
|
|
67
|
+
readonly name: "TaskManagerSet";
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly name: "id";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
readonly indexed: true;
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "previous";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
readonly indexed: true;
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "current";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
readonly indexed: true;
|
|
82
|
+
readonly internalType: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly anonymous: false;
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
readonly name: "InvalidAddress";
|
|
88
|
+
readonly inputs: readonly [];
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
readonly name: "TaskManagerNotSet";
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly name: "id";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
}];
|
|
97
|
+
}];
|
|
98
|
+
};
|
|
99
|
+
|
|
13
100
|
declare const MockTaskManagerArtifact: {
|
|
14
101
|
readonly contractName: "MockTaskManager";
|
|
15
102
|
readonly isFixed: true;
|
|
16
|
-
readonly fixedAddress: "
|
|
103
|
+
readonly fixedAddress: "0x0000000000000000000000000000000000005000";
|
|
17
104
|
readonly abi: readonly [{
|
|
18
105
|
readonly type: "constructor";
|
|
19
106
|
readonly inputs: readonly [];
|
|
20
107
|
readonly stateMutability: "nonpayable";
|
|
108
|
+
}, {
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
readonly name: "MOCK_dispatchOperation";
|
|
111
|
+
readonly inputs: readonly [{
|
|
112
|
+
readonly name: "ctHash";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "funcId";
|
|
117
|
+
readonly type: "uint8";
|
|
118
|
+
readonly internalType: "enum FunctionId";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "inputs";
|
|
121
|
+
readonly type: "uint256[]";
|
|
122
|
+
readonly internalType: "uint256[]";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "arity";
|
|
125
|
+
readonly type: "uint8";
|
|
126
|
+
readonly internalType: "uint8";
|
|
127
|
+
}];
|
|
128
|
+
readonly outputs: readonly [];
|
|
129
|
+
readonly stateMutability: "nonpayable";
|
|
21
130
|
}, {
|
|
22
131
|
readonly type: "function";
|
|
23
132
|
readonly name: "MOCK_logAllow";
|
|
@@ -442,6 +551,16 @@ declare const MockTaskManagerArtifact: {
|
|
|
442
551
|
readonly internalType: "bool";
|
|
443
552
|
}];
|
|
444
553
|
readonly stateMutability: "view";
|
|
554
|
+
}, {
|
|
555
|
+
readonly type: "function";
|
|
556
|
+
readonly name: "mockGasExcluded";
|
|
557
|
+
readonly inputs: readonly [];
|
|
558
|
+
readonly outputs: readonly [{
|
|
559
|
+
readonly name: "";
|
|
560
|
+
readonly type: "bool";
|
|
561
|
+
readonly internalType: "bool";
|
|
562
|
+
}];
|
|
563
|
+
readonly stateMutability: "view";
|
|
445
564
|
}, {
|
|
446
565
|
readonly type: "function";
|
|
447
566
|
readonly name: "mockStorage";
|
|
@@ -560,6 +679,16 @@ declare const MockTaskManagerArtifact: {
|
|
|
560
679
|
}];
|
|
561
680
|
readonly outputs: readonly [];
|
|
562
681
|
readonly stateMutability: "nonpayable";
|
|
682
|
+
}, {
|
|
683
|
+
readonly type: "function";
|
|
684
|
+
readonly name: "setMockGasExcluded";
|
|
685
|
+
readonly inputs: readonly [{
|
|
686
|
+
readonly name: "_mockGasExcluded";
|
|
687
|
+
readonly type: "bool";
|
|
688
|
+
readonly internalType: "bool";
|
|
689
|
+
}];
|
|
690
|
+
readonly outputs: readonly [];
|
|
691
|
+
readonly stateMutability: "nonpayable";
|
|
563
692
|
}, {
|
|
564
693
|
readonly type: "function";
|
|
565
694
|
readonly name: "setSecurityZoneMax";
|
|
@@ -748,6 +877,16 @@ declare const MockTaskManagerArtifact: {
|
|
|
748
877
|
readonly internalType: "address";
|
|
749
878
|
}];
|
|
750
879
|
readonly anonymous: false;
|
|
880
|
+
}, {
|
|
881
|
+
readonly type: "event";
|
|
882
|
+
readonly name: "MockGasConsumed";
|
|
883
|
+
readonly inputs: readonly [{
|
|
884
|
+
readonly name: "gas";
|
|
885
|
+
readonly type: "uint256";
|
|
886
|
+
readonly indexed: false;
|
|
887
|
+
readonly internalType: "uint256";
|
|
888
|
+
}];
|
|
889
|
+
readonly anonymous: false;
|
|
751
890
|
}, {
|
|
752
891
|
readonly type: "event";
|
|
753
892
|
readonly name: "ProtocolNotification";
|
|
@@ -962,10 +1101,6 @@ declare const MockTaskManagerArtifact: {
|
|
|
962
1101
|
readonly type: "string";
|
|
963
1102
|
readonly internalType: "string";
|
|
964
1103
|
}];
|
|
965
|
-
}, {
|
|
966
|
-
readonly type: "error";
|
|
967
|
-
readonly name: "NotImplemented";
|
|
968
|
-
readonly inputs: readonly [];
|
|
969
1104
|
}, {
|
|
970
1105
|
readonly type: "error";
|
|
971
1106
|
readonly name: "OnlyAggregatorAllowed";
|
|
@@ -982,6 +1117,10 @@ declare const MockTaskManagerArtifact: {
|
|
|
982
1117
|
readonly type: "address";
|
|
983
1118
|
readonly internalType: "address";
|
|
984
1119
|
}];
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly type: "error";
|
|
1122
|
+
readonly name: "OnlySelf";
|
|
1123
|
+
readonly inputs: readonly [];
|
|
985
1124
|
}, {
|
|
986
1125
|
readonly type: "error";
|
|
987
1126
|
readonly name: "RandomFunctionNotSupported";
|
|
@@ -1024,16 +1163,6 @@ declare const MockACLArtifact: {
|
|
|
1024
1163
|
readonly type: "constructor";
|
|
1025
1164
|
readonly inputs: readonly [];
|
|
1026
1165
|
readonly stateMutability: "nonpayable";
|
|
1027
|
-
}, {
|
|
1028
|
-
readonly type: "function";
|
|
1029
|
-
readonly name: "TASK_MANAGER_ADDRESS_";
|
|
1030
|
-
readonly inputs: readonly [];
|
|
1031
|
-
readonly outputs: readonly [{
|
|
1032
|
-
readonly name: "";
|
|
1033
|
-
readonly type: "address";
|
|
1034
|
-
readonly internalType: "address";
|
|
1035
|
-
}];
|
|
1036
|
-
readonly stateMutability: "view";
|
|
1037
1166
|
}, {
|
|
1038
1167
|
readonly type: "function";
|
|
1039
1168
|
readonly name: "allow";
|
|
@@ -1474,6 +1603,16 @@ declare const MockACLArtifact: {
|
|
|
1474
1603
|
}];
|
|
1475
1604
|
readonly outputs: readonly [];
|
|
1476
1605
|
readonly stateMutability: "nonpayable";
|
|
1606
|
+
}, {
|
|
1607
|
+
readonly type: "function";
|
|
1608
|
+
readonly name: "setTaskManager";
|
|
1609
|
+
readonly inputs: readonly [{
|
|
1610
|
+
readonly name: "newAddress";
|
|
1611
|
+
readonly type: "address";
|
|
1612
|
+
readonly internalType: "address";
|
|
1613
|
+
}];
|
|
1614
|
+
readonly outputs: readonly [];
|
|
1615
|
+
readonly stateMutability: "nonpayable";
|
|
1477
1616
|
}, {
|
|
1478
1617
|
readonly type: "function";
|
|
1479
1618
|
readonly name: "shareCtHash";
|
|
@@ -1532,6 +1671,16 @@ declare const MockACLArtifact: {
|
|
|
1532
1671
|
readonly name: "EIP712DomainChanged";
|
|
1533
1672
|
readonly inputs: readonly [];
|
|
1534
1673
|
readonly anonymous: false;
|
|
1674
|
+
}, {
|
|
1675
|
+
readonly type: "event";
|
|
1676
|
+
readonly name: "Initialized";
|
|
1677
|
+
readonly inputs: readonly [{
|
|
1678
|
+
readonly name: "version";
|
|
1679
|
+
readonly type: "uint64";
|
|
1680
|
+
readonly indexed: false;
|
|
1681
|
+
readonly internalType: "uint64";
|
|
1682
|
+
}];
|
|
1683
|
+
readonly anonymous: false;
|
|
1535
1684
|
}, {
|
|
1536
1685
|
readonly type: "event";
|
|
1537
1686
|
readonly name: "NewDelegation";
|
|
@@ -1567,6 +1716,21 @@ declare const MockACLArtifact: {
|
|
|
1567
1716
|
readonly internalType: "address";
|
|
1568
1717
|
}];
|
|
1569
1718
|
readonly anonymous: false;
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly type: "event";
|
|
1721
|
+
readonly name: "TaskManagerUpdated";
|
|
1722
|
+
readonly inputs: readonly [{
|
|
1723
|
+
readonly name: "oldAddress";
|
|
1724
|
+
readonly type: "address";
|
|
1725
|
+
readonly indexed: false;
|
|
1726
|
+
readonly internalType: "address";
|
|
1727
|
+
}, {
|
|
1728
|
+
readonly name: "newAddress";
|
|
1729
|
+
readonly type: "address";
|
|
1730
|
+
readonly indexed: false;
|
|
1731
|
+
readonly internalType: "address";
|
|
1732
|
+
}];
|
|
1733
|
+
readonly anonymous: false;
|
|
1570
1734
|
}, {
|
|
1571
1735
|
readonly type: "error";
|
|
1572
1736
|
readonly name: "AlreadyDelegated";
|
|
@@ -1581,7 +1745,15 @@ declare const MockACLArtifact: {
|
|
|
1581
1745
|
}];
|
|
1582
1746
|
}, {
|
|
1583
1747
|
readonly type: "error";
|
|
1584
|
-
readonly name: "
|
|
1748
|
+
readonly name: "InvalidInitialization";
|
|
1749
|
+
readonly inputs: readonly [];
|
|
1750
|
+
}, {
|
|
1751
|
+
readonly type: "error";
|
|
1752
|
+
readonly name: "InvalidTaskManagerAddress";
|
|
1753
|
+
readonly inputs: readonly [];
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly type: "error";
|
|
1756
|
+
readonly name: "NotInitializing";
|
|
1585
1757
|
readonly inputs: readonly [];
|
|
1586
1758
|
}, {
|
|
1587
1759
|
readonly type: "error";
|
|
@@ -1623,14 +1795,6 @@ declare const MockACLArtifact: {
|
|
|
1623
1795
|
readonly type: "address";
|
|
1624
1796
|
readonly internalType: "address";
|
|
1625
1797
|
}];
|
|
1626
|
-
}, {
|
|
1627
|
-
readonly type: "error";
|
|
1628
|
-
readonly name: "StringTooLong";
|
|
1629
|
-
readonly inputs: readonly [{
|
|
1630
|
-
readonly name: "str";
|
|
1631
|
-
readonly type: "string";
|
|
1632
|
-
readonly internalType: "string";
|
|
1633
|
-
}];
|
|
1634
1798
|
}, {
|
|
1635
1799
|
readonly type: "error";
|
|
1636
1800
|
readonly name: "UnexpectedSharer";
|
|
@@ -1752,6 +1916,54 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1752
1916
|
readonly contractName: "ACPShareRegistry";
|
|
1753
1917
|
readonly isFixed: false;
|
|
1754
1918
|
readonly abi: readonly [{
|
|
1919
|
+
readonly type: "constructor";
|
|
1920
|
+
readonly inputs: readonly [];
|
|
1921
|
+
readonly stateMutability: "nonpayable";
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly type: "function";
|
|
1924
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
1925
|
+
readonly inputs: readonly [];
|
|
1926
|
+
readonly outputs: readonly [{
|
|
1927
|
+
readonly name: "";
|
|
1928
|
+
readonly type: "bytes32";
|
|
1929
|
+
readonly internalType: "bytes32";
|
|
1930
|
+
}];
|
|
1931
|
+
readonly stateMutability: "view";
|
|
1932
|
+
}, {
|
|
1933
|
+
readonly type: "function";
|
|
1934
|
+
readonly name: "UPGRADER_ROLE";
|
|
1935
|
+
readonly inputs: readonly [];
|
|
1936
|
+
readonly outputs: readonly [{
|
|
1937
|
+
readonly name: "";
|
|
1938
|
+
readonly type: "bytes32";
|
|
1939
|
+
readonly internalType: "bytes32";
|
|
1940
|
+
}];
|
|
1941
|
+
readonly stateMutability: "view";
|
|
1942
|
+
}, {
|
|
1943
|
+
readonly type: "function";
|
|
1944
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
1945
|
+
readonly inputs: readonly [];
|
|
1946
|
+
readonly outputs: readonly [{
|
|
1947
|
+
readonly name: "";
|
|
1948
|
+
readonly type: "string";
|
|
1949
|
+
readonly internalType: "string";
|
|
1950
|
+
}];
|
|
1951
|
+
readonly stateMutability: "view";
|
|
1952
|
+
}, {
|
|
1953
|
+
readonly type: "function";
|
|
1954
|
+
readonly name: "getRoleAdmin";
|
|
1955
|
+
readonly inputs: readonly [{
|
|
1956
|
+
readonly name: "role";
|
|
1957
|
+
readonly type: "bytes32";
|
|
1958
|
+
readonly internalType: "bytes32";
|
|
1959
|
+
}];
|
|
1960
|
+
readonly outputs: readonly [{
|
|
1961
|
+
readonly name: "";
|
|
1962
|
+
readonly type: "bytes32";
|
|
1963
|
+
readonly internalType: "bytes32";
|
|
1964
|
+
}];
|
|
1965
|
+
readonly stateMutability: "view";
|
|
1966
|
+
}, {
|
|
1755
1967
|
readonly type: "function";
|
|
1756
1968
|
readonly name: "getShare";
|
|
1757
1969
|
readonly inputs: readonly [{
|
|
@@ -1762,7 +1974,7 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1762
1974
|
readonly outputs: readonly [{
|
|
1763
1975
|
readonly name: "";
|
|
1764
1976
|
readonly type: "tuple";
|
|
1765
|
-
readonly internalType: "struct
|
|
1977
|
+
readonly internalType: "struct ACPShareRegistry.ShareHeader";
|
|
1766
1978
|
readonly components: readonly [{
|
|
1767
1979
|
readonly name: "issuer";
|
|
1768
1980
|
readonly type: "address";
|
|
@@ -1776,54 +1988,86 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1776
1988
|
readonly type: "address";
|
|
1777
1989
|
readonly internalType: "address";
|
|
1778
1990
|
}, {
|
|
1779
|
-
readonly name: "
|
|
1780
|
-
readonly type: "
|
|
1781
|
-
readonly internalType: "
|
|
1991
|
+
readonly name: "blockNumber";
|
|
1992
|
+
readonly type: "uint64";
|
|
1993
|
+
readonly internalType: "uint64";
|
|
1782
1994
|
}, {
|
|
1783
1995
|
readonly name: "revokerContract";
|
|
1784
1996
|
readonly type: "address";
|
|
1785
1997
|
readonly internalType: "address";
|
|
1786
1998
|
}, {
|
|
1787
|
-
readonly name: "
|
|
1788
|
-
readonly type: "
|
|
1789
|
-
readonly internalType: "
|
|
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";
|
|
1999
|
+
readonly name: "revokerData";
|
|
2000
|
+
readonly type: "uint256";
|
|
2001
|
+
readonly internalType: "uint256";
|
|
1810
2002
|
}];
|
|
1811
2003
|
}];
|
|
1812
2004
|
readonly stateMutability: "view";
|
|
1813
2005
|
}, {
|
|
1814
2006
|
readonly type: "function";
|
|
1815
|
-
readonly name: "
|
|
2007
|
+
readonly name: "grantRole";
|
|
1816
2008
|
readonly inputs: readonly [{
|
|
1817
|
-
readonly name: "
|
|
2009
|
+
readonly name: "role";
|
|
1818
2010
|
readonly type: "bytes32";
|
|
1819
2011
|
readonly internalType: "bytes32";
|
|
1820
|
-
}
|
|
2012
|
+
}, {
|
|
2013
|
+
readonly name: "account";
|
|
2014
|
+
readonly type: "address";
|
|
2015
|
+
readonly internalType: "address";
|
|
2016
|
+
}];
|
|
2017
|
+
readonly outputs: readonly [];
|
|
2018
|
+
readonly stateMutability: "nonpayable";
|
|
2019
|
+
}, {
|
|
2020
|
+
readonly type: "function";
|
|
2021
|
+
readonly name: "hasRole";
|
|
2022
|
+
readonly inputs: readonly [{
|
|
2023
|
+
readonly name: "role";
|
|
2024
|
+
readonly type: "bytes32";
|
|
2025
|
+
readonly internalType: "bytes32";
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly name: "account";
|
|
2028
|
+
readonly type: "address";
|
|
2029
|
+
readonly internalType: "address";
|
|
2030
|
+
}];
|
|
2031
|
+
readonly outputs: readonly [{
|
|
2032
|
+
readonly name: "";
|
|
2033
|
+
readonly type: "bool";
|
|
2034
|
+
readonly internalType: "bool";
|
|
2035
|
+
}];
|
|
2036
|
+
readonly stateMutability: "view";
|
|
2037
|
+
}, {
|
|
2038
|
+
readonly type: "function";
|
|
2039
|
+
readonly name: "initialize";
|
|
2040
|
+
readonly inputs: readonly [{
|
|
2041
|
+
readonly name: "initialAdmin";
|
|
2042
|
+
readonly type: "address";
|
|
2043
|
+
readonly internalType: "address";
|
|
2044
|
+
}];
|
|
2045
|
+
readonly outputs: readonly [];
|
|
2046
|
+
readonly stateMutability: "nonpayable";
|
|
2047
|
+
}, {
|
|
2048
|
+
readonly type: "function";
|
|
2049
|
+
readonly name: "isShareValid";
|
|
2050
|
+
readonly inputs: readonly [{
|
|
2051
|
+
readonly name: "shareId";
|
|
2052
|
+
readonly type: "bytes32";
|
|
2053
|
+
readonly internalType: "bytes32";
|
|
2054
|
+
}];
|
|
1821
2055
|
readonly outputs: readonly [{
|
|
1822
2056
|
readonly name: "";
|
|
1823
2057
|
readonly type: "bool";
|
|
1824
2058
|
readonly internalType: "bool";
|
|
1825
2059
|
}];
|
|
1826
2060
|
readonly stateMutability: "view";
|
|
2061
|
+
}, {
|
|
2062
|
+
readonly type: "function";
|
|
2063
|
+
readonly name: "proxiableUUID";
|
|
2064
|
+
readonly inputs: readonly [];
|
|
2065
|
+
readonly outputs: readonly [{
|
|
2066
|
+
readonly name: "";
|
|
2067
|
+
readonly type: "bytes32";
|
|
2068
|
+
readonly internalType: "bytes32";
|
|
2069
|
+
}];
|
|
2070
|
+
readonly stateMutability: "view";
|
|
1827
2071
|
}, {
|
|
1828
2072
|
readonly type: "function";
|
|
1829
2073
|
readonly name: "removeShare";
|
|
@@ -1834,6 +2078,34 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1834
2078
|
}];
|
|
1835
2079
|
readonly outputs: readonly [];
|
|
1836
2080
|
readonly stateMutability: "nonpayable";
|
|
2081
|
+
}, {
|
|
2082
|
+
readonly type: "function";
|
|
2083
|
+
readonly name: "renounceRole";
|
|
2084
|
+
readonly inputs: readonly [{
|
|
2085
|
+
readonly name: "role";
|
|
2086
|
+
readonly type: "bytes32";
|
|
2087
|
+
readonly internalType: "bytes32";
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly name: "callerConfirmation";
|
|
2090
|
+
readonly type: "address";
|
|
2091
|
+
readonly internalType: "address";
|
|
2092
|
+
}];
|
|
2093
|
+
readonly outputs: readonly [];
|
|
2094
|
+
readonly stateMutability: "nonpayable";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly type: "function";
|
|
2097
|
+
readonly name: "revokeRole";
|
|
2098
|
+
readonly inputs: readonly [{
|
|
2099
|
+
readonly name: "role";
|
|
2100
|
+
readonly type: "bytes32";
|
|
2101
|
+
readonly internalType: "bytes32";
|
|
2102
|
+
}, {
|
|
2103
|
+
readonly name: "account";
|
|
2104
|
+
readonly type: "address";
|
|
2105
|
+
readonly internalType: "address";
|
|
2106
|
+
}];
|
|
2107
|
+
readonly outputs: readonly [];
|
|
2108
|
+
readonly stateMutability: "nonpayable";
|
|
1837
2109
|
}, {
|
|
1838
2110
|
readonly type: "function";
|
|
1839
2111
|
readonly name: "share";
|
|
@@ -1886,6 +2158,10 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1886
2158
|
readonly type: "bytes";
|
|
1887
2159
|
readonly internalType: "bytes";
|
|
1888
2160
|
}];
|
|
2161
|
+
}, {
|
|
2162
|
+
readonly name: "metadata";
|
|
2163
|
+
readonly type: "bytes";
|
|
2164
|
+
readonly internalType: "bytes";
|
|
1889
2165
|
}];
|
|
1890
2166
|
readonly outputs: readonly [{
|
|
1891
2167
|
readonly name: "shareId";
|
|
@@ -1902,9 +2178,181 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1902
2178
|
readonly internalType: "address";
|
|
1903
2179
|
}];
|
|
1904
2180
|
readonly outputs: readonly [{
|
|
1905
|
-
readonly name: "
|
|
2181
|
+
readonly name: "shareIds";
|
|
2182
|
+
readonly type: "bytes32[]";
|
|
2183
|
+
readonly internalType: "bytes32[]";
|
|
2184
|
+
}, {
|
|
2185
|
+
readonly name: "headers";
|
|
1906
2186
|
readonly type: "tuple[]";
|
|
1907
|
-
readonly internalType: "struct
|
|
2187
|
+
readonly internalType: "struct ACPShareRegistry.ShareHeader[]";
|
|
2188
|
+
readonly components: readonly [{
|
|
2189
|
+
readonly name: "issuer";
|
|
2190
|
+
readonly type: "address";
|
|
2191
|
+
readonly internalType: "address";
|
|
2192
|
+
}, {
|
|
2193
|
+
readonly name: "expiration";
|
|
2194
|
+
readonly type: "uint64";
|
|
2195
|
+
readonly internalType: "uint64";
|
|
2196
|
+
}, {
|
|
2197
|
+
readonly name: "recipient";
|
|
2198
|
+
readonly type: "address";
|
|
2199
|
+
readonly internalType: "address";
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly name: "blockNumber";
|
|
2202
|
+
readonly type: "uint64";
|
|
2203
|
+
readonly internalType: "uint64";
|
|
2204
|
+
}, {
|
|
2205
|
+
readonly name: "revokerContract";
|
|
2206
|
+
readonly type: "address";
|
|
2207
|
+
readonly internalType: "address";
|
|
2208
|
+
}, {
|
|
2209
|
+
readonly name: "revokerData";
|
|
2210
|
+
readonly type: "uint256";
|
|
2211
|
+
readonly internalType: "uint256";
|
|
2212
|
+
}];
|
|
2213
|
+
}];
|
|
2214
|
+
readonly stateMutability: "view";
|
|
2215
|
+
}, {
|
|
2216
|
+
readonly type: "function";
|
|
2217
|
+
readonly name: "supportsInterface";
|
|
2218
|
+
readonly inputs: readonly [{
|
|
2219
|
+
readonly name: "interfaceId";
|
|
2220
|
+
readonly type: "bytes4";
|
|
2221
|
+
readonly internalType: "bytes4";
|
|
2222
|
+
}];
|
|
2223
|
+
readonly outputs: readonly [{
|
|
2224
|
+
readonly name: "";
|
|
2225
|
+
readonly type: "bool";
|
|
2226
|
+
readonly internalType: "bool";
|
|
2227
|
+
}];
|
|
2228
|
+
readonly stateMutability: "view";
|
|
2229
|
+
}, {
|
|
2230
|
+
readonly type: "function";
|
|
2231
|
+
readonly name: "upgradeToAndCall";
|
|
2232
|
+
readonly inputs: readonly [{
|
|
2233
|
+
readonly name: "newImplementation";
|
|
2234
|
+
readonly type: "address";
|
|
2235
|
+
readonly internalType: "address";
|
|
2236
|
+
}, {
|
|
2237
|
+
readonly name: "data";
|
|
2238
|
+
readonly type: "bytes";
|
|
2239
|
+
readonly internalType: "bytes";
|
|
2240
|
+
}];
|
|
2241
|
+
readonly outputs: readonly [];
|
|
2242
|
+
readonly stateMutability: "payable";
|
|
2243
|
+
}, {
|
|
2244
|
+
readonly type: "event";
|
|
2245
|
+
readonly name: "Initialized";
|
|
2246
|
+
readonly inputs: readonly [{
|
|
2247
|
+
readonly name: "version";
|
|
2248
|
+
readonly type: "uint64";
|
|
2249
|
+
readonly indexed: false;
|
|
2250
|
+
readonly internalType: "uint64";
|
|
2251
|
+
}];
|
|
2252
|
+
readonly anonymous: false;
|
|
2253
|
+
}, {
|
|
2254
|
+
readonly type: "event";
|
|
2255
|
+
readonly name: "RoleAdminChanged";
|
|
2256
|
+
readonly inputs: readonly [{
|
|
2257
|
+
readonly name: "role";
|
|
2258
|
+
readonly type: "bytes32";
|
|
2259
|
+
readonly indexed: true;
|
|
2260
|
+
readonly internalType: "bytes32";
|
|
2261
|
+
}, {
|
|
2262
|
+
readonly name: "previousAdminRole";
|
|
2263
|
+
readonly type: "bytes32";
|
|
2264
|
+
readonly indexed: true;
|
|
2265
|
+
readonly internalType: "bytes32";
|
|
2266
|
+
}, {
|
|
2267
|
+
readonly name: "newAdminRole";
|
|
2268
|
+
readonly type: "bytes32";
|
|
2269
|
+
readonly indexed: true;
|
|
2270
|
+
readonly internalType: "bytes32";
|
|
2271
|
+
}];
|
|
2272
|
+
readonly anonymous: false;
|
|
2273
|
+
}, {
|
|
2274
|
+
readonly type: "event";
|
|
2275
|
+
readonly name: "RoleGranted";
|
|
2276
|
+
readonly inputs: readonly [{
|
|
2277
|
+
readonly name: "role";
|
|
2278
|
+
readonly type: "bytes32";
|
|
2279
|
+
readonly indexed: true;
|
|
2280
|
+
readonly internalType: "bytes32";
|
|
2281
|
+
}, {
|
|
2282
|
+
readonly name: "account";
|
|
2283
|
+
readonly type: "address";
|
|
2284
|
+
readonly indexed: true;
|
|
2285
|
+
readonly internalType: "address";
|
|
2286
|
+
}, {
|
|
2287
|
+
readonly name: "sender";
|
|
2288
|
+
readonly type: "address";
|
|
2289
|
+
readonly indexed: true;
|
|
2290
|
+
readonly internalType: "address";
|
|
2291
|
+
}];
|
|
2292
|
+
readonly anonymous: false;
|
|
2293
|
+
}, {
|
|
2294
|
+
readonly type: "event";
|
|
2295
|
+
readonly name: "RoleRevoked";
|
|
2296
|
+
readonly inputs: readonly [{
|
|
2297
|
+
readonly name: "role";
|
|
2298
|
+
readonly type: "bytes32";
|
|
2299
|
+
readonly indexed: true;
|
|
2300
|
+
readonly internalType: "bytes32";
|
|
2301
|
+
}, {
|
|
2302
|
+
readonly name: "account";
|
|
2303
|
+
readonly type: "address";
|
|
2304
|
+
readonly indexed: true;
|
|
2305
|
+
readonly internalType: "address";
|
|
2306
|
+
}, {
|
|
2307
|
+
readonly name: "sender";
|
|
2308
|
+
readonly type: "address";
|
|
2309
|
+
readonly indexed: true;
|
|
2310
|
+
readonly internalType: "address";
|
|
2311
|
+
}];
|
|
2312
|
+
readonly anonymous: false;
|
|
2313
|
+
}, {
|
|
2314
|
+
readonly type: "event";
|
|
2315
|
+
readonly name: "ShareRemoved";
|
|
2316
|
+
readonly inputs: readonly [{
|
|
2317
|
+
readonly name: "recipient";
|
|
2318
|
+
readonly type: "address";
|
|
2319
|
+
readonly indexed: true;
|
|
2320
|
+
readonly internalType: "address";
|
|
2321
|
+
}, {
|
|
2322
|
+
readonly name: "issuer";
|
|
2323
|
+
readonly type: "address";
|
|
2324
|
+
readonly indexed: true;
|
|
2325
|
+
readonly internalType: "address";
|
|
2326
|
+
}, {
|
|
2327
|
+
readonly name: "shareId";
|
|
2328
|
+
readonly type: "bytes32";
|
|
2329
|
+
readonly indexed: true;
|
|
2330
|
+
readonly internalType: "bytes32";
|
|
2331
|
+
}];
|
|
2332
|
+
readonly anonymous: false;
|
|
2333
|
+
}, {
|
|
2334
|
+
readonly type: "event";
|
|
2335
|
+
readonly name: "Shared";
|
|
2336
|
+
readonly inputs: readonly [{
|
|
2337
|
+
readonly name: "recipient";
|
|
2338
|
+
readonly type: "address";
|
|
2339
|
+
readonly indexed: true;
|
|
2340
|
+
readonly internalType: "address";
|
|
2341
|
+
}, {
|
|
2342
|
+
readonly name: "issuer";
|
|
2343
|
+
readonly type: "address";
|
|
2344
|
+
readonly indexed: true;
|
|
2345
|
+
readonly internalType: "address";
|
|
2346
|
+
}, {
|
|
2347
|
+
readonly name: "shareId";
|
|
2348
|
+
readonly type: "bytes32";
|
|
2349
|
+
readonly indexed: true;
|
|
2350
|
+
readonly internalType: "bytes32";
|
|
2351
|
+
}, {
|
|
2352
|
+
readonly name: "acp";
|
|
2353
|
+
readonly type: "tuple";
|
|
2354
|
+
readonly indexed: false;
|
|
2355
|
+
readonly internalType: "struct ACP";
|
|
1908
2356
|
readonly components: readonly [{
|
|
1909
2357
|
readonly name: "issuer";
|
|
1910
2358
|
readonly type: "address";
|
|
@@ -1950,56 +2398,79 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1950
2398
|
readonly type: "bytes";
|
|
1951
2399
|
readonly internalType: "bytes";
|
|
1952
2400
|
}];
|
|
2401
|
+
}, {
|
|
2402
|
+
readonly name: "metadata";
|
|
2403
|
+
readonly type: "bytes";
|
|
2404
|
+
readonly indexed: false;
|
|
2405
|
+
readonly internalType: "bytes";
|
|
1953
2406
|
}];
|
|
1954
|
-
readonly
|
|
2407
|
+
readonly anonymous: false;
|
|
1955
2408
|
}, {
|
|
1956
2409
|
readonly type: "event";
|
|
1957
|
-
readonly name: "
|
|
2410
|
+
readonly name: "Upgraded";
|
|
1958
2411
|
readonly inputs: readonly [{
|
|
1959
|
-
readonly name: "
|
|
2412
|
+
readonly name: "implementation";
|
|
1960
2413
|
readonly type: "address";
|
|
1961
2414
|
readonly indexed: true;
|
|
1962
2415
|
readonly internalType: "address";
|
|
1963
|
-
}
|
|
1964
|
-
|
|
2416
|
+
}];
|
|
2417
|
+
readonly anonymous: false;
|
|
2418
|
+
}, {
|
|
2419
|
+
readonly type: "error";
|
|
2420
|
+
readonly name: "AccessControlBadConfirmation";
|
|
2421
|
+
readonly inputs: readonly [];
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly type: "error";
|
|
2424
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
2425
|
+
readonly inputs: readonly [{
|
|
2426
|
+
readonly name: "account";
|
|
1965
2427
|
readonly type: "address";
|
|
1966
|
-
readonly indexed: true;
|
|
1967
2428
|
readonly internalType: "address";
|
|
1968
2429
|
}, {
|
|
1969
|
-
readonly name: "
|
|
2430
|
+
readonly name: "neededRole";
|
|
1970
2431
|
readonly type: "bytes32";
|
|
1971
|
-
readonly indexed: false;
|
|
1972
2432
|
readonly internalType: "bytes32";
|
|
1973
2433
|
}];
|
|
1974
|
-
readonly anonymous: false;
|
|
1975
2434
|
}, {
|
|
1976
|
-
readonly type: "
|
|
1977
|
-
readonly name: "
|
|
2435
|
+
readonly type: "error";
|
|
2436
|
+
readonly name: "AddressEmptyCode";
|
|
1978
2437
|
readonly inputs: readonly [{
|
|
1979
|
-
readonly name: "
|
|
2438
|
+
readonly name: "target";
|
|
1980
2439
|
readonly type: "address";
|
|
1981
|
-
readonly indexed: true;
|
|
1982
2440
|
readonly internalType: "address";
|
|
1983
|
-
}
|
|
1984
|
-
|
|
2441
|
+
}];
|
|
2442
|
+
}, {
|
|
2443
|
+
readonly type: "error";
|
|
2444
|
+
readonly name: "AlreadyShared";
|
|
2445
|
+
readonly inputs: readonly [];
|
|
2446
|
+
}, {
|
|
2447
|
+
readonly type: "error";
|
|
2448
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2449
|
+
readonly inputs: readonly [{
|
|
2450
|
+
readonly name: "implementation";
|
|
1985
2451
|
readonly type: "address";
|
|
1986
|
-
readonly indexed: true;
|
|
1987
2452
|
readonly internalType: "address";
|
|
1988
|
-
}, {
|
|
1989
|
-
readonly name: "shareId";
|
|
1990
|
-
readonly type: "bytes32";
|
|
1991
|
-
readonly indexed: false;
|
|
1992
|
-
readonly internalType: "bytes32";
|
|
1993
2453
|
}];
|
|
1994
|
-
readonly anonymous: false;
|
|
1995
2454
|
}, {
|
|
1996
2455
|
readonly type: "error";
|
|
1997
|
-
readonly name: "
|
|
2456
|
+
readonly name: "ERC1967NonPayable";
|
|
2457
|
+
readonly inputs: readonly [];
|
|
2458
|
+
}, {
|
|
2459
|
+
readonly type: "error";
|
|
2460
|
+
readonly name: "FailedCall";
|
|
2461
|
+
readonly inputs: readonly [];
|
|
2462
|
+
}, {
|
|
2463
|
+
readonly type: "error";
|
|
2464
|
+
readonly name: "InvalidInitialization";
|
|
1998
2465
|
readonly inputs: readonly [];
|
|
1999
2466
|
}, {
|
|
2000
2467
|
readonly type: "error";
|
|
2001
2468
|
readonly name: "IssuerSignatureMissing";
|
|
2002
2469
|
readonly inputs: readonly [];
|
|
2470
|
+
}, {
|
|
2471
|
+
readonly type: "error";
|
|
2472
|
+
readonly name: "NotInitializing";
|
|
2473
|
+
readonly inputs: readonly [];
|
|
2003
2474
|
}, {
|
|
2004
2475
|
readonly type: "error";
|
|
2005
2476
|
readonly name: "NotIssuer";
|
|
@@ -2020,6 +2491,18 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2020
2491
|
readonly type: "error";
|
|
2021
2492
|
readonly name: "ShareExpired";
|
|
2022
2493
|
readonly inputs: readonly [];
|
|
2494
|
+
}, {
|
|
2495
|
+
readonly type: "error";
|
|
2496
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
2497
|
+
readonly inputs: readonly [];
|
|
2498
|
+
}, {
|
|
2499
|
+
readonly type: "error";
|
|
2500
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2501
|
+
readonly inputs: readonly [{
|
|
2502
|
+
readonly name: "slot";
|
|
2503
|
+
readonly type: "bytes32";
|
|
2504
|
+
readonly internalType: "bytes32";
|
|
2505
|
+
}];
|
|
2023
2506
|
}, {
|
|
2024
2507
|
readonly type: "error";
|
|
2025
2508
|
readonly name: "UnknownShare";
|
|
@@ -2027,6 +2510,61 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2027
2510
|
}];
|
|
2028
2511
|
};
|
|
2029
2512
|
|
|
2513
|
+
declare const MockERC1967ProxyArtifact: {
|
|
2514
|
+
readonly contractName: "MockERC1967Proxy";
|
|
2515
|
+
readonly isFixed: false;
|
|
2516
|
+
readonly abi: readonly [{
|
|
2517
|
+
readonly type: "constructor";
|
|
2518
|
+
readonly inputs: readonly [{
|
|
2519
|
+
readonly name: "implementation";
|
|
2520
|
+
readonly type: "address";
|
|
2521
|
+
readonly internalType: "address";
|
|
2522
|
+
}, {
|
|
2523
|
+
readonly name: "data";
|
|
2524
|
+
readonly type: "bytes";
|
|
2525
|
+
readonly internalType: "bytes";
|
|
2526
|
+
}];
|
|
2527
|
+
readonly stateMutability: "payable";
|
|
2528
|
+
}, {
|
|
2529
|
+
readonly type: "fallback";
|
|
2530
|
+
readonly stateMutability: "payable";
|
|
2531
|
+
}, {
|
|
2532
|
+
readonly type: "event";
|
|
2533
|
+
readonly name: "Upgraded";
|
|
2534
|
+
readonly inputs: readonly [{
|
|
2535
|
+
readonly name: "implementation";
|
|
2536
|
+
readonly type: "address";
|
|
2537
|
+
readonly indexed: true;
|
|
2538
|
+
readonly internalType: "address";
|
|
2539
|
+
}];
|
|
2540
|
+
readonly anonymous: false;
|
|
2541
|
+
}, {
|
|
2542
|
+
readonly type: "error";
|
|
2543
|
+
readonly name: "AddressEmptyCode";
|
|
2544
|
+
readonly inputs: readonly [{
|
|
2545
|
+
readonly name: "target";
|
|
2546
|
+
readonly type: "address";
|
|
2547
|
+
readonly internalType: "address";
|
|
2548
|
+
}];
|
|
2549
|
+
}, {
|
|
2550
|
+
readonly type: "error";
|
|
2551
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2552
|
+
readonly inputs: readonly [{
|
|
2553
|
+
readonly name: "implementation";
|
|
2554
|
+
readonly type: "address";
|
|
2555
|
+
readonly internalType: "address";
|
|
2556
|
+
}];
|
|
2557
|
+
}, {
|
|
2558
|
+
readonly type: "error";
|
|
2559
|
+
readonly name: "ERC1967NonPayable";
|
|
2560
|
+
readonly inputs: readonly [];
|
|
2561
|
+
}, {
|
|
2562
|
+
readonly type: "error";
|
|
2563
|
+
readonly name: "FailedCall";
|
|
2564
|
+
readonly inputs: readonly [];
|
|
2565
|
+
}];
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2030
2568
|
declare const MockZkVerifierArtifact: {
|
|
2031
2569
|
readonly contractName: "MockZkVerifier";
|
|
2032
2570
|
readonly isFixed: true;
|
|
@@ -2695,18 +3233,92 @@ type ACPStructOutput = [
|
|
|
2695
3233
|
recipientSignature: string;
|
|
2696
3234
|
};
|
|
2697
3235
|
interface ACPShareRegistryInterface extends Interface {
|
|
2698
|
-
getFunction(nameOrSignature: 'getShare' | 'isShareValid' | 'removeShare' | 'share' | 'sharesFor'): FunctionFragment;
|
|
2699
|
-
getEvent(nameOrSignatureOrTopic: 'ShareRemoved' | 'Shared'): EventFragment;
|
|
3236
|
+
getFunction(nameOrSignature: 'DEFAULT_ADMIN_ROLE' | 'UPGRADER_ROLE' | 'UPGRADE_INTERFACE_VERSION' | 'getRoleAdmin' | 'getShare' | 'grantRole' | 'hasRole' | 'initialize' | 'isShareValid' | 'proxiableUUID' | 'removeShare' | 'renounceRole' | 'revokeRole' | 'share' | 'sharesFor' | 'supportsInterface' | 'upgradeToAndCall'): FunctionFragment;
|
|
3237
|
+
getEvent(nameOrSignatureOrTopic: 'Initialized' | 'RoleAdminChanged' | 'RoleGranted' | 'RoleRevoked' | 'ShareRemoved' | 'Shared' | 'Upgraded'): EventFragment;
|
|
3238
|
+
encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string;
|
|
3239
|
+
encodeFunctionData(functionFragment: 'UPGRADER_ROLE', values?: undefined): string;
|
|
3240
|
+
encodeFunctionData(functionFragment: 'UPGRADE_INTERFACE_VERSION', values?: undefined): string;
|
|
3241
|
+
encodeFunctionData(functionFragment: 'getRoleAdmin', values: [BytesLike]): string;
|
|
2700
3242
|
encodeFunctionData(functionFragment: 'getShare', values: [BytesLike]): string;
|
|
3243
|
+
encodeFunctionData(functionFragment: 'grantRole', values: [BytesLike, AddressLike]): string;
|
|
3244
|
+
encodeFunctionData(functionFragment: 'hasRole', values: [BytesLike, AddressLike]): string;
|
|
3245
|
+
encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
|
|
2701
3246
|
encodeFunctionData(functionFragment: 'isShareValid', values: [BytesLike]): string;
|
|
3247
|
+
encodeFunctionData(functionFragment: 'proxiableUUID', values?: undefined): string;
|
|
2702
3248
|
encodeFunctionData(functionFragment: 'removeShare', values: [BytesLike]): string;
|
|
2703
|
-
encodeFunctionData(functionFragment: '
|
|
3249
|
+
encodeFunctionData(functionFragment: 'renounceRole', values: [BytesLike, AddressLike]): string;
|
|
3250
|
+
encodeFunctionData(functionFragment: 'revokeRole', values: [BytesLike, AddressLike]): string;
|
|
3251
|
+
encodeFunctionData(functionFragment: 'share', values: [ACPStruct$3, BytesLike]): string;
|
|
2704
3252
|
encodeFunctionData(functionFragment: 'sharesFor', values: [AddressLike]): string;
|
|
3253
|
+
encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string;
|
|
3254
|
+
encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [AddressLike, BytesLike]): string;
|
|
3255
|
+
decodeFunctionResult(functionFragment: 'DEFAULT_ADMIN_ROLE', data: BytesLike): Result;
|
|
3256
|
+
decodeFunctionResult(functionFragment: 'UPGRADER_ROLE', data: BytesLike): Result;
|
|
3257
|
+
decodeFunctionResult(functionFragment: 'UPGRADE_INTERFACE_VERSION', data: BytesLike): Result;
|
|
3258
|
+
decodeFunctionResult(functionFragment: 'getRoleAdmin', data: BytesLike): Result;
|
|
2705
3259
|
decodeFunctionResult(functionFragment: 'getShare', data: BytesLike): Result;
|
|
3260
|
+
decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result;
|
|
3261
|
+
decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result;
|
|
3262
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
2706
3263
|
decodeFunctionResult(functionFragment: 'isShareValid', data: BytesLike): Result;
|
|
3264
|
+
decodeFunctionResult(functionFragment: 'proxiableUUID', data: BytesLike): Result;
|
|
2707
3265
|
decodeFunctionResult(functionFragment: 'removeShare', data: BytesLike): Result;
|
|
3266
|
+
decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result;
|
|
3267
|
+
decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result;
|
|
2708
3268
|
decodeFunctionResult(functionFragment: 'share', data: BytesLike): Result;
|
|
2709
3269
|
decodeFunctionResult(functionFragment: 'sharesFor', data: BytesLike): Result;
|
|
3270
|
+
decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result;
|
|
3271
|
+
decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
|
|
3272
|
+
}
|
|
3273
|
+
declare namespace InitializedEvent$1 {
|
|
3274
|
+
type InputTuple = [version: BigNumberish];
|
|
3275
|
+
type OutputTuple = [version: bigint];
|
|
3276
|
+
interface OutputObject {
|
|
3277
|
+
version: bigint;
|
|
3278
|
+
}
|
|
3279
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3280
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3281
|
+
type Log = TypedEventLog<Event>;
|
|
3282
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3283
|
+
}
|
|
3284
|
+
declare namespace RoleAdminChangedEvent {
|
|
3285
|
+
type InputTuple = [role: BytesLike, previousAdminRole: BytesLike, newAdminRole: BytesLike];
|
|
3286
|
+
type OutputTuple = [role: string, previousAdminRole: string, newAdminRole: string];
|
|
3287
|
+
interface OutputObject {
|
|
3288
|
+
role: string;
|
|
3289
|
+
previousAdminRole: string;
|
|
3290
|
+
newAdminRole: string;
|
|
3291
|
+
}
|
|
3292
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3293
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3294
|
+
type Log = TypedEventLog<Event>;
|
|
3295
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3296
|
+
}
|
|
3297
|
+
declare namespace RoleGrantedEvent {
|
|
3298
|
+
type InputTuple = [role: BytesLike, account: AddressLike, sender: AddressLike];
|
|
3299
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
3300
|
+
interface OutputObject {
|
|
3301
|
+
role: string;
|
|
3302
|
+
account: string;
|
|
3303
|
+
sender: string;
|
|
3304
|
+
}
|
|
3305
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3306
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3307
|
+
type Log = TypedEventLog<Event>;
|
|
3308
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3309
|
+
}
|
|
3310
|
+
declare namespace RoleRevokedEvent {
|
|
3311
|
+
type InputTuple = [role: BytesLike, account: AddressLike, sender: AddressLike];
|
|
3312
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
3313
|
+
interface OutputObject {
|
|
3314
|
+
role: string;
|
|
3315
|
+
account: string;
|
|
3316
|
+
sender: string;
|
|
3317
|
+
}
|
|
3318
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3319
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3320
|
+
type Log = TypedEventLog<Event>;
|
|
3321
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2710
3322
|
}
|
|
2711
3323
|
declare namespace ShareRemovedEvent {
|
|
2712
3324
|
type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
|
|
@@ -2722,18 +3334,68 @@ declare namespace ShareRemovedEvent {
|
|
|
2722
3334
|
type LogDescription = TypedLogDescription<Event>;
|
|
2723
3335
|
}
|
|
2724
3336
|
declare namespace SharedEvent {
|
|
2725
|
-
type InputTuple = [
|
|
2726
|
-
|
|
3337
|
+
type InputTuple = [
|
|
3338
|
+
recipient: AddressLike,
|
|
3339
|
+
issuer: AddressLike,
|
|
3340
|
+
shareId: BytesLike,
|
|
3341
|
+
acp: ACPStruct$3,
|
|
3342
|
+
metadata: BytesLike
|
|
3343
|
+
];
|
|
3344
|
+
type OutputTuple = [
|
|
3345
|
+
recipient: string,
|
|
3346
|
+
issuer: string,
|
|
3347
|
+
shareId: string,
|
|
3348
|
+
acp: ACPStructOutput,
|
|
3349
|
+
metadata: string
|
|
3350
|
+
];
|
|
2727
3351
|
interface OutputObject {
|
|
2728
3352
|
recipient: string;
|
|
2729
3353
|
issuer: string;
|
|
2730
3354
|
shareId: string;
|
|
3355
|
+
acp: ACPStructOutput;
|
|
3356
|
+
metadata: string;
|
|
3357
|
+
}
|
|
3358
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3359
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3360
|
+
type Log = TypedEventLog<Event>;
|
|
3361
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3362
|
+
}
|
|
3363
|
+
declare namespace UpgradedEvent$1 {
|
|
3364
|
+
type InputTuple = [implementation: AddressLike];
|
|
3365
|
+
type OutputTuple = [implementation: string];
|
|
3366
|
+
interface OutputObject {
|
|
3367
|
+
implementation: string;
|
|
2731
3368
|
}
|
|
2732
3369
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2733
3370
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2734
3371
|
type Log = TypedEventLog<Event>;
|
|
2735
3372
|
type LogDescription = TypedLogDescription<Event>;
|
|
2736
3373
|
}
|
|
3374
|
+
declare namespace ACPShareRegistry {
|
|
3375
|
+
type ShareHeaderStruct = {
|
|
3376
|
+
issuer: AddressLike;
|
|
3377
|
+
expiration: BigNumberish;
|
|
3378
|
+
recipient: AddressLike;
|
|
3379
|
+
blockNumber: BigNumberish;
|
|
3380
|
+
revokerContract: AddressLike;
|
|
3381
|
+
revokerData: BigNumberish;
|
|
3382
|
+
};
|
|
3383
|
+
type ShareHeaderStructOutput = [
|
|
3384
|
+
issuer: string,
|
|
3385
|
+
expiration: bigint,
|
|
3386
|
+
recipient: string,
|
|
3387
|
+
blockNumber: bigint,
|
|
3388
|
+
revokerContract: string,
|
|
3389
|
+
revokerData: bigint
|
|
3390
|
+
] & {
|
|
3391
|
+
issuer: string;
|
|
3392
|
+
expiration: bigint;
|
|
3393
|
+
recipient: string;
|
|
3394
|
+
blockNumber: bigint;
|
|
3395
|
+
revokerContract: string;
|
|
3396
|
+
revokerData: bigint;
|
|
3397
|
+
};
|
|
3398
|
+
}
|
|
2737
3399
|
interface ACPShareRegistry extends BaseContract {
|
|
2738
3400
|
connect(runner?: ContractRunner | null): ACPShareRegistry;
|
|
2739
3401
|
waitForDeployment(): Promise<this>;
|
|
@@ -2747,24 +3409,83 @@ interface ACPShareRegistry extends BaseContract {
|
|
|
2747
3409
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2748
3410
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2749
3411
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2750
|
-
|
|
3412
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], 'view'>;
|
|
3413
|
+
UPGRADER_ROLE: TypedContractMethod<[], [string], 'view'>;
|
|
3414
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], 'view'>;
|
|
3415
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], 'view'>;
|
|
3416
|
+
getShare: TypedContractMethod<[shareId: BytesLike], [ACPShareRegistry.ShareHeaderStructOutput], 'view'>;
|
|
3417
|
+
grantRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3418
|
+
hasRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [boolean], 'view'>;
|
|
3419
|
+
initialize: TypedContractMethod<[initialAdmin: AddressLike], [void], 'nonpayable'>;
|
|
2751
3420
|
isShareValid: TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
|
|
3421
|
+
proxiableUUID: TypedContractMethod<[], [string], 'view'>;
|
|
2752
3422
|
removeShare: TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
|
|
2753
|
-
|
|
2754
|
-
|
|
3423
|
+
renounceRole: TypedContractMethod<[role: BytesLike, callerConfirmation: AddressLike], [void], 'nonpayable'>;
|
|
3424
|
+
revokeRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3425
|
+
share: TypedContractMethod<[acp: ACPStruct$3, metadata: BytesLike], [string], 'nonpayable'>;
|
|
3426
|
+
sharesFor: TypedContractMethod<[
|
|
3427
|
+
recipient: AddressLike
|
|
3428
|
+
], [
|
|
3429
|
+
[
|
|
3430
|
+
string[],
|
|
3431
|
+
ACPShareRegistry.ShareHeaderStructOutput[]
|
|
3432
|
+
] & {
|
|
3433
|
+
shareIds: string[];
|
|
3434
|
+
headers: ACPShareRegistry.ShareHeaderStructOutput[];
|
|
3435
|
+
}
|
|
3436
|
+
], 'view'>;
|
|
3437
|
+
supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>;
|
|
3438
|
+
upgradeToAndCall: TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], 'payable'>;
|
|
2755
3439
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2756
|
-
getFunction(nameOrSignature: '
|
|
3440
|
+
getFunction(nameOrSignature: 'DEFAULT_ADMIN_ROLE'): TypedContractMethod<[], [string], 'view'>;
|
|
3441
|
+
getFunction(nameOrSignature: 'UPGRADER_ROLE'): TypedContractMethod<[], [string], 'view'>;
|
|
3442
|
+
getFunction(nameOrSignature: 'UPGRADE_INTERFACE_VERSION'): TypedContractMethod<[], [string], 'view'>;
|
|
3443
|
+
getFunction(nameOrSignature: 'getRoleAdmin'): TypedContractMethod<[role: BytesLike], [string], 'view'>;
|
|
3444
|
+
getFunction(nameOrSignature: 'getShare'): TypedContractMethod<[shareId: BytesLike], [ACPShareRegistry.ShareHeaderStructOutput], 'view'>;
|
|
3445
|
+
getFunction(nameOrSignature: 'grantRole'): TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3446
|
+
getFunction(nameOrSignature: 'hasRole'): TypedContractMethod<[role: BytesLike, account: AddressLike], [boolean], 'view'>;
|
|
3447
|
+
getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[initialAdmin: AddressLike], [void], 'nonpayable'>;
|
|
2757
3448
|
getFunction(nameOrSignature: 'isShareValid'): TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
|
|
3449
|
+
getFunction(nameOrSignature: 'proxiableUUID'): TypedContractMethod<[], [string], 'view'>;
|
|
2758
3450
|
getFunction(nameOrSignature: 'removeShare'): TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
|
|
2759
|
-
getFunction(nameOrSignature: '
|
|
2760
|
-
getFunction(nameOrSignature: '
|
|
3451
|
+
getFunction(nameOrSignature: 'renounceRole'): TypedContractMethod<[role: BytesLike, callerConfirmation: AddressLike], [void], 'nonpayable'>;
|
|
3452
|
+
getFunction(nameOrSignature: 'revokeRole'): TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3453
|
+
getFunction(nameOrSignature: 'share'): TypedContractMethod<[acp: ACPStruct$3, metadata: BytesLike], [string], 'nonpayable'>;
|
|
3454
|
+
getFunction(nameOrSignature: 'sharesFor'): TypedContractMethod<[
|
|
3455
|
+
recipient: AddressLike
|
|
3456
|
+
], [
|
|
3457
|
+
[
|
|
3458
|
+
string[],
|
|
3459
|
+
ACPShareRegistry.ShareHeaderStructOutput[]
|
|
3460
|
+
] & {
|
|
3461
|
+
shareIds: string[];
|
|
3462
|
+
headers: ACPShareRegistry.ShareHeaderStructOutput[];
|
|
3463
|
+
}
|
|
3464
|
+
], 'view'>;
|
|
3465
|
+
getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>;
|
|
3466
|
+
getFunction(nameOrSignature: 'upgradeToAndCall'): TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], 'payable'>;
|
|
3467
|
+
getEvent(key: 'Initialized'): TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
3468
|
+
getEvent(key: 'RoleAdminChanged'): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3469
|
+
getEvent(key: 'RoleGranted'): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3470
|
+
getEvent(key: 'RoleRevoked'): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
2761
3471
|
getEvent(key: 'ShareRemoved'): TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
|
|
2762
3472
|
getEvent(key: 'Shared'): TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
3473
|
+
getEvent(key: 'Upgraded'): TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
2763
3474
|
filters: {
|
|
3475
|
+
'Initialized(uint64)': TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
3476
|
+
Initialized: TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
3477
|
+
'RoleAdminChanged(bytes32,bytes32,bytes32)': TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3478
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3479
|
+
'RoleGranted(bytes32,address,address)': TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3480
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3481
|
+
'RoleRevoked(bytes32,address,address)': TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
3482
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
2764
3483
|
'ShareRemoved(address,address,bytes32)': TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
|
|
2765
3484
|
ShareRemoved: TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
|
|
2766
|
-
'Shared(address,address,bytes32)': TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
3485
|
+
'Shared(address,address,bytes32,tuple,bytes)': TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
2767
3486
|
Shared: TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
3487
|
+
'Upgraded(address)': TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
3488
|
+
Upgraded: TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
2768
3489
|
};
|
|
2769
3490
|
}
|
|
2770
3491
|
|
|
@@ -2854,9 +3575,8 @@ type ACPStruct$2 = {
|
|
|
2854
3575
|
recipientSignature: BytesLike;
|
|
2855
3576
|
};
|
|
2856
3577
|
interface MockACLInterface extends Interface {
|
|
2857
|
-
getFunction(nameOrSignature: '
|
|
2858
|
-
getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'NewDelegation' | 'ShareRegistryUpdated'): EventFragment;
|
|
2859
|
-
encodeFunctionData(functionFragment: 'TASK_MANAGER_ADDRESS_', values?: undefined): string;
|
|
3578
|
+
getFunction(nameOrSignature: 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'allowedOnBehalf' | 'allowedTransient' | 'checkPermissionValidity' | 'cleanTransientStorage' | 'defaultRevokerContract' | 'delegateAccount' | 'eip712Domain' | 'exists' | 'getTaskManagerAddress' | 'getVersion' | 'globalAllowed' | 'hashTypedDataV4' | 'isAllowed' | 'isAllowedForDecryption' | 'isAllowedWithPermission' | 'persistAllowed' | 'receiveCtHash' | 'setDefaultRevokerContract' | 'setShareRegistry' | 'setTaskManager' | 'shareCtHash' | 'shareRegistry'): FunctionFragment;
|
|
3579
|
+
getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'Initialized' | 'NewDelegation' | 'ShareRegistryUpdated' | 'TaskManagerUpdated'): EventFragment;
|
|
2860
3580
|
encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
2861
3581
|
encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
|
|
2862
3582
|
encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish, AddressLike]): string;
|
|
@@ -2880,9 +3600,9 @@ interface MockACLInterface extends Interface {
|
|
|
2880
3600
|
encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
2881
3601
|
encodeFunctionData(functionFragment: 'setDefaultRevokerContract', values: [AddressLike]): string;
|
|
2882
3602
|
encodeFunctionData(functionFragment: 'setShareRegistry', values: [AddressLike]): string;
|
|
3603
|
+
encodeFunctionData(functionFragment: 'setTaskManager', values: [AddressLike]): string;
|
|
2883
3604
|
encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
2884
3605
|
encodeFunctionData(functionFragment: 'shareRegistry', values?: undefined): string;
|
|
2885
|
-
decodeFunctionResult(functionFragment: 'TASK_MANAGER_ADDRESS_', data: BytesLike): Result;
|
|
2886
3606
|
decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
|
|
2887
3607
|
decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
|
|
2888
3608
|
decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
|
|
@@ -2906,6 +3626,7 @@ interface MockACLInterface extends Interface {
|
|
|
2906
3626
|
decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
|
|
2907
3627
|
decodeFunctionResult(functionFragment: 'setDefaultRevokerContract', data: BytesLike): Result;
|
|
2908
3628
|
decodeFunctionResult(functionFragment: 'setShareRegistry', data: BytesLike): Result;
|
|
3629
|
+
decodeFunctionResult(functionFragment: 'setTaskManager', data: BytesLike): Result;
|
|
2909
3630
|
decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
|
|
2910
3631
|
decodeFunctionResult(functionFragment: 'shareRegistry', data: BytesLike): Result;
|
|
2911
3632
|
}
|
|
@@ -2942,6 +3663,17 @@ declare namespace EIP712DomainChangedEvent {
|
|
|
2942
3663
|
type Log = TypedEventLog<Event>;
|
|
2943
3664
|
type LogDescription = TypedLogDescription<Event>;
|
|
2944
3665
|
}
|
|
3666
|
+
declare namespace InitializedEvent {
|
|
3667
|
+
type InputTuple = [version: BigNumberish];
|
|
3668
|
+
type OutputTuple = [version: bigint];
|
|
3669
|
+
interface OutputObject {
|
|
3670
|
+
version: bigint;
|
|
3671
|
+
}
|
|
3672
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3673
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3674
|
+
type Log = TypedEventLog<Event>;
|
|
3675
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3676
|
+
}
|
|
2945
3677
|
declare namespace NewDelegationEvent {
|
|
2946
3678
|
type InputTuple = [sender: AddressLike, delegatee: AddressLike, contractAddress: AddressLike];
|
|
2947
3679
|
type OutputTuple = [sender: string, delegatee: string, contractAddress: string];
|
|
@@ -2967,6 +3699,18 @@ declare namespace ShareRegistryUpdatedEvent {
|
|
|
2967
3699
|
type Log = TypedEventLog<Event>;
|
|
2968
3700
|
type LogDescription = TypedLogDescription<Event>;
|
|
2969
3701
|
}
|
|
3702
|
+
declare namespace TaskManagerUpdatedEvent {
|
|
3703
|
+
type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
|
|
3704
|
+
type OutputTuple = [oldAddress: string, newAddress: string];
|
|
3705
|
+
interface OutputObject {
|
|
3706
|
+
oldAddress: string;
|
|
3707
|
+
newAddress: string;
|
|
3708
|
+
}
|
|
3709
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3710
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3711
|
+
type Log = TypedEventLog<Event>;
|
|
3712
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3713
|
+
}
|
|
2970
3714
|
interface MockACL extends BaseContract {
|
|
2971
3715
|
connect(runner?: ContractRunner | null): MockACL;
|
|
2972
3716
|
waitForDeployment(): Promise<this>;
|
|
@@ -2980,7 +3724,6 @@ interface MockACL extends BaseContract {
|
|
|
2980
3724
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2981
3725
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2982
3726
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2983
|
-
TASK_MANAGER_ADDRESS_: TypedContractMethod<[], [string], 'view'>;
|
|
2984
3727
|
allow: TypedContractMethod<[
|
|
2985
3728
|
handle: BigNumberish,
|
|
2986
3729
|
account: AddressLike,
|
|
@@ -3048,6 +3791,7 @@ interface MockACL extends BaseContract {
|
|
|
3048
3791
|
], 'nonpayable'>;
|
|
3049
3792
|
setDefaultRevokerContract: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
|
|
3050
3793
|
setShareRegistry: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
|
|
3794
|
+
setTaskManager: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
|
|
3051
3795
|
shareCtHash: TypedContractMethod<[
|
|
3052
3796
|
handle: BigNumberish,
|
|
3053
3797
|
sharer: AddressLike,
|
|
@@ -3057,7 +3801,6 @@ interface MockACL extends BaseContract {
|
|
|
3057
3801
|
], 'nonpayable'>;
|
|
3058
3802
|
shareRegistry: TypedContractMethod<[], [string], 'view'>;
|
|
3059
3803
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3060
|
-
getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_'): TypedContractMethod<[], [string], 'view'>;
|
|
3061
3804
|
getFunction(nameOrSignature: 'allow'): TypedContractMethod<[handle: BigNumberish, account: AddressLike, requester: AddressLike], [void], 'nonpayable'>;
|
|
3062
3805
|
getFunction(nameOrSignature: 'allowForDecryption'): TypedContractMethod<[handlesList: BigNumberish[], requester: AddressLike], [void], 'nonpayable'>;
|
|
3063
3806
|
getFunction(nameOrSignature: 'allowGlobal'): TypedContractMethod<[handle: BigNumberish, requester: AddressLike], [void], 'nonpayable'>;
|
|
@@ -3113,13 +3856,16 @@ interface MockACL extends BaseContract {
|
|
|
3113
3856
|
], 'nonpayable'>;
|
|
3114
3857
|
getFunction(nameOrSignature: 'setDefaultRevokerContract'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
|
|
3115
3858
|
getFunction(nameOrSignature: 'setShareRegistry'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
|
|
3859
|
+
getFunction(nameOrSignature: 'setTaskManager'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
|
|
3116
3860
|
getFunction(nameOrSignature: 'shareCtHash'): TypedContractMethod<[handle: BigNumberish, sharer: AddressLike, receiver: AddressLike], [void], 'nonpayable'>;
|
|
3117
3861
|
getFunction(nameOrSignature: 'shareRegistry'): TypedContractMethod<[], [string], 'view'>;
|
|
3118
3862
|
getEvent(key: 'AllowedForDecryption'): TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
3119
3863
|
getEvent(key: 'DefaultRevokerContractUpdated'): TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
|
|
3120
3864
|
getEvent(key: 'EIP712DomainChanged'): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
3865
|
+
getEvent(key: 'Initialized'): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3121
3866
|
getEvent(key: 'NewDelegation'): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
3122
3867
|
getEvent(key: 'ShareRegistryUpdated'): TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
|
|
3868
|
+
getEvent(key: 'TaskManagerUpdated'): TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
|
|
3123
3869
|
filters: {
|
|
3124
3870
|
'AllowedForDecryption(uint256[])': TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
3125
3871
|
AllowedForDecryption: TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
@@ -3127,10 +3873,103 @@ interface MockACL extends BaseContract {
|
|
|
3127
3873
|
DefaultRevokerContractUpdated: TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
|
|
3128
3874
|
'EIP712DomainChanged()': TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
3129
3875
|
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
3876
|
+
'Initialized(uint64)': TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3877
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3130
3878
|
'NewDelegation(address,address,address)': TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
3131
3879
|
NewDelegation: TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
3132
3880
|
'ShareRegistryUpdated(address,address)': TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
|
|
3133
3881
|
ShareRegistryUpdated: TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
|
|
3882
|
+
'TaskManagerUpdated(address,address)': TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
|
|
3883
|
+
TaskManagerUpdated: TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
|
|
3884
|
+
};
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
interface MockCoFHEAddressBookInterface extends Interface {
|
|
3888
|
+
getFunction(nameOrSignature: 'exists' | 'getTm' | 'setTm' | 'unsetTm'): FunctionFragment;
|
|
3889
|
+
getEvent(nameOrSignatureOrTopic: 'TaskManagerSet'): EventFragment;
|
|
3890
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
3891
|
+
encodeFunctionData(functionFragment: 'getTm', values: [BigNumberish]): string;
|
|
3892
|
+
encodeFunctionData(functionFragment: 'setTm', values: [BigNumberish, AddressLike]): string;
|
|
3893
|
+
encodeFunctionData(functionFragment: 'unsetTm', values: [BigNumberish]): string;
|
|
3894
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
3895
|
+
decodeFunctionResult(functionFragment: 'getTm', data: BytesLike): Result;
|
|
3896
|
+
decodeFunctionResult(functionFragment: 'setTm', data: BytesLike): Result;
|
|
3897
|
+
decodeFunctionResult(functionFragment: 'unsetTm', data: BytesLike): Result;
|
|
3898
|
+
}
|
|
3899
|
+
declare namespace TaskManagerSetEvent {
|
|
3900
|
+
type InputTuple = [id: BigNumberish, previous: AddressLike, current: AddressLike];
|
|
3901
|
+
type OutputTuple = [id: bigint, previous: string, current: string];
|
|
3902
|
+
interface OutputObject {
|
|
3903
|
+
id: bigint;
|
|
3904
|
+
previous: string;
|
|
3905
|
+
current: string;
|
|
3906
|
+
}
|
|
3907
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3908
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3909
|
+
type Log = TypedEventLog<Event>;
|
|
3910
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3911
|
+
}
|
|
3912
|
+
interface MockCoFHEAddressBook extends BaseContract {
|
|
3913
|
+
connect(runner?: ContractRunner | null): MockCoFHEAddressBook;
|
|
3914
|
+
waitForDeployment(): Promise<this>;
|
|
3915
|
+
interface: MockCoFHEAddressBookInterface;
|
|
3916
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3917
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3918
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3919
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3920
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3921
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3922
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3923
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3924
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
3925
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
3926
|
+
getTm: TypedContractMethod<[id: BigNumberish], [string], 'view'>;
|
|
3927
|
+
setTm: TypedContractMethod<[id: BigNumberish, tm: AddressLike], [void], 'nonpayable'>;
|
|
3928
|
+
unsetTm: TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
|
|
3929
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3930
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
3931
|
+
getFunction(nameOrSignature: 'getTm'): TypedContractMethod<[id: BigNumberish], [string], 'view'>;
|
|
3932
|
+
getFunction(nameOrSignature: 'setTm'): TypedContractMethod<[id: BigNumberish, tm: AddressLike], [void], 'nonpayable'>;
|
|
3933
|
+
getFunction(nameOrSignature: 'unsetTm'): TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
|
|
3934
|
+
getEvent(key: 'TaskManagerSet'): TypedContractEvent<TaskManagerSetEvent.InputTuple, TaskManagerSetEvent.OutputTuple, TaskManagerSetEvent.OutputObject>;
|
|
3935
|
+
filters: {
|
|
3936
|
+
'TaskManagerSet(uint256,address,address)': TypedContractEvent<TaskManagerSetEvent.InputTuple, TaskManagerSetEvent.OutputTuple, TaskManagerSetEvent.OutputObject>;
|
|
3937
|
+
TaskManagerSet: TypedContractEvent<TaskManagerSetEvent.InputTuple, TaskManagerSetEvent.OutputTuple, TaskManagerSetEvent.OutputObject>;
|
|
3938
|
+
};
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
interface MockERC1967ProxyInterface extends Interface {
|
|
3942
|
+
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
|
3943
|
+
}
|
|
3944
|
+
declare namespace UpgradedEvent {
|
|
3945
|
+
type InputTuple = [implementation: AddressLike];
|
|
3946
|
+
type OutputTuple = [implementation: string];
|
|
3947
|
+
interface OutputObject {
|
|
3948
|
+
implementation: string;
|
|
3949
|
+
}
|
|
3950
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3951
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3952
|
+
type Log = TypedEventLog<Event>;
|
|
3953
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3954
|
+
}
|
|
3955
|
+
interface MockERC1967Proxy extends BaseContract {
|
|
3956
|
+
connect(runner?: ContractRunner | null): MockERC1967Proxy;
|
|
3957
|
+
waitForDeployment(): Promise<this>;
|
|
3958
|
+
interface: MockERC1967ProxyInterface;
|
|
3959
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3960
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3961
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3962
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3963
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3964
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3965
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3966
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3967
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
3968
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3969
|
+
getEvent(key: 'Upgraded'): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3970
|
+
filters: {
|
|
3971
|
+
'Upgraded(address)': TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3972
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3134
3973
|
};
|
|
3135
3974
|
}
|
|
3136
3975
|
|
|
@@ -3153,8 +3992,9 @@ type ACPStruct$1 = {
|
|
|
3153
3992
|
recipientSignature: BytesLike;
|
|
3154
3993
|
};
|
|
3155
3994
|
interface MockTaskManagerInterface extends Interface {
|
|
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;
|
|
3157
|
-
getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
|
|
3995
|
+
getFunction(nameOrSignature: 'MOCK_dispatchOperation' | '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' | 'mockGasExcluded' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'receiveCtHash' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setMockGasExcluded' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'shareCtHash' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultBatch' | 'verifyDecryptResultBatchSafe' | 'verifyDecryptResultSafe'): FunctionFragment;
|
|
3996
|
+
getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'MockGasConsumed' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
|
|
3997
|
+
encodeFunctionData(functionFragment: 'MOCK_dispatchOperation', values: [BigNumberish, BigNumberish, BigNumberish[], BigNumberish]): string;
|
|
3158
3998
|
encodeFunctionData(functionFragment: 'MOCK_logAllow', values: [string, BigNumberish, AddressLike]): string;
|
|
3159
3999
|
encodeFunctionData(functionFragment: 'MOCK_setInEuintKey', values: [BigNumberish, BigNumberish]): string;
|
|
3160
4000
|
encodeFunctionData(functionFragment: 'acl', values?: undefined): string;
|
|
@@ -3180,6 +4020,7 @@ interface MockTaskManagerInterface extends Interface {
|
|
|
3180
4020
|
encodeFunctionData(functionFragment: 'isInitialized', values?: undefined): string;
|
|
3181
4021
|
encodeFunctionData(functionFragment: 'isPubliclyAllowed', values: [BigNumberish]): string;
|
|
3182
4022
|
encodeFunctionData(functionFragment: 'logOps', values?: undefined): string;
|
|
4023
|
+
encodeFunctionData(functionFragment: 'mockGasExcluded', values?: undefined): string;
|
|
3183
4024
|
encodeFunctionData(functionFragment: 'mockStorage', values: [BigNumberish]): string;
|
|
3184
4025
|
encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
3185
4026
|
encodeFunctionData(functionFragment: 'publishDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
|
|
@@ -3189,6 +4030,7 @@ interface MockTaskManagerInterface extends Interface {
|
|
|
3189
4030
|
encodeFunctionData(functionFragment: 'setAggregator', values: [AddressLike]): string;
|
|
3190
4031
|
encodeFunctionData(functionFragment: 'setDecryptResultSigner', values: [AddressLike]): string;
|
|
3191
4032
|
encodeFunctionData(functionFragment: 'setLogOps', values: [boolean]): string;
|
|
4033
|
+
encodeFunctionData(functionFragment: 'setMockGasExcluded', values: [boolean]): string;
|
|
3192
4034
|
encodeFunctionData(functionFragment: 'setSecurityZoneMax', values: [BigNumberish]): string;
|
|
3193
4035
|
encodeFunctionData(functionFragment: 'setSecurityZoneMin', values: [BigNumberish]): string;
|
|
3194
4036
|
encodeFunctionData(functionFragment: 'setSecurityZones', values: [BigNumberish, BigNumberish]): string;
|
|
@@ -3199,6 +4041,7 @@ interface MockTaskManagerInterface extends Interface {
|
|
|
3199
4041
|
encodeFunctionData(functionFragment: 'verifyDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
|
|
3200
4042
|
encodeFunctionData(functionFragment: 'verifyDecryptResultBatchSafe', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
|
|
3201
4043
|
encodeFunctionData(functionFragment: 'verifyDecryptResultSafe', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
4044
|
+
decodeFunctionResult(functionFragment: 'MOCK_dispatchOperation', data: BytesLike): Result;
|
|
3202
4045
|
decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
|
|
3203
4046
|
decodeFunctionResult(functionFragment: 'MOCK_setInEuintKey', data: BytesLike): Result;
|
|
3204
4047
|
decodeFunctionResult(functionFragment: 'acl', data: BytesLike): Result;
|
|
@@ -3224,6 +4067,7 @@ interface MockTaskManagerInterface extends Interface {
|
|
|
3224
4067
|
decodeFunctionResult(functionFragment: 'isInitialized', data: BytesLike): Result;
|
|
3225
4068
|
decodeFunctionResult(functionFragment: 'isPubliclyAllowed', data: BytesLike): Result;
|
|
3226
4069
|
decodeFunctionResult(functionFragment: 'logOps', data: BytesLike): Result;
|
|
4070
|
+
decodeFunctionResult(functionFragment: 'mockGasExcluded', data: BytesLike): Result;
|
|
3227
4071
|
decodeFunctionResult(functionFragment: 'mockStorage', data: BytesLike): Result;
|
|
3228
4072
|
decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
|
|
3229
4073
|
decodeFunctionResult(functionFragment: 'publishDecryptResultBatch', data: BytesLike): Result;
|
|
@@ -3233,6 +4077,7 @@ interface MockTaskManagerInterface extends Interface {
|
|
|
3233
4077
|
decodeFunctionResult(functionFragment: 'setAggregator', data: BytesLike): Result;
|
|
3234
4078
|
decodeFunctionResult(functionFragment: 'setDecryptResultSigner', data: BytesLike): Result;
|
|
3235
4079
|
decodeFunctionResult(functionFragment: 'setLogOps', data: BytesLike): Result;
|
|
4080
|
+
decodeFunctionResult(functionFragment: 'setMockGasExcluded', data: BytesLike): Result;
|
|
3236
4081
|
decodeFunctionResult(functionFragment: 'setSecurityZoneMax', data: BytesLike): Result;
|
|
3237
4082
|
decodeFunctionResult(functionFragment: 'setSecurityZoneMin', data: BytesLike): Result;
|
|
3238
4083
|
decodeFunctionResult(functionFragment: 'setSecurityZones', data: BytesLike): Result;
|
|
@@ -3257,6 +4102,17 @@ declare namespace DecryptionResultEvent {
|
|
|
3257
4102
|
type Log = TypedEventLog<Event>;
|
|
3258
4103
|
type LogDescription = TypedLogDescription<Event>;
|
|
3259
4104
|
}
|
|
4105
|
+
declare namespace MockGasConsumedEvent {
|
|
4106
|
+
type InputTuple = [gas: BigNumberish];
|
|
4107
|
+
type OutputTuple = [gas: bigint];
|
|
4108
|
+
interface OutputObject {
|
|
4109
|
+
gas: bigint;
|
|
4110
|
+
}
|
|
4111
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
4112
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
4113
|
+
type Log = TypedEventLog<Event>;
|
|
4114
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
4115
|
+
}
|
|
3260
4116
|
declare namespace ProtocolNotificationEvent {
|
|
3261
4117
|
type InputTuple = [ctHash: BigNumberish, operation: string, errorMessage: string];
|
|
3262
4118
|
type OutputTuple = [ctHash: bigint, operation: string, errorMessage: string];
|
|
@@ -3304,6 +4160,14 @@ interface MockTaskManager extends BaseContract {
|
|
|
3304
4160
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3305
4161
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3306
4162
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
4163
|
+
MOCK_dispatchOperation: TypedContractMethod<[
|
|
4164
|
+
ctHash: BigNumberish,
|
|
4165
|
+
funcId: BigNumberish,
|
|
4166
|
+
inputs: BigNumberish[],
|
|
4167
|
+
arity: BigNumberish
|
|
4168
|
+
], [
|
|
4169
|
+
void
|
|
4170
|
+
], 'nonpayable'>;
|
|
3307
4171
|
MOCK_logAllow: TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
|
|
3308
4172
|
MOCK_setInEuintKey: TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
3309
4173
|
acl: TypedContractMethod<[], [string], 'view'>;
|
|
@@ -3367,6 +4231,7 @@ interface MockTaskManager extends BaseContract {
|
|
|
3367
4231
|
isInitialized: TypedContractMethod<[], [boolean], 'view'>;
|
|
3368
4232
|
isPubliclyAllowed: TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
|
|
3369
4233
|
logOps: TypedContractMethod<[], [boolean], 'view'>;
|
|
4234
|
+
mockGasExcluded: TypedContractMethod<[], [boolean], 'view'>;
|
|
3370
4235
|
mockStorage: TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
|
|
3371
4236
|
publishDecryptResult: TypedContractMethod<[
|
|
3372
4237
|
ctHash: BigNumberish,
|
|
@@ -3388,6 +4253,7 @@ interface MockTaskManager extends BaseContract {
|
|
|
3388
4253
|
setAggregator: TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
|
|
3389
4254
|
setDecryptResultSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
3390
4255
|
setLogOps: TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
|
|
4256
|
+
setMockGasExcluded: TypedContractMethod<[_mockGasExcluded: boolean], [void], 'nonpayable'>;
|
|
3391
4257
|
setSecurityZoneMax: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
3392
4258
|
setSecurityZoneMin: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
3393
4259
|
setSecurityZones: TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
|
|
@@ -3423,6 +4289,14 @@ interface MockTaskManager extends BaseContract {
|
|
|
3423
4289
|
boolean
|
|
3424
4290
|
], 'view'>;
|
|
3425
4291
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
4292
|
+
getFunction(nameOrSignature: 'MOCK_dispatchOperation'): TypedContractMethod<[
|
|
4293
|
+
ctHash: BigNumberish,
|
|
4294
|
+
funcId: BigNumberish,
|
|
4295
|
+
inputs: BigNumberish[],
|
|
4296
|
+
arity: BigNumberish
|
|
4297
|
+
], [
|
|
4298
|
+
void
|
|
4299
|
+
], 'nonpayable'>;
|
|
3426
4300
|
getFunction(nameOrSignature: 'MOCK_logAllow'): TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
|
|
3427
4301
|
getFunction(nameOrSignature: 'MOCK_setInEuintKey'): TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
3428
4302
|
getFunction(nameOrSignature: 'acl'): TypedContractMethod<[], [string], 'view'>;
|
|
@@ -3470,6 +4344,7 @@ interface MockTaskManager extends BaseContract {
|
|
|
3470
4344
|
getFunction(nameOrSignature: 'isInitialized'): TypedContractMethod<[], [boolean], 'view'>;
|
|
3471
4345
|
getFunction(nameOrSignature: 'isPubliclyAllowed'): TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
|
|
3472
4346
|
getFunction(nameOrSignature: 'logOps'): TypedContractMethod<[], [boolean], 'view'>;
|
|
4347
|
+
getFunction(nameOrSignature: 'mockGasExcluded'): TypedContractMethod<[], [boolean], 'view'>;
|
|
3473
4348
|
getFunction(nameOrSignature: 'mockStorage'): TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
|
|
3474
4349
|
getFunction(nameOrSignature: 'publishDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [void], 'nonpayable'>;
|
|
3475
4350
|
getFunction(nameOrSignature: 'publishDecryptResultBatch'): TypedContractMethod<[
|
|
@@ -3485,6 +4360,7 @@ interface MockTaskManager extends BaseContract {
|
|
|
3485
4360
|
getFunction(nameOrSignature: 'setAggregator'): TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
|
|
3486
4361
|
getFunction(nameOrSignature: 'setDecryptResultSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
3487
4362
|
getFunction(nameOrSignature: 'setLogOps'): TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
|
|
4363
|
+
getFunction(nameOrSignature: 'setMockGasExcluded'): TypedContractMethod<[_mockGasExcluded: boolean], [void], 'nonpayable'>;
|
|
3488
4364
|
getFunction(nameOrSignature: 'setSecurityZoneMax'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
3489
4365
|
getFunction(nameOrSignature: 'setSecurityZoneMin'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
3490
4366
|
getFunction(nameOrSignature: 'setSecurityZones'): TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
|
|
@@ -3508,11 +4384,14 @@ interface MockTaskManager extends BaseContract {
|
|
|
3508
4384
|
], 'view'>;
|
|
3509
4385
|
getFunction(nameOrSignature: 'verifyDecryptResultSafe'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
|
|
3510
4386
|
getEvent(key: 'DecryptionResult'): TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
|
|
4387
|
+
getEvent(key: 'MockGasConsumed'): TypedContractEvent<MockGasConsumedEvent.InputTuple, MockGasConsumedEvent.OutputTuple, MockGasConsumedEvent.OutputObject>;
|
|
3511
4388
|
getEvent(key: 'ProtocolNotification'): TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
|
|
3512
4389
|
getEvent(key: 'TaskCreated'): TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
|
|
3513
4390
|
filters: {
|
|
3514
4391
|
'DecryptionResult(uint256,uint256,address)': TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
|
|
3515
4392
|
DecryptionResult: TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
|
|
4393
|
+
'MockGasConsumed(uint256)': TypedContractEvent<MockGasConsumedEvent.InputTuple, MockGasConsumedEvent.OutputTuple, MockGasConsumedEvent.OutputObject>;
|
|
4394
|
+
MockGasConsumed: TypedContractEvent<MockGasConsumedEvent.InputTuple, MockGasConsumedEvent.OutputTuple, MockGasConsumedEvent.OutputObject>;
|
|
3516
4395
|
'ProtocolNotification(uint256,string,string)': TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
|
|
3517
4396
|
ProtocolNotification: TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
|
|
3518
4397
|
'TaskCreated(uint256,string,uint256,uint256,uint256)': TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
|
|
@@ -3823,4 +4702,4 @@ interface MockZkVerifier extends BaseContract {
|
|
|
3823
4702
|
filters: {};
|
|
3824
4703
|
}
|
|
3825
4704
|
|
|
3826
|
-
export {
|
|
4705
|
+
export { ACPShareRegistry, ACPShareRegistryArtifact, type ACPTimestampRevoker, ACPTimestampRevokerArtifact, type MockACL, MockACLArtifact, type MockArtifact, type MockCoFHEAddressBook, MockCoFHEAddressBookArtifact, type MockERC1967Proxy, MockERC1967ProxyArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };
|