@cofhe/mock-contracts 0.8.0 → 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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, BytesLike, AddressLike, BigNumberish, Result, Listener, ContractMethod } from 'ethers';
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;
@@ -1101,10 +1101,6 @@ declare const MockTaskManagerArtifact: {
1101
1101
  readonly type: "string";
1102
1102
  readonly internalType: "string";
1103
1103
  }];
1104
- }, {
1105
- readonly type: "error";
1106
- readonly name: "NotImplemented";
1107
- readonly inputs: readonly [];
1108
1104
  }, {
1109
1105
  readonly type: "error";
1110
1106
  readonly name: "OnlyAggregatorAllowed";
@@ -1675,6 +1671,16 @@ declare const MockACLArtifact: {
1675
1671
  readonly name: "EIP712DomainChanged";
1676
1672
  readonly inputs: readonly [];
1677
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;
1678
1684
  }, {
1679
1685
  readonly type: "event";
1680
1686
  readonly name: "NewDelegation";
@@ -1739,12 +1745,16 @@ declare const MockACLArtifact: {
1739
1745
  }];
1740
1746
  }, {
1741
1747
  readonly type: "error";
1742
- readonly name: "InvalidShortString";
1748
+ readonly name: "InvalidInitialization";
1743
1749
  readonly inputs: readonly [];
1744
1750
  }, {
1745
1751
  readonly type: "error";
1746
1752
  readonly name: "InvalidTaskManagerAddress";
1747
1753
  readonly inputs: readonly [];
1754
+ }, {
1755
+ readonly type: "error";
1756
+ readonly name: "NotInitializing";
1757
+ readonly inputs: readonly [];
1748
1758
  }, {
1749
1759
  readonly type: "error";
1750
1760
  readonly name: "NotShared";
@@ -1785,14 +1795,6 @@ declare const MockACLArtifact: {
1785
1795
  readonly type: "address";
1786
1796
  readonly internalType: "address";
1787
1797
  }];
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
1798
  }, {
1797
1799
  readonly type: "error";
1798
1800
  readonly name: "UnexpectedSharer";
@@ -1914,6 +1916,54 @@ declare const ACPShareRegistryArtifact: {
1914
1916
  readonly contractName: "ACPShareRegistry";
1915
1917
  readonly isFixed: false;
1916
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
+ }, {
1917
1967
  readonly type: "function";
1918
1968
  readonly name: "getShare";
1919
1969
  readonly inputs: readonly [{
@@ -1924,7 +1974,7 @@ declare const ACPShareRegistryArtifact: {
1924
1974
  readonly outputs: readonly [{
1925
1975
  readonly name: "";
1926
1976
  readonly type: "tuple";
1927
- readonly internalType: "struct ACP";
1977
+ readonly internalType: "struct ACPShareRegistry.ShareHeader";
1928
1978
  readonly components: readonly [{
1929
1979
  readonly name: "issuer";
1930
1980
  readonly type: "address";
@@ -1938,40 +1988,62 @@ declare const ACPShareRegistryArtifact: {
1938
1988
  readonly type: "address";
1939
1989
  readonly internalType: "address";
1940
1990
  }, {
1941
- readonly name: "revokerData";
1942
- readonly type: "uint256";
1943
- readonly internalType: "uint256";
1991
+ readonly name: "blockNumber";
1992
+ readonly type: "uint64";
1993
+ readonly internalType: "uint64";
1944
1994
  }, {
1945
1995
  readonly name: "revokerContract";
1946
1996
  readonly type: "address";
1947
1997
  readonly internalType: "address";
1948
1998
  }, {
1949
- readonly name: "scope";
1950
- readonly type: "uint8";
1951
- readonly internalType: "uint8";
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";
1999
+ readonly name: "revokerData";
2000
+ readonly type: "uint256";
2001
+ readonly internalType: "uint256";
1972
2002
  }];
1973
2003
  }];
1974
2004
  readonly stateMutability: "view";
2005
+ }, {
2006
+ readonly type: "function";
2007
+ readonly name: "grantRole";
2008
+ readonly inputs: readonly [{
2009
+ readonly name: "role";
2010
+ readonly type: "bytes32";
2011
+ readonly internalType: "bytes32";
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";
1975
2047
  }, {
1976
2048
  readonly type: "function";
1977
2049
  readonly name: "isShareValid";
@@ -1986,6 +2058,16 @@ declare const ACPShareRegistryArtifact: {
1986
2058
  readonly internalType: "bool";
1987
2059
  }];
1988
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";
1989
2071
  }, {
1990
2072
  readonly type: "function";
1991
2073
  readonly name: "removeShare";
@@ -1996,6 +2078,34 @@ declare const ACPShareRegistryArtifact: {
1996
2078
  }];
1997
2079
  readonly outputs: readonly [];
1998
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";
1999
2109
  }, {
2000
2110
  readonly type: "function";
2001
2111
  readonly name: "share";
@@ -2048,6 +2158,10 @@ declare const ACPShareRegistryArtifact: {
2048
2158
  readonly type: "bytes";
2049
2159
  readonly internalType: "bytes";
2050
2160
  }];
2161
+ }, {
2162
+ readonly name: "metadata";
2163
+ readonly type: "bytes";
2164
+ readonly internalType: "bytes";
2051
2165
  }];
2052
2166
  readonly outputs: readonly [{
2053
2167
  readonly name: "shareId";
@@ -2064,9 +2178,181 @@ declare const ACPShareRegistryArtifact: {
2064
2178
  readonly internalType: "address";
2065
2179
  }];
2066
2180
  readonly outputs: readonly [{
2067
- readonly name: "acps";
2181
+ readonly name: "shareIds";
2182
+ readonly type: "bytes32[]";
2183
+ readonly internalType: "bytes32[]";
2184
+ }, {
2185
+ readonly name: "headers";
2068
2186
  readonly type: "tuple[]";
2069
- readonly internalType: "struct ACP[]";
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";
2070
2356
  readonly components: readonly [{
2071
2357
  readonly name: "issuer";
2072
2358
  readonly type: "address";
@@ -2112,56 +2398,79 @@ declare const ACPShareRegistryArtifact: {
2112
2398
  readonly type: "bytes";
2113
2399
  readonly internalType: "bytes";
2114
2400
  }];
2401
+ }, {
2402
+ readonly name: "metadata";
2403
+ readonly type: "bytes";
2404
+ readonly indexed: false;
2405
+ readonly internalType: "bytes";
2115
2406
  }];
2116
- readonly stateMutability: "view";
2407
+ readonly anonymous: false;
2117
2408
  }, {
2118
2409
  readonly type: "event";
2119
- readonly name: "ShareRemoved";
2410
+ readonly name: "Upgraded";
2120
2411
  readonly inputs: readonly [{
2121
- readonly name: "recipient";
2412
+ readonly name: "implementation";
2122
2413
  readonly type: "address";
2123
2414
  readonly indexed: true;
2124
2415
  readonly internalType: "address";
2125
- }, {
2126
- readonly name: "issuer";
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";
2127
2427
  readonly type: "address";
2128
- readonly indexed: true;
2129
2428
  readonly internalType: "address";
2130
2429
  }, {
2131
- readonly name: "shareId";
2430
+ readonly name: "neededRole";
2132
2431
  readonly type: "bytes32";
2133
- readonly indexed: false;
2134
2432
  readonly internalType: "bytes32";
2135
2433
  }];
2136
- readonly anonymous: false;
2137
2434
  }, {
2138
- readonly type: "event";
2139
- readonly name: "Shared";
2435
+ readonly type: "error";
2436
+ readonly name: "AddressEmptyCode";
2140
2437
  readonly inputs: readonly [{
2141
- readonly name: "recipient";
2438
+ readonly name: "target";
2142
2439
  readonly type: "address";
2143
- readonly indexed: true;
2144
2440
  readonly internalType: "address";
2145
- }, {
2146
- readonly name: "issuer";
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";
2147
2451
  readonly type: "address";
2148
- readonly indexed: true;
2149
2452
  readonly internalType: "address";
2150
- }, {
2151
- readonly name: "shareId";
2152
- readonly type: "bytes32";
2153
- readonly indexed: false;
2154
- readonly internalType: "bytes32";
2155
2453
  }];
2156
- readonly anonymous: false;
2157
2454
  }, {
2158
2455
  readonly type: "error";
2159
- readonly name: "AlreadyShared";
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";
2160
2465
  readonly inputs: readonly [];
2161
2466
  }, {
2162
2467
  readonly type: "error";
2163
2468
  readonly name: "IssuerSignatureMissing";
2164
2469
  readonly inputs: readonly [];
2470
+ }, {
2471
+ readonly type: "error";
2472
+ readonly name: "NotInitializing";
2473
+ readonly inputs: readonly [];
2165
2474
  }, {
2166
2475
  readonly type: "error";
2167
2476
  readonly name: "NotIssuer";
@@ -2182,6 +2491,18 @@ declare const ACPShareRegistryArtifact: {
2182
2491
  readonly type: "error";
2183
2492
  readonly name: "ShareExpired";
2184
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
+ }];
2185
2506
  }, {
2186
2507
  readonly type: "error";
2187
2508
  readonly name: "UnknownShare";
@@ -2189,6 +2510,61 @@ declare const ACPShareRegistryArtifact: {
2189
2510
  }];
2190
2511
  };
2191
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
+
2192
2568
  declare const MockZkVerifierArtifact: {
2193
2569
  readonly contractName: "MockZkVerifier";
2194
2570
  readonly isFixed: true;
@@ -2857,18 +3233,92 @@ type ACPStructOutput = [
2857
3233
  recipientSignature: string;
2858
3234
  };
2859
3235
  interface ACPShareRegistryInterface extends Interface {
2860
- getFunction(nameOrSignature: 'getShare' | 'isShareValid' | 'removeShare' | 'share' | 'sharesFor'): FunctionFragment;
2861
- 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;
2862
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;
2863
3246
  encodeFunctionData(functionFragment: 'isShareValid', values: [BytesLike]): string;
3247
+ encodeFunctionData(functionFragment: 'proxiableUUID', values?: undefined): string;
2864
3248
  encodeFunctionData(functionFragment: 'removeShare', values: [BytesLike]): string;
2865
- encodeFunctionData(functionFragment: 'share', values: [ACPStruct$3]): string;
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;
2866
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;
2867
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;
2868
3263
  decodeFunctionResult(functionFragment: 'isShareValid', data: BytesLike): Result;
3264
+ decodeFunctionResult(functionFragment: 'proxiableUUID', data: BytesLike): Result;
2869
3265
  decodeFunctionResult(functionFragment: 'removeShare', data: BytesLike): Result;
3266
+ decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result;
3267
+ decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result;
2870
3268
  decodeFunctionResult(functionFragment: 'share', data: BytesLike): Result;
2871
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>;
2872
3322
  }
2873
3323
  declare namespace ShareRemovedEvent {
2874
3324
  type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
@@ -2884,18 +3334,68 @@ declare namespace ShareRemovedEvent {
2884
3334
  type LogDescription = TypedLogDescription<Event>;
2885
3335
  }
2886
3336
  declare namespace SharedEvent {
2887
- type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
2888
- type OutputTuple = [recipient: string, issuer: string, shareId: string];
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
+ ];
2889
3351
  interface OutputObject {
2890
3352
  recipient: string;
2891
3353
  issuer: string;
2892
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;
2893
3368
  }
2894
3369
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
2895
3370
  type Filter = TypedDeferredTopicFilter<Event>;
2896
3371
  type Log = TypedEventLog<Event>;
2897
3372
  type LogDescription = TypedLogDescription<Event>;
2898
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
+ }
2899
3399
  interface ACPShareRegistry extends BaseContract {
2900
3400
  connect(runner?: ContractRunner | null): ACPShareRegistry;
2901
3401
  waitForDeployment(): Promise<this>;
@@ -2909,24 +3409,83 @@ interface ACPShareRegistry extends BaseContract {
2909
3409
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
2910
3410
  listeners(eventName?: string): Promise<Array<Listener>>;
2911
3411
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
2912
- getShare: TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
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'>;
2913
3420
  isShareValid: TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
3421
+ proxiableUUID: TypedContractMethod<[], [string], 'view'>;
2914
3422
  removeShare: TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
2915
- share: TypedContractMethod<[acp: ACPStruct$3], [string], 'nonpayable'>;
2916
- sharesFor: TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
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'>;
2917
3439
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2918
- getFunction(nameOrSignature: 'getShare'): TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
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'>;
2919
3448
  getFunction(nameOrSignature: 'isShareValid'): TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
3449
+ getFunction(nameOrSignature: 'proxiableUUID'): TypedContractMethod<[], [string], 'view'>;
2920
3450
  getFunction(nameOrSignature: 'removeShare'): TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
2921
- getFunction(nameOrSignature: 'share'): TypedContractMethod<[acp: ACPStruct$3], [string], 'nonpayable'>;
2922
- getFunction(nameOrSignature: 'sharesFor'): TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
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>;
2923
3471
  getEvent(key: 'ShareRemoved'): TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
2924
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>;
2925
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>;
2926
3483
  'ShareRemoved(address,address,bytes32)': TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
2927
3484
  ShareRemoved: TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
2928
- '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>;
2929
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>;
2930
3489
  };
2931
3490
  }
2932
3491
 
@@ -3017,7 +3576,7 @@ type ACPStruct$2 = {
3017
3576
  };
3018
3577
  interface MockACLInterface extends Interface {
3019
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;
3020
- getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'NewDelegation' | 'ShareRegistryUpdated' | 'TaskManagerUpdated'): EventFragment;
3579
+ getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'Initialized' | 'NewDelegation' | 'ShareRegistryUpdated' | 'TaskManagerUpdated'): EventFragment;
3021
3580
  encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
3022
3581
  encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
3023
3582
  encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish, AddressLike]): string;
@@ -3104,6 +3663,17 @@ declare namespace EIP712DomainChangedEvent {
3104
3663
  type Log = TypedEventLog<Event>;
3105
3664
  type LogDescription = TypedLogDescription<Event>;
3106
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
+ }
3107
3677
  declare namespace NewDelegationEvent {
3108
3678
  type InputTuple = [sender: AddressLike, delegatee: AddressLike, contractAddress: AddressLike];
3109
3679
  type OutputTuple = [sender: string, delegatee: string, contractAddress: string];
@@ -3292,6 +3862,7 @@ interface MockACL extends BaseContract {
3292
3862
  getEvent(key: 'AllowedForDecryption'): TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
3293
3863
  getEvent(key: 'DefaultRevokerContractUpdated'): TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
3294
3864
  getEvent(key: 'EIP712DomainChanged'): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
3865
+ getEvent(key: 'Initialized'): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
3295
3866
  getEvent(key: 'NewDelegation'): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3296
3867
  getEvent(key: 'ShareRegistryUpdated'): TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
3297
3868
  getEvent(key: 'TaskManagerUpdated'): TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
@@ -3302,6 +3873,8 @@ interface MockACL extends BaseContract {
3302
3873
  DefaultRevokerContractUpdated: TypedContractEvent<DefaultRevokerContractUpdatedEvent.InputTuple, DefaultRevokerContractUpdatedEvent.OutputTuple, DefaultRevokerContractUpdatedEvent.OutputObject>;
3303
3874
  'EIP712DomainChanged()': TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
3304
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>;
3305
3878
  'NewDelegation(address,address,address)': TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3306
3879
  NewDelegation: TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3307
3880
  'ShareRegistryUpdated(address,address)': TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
@@ -3365,6 +3938,41 @@ interface MockCoFHEAddressBook extends BaseContract {
3365
3938
  };
3366
3939
  }
3367
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>;
3973
+ };
3974
+ }
3975
+
3368
3976
  type UnsignedEncryptedInputStruct = {
3369
3977
  ctHash: BigNumberish;
3370
3978
  securityZone: BigNumberish;
@@ -4094,4 +4702,4 @@ interface MockZkVerifier extends BaseContract {
4094
4702
  filters: {};
4095
4703
  }
4096
4704
 
4097
- export { type ACPShareRegistry, ACPShareRegistryArtifact, type ACPTimestampRevoker, ACPTimestampRevokerArtifact, type MockACL, MockACLArtifact, type MockArtifact, type MockCoFHEAddressBook, MockCoFHEAddressBookArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };
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 };