@dorafactory/maci-sdk 0.0.23 → 0.0.25

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
@@ -1,6 +1,8 @@
1
1
  import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
2
2
  import { CosmWasmClient, ExecuteResult, SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
3
3
  import { StdFee, Coin } from '@cosmjs/amino';
4
+ import * as _cosmjs_stargate from '@cosmjs/stargate';
5
+ import * as _cosmjs_stargate_build_logs from '@cosmjs/stargate/build/logs';
4
6
  import { OfflineSigner } from '@cosmjs/proto-signing';
5
7
  export { Scalar, utils } from 'ffjavascript';
6
8
  export { default as createBlakeHash } from 'blake-hash';
@@ -1590,7 +1592,15 @@ declare class Contract {
1590
1592
  feegrantOperator: string;
1591
1593
  whitelistBackendPubkey: string;
1592
1594
  constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
1593
- createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<string>;
1595
+ createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
1596
+ contractAddress: string;
1597
+ logs: readonly _cosmjs_stargate_build_logs.Log[];
1598
+ height: number;
1599
+ transactionHash: string;
1600
+ events: readonly _cosmjs_stargate.Event[];
1601
+ gasWanted: bigint;
1602
+ gasUsed: bigint;
1603
+ }>;
1594
1604
  createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1595
1605
  createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1596
1606
  queryRoundInfo({ signer, roundAddress, }: {
@@ -2002,7 +2012,15 @@ declare class MaciClient {
2002
2012
  signer: OfflineSigner;
2003
2013
  contractAddress: string;
2004
2014
  }): Promise<AMaciClient>;
2005
- createAMaciRound(params: CreateAMaciRoundParams): Promise<string>;
2015
+ createAMaciRound(params: CreateAMaciRoundParams): Promise<{
2016
+ contractAddress: string;
2017
+ logs: readonly _cosmjs_stargate_build_logs.Log[];
2018
+ height: number;
2019
+ transactionHash: string;
2020
+ events: readonly _cosmjs_stargate.Event[];
2021
+ gasWanted: bigint;
2022
+ gasUsed: bigint;
2023
+ }>;
2006
2024
  createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2007
2025
  createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2008
2026
  /**
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
2
2
  import { CosmWasmClient, ExecuteResult, SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
3
3
  import { StdFee, Coin } from '@cosmjs/amino';
4
+ import * as _cosmjs_stargate from '@cosmjs/stargate';
5
+ import * as _cosmjs_stargate_build_logs from '@cosmjs/stargate/build/logs';
4
6
  import { OfflineSigner } from '@cosmjs/proto-signing';
5
7
  export { Scalar, utils } from 'ffjavascript';
6
8
  export { default as createBlakeHash } from 'blake-hash';
@@ -1590,7 +1592,15 @@ declare class Contract {
1590
1592
  feegrantOperator: string;
1591
1593
  whitelistBackendPubkey: string;
1592
1594
  constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
1593
- createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<string>;
1595
+ createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
1596
+ contractAddress: string;
1597
+ logs: readonly _cosmjs_stargate_build_logs.Log[];
1598
+ height: number;
1599
+ transactionHash: string;
1600
+ events: readonly _cosmjs_stargate.Event[];
1601
+ gasWanted: bigint;
1602
+ gasUsed: bigint;
1603
+ }>;
1594
1604
  createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1595
1605
  createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
1596
1606
  queryRoundInfo({ signer, roundAddress, }: {
@@ -2002,7 +2012,15 @@ declare class MaciClient {
2002
2012
  signer: OfflineSigner;
2003
2013
  contractAddress: string;
2004
2014
  }): Promise<AMaciClient>;
2005
- createAMaciRound(params: CreateAMaciRoundParams): Promise<string>;
2015
+ createAMaciRound(params: CreateAMaciRoundParams): Promise<{
2016
+ contractAddress: string;
2017
+ logs: readonly _cosmjs_stargate_build_logs.Log[];
2018
+ height: number;
2019
+ transactionHash: string;
2020
+ events: readonly _cosmjs_stargate.Event[];
2021
+ gasWanted: bigint;
2022
+ gasUsed: bigint;
2023
+ }>;
2006
2024
  createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2007
2025
  createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2008
2026
  /**
package/dist/index.js CHANGED
@@ -4223,7 +4223,10 @@ var Contract = class {
4223
4223
  }
4224
4224
  }
4225
4225
  });
4226
- return contractAddress;
4226
+ return {
4227
+ ...res,
4228
+ contractAddress
4229
+ };
4227
4230
  }
4228
4231
  async createMaciRound({
4229
4232
  signer,