@cofhe/mock-contracts 0.5.1 → 0.6.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 +10 -0
- package/README.md +15 -13
- package/dist/index.d.mts +1 -332
- package/dist/index.d.ts +1 -332
- package/dist/index.js +0 -309
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -309
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -2
- package/src/typechain-types/index.ts +0 -1
- package/contracts/TestBed.sol +0 -103
- package/src/TestBed.ts +0 -309
- package/src/typechain-types/TestBed.ts +0 -172
package/dist/index.mjs
CHANGED
|
@@ -2598,314 +2598,6 @@ var MockThresholdNetworkArtifact = {
|
|
|
2598
2598
|
]
|
|
2599
2599
|
};
|
|
2600
2600
|
|
|
2601
|
-
|
|
2602
|
-
var TestBedArtifact = {
|
|
2603
|
-
contractName: "TestBed",
|
|
2604
|
-
isFixed: true,
|
|
2605
|
-
fixedAddress: "0x0000000000000000000000000000000000005003",
|
|
2606
|
-
abi: [
|
|
2607
|
-
{
|
|
2608
|
-
type: "function",
|
|
2609
|
-
name: "add",
|
|
2610
|
-
inputs: [
|
|
2611
|
-
{
|
|
2612
|
-
name: "inNumber",
|
|
2613
|
-
type: "tuple",
|
|
2614
|
-
internalType: "struct InEuint32",
|
|
2615
|
-
components: [
|
|
2616
|
-
{
|
|
2617
|
-
name: "ctHash",
|
|
2618
|
-
type: "uint256",
|
|
2619
|
-
internalType: "uint256"
|
|
2620
|
-
},
|
|
2621
|
-
{
|
|
2622
|
-
name: "securityZone",
|
|
2623
|
-
type: "uint8",
|
|
2624
|
-
internalType: "uint8"
|
|
2625
|
-
},
|
|
2626
|
-
{
|
|
2627
|
-
name: "utype",
|
|
2628
|
-
type: "uint8",
|
|
2629
|
-
internalType: "uint8"
|
|
2630
|
-
},
|
|
2631
|
-
{
|
|
2632
|
-
name: "signature",
|
|
2633
|
-
type: "bytes",
|
|
2634
|
-
internalType: "bytes"
|
|
2635
|
-
}
|
|
2636
|
-
]
|
|
2637
|
-
}
|
|
2638
|
-
],
|
|
2639
|
-
outputs: [],
|
|
2640
|
-
stateMutability: "nonpayable"
|
|
2641
|
-
},
|
|
2642
|
-
{
|
|
2643
|
-
type: "function",
|
|
2644
|
-
name: "decrypt",
|
|
2645
|
-
inputs: [],
|
|
2646
|
-
outputs: [],
|
|
2647
|
-
stateMutability: "nonpayable"
|
|
2648
|
-
},
|
|
2649
|
-
{
|
|
2650
|
-
type: "function",
|
|
2651
|
-
name: "eNumber",
|
|
2652
|
-
inputs: [],
|
|
2653
|
-
outputs: [
|
|
2654
|
-
{
|
|
2655
|
-
name: "",
|
|
2656
|
-
type: "bytes32",
|
|
2657
|
-
internalType: "euint32"
|
|
2658
|
-
}
|
|
2659
|
-
],
|
|
2660
|
-
stateMutability: "view"
|
|
2661
|
-
},
|
|
2662
|
-
{
|
|
2663
|
-
type: "function",
|
|
2664
|
-
name: "exists",
|
|
2665
|
-
inputs: [],
|
|
2666
|
-
outputs: [
|
|
2667
|
-
{
|
|
2668
|
-
name: "",
|
|
2669
|
-
type: "bool",
|
|
2670
|
-
internalType: "bool"
|
|
2671
|
-
}
|
|
2672
|
-
],
|
|
2673
|
-
stateMutability: "pure"
|
|
2674
|
-
},
|
|
2675
|
-
{
|
|
2676
|
-
type: "function",
|
|
2677
|
-
name: "getDecryptResult",
|
|
2678
|
-
inputs: [
|
|
2679
|
-
{
|
|
2680
|
-
name: "input1",
|
|
2681
|
-
type: "bytes32",
|
|
2682
|
-
internalType: "euint32"
|
|
2683
|
-
}
|
|
2684
|
-
],
|
|
2685
|
-
outputs: [
|
|
2686
|
-
{
|
|
2687
|
-
name: "",
|
|
2688
|
-
type: "uint32",
|
|
2689
|
-
internalType: "uint32"
|
|
2690
|
-
}
|
|
2691
|
-
],
|
|
2692
|
-
stateMutability: "view"
|
|
2693
|
-
},
|
|
2694
|
-
{
|
|
2695
|
-
type: "function",
|
|
2696
|
-
name: "getDecryptResultSafe",
|
|
2697
|
-
inputs: [
|
|
2698
|
-
{
|
|
2699
|
-
name: "input1",
|
|
2700
|
-
type: "bytes32",
|
|
2701
|
-
internalType: "euint32"
|
|
2702
|
-
}
|
|
2703
|
-
],
|
|
2704
|
-
outputs: [
|
|
2705
|
-
{
|
|
2706
|
-
name: "value",
|
|
2707
|
-
type: "uint32",
|
|
2708
|
-
internalType: "uint32"
|
|
2709
|
-
},
|
|
2710
|
-
{
|
|
2711
|
-
name: "decrypted",
|
|
2712
|
-
type: "bool",
|
|
2713
|
-
internalType: "bool"
|
|
2714
|
-
}
|
|
2715
|
-
],
|
|
2716
|
-
stateMutability: "view"
|
|
2717
|
-
},
|
|
2718
|
-
{
|
|
2719
|
-
type: "function",
|
|
2720
|
-
name: "increment",
|
|
2721
|
-
inputs: [],
|
|
2722
|
-
outputs: [],
|
|
2723
|
-
stateMutability: "nonpayable"
|
|
2724
|
-
},
|
|
2725
|
-
{
|
|
2726
|
-
type: "function",
|
|
2727
|
-
name: "mul",
|
|
2728
|
-
inputs: [
|
|
2729
|
-
{
|
|
2730
|
-
name: "inNumber",
|
|
2731
|
-
type: "tuple",
|
|
2732
|
-
internalType: "struct InEuint32",
|
|
2733
|
-
components: [
|
|
2734
|
-
{
|
|
2735
|
-
name: "ctHash",
|
|
2736
|
-
type: "uint256",
|
|
2737
|
-
internalType: "uint256"
|
|
2738
|
-
},
|
|
2739
|
-
{
|
|
2740
|
-
name: "securityZone",
|
|
2741
|
-
type: "uint8",
|
|
2742
|
-
internalType: "uint8"
|
|
2743
|
-
},
|
|
2744
|
-
{
|
|
2745
|
-
name: "utype",
|
|
2746
|
-
type: "uint8",
|
|
2747
|
-
internalType: "uint8"
|
|
2748
|
-
},
|
|
2749
|
-
{
|
|
2750
|
-
name: "signature",
|
|
2751
|
-
type: "bytes",
|
|
2752
|
-
internalType: "bytes"
|
|
2753
|
-
}
|
|
2754
|
-
]
|
|
2755
|
-
}
|
|
2756
|
-
],
|
|
2757
|
-
outputs: [],
|
|
2758
|
-
stateMutability: "nonpayable"
|
|
2759
|
-
},
|
|
2760
|
-
{
|
|
2761
|
-
type: "function",
|
|
2762
|
-
name: "numberHash",
|
|
2763
|
-
inputs: [],
|
|
2764
|
-
outputs: [
|
|
2765
|
-
{
|
|
2766
|
-
name: "",
|
|
2767
|
-
type: "bytes32",
|
|
2768
|
-
internalType: "bytes32"
|
|
2769
|
-
}
|
|
2770
|
-
],
|
|
2771
|
-
stateMutability: "view"
|
|
2772
|
-
},
|
|
2773
|
-
{
|
|
2774
|
-
type: "function",
|
|
2775
|
-
name: "publishDecryptResult",
|
|
2776
|
-
inputs: [
|
|
2777
|
-
{
|
|
2778
|
-
name: "input",
|
|
2779
|
-
type: "bytes32",
|
|
2780
|
-
internalType: "euint32"
|
|
2781
|
-
},
|
|
2782
|
-
{
|
|
2783
|
-
name: "result",
|
|
2784
|
-
type: "uint32",
|
|
2785
|
-
internalType: "uint32"
|
|
2786
|
-
},
|
|
2787
|
-
{
|
|
2788
|
-
name: "signature",
|
|
2789
|
-
type: "bytes",
|
|
2790
|
-
internalType: "bytes"
|
|
2791
|
-
}
|
|
2792
|
-
],
|
|
2793
|
-
outputs: [],
|
|
2794
|
-
stateMutability: "nonpayable"
|
|
2795
|
-
},
|
|
2796
|
-
{
|
|
2797
|
-
type: "function",
|
|
2798
|
-
name: "setNumber",
|
|
2799
|
-
inputs: [
|
|
2800
|
-
{
|
|
2801
|
-
name: "inNumber",
|
|
2802
|
-
type: "tuple",
|
|
2803
|
-
internalType: "struct InEuint32",
|
|
2804
|
-
components: [
|
|
2805
|
-
{
|
|
2806
|
-
name: "ctHash",
|
|
2807
|
-
type: "uint256",
|
|
2808
|
-
internalType: "uint256"
|
|
2809
|
-
},
|
|
2810
|
-
{
|
|
2811
|
-
name: "securityZone",
|
|
2812
|
-
type: "uint8",
|
|
2813
|
-
internalType: "uint8"
|
|
2814
|
-
},
|
|
2815
|
-
{
|
|
2816
|
-
name: "utype",
|
|
2817
|
-
type: "uint8",
|
|
2818
|
-
internalType: "uint8"
|
|
2819
|
-
},
|
|
2820
|
-
{
|
|
2821
|
-
name: "signature",
|
|
2822
|
-
type: "bytes",
|
|
2823
|
-
internalType: "bytes"
|
|
2824
|
-
}
|
|
2825
|
-
]
|
|
2826
|
-
}
|
|
2827
|
-
],
|
|
2828
|
-
outputs: [],
|
|
2829
|
-
stateMutability: "nonpayable"
|
|
2830
|
-
},
|
|
2831
|
-
{
|
|
2832
|
-
type: "function",
|
|
2833
|
-
name: "setNumberTrivial",
|
|
2834
|
-
inputs: [
|
|
2835
|
-
{
|
|
2836
|
-
name: "inNumber",
|
|
2837
|
-
type: "uint32",
|
|
2838
|
-
internalType: "uint32"
|
|
2839
|
-
}
|
|
2840
|
-
],
|
|
2841
|
-
outputs: [],
|
|
2842
|
-
stateMutability: "nonpayable"
|
|
2843
|
-
},
|
|
2844
|
-
{
|
|
2845
|
-
type: "function",
|
|
2846
|
-
name: "sub",
|
|
2847
|
-
inputs: [
|
|
2848
|
-
{
|
|
2849
|
-
name: "inNumber",
|
|
2850
|
-
type: "tuple",
|
|
2851
|
-
internalType: "struct InEuint32",
|
|
2852
|
-
components: [
|
|
2853
|
-
{
|
|
2854
|
-
name: "ctHash",
|
|
2855
|
-
type: "uint256",
|
|
2856
|
-
internalType: "uint256"
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
name: "securityZone",
|
|
2860
|
-
type: "uint8",
|
|
2861
|
-
internalType: "uint8"
|
|
2862
|
-
},
|
|
2863
|
-
{
|
|
2864
|
-
name: "utype",
|
|
2865
|
-
type: "uint8",
|
|
2866
|
-
internalType: "uint8"
|
|
2867
|
-
},
|
|
2868
|
-
{
|
|
2869
|
-
name: "signature",
|
|
2870
|
-
type: "bytes",
|
|
2871
|
-
internalType: "bytes"
|
|
2872
|
-
}
|
|
2873
|
-
]
|
|
2874
|
-
}
|
|
2875
|
-
],
|
|
2876
|
-
outputs: [],
|
|
2877
|
-
stateMutability: "nonpayable"
|
|
2878
|
-
},
|
|
2879
|
-
{
|
|
2880
|
-
type: "error",
|
|
2881
|
-
name: "InvalidEncryptedInput",
|
|
2882
|
-
inputs: [
|
|
2883
|
-
{
|
|
2884
|
-
name: "got",
|
|
2885
|
-
type: "uint8",
|
|
2886
|
-
internalType: "uint8"
|
|
2887
|
-
},
|
|
2888
|
-
{
|
|
2889
|
-
name: "expected",
|
|
2890
|
-
type: "uint8",
|
|
2891
|
-
internalType: "uint8"
|
|
2892
|
-
}
|
|
2893
|
-
]
|
|
2894
|
-
},
|
|
2895
|
-
{
|
|
2896
|
-
type: "error",
|
|
2897
|
-
name: "SecurityZoneOutOfBounds",
|
|
2898
|
-
inputs: [
|
|
2899
|
-
{
|
|
2900
|
-
name: "value",
|
|
2901
|
-
type: "int32",
|
|
2902
|
-
internalType: "int32"
|
|
2903
|
-
}
|
|
2904
|
-
]
|
|
2905
|
-
}
|
|
2906
|
-
]
|
|
2907
|
-
};
|
|
2908
|
-
|
|
2909
|
-
export { MockACLArtifact, MockTaskManagerArtifact, MockThresholdNetworkArtifact, MockZkVerifierArtifact, TestBedArtifact };
|
|
2601
|
+
export { MockACLArtifact, MockTaskManagerArtifact, MockThresholdNetworkArtifact, MockZkVerifierArtifact };
|
|
2910
2602
|
//# sourceMappingURL=index.mjs.map
|
|
2911
2603
|
//# sourceMappingURL=index.mjs.map
|