@dorafactory/maci-sdk 0.0.16 → 0.0.18

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.mjs CHANGED
@@ -26193,7 +26193,9 @@ function getDefaultParams(network = "mainnet") {
26193
26193
  certificateApiEndpoint: "https://vota-testnet-certificate-api.dorafactory.org/api/v1",
26194
26194
  registryAddress: "dora13c8aecstyxrhax9znvvh5zey89edrmd2k5va57pxvpe3fxtfsfeqlhsjnd",
26195
26195
  maciCodeId: 107,
26196
- oracleCodeId: 113,
26196
+ // oracleCodeId: 113, // 9-4-3-625
26197
+ oracleCodeId: 115,
26198
+ // 6-3-3-125
26197
26199
  oracleWhitelistBackendPubkey: "AoYo/zENN/JquagPdG0/NMbWBBYxOM8BVN677mBXJKJQ",
26198
26200
  oracleFeegrantOperator: "dora1xp0twdzsdeq4qg3c64v66552deax8zmvq4zw78"
26199
26201
  };
@@ -30356,11 +30358,14 @@ var MACI = class {
30356
30358
  signer,
30357
30359
  address,
30358
30360
  contractAddress,
30361
+ maciAccount,
30359
30362
  oracleCertificate,
30360
30363
  gasStation = false
30361
30364
  }) {
30362
30365
  try {
30363
- const maciAccount = await this.circom.genKeypairFromSign(signer, address);
30366
+ if (maciAccount === void 0) {
30367
+ maciAccount = await this.circom.genKeypairFromSign(signer, address);
30368
+ }
30364
30369
  const client = await this.contract.contractClient({
30365
30370
  signer
30366
30371
  });
@@ -30415,6 +30420,7 @@ var MACI = class {
30415
30420
  contractAddress,
30416
30421
  selectedOptions,
30417
30422
  operatorCoordPubKey,
30423
+ maciAccount,
30418
30424
  gasStation = false
30419
30425
  }) {
30420
30426
  if (stateIdx === -1) {
@@ -30431,7 +30437,9 @@ var MACI = class {
30431
30437
  contractAddress,
30432
30438
  voiceCreditBalance
30433
30439
  });
30434
- const maciAccount = await this.circom.genKeypairFromSign(signer, address);
30440
+ if (maciAccount === void 0) {
30441
+ maciAccount = await this.circom.genKeypairFromSign(signer, address);
30442
+ }
30435
30443
  const plan = options.map((o) => {
30436
30444
  return [o.idx, o.vc];
30437
30445
  });