@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.
@@ -129,6 +129,7 @@ type CreateRoundParams = {
129
129
  startVoting: Date;
130
130
  endVoting: Date;
131
131
  circuitType: MaciCircuitType;
132
+ fee?: number | StdFee | 'auto';
132
133
  };
133
134
  type CreateAMaciRoundParams = {
134
135
  maxVoter: number;
@@ -1618,7 +1619,7 @@ declare class Contract {
1618
1619
  feegrantOperator: string;
1619
1620
  whitelistBackendPubkey: string;
1620
1621
  constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
1621
- createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
1622
+ createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, fee, }: CreateAMaciRoundParams): Promise<{
1622
1623
  contractAddress: string;
1623
1624
  logs: readonly _cosmjs_stargate_build_logs.Log[];
1624
1625
  height: number;
@@ -1627,8 +1628,8 @@ declare class Contract {
1627
1628
  gasWanted: bigint;
1628
1629
  gasUsed: bigint;
1629
1630
  }>;
1630
- createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1631
- createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1631
+ createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, fee, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
+ createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, fee, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
1633
  queryRoundInfo({ signer, roundAddress, }: {
1633
1634
  signer: OfflineSigner;
1634
1635
  roundAddress: string;
package/dist/browser.d.ts CHANGED
@@ -129,6 +129,7 @@ type CreateRoundParams = {
129
129
  startVoting: Date;
130
130
  endVoting: Date;
131
131
  circuitType: MaciCircuitType;
132
+ fee?: number | StdFee | 'auto';
132
133
  };
133
134
  type CreateAMaciRoundParams = {
134
135
  maxVoter: number;
@@ -1618,7 +1619,7 @@ declare class Contract {
1618
1619
  feegrantOperator: string;
1619
1620
  whitelistBackendPubkey: string;
1620
1621
  constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
1621
- createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
1622
+ createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, fee, }: CreateAMaciRoundParams): Promise<{
1622
1623
  contractAddress: string;
1623
1624
  logs: readonly _cosmjs_stargate_build_logs.Log[];
1624
1625
  height: number;
@@ -1627,8 +1628,8 @@ declare class Contract {
1627
1628
  gasWanted: bigint;
1628
1629
  gasUsed: bigint;
1629
1630
  }>;
1630
- createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1631
- createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1631
+ createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, fee, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
+ createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, fee, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1632
1633
  queryRoundInfo({ signer, roundAddress, }: {
1633
1634
  signer: OfflineSigner;
1634
1635
  roundAddress: string;
package/dist/browser.js CHANGED
@@ -30053,7 +30053,8 @@ var Contract = class {
30053
30053
  maxOption,
30054
30054
  voiceCreditAmount,
30055
30055
  circuitType,
30056
- preDeactivateRoot
30056
+ preDeactivateRoot,
30057
+ fee = "auto"
30057
30058
  }) {
30058
30059
  const start_time = (startVoting.getTime() * 10 ** 6).toString();
30059
30060
  const end_time = (endVoting.getTime() * 10 ** 6).toString();
@@ -30084,7 +30085,7 @@ var Contract = class {
30084
30085
  certificationSystem: "0",
30085
30086
  circuitType
30086
30087
  },
30087
- "auto",
30088
+ fee,
30088
30089
  void 0,
30089
30090
  [requiredFee]
30090
30091
  );
@@ -30116,7 +30117,8 @@ var Contract = class {
30116
30117
  maxVoter,
30117
30118
  maxOption,
30118
30119
  circuitType,
30119
- certSystemType
30120
+ certSystemType,
30121
+ fee = "auto"
30120
30122
  }) {
30121
30123
  const start_time = (startVoting.getTime() * 10 ** 6).toString();
30122
30124
  const end_time = (endVoting.getTime() * 10 ** 6).toString();
@@ -30156,14 +30158,14 @@ var Contract = class {
30156
30158
  groth16_tally_vkey: groth16TallyVkey,
30157
30159
  plonk_process_vkey: plonkProcessVkey,
30158
30160
  plonk_tally_vkey: plonkTallyVkey,
30159
- max_vote_options: maxOption,
30161
+ max_vote_options: maxOption.toString(),
30160
30162
  whitelist,
30161
30163
  circuit_type: maciVoteType,
30162
30164
  certification_system: maciCertSystem,
30163
30165
  qtr_lib: QTR_LIB
30164
30166
  },
30165
30167
  `[MACI] ${title}`,
30166
- "auto"
30168
+ fee
30167
30169
  );
30168
30170
  return instantiateResponse;
30169
30171
  }
@@ -30179,7 +30181,8 @@ var Contract = class {
30179
30181
  circuitType,
30180
30182
  whitelistEcosystem,
30181
30183
  whitelistSnapshotHeight,
30182
- whitelistVotingPowerArgs
30184
+ whitelistVotingPowerArgs,
30185
+ fee = "auto"
30183
30186
  }) {
30184
30187
  const start_time = (startVoting.getTime() * 1e6).toString();
30185
30188
  const end_time = (endVoting.getTime() * 1e6).toString();
@@ -30216,7 +30219,7 @@ var Contract = class {
30216
30219
  feegrant_operator: this.feegrantOperator
30217
30220
  },
30218
30221
  `[Oracle MACI] ${title}`,
30219
- "auto"
30222
+ fee
30220
30223
  );
30221
30224
  return instantiateResponse;
30222
30225
  }