@dorafactory/maci-sdk 0.0.30 → 0.0.32

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