@cofhe/mock-contracts 0.7.1 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,16 +1,157 @@
1
1
  'use strict';
2
2
 
3
+ // src/MockCoFHEAddressBook.ts
4
+ var MockCoFHEAddressBookArtifact = {
5
+ contractName: "MockCoFHEAddressBook",
6
+ isFixed: true,
7
+ fixedAddress: "0xC0F4e00E531a2B086492Ae3DCC1515038307196b",
8
+ abi: [
9
+ {
10
+ type: "function",
11
+ name: "exists",
12
+ inputs: [],
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "bool",
17
+ internalType: "bool"
18
+ }
19
+ ],
20
+ stateMutability: "pure"
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "getTm",
25
+ inputs: [
26
+ {
27
+ name: "id",
28
+ type: "uint256",
29
+ internalType: "uint256"
30
+ }
31
+ ],
32
+ outputs: [
33
+ {
34
+ name: "tm",
35
+ type: "address",
36
+ internalType: "address"
37
+ }
38
+ ],
39
+ stateMutability: "view"
40
+ },
41
+ {
42
+ type: "function",
43
+ name: "setTm",
44
+ inputs: [
45
+ {
46
+ name: "id",
47
+ type: "uint256",
48
+ internalType: "uint256"
49
+ },
50
+ {
51
+ name: "tm",
52
+ type: "address",
53
+ internalType: "address"
54
+ }
55
+ ],
56
+ outputs: [],
57
+ stateMutability: "nonpayable"
58
+ },
59
+ {
60
+ type: "function",
61
+ name: "unsetTm",
62
+ inputs: [
63
+ {
64
+ name: "id",
65
+ type: "uint256",
66
+ internalType: "uint256"
67
+ }
68
+ ],
69
+ outputs: [],
70
+ stateMutability: "nonpayable"
71
+ },
72
+ {
73
+ type: "event",
74
+ name: "TaskManagerSet",
75
+ inputs: [
76
+ {
77
+ name: "id",
78
+ type: "uint256",
79
+ indexed: true,
80
+ internalType: "uint256"
81
+ },
82
+ {
83
+ name: "previous",
84
+ type: "address",
85
+ indexed: true,
86
+ internalType: "address"
87
+ },
88
+ {
89
+ name: "current",
90
+ type: "address",
91
+ indexed: true,
92
+ internalType: "address"
93
+ }
94
+ ],
95
+ anonymous: false
96
+ },
97
+ {
98
+ type: "error",
99
+ name: "InvalidAddress",
100
+ inputs: []
101
+ },
102
+ {
103
+ type: "error",
104
+ name: "TaskManagerNotSet",
105
+ inputs: [
106
+ {
107
+ name: "id",
108
+ type: "uint256",
109
+ internalType: "uint256"
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ };
115
+
3
116
  // src/MockTaskManager.ts
4
117
  var MockTaskManagerArtifact = {
5
118
  contractName: "MockTaskManager",
6
119
  isFixed: true,
7
- fixedAddress: "0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9",
120
+ fixedAddress: "0x0000000000000000000000000000000000005000",
8
121
  abi: [
9
122
  {
10
123
  type: "constructor",
11
124
  inputs: [],
12
125
  stateMutability: "nonpayable"
13
126
  },
127
+ {
128
+ type: "function",
129
+ name: "MOCK_dispatchOperation",
130
+ inputs: [
131
+ {
132
+ name: "ctHash",
133
+ type: "uint256",
134
+ internalType: "uint256"
135
+ },
136
+ {
137
+ name: "funcId",
138
+ type: "uint8",
139
+ internalType: "enum FunctionId"
140
+ },
141
+ {
142
+ name: "inputs",
143
+ type: "uint256[]",
144
+ internalType: "uint256[]"
145
+ },
146
+ {
147
+ name: "arity",
148
+ type: "uint8",
149
+ internalType: "uint8"
150
+ }
151
+ ],
152
+ outputs: [],
153
+ stateMutability: "nonpayable"
154
+ },
14
155
  {
15
156
  type: "function",
16
157
  name: "MOCK_logAllow",
@@ -564,6 +705,19 @@ var MockTaskManagerArtifact = {
564
705
  ],
565
706
  stateMutability: "view"
566
707
  },
708
+ {
709
+ type: "function",
710
+ name: "mockGasExcluded",
711
+ inputs: [],
712
+ outputs: [
713
+ {
714
+ name: "",
715
+ type: "bool",
716
+ internalType: "bool"
717
+ }
718
+ ],
719
+ stateMutability: "view"
720
+ },
567
721
  {
568
722
  type: "function",
569
723
  name: "mockStorage",
@@ -718,6 +872,19 @@ var MockTaskManagerArtifact = {
718
872
  outputs: [],
719
873
  stateMutability: "nonpayable"
720
874
  },
875
+ {
876
+ type: "function",
877
+ name: "setMockGasExcluded",
878
+ inputs: [
879
+ {
880
+ name: "_mockGasExcluded",
881
+ type: "bool",
882
+ internalType: "bool"
883
+ }
884
+ ],
885
+ outputs: [],
886
+ stateMutability: "nonpayable"
887
+ },
721
888
  {
722
889
  type: "function",
723
890
  name: "setSecurityZoneMax",
@@ -963,6 +1130,19 @@ var MockTaskManagerArtifact = {
963
1130
  ],
964
1131
  anonymous: false
965
1132
  },
1133
+ {
1134
+ type: "event",
1135
+ name: "MockGasConsumed",
1136
+ inputs: [
1137
+ {
1138
+ name: "gas",
1139
+ type: "uint256",
1140
+ indexed: false,
1141
+ internalType: "uint256"
1142
+ }
1143
+ ],
1144
+ anonymous: false
1145
+ },
966
1146
  {
967
1147
  type: "event",
968
1148
  name: "ProtocolNotification",
@@ -1245,11 +1425,6 @@ var MockTaskManagerArtifact = {
1245
1425
  }
1246
1426
  ]
1247
1427
  },
1248
- {
1249
- type: "error",
1250
- name: "NotImplemented",
1251
- inputs: []
1252
- },
1253
1428
  {
1254
1429
  type: "error",
1255
1430
  name: "OnlyAggregatorAllowed",
@@ -1272,6 +1447,11 @@ var MockTaskManagerArtifact = {
1272
1447
  }
1273
1448
  ]
1274
1449
  },
1450
+ {
1451
+ type: "error",
1452
+ name: "OnlySelf",
1453
+ inputs: []
1454
+ },
1275
1455
  {
1276
1456
  type: "error",
1277
1457
  name: "RandomFunctionNotSupported",
@@ -1327,19 +1507,6 @@ var MockACLArtifact = {
1327
1507
  inputs: [],
1328
1508
  stateMutability: "nonpayable"
1329
1509
  },
1330
- {
1331
- type: "function",
1332
- name: "TASK_MANAGER_ADDRESS_",
1333
- inputs: [],
1334
- outputs: [
1335
- {
1336
- name: "",
1337
- type: "address",
1338
- internalType: "address"
1339
- }
1340
- ],
1341
- stateMutability: "view"
1342
- },
1343
1510
  {
1344
1511
  type: "function",
1345
1512
  name: "allow",
@@ -1911,6 +2078,19 @@ var MockACLArtifact = {
1911
2078
  outputs: [],
1912
2079
  stateMutability: "nonpayable"
1913
2080
  },
2081
+ {
2082
+ type: "function",
2083
+ name: "setTaskManager",
2084
+ inputs: [
2085
+ {
2086
+ name: "newAddress",
2087
+ type: "address",
2088
+ internalType: "address"
2089
+ }
2090
+ ],
2091
+ outputs: [],
2092
+ stateMutability: "nonpayable"
2093
+ },
1914
2094
  {
1915
2095
  type: "function",
1916
2096
  name: "shareCtHash",
@@ -1985,6 +2165,19 @@ var MockACLArtifact = {
1985
2165
  inputs: [],
1986
2166
  anonymous: false
1987
2167
  },
2168
+ {
2169
+ type: "event",
2170
+ name: "Initialized",
2171
+ inputs: [
2172
+ {
2173
+ name: "version",
2174
+ type: "uint64",
2175
+ indexed: false,
2176
+ internalType: "uint64"
2177
+ }
2178
+ ],
2179
+ anonymous: false
2180
+ },
1988
2181
  {
1989
2182
  type: "event",
1990
2183
  name: "NewDelegation",
@@ -2029,6 +2222,25 @@ var MockACLArtifact = {
2029
2222
  ],
2030
2223
  anonymous: false
2031
2224
  },
2225
+ {
2226
+ type: "event",
2227
+ name: "TaskManagerUpdated",
2228
+ inputs: [
2229
+ {
2230
+ name: "oldAddress",
2231
+ type: "address",
2232
+ indexed: false,
2233
+ internalType: "address"
2234
+ },
2235
+ {
2236
+ name: "newAddress",
2237
+ type: "address",
2238
+ indexed: false,
2239
+ internalType: "address"
2240
+ }
2241
+ ],
2242
+ anonymous: false
2243
+ },
2032
2244
  {
2033
2245
  type: "error",
2034
2246
  name: "AlreadyDelegated",
@@ -2047,7 +2259,17 @@ var MockACLArtifact = {
2047
2259
  },
2048
2260
  {
2049
2261
  type: "error",
2050
- name: "InvalidShortString",
2262
+ name: "InvalidInitialization",
2263
+ inputs: []
2264
+ },
2265
+ {
2266
+ type: "error",
2267
+ name: "InvalidTaskManagerAddress",
2268
+ inputs: []
2269
+ },
2270
+ {
2271
+ type: "error",
2272
+ name: "NotInitializing",
2051
2273
  inputs: []
2052
2274
  },
2053
2275
  {
@@ -2102,17 +2324,6 @@ var MockACLArtifact = {
2102
2324
  }
2103
2325
  ]
2104
2326
  },
2105
- {
2106
- type: "error",
2107
- name: "StringTooLong",
2108
- inputs: [
2109
- {
2110
- name: "str",
2111
- type: "string",
2112
- internalType: "string"
2113
- }
2114
- ]
2115
- },
2116
2327
  {
2117
2328
  type: "error",
2118
2329
  name: "UnexpectedSharer",
@@ -2270,21 +2481,84 @@ var ACPShareRegistryArtifact = {
2270
2481
  contractName: "ACPShareRegistry",
2271
2482
  isFixed: false,
2272
2483
  abi: [
2484
+ {
2485
+ type: "constructor",
2486
+ inputs: [],
2487
+ stateMutability: "nonpayable"
2488
+ },
2273
2489
  {
2274
2490
  type: "function",
2275
- name: "getShare",
2276
- inputs: [
2491
+ name: "DEFAULT_ADMIN_ROLE",
2492
+ inputs: [],
2493
+ outputs: [
2277
2494
  {
2278
- name: "shareId",
2495
+ name: "",
2279
2496
  type: "bytes32",
2280
2497
  internalType: "bytes32"
2281
2498
  }
2282
2499
  ],
2500
+ stateMutability: "view"
2501
+ },
2502
+ {
2503
+ type: "function",
2504
+ name: "UPGRADER_ROLE",
2505
+ inputs: [],
2283
2506
  outputs: [
2284
2507
  {
2285
2508
  name: "",
2286
- type: "tuple",
2287
- internalType: "struct ACP",
2509
+ type: "bytes32",
2510
+ internalType: "bytes32"
2511
+ }
2512
+ ],
2513
+ stateMutability: "view"
2514
+ },
2515
+ {
2516
+ type: "function",
2517
+ name: "UPGRADE_INTERFACE_VERSION",
2518
+ inputs: [],
2519
+ outputs: [
2520
+ {
2521
+ name: "",
2522
+ type: "string",
2523
+ internalType: "string"
2524
+ }
2525
+ ],
2526
+ stateMutability: "view"
2527
+ },
2528
+ {
2529
+ type: "function",
2530
+ name: "getRoleAdmin",
2531
+ inputs: [
2532
+ {
2533
+ name: "role",
2534
+ type: "bytes32",
2535
+ internalType: "bytes32"
2536
+ }
2537
+ ],
2538
+ outputs: [
2539
+ {
2540
+ name: "",
2541
+ type: "bytes32",
2542
+ internalType: "bytes32"
2543
+ }
2544
+ ],
2545
+ stateMutability: "view"
2546
+ },
2547
+ {
2548
+ type: "function",
2549
+ name: "getShare",
2550
+ inputs: [
2551
+ {
2552
+ name: "shareId",
2553
+ type: "bytes32",
2554
+ internalType: "bytes32"
2555
+ }
2556
+ ],
2557
+ outputs: [
2558
+ {
2559
+ name: "",
2560
+ type: "tuple",
2561
+ internalType: "struct ACPShareRegistry.ShareHeader",
2288
2562
  components: [
2289
2563
  {
2290
2564
  name: "issuer",
@@ -2302,9 +2576,9 @@ var ACPShareRegistryArtifact = {
2302
2576
  internalType: "address"
2303
2577
  },
2304
2578
  {
2305
- name: "revokerData",
2306
- type: "uint256",
2307
- internalType: "uint256"
2579
+ name: "blockNumber",
2580
+ type: "uint64",
2581
+ internalType: "uint64"
2308
2582
  },
2309
2583
  {
2310
2584
  name: "revokerContract",
@@ -2312,40 +2586,70 @@ var ACPShareRegistryArtifact = {
2312
2586
  internalType: "address"
2313
2587
  },
2314
2588
  {
2315
- name: "scope",
2316
- type: "uint8",
2317
- internalType: "uint8"
2318
- },
2319
- {
2320
- name: "contracts",
2321
- type: "address[]",
2322
- internalType: "address[]"
2323
- },
2324
- {
2325
- name: "handles",
2326
- type: "bytes32[]",
2327
- internalType: "bytes32[]"
2328
- },
2329
- {
2330
- name: "sealingKey",
2331
- type: "bytes32",
2332
- internalType: "bytes32"
2333
- },
2334
- {
2335
- name: "issuerSignature",
2336
- type: "bytes",
2337
- internalType: "bytes"
2338
- },
2339
- {
2340
- name: "recipientSignature",
2341
- type: "bytes",
2342
- internalType: "bytes"
2589
+ name: "revokerData",
2590
+ type: "uint256",
2591
+ internalType: "uint256"
2343
2592
  }
2344
2593
  ]
2345
2594
  }
2346
2595
  ],
2347
2596
  stateMutability: "view"
2348
2597
  },
2598
+ {
2599
+ type: "function",
2600
+ name: "grantRole",
2601
+ inputs: [
2602
+ {
2603
+ name: "role",
2604
+ type: "bytes32",
2605
+ internalType: "bytes32"
2606
+ },
2607
+ {
2608
+ name: "account",
2609
+ type: "address",
2610
+ internalType: "address"
2611
+ }
2612
+ ],
2613
+ outputs: [],
2614
+ stateMutability: "nonpayable"
2615
+ },
2616
+ {
2617
+ type: "function",
2618
+ name: "hasRole",
2619
+ inputs: [
2620
+ {
2621
+ name: "role",
2622
+ type: "bytes32",
2623
+ internalType: "bytes32"
2624
+ },
2625
+ {
2626
+ name: "account",
2627
+ type: "address",
2628
+ internalType: "address"
2629
+ }
2630
+ ],
2631
+ outputs: [
2632
+ {
2633
+ name: "",
2634
+ type: "bool",
2635
+ internalType: "bool"
2636
+ }
2637
+ ],
2638
+ stateMutability: "view"
2639
+ },
2640
+ {
2641
+ type: "function",
2642
+ name: "initialize",
2643
+ inputs: [
2644
+ {
2645
+ name: "initialAdmin",
2646
+ type: "address",
2647
+ internalType: "address"
2648
+ }
2649
+ ],
2650
+ outputs: [],
2651
+ stateMutability: "nonpayable"
2652
+ },
2349
2653
  {
2350
2654
  type: "function",
2351
2655
  name: "isShareValid",
@@ -2365,6 +2669,19 @@ var ACPShareRegistryArtifact = {
2365
2669
  ],
2366
2670
  stateMutability: "view"
2367
2671
  },
2672
+ {
2673
+ type: "function",
2674
+ name: "proxiableUUID",
2675
+ inputs: [],
2676
+ outputs: [
2677
+ {
2678
+ name: "",
2679
+ type: "bytes32",
2680
+ internalType: "bytes32"
2681
+ }
2682
+ ],
2683
+ stateMutability: "view"
2684
+ },
2368
2685
  {
2369
2686
  type: "function",
2370
2687
  name: "removeShare",
@@ -2378,6 +2695,42 @@ var ACPShareRegistryArtifact = {
2378
2695
  outputs: [],
2379
2696
  stateMutability: "nonpayable"
2380
2697
  },
2698
+ {
2699
+ type: "function",
2700
+ name: "renounceRole",
2701
+ inputs: [
2702
+ {
2703
+ name: "role",
2704
+ type: "bytes32",
2705
+ internalType: "bytes32"
2706
+ },
2707
+ {
2708
+ name: "callerConfirmation",
2709
+ type: "address",
2710
+ internalType: "address"
2711
+ }
2712
+ ],
2713
+ outputs: [],
2714
+ stateMutability: "nonpayable"
2715
+ },
2716
+ {
2717
+ type: "function",
2718
+ name: "revokeRole",
2719
+ inputs: [
2720
+ {
2721
+ name: "role",
2722
+ type: "bytes32",
2723
+ internalType: "bytes32"
2724
+ },
2725
+ {
2726
+ name: "account",
2727
+ type: "address",
2728
+ internalType: "address"
2729
+ }
2730
+ ],
2731
+ outputs: [],
2732
+ stateMutability: "nonpayable"
2733
+ },
2381
2734
  {
2382
2735
  type: "function",
2383
2736
  name: "share",
@@ -2443,6 +2796,11 @@ var ACPShareRegistryArtifact = {
2443
2796
  internalType: "bytes"
2444
2797
  }
2445
2798
  ]
2799
+ },
2800
+ {
2801
+ name: "metadata",
2802
+ type: "bytes",
2803
+ internalType: "bytes"
2446
2804
  }
2447
2805
  ],
2448
2806
  outputs: [
@@ -2466,9 +2824,14 @@ var ACPShareRegistryArtifact = {
2466
2824
  ],
2467
2825
  outputs: [
2468
2826
  {
2469
- name: "acps",
2827
+ name: "shareIds",
2828
+ type: "bytes32[]",
2829
+ internalType: "bytes32[]"
2830
+ },
2831
+ {
2832
+ name: "headers",
2470
2833
  type: "tuple[]",
2471
- internalType: "struct ACP[]",
2834
+ internalType: "struct ACPShareRegistry.ShareHeader[]",
2472
2835
  components: [
2473
2836
  {
2474
2837
  name: "issuer",
@@ -2486,9 +2849,9 @@ var ACPShareRegistryArtifact = {
2486
2849
  internalType: "address"
2487
2850
  },
2488
2851
  {
2489
- name: "revokerData",
2490
- type: "uint256",
2491
- internalType: "uint256"
2852
+ name: "blockNumber",
2853
+ type: "uint64",
2854
+ internalType: "uint64"
2492
2855
  },
2493
2856
  {
2494
2857
  name: "revokerContract",
@@ -2496,34 +2859,9 @@ var ACPShareRegistryArtifact = {
2496
2859
  internalType: "address"
2497
2860
  },
2498
2861
  {
2499
- name: "scope",
2500
- type: "uint8",
2501
- internalType: "uint8"
2502
- },
2503
- {
2504
- name: "contracts",
2505
- type: "address[]",
2506
- internalType: "address[]"
2507
- },
2508
- {
2509
- name: "handles",
2510
- type: "bytes32[]",
2511
- internalType: "bytes32[]"
2512
- },
2513
- {
2514
- name: "sealingKey",
2515
- type: "bytes32",
2516
- internalType: "bytes32"
2517
- },
2518
- {
2519
- name: "issuerSignature",
2520
- type: "bytes",
2521
- internalType: "bytes"
2522
- },
2523
- {
2524
- name: "recipientSignature",
2525
- type: "bytes",
2526
- internalType: "bytes"
2862
+ name: "revokerData",
2863
+ type: "uint256",
2864
+ internalType: "uint256"
2527
2865
  }
2528
2866
  ]
2529
2867
  }
@@ -2531,37 +2869,137 @@ var ACPShareRegistryArtifact = {
2531
2869
  stateMutability: "view"
2532
2870
  },
2533
2871
  {
2534
- type: "event",
2535
- name: "ShareRemoved",
2872
+ type: "function",
2873
+ name: "supportsInterface",
2536
2874
  inputs: [
2537
2875
  {
2538
- name: "recipient",
2539
- type: "address",
2540
- indexed: true,
2541
- internalType: "address"
2542
- },
2876
+ name: "interfaceId",
2877
+ type: "bytes4",
2878
+ internalType: "bytes4"
2879
+ }
2880
+ ],
2881
+ outputs: [
2543
2882
  {
2544
- name: "issuer",
2883
+ name: "",
2884
+ type: "bool",
2885
+ internalType: "bool"
2886
+ }
2887
+ ],
2888
+ stateMutability: "view"
2889
+ },
2890
+ {
2891
+ type: "function",
2892
+ name: "upgradeToAndCall",
2893
+ inputs: [
2894
+ {
2895
+ name: "newImplementation",
2545
2896
  type: "address",
2546
- indexed: true,
2547
2897
  internalType: "address"
2548
2898
  },
2549
2899
  {
2550
- name: "shareId",
2551
- type: "bytes32",
2552
- indexed: false,
2553
- internalType: "bytes32"
2900
+ name: "data",
2901
+ type: "bytes",
2902
+ internalType: "bytes"
2554
2903
  }
2555
2904
  ],
2556
- anonymous: false
2905
+ outputs: [],
2906
+ stateMutability: "payable"
2557
2907
  },
2558
2908
  {
2559
2909
  type: "event",
2560
- name: "Shared",
2910
+ name: "Initialized",
2561
2911
  inputs: [
2562
2912
  {
2563
- name: "recipient",
2564
- type: "address",
2913
+ name: "version",
2914
+ type: "uint64",
2915
+ indexed: false,
2916
+ internalType: "uint64"
2917
+ }
2918
+ ],
2919
+ anonymous: false
2920
+ },
2921
+ {
2922
+ type: "event",
2923
+ name: "RoleAdminChanged",
2924
+ inputs: [
2925
+ {
2926
+ name: "role",
2927
+ type: "bytes32",
2928
+ indexed: true,
2929
+ internalType: "bytes32"
2930
+ },
2931
+ {
2932
+ name: "previousAdminRole",
2933
+ type: "bytes32",
2934
+ indexed: true,
2935
+ internalType: "bytes32"
2936
+ },
2937
+ {
2938
+ name: "newAdminRole",
2939
+ type: "bytes32",
2940
+ indexed: true,
2941
+ internalType: "bytes32"
2942
+ }
2943
+ ],
2944
+ anonymous: false
2945
+ },
2946
+ {
2947
+ type: "event",
2948
+ name: "RoleGranted",
2949
+ inputs: [
2950
+ {
2951
+ name: "role",
2952
+ type: "bytes32",
2953
+ indexed: true,
2954
+ internalType: "bytes32"
2955
+ },
2956
+ {
2957
+ name: "account",
2958
+ type: "address",
2959
+ indexed: true,
2960
+ internalType: "address"
2961
+ },
2962
+ {
2963
+ name: "sender",
2964
+ type: "address",
2965
+ indexed: true,
2966
+ internalType: "address"
2967
+ }
2968
+ ],
2969
+ anonymous: false
2970
+ },
2971
+ {
2972
+ type: "event",
2973
+ name: "RoleRevoked",
2974
+ inputs: [
2975
+ {
2976
+ name: "role",
2977
+ type: "bytes32",
2978
+ indexed: true,
2979
+ internalType: "bytes32"
2980
+ },
2981
+ {
2982
+ name: "account",
2983
+ type: "address",
2984
+ indexed: true,
2985
+ internalType: "address"
2986
+ },
2987
+ {
2988
+ name: "sender",
2989
+ type: "address",
2990
+ indexed: true,
2991
+ internalType: "address"
2992
+ }
2993
+ ],
2994
+ anonymous: false
2995
+ },
2996
+ {
2997
+ type: "event",
2998
+ name: "ShareRemoved",
2999
+ inputs: [
3000
+ {
3001
+ name: "recipient",
3002
+ type: "address",
2565
3003
  indexed: true,
2566
3004
  internalType: "address"
2567
3005
  },
@@ -2574,22 +3012,192 @@ var ACPShareRegistryArtifact = {
2574
3012
  {
2575
3013
  name: "shareId",
2576
3014
  type: "bytes32",
2577
- indexed: false,
3015
+ indexed: true,
2578
3016
  internalType: "bytes32"
2579
3017
  }
2580
3018
  ],
2581
3019
  anonymous: false
2582
3020
  },
3021
+ {
3022
+ type: "event",
3023
+ name: "Shared",
3024
+ inputs: [
3025
+ {
3026
+ name: "recipient",
3027
+ type: "address",
3028
+ indexed: true,
3029
+ internalType: "address"
3030
+ },
3031
+ {
3032
+ name: "issuer",
3033
+ type: "address",
3034
+ indexed: true,
3035
+ internalType: "address"
3036
+ },
3037
+ {
3038
+ name: "shareId",
3039
+ type: "bytes32",
3040
+ indexed: true,
3041
+ internalType: "bytes32"
3042
+ },
3043
+ {
3044
+ name: "acp",
3045
+ type: "tuple",
3046
+ indexed: false,
3047
+ internalType: "struct ACP",
3048
+ components: [
3049
+ {
3050
+ name: "issuer",
3051
+ type: "address",
3052
+ internalType: "address"
3053
+ },
3054
+ {
3055
+ name: "expiration",
3056
+ type: "uint64",
3057
+ internalType: "uint64"
3058
+ },
3059
+ {
3060
+ name: "recipient",
3061
+ type: "address",
3062
+ internalType: "address"
3063
+ },
3064
+ {
3065
+ name: "revokerData",
3066
+ type: "uint256",
3067
+ internalType: "uint256"
3068
+ },
3069
+ {
3070
+ name: "revokerContract",
3071
+ type: "address",
3072
+ internalType: "address"
3073
+ },
3074
+ {
3075
+ name: "scope",
3076
+ type: "uint8",
3077
+ internalType: "uint8"
3078
+ },
3079
+ {
3080
+ name: "contracts",
3081
+ type: "address[]",
3082
+ internalType: "address[]"
3083
+ },
3084
+ {
3085
+ name: "handles",
3086
+ type: "bytes32[]",
3087
+ internalType: "bytes32[]"
3088
+ },
3089
+ {
3090
+ name: "sealingKey",
3091
+ type: "bytes32",
3092
+ internalType: "bytes32"
3093
+ },
3094
+ {
3095
+ name: "issuerSignature",
3096
+ type: "bytes",
3097
+ internalType: "bytes"
3098
+ },
3099
+ {
3100
+ name: "recipientSignature",
3101
+ type: "bytes",
3102
+ internalType: "bytes"
3103
+ }
3104
+ ]
3105
+ },
3106
+ {
3107
+ name: "metadata",
3108
+ type: "bytes",
3109
+ indexed: false,
3110
+ internalType: "bytes"
3111
+ }
3112
+ ],
3113
+ anonymous: false
3114
+ },
3115
+ {
3116
+ type: "event",
3117
+ name: "Upgraded",
3118
+ inputs: [
3119
+ {
3120
+ name: "implementation",
3121
+ type: "address",
3122
+ indexed: true,
3123
+ internalType: "address"
3124
+ }
3125
+ ],
3126
+ anonymous: false
3127
+ },
3128
+ {
3129
+ type: "error",
3130
+ name: "AccessControlBadConfirmation",
3131
+ inputs: []
3132
+ },
3133
+ {
3134
+ type: "error",
3135
+ name: "AccessControlUnauthorizedAccount",
3136
+ inputs: [
3137
+ {
3138
+ name: "account",
3139
+ type: "address",
3140
+ internalType: "address"
3141
+ },
3142
+ {
3143
+ name: "neededRole",
3144
+ type: "bytes32",
3145
+ internalType: "bytes32"
3146
+ }
3147
+ ]
3148
+ },
3149
+ {
3150
+ type: "error",
3151
+ name: "AddressEmptyCode",
3152
+ inputs: [
3153
+ {
3154
+ name: "target",
3155
+ type: "address",
3156
+ internalType: "address"
3157
+ }
3158
+ ]
3159
+ },
2583
3160
  {
2584
3161
  type: "error",
2585
3162
  name: "AlreadyShared",
2586
3163
  inputs: []
2587
3164
  },
3165
+ {
3166
+ type: "error",
3167
+ name: "ERC1967InvalidImplementation",
3168
+ inputs: [
3169
+ {
3170
+ name: "implementation",
3171
+ type: "address",
3172
+ internalType: "address"
3173
+ }
3174
+ ]
3175
+ },
3176
+ {
3177
+ type: "error",
3178
+ name: "ERC1967NonPayable",
3179
+ inputs: []
3180
+ },
3181
+ {
3182
+ type: "error",
3183
+ name: "FailedCall",
3184
+ inputs: []
3185
+ },
3186
+ {
3187
+ type: "error",
3188
+ name: "InvalidInitialization",
3189
+ inputs: []
3190
+ },
2588
3191
  {
2589
3192
  type: "error",
2590
3193
  name: "IssuerSignatureMissing",
2591
3194
  inputs: []
2592
3195
  },
3196
+ {
3197
+ type: "error",
3198
+ name: "NotInitializing",
3199
+ inputs: []
3200
+ },
2593
3201
  {
2594
3202
  type: "error",
2595
3203
  name: "NotIssuer",
@@ -2615,6 +3223,22 @@ var ACPShareRegistryArtifact = {
2615
3223
  name: "ShareExpired",
2616
3224
  inputs: []
2617
3225
  },
3226
+ {
3227
+ type: "error",
3228
+ name: "UUPSUnauthorizedCallContext",
3229
+ inputs: []
3230
+ },
3231
+ {
3232
+ type: "error",
3233
+ name: "UUPSUnsupportedProxiableUUID",
3234
+ inputs: [
3235
+ {
3236
+ name: "slot",
3237
+ type: "bytes32",
3238
+ internalType: "bytes32"
3239
+ }
3240
+ ]
3241
+ },
2618
3242
  {
2619
3243
  type: "error",
2620
3244
  name: "UnknownShare",
@@ -2623,6 +3247,79 @@ var ACPShareRegistryArtifact = {
2623
3247
  ]
2624
3248
  };
2625
3249
 
3250
+ // src/MockERC1967Proxy.ts
3251
+ var MockERC1967ProxyArtifact = {
3252
+ contractName: "MockERC1967Proxy",
3253
+ isFixed: false,
3254
+ abi: [
3255
+ {
3256
+ type: "constructor",
3257
+ inputs: [
3258
+ {
3259
+ name: "implementation",
3260
+ type: "address",
3261
+ internalType: "address"
3262
+ },
3263
+ {
3264
+ name: "data",
3265
+ type: "bytes",
3266
+ internalType: "bytes"
3267
+ }
3268
+ ],
3269
+ stateMutability: "payable"
3270
+ },
3271
+ {
3272
+ type: "fallback",
3273
+ stateMutability: "payable"
3274
+ },
3275
+ {
3276
+ type: "event",
3277
+ name: "Upgraded",
3278
+ inputs: [
3279
+ {
3280
+ name: "implementation",
3281
+ type: "address",
3282
+ indexed: true,
3283
+ internalType: "address"
3284
+ }
3285
+ ],
3286
+ anonymous: false
3287
+ },
3288
+ {
3289
+ type: "error",
3290
+ name: "AddressEmptyCode",
3291
+ inputs: [
3292
+ {
3293
+ name: "target",
3294
+ type: "address",
3295
+ internalType: "address"
3296
+ }
3297
+ ]
3298
+ },
3299
+ {
3300
+ type: "error",
3301
+ name: "ERC1967InvalidImplementation",
3302
+ inputs: [
3303
+ {
3304
+ name: "implementation",
3305
+ type: "address",
3306
+ internalType: "address"
3307
+ }
3308
+ ]
3309
+ },
3310
+ {
3311
+ type: "error",
3312
+ name: "ERC1967NonPayable",
3313
+ inputs: []
3314
+ },
3315
+ {
3316
+ type: "error",
3317
+ name: "FailedCall",
3318
+ inputs: []
3319
+ }
3320
+ ]
3321
+ };
3322
+
2626
3323
  // src/MockZkVerifier.ts
2627
3324
  var MockZkVerifierArtifact = {
2628
3325
  contractName: "MockZkVerifier",
@@ -3388,6 +4085,8 @@ var MockThresholdNetworkArtifact = {
3388
4085
  exports.ACPShareRegistryArtifact = ACPShareRegistryArtifact;
3389
4086
  exports.ACPTimestampRevokerArtifact = ACPTimestampRevokerArtifact;
3390
4087
  exports.MockACLArtifact = MockACLArtifact;
4088
+ exports.MockCoFHEAddressBookArtifact = MockCoFHEAddressBookArtifact;
4089
+ exports.MockERC1967ProxyArtifact = MockERC1967ProxyArtifact;
3391
4090
  exports.MockTaskManagerArtifact = MockTaskManagerArtifact;
3392
4091
  exports.MockThresholdNetworkArtifact = MockThresholdNetworkArtifact;
3393
4092
  exports.MockZkVerifierArtifact = MockZkVerifierArtifact;