@dorafactory/maci-sdk 0.0.24 → 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/browser.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
|
|
|
@@ -1589,7 +1591,15 @@ declare class Contract {
|
|
|
1589
1591
|
feegrantOperator: string;
|
|
1590
1592
|
whitelistBackendPubkey: string;
|
|
1591
1593
|
constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
|
|
1592
|
-
createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<
|
|
1594
|
+
createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
|
|
1595
|
+
contractAddress: string;
|
|
1596
|
+
logs: readonly _cosmjs_stargate_build_logs.Log[];
|
|
1597
|
+
height: number;
|
|
1598
|
+
transactionHash: string;
|
|
1599
|
+
events: readonly _cosmjs_stargate.Event[];
|
|
1600
|
+
gasWanted: bigint;
|
|
1601
|
+
gasUsed: bigint;
|
|
1602
|
+
}>;
|
|
1593
1603
|
createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
1594
1604
|
createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
1595
1605
|
queryRoundInfo({ signer, roundAddress, }: {
|
|
@@ -2001,7 +2011,15 @@ declare class MaciClient {
|
|
|
2001
2011
|
signer: OfflineSigner;
|
|
2002
2012
|
contractAddress: string;
|
|
2003
2013
|
}): Promise<AMaciClient>;
|
|
2004
|
-
createAMaciRound(params: CreateAMaciRoundParams): Promise<
|
|
2014
|
+
createAMaciRound(params: CreateAMaciRoundParams): Promise<{
|
|
2015
|
+
contractAddress: string;
|
|
2016
|
+
logs: readonly _cosmjs_stargate_build_logs.Log[];
|
|
2017
|
+
height: number;
|
|
2018
|
+
transactionHash: string;
|
|
2019
|
+
events: readonly _cosmjs_stargate.Event[];
|
|
2020
|
+
gasWanted: bigint;
|
|
2021
|
+
gasUsed: bigint;
|
|
2022
|
+
}>;
|
|
2005
2023
|
createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2006
2024
|
createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2007
2025
|
/**
|
package/dist/browser.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
|
|
|
@@ -1589,7 +1591,15 @@ declare class Contract {
|
|
|
1589
1591
|
feegrantOperator: string;
|
|
1590
1592
|
whitelistBackendPubkey: string;
|
|
1591
1593
|
constructor({ rpcEndpoint, registryAddress, maciCodeId, oracleCodeId, feegrantOperator, whitelistBackendPubkey, }: ContractParams);
|
|
1592
|
-
createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<
|
|
1594
|
+
createAMaciRound({ signer, startVoting, endVoting, operator, whitelist, title, description, link, maxVoter, maxOption, voiceCreditAmount, circuitType, preDeactivateRoot, }: CreateAMaciRoundParams): Promise<{
|
|
1595
|
+
contractAddress: string;
|
|
1596
|
+
logs: readonly _cosmjs_stargate_build_logs.Log[];
|
|
1597
|
+
height: number;
|
|
1598
|
+
transactionHash: string;
|
|
1599
|
+
events: readonly _cosmjs_stargate.Event[];
|
|
1600
|
+
gasWanted: bigint;
|
|
1601
|
+
gasUsed: bigint;
|
|
1602
|
+
}>;
|
|
1593
1603
|
createMaciRound({ signer, operatorPubkey, startVoting, endVoting, whitelist, title, description, link, maxVoter, maxOption, circuitType, certSystemType, }: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
1594
1604
|
createOracleMaciRound({ signer, operatorPubkey, startVoting, endVoting, title, description, link, voteOptionMap, circuitType, whitelistEcosystem, whitelistSnapshotHeight, whitelistVotingPowerArgs, }: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
1595
1605
|
queryRoundInfo({ signer, roundAddress, }: {
|
|
@@ -2001,7 +2011,15 @@ declare class MaciClient {
|
|
|
2001
2011
|
signer: OfflineSigner;
|
|
2002
2012
|
contractAddress: string;
|
|
2003
2013
|
}): Promise<AMaciClient>;
|
|
2004
|
-
createAMaciRound(params: CreateAMaciRoundParams): Promise<
|
|
2014
|
+
createAMaciRound(params: CreateAMaciRoundParams): Promise<{
|
|
2015
|
+
contractAddress: string;
|
|
2016
|
+
logs: readonly _cosmjs_stargate_build_logs.Log[];
|
|
2017
|
+
height: number;
|
|
2018
|
+
transactionHash: string;
|
|
2019
|
+
events: readonly _cosmjs_stargate.Event[];
|
|
2020
|
+
gasWanted: bigint;
|
|
2021
|
+
gasUsed: bigint;
|
|
2022
|
+
}>;
|
|
2005
2023
|
createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2006
2024
|
createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2007
2025
|
/**
|
package/dist/browser.js
CHANGED
|
@@ -29989,7 +29989,10 @@ var Contract = class {
|
|
|
29989
29989
|
}
|
|
29990
29990
|
}
|
|
29991
29991
|
});
|
|
29992
|
-
return
|
|
29992
|
+
return {
|
|
29993
|
+
...res,
|
|
29994
|
+
contractAddress
|
|
29995
|
+
};
|
|
29993
29996
|
}
|
|
29994
29997
|
async createMaciRound({
|
|
29995
29998
|
signer,
|