@dorafactory/maci-sdk 0.1.2-pre.2 → 0.1.2-pre.4
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.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/index.mjs.map +1 -1
- package/dist/libs/contract/contract.d.ts +1 -1
- package/package.json +1 -1
- package/src/libs/contract/contract.ts +2 -10
- package/src/maci.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -5289,14 +5289,11 @@ var Contract = class {
|
|
|
5289
5289
|
title,
|
|
5290
5290
|
description,
|
|
5291
5291
|
link,
|
|
5292
|
-
maxVoter,
|
|
5293
5292
|
voteOptionMap,
|
|
5294
5293
|
circuitType,
|
|
5295
5294
|
whitelistEcosystem,
|
|
5296
5295
|
whitelistSnapshotHeight,
|
|
5297
5296
|
whitelistVotingPowerArgs,
|
|
5298
|
-
whitelistBackendPubkey,
|
|
5299
|
-
feegrantOperator,
|
|
5300
5297
|
fee = "auto"
|
|
5301
5298
|
}) {
|
|
5302
5299
|
const start_time = (startVoting.getTime() * 1e6).toString();
|
|
@@ -5317,7 +5314,6 @@ var Contract = class {
|
|
|
5317
5314
|
address,
|
|
5318
5315
|
this.oracleCodeId,
|
|
5319
5316
|
{
|
|
5320
|
-
max_voters: maxVoter.toString(),
|
|
5321
5317
|
round_info: { title, description: description || "", link: link || "" },
|
|
5322
5318
|
voting_time: {
|
|
5323
5319
|
start_time,
|
|
@@ -5328,13 +5324,13 @@ var Contract = class {
|
|
|
5328
5324
|
y: operatorPubkeyY.toString()
|
|
5329
5325
|
},
|
|
5330
5326
|
vote_option_map: voteOptionMap,
|
|
5331
|
-
whitelist_backend_pubkey:
|
|
5327
|
+
whitelist_backend_pubkey: this.whitelistBackendPubkey,
|
|
5332
5328
|
whitelist_ecosystem: whitelistEcosystem,
|
|
5333
5329
|
whitelist_snapshot_height: whitelistSnapshotHeight,
|
|
5334
5330
|
whitelist_voting_power_args: whitelistVotingPowerArgs,
|
|
5335
5331
|
circuit_type: maciVoteType,
|
|
5336
5332
|
certification_system: maciCertSystem,
|
|
5337
|
-
feegrant_operator:
|
|
5333
|
+
feegrant_operator: this.feegrantOperator
|
|
5338
5334
|
},
|
|
5339
5335
|
`[Oracle MACI] ${title}`,
|
|
5340
5336
|
fee
|
|
@@ -7121,7 +7117,9 @@ var MaciClient2 = class {
|
|
|
7121
7117
|
address,
|
|
7122
7118
|
contractAddress
|
|
7123
7119
|
}) {
|
|
7124
|
-
address
|
|
7120
|
+
if (address === void 0) {
|
|
7121
|
+
address = await this.getAddress(signer);
|
|
7122
|
+
}
|
|
7125
7123
|
return await this.maci.hasFeegrant({
|
|
7126
7124
|
address,
|
|
7127
7125
|
contractAddress
|