@dorafactory/maci-sdk 0.0.1 → 0.0.3
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.d.ts +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -1
- package/dist/libs/contract/types.d.ts +3 -15
- package/dist/libs/contract/utils.d.ts +1 -1
- package/dist/types/index.d.ts +14 -0
- package/package.json +1 -11
- package/src/index.ts +1 -0
- package/src/libs/contract/contract.ts +1 -2
- package/src/libs/contract/types.ts +3 -18
- package/src/libs/contract/utils.ts +5 -1
- package/src/types/index.ts +17 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -25,7 +25,10 @@ __export(src_exports, {
|
|
|
25
25
|
Contract: () => Contract,
|
|
26
26
|
Http: () => Http,
|
|
27
27
|
Indexer: () => Indexer,
|
|
28
|
+
MaciCertSystemType: () => MaciCertSystemType,
|
|
29
|
+
MaciCircuitType: () => MaciCircuitType,
|
|
28
30
|
MaciClient: () => MaciClient2,
|
|
31
|
+
MaciRoundType: () => MaciRoundType,
|
|
29
32
|
Operator: () => Operator,
|
|
30
33
|
Proof: () => Proof,
|
|
31
34
|
Round: () => Round,
|
|
@@ -3239,6 +3242,24 @@ async function createContractClientByWallet(rpcEndpoint, wallet) {
|
|
|
3239
3242
|
return client;
|
|
3240
3243
|
}
|
|
3241
3244
|
|
|
3245
|
+
// src/types/index.ts
|
|
3246
|
+
var MaciCircuitType = /* @__PURE__ */ ((MaciCircuitType2) => {
|
|
3247
|
+
MaciCircuitType2["IP1V"] = "0";
|
|
3248
|
+
MaciCircuitType2["QV"] = "1";
|
|
3249
|
+
return MaciCircuitType2;
|
|
3250
|
+
})(MaciCircuitType || {});
|
|
3251
|
+
var MaciCertSystemType = /* @__PURE__ */ ((MaciCertSystemType2) => {
|
|
3252
|
+
MaciCertSystemType2["GROTH16"] = "groth16";
|
|
3253
|
+
MaciCertSystemType2["PLONK"] = "plonk";
|
|
3254
|
+
return MaciCertSystemType2;
|
|
3255
|
+
})(MaciCertSystemType || {});
|
|
3256
|
+
var MaciRoundType = /* @__PURE__ */ ((MaciRoundType2) => {
|
|
3257
|
+
MaciRoundType2["MACI"] = "0";
|
|
3258
|
+
MaciRoundType2["AMACI"] = "1";
|
|
3259
|
+
MaciRoundType2["ORACLE_MACI"] = "2";
|
|
3260
|
+
return MaciRoundType2;
|
|
3261
|
+
})(MaciRoundType || {});
|
|
3262
|
+
|
|
3242
3263
|
// src/libs/contract/vars.ts
|
|
3243
3264
|
var CIRCUIT_INFO = {
|
|
3244
3265
|
"2-1-1-5": {
|
|
@@ -4145,7 +4166,10 @@ var MaciClient2 = class {
|
|
|
4145
4166
|
Contract,
|
|
4146
4167
|
Http,
|
|
4147
4168
|
Indexer,
|
|
4169
|
+
MaciCertSystemType,
|
|
4170
|
+
MaciCircuitType,
|
|
4148
4171
|
MaciClient,
|
|
4172
|
+
MaciRoundType,
|
|
4149
4173
|
Operator,
|
|
4150
4174
|
Proof,
|
|
4151
4175
|
Round,
|