@cofhe/mock-contracts 0.8.0 → 1.0.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 +37 -0
- package/contracts/ACPShareRegistry.sol +227 -114
- package/contracts/ACPTimestampRevoker.sol +36 -34
- package/contracts/MockACL.sol +2 -1
- package/contracts/MockCoFHE.sol +36 -12
- package/contracts/MockERC1967Proxy.sol +13 -0
- package/contracts/MockPermissioned.sol +16 -0
- package/contracts/MockTaskManager.sol +124 -60
- package/contracts/MockThresholdNetwork.sol +5 -5
- package/contracts/Permissioned.sol +240 -143
- package/contracts/cofhe-contracts.json +10 -0
- package/dist/index.d.mts +689 -77
- package/dist/index.d.ts +689 -77
- package/dist/index.js +576 -82
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +576 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -5
- package/remappings.txt +1 -0
- package/src/ACPShareRegistry.ts +469 -56
- package/src/MockACL.ts +19 -12
- package/src/MockERC1967Proxy.ts +74 -0
- package/src/MockTaskManager.ts +1 -1
- package/src/index.ts +2 -0
- package/src/typechain-types/ACPShareRegistry.ts +309 -12
- package/src/typechain-types/MockACL.ts +27 -0
- package/src/typechain-types/MockERC1967Proxy.ts +85 -0
- package/src/typechain-types/index.ts +1 -0
package/dist/index.d.mts
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;
|
|
@@ -1103,7 +1103,7 @@ declare const MockTaskManagerArtifact: {
|
|
|
1103
1103
|
}];
|
|
1104
1104
|
}, {
|
|
1105
1105
|
readonly type: "error";
|
|
1106
|
-
readonly name: "
|
|
1106
|
+
readonly name: "LengthMismatch";
|
|
1107
1107
|
readonly inputs: readonly [];
|
|
1108
1108
|
}, {
|
|
1109
1109
|
readonly type: "error";
|
|
@@ -1675,6 +1675,16 @@ declare const MockACLArtifact: {
|
|
|
1675
1675
|
readonly name: "EIP712DomainChanged";
|
|
1676
1676
|
readonly inputs: readonly [];
|
|
1677
1677
|
readonly anonymous: false;
|
|
1678
|
+
}, {
|
|
1679
|
+
readonly type: "event";
|
|
1680
|
+
readonly name: "Initialized";
|
|
1681
|
+
readonly inputs: readonly [{
|
|
1682
|
+
readonly name: "version";
|
|
1683
|
+
readonly type: "uint64";
|
|
1684
|
+
readonly indexed: false;
|
|
1685
|
+
readonly internalType: "uint64";
|
|
1686
|
+
}];
|
|
1687
|
+
readonly anonymous: false;
|
|
1678
1688
|
}, {
|
|
1679
1689
|
readonly type: "event";
|
|
1680
1690
|
readonly name: "NewDelegation";
|
|
@@ -1739,12 +1749,16 @@ declare const MockACLArtifact: {
|
|
|
1739
1749
|
}];
|
|
1740
1750
|
}, {
|
|
1741
1751
|
readonly type: "error";
|
|
1742
|
-
readonly name: "
|
|
1752
|
+
readonly name: "InvalidInitialization";
|
|
1743
1753
|
readonly inputs: readonly [];
|
|
1744
1754
|
}, {
|
|
1745
1755
|
readonly type: "error";
|
|
1746
1756
|
readonly name: "InvalidTaskManagerAddress";
|
|
1747
1757
|
readonly inputs: readonly [];
|
|
1758
|
+
}, {
|
|
1759
|
+
readonly type: "error";
|
|
1760
|
+
readonly name: "NotInitializing";
|
|
1761
|
+
readonly inputs: readonly [];
|
|
1748
1762
|
}, {
|
|
1749
1763
|
readonly type: "error";
|
|
1750
1764
|
readonly name: "NotShared";
|
|
@@ -1785,14 +1799,6 @@ declare const MockACLArtifact: {
|
|
|
1785
1799
|
readonly type: "address";
|
|
1786
1800
|
readonly internalType: "address";
|
|
1787
1801
|
}];
|
|
1788
|
-
}, {
|
|
1789
|
-
readonly type: "error";
|
|
1790
|
-
readonly name: "StringTooLong";
|
|
1791
|
-
readonly inputs: readonly [{
|
|
1792
|
-
readonly name: "str";
|
|
1793
|
-
readonly type: "string";
|
|
1794
|
-
readonly internalType: "string";
|
|
1795
|
-
}];
|
|
1796
1802
|
}, {
|
|
1797
1803
|
readonly type: "error";
|
|
1798
1804
|
readonly name: "UnexpectedSharer";
|
|
@@ -1914,6 +1920,54 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1914
1920
|
readonly contractName: "ACPShareRegistry";
|
|
1915
1921
|
readonly isFixed: false;
|
|
1916
1922
|
readonly abi: readonly [{
|
|
1923
|
+
readonly type: "constructor";
|
|
1924
|
+
readonly inputs: readonly [];
|
|
1925
|
+
readonly stateMutability: "nonpayable";
|
|
1926
|
+
}, {
|
|
1927
|
+
readonly type: "function";
|
|
1928
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
1929
|
+
readonly inputs: readonly [];
|
|
1930
|
+
readonly outputs: readonly [{
|
|
1931
|
+
readonly name: "";
|
|
1932
|
+
readonly type: "bytes32";
|
|
1933
|
+
readonly internalType: "bytes32";
|
|
1934
|
+
}];
|
|
1935
|
+
readonly stateMutability: "view";
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly type: "function";
|
|
1938
|
+
readonly name: "UPGRADER_ROLE";
|
|
1939
|
+
readonly inputs: readonly [];
|
|
1940
|
+
readonly outputs: readonly [{
|
|
1941
|
+
readonly name: "";
|
|
1942
|
+
readonly type: "bytes32";
|
|
1943
|
+
readonly internalType: "bytes32";
|
|
1944
|
+
}];
|
|
1945
|
+
readonly stateMutability: "view";
|
|
1946
|
+
}, {
|
|
1947
|
+
readonly type: "function";
|
|
1948
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
1949
|
+
readonly inputs: readonly [];
|
|
1950
|
+
readonly outputs: readonly [{
|
|
1951
|
+
readonly name: "";
|
|
1952
|
+
readonly type: "string";
|
|
1953
|
+
readonly internalType: "string";
|
|
1954
|
+
}];
|
|
1955
|
+
readonly stateMutability: "view";
|
|
1956
|
+
}, {
|
|
1957
|
+
readonly type: "function";
|
|
1958
|
+
readonly name: "getRoleAdmin";
|
|
1959
|
+
readonly inputs: readonly [{
|
|
1960
|
+
readonly name: "role";
|
|
1961
|
+
readonly type: "bytes32";
|
|
1962
|
+
readonly internalType: "bytes32";
|
|
1963
|
+
}];
|
|
1964
|
+
readonly outputs: readonly [{
|
|
1965
|
+
readonly name: "";
|
|
1966
|
+
readonly type: "bytes32";
|
|
1967
|
+
readonly internalType: "bytes32";
|
|
1968
|
+
}];
|
|
1969
|
+
readonly stateMutability: "view";
|
|
1970
|
+
}, {
|
|
1917
1971
|
readonly type: "function";
|
|
1918
1972
|
readonly name: "getShare";
|
|
1919
1973
|
readonly inputs: readonly [{
|
|
@@ -1924,7 +1978,7 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1924
1978
|
readonly outputs: readonly [{
|
|
1925
1979
|
readonly name: "";
|
|
1926
1980
|
readonly type: "tuple";
|
|
1927
|
-
readonly internalType: "struct
|
|
1981
|
+
readonly internalType: "struct ACPShareRegistry.ShareHeader";
|
|
1928
1982
|
readonly components: readonly [{
|
|
1929
1983
|
readonly name: "issuer";
|
|
1930
1984
|
readonly type: "address";
|
|
@@ -1938,40 +1992,62 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1938
1992
|
readonly type: "address";
|
|
1939
1993
|
readonly internalType: "address";
|
|
1940
1994
|
}, {
|
|
1941
|
-
readonly name: "
|
|
1942
|
-
readonly type: "
|
|
1943
|
-
readonly internalType: "
|
|
1995
|
+
readonly name: "blockNumber";
|
|
1996
|
+
readonly type: "uint64";
|
|
1997
|
+
readonly internalType: "uint64";
|
|
1944
1998
|
}, {
|
|
1945
1999
|
readonly name: "revokerContract";
|
|
1946
2000
|
readonly type: "address";
|
|
1947
2001
|
readonly internalType: "address";
|
|
1948
2002
|
}, {
|
|
1949
|
-
readonly name: "
|
|
1950
|
-
readonly type: "
|
|
1951
|
-
readonly internalType: "
|
|
1952
|
-
}, {
|
|
1953
|
-
readonly name: "contracts";
|
|
1954
|
-
readonly type: "address[]";
|
|
1955
|
-
readonly internalType: "address[]";
|
|
1956
|
-
}, {
|
|
1957
|
-
readonly name: "handles";
|
|
1958
|
-
readonly type: "bytes32[]";
|
|
1959
|
-
readonly internalType: "bytes32[]";
|
|
1960
|
-
}, {
|
|
1961
|
-
readonly name: "sealingKey";
|
|
1962
|
-
readonly type: "bytes32";
|
|
1963
|
-
readonly internalType: "bytes32";
|
|
1964
|
-
}, {
|
|
1965
|
-
readonly name: "issuerSignature";
|
|
1966
|
-
readonly type: "bytes";
|
|
1967
|
-
readonly internalType: "bytes";
|
|
1968
|
-
}, {
|
|
1969
|
-
readonly name: "recipientSignature";
|
|
1970
|
-
readonly type: "bytes";
|
|
1971
|
-
readonly internalType: "bytes";
|
|
2003
|
+
readonly name: "revokerData";
|
|
2004
|
+
readonly type: "uint256";
|
|
2005
|
+
readonly internalType: "uint256";
|
|
1972
2006
|
}];
|
|
1973
2007
|
}];
|
|
1974
2008
|
readonly stateMutability: "view";
|
|
2009
|
+
}, {
|
|
2010
|
+
readonly type: "function";
|
|
2011
|
+
readonly name: "grantRole";
|
|
2012
|
+
readonly inputs: readonly [{
|
|
2013
|
+
readonly name: "role";
|
|
2014
|
+
readonly type: "bytes32";
|
|
2015
|
+
readonly internalType: "bytes32";
|
|
2016
|
+
}, {
|
|
2017
|
+
readonly name: "account";
|
|
2018
|
+
readonly type: "address";
|
|
2019
|
+
readonly internalType: "address";
|
|
2020
|
+
}];
|
|
2021
|
+
readonly outputs: readonly [];
|
|
2022
|
+
readonly stateMutability: "nonpayable";
|
|
2023
|
+
}, {
|
|
2024
|
+
readonly type: "function";
|
|
2025
|
+
readonly name: "hasRole";
|
|
2026
|
+
readonly inputs: readonly [{
|
|
2027
|
+
readonly name: "role";
|
|
2028
|
+
readonly type: "bytes32";
|
|
2029
|
+
readonly internalType: "bytes32";
|
|
2030
|
+
}, {
|
|
2031
|
+
readonly name: "account";
|
|
2032
|
+
readonly type: "address";
|
|
2033
|
+
readonly internalType: "address";
|
|
2034
|
+
}];
|
|
2035
|
+
readonly outputs: readonly [{
|
|
2036
|
+
readonly name: "";
|
|
2037
|
+
readonly type: "bool";
|
|
2038
|
+
readonly internalType: "bool";
|
|
2039
|
+
}];
|
|
2040
|
+
readonly stateMutability: "view";
|
|
2041
|
+
}, {
|
|
2042
|
+
readonly type: "function";
|
|
2043
|
+
readonly name: "initialize";
|
|
2044
|
+
readonly inputs: readonly [{
|
|
2045
|
+
readonly name: "initialAdmin";
|
|
2046
|
+
readonly type: "address";
|
|
2047
|
+
readonly internalType: "address";
|
|
2048
|
+
}];
|
|
2049
|
+
readonly outputs: readonly [];
|
|
2050
|
+
readonly stateMutability: "nonpayable";
|
|
1975
2051
|
}, {
|
|
1976
2052
|
readonly type: "function";
|
|
1977
2053
|
readonly name: "isShareValid";
|
|
@@ -1986,6 +2062,16 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1986
2062
|
readonly internalType: "bool";
|
|
1987
2063
|
}];
|
|
1988
2064
|
readonly stateMutability: "view";
|
|
2065
|
+
}, {
|
|
2066
|
+
readonly type: "function";
|
|
2067
|
+
readonly name: "proxiableUUID";
|
|
2068
|
+
readonly inputs: readonly [];
|
|
2069
|
+
readonly outputs: readonly [{
|
|
2070
|
+
readonly name: "";
|
|
2071
|
+
readonly type: "bytes32";
|
|
2072
|
+
readonly internalType: "bytes32";
|
|
2073
|
+
}];
|
|
2074
|
+
readonly stateMutability: "view";
|
|
1989
2075
|
}, {
|
|
1990
2076
|
readonly type: "function";
|
|
1991
2077
|
readonly name: "removeShare";
|
|
@@ -1996,6 +2082,34 @@ declare const ACPShareRegistryArtifact: {
|
|
|
1996
2082
|
}];
|
|
1997
2083
|
readonly outputs: readonly [];
|
|
1998
2084
|
readonly stateMutability: "nonpayable";
|
|
2085
|
+
}, {
|
|
2086
|
+
readonly type: "function";
|
|
2087
|
+
readonly name: "renounceRole";
|
|
2088
|
+
readonly inputs: readonly [{
|
|
2089
|
+
readonly name: "role";
|
|
2090
|
+
readonly type: "bytes32";
|
|
2091
|
+
readonly internalType: "bytes32";
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly name: "callerConfirmation";
|
|
2094
|
+
readonly type: "address";
|
|
2095
|
+
readonly internalType: "address";
|
|
2096
|
+
}];
|
|
2097
|
+
readonly outputs: readonly [];
|
|
2098
|
+
readonly stateMutability: "nonpayable";
|
|
2099
|
+
}, {
|
|
2100
|
+
readonly type: "function";
|
|
2101
|
+
readonly name: "revokeRole";
|
|
2102
|
+
readonly inputs: readonly [{
|
|
2103
|
+
readonly name: "role";
|
|
2104
|
+
readonly type: "bytes32";
|
|
2105
|
+
readonly internalType: "bytes32";
|
|
2106
|
+
}, {
|
|
2107
|
+
readonly name: "account";
|
|
2108
|
+
readonly type: "address";
|
|
2109
|
+
readonly internalType: "address";
|
|
2110
|
+
}];
|
|
2111
|
+
readonly outputs: readonly [];
|
|
2112
|
+
readonly stateMutability: "nonpayable";
|
|
1999
2113
|
}, {
|
|
2000
2114
|
readonly type: "function";
|
|
2001
2115
|
readonly name: "share";
|
|
@@ -2048,6 +2162,10 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2048
2162
|
readonly type: "bytes";
|
|
2049
2163
|
readonly internalType: "bytes";
|
|
2050
2164
|
}];
|
|
2165
|
+
}, {
|
|
2166
|
+
readonly name: "metadata";
|
|
2167
|
+
readonly type: "bytes";
|
|
2168
|
+
readonly internalType: "bytes";
|
|
2051
2169
|
}];
|
|
2052
2170
|
readonly outputs: readonly [{
|
|
2053
2171
|
readonly name: "shareId";
|
|
@@ -2064,9 +2182,181 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2064
2182
|
readonly internalType: "address";
|
|
2065
2183
|
}];
|
|
2066
2184
|
readonly outputs: readonly [{
|
|
2067
|
-
readonly name: "
|
|
2185
|
+
readonly name: "shareIds";
|
|
2186
|
+
readonly type: "bytes32[]";
|
|
2187
|
+
readonly internalType: "bytes32[]";
|
|
2188
|
+
}, {
|
|
2189
|
+
readonly name: "headers";
|
|
2068
2190
|
readonly type: "tuple[]";
|
|
2069
|
-
readonly internalType: "struct
|
|
2191
|
+
readonly internalType: "struct ACPShareRegistry.ShareHeader[]";
|
|
2192
|
+
readonly components: readonly [{
|
|
2193
|
+
readonly name: "issuer";
|
|
2194
|
+
readonly type: "address";
|
|
2195
|
+
readonly internalType: "address";
|
|
2196
|
+
}, {
|
|
2197
|
+
readonly name: "expiration";
|
|
2198
|
+
readonly type: "uint64";
|
|
2199
|
+
readonly internalType: "uint64";
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly name: "recipient";
|
|
2202
|
+
readonly type: "address";
|
|
2203
|
+
readonly internalType: "address";
|
|
2204
|
+
}, {
|
|
2205
|
+
readonly name: "blockNumber";
|
|
2206
|
+
readonly type: "uint64";
|
|
2207
|
+
readonly internalType: "uint64";
|
|
2208
|
+
}, {
|
|
2209
|
+
readonly name: "revokerContract";
|
|
2210
|
+
readonly type: "address";
|
|
2211
|
+
readonly internalType: "address";
|
|
2212
|
+
}, {
|
|
2213
|
+
readonly name: "revokerData";
|
|
2214
|
+
readonly type: "uint256";
|
|
2215
|
+
readonly internalType: "uint256";
|
|
2216
|
+
}];
|
|
2217
|
+
}];
|
|
2218
|
+
readonly stateMutability: "view";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly type: "function";
|
|
2221
|
+
readonly name: "supportsInterface";
|
|
2222
|
+
readonly inputs: readonly [{
|
|
2223
|
+
readonly name: "interfaceId";
|
|
2224
|
+
readonly type: "bytes4";
|
|
2225
|
+
readonly internalType: "bytes4";
|
|
2226
|
+
}];
|
|
2227
|
+
readonly outputs: readonly [{
|
|
2228
|
+
readonly name: "";
|
|
2229
|
+
readonly type: "bool";
|
|
2230
|
+
readonly internalType: "bool";
|
|
2231
|
+
}];
|
|
2232
|
+
readonly stateMutability: "view";
|
|
2233
|
+
}, {
|
|
2234
|
+
readonly type: "function";
|
|
2235
|
+
readonly name: "upgradeToAndCall";
|
|
2236
|
+
readonly inputs: readonly [{
|
|
2237
|
+
readonly name: "newImplementation";
|
|
2238
|
+
readonly type: "address";
|
|
2239
|
+
readonly internalType: "address";
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly name: "data";
|
|
2242
|
+
readonly type: "bytes";
|
|
2243
|
+
readonly internalType: "bytes";
|
|
2244
|
+
}];
|
|
2245
|
+
readonly outputs: readonly [];
|
|
2246
|
+
readonly stateMutability: "payable";
|
|
2247
|
+
}, {
|
|
2248
|
+
readonly type: "event";
|
|
2249
|
+
readonly name: "Initialized";
|
|
2250
|
+
readonly inputs: readonly [{
|
|
2251
|
+
readonly name: "version";
|
|
2252
|
+
readonly type: "uint64";
|
|
2253
|
+
readonly indexed: false;
|
|
2254
|
+
readonly internalType: "uint64";
|
|
2255
|
+
}];
|
|
2256
|
+
readonly anonymous: false;
|
|
2257
|
+
}, {
|
|
2258
|
+
readonly type: "event";
|
|
2259
|
+
readonly name: "RoleAdminChanged";
|
|
2260
|
+
readonly inputs: readonly [{
|
|
2261
|
+
readonly name: "role";
|
|
2262
|
+
readonly type: "bytes32";
|
|
2263
|
+
readonly indexed: true;
|
|
2264
|
+
readonly internalType: "bytes32";
|
|
2265
|
+
}, {
|
|
2266
|
+
readonly name: "previousAdminRole";
|
|
2267
|
+
readonly type: "bytes32";
|
|
2268
|
+
readonly indexed: true;
|
|
2269
|
+
readonly internalType: "bytes32";
|
|
2270
|
+
}, {
|
|
2271
|
+
readonly name: "newAdminRole";
|
|
2272
|
+
readonly type: "bytes32";
|
|
2273
|
+
readonly indexed: true;
|
|
2274
|
+
readonly internalType: "bytes32";
|
|
2275
|
+
}];
|
|
2276
|
+
readonly anonymous: false;
|
|
2277
|
+
}, {
|
|
2278
|
+
readonly type: "event";
|
|
2279
|
+
readonly name: "RoleGranted";
|
|
2280
|
+
readonly inputs: readonly [{
|
|
2281
|
+
readonly name: "role";
|
|
2282
|
+
readonly type: "bytes32";
|
|
2283
|
+
readonly indexed: true;
|
|
2284
|
+
readonly internalType: "bytes32";
|
|
2285
|
+
}, {
|
|
2286
|
+
readonly name: "account";
|
|
2287
|
+
readonly type: "address";
|
|
2288
|
+
readonly indexed: true;
|
|
2289
|
+
readonly internalType: "address";
|
|
2290
|
+
}, {
|
|
2291
|
+
readonly name: "sender";
|
|
2292
|
+
readonly type: "address";
|
|
2293
|
+
readonly indexed: true;
|
|
2294
|
+
readonly internalType: "address";
|
|
2295
|
+
}];
|
|
2296
|
+
readonly anonymous: false;
|
|
2297
|
+
}, {
|
|
2298
|
+
readonly type: "event";
|
|
2299
|
+
readonly name: "RoleRevoked";
|
|
2300
|
+
readonly inputs: readonly [{
|
|
2301
|
+
readonly name: "role";
|
|
2302
|
+
readonly type: "bytes32";
|
|
2303
|
+
readonly indexed: true;
|
|
2304
|
+
readonly internalType: "bytes32";
|
|
2305
|
+
}, {
|
|
2306
|
+
readonly name: "account";
|
|
2307
|
+
readonly type: "address";
|
|
2308
|
+
readonly indexed: true;
|
|
2309
|
+
readonly internalType: "address";
|
|
2310
|
+
}, {
|
|
2311
|
+
readonly name: "sender";
|
|
2312
|
+
readonly type: "address";
|
|
2313
|
+
readonly indexed: true;
|
|
2314
|
+
readonly internalType: "address";
|
|
2315
|
+
}];
|
|
2316
|
+
readonly anonymous: false;
|
|
2317
|
+
}, {
|
|
2318
|
+
readonly type: "event";
|
|
2319
|
+
readonly name: "ShareRemoved";
|
|
2320
|
+
readonly inputs: readonly [{
|
|
2321
|
+
readonly name: "recipient";
|
|
2322
|
+
readonly type: "address";
|
|
2323
|
+
readonly indexed: true;
|
|
2324
|
+
readonly internalType: "address";
|
|
2325
|
+
}, {
|
|
2326
|
+
readonly name: "issuer";
|
|
2327
|
+
readonly type: "address";
|
|
2328
|
+
readonly indexed: true;
|
|
2329
|
+
readonly internalType: "address";
|
|
2330
|
+
}, {
|
|
2331
|
+
readonly name: "shareId";
|
|
2332
|
+
readonly type: "bytes32";
|
|
2333
|
+
readonly indexed: true;
|
|
2334
|
+
readonly internalType: "bytes32";
|
|
2335
|
+
}];
|
|
2336
|
+
readonly anonymous: false;
|
|
2337
|
+
}, {
|
|
2338
|
+
readonly type: "event";
|
|
2339
|
+
readonly name: "Shared";
|
|
2340
|
+
readonly inputs: readonly [{
|
|
2341
|
+
readonly name: "recipient";
|
|
2342
|
+
readonly type: "address";
|
|
2343
|
+
readonly indexed: true;
|
|
2344
|
+
readonly internalType: "address";
|
|
2345
|
+
}, {
|
|
2346
|
+
readonly name: "issuer";
|
|
2347
|
+
readonly type: "address";
|
|
2348
|
+
readonly indexed: true;
|
|
2349
|
+
readonly internalType: "address";
|
|
2350
|
+
}, {
|
|
2351
|
+
readonly name: "shareId";
|
|
2352
|
+
readonly type: "bytes32";
|
|
2353
|
+
readonly indexed: true;
|
|
2354
|
+
readonly internalType: "bytes32";
|
|
2355
|
+
}, {
|
|
2356
|
+
readonly name: "acp";
|
|
2357
|
+
readonly type: "tuple";
|
|
2358
|
+
readonly indexed: false;
|
|
2359
|
+
readonly internalType: "struct ACP";
|
|
2070
2360
|
readonly components: readonly [{
|
|
2071
2361
|
readonly name: "issuer";
|
|
2072
2362
|
readonly type: "address";
|
|
@@ -2112,56 +2402,79 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2112
2402
|
readonly type: "bytes";
|
|
2113
2403
|
readonly internalType: "bytes";
|
|
2114
2404
|
}];
|
|
2405
|
+
}, {
|
|
2406
|
+
readonly name: "metadata";
|
|
2407
|
+
readonly type: "bytes";
|
|
2408
|
+
readonly indexed: false;
|
|
2409
|
+
readonly internalType: "bytes";
|
|
2115
2410
|
}];
|
|
2116
|
-
readonly
|
|
2411
|
+
readonly anonymous: false;
|
|
2117
2412
|
}, {
|
|
2118
2413
|
readonly type: "event";
|
|
2119
|
-
readonly name: "
|
|
2414
|
+
readonly name: "Upgraded";
|
|
2120
2415
|
readonly inputs: readonly [{
|
|
2121
|
-
readonly name: "
|
|
2416
|
+
readonly name: "implementation";
|
|
2122
2417
|
readonly type: "address";
|
|
2123
2418
|
readonly indexed: true;
|
|
2124
2419
|
readonly internalType: "address";
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2420
|
+
}];
|
|
2421
|
+
readonly anonymous: false;
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly type: "error";
|
|
2424
|
+
readonly name: "AccessControlBadConfirmation";
|
|
2425
|
+
readonly inputs: readonly [];
|
|
2426
|
+
}, {
|
|
2427
|
+
readonly type: "error";
|
|
2428
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
2429
|
+
readonly inputs: readonly [{
|
|
2430
|
+
readonly name: "account";
|
|
2127
2431
|
readonly type: "address";
|
|
2128
|
-
readonly indexed: true;
|
|
2129
2432
|
readonly internalType: "address";
|
|
2130
2433
|
}, {
|
|
2131
|
-
readonly name: "
|
|
2434
|
+
readonly name: "neededRole";
|
|
2132
2435
|
readonly type: "bytes32";
|
|
2133
|
-
readonly indexed: false;
|
|
2134
2436
|
readonly internalType: "bytes32";
|
|
2135
2437
|
}];
|
|
2136
|
-
readonly anonymous: false;
|
|
2137
2438
|
}, {
|
|
2138
|
-
readonly type: "
|
|
2139
|
-
readonly name: "
|
|
2439
|
+
readonly type: "error";
|
|
2440
|
+
readonly name: "AddressEmptyCode";
|
|
2140
2441
|
readonly inputs: readonly [{
|
|
2141
|
-
readonly name: "
|
|
2442
|
+
readonly name: "target";
|
|
2142
2443
|
readonly type: "address";
|
|
2143
|
-
readonly indexed: true;
|
|
2144
2444
|
readonly internalType: "address";
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2445
|
+
}];
|
|
2446
|
+
}, {
|
|
2447
|
+
readonly type: "error";
|
|
2448
|
+
readonly name: "AlreadyShared";
|
|
2449
|
+
readonly inputs: readonly [];
|
|
2450
|
+
}, {
|
|
2451
|
+
readonly type: "error";
|
|
2452
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2453
|
+
readonly inputs: readonly [{
|
|
2454
|
+
readonly name: "implementation";
|
|
2147
2455
|
readonly type: "address";
|
|
2148
|
-
readonly indexed: true;
|
|
2149
2456
|
readonly internalType: "address";
|
|
2150
|
-
}, {
|
|
2151
|
-
readonly name: "shareId";
|
|
2152
|
-
readonly type: "bytes32";
|
|
2153
|
-
readonly indexed: false;
|
|
2154
|
-
readonly internalType: "bytes32";
|
|
2155
2457
|
}];
|
|
2156
|
-
readonly anonymous: false;
|
|
2157
2458
|
}, {
|
|
2158
2459
|
readonly type: "error";
|
|
2159
|
-
readonly name: "
|
|
2460
|
+
readonly name: "ERC1967NonPayable";
|
|
2461
|
+
readonly inputs: readonly [];
|
|
2462
|
+
}, {
|
|
2463
|
+
readonly type: "error";
|
|
2464
|
+
readonly name: "FailedCall";
|
|
2465
|
+
readonly inputs: readonly [];
|
|
2466
|
+
}, {
|
|
2467
|
+
readonly type: "error";
|
|
2468
|
+
readonly name: "InvalidInitialization";
|
|
2160
2469
|
readonly inputs: readonly [];
|
|
2161
2470
|
}, {
|
|
2162
2471
|
readonly type: "error";
|
|
2163
2472
|
readonly name: "IssuerSignatureMissing";
|
|
2164
2473
|
readonly inputs: readonly [];
|
|
2474
|
+
}, {
|
|
2475
|
+
readonly type: "error";
|
|
2476
|
+
readonly name: "NotInitializing";
|
|
2477
|
+
readonly inputs: readonly [];
|
|
2165
2478
|
}, {
|
|
2166
2479
|
readonly type: "error";
|
|
2167
2480
|
readonly name: "NotIssuer";
|
|
@@ -2182,6 +2495,18 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2182
2495
|
readonly type: "error";
|
|
2183
2496
|
readonly name: "ShareExpired";
|
|
2184
2497
|
readonly inputs: readonly [];
|
|
2498
|
+
}, {
|
|
2499
|
+
readonly type: "error";
|
|
2500
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
2501
|
+
readonly inputs: readonly [];
|
|
2502
|
+
}, {
|
|
2503
|
+
readonly type: "error";
|
|
2504
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2505
|
+
readonly inputs: readonly [{
|
|
2506
|
+
readonly name: "slot";
|
|
2507
|
+
readonly type: "bytes32";
|
|
2508
|
+
readonly internalType: "bytes32";
|
|
2509
|
+
}];
|
|
2185
2510
|
}, {
|
|
2186
2511
|
readonly type: "error";
|
|
2187
2512
|
readonly name: "UnknownShare";
|
|
@@ -2189,6 +2514,61 @@ declare const ACPShareRegistryArtifact: {
|
|
|
2189
2514
|
}];
|
|
2190
2515
|
};
|
|
2191
2516
|
|
|
2517
|
+
declare const MockERC1967ProxyArtifact: {
|
|
2518
|
+
readonly contractName: "MockERC1967Proxy";
|
|
2519
|
+
readonly isFixed: false;
|
|
2520
|
+
readonly abi: readonly [{
|
|
2521
|
+
readonly type: "constructor";
|
|
2522
|
+
readonly inputs: readonly [{
|
|
2523
|
+
readonly name: "implementation";
|
|
2524
|
+
readonly type: "address";
|
|
2525
|
+
readonly internalType: "address";
|
|
2526
|
+
}, {
|
|
2527
|
+
readonly name: "data";
|
|
2528
|
+
readonly type: "bytes";
|
|
2529
|
+
readonly internalType: "bytes";
|
|
2530
|
+
}];
|
|
2531
|
+
readonly stateMutability: "payable";
|
|
2532
|
+
}, {
|
|
2533
|
+
readonly type: "fallback";
|
|
2534
|
+
readonly stateMutability: "payable";
|
|
2535
|
+
}, {
|
|
2536
|
+
readonly type: "event";
|
|
2537
|
+
readonly name: "Upgraded";
|
|
2538
|
+
readonly inputs: readonly [{
|
|
2539
|
+
readonly name: "implementation";
|
|
2540
|
+
readonly type: "address";
|
|
2541
|
+
readonly indexed: true;
|
|
2542
|
+
readonly internalType: "address";
|
|
2543
|
+
}];
|
|
2544
|
+
readonly anonymous: false;
|
|
2545
|
+
}, {
|
|
2546
|
+
readonly type: "error";
|
|
2547
|
+
readonly name: "AddressEmptyCode";
|
|
2548
|
+
readonly inputs: readonly [{
|
|
2549
|
+
readonly name: "target";
|
|
2550
|
+
readonly type: "address";
|
|
2551
|
+
readonly internalType: "address";
|
|
2552
|
+
}];
|
|
2553
|
+
}, {
|
|
2554
|
+
readonly type: "error";
|
|
2555
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2556
|
+
readonly inputs: readonly [{
|
|
2557
|
+
readonly name: "implementation";
|
|
2558
|
+
readonly type: "address";
|
|
2559
|
+
readonly internalType: "address";
|
|
2560
|
+
}];
|
|
2561
|
+
}, {
|
|
2562
|
+
readonly type: "error";
|
|
2563
|
+
readonly name: "ERC1967NonPayable";
|
|
2564
|
+
readonly inputs: readonly [];
|
|
2565
|
+
}, {
|
|
2566
|
+
readonly type: "error";
|
|
2567
|
+
readonly name: "FailedCall";
|
|
2568
|
+
readonly inputs: readonly [];
|
|
2569
|
+
}];
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2192
2572
|
declare const MockZkVerifierArtifact: {
|
|
2193
2573
|
readonly contractName: "MockZkVerifier";
|
|
2194
2574
|
readonly isFixed: true;
|
|
@@ -2857,18 +3237,92 @@ type ACPStructOutput = [
|
|
|
2857
3237
|
recipientSignature: string;
|
|
2858
3238
|
};
|
|
2859
3239
|
interface ACPShareRegistryInterface extends Interface {
|
|
2860
|
-
getFunction(nameOrSignature: 'getShare' | 'isShareValid' | 'removeShare' | 'share' | 'sharesFor'): FunctionFragment;
|
|
2861
|
-
getEvent(nameOrSignatureOrTopic: 'ShareRemoved' | 'Shared'): EventFragment;
|
|
3240
|
+
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;
|
|
3241
|
+
getEvent(nameOrSignatureOrTopic: 'Initialized' | 'RoleAdminChanged' | 'RoleGranted' | 'RoleRevoked' | 'ShareRemoved' | 'Shared' | 'Upgraded'): EventFragment;
|
|
3242
|
+
encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string;
|
|
3243
|
+
encodeFunctionData(functionFragment: 'UPGRADER_ROLE', values?: undefined): string;
|
|
3244
|
+
encodeFunctionData(functionFragment: 'UPGRADE_INTERFACE_VERSION', values?: undefined): string;
|
|
3245
|
+
encodeFunctionData(functionFragment: 'getRoleAdmin', values: [BytesLike]): string;
|
|
2862
3246
|
encodeFunctionData(functionFragment: 'getShare', values: [BytesLike]): string;
|
|
3247
|
+
encodeFunctionData(functionFragment: 'grantRole', values: [BytesLike, AddressLike]): string;
|
|
3248
|
+
encodeFunctionData(functionFragment: 'hasRole', values: [BytesLike, AddressLike]): string;
|
|
3249
|
+
encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
|
|
2863
3250
|
encodeFunctionData(functionFragment: 'isShareValid', values: [BytesLike]): string;
|
|
3251
|
+
encodeFunctionData(functionFragment: 'proxiableUUID', values?: undefined): string;
|
|
2864
3252
|
encodeFunctionData(functionFragment: 'removeShare', values: [BytesLike]): string;
|
|
2865
|
-
encodeFunctionData(functionFragment: '
|
|
3253
|
+
encodeFunctionData(functionFragment: 'renounceRole', values: [BytesLike, AddressLike]): string;
|
|
3254
|
+
encodeFunctionData(functionFragment: 'revokeRole', values: [BytesLike, AddressLike]): string;
|
|
3255
|
+
encodeFunctionData(functionFragment: 'share', values: [ACPStruct$3, BytesLike]): string;
|
|
2866
3256
|
encodeFunctionData(functionFragment: 'sharesFor', values: [AddressLike]): string;
|
|
3257
|
+
encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string;
|
|
3258
|
+
encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [AddressLike, BytesLike]): string;
|
|
3259
|
+
decodeFunctionResult(functionFragment: 'DEFAULT_ADMIN_ROLE', data: BytesLike): Result;
|
|
3260
|
+
decodeFunctionResult(functionFragment: 'UPGRADER_ROLE', data: BytesLike): Result;
|
|
3261
|
+
decodeFunctionResult(functionFragment: 'UPGRADE_INTERFACE_VERSION', data: BytesLike): Result;
|
|
3262
|
+
decodeFunctionResult(functionFragment: 'getRoleAdmin', data: BytesLike): Result;
|
|
2867
3263
|
decodeFunctionResult(functionFragment: 'getShare', data: BytesLike): Result;
|
|
3264
|
+
decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result;
|
|
3265
|
+
decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result;
|
|
3266
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
2868
3267
|
decodeFunctionResult(functionFragment: 'isShareValid', data: BytesLike): Result;
|
|
3268
|
+
decodeFunctionResult(functionFragment: 'proxiableUUID', data: BytesLike): Result;
|
|
2869
3269
|
decodeFunctionResult(functionFragment: 'removeShare', data: BytesLike): Result;
|
|
3270
|
+
decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result;
|
|
3271
|
+
decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result;
|
|
2870
3272
|
decodeFunctionResult(functionFragment: 'share', data: BytesLike): Result;
|
|
2871
3273
|
decodeFunctionResult(functionFragment: 'sharesFor', data: BytesLike): Result;
|
|
3274
|
+
decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result;
|
|
3275
|
+
decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
|
|
3276
|
+
}
|
|
3277
|
+
declare namespace InitializedEvent$1 {
|
|
3278
|
+
type InputTuple = [version: BigNumberish];
|
|
3279
|
+
type OutputTuple = [version: bigint];
|
|
3280
|
+
interface OutputObject {
|
|
3281
|
+
version: bigint;
|
|
3282
|
+
}
|
|
3283
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3284
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3285
|
+
type Log = TypedEventLog<Event>;
|
|
3286
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3287
|
+
}
|
|
3288
|
+
declare namespace RoleAdminChangedEvent {
|
|
3289
|
+
type InputTuple = [role: BytesLike, previousAdminRole: BytesLike, newAdminRole: BytesLike];
|
|
3290
|
+
type OutputTuple = [role: string, previousAdminRole: string, newAdminRole: string];
|
|
3291
|
+
interface OutputObject {
|
|
3292
|
+
role: string;
|
|
3293
|
+
previousAdminRole: string;
|
|
3294
|
+
newAdminRole: string;
|
|
3295
|
+
}
|
|
3296
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3297
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3298
|
+
type Log = TypedEventLog<Event>;
|
|
3299
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3300
|
+
}
|
|
3301
|
+
declare namespace RoleGrantedEvent {
|
|
3302
|
+
type InputTuple = [role: BytesLike, account: AddressLike, sender: AddressLike];
|
|
3303
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
3304
|
+
interface OutputObject {
|
|
3305
|
+
role: string;
|
|
3306
|
+
account: string;
|
|
3307
|
+
sender: string;
|
|
3308
|
+
}
|
|
3309
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3310
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3311
|
+
type Log = TypedEventLog<Event>;
|
|
3312
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3313
|
+
}
|
|
3314
|
+
declare namespace RoleRevokedEvent {
|
|
3315
|
+
type InputTuple = [role: BytesLike, account: AddressLike, sender: AddressLike];
|
|
3316
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
3317
|
+
interface OutputObject {
|
|
3318
|
+
role: string;
|
|
3319
|
+
account: string;
|
|
3320
|
+
sender: string;
|
|
3321
|
+
}
|
|
3322
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3323
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3324
|
+
type Log = TypedEventLog<Event>;
|
|
3325
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2872
3326
|
}
|
|
2873
3327
|
declare namespace ShareRemovedEvent {
|
|
2874
3328
|
type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
|
|
@@ -2884,18 +3338,68 @@ declare namespace ShareRemovedEvent {
|
|
|
2884
3338
|
type LogDescription = TypedLogDescription<Event>;
|
|
2885
3339
|
}
|
|
2886
3340
|
declare namespace SharedEvent {
|
|
2887
|
-
type InputTuple = [
|
|
2888
|
-
|
|
3341
|
+
type InputTuple = [
|
|
3342
|
+
recipient: AddressLike,
|
|
3343
|
+
issuer: AddressLike,
|
|
3344
|
+
shareId: BytesLike,
|
|
3345
|
+
acp: ACPStruct$3,
|
|
3346
|
+
metadata: BytesLike
|
|
3347
|
+
];
|
|
3348
|
+
type OutputTuple = [
|
|
3349
|
+
recipient: string,
|
|
3350
|
+
issuer: string,
|
|
3351
|
+
shareId: string,
|
|
3352
|
+
acp: ACPStructOutput,
|
|
3353
|
+
metadata: string
|
|
3354
|
+
];
|
|
2889
3355
|
interface OutputObject {
|
|
2890
3356
|
recipient: string;
|
|
2891
3357
|
issuer: string;
|
|
2892
3358
|
shareId: string;
|
|
3359
|
+
acp: ACPStructOutput;
|
|
3360
|
+
metadata: string;
|
|
3361
|
+
}
|
|
3362
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3363
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3364
|
+
type Log = TypedEventLog<Event>;
|
|
3365
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3366
|
+
}
|
|
3367
|
+
declare namespace UpgradedEvent$1 {
|
|
3368
|
+
type InputTuple = [implementation: AddressLike];
|
|
3369
|
+
type OutputTuple = [implementation: string];
|
|
3370
|
+
interface OutputObject {
|
|
3371
|
+
implementation: string;
|
|
2893
3372
|
}
|
|
2894
3373
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2895
3374
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2896
3375
|
type Log = TypedEventLog<Event>;
|
|
2897
3376
|
type LogDescription = TypedLogDescription<Event>;
|
|
2898
3377
|
}
|
|
3378
|
+
declare namespace ACPShareRegistry {
|
|
3379
|
+
type ShareHeaderStruct = {
|
|
3380
|
+
issuer: AddressLike;
|
|
3381
|
+
expiration: BigNumberish;
|
|
3382
|
+
recipient: AddressLike;
|
|
3383
|
+
blockNumber: BigNumberish;
|
|
3384
|
+
revokerContract: AddressLike;
|
|
3385
|
+
revokerData: BigNumberish;
|
|
3386
|
+
};
|
|
3387
|
+
type ShareHeaderStructOutput = [
|
|
3388
|
+
issuer: string,
|
|
3389
|
+
expiration: bigint,
|
|
3390
|
+
recipient: string,
|
|
3391
|
+
blockNumber: bigint,
|
|
3392
|
+
revokerContract: string,
|
|
3393
|
+
revokerData: bigint
|
|
3394
|
+
] & {
|
|
3395
|
+
issuer: string;
|
|
3396
|
+
expiration: bigint;
|
|
3397
|
+
recipient: string;
|
|
3398
|
+
blockNumber: bigint;
|
|
3399
|
+
revokerContract: string;
|
|
3400
|
+
revokerData: bigint;
|
|
3401
|
+
};
|
|
3402
|
+
}
|
|
2899
3403
|
interface ACPShareRegistry extends BaseContract {
|
|
2900
3404
|
connect(runner?: ContractRunner | null): ACPShareRegistry;
|
|
2901
3405
|
waitForDeployment(): Promise<this>;
|
|
@@ -2909,24 +3413,83 @@ interface ACPShareRegistry extends BaseContract {
|
|
|
2909
3413
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2910
3414
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2911
3415
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2912
|
-
|
|
3416
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], 'view'>;
|
|
3417
|
+
UPGRADER_ROLE: TypedContractMethod<[], [string], 'view'>;
|
|
3418
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], 'view'>;
|
|
3419
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], 'view'>;
|
|
3420
|
+
getShare: TypedContractMethod<[shareId: BytesLike], [ACPShareRegistry.ShareHeaderStructOutput], 'view'>;
|
|
3421
|
+
grantRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3422
|
+
hasRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [boolean], 'view'>;
|
|
3423
|
+
initialize: TypedContractMethod<[initialAdmin: AddressLike], [void], 'nonpayable'>;
|
|
2913
3424
|
isShareValid: TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
|
|
3425
|
+
proxiableUUID: TypedContractMethod<[], [string], 'view'>;
|
|
2914
3426
|
removeShare: TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
|
|
2915
|
-
|
|
2916
|
-
|
|
3427
|
+
renounceRole: TypedContractMethod<[role: BytesLike, callerConfirmation: AddressLike], [void], 'nonpayable'>;
|
|
3428
|
+
revokeRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3429
|
+
share: TypedContractMethod<[acp: ACPStruct$3, metadata: BytesLike], [string], 'nonpayable'>;
|
|
3430
|
+
sharesFor: TypedContractMethod<[
|
|
3431
|
+
recipient: AddressLike
|
|
3432
|
+
], [
|
|
3433
|
+
[
|
|
3434
|
+
string[],
|
|
3435
|
+
ACPShareRegistry.ShareHeaderStructOutput[]
|
|
3436
|
+
] & {
|
|
3437
|
+
shareIds: string[];
|
|
3438
|
+
headers: ACPShareRegistry.ShareHeaderStructOutput[];
|
|
3439
|
+
}
|
|
3440
|
+
], 'view'>;
|
|
3441
|
+
supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>;
|
|
3442
|
+
upgradeToAndCall: TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], 'payable'>;
|
|
2917
3443
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2918
|
-
getFunction(nameOrSignature: '
|
|
3444
|
+
getFunction(nameOrSignature: 'DEFAULT_ADMIN_ROLE'): TypedContractMethod<[], [string], 'view'>;
|
|
3445
|
+
getFunction(nameOrSignature: 'UPGRADER_ROLE'): TypedContractMethod<[], [string], 'view'>;
|
|
3446
|
+
getFunction(nameOrSignature: 'UPGRADE_INTERFACE_VERSION'): TypedContractMethod<[], [string], 'view'>;
|
|
3447
|
+
getFunction(nameOrSignature: 'getRoleAdmin'): TypedContractMethod<[role: BytesLike], [string], 'view'>;
|
|
3448
|
+
getFunction(nameOrSignature: 'getShare'): TypedContractMethod<[shareId: BytesLike], [ACPShareRegistry.ShareHeaderStructOutput], 'view'>;
|
|
3449
|
+
getFunction(nameOrSignature: 'grantRole'): TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3450
|
+
getFunction(nameOrSignature: 'hasRole'): TypedContractMethod<[role: BytesLike, account: AddressLike], [boolean], 'view'>;
|
|
3451
|
+
getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[initialAdmin: AddressLike], [void], 'nonpayable'>;
|
|
2919
3452
|
getFunction(nameOrSignature: 'isShareValid'): TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
|
|
3453
|
+
getFunction(nameOrSignature: 'proxiableUUID'): TypedContractMethod<[], [string], 'view'>;
|
|
2920
3454
|
getFunction(nameOrSignature: 'removeShare'): TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
|
|
2921
|
-
getFunction(nameOrSignature: '
|
|
2922
|
-
getFunction(nameOrSignature: '
|
|
3455
|
+
getFunction(nameOrSignature: 'renounceRole'): TypedContractMethod<[role: BytesLike, callerConfirmation: AddressLike], [void], 'nonpayable'>;
|
|
3456
|
+
getFunction(nameOrSignature: 'revokeRole'): TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
|
|
3457
|
+
getFunction(nameOrSignature: 'share'): TypedContractMethod<[acp: ACPStruct$3, metadata: BytesLike], [string], 'nonpayable'>;
|
|
3458
|
+
getFunction(nameOrSignature: 'sharesFor'): TypedContractMethod<[
|
|
3459
|
+
recipient: AddressLike
|
|
3460
|
+
], [
|
|
3461
|
+
[
|
|
3462
|
+
string[],
|
|
3463
|
+
ACPShareRegistry.ShareHeaderStructOutput[]
|
|
3464
|
+
] & {
|
|
3465
|
+
shareIds: string[];
|
|
3466
|
+
headers: ACPShareRegistry.ShareHeaderStructOutput[];
|
|
3467
|
+
}
|
|
3468
|
+
], 'view'>;
|
|
3469
|
+
getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>;
|
|
3470
|
+
getFunction(nameOrSignature: 'upgradeToAndCall'): TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], 'payable'>;
|
|
3471
|
+
getEvent(key: 'Initialized'): TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
3472
|
+
getEvent(key: 'RoleAdminChanged'): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3473
|
+
getEvent(key: 'RoleGranted'): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3474
|
+
getEvent(key: 'RoleRevoked'): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
2923
3475
|
getEvent(key: 'ShareRemoved'): TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
|
|
2924
3476
|
getEvent(key: 'Shared'): TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
3477
|
+
getEvent(key: 'Upgraded'): TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
2925
3478
|
filters: {
|
|
3479
|
+
'Initialized(uint64)': TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
3480
|
+
Initialized: TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
3481
|
+
'RoleAdminChanged(bytes32,bytes32,bytes32)': TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3482
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3483
|
+
'RoleGranted(bytes32,address,address)': TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3484
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3485
|
+
'RoleRevoked(bytes32,address,address)': TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
3486
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
2926
3487
|
'ShareRemoved(address,address,bytes32)': TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
|
|
2927
3488
|
ShareRemoved: TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
|
|
2928
|
-
'Shared(address,address,bytes32)': TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
3489
|
+
'Shared(address,address,bytes32,tuple,bytes)': TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
2929
3490
|
Shared: TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
|
|
3491
|
+
'Upgraded(address)': TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
3492
|
+
Upgraded: TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
2930
3493
|
};
|
|
2931
3494
|
}
|
|
2932
3495
|
|
|
@@ -3017,7 +3580,7 @@ type ACPStruct$2 = {
|
|
|
3017
3580
|
};
|
|
3018
3581
|
interface MockACLInterface extends Interface {
|
|
3019
3582
|
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;
|
|
3020
|
-
getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'NewDelegation' | 'ShareRegistryUpdated' | 'TaskManagerUpdated'): EventFragment;
|
|
3583
|
+
getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'Initialized' | 'NewDelegation' | 'ShareRegistryUpdated' | 'TaskManagerUpdated'): EventFragment;
|
|
3021
3584
|
encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
3022
3585
|
encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
|
|
3023
3586
|
encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish, AddressLike]): string;
|
|
@@ -3104,6 +3667,17 @@ declare namespace EIP712DomainChangedEvent {
|
|
|
3104
3667
|
type Log = TypedEventLog<Event>;
|
|
3105
3668
|
type LogDescription = TypedLogDescription<Event>;
|
|
3106
3669
|
}
|
|
3670
|
+
declare namespace InitializedEvent {
|
|
3671
|
+
type InputTuple = [version: BigNumberish];
|
|
3672
|
+
type OutputTuple = [version: bigint];
|
|
3673
|
+
interface OutputObject {
|
|
3674
|
+
version: bigint;
|
|
3675
|
+
}
|
|
3676
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3677
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3678
|
+
type Log = TypedEventLog<Event>;
|
|
3679
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3680
|
+
}
|
|
3107
3681
|
declare namespace NewDelegationEvent {
|
|
3108
3682
|
type InputTuple = [sender: AddressLike, delegatee: AddressLike, contractAddress: AddressLike];
|
|
3109
3683
|
type OutputTuple = [sender: string, delegatee: string, contractAddress: string];
|
|
@@ -3292,6 +3866,7 @@ interface MockACL extends BaseContract {
|
|
|
3292
3866
|
getEvent(key: 'AllowedForDecryption'): TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
3293
3867
|
getEvent(key: 'DefaultRevokerContractUpdated'): TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
|
|
3294
3868
|
getEvent(key: 'EIP712DomainChanged'): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
3869
|
+
getEvent(key: 'Initialized'): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3295
3870
|
getEvent(key: 'NewDelegation'): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
3296
3871
|
getEvent(key: 'ShareRegistryUpdated'): TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
|
|
3297
3872
|
getEvent(key: 'TaskManagerUpdated'): TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
|
|
@@ -3302,6 +3877,8 @@ interface MockACL extends BaseContract {
|
|
|
3302
3877
|
DefaultRevokerContractUpdated: TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
|
|
3303
3878
|
'EIP712DomainChanged()': TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
3304
3879
|
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
3880
|
+
'Initialized(uint64)': TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3881
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3305
3882
|
'NewDelegation(address,address,address)': TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
3306
3883
|
NewDelegation: TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
3307
3884
|
'ShareRegistryUpdated(address,address)': TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
|
|
@@ -3365,6 +3942,41 @@ interface MockCoFHEAddressBook extends BaseContract {
|
|
|
3365
3942
|
};
|
|
3366
3943
|
}
|
|
3367
3944
|
|
|
3945
|
+
interface MockERC1967ProxyInterface extends Interface {
|
|
3946
|
+
getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
|
|
3947
|
+
}
|
|
3948
|
+
declare namespace UpgradedEvent {
|
|
3949
|
+
type InputTuple = [implementation: AddressLike];
|
|
3950
|
+
type OutputTuple = [implementation: string];
|
|
3951
|
+
interface OutputObject {
|
|
3952
|
+
implementation: string;
|
|
3953
|
+
}
|
|
3954
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3955
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3956
|
+
type Log = TypedEventLog<Event>;
|
|
3957
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
3958
|
+
}
|
|
3959
|
+
interface MockERC1967Proxy extends BaseContract {
|
|
3960
|
+
connect(runner?: ContractRunner | null): MockERC1967Proxy;
|
|
3961
|
+
waitForDeployment(): Promise<this>;
|
|
3962
|
+
interface: MockERC1967ProxyInterface;
|
|
3963
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3964
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3965
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3966
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3967
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3968
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3969
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3970
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3971
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
3972
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3973
|
+
getEvent(key: 'Upgraded'): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3974
|
+
filters: {
|
|
3975
|
+
'Upgraded(address)': TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3976
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3977
|
+
};
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3368
3980
|
type UnsignedEncryptedInputStruct = {
|
|
3369
3981
|
ctHash: BigNumberish;
|
|
3370
3982
|
securityZone: BigNumberish;
|
|
@@ -4094,4 +4706,4 @@ interface MockZkVerifier extends BaseContract {
|
|
|
4094
4706
|
filters: {};
|
|
4095
4707
|
}
|
|
4096
4708
|
|
|
4097
|
-
export {
|
|
4709
|
+
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 };
|