@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.mjs
CHANGED
|
@@ -1425,7 +1425,7 @@ var MockTaskManagerArtifact = {
|
|
|
1425
1425
|
},
|
|
1426
1426
|
{
|
|
1427
1427
|
type: "error",
|
|
1428
|
-
name: "
|
|
1428
|
+
name: "LengthMismatch",
|
|
1429
1429
|
inputs: []
|
|
1430
1430
|
},
|
|
1431
1431
|
{
|
|
@@ -2168,6 +2168,19 @@ var MockACLArtifact = {
|
|
|
2168
2168
|
inputs: [],
|
|
2169
2169
|
anonymous: false
|
|
2170
2170
|
},
|
|
2171
|
+
{
|
|
2172
|
+
type: "event",
|
|
2173
|
+
name: "Initialized",
|
|
2174
|
+
inputs: [
|
|
2175
|
+
{
|
|
2176
|
+
name: "version",
|
|
2177
|
+
type: "uint64",
|
|
2178
|
+
indexed: false,
|
|
2179
|
+
internalType: "uint64"
|
|
2180
|
+
}
|
|
2181
|
+
],
|
|
2182
|
+
anonymous: false
|
|
2183
|
+
},
|
|
2171
2184
|
{
|
|
2172
2185
|
type: "event",
|
|
2173
2186
|
name: "NewDelegation",
|
|
@@ -2249,7 +2262,7 @@ var MockACLArtifact = {
|
|
|
2249
2262
|
},
|
|
2250
2263
|
{
|
|
2251
2264
|
type: "error",
|
|
2252
|
-
name: "
|
|
2265
|
+
name: "InvalidInitialization",
|
|
2253
2266
|
inputs: []
|
|
2254
2267
|
},
|
|
2255
2268
|
{
|
|
@@ -2257,6 +2270,11 @@ var MockACLArtifact = {
|
|
|
2257
2270
|
name: "InvalidTaskManagerAddress",
|
|
2258
2271
|
inputs: []
|
|
2259
2272
|
},
|
|
2273
|
+
{
|
|
2274
|
+
type: "error",
|
|
2275
|
+
name: "NotInitializing",
|
|
2276
|
+
inputs: []
|
|
2277
|
+
},
|
|
2260
2278
|
{
|
|
2261
2279
|
type: "error",
|
|
2262
2280
|
name: "NotShared",
|
|
@@ -2309,17 +2327,6 @@ var MockACLArtifact = {
|
|
|
2309
2327
|
}
|
|
2310
2328
|
]
|
|
2311
2329
|
},
|
|
2312
|
-
{
|
|
2313
|
-
type: "error",
|
|
2314
|
-
name: "StringTooLong",
|
|
2315
|
-
inputs: [
|
|
2316
|
-
{
|
|
2317
|
-
name: "str",
|
|
2318
|
-
type: "string",
|
|
2319
|
-
internalType: "string"
|
|
2320
|
-
}
|
|
2321
|
-
]
|
|
2322
|
-
},
|
|
2323
2330
|
{
|
|
2324
2331
|
type: "error",
|
|
2325
2332
|
name: "UnexpectedSharer",
|
|
@@ -2477,6 +2484,69 @@ var ACPShareRegistryArtifact = {
|
|
|
2477
2484
|
contractName: "ACPShareRegistry",
|
|
2478
2485
|
isFixed: false,
|
|
2479
2486
|
abi: [
|
|
2487
|
+
{
|
|
2488
|
+
type: "constructor",
|
|
2489
|
+
inputs: [],
|
|
2490
|
+
stateMutability: "nonpayable"
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
type: "function",
|
|
2494
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
2495
|
+
inputs: [],
|
|
2496
|
+
outputs: [
|
|
2497
|
+
{
|
|
2498
|
+
name: "",
|
|
2499
|
+
type: "bytes32",
|
|
2500
|
+
internalType: "bytes32"
|
|
2501
|
+
}
|
|
2502
|
+
],
|
|
2503
|
+
stateMutability: "view"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
type: "function",
|
|
2507
|
+
name: "UPGRADER_ROLE",
|
|
2508
|
+
inputs: [],
|
|
2509
|
+
outputs: [
|
|
2510
|
+
{
|
|
2511
|
+
name: "",
|
|
2512
|
+
type: "bytes32",
|
|
2513
|
+
internalType: "bytes32"
|
|
2514
|
+
}
|
|
2515
|
+
],
|
|
2516
|
+
stateMutability: "view"
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
type: "function",
|
|
2520
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
2521
|
+
inputs: [],
|
|
2522
|
+
outputs: [
|
|
2523
|
+
{
|
|
2524
|
+
name: "",
|
|
2525
|
+
type: "string",
|
|
2526
|
+
internalType: "string"
|
|
2527
|
+
}
|
|
2528
|
+
],
|
|
2529
|
+
stateMutability: "view"
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
type: "function",
|
|
2533
|
+
name: "getRoleAdmin",
|
|
2534
|
+
inputs: [
|
|
2535
|
+
{
|
|
2536
|
+
name: "role",
|
|
2537
|
+
type: "bytes32",
|
|
2538
|
+
internalType: "bytes32"
|
|
2539
|
+
}
|
|
2540
|
+
],
|
|
2541
|
+
outputs: [
|
|
2542
|
+
{
|
|
2543
|
+
name: "",
|
|
2544
|
+
type: "bytes32",
|
|
2545
|
+
internalType: "bytes32"
|
|
2546
|
+
}
|
|
2547
|
+
],
|
|
2548
|
+
stateMutability: "view"
|
|
2549
|
+
},
|
|
2480
2550
|
{
|
|
2481
2551
|
type: "function",
|
|
2482
2552
|
name: "getShare",
|
|
@@ -2491,7 +2561,7 @@ var ACPShareRegistryArtifact = {
|
|
|
2491
2561
|
{
|
|
2492
2562
|
name: "",
|
|
2493
2563
|
type: "tuple",
|
|
2494
|
-
internalType: "struct
|
|
2564
|
+
internalType: "struct ACPShareRegistry.ShareHeader",
|
|
2495
2565
|
components: [
|
|
2496
2566
|
{
|
|
2497
2567
|
name: "issuer",
|
|
@@ -2509,9 +2579,9 @@ var ACPShareRegistryArtifact = {
|
|
|
2509
2579
|
internalType: "address"
|
|
2510
2580
|
},
|
|
2511
2581
|
{
|
|
2512
|
-
name: "
|
|
2513
|
-
type: "
|
|
2514
|
-
internalType: "
|
|
2582
|
+
name: "blockNumber",
|
|
2583
|
+
type: "uint64",
|
|
2584
|
+
internalType: "uint64"
|
|
2515
2585
|
},
|
|
2516
2586
|
{
|
|
2517
2587
|
name: "revokerContract",
|
|
@@ -2519,40 +2589,70 @@ var ACPShareRegistryArtifact = {
|
|
|
2519
2589
|
internalType: "address"
|
|
2520
2590
|
},
|
|
2521
2591
|
{
|
|
2522
|
-
name: "
|
|
2523
|
-
type: "
|
|
2524
|
-
internalType: "
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
name: "contracts",
|
|
2528
|
-
type: "address[]",
|
|
2529
|
-
internalType: "address[]"
|
|
2530
|
-
},
|
|
2531
|
-
{
|
|
2532
|
-
name: "handles",
|
|
2533
|
-
type: "bytes32[]",
|
|
2534
|
-
internalType: "bytes32[]"
|
|
2535
|
-
},
|
|
2536
|
-
{
|
|
2537
|
-
name: "sealingKey",
|
|
2538
|
-
type: "bytes32",
|
|
2539
|
-
internalType: "bytes32"
|
|
2540
|
-
},
|
|
2541
|
-
{
|
|
2542
|
-
name: "issuerSignature",
|
|
2543
|
-
type: "bytes",
|
|
2544
|
-
internalType: "bytes"
|
|
2545
|
-
},
|
|
2546
|
-
{
|
|
2547
|
-
name: "recipientSignature",
|
|
2548
|
-
type: "bytes",
|
|
2549
|
-
internalType: "bytes"
|
|
2592
|
+
name: "revokerData",
|
|
2593
|
+
type: "uint256",
|
|
2594
|
+
internalType: "uint256"
|
|
2550
2595
|
}
|
|
2551
2596
|
]
|
|
2552
2597
|
}
|
|
2553
2598
|
],
|
|
2554
2599
|
stateMutability: "view"
|
|
2555
2600
|
},
|
|
2601
|
+
{
|
|
2602
|
+
type: "function",
|
|
2603
|
+
name: "grantRole",
|
|
2604
|
+
inputs: [
|
|
2605
|
+
{
|
|
2606
|
+
name: "role",
|
|
2607
|
+
type: "bytes32",
|
|
2608
|
+
internalType: "bytes32"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
name: "account",
|
|
2612
|
+
type: "address",
|
|
2613
|
+
internalType: "address"
|
|
2614
|
+
}
|
|
2615
|
+
],
|
|
2616
|
+
outputs: [],
|
|
2617
|
+
stateMutability: "nonpayable"
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
type: "function",
|
|
2621
|
+
name: "hasRole",
|
|
2622
|
+
inputs: [
|
|
2623
|
+
{
|
|
2624
|
+
name: "role",
|
|
2625
|
+
type: "bytes32",
|
|
2626
|
+
internalType: "bytes32"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
name: "account",
|
|
2630
|
+
type: "address",
|
|
2631
|
+
internalType: "address"
|
|
2632
|
+
}
|
|
2633
|
+
],
|
|
2634
|
+
outputs: [
|
|
2635
|
+
{
|
|
2636
|
+
name: "",
|
|
2637
|
+
type: "bool",
|
|
2638
|
+
internalType: "bool"
|
|
2639
|
+
}
|
|
2640
|
+
],
|
|
2641
|
+
stateMutability: "view"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
type: "function",
|
|
2645
|
+
name: "initialize",
|
|
2646
|
+
inputs: [
|
|
2647
|
+
{
|
|
2648
|
+
name: "initialAdmin",
|
|
2649
|
+
type: "address",
|
|
2650
|
+
internalType: "address"
|
|
2651
|
+
}
|
|
2652
|
+
],
|
|
2653
|
+
outputs: [],
|
|
2654
|
+
stateMutability: "nonpayable"
|
|
2655
|
+
},
|
|
2556
2656
|
{
|
|
2557
2657
|
type: "function",
|
|
2558
2658
|
name: "isShareValid",
|
|
@@ -2572,6 +2672,19 @@ var ACPShareRegistryArtifact = {
|
|
|
2572
2672
|
],
|
|
2573
2673
|
stateMutability: "view"
|
|
2574
2674
|
},
|
|
2675
|
+
{
|
|
2676
|
+
type: "function",
|
|
2677
|
+
name: "proxiableUUID",
|
|
2678
|
+
inputs: [],
|
|
2679
|
+
outputs: [
|
|
2680
|
+
{
|
|
2681
|
+
name: "",
|
|
2682
|
+
type: "bytes32",
|
|
2683
|
+
internalType: "bytes32"
|
|
2684
|
+
}
|
|
2685
|
+
],
|
|
2686
|
+
stateMutability: "view"
|
|
2687
|
+
},
|
|
2575
2688
|
{
|
|
2576
2689
|
type: "function",
|
|
2577
2690
|
name: "removeShare",
|
|
@@ -2585,6 +2698,42 @@ var ACPShareRegistryArtifact = {
|
|
|
2585
2698
|
outputs: [],
|
|
2586
2699
|
stateMutability: "nonpayable"
|
|
2587
2700
|
},
|
|
2701
|
+
{
|
|
2702
|
+
type: "function",
|
|
2703
|
+
name: "renounceRole",
|
|
2704
|
+
inputs: [
|
|
2705
|
+
{
|
|
2706
|
+
name: "role",
|
|
2707
|
+
type: "bytes32",
|
|
2708
|
+
internalType: "bytes32"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
name: "callerConfirmation",
|
|
2712
|
+
type: "address",
|
|
2713
|
+
internalType: "address"
|
|
2714
|
+
}
|
|
2715
|
+
],
|
|
2716
|
+
outputs: [],
|
|
2717
|
+
stateMutability: "nonpayable"
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
type: "function",
|
|
2721
|
+
name: "revokeRole",
|
|
2722
|
+
inputs: [
|
|
2723
|
+
{
|
|
2724
|
+
name: "role",
|
|
2725
|
+
type: "bytes32",
|
|
2726
|
+
internalType: "bytes32"
|
|
2727
|
+
},
|
|
2728
|
+
{
|
|
2729
|
+
name: "account",
|
|
2730
|
+
type: "address",
|
|
2731
|
+
internalType: "address"
|
|
2732
|
+
}
|
|
2733
|
+
],
|
|
2734
|
+
outputs: [],
|
|
2735
|
+
stateMutability: "nonpayable"
|
|
2736
|
+
},
|
|
2588
2737
|
{
|
|
2589
2738
|
type: "function",
|
|
2590
2739
|
name: "share",
|
|
@@ -2650,6 +2799,11 @@ var ACPShareRegistryArtifact = {
|
|
|
2650
2799
|
internalType: "bytes"
|
|
2651
2800
|
}
|
|
2652
2801
|
]
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
name: "metadata",
|
|
2805
|
+
type: "bytes",
|
|
2806
|
+
internalType: "bytes"
|
|
2653
2807
|
}
|
|
2654
2808
|
],
|
|
2655
2809
|
outputs: [
|
|
@@ -2673,9 +2827,14 @@ var ACPShareRegistryArtifact = {
|
|
|
2673
2827
|
],
|
|
2674
2828
|
outputs: [
|
|
2675
2829
|
{
|
|
2676
|
-
name: "
|
|
2830
|
+
name: "shareIds",
|
|
2831
|
+
type: "bytes32[]",
|
|
2832
|
+
internalType: "bytes32[]"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
name: "headers",
|
|
2677
2836
|
type: "tuple[]",
|
|
2678
|
-
internalType: "struct
|
|
2837
|
+
internalType: "struct ACPShareRegistry.ShareHeader[]",
|
|
2679
2838
|
components: [
|
|
2680
2839
|
{
|
|
2681
2840
|
name: "issuer",
|
|
@@ -2693,9 +2852,9 @@ var ACPShareRegistryArtifact = {
|
|
|
2693
2852
|
internalType: "address"
|
|
2694
2853
|
},
|
|
2695
2854
|
{
|
|
2696
|
-
name: "
|
|
2697
|
-
type: "
|
|
2698
|
-
internalType: "
|
|
2855
|
+
name: "blockNumber",
|
|
2856
|
+
type: "uint64",
|
|
2857
|
+
internalType: "uint64"
|
|
2699
2858
|
},
|
|
2700
2859
|
{
|
|
2701
2860
|
name: "revokerContract",
|
|
@@ -2703,34 +2862,9 @@ var ACPShareRegistryArtifact = {
|
|
|
2703
2862
|
internalType: "address"
|
|
2704
2863
|
},
|
|
2705
2864
|
{
|
|
2706
|
-
name: "
|
|
2707
|
-
type: "
|
|
2708
|
-
internalType: "
|
|
2709
|
-
},
|
|
2710
|
-
{
|
|
2711
|
-
name: "contracts",
|
|
2712
|
-
type: "address[]",
|
|
2713
|
-
internalType: "address[]"
|
|
2714
|
-
},
|
|
2715
|
-
{
|
|
2716
|
-
name: "handles",
|
|
2717
|
-
type: "bytes32[]",
|
|
2718
|
-
internalType: "bytes32[]"
|
|
2719
|
-
},
|
|
2720
|
-
{
|
|
2721
|
-
name: "sealingKey",
|
|
2722
|
-
type: "bytes32",
|
|
2723
|
-
internalType: "bytes32"
|
|
2724
|
-
},
|
|
2725
|
-
{
|
|
2726
|
-
name: "issuerSignature",
|
|
2727
|
-
type: "bytes",
|
|
2728
|
-
internalType: "bytes"
|
|
2729
|
-
},
|
|
2730
|
-
{
|
|
2731
|
-
name: "recipientSignature",
|
|
2732
|
-
type: "bytes",
|
|
2733
|
-
internalType: "bytes"
|
|
2865
|
+
name: "revokerData",
|
|
2866
|
+
type: "uint256",
|
|
2867
|
+
internalType: "uint256"
|
|
2734
2868
|
}
|
|
2735
2869
|
]
|
|
2736
2870
|
}
|
|
@@ -2738,8 +2872,133 @@ var ACPShareRegistryArtifact = {
|
|
|
2738
2872
|
stateMutability: "view"
|
|
2739
2873
|
},
|
|
2740
2874
|
{
|
|
2741
|
-
type: "
|
|
2742
|
-
name: "
|
|
2875
|
+
type: "function",
|
|
2876
|
+
name: "supportsInterface",
|
|
2877
|
+
inputs: [
|
|
2878
|
+
{
|
|
2879
|
+
name: "interfaceId",
|
|
2880
|
+
type: "bytes4",
|
|
2881
|
+
internalType: "bytes4"
|
|
2882
|
+
}
|
|
2883
|
+
],
|
|
2884
|
+
outputs: [
|
|
2885
|
+
{
|
|
2886
|
+
name: "",
|
|
2887
|
+
type: "bool",
|
|
2888
|
+
internalType: "bool"
|
|
2889
|
+
}
|
|
2890
|
+
],
|
|
2891
|
+
stateMutability: "view"
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
type: "function",
|
|
2895
|
+
name: "upgradeToAndCall",
|
|
2896
|
+
inputs: [
|
|
2897
|
+
{
|
|
2898
|
+
name: "newImplementation",
|
|
2899
|
+
type: "address",
|
|
2900
|
+
internalType: "address"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
name: "data",
|
|
2904
|
+
type: "bytes",
|
|
2905
|
+
internalType: "bytes"
|
|
2906
|
+
}
|
|
2907
|
+
],
|
|
2908
|
+
outputs: [],
|
|
2909
|
+
stateMutability: "payable"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
type: "event",
|
|
2913
|
+
name: "Initialized",
|
|
2914
|
+
inputs: [
|
|
2915
|
+
{
|
|
2916
|
+
name: "version",
|
|
2917
|
+
type: "uint64",
|
|
2918
|
+
indexed: false,
|
|
2919
|
+
internalType: "uint64"
|
|
2920
|
+
}
|
|
2921
|
+
],
|
|
2922
|
+
anonymous: false
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
type: "event",
|
|
2926
|
+
name: "RoleAdminChanged",
|
|
2927
|
+
inputs: [
|
|
2928
|
+
{
|
|
2929
|
+
name: "role",
|
|
2930
|
+
type: "bytes32",
|
|
2931
|
+
indexed: true,
|
|
2932
|
+
internalType: "bytes32"
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
name: "previousAdminRole",
|
|
2936
|
+
type: "bytes32",
|
|
2937
|
+
indexed: true,
|
|
2938
|
+
internalType: "bytes32"
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
name: "newAdminRole",
|
|
2942
|
+
type: "bytes32",
|
|
2943
|
+
indexed: true,
|
|
2944
|
+
internalType: "bytes32"
|
|
2945
|
+
}
|
|
2946
|
+
],
|
|
2947
|
+
anonymous: false
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
type: "event",
|
|
2951
|
+
name: "RoleGranted",
|
|
2952
|
+
inputs: [
|
|
2953
|
+
{
|
|
2954
|
+
name: "role",
|
|
2955
|
+
type: "bytes32",
|
|
2956
|
+
indexed: true,
|
|
2957
|
+
internalType: "bytes32"
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
name: "account",
|
|
2961
|
+
type: "address",
|
|
2962
|
+
indexed: true,
|
|
2963
|
+
internalType: "address"
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
name: "sender",
|
|
2967
|
+
type: "address",
|
|
2968
|
+
indexed: true,
|
|
2969
|
+
internalType: "address"
|
|
2970
|
+
}
|
|
2971
|
+
],
|
|
2972
|
+
anonymous: false
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
type: "event",
|
|
2976
|
+
name: "RoleRevoked",
|
|
2977
|
+
inputs: [
|
|
2978
|
+
{
|
|
2979
|
+
name: "role",
|
|
2980
|
+
type: "bytes32",
|
|
2981
|
+
indexed: true,
|
|
2982
|
+
internalType: "bytes32"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
name: "account",
|
|
2986
|
+
type: "address",
|
|
2987
|
+
indexed: true,
|
|
2988
|
+
internalType: "address"
|
|
2989
|
+
},
|
|
2990
|
+
{
|
|
2991
|
+
name: "sender",
|
|
2992
|
+
type: "address",
|
|
2993
|
+
indexed: true,
|
|
2994
|
+
internalType: "address"
|
|
2995
|
+
}
|
|
2996
|
+
],
|
|
2997
|
+
anonymous: false
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
type: "event",
|
|
3001
|
+
name: "ShareRemoved",
|
|
2743
3002
|
inputs: [
|
|
2744
3003
|
{
|
|
2745
3004
|
name: "recipient",
|
|
@@ -2756,7 +3015,7 @@ var ACPShareRegistryArtifact = {
|
|
|
2756
3015
|
{
|
|
2757
3016
|
name: "shareId",
|
|
2758
3017
|
type: "bytes32",
|
|
2759
|
-
indexed:
|
|
3018
|
+
indexed: true,
|
|
2760
3019
|
internalType: "bytes32"
|
|
2761
3020
|
}
|
|
2762
3021
|
],
|
|
@@ -2781,22 +3040,167 @@ var ACPShareRegistryArtifact = {
|
|
|
2781
3040
|
{
|
|
2782
3041
|
name: "shareId",
|
|
2783
3042
|
type: "bytes32",
|
|
2784
|
-
indexed:
|
|
3043
|
+
indexed: true,
|
|
2785
3044
|
internalType: "bytes32"
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
name: "acp",
|
|
3048
|
+
type: "tuple",
|
|
3049
|
+
indexed: false,
|
|
3050
|
+
internalType: "struct ACP",
|
|
3051
|
+
components: [
|
|
3052
|
+
{
|
|
3053
|
+
name: "issuer",
|
|
3054
|
+
type: "address",
|
|
3055
|
+
internalType: "address"
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
name: "expiration",
|
|
3059
|
+
type: "uint64",
|
|
3060
|
+
internalType: "uint64"
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
name: "recipient",
|
|
3064
|
+
type: "address",
|
|
3065
|
+
internalType: "address"
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
name: "revokerData",
|
|
3069
|
+
type: "uint256",
|
|
3070
|
+
internalType: "uint256"
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
name: "revokerContract",
|
|
3074
|
+
type: "address",
|
|
3075
|
+
internalType: "address"
|
|
3076
|
+
},
|
|
3077
|
+
{
|
|
3078
|
+
name: "scope",
|
|
3079
|
+
type: "uint8",
|
|
3080
|
+
internalType: "uint8"
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
name: "contracts",
|
|
3084
|
+
type: "address[]",
|
|
3085
|
+
internalType: "address[]"
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
name: "handles",
|
|
3089
|
+
type: "bytes32[]",
|
|
3090
|
+
internalType: "bytes32[]"
|
|
3091
|
+
},
|
|
3092
|
+
{
|
|
3093
|
+
name: "sealingKey",
|
|
3094
|
+
type: "bytes32",
|
|
3095
|
+
internalType: "bytes32"
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
name: "issuerSignature",
|
|
3099
|
+
type: "bytes",
|
|
3100
|
+
internalType: "bytes"
|
|
3101
|
+
},
|
|
3102
|
+
{
|
|
3103
|
+
name: "recipientSignature",
|
|
3104
|
+
type: "bytes",
|
|
3105
|
+
internalType: "bytes"
|
|
3106
|
+
}
|
|
3107
|
+
]
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
name: "metadata",
|
|
3111
|
+
type: "bytes",
|
|
3112
|
+
indexed: false,
|
|
3113
|
+
internalType: "bytes"
|
|
3114
|
+
}
|
|
3115
|
+
],
|
|
3116
|
+
anonymous: false
|
|
3117
|
+
},
|
|
3118
|
+
{
|
|
3119
|
+
type: "event",
|
|
3120
|
+
name: "Upgraded",
|
|
3121
|
+
inputs: [
|
|
3122
|
+
{
|
|
3123
|
+
name: "implementation",
|
|
3124
|
+
type: "address",
|
|
3125
|
+
indexed: true,
|
|
3126
|
+
internalType: "address"
|
|
2786
3127
|
}
|
|
2787
3128
|
],
|
|
2788
3129
|
anonymous: false
|
|
2789
3130
|
},
|
|
3131
|
+
{
|
|
3132
|
+
type: "error",
|
|
3133
|
+
name: "AccessControlBadConfirmation",
|
|
3134
|
+
inputs: []
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
type: "error",
|
|
3138
|
+
name: "AccessControlUnauthorizedAccount",
|
|
3139
|
+
inputs: [
|
|
3140
|
+
{
|
|
3141
|
+
name: "account",
|
|
3142
|
+
type: "address",
|
|
3143
|
+
internalType: "address"
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
name: "neededRole",
|
|
3147
|
+
type: "bytes32",
|
|
3148
|
+
internalType: "bytes32"
|
|
3149
|
+
}
|
|
3150
|
+
]
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
type: "error",
|
|
3154
|
+
name: "AddressEmptyCode",
|
|
3155
|
+
inputs: [
|
|
3156
|
+
{
|
|
3157
|
+
name: "target",
|
|
3158
|
+
type: "address",
|
|
3159
|
+
internalType: "address"
|
|
3160
|
+
}
|
|
3161
|
+
]
|
|
3162
|
+
},
|
|
2790
3163
|
{
|
|
2791
3164
|
type: "error",
|
|
2792
3165
|
name: "AlreadyShared",
|
|
2793
3166
|
inputs: []
|
|
2794
3167
|
},
|
|
3168
|
+
{
|
|
3169
|
+
type: "error",
|
|
3170
|
+
name: "ERC1967InvalidImplementation",
|
|
3171
|
+
inputs: [
|
|
3172
|
+
{
|
|
3173
|
+
name: "implementation",
|
|
3174
|
+
type: "address",
|
|
3175
|
+
internalType: "address"
|
|
3176
|
+
}
|
|
3177
|
+
]
|
|
3178
|
+
},
|
|
3179
|
+
{
|
|
3180
|
+
type: "error",
|
|
3181
|
+
name: "ERC1967NonPayable",
|
|
3182
|
+
inputs: []
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
type: "error",
|
|
3186
|
+
name: "FailedCall",
|
|
3187
|
+
inputs: []
|
|
3188
|
+
},
|
|
3189
|
+
{
|
|
3190
|
+
type: "error",
|
|
3191
|
+
name: "InvalidInitialization",
|
|
3192
|
+
inputs: []
|
|
3193
|
+
},
|
|
2795
3194
|
{
|
|
2796
3195
|
type: "error",
|
|
2797
3196
|
name: "IssuerSignatureMissing",
|
|
2798
3197
|
inputs: []
|
|
2799
3198
|
},
|
|
3199
|
+
{
|
|
3200
|
+
type: "error",
|
|
3201
|
+
name: "NotInitializing",
|
|
3202
|
+
inputs: []
|
|
3203
|
+
},
|
|
2800
3204
|
{
|
|
2801
3205
|
type: "error",
|
|
2802
3206
|
name: "NotIssuer",
|
|
@@ -2822,6 +3226,22 @@ var ACPShareRegistryArtifact = {
|
|
|
2822
3226
|
name: "ShareExpired",
|
|
2823
3227
|
inputs: []
|
|
2824
3228
|
},
|
|
3229
|
+
{
|
|
3230
|
+
type: "error",
|
|
3231
|
+
name: "UUPSUnauthorizedCallContext",
|
|
3232
|
+
inputs: []
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
type: "error",
|
|
3236
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
3237
|
+
inputs: [
|
|
3238
|
+
{
|
|
3239
|
+
name: "slot",
|
|
3240
|
+
type: "bytes32",
|
|
3241
|
+
internalType: "bytes32"
|
|
3242
|
+
}
|
|
3243
|
+
]
|
|
3244
|
+
},
|
|
2825
3245
|
{
|
|
2826
3246
|
type: "error",
|
|
2827
3247
|
name: "UnknownShare",
|
|
@@ -2830,6 +3250,79 @@ var ACPShareRegistryArtifact = {
|
|
|
2830
3250
|
]
|
|
2831
3251
|
};
|
|
2832
3252
|
|
|
3253
|
+
// src/MockERC1967Proxy.ts
|
|
3254
|
+
var MockERC1967ProxyArtifact = {
|
|
3255
|
+
contractName: "MockERC1967Proxy",
|
|
3256
|
+
isFixed: false,
|
|
3257
|
+
abi: [
|
|
3258
|
+
{
|
|
3259
|
+
type: "constructor",
|
|
3260
|
+
inputs: [
|
|
3261
|
+
{
|
|
3262
|
+
name: "implementation",
|
|
3263
|
+
type: "address",
|
|
3264
|
+
internalType: "address"
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
name: "data",
|
|
3268
|
+
type: "bytes",
|
|
3269
|
+
internalType: "bytes"
|
|
3270
|
+
}
|
|
3271
|
+
],
|
|
3272
|
+
stateMutability: "payable"
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
type: "fallback",
|
|
3276
|
+
stateMutability: "payable"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
type: "event",
|
|
3280
|
+
name: "Upgraded",
|
|
3281
|
+
inputs: [
|
|
3282
|
+
{
|
|
3283
|
+
name: "implementation",
|
|
3284
|
+
type: "address",
|
|
3285
|
+
indexed: true,
|
|
3286
|
+
internalType: "address"
|
|
3287
|
+
}
|
|
3288
|
+
],
|
|
3289
|
+
anonymous: false
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
type: "error",
|
|
3293
|
+
name: "AddressEmptyCode",
|
|
3294
|
+
inputs: [
|
|
3295
|
+
{
|
|
3296
|
+
name: "target",
|
|
3297
|
+
type: "address",
|
|
3298
|
+
internalType: "address"
|
|
3299
|
+
}
|
|
3300
|
+
]
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
type: "error",
|
|
3304
|
+
name: "ERC1967InvalidImplementation",
|
|
3305
|
+
inputs: [
|
|
3306
|
+
{
|
|
3307
|
+
name: "implementation",
|
|
3308
|
+
type: "address",
|
|
3309
|
+
internalType: "address"
|
|
3310
|
+
}
|
|
3311
|
+
]
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
type: "error",
|
|
3315
|
+
name: "ERC1967NonPayable",
|
|
3316
|
+
inputs: []
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
type: "error",
|
|
3320
|
+
name: "FailedCall",
|
|
3321
|
+
inputs: []
|
|
3322
|
+
}
|
|
3323
|
+
]
|
|
3324
|
+
};
|
|
3325
|
+
|
|
2833
3326
|
// src/MockZkVerifier.ts
|
|
2834
3327
|
var MockZkVerifierArtifact = {
|
|
2835
3328
|
contractName: "MockZkVerifier",
|
|
@@ -3592,6 +4085,6 @@ var MockThresholdNetworkArtifact = {
|
|
|
3592
4085
|
]
|
|
3593
4086
|
};
|
|
3594
4087
|
|
|
3595
|
-
export { ACPShareRegistryArtifact, ACPTimestampRevokerArtifact, MockACLArtifact, MockCoFHEAddressBookArtifact, MockTaskManagerArtifact, MockThresholdNetworkArtifact, MockZkVerifierArtifact };
|
|
4088
|
+
export { ACPShareRegistryArtifact, ACPTimestampRevokerArtifact, MockACLArtifact, MockCoFHEAddressBookArtifact, MockERC1967ProxyArtifact, MockTaskManagerArtifact, MockThresholdNetworkArtifact, MockZkVerifierArtifact };
|
|
3596
4089
|
//# sourceMappingURL=index.mjs.map
|
|
3597
4090
|
//# sourceMappingURL=index.mjs.map
|