@dorafactory/maci-sdk 0.0.28 → 0.0.30
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/README.md +5 -3
- package/dist/browser.d.mts +0 -1
- package/dist/browser.d.ts +0 -1
- package/dist/browser.js +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +3 -3
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/libs/contract/contract.ts +1 -1
- package/src/libs/query/round.ts +1 -1
- package/src/types/index.ts +1 -1
package/README.md
CHANGED
|
@@ -161,14 +161,16 @@ const certificate = await client.maci.requestOracleCertificate({
|
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
// 3. Check Gas Station status
|
|
164
|
-
let
|
|
164
|
+
let hasFeegrant = await client.maci.hasFeegrant({
|
|
165
|
+
address,
|
|
165
166
|
contractAddress: 'dora1...',
|
|
166
167
|
});
|
|
167
168
|
|
|
168
169
|
// Wait for Gas Station to be enabled
|
|
169
|
-
while (!
|
|
170
|
+
while (!hasFeegrant) {
|
|
170
171
|
await delay(1000); // Delay 1 second
|
|
171
|
-
|
|
172
|
+
hasFeegrant = await client.maci.hasFeegrant({
|
|
173
|
+
address,
|
|
172
174
|
contractAddress: 'dora1...',
|
|
173
175
|
});
|
|
174
176
|
}
|
package/dist/browser.d.mts
CHANGED
package/dist/browser.d.ts
CHANGED
package/dist/browser.js
CHANGED
|
@@ -27009,8 +27009,8 @@ var Round = class {
|
|
|
27009
27009
|
"maciType",
|
|
27010
27010
|
"voiceCreditAmount",
|
|
27011
27011
|
"preDeactivateRoot",
|
|
27012
|
-
"identity"
|
|
27013
|
-
|
|
27012
|
+
"identity"
|
|
27013
|
+
// 'funds',
|
|
27014
27014
|
];
|
|
27015
27015
|
if (fields && fields.length > 0) {
|
|
27016
27016
|
const invalidFields = fields.filter(
|
|
@@ -30156,7 +30156,7 @@ var Contract = class {
|
|
|
30156
30156
|
groth16_tally_vkey: groth16TallyVkey,
|
|
30157
30157
|
plonk_process_vkey: plonkProcessVkey,
|
|
30158
30158
|
plonk_tally_vkey: plonkTallyVkey,
|
|
30159
|
-
max_vote_options: maxOption,
|
|
30159
|
+
max_vote_options: maxOption.toString(),
|
|
30160
30160
|
whitelist,
|
|
30161
30161
|
circuit_type: maciVoteType,
|
|
30162
30162
|
certification_system: maciCertSystem,
|