@dorafactory/maci-sdk 0.0.31 → 0.0.33

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.
@@ -1901,13 +1901,18 @@ declare class MACI {
1901
1901
  getOracleCertificateConfig(): Promise<EcosystemsResponse>;
1902
1902
  /**
1903
1903
  * Batch grant with bond (for maci)
1904
- * @param client
1904
+ * @param signer
1905
1905
  * @param contractAddress
1906
1906
  * @param address
1907
1907
  * @param amount
1908
1908
  * @returns
1909
1909
  */
1910
- batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1910
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
1911
+ signer: OfflineSigner;
1912
+ contractAddress: string;
1913
+ address: string;
1914
+ amount: string;
1915
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1911
1916
  /**
1912
1917
  * Batch revoke with withdraw (for maci)
1913
1918
  * @param client
@@ -1915,7 +1920,11 @@ declare class MACI {
1915
1920
  * @param address
1916
1921
  * @returns
1917
1922
  */
1918
- batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1923
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
1924
+ signer: OfflineSigner;
1925
+ contractAddress: string;
1926
+ address: string;
1927
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1919
1928
  }
1920
1929
 
1921
1930
  declare const circuits: Record<string, CircuitType>;
@@ -2082,128 +2091,135 @@ declare class MaciClient {
2082
2091
  logs: readonly _cosmjs_stargate_build_logs.Log[];
2083
2092
  height: number;
2084
2093
  transactionHash: string;
2085
- events: readonly _cosmjs_stargate.Event[];
2094
+ events: readonly _cosmjs_cosmwasm_stargate.Event[];
2086
2095
  gasWanted: bigint;
2087
2096
  gasUsed: bigint;
2088
2097
  }>;
2089
2098
  createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2090
2099
  createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2091
- /**
2092
- * @method balanceOf
2093
- * @description Get the balance of a specific address.
2094
- * @param {string} address - The address to check the balance for.
2095
- * @returns {Promise<BalanceResponse>} The balance response.
2096
- */
2097
- balanceOf(address: string): Promise<BalanceResponse>;
2098
- /**
2099
- * @method getRoundById
2100
- * @description Get a round by its ID.
2101
- * @param {string} id - The ID of the round.
2102
- * @returns {Promise<RoundResponse>} The round response.
2103
- */
2104
- getRoundById(id: string): Promise<RoundResponse>;
2105
- /**
2106
- * @method getRoundWithFields
2107
- * @description Get a round by its address with selective fields.
2108
- * @param {string} address - The address of the round.
2109
- * @param {string[]} [fields] - The fields to retrieve.
2110
- * @returns {Promise<SelectiveRoundResponse>} The round response.
2111
- */
2112
- getRoundWithFields(address: string, fields?: string[]): Promise<SelectiveRoundResponse>;
2113
- /**
2114
- * @method getRounds
2115
- * @description Get multiple rounds.
2116
- * @param {string} after - The cursor to start after.
2117
- * @param {number} [limit] - The number of rounds to retrieve.
2118
- * @returns {Promise<RoundsResponse>} The rounds response.
2119
- */
2120
- getRounds(after: string, limit?: number): Promise<RoundsResponse>;
2121
- /**
2122
- * @method getRoundsByStatus
2123
- * @description Get rounds by their status.
2124
- * @param {string} status - The status of the rounds to retrieve.
2125
- * @param {string} after - The cursor to start after.
2126
- * @param {number} [limit] - The number of rounds to retrieve.
2127
- * @returns {Promise<RoundsResponse>} The rounds response.
2128
- */
2129
- getRoundsByStatus(status: string, after: string, limit?: number): Promise<RoundsResponse>;
2130
- /**
2131
- * @method getRoundsByCircuitName
2132
- * @description Get rounds by their circuit name.
2133
- * @param {string} name - The name of the circuit.
2134
- * @param {string} after - The cursor to start after.
2135
- * @param {number} [limit] - The number of rounds to retrieve.
2136
- * @returns {Promise<RoundsResponse>} The rounds response.
2137
- */
2138
- getRoundsByCircuitName(name: string, after: string, limit?: number): Promise<RoundsResponse>;
2139
- /**
2140
- * @method getRoundsByOperator
2141
- * @description Get rounds by their operator address.
2142
- * @param {string} address - The address of the operator.
2143
- * @param {string} after - The cursor to start after.
2144
- * @param {number} [limit] - The number of rounds to retrieve.
2145
- * @returns {Promise<RoundsResponse>} The rounds response.
2146
- */
2147
- getRoundsByOperator(address: string, after: string, limit?: number): Promise<RoundsResponse>;
2148
- /**
2149
- * @method getOperatorByAddress
2150
- * @description Get an operator by their address.
2151
- * @param {string} address - The address of the operator.
2152
- * @returns {Promise<OperatorResponse>} The operator response.
2153
- */
2154
- getOperatorByAddress(address: string): Promise<OperatorResponse>;
2155
- /**
2156
- * @method getOperators
2157
- * @description Get multiple operators.
2158
- * @param {string} after - The cursor to start after.
2159
- * @param {number} [limit] - The number of operators to retrieve.
2160
- * @returns {Promise<OperatorsResponse>} The operators response.
2161
- */
2162
- getOperators(after: string, limit?: number): Promise<OperatorsResponse>;
2163
- /**
2164
- * @method getCircuitByName
2165
- * @description Get a circuit by its name.
2166
- * @param {string} name - The name of the circuit.
2167
- * @returns {Promise<CircuitResponse>} The circuit response.
2168
- */
2169
- getCircuitByName(name: string): Promise<CircuitResponse>;
2170
- /**
2171
- * @method getCircuits
2172
- * @description Get all available circuits.
2173
- * @returns {Promise<CircuitsResponse>} The circuits response.
2174
- */
2175
- getCircuits(): Promise<CircuitsResponse>;
2176
- /**
2177
- * @method getTransactionByHash
2178
- * @description Get a transaction by its hash.
2179
- * @param {string} hash - The hash of the transaction.
2180
- * @returns {Promise<TransactionResponse>} The transaction response.
2181
- */
2182
- getTransactionByHash(hash: string): Promise<TransactionResponse>;
2183
- /**
2184
- * @method getTransactions
2185
- * @description Get multiple transactions.
2186
- * @param {string} after - The cursor to start after.
2187
- * @param {number} [limit] - The number of transactions to retrieve.
2188
- * @returns {Promise<TransactionsResponse>} The transactions response.
2189
- */
2190
- getTransactions(after: string, limit?: number): Promise<TransactionsResponse>;
2191
- /**
2192
- * @method getTransactionsByContractAddress
2193
- * @description Get transactions by contract address.
2194
- * @param {string} address - The contract address.
2195
- * @param {string} after - The cursor to start after.
2196
- * @param {number} [limit] - The number of transactions to retrieve.
2197
- * @returns {Promise<TransactionsResponse>} The transactions response.
2198
- */
2199
- getTransactionsByContractAddress(address: string, after: string, limit?: number): Promise<TransactionsResponse>;
2200
- /**
2201
- * @method getProofByContractAddress
2202
- * @description Get proof data by contract address.
2203
- * @param {string} address - The contract address.
2204
- * @returns {Promise<ProofResponse>} The proof response.
2205
- */
2206
- getProofByContractAddress(address: string): Promise<ProofResponse>;
2100
+ getStateIdxInc({ signer, address, contractAddress, }: {
2101
+ signer: OfflineSigner;
2102
+ address: string;
2103
+ contractAddress: string;
2104
+ }): Promise<string>;
2105
+ getVoiceCreditBalance({ signer, stateIdx, contractAddress, }: {
2106
+ signer: OfflineSigner;
2107
+ stateIdx: number;
2108
+ contractAddress: string;
2109
+ }): Promise<string>;
2110
+ getStateIdxByPubKey({ contractAddress, pubKey, }: {
2111
+ contractAddress: string;
2112
+ pubKey: bigint[];
2113
+ }): Promise<number>;
2114
+ feegrantAllowance({ address, contractAddress, }: {
2115
+ address: string;
2116
+ contractAddress: string;
2117
+ }): Promise<FeegrantAllowanceResponse>;
2118
+ hasFeegrant({ address, contractAddress, }: {
2119
+ address: string;
2120
+ contractAddress: string;
2121
+ }): Promise<boolean>;
2122
+ queryWhitelistBalanceOf({ signer, address, contractAddress, certificate, mode, }: {
2123
+ signer: OfflineSigner;
2124
+ address: string;
2125
+ contractAddress: string;
2126
+ certificate?: string;
2127
+ mode?: 'maci' | 'amaci';
2128
+ }): Promise<string>;
2129
+ isWhitelisted({ signer, address, contractAddress, }: {
2130
+ signer: OfflineSigner;
2131
+ address: string;
2132
+ contractAddress: string;
2133
+ }): Promise<boolean>;
2134
+ getOracleWhitelistConfig({ signer, contractAddress, }: {
2135
+ signer: OfflineSigner;
2136
+ contractAddress: string;
2137
+ }): Promise<OracleWhitelistConfig>;
2138
+ getRoundInfo({ contractAddress }: {
2139
+ contractAddress: string;
2140
+ }): Promise<RoundType>;
2141
+ getRoundCircuitType({ contractAddress }: {
2142
+ contractAddress: string;
2143
+ }): Promise<string>;
2144
+ queryRoundIsQv({ contractAddress }: {
2145
+ contractAddress: string;
2146
+ }): Promise<boolean>;
2147
+ queryRoundClaimable({ contractAddress, }: {
2148
+ contractAddress: string;
2149
+ }): Promise<{
2150
+ claimable: boolean | null;
2151
+ balance: string | null;
2152
+ }>;
2153
+ queryAMaciChargeFee({ maxVoter, maxOption, }: {
2154
+ maxVoter: number;
2155
+ maxOption: number;
2156
+ }): Promise<{
2157
+ denom: string;
2158
+ amount: string;
2159
+ }>;
2160
+ queryRoundGasStation({ contractAddress }: {
2161
+ contractAddress: string;
2162
+ }): Promise<boolean>;
2163
+ parseRoundStatus(votingStart: number, votingEnd: number, status: string, currentTime: Date): string;
2164
+ queryRoundBalance({ contractAddress }: {
2165
+ contractAddress: string;
2166
+ }): Promise<string>;
2167
+ requestOracleCertificate({ signer, ecosystem, address, contractAddress, }: {
2168
+ signer: OfflineSigner;
2169
+ ecosystem: CertificateEcosystem;
2170
+ address: string;
2171
+ contractAddress: string;
2172
+ }): Promise<SignatureResponse>;
2173
+ signup({ signer, address, contractAddress, maciAccount, oracleCertificate, gasStation, }: {
2174
+ signer: OfflineSigner;
2175
+ address: string;
2176
+ contractAddress: string;
2177
+ maciAccount?: Account;
2178
+ oracleCertificate?: {
2179
+ amount: string;
2180
+ signature: string;
2181
+ };
2182
+ gasStation?: boolean;
2183
+ }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
2184
+ vote({ signer, address, stateIdx, contractAddress, selectedOptions, operatorCoordPubKey, maciAccount, gasStation, }: {
2185
+ signer: OfflineSigner;
2186
+ address: string;
2187
+ stateIdx: number;
2188
+ contractAddress: string;
2189
+ selectedOptions: {
2190
+ idx: number;
2191
+ vc: number;
2192
+ }[];
2193
+ operatorCoordPubKey: PublicKey;
2194
+ maciAccount?: Account;
2195
+ gasStation?: boolean;
2196
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2197
+ publishMessage({ client, address, payload, contractAddress, gasStation, }: {
2198
+ client: SigningCosmWasmClient;
2199
+ address: string;
2200
+ payload: {
2201
+ msg: bigint[];
2202
+ encPubkeys: PublicKey;
2203
+ }[];
2204
+ contractAddress: string;
2205
+ gasStation: boolean;
2206
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2207
+ claimAMaciRound({ signer, contractAddress, }: {
2208
+ signer: OfflineSigner;
2209
+ contractAddress: string;
2210
+ }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
2211
+ getOracleCertificateConfig(): Promise<EcosystemsResponse>;
2212
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
2213
+ signer: OfflineSigner;
2214
+ contractAddress: string;
2215
+ address: string;
2216
+ amount: string;
2217
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2218
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
2219
+ signer: OfflineSigner;
2220
+ contractAddress: string;
2221
+ address: string;
2222
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2207
2223
  }
2208
2224
 
2209
2225
  declare function isValidAddress(address: string): boolean;
package/dist/browser.d.ts CHANGED
@@ -1901,13 +1901,18 @@ declare class MACI {
1901
1901
  getOracleCertificateConfig(): Promise<EcosystemsResponse>;
1902
1902
  /**
1903
1903
  * Batch grant with bond (for maci)
1904
- * @param client
1904
+ * @param signer
1905
1905
  * @param contractAddress
1906
1906
  * @param address
1907
1907
  * @param amount
1908
1908
  * @returns
1909
1909
  */
1910
- batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1910
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
1911
+ signer: OfflineSigner;
1912
+ contractAddress: string;
1913
+ address: string;
1914
+ amount: string;
1915
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1911
1916
  /**
1912
1917
  * Batch revoke with withdraw (for maci)
1913
1918
  * @param client
@@ -1915,7 +1920,11 @@ declare class MACI {
1915
1920
  * @param address
1916
1921
  * @returns
1917
1922
  */
1918
- batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1923
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
1924
+ signer: OfflineSigner;
1925
+ contractAddress: string;
1926
+ address: string;
1927
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1919
1928
  }
1920
1929
 
1921
1930
  declare const circuits: Record<string, CircuitType>;
@@ -2082,128 +2091,135 @@ declare class MaciClient {
2082
2091
  logs: readonly _cosmjs_stargate_build_logs.Log[];
2083
2092
  height: number;
2084
2093
  transactionHash: string;
2085
- events: readonly _cosmjs_stargate.Event[];
2094
+ events: readonly _cosmjs_cosmwasm_stargate.Event[];
2086
2095
  gasWanted: bigint;
2087
2096
  gasUsed: bigint;
2088
2097
  }>;
2089
2098
  createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2090
2099
  createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
2091
- /**
2092
- * @method balanceOf
2093
- * @description Get the balance of a specific address.
2094
- * @param {string} address - The address to check the balance for.
2095
- * @returns {Promise<BalanceResponse>} The balance response.
2096
- */
2097
- balanceOf(address: string): Promise<BalanceResponse>;
2098
- /**
2099
- * @method getRoundById
2100
- * @description Get a round by its ID.
2101
- * @param {string} id - The ID of the round.
2102
- * @returns {Promise<RoundResponse>} The round response.
2103
- */
2104
- getRoundById(id: string): Promise<RoundResponse>;
2105
- /**
2106
- * @method getRoundWithFields
2107
- * @description Get a round by its address with selective fields.
2108
- * @param {string} address - The address of the round.
2109
- * @param {string[]} [fields] - The fields to retrieve.
2110
- * @returns {Promise<SelectiveRoundResponse>} The round response.
2111
- */
2112
- getRoundWithFields(address: string, fields?: string[]): Promise<SelectiveRoundResponse>;
2113
- /**
2114
- * @method getRounds
2115
- * @description Get multiple rounds.
2116
- * @param {string} after - The cursor to start after.
2117
- * @param {number} [limit] - The number of rounds to retrieve.
2118
- * @returns {Promise<RoundsResponse>} The rounds response.
2119
- */
2120
- getRounds(after: string, limit?: number): Promise<RoundsResponse>;
2121
- /**
2122
- * @method getRoundsByStatus
2123
- * @description Get rounds by their status.
2124
- * @param {string} status - The status of the rounds to retrieve.
2125
- * @param {string} after - The cursor to start after.
2126
- * @param {number} [limit] - The number of rounds to retrieve.
2127
- * @returns {Promise<RoundsResponse>} The rounds response.
2128
- */
2129
- getRoundsByStatus(status: string, after: string, limit?: number): Promise<RoundsResponse>;
2130
- /**
2131
- * @method getRoundsByCircuitName
2132
- * @description Get rounds by their circuit name.
2133
- * @param {string} name - The name of the circuit.
2134
- * @param {string} after - The cursor to start after.
2135
- * @param {number} [limit] - The number of rounds to retrieve.
2136
- * @returns {Promise<RoundsResponse>} The rounds response.
2137
- */
2138
- getRoundsByCircuitName(name: string, after: string, limit?: number): Promise<RoundsResponse>;
2139
- /**
2140
- * @method getRoundsByOperator
2141
- * @description Get rounds by their operator address.
2142
- * @param {string} address - The address of the operator.
2143
- * @param {string} after - The cursor to start after.
2144
- * @param {number} [limit] - The number of rounds to retrieve.
2145
- * @returns {Promise<RoundsResponse>} The rounds response.
2146
- */
2147
- getRoundsByOperator(address: string, after: string, limit?: number): Promise<RoundsResponse>;
2148
- /**
2149
- * @method getOperatorByAddress
2150
- * @description Get an operator by their address.
2151
- * @param {string} address - The address of the operator.
2152
- * @returns {Promise<OperatorResponse>} The operator response.
2153
- */
2154
- getOperatorByAddress(address: string): Promise<OperatorResponse>;
2155
- /**
2156
- * @method getOperators
2157
- * @description Get multiple operators.
2158
- * @param {string} after - The cursor to start after.
2159
- * @param {number} [limit] - The number of operators to retrieve.
2160
- * @returns {Promise<OperatorsResponse>} The operators response.
2161
- */
2162
- getOperators(after: string, limit?: number): Promise<OperatorsResponse>;
2163
- /**
2164
- * @method getCircuitByName
2165
- * @description Get a circuit by its name.
2166
- * @param {string} name - The name of the circuit.
2167
- * @returns {Promise<CircuitResponse>} The circuit response.
2168
- */
2169
- getCircuitByName(name: string): Promise<CircuitResponse>;
2170
- /**
2171
- * @method getCircuits
2172
- * @description Get all available circuits.
2173
- * @returns {Promise<CircuitsResponse>} The circuits response.
2174
- */
2175
- getCircuits(): Promise<CircuitsResponse>;
2176
- /**
2177
- * @method getTransactionByHash
2178
- * @description Get a transaction by its hash.
2179
- * @param {string} hash - The hash of the transaction.
2180
- * @returns {Promise<TransactionResponse>} The transaction response.
2181
- */
2182
- getTransactionByHash(hash: string): Promise<TransactionResponse>;
2183
- /**
2184
- * @method getTransactions
2185
- * @description Get multiple transactions.
2186
- * @param {string} after - The cursor to start after.
2187
- * @param {number} [limit] - The number of transactions to retrieve.
2188
- * @returns {Promise<TransactionsResponse>} The transactions response.
2189
- */
2190
- getTransactions(after: string, limit?: number): Promise<TransactionsResponse>;
2191
- /**
2192
- * @method getTransactionsByContractAddress
2193
- * @description Get transactions by contract address.
2194
- * @param {string} address - The contract address.
2195
- * @param {string} after - The cursor to start after.
2196
- * @param {number} [limit] - The number of transactions to retrieve.
2197
- * @returns {Promise<TransactionsResponse>} The transactions response.
2198
- */
2199
- getTransactionsByContractAddress(address: string, after: string, limit?: number): Promise<TransactionsResponse>;
2200
- /**
2201
- * @method getProofByContractAddress
2202
- * @description Get proof data by contract address.
2203
- * @param {string} address - The contract address.
2204
- * @returns {Promise<ProofResponse>} The proof response.
2205
- */
2206
- getProofByContractAddress(address: string): Promise<ProofResponse>;
2100
+ getStateIdxInc({ signer, address, contractAddress, }: {
2101
+ signer: OfflineSigner;
2102
+ address: string;
2103
+ contractAddress: string;
2104
+ }): Promise<string>;
2105
+ getVoiceCreditBalance({ signer, stateIdx, contractAddress, }: {
2106
+ signer: OfflineSigner;
2107
+ stateIdx: number;
2108
+ contractAddress: string;
2109
+ }): Promise<string>;
2110
+ getStateIdxByPubKey({ contractAddress, pubKey, }: {
2111
+ contractAddress: string;
2112
+ pubKey: bigint[];
2113
+ }): Promise<number>;
2114
+ feegrantAllowance({ address, contractAddress, }: {
2115
+ address: string;
2116
+ contractAddress: string;
2117
+ }): Promise<FeegrantAllowanceResponse>;
2118
+ hasFeegrant({ address, contractAddress, }: {
2119
+ address: string;
2120
+ contractAddress: string;
2121
+ }): Promise<boolean>;
2122
+ queryWhitelistBalanceOf({ signer, address, contractAddress, certificate, mode, }: {
2123
+ signer: OfflineSigner;
2124
+ address: string;
2125
+ contractAddress: string;
2126
+ certificate?: string;
2127
+ mode?: 'maci' | 'amaci';
2128
+ }): Promise<string>;
2129
+ isWhitelisted({ signer, address, contractAddress, }: {
2130
+ signer: OfflineSigner;
2131
+ address: string;
2132
+ contractAddress: string;
2133
+ }): Promise<boolean>;
2134
+ getOracleWhitelistConfig({ signer, contractAddress, }: {
2135
+ signer: OfflineSigner;
2136
+ contractAddress: string;
2137
+ }): Promise<OracleWhitelistConfig>;
2138
+ getRoundInfo({ contractAddress }: {
2139
+ contractAddress: string;
2140
+ }): Promise<RoundType>;
2141
+ getRoundCircuitType({ contractAddress }: {
2142
+ contractAddress: string;
2143
+ }): Promise<string>;
2144
+ queryRoundIsQv({ contractAddress }: {
2145
+ contractAddress: string;
2146
+ }): Promise<boolean>;
2147
+ queryRoundClaimable({ contractAddress, }: {
2148
+ contractAddress: string;
2149
+ }): Promise<{
2150
+ claimable: boolean | null;
2151
+ balance: string | null;
2152
+ }>;
2153
+ queryAMaciChargeFee({ maxVoter, maxOption, }: {
2154
+ maxVoter: number;
2155
+ maxOption: number;
2156
+ }): Promise<{
2157
+ denom: string;
2158
+ amount: string;
2159
+ }>;
2160
+ queryRoundGasStation({ contractAddress }: {
2161
+ contractAddress: string;
2162
+ }): Promise<boolean>;
2163
+ parseRoundStatus(votingStart: number, votingEnd: number, status: string, currentTime: Date): string;
2164
+ queryRoundBalance({ contractAddress }: {
2165
+ contractAddress: string;
2166
+ }): Promise<string>;
2167
+ requestOracleCertificate({ signer, ecosystem, address, contractAddress, }: {
2168
+ signer: OfflineSigner;
2169
+ ecosystem: CertificateEcosystem;
2170
+ address: string;
2171
+ contractAddress: string;
2172
+ }): Promise<SignatureResponse>;
2173
+ signup({ signer, address, contractAddress, maciAccount, oracleCertificate, gasStation, }: {
2174
+ signer: OfflineSigner;
2175
+ address: string;
2176
+ contractAddress: string;
2177
+ maciAccount?: Account;
2178
+ oracleCertificate?: {
2179
+ amount: string;
2180
+ signature: string;
2181
+ };
2182
+ gasStation?: boolean;
2183
+ }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
2184
+ vote({ signer, address, stateIdx, contractAddress, selectedOptions, operatorCoordPubKey, maciAccount, gasStation, }: {
2185
+ signer: OfflineSigner;
2186
+ address: string;
2187
+ stateIdx: number;
2188
+ contractAddress: string;
2189
+ selectedOptions: {
2190
+ idx: number;
2191
+ vc: number;
2192
+ }[];
2193
+ operatorCoordPubKey: PublicKey;
2194
+ maciAccount?: Account;
2195
+ gasStation?: boolean;
2196
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2197
+ publishMessage({ client, address, payload, contractAddress, gasStation, }: {
2198
+ client: SigningCosmWasmClient;
2199
+ address: string;
2200
+ payload: {
2201
+ msg: bigint[];
2202
+ encPubkeys: PublicKey;
2203
+ }[];
2204
+ contractAddress: string;
2205
+ gasStation: boolean;
2206
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2207
+ claimAMaciRound({ signer, contractAddress, }: {
2208
+ signer: OfflineSigner;
2209
+ contractAddress: string;
2210
+ }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
2211
+ getOracleCertificateConfig(): Promise<EcosystemsResponse>;
2212
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
2213
+ signer: OfflineSigner;
2214
+ contractAddress: string;
2215
+ address: string;
2216
+ amount: string;
2217
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2218
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
2219
+ signer: OfflineSigner;
2220
+ contractAddress: string;
2221
+ address: string;
2222
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2207
2223
  }
2208
2224
 
2209
2225
  declare function isValidAddress(address: string): boolean;