@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/browser.d.mts +20 -2
- package/dist/browser.d.ts +20 -2
- package/dist/browser.js +4 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +4 -1
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/libs/contract/contract.ts +4 -1
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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
|
/**
|