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