@dorafactory/maci-sdk 0.0.36 → 0.0.37

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.mjs CHANGED
@@ -4041,6 +4041,22 @@ var QTR_LIB = {
4041
4041
  };
4042
4042
 
4043
4043
  // src/libs/contract/utils.ts
4044
+ function getCircuitType(circuitType) {
4045
+ let maciVoteType = null;
4046
+ switch (circuitType) {
4047
+ case "0" /* IP1V */:
4048
+ maciVoteType = "0";
4049
+ break;
4050
+ case "1" /* QV */:
4051
+ maciVoteType = "1";
4052
+ break;
4053
+ default:
4054
+ throw new Error(
4055
+ `Invalid circuit type ${circuitType}, only support 1P1V and QV`
4056
+ );
4057
+ }
4058
+ return maciVoteType;
4059
+ }
4044
4060
  function getContractParams(type, circuitType, proofSystem, maxVoter, maxOption) {
4045
4061
  let parameters;
4046
4062
  let groth16ProcessVkey = null;
@@ -6152,6 +6168,9 @@ export {
6152
6168
  genPubKey,
6153
6169
  genRandomBabyJubValue,
6154
6170
  genRandomSalt,
6171
+ getAMaciRoundCircuitFee,
6172
+ getCircuitType,
6173
+ getContractParams,
6155
6174
  getDefaultParams,
6156
6175
  hash12,
6157
6176
  hash2,