@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/index.d.mts CHANGED
@@ -130,6 +130,7 @@ type CreateRoundParams = {
130
130
  startVoting: Date;
131
131
  endVoting: Date;
132
132
  circuitType: MaciCircuitType;
133
+ fee?: number | StdFee | 'auto';
133
134
  };
134
135
  type CreateAMaciRoundParams = {
135
136
  maxVoter: number;
@@ -1619,7 +1620,7 @@ declare class Contract {
1619
1620
  feegrantOperator: string;
1620
1621
  whitelistBackendPubkey: string;
1621
1622
  constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
1622
- createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
1623
+ createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, fee, }: CreateAMaciRoundParams): Promise<{
1623
1624
  contractAddress: string;
1624
1625
  logs: readonly _cosmjs_stargate_build_logs.Log[];
1625
1626
  height: number;
@@ -1628,8 +1629,8 @@ declare class Contract {
1628
1629
  gasWanted: bigint;
1629
1630
  gasUsed: bigint;
1630
1631
  }>;
1631
- createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
- createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
+ createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, fee, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1633
+ createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, fee, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1633
1634
  queryRoundInfo({ signer, roundAddress, }: {
1634
1635
  signer: OfflineSigner;
1635
1636
  roundAddress: string;
package/dist/index.d.ts CHANGED
@@ -130,6 +130,7 @@ type CreateRoundParams = {
130
130
  startVoting: Date;
131
131
  endVoting: Date;
132
132
  circuitType: MaciCircuitType;
133
+ fee?: number | StdFee | 'auto';
133
134
  };
134
135
  type CreateAMaciRoundParams = {
135
136
  maxVoter: number;
@@ -1619,7 +1620,7 @@ declare class Contract {
1619
1620
  feegrantOperator: string;
1620
1621
  whitelistBackendPubkey: string;
1621
1622
  constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
1622
- createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
1623
+ createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, fee, }: CreateAMaciRoundParams): Promise<{
1623
1624
  contractAddress: string;
1624
1625
  logs: readonly _cosmjs_stargate_build_logs.Log[];
1625
1626
  height: number;
@@ -1628,8 +1629,8 @@ declare class Contract {
1628
1629
  gasWanted: bigint;
1629
1630
  gasUsed: bigint;
1630
1631
  }>;
1631
- createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
- createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
+ createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, fee, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1633
+ createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, fee, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1633
1634
  queryRoundInfo({ signer, roundAddress, }: {
1634
1635
  signer: OfflineSigner;
1635
1636
  roundAddress: string;
package/dist/index.js CHANGED
@@ -4287,7 +4287,8 @@ var Contract = class {
4287
4287
  maxOption,
4288
4288
  voiceCreditAmount,
4289
4289
  circuitType,
4290
- preDeactivateRoot
4290
+ preDeactivateRoot,
4291
+ fee = "auto"
4291
4292
  }) {
4292
4293
  const start_time = (startVoting.getTime() * 10 ** 6).toString();
4293
4294
  const end_time = (endVoting.getTime() * 10 ** 6).toString();
@@ -4318,7 +4319,7 @@ var Contract = class {
4318
4319
  certificationSystem: "0",
4319
4320
  circuitType
4320
4321
  },
4321
- "auto",
4322
+ fee,
4322
4323
  void 0,
4323
4324
  [requiredFee]
4324
4325
  );
@@ -4350,7 +4351,8 @@ var Contract = class {
4350
4351
  maxVoter,
4351
4352
  maxOption,
4352
4353
  circuitType,
4353
- certSystemType
4354
+ certSystemType,
4355
+ fee = "auto"
4354
4356
  }) {
4355
4357
  const start_time = (startVoting.getTime() * 10 ** 6).toString();
4356
4358
  const end_time = (endVoting.getTime() * 10 ** 6).toString();
@@ -4390,14 +4392,14 @@ var Contract = class {
4390
4392
  groth16_tally_vkey: groth16TallyVkey,
4391
4393
  plonk_process_vkey: plonkProcessVkey,
4392
4394
  plonk_tally_vkey: plonkTallyVkey,
4393
- max_vote_options: maxOption,
4395
+ max_vote_options: maxOption.toString(),
4394
4396
  whitelist,
4395
4397
  circuit_type: maciVoteType,
4396
4398
  certification_system: maciCertSystem,
4397
4399
  qtr_lib: QTR_LIB
4398
4400
  },
4399
4401
  `[MACI] ${title}`,
4400
- "auto"
4402
+ fee
4401
4403
  );
4402
4404
  return instantiateResponse;
4403
4405
  }
@@ -4413,7 +4415,8 @@ var Contract = class {
4413
4415
  circuitType,
4414
4416
  whitelistEcosystem,
4415
4417
  whitelistSnapshotHeight,
4416
- whitelistVotingPowerArgs
4418
+ whitelistVotingPowerArgs,
4419
+ fee = "auto"
4417
4420
  }) {
4418
4421
  const start_time = (startVoting.getTime() * 1e6).toString();
4419
4422
  const end_time = (endVoting.getTime() * 1e6).toString();
@@ -4450,7 +4453,7 @@ var Contract = class {
4450
4453
  feegrant_operator: this.feegrantOperator
4451
4454
  },
4452
4455
  `[Oracle MACI] ${title}`,
4453
- "auto"
4456
+ fee
4454
4457
  );
4455
4458
  return instantiateResponse;
4456
4459
  }