@dorafactory/maci-sdk 0.0.29 → 0.0.30-rc
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/browser.d.mts +4 -3
- package/dist/browser.d.ts +4 -3
- package/dist/browser.js +10 -7
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +10 -7
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/libs/contract/contract.ts +7 -4
- package/src/libs/contract/types.ts +2 -0
package/dist/index.mjs
CHANGED
|
@@ -4223,7 +4223,8 @@ var Contract = class {
|
|
|
4223
4223
|
maxOption,
|
|
4224
4224
|
voiceCreditAmount,
|
|
4225
4225
|
circuitType,
|
|
4226
|
-
preDeactivateRoot
|
|
4226
|
+
preDeactivateRoot,
|
|
4227
|
+
fee = "auto"
|
|
4227
4228
|
}) {
|
|
4228
4229
|
const start_time = (startVoting.getTime() * 10 ** 6).toString();
|
|
4229
4230
|
const end_time = (endVoting.getTime() * 10 ** 6).toString();
|
|
@@ -4254,7 +4255,7 @@ var Contract = class {
|
|
|
4254
4255
|
certificationSystem: "0",
|
|
4255
4256
|
circuitType
|
|
4256
4257
|
},
|
|
4257
|
-
|
|
4258
|
+
fee,
|
|
4258
4259
|
void 0,
|
|
4259
4260
|
[requiredFee]
|
|
4260
4261
|
);
|
|
@@ -4286,7 +4287,8 @@ var Contract = class {
|
|
|
4286
4287
|
maxVoter,
|
|
4287
4288
|
maxOption,
|
|
4288
4289
|
circuitType,
|
|
4289
|
-
certSystemType
|
|
4290
|
+
certSystemType,
|
|
4291
|
+
fee = "auto"
|
|
4290
4292
|
}) {
|
|
4291
4293
|
const start_time = (startVoting.getTime() * 10 ** 6).toString();
|
|
4292
4294
|
const end_time = (endVoting.getTime() * 10 ** 6).toString();
|
|
@@ -4326,14 +4328,14 @@ var Contract = class {
|
|
|
4326
4328
|
groth16_tally_vkey: groth16TallyVkey,
|
|
4327
4329
|
plonk_process_vkey: plonkProcessVkey,
|
|
4328
4330
|
plonk_tally_vkey: plonkTallyVkey,
|
|
4329
|
-
max_vote_options: maxOption,
|
|
4331
|
+
max_vote_options: maxOption.toString(),
|
|
4330
4332
|
whitelist,
|
|
4331
4333
|
circuit_type: maciVoteType,
|
|
4332
4334
|
certification_system: maciCertSystem,
|
|
4333
4335
|
qtr_lib: QTR_LIB
|
|
4334
4336
|
},
|
|
4335
4337
|
`[MACI] ${title}`,
|
|
4336
|
-
|
|
4338
|
+
fee
|
|
4337
4339
|
);
|
|
4338
4340
|
return instantiateResponse;
|
|
4339
4341
|
}
|
|
@@ -4349,7 +4351,8 @@ var Contract = class {
|
|
|
4349
4351
|
circuitType,
|
|
4350
4352
|
whitelistEcosystem,
|
|
4351
4353
|
whitelistSnapshotHeight,
|
|
4352
|
-
whitelistVotingPowerArgs
|
|
4354
|
+
whitelistVotingPowerArgs,
|
|
4355
|
+
fee = "auto"
|
|
4353
4356
|
}) {
|
|
4354
4357
|
const start_time = (startVoting.getTime() * 1e6).toString();
|
|
4355
4358
|
const end_time = (endVoting.getTime() * 1e6).toString();
|
|
@@ -4386,7 +4389,7 @@ var Contract = class {
|
|
|
4386
4389
|
feegrant_operator: this.feegrantOperator
|
|
4387
4390
|
},
|
|
4388
4391
|
`[Oracle MACI] ${title}`,
|
|
4389
|
-
|
|
4392
|
+
fee
|
|
4390
4393
|
);
|
|
4391
4394
|
return instantiateResponse;
|
|
4392
4395
|
}
|