@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/browser.mjs
CHANGED
|
@@ -30021,7 +30021,8 @@ var Contract = class {
|
|
|
30021
30021
|
maxOption,
|
|
30022
30022
|
voiceCreditAmount,
|
|
30023
30023
|
circuitType,
|
|
30024
|
-
preDeactivateRoot
|
|
30024
|
+
preDeactivateRoot,
|
|
30025
|
+
fee = "auto"
|
|
30025
30026
|
}) {
|
|
30026
30027
|
const start_time = (startVoting.getTime() * 10 ** 6).toString();
|
|
30027
30028
|
const end_time = (endVoting.getTime() * 10 ** 6).toString();
|
|
@@ -30052,7 +30053,7 @@ var Contract = class {
|
|
|
30052
30053
|
certificationSystem: "0",
|
|
30053
30054
|
circuitType
|
|
30054
30055
|
},
|
|
30055
|
-
|
|
30056
|
+
fee,
|
|
30056
30057
|
void 0,
|
|
30057
30058
|
[requiredFee]
|
|
30058
30059
|
);
|
|
@@ -30084,7 +30085,8 @@ var Contract = class {
|
|
|
30084
30085
|
maxVoter,
|
|
30085
30086
|
maxOption,
|
|
30086
30087
|
circuitType,
|
|
30087
|
-
certSystemType
|
|
30088
|
+
certSystemType,
|
|
30089
|
+
fee = "auto"
|
|
30088
30090
|
}) {
|
|
30089
30091
|
const start_time = (startVoting.getTime() * 10 ** 6).toString();
|
|
30090
30092
|
const end_time = (endVoting.getTime() * 10 ** 6).toString();
|
|
@@ -30124,14 +30126,14 @@ var Contract = class {
|
|
|
30124
30126
|
groth16_tally_vkey: groth16TallyVkey,
|
|
30125
30127
|
plonk_process_vkey: plonkProcessVkey,
|
|
30126
30128
|
plonk_tally_vkey: plonkTallyVkey,
|
|
30127
|
-
max_vote_options: maxOption,
|
|
30129
|
+
max_vote_options: maxOption.toString(),
|
|
30128
30130
|
whitelist,
|
|
30129
30131
|
circuit_type: maciVoteType,
|
|
30130
30132
|
certification_system: maciCertSystem,
|
|
30131
30133
|
qtr_lib: QTR_LIB
|
|
30132
30134
|
},
|
|
30133
30135
|
`[MACI] ${title}`,
|
|
30134
|
-
|
|
30136
|
+
fee
|
|
30135
30137
|
);
|
|
30136
30138
|
return instantiateResponse;
|
|
30137
30139
|
}
|
|
@@ -30147,7 +30149,8 @@ var Contract = class {
|
|
|
30147
30149
|
circuitType,
|
|
30148
30150
|
whitelistEcosystem,
|
|
30149
30151
|
whitelistSnapshotHeight,
|
|
30150
|
-
whitelistVotingPowerArgs
|
|
30152
|
+
whitelistVotingPowerArgs,
|
|
30153
|
+
fee = "auto"
|
|
30151
30154
|
}) {
|
|
30152
30155
|
const start_time = (startVoting.getTime() * 1e6).toString();
|
|
30153
30156
|
const end_time = (endVoting.getTime() * 1e6).toString();
|
|
@@ -30184,7 +30187,7 @@ var Contract = class {
|
|
|
30184
30187
|
feegrant_operator: this.feegrantOperator
|
|
30185
30188
|
},
|
|
30186
30189
|
`[Oracle MACI] ${title}`,
|
|
30187
|
-
|
|
30190
|
+
fee
|
|
30188
30191
|
);
|
|
30189
30192
|
return instantiateResponse;
|
|
30190
30193
|
}
|