@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/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 +69 -4
- package/contracts/MockThresholdNetwork.sol +5 -5
- package/contracts/Permissioned.sol +240 -143
- package/contracts/cofhe-contracts.json +10 -0
- package/dist/index.d.mts +688 -80
- package/dist/index.d.ts +688 -80
- package/dist/index.js +574 -85
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +574 -86
- 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 +0 -5
- 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
|
@@ -1425,11 +1425,6 @@ var MockTaskManagerArtifact = {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
]
|
|
1427
1427
|
},
|
|
1428
|
-
{
|
|
1429
|
-
type: "error",
|
|
1430
|
-
name: "NotImplemented",
|
|
1431
|
-
inputs: []
|
|
1432
|
-
},
|
|
1433
1428
|
{
|
|
1434
1429
|
type: "error",
|
|
1435
1430
|
name: "OnlyAggregatorAllowed",
|
|
@@ -2170,6 +2165,19 @@ var MockACLArtifact = {
|
|
|
2170
2165
|
inputs: [],
|
|
2171
2166
|
anonymous: false
|
|
2172
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
|
+
},
|
|
2173
2181
|
{
|
|
2174
2182
|
type: "event",
|
|
2175
2183
|
name: "NewDelegation",
|
|
@@ -2251,7 +2259,7 @@ var MockACLArtifact = {
|
|
|
2251
2259
|
},
|
|
2252
2260
|
{
|
|
2253
2261
|
type: "error",
|
|
2254
|
-
name: "
|
|
2262
|
+
name: "InvalidInitialization",
|
|
2255
2263
|
inputs: []
|
|
2256
2264
|
},
|
|
2257
2265
|
{
|
|
@@ -2259,6 +2267,11 @@ var MockACLArtifact = {
|
|
|
2259
2267
|
name: "InvalidTaskManagerAddress",
|
|
2260
2268
|
inputs: []
|
|
2261
2269
|
},
|
|
2270
|
+
{
|
|
2271
|
+
type: "error",
|
|
2272
|
+
name: "NotInitializing",
|
|
2273
|
+
inputs: []
|
|
2274
|
+
},
|
|
2262
2275
|
{
|
|
2263
2276
|
type: "error",
|
|
2264
2277
|
name: "NotShared",
|
|
@@ -2311,17 +2324,6 @@ var MockACLArtifact = {
|
|
|
2311
2324
|
}
|
|
2312
2325
|
]
|
|
2313
2326
|
},
|
|
2314
|
-
{
|
|
2315
|
-
type: "error",
|
|
2316
|
-
name: "StringTooLong",
|
|
2317
|
-
inputs: [
|
|
2318
|
-
{
|
|
2319
|
-
name: "str",
|
|
2320
|
-
type: "string",
|
|
2321
|
-
internalType: "string"
|
|
2322
|
-
}
|
|
2323
|
-
]
|
|
2324
|
-
},
|
|
2325
2327
|
{
|
|
2326
2328
|
type: "error",
|
|
2327
2329
|
name: "UnexpectedSharer",
|
|
@@ -2479,6 +2481,69 @@ var ACPShareRegistryArtifact = {
|
|
|
2479
2481
|
contractName: "ACPShareRegistry",
|
|
2480
2482
|
isFixed: false,
|
|
2481
2483
|
abi: [
|
|
2484
|
+
{
|
|
2485
|
+
type: "constructor",
|
|
2486
|
+
inputs: [],
|
|
2487
|
+
stateMutability: "nonpayable"
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
type: "function",
|
|
2491
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
2492
|
+
inputs: [],
|
|
2493
|
+
outputs: [
|
|
2494
|
+
{
|
|
2495
|
+
name: "",
|
|
2496
|
+
type: "bytes32",
|
|
2497
|
+
internalType: "bytes32"
|
|
2498
|
+
}
|
|
2499
|
+
],
|
|
2500
|
+
stateMutability: "view"
|
|
2501
|
+
},
|
|
2502
|
+
{
|
|
2503
|
+
type: "function",
|
|
2504
|
+
name: "UPGRADER_ROLE",
|
|
2505
|
+
inputs: [],
|
|
2506
|
+
outputs: [
|
|
2507
|
+
{
|
|
2508
|
+
name: "",
|
|
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
|
+
},
|
|
2482
2547
|
{
|
|
2483
2548
|
type: "function",
|
|
2484
2549
|
name: "getShare",
|
|
@@ -2493,7 +2558,7 @@ var ACPShareRegistryArtifact = {
|
|
|
2493
2558
|
{
|
|
2494
2559
|
name: "",
|
|
2495
2560
|
type: "tuple",
|
|
2496
|
-
internalType: "struct
|
|
2561
|
+
internalType: "struct ACPShareRegistry.ShareHeader",
|
|
2497
2562
|
components: [
|
|
2498
2563
|
{
|
|
2499
2564
|
name: "issuer",
|
|
@@ -2511,9 +2576,9 @@ var ACPShareRegistryArtifact = {
|
|
|
2511
2576
|
internalType: "address"
|
|
2512
2577
|
},
|
|
2513
2578
|
{
|
|
2514
|
-
name: "
|
|
2515
|
-
type: "
|
|
2516
|
-
internalType: "
|
|
2579
|
+
name: "blockNumber",
|
|
2580
|
+
type: "uint64",
|
|
2581
|
+
internalType: "uint64"
|
|
2517
2582
|
},
|
|
2518
2583
|
{
|
|
2519
2584
|
name: "revokerContract",
|
|
@@ -2521,40 +2586,70 @@ var ACPShareRegistryArtifact = {
|
|
|
2521
2586
|
internalType: "address"
|
|
2522
2587
|
},
|
|
2523
2588
|
{
|
|
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"
|
|
2589
|
+
name: "revokerData",
|
|
2590
|
+
type: "uint256",
|
|
2591
|
+
internalType: "uint256"
|
|
2552
2592
|
}
|
|
2553
2593
|
]
|
|
2554
2594
|
}
|
|
2555
2595
|
],
|
|
2556
2596
|
stateMutability: "view"
|
|
2557
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
|
+
},
|
|
2558
2653
|
{
|
|
2559
2654
|
type: "function",
|
|
2560
2655
|
name: "isShareValid",
|
|
@@ -2574,6 +2669,19 @@ var ACPShareRegistryArtifact = {
|
|
|
2574
2669
|
],
|
|
2575
2670
|
stateMutability: "view"
|
|
2576
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
|
+
},
|
|
2577
2685
|
{
|
|
2578
2686
|
type: "function",
|
|
2579
2687
|
name: "removeShare",
|
|
@@ -2587,6 +2695,42 @@ var ACPShareRegistryArtifact = {
|
|
|
2587
2695
|
outputs: [],
|
|
2588
2696
|
stateMutability: "nonpayable"
|
|
2589
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
|
+
},
|
|
2590
2734
|
{
|
|
2591
2735
|
type: "function",
|
|
2592
2736
|
name: "share",
|
|
@@ -2652,6 +2796,11 @@ var ACPShareRegistryArtifact = {
|
|
|
2652
2796
|
internalType: "bytes"
|
|
2653
2797
|
}
|
|
2654
2798
|
]
|
|
2799
|
+
},
|
|
2800
|
+
{
|
|
2801
|
+
name: "metadata",
|
|
2802
|
+
type: "bytes",
|
|
2803
|
+
internalType: "bytes"
|
|
2655
2804
|
}
|
|
2656
2805
|
],
|
|
2657
2806
|
outputs: [
|
|
@@ -2675,9 +2824,14 @@ var ACPShareRegistryArtifact = {
|
|
|
2675
2824
|
],
|
|
2676
2825
|
outputs: [
|
|
2677
2826
|
{
|
|
2678
|
-
name: "
|
|
2827
|
+
name: "shareIds",
|
|
2828
|
+
type: "bytes32[]",
|
|
2829
|
+
internalType: "bytes32[]"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
name: "headers",
|
|
2679
2833
|
type: "tuple[]",
|
|
2680
|
-
internalType: "struct
|
|
2834
|
+
internalType: "struct ACPShareRegistry.ShareHeader[]",
|
|
2681
2835
|
components: [
|
|
2682
2836
|
{
|
|
2683
2837
|
name: "issuer",
|
|
@@ -2695,9 +2849,9 @@ var ACPShareRegistryArtifact = {
|
|
|
2695
2849
|
internalType: "address"
|
|
2696
2850
|
},
|
|
2697
2851
|
{
|
|
2698
|
-
name: "
|
|
2699
|
-
type: "
|
|
2700
|
-
internalType: "
|
|
2852
|
+
name: "blockNumber",
|
|
2853
|
+
type: "uint64",
|
|
2854
|
+
internalType: "uint64"
|
|
2701
2855
|
},
|
|
2702
2856
|
{
|
|
2703
2857
|
name: "revokerContract",
|
|
@@ -2705,40 +2859,140 @@ var ACPShareRegistryArtifact = {
|
|
|
2705
2859
|
internalType: "address"
|
|
2706
2860
|
},
|
|
2707
2861
|
{
|
|
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"
|
|
2736
|
-
}
|
|
2862
|
+
name: "revokerData",
|
|
2863
|
+
type: "uint256",
|
|
2864
|
+
internalType: "uint256"
|
|
2865
|
+
}
|
|
2737
2866
|
]
|
|
2738
2867
|
}
|
|
2739
2868
|
],
|
|
2740
2869
|
stateMutability: "view"
|
|
2741
2870
|
},
|
|
2871
|
+
{
|
|
2872
|
+
type: "function",
|
|
2873
|
+
name: "supportsInterface",
|
|
2874
|
+
inputs: [
|
|
2875
|
+
{
|
|
2876
|
+
name: "interfaceId",
|
|
2877
|
+
type: "bytes4",
|
|
2878
|
+
internalType: "bytes4"
|
|
2879
|
+
}
|
|
2880
|
+
],
|
|
2881
|
+
outputs: [
|
|
2882
|
+
{
|
|
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",
|
|
2896
|
+
type: "address",
|
|
2897
|
+
internalType: "address"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
name: "data",
|
|
2901
|
+
type: "bytes",
|
|
2902
|
+
internalType: "bytes"
|
|
2903
|
+
}
|
|
2904
|
+
],
|
|
2905
|
+
outputs: [],
|
|
2906
|
+
stateMutability: "payable"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
type: "event",
|
|
2910
|
+
name: "Initialized",
|
|
2911
|
+
inputs: [
|
|
2912
|
+
{
|
|
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
|
+
},
|
|
2742
2996
|
{
|
|
2743
2997
|
type: "event",
|
|
2744
2998
|
name: "ShareRemoved",
|
|
@@ -2758,7 +3012,7 @@ var ACPShareRegistryArtifact = {
|
|
|
2758
3012
|
{
|
|
2759
3013
|
name: "shareId",
|
|
2760
3014
|
type: "bytes32",
|
|
2761
|
-
indexed:
|
|
3015
|
+
indexed: true,
|
|
2762
3016
|
internalType: "bytes32"
|
|
2763
3017
|
}
|
|
2764
3018
|
],
|
|
@@ -2783,22 +3037,167 @@ var ACPShareRegistryArtifact = {
|
|
|
2783
3037
|
{
|
|
2784
3038
|
name: "shareId",
|
|
2785
3039
|
type: "bytes32",
|
|
2786
|
-
indexed:
|
|
3040
|
+
indexed: true,
|
|
2787
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"
|
|
2788
3124
|
}
|
|
2789
3125
|
],
|
|
2790
3126
|
anonymous: false
|
|
2791
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
|
+
},
|
|
2792
3160
|
{
|
|
2793
3161
|
type: "error",
|
|
2794
3162
|
name: "AlreadyShared",
|
|
2795
3163
|
inputs: []
|
|
2796
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
|
+
},
|
|
2797
3191
|
{
|
|
2798
3192
|
type: "error",
|
|
2799
3193
|
name: "IssuerSignatureMissing",
|
|
2800
3194
|
inputs: []
|
|
2801
3195
|
},
|
|
3196
|
+
{
|
|
3197
|
+
type: "error",
|
|
3198
|
+
name: "NotInitializing",
|
|
3199
|
+
inputs: []
|
|
3200
|
+
},
|
|
2802
3201
|
{
|
|
2803
3202
|
type: "error",
|
|
2804
3203
|
name: "NotIssuer",
|
|
@@ -2824,6 +3223,22 @@ var ACPShareRegistryArtifact = {
|
|
|
2824
3223
|
name: "ShareExpired",
|
|
2825
3224
|
inputs: []
|
|
2826
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
|
+
},
|
|
2827
3242
|
{
|
|
2828
3243
|
type: "error",
|
|
2829
3244
|
name: "UnknownShare",
|
|
@@ -2832,6 +3247,79 @@ var ACPShareRegistryArtifact = {
|
|
|
2832
3247
|
]
|
|
2833
3248
|
};
|
|
2834
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
|
+
|
|
2835
3323
|
// src/MockZkVerifier.ts
|
|
2836
3324
|
var MockZkVerifierArtifact = {
|
|
2837
3325
|
contractName: "MockZkVerifier",
|
|
@@ -3598,6 +4086,7 @@ exports.ACPShareRegistryArtifact = ACPShareRegistryArtifact;
|
|
|
3598
4086
|
exports.ACPTimestampRevokerArtifact = ACPTimestampRevokerArtifact;
|
|
3599
4087
|
exports.MockACLArtifact = MockACLArtifact;
|
|
3600
4088
|
exports.MockCoFHEAddressBookArtifact = MockCoFHEAddressBookArtifact;
|
|
4089
|
+
exports.MockERC1967ProxyArtifact = MockERC1967ProxyArtifact;
|
|
3601
4090
|
exports.MockTaskManagerArtifact = MockTaskManagerArtifact;
|
|
3602
4091
|
exports.MockThresholdNetworkArtifact = MockThresholdNetworkArtifact;
|
|
3603
4092
|
exports.MockZkVerifierArtifact = MockZkVerifierArtifact;
|