@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/browser.d.mts +132 -117
- package/dist/browser.d.ts +132 -117
- package/dist/browser.js +296 -133
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +296 -133
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +132 -117
- package/dist/index.d.ts +132 -117
- package/dist/index.js +296 -133
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +296 -133
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/libs/maci/maci.ts +112 -0
- package/src/maci.ts +304 -157
package/dist/browser.d.mts
CHANGED
|
@@ -1899,6 +1899,23 @@ declare class MACI {
|
|
|
1899
1899
|
contractAddress: string;
|
|
1900
1900
|
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
1901
1901
|
getOracleCertificateConfig(): Promise<EcosystemsResponse>;
|
|
1902
|
+
/**
|
|
1903
|
+
* Batch grant with bond (for maci)
|
|
1904
|
+
* @param client
|
|
1905
|
+
* @param contractAddress
|
|
1906
|
+
* @param address
|
|
1907
|
+
* @param amount
|
|
1908
|
+
* @returns
|
|
1909
|
+
*/
|
|
1910
|
+
batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Batch revoke with withdraw (for maci)
|
|
1913
|
+
* @param client
|
|
1914
|
+
* @param contractAddress
|
|
1915
|
+
* @param address
|
|
1916
|
+
* @returns
|
|
1917
|
+
*/
|
|
1918
|
+
batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
1902
1919
|
}
|
|
1903
1920
|
|
|
1904
1921
|
declare const circuits: Record<string, CircuitType>;
|
|
@@ -2065,128 +2082,126 @@ declare class MaciClient {
|
|
|
2065
2082
|
logs: readonly _cosmjs_stargate_build_logs.Log[];
|
|
2066
2083
|
height: number;
|
|
2067
2084
|
transactionHash: string;
|
|
2068
|
-
events: readonly
|
|
2085
|
+
events: readonly _cosmjs_cosmwasm_stargate.Event[];
|
|
2069
2086
|
gasWanted: bigint;
|
|
2070
2087
|
gasUsed: bigint;
|
|
2071
2088
|
}>;
|
|
2072
2089
|
createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2073
2090
|
createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
*/
|
|
2189
|
-
getProofByContractAddress(address: string): Promise<ProofResponse>;
|
|
2091
|
+
getStateIdxInc({ signer, address, contractAddress, }: {
|
|
2092
|
+
signer: OfflineSigner;
|
|
2093
|
+
address: string;
|
|
2094
|
+
contractAddress: string;
|
|
2095
|
+
}): Promise<string>;
|
|
2096
|
+
getVoiceCreditBalance({ signer, stateIdx, contractAddress, }: {
|
|
2097
|
+
signer: OfflineSigner;
|
|
2098
|
+
stateIdx: number;
|
|
2099
|
+
contractAddress: string;
|
|
2100
|
+
}): Promise<string>;
|
|
2101
|
+
getStateIdxByPubKey({ contractAddress, pubKey, }: {
|
|
2102
|
+
contractAddress: string;
|
|
2103
|
+
pubKey: bigint[];
|
|
2104
|
+
}): Promise<number>;
|
|
2105
|
+
feegrantAllowance({ address, contractAddress, }: {
|
|
2106
|
+
address: string;
|
|
2107
|
+
contractAddress: string;
|
|
2108
|
+
}): Promise<FeegrantAllowanceResponse>;
|
|
2109
|
+
hasFeegrant({ address, contractAddress, }: {
|
|
2110
|
+
address: string;
|
|
2111
|
+
contractAddress: string;
|
|
2112
|
+
}): Promise<boolean>;
|
|
2113
|
+
queryWhitelistBalanceOf({ signer, address, contractAddress, certificate, mode, }: {
|
|
2114
|
+
signer: OfflineSigner;
|
|
2115
|
+
address: string;
|
|
2116
|
+
contractAddress: string;
|
|
2117
|
+
certificate?: string;
|
|
2118
|
+
mode?: 'maci' | 'amaci';
|
|
2119
|
+
}): Promise<string>;
|
|
2120
|
+
isWhitelisted({ signer, address, contractAddress, }: {
|
|
2121
|
+
signer: OfflineSigner;
|
|
2122
|
+
address: string;
|
|
2123
|
+
contractAddress: string;
|
|
2124
|
+
}): Promise<boolean>;
|
|
2125
|
+
getOracleWhitelistConfig({ signer, contractAddress, }: {
|
|
2126
|
+
signer: OfflineSigner;
|
|
2127
|
+
contractAddress: string;
|
|
2128
|
+
}): Promise<OracleWhitelistConfig>;
|
|
2129
|
+
getRoundInfo({ contractAddress }: {
|
|
2130
|
+
contractAddress: string;
|
|
2131
|
+
}): Promise<RoundType>;
|
|
2132
|
+
getRoundCircuitType({ contractAddress }: {
|
|
2133
|
+
contractAddress: string;
|
|
2134
|
+
}): Promise<string>;
|
|
2135
|
+
queryRoundIsQv({ contractAddress }: {
|
|
2136
|
+
contractAddress: string;
|
|
2137
|
+
}): Promise<boolean>;
|
|
2138
|
+
queryRoundClaimable({ contractAddress, }: {
|
|
2139
|
+
contractAddress: string;
|
|
2140
|
+
}): Promise<{
|
|
2141
|
+
claimable: boolean | null;
|
|
2142
|
+
balance: string | null;
|
|
2143
|
+
}>;
|
|
2144
|
+
queryAMaciChargeFee({ maxVoter, maxOption, }: {
|
|
2145
|
+
maxVoter: number;
|
|
2146
|
+
maxOption: number;
|
|
2147
|
+
}): Promise<{
|
|
2148
|
+
denom: string;
|
|
2149
|
+
amount: string;
|
|
2150
|
+
}>;
|
|
2151
|
+
queryRoundGasStation({ contractAddress }: {
|
|
2152
|
+
contractAddress: string;
|
|
2153
|
+
}): Promise<boolean>;
|
|
2154
|
+
parseRoundStatus(votingStart: number, votingEnd: number, status: string, currentTime: Date): string;
|
|
2155
|
+
queryRoundBalance({ contractAddress }: {
|
|
2156
|
+
contractAddress: string;
|
|
2157
|
+
}): Promise<string>;
|
|
2158
|
+
requestOracleCertificate({ signer, ecosystem, address, contractAddress, }: {
|
|
2159
|
+
signer: OfflineSigner;
|
|
2160
|
+
ecosystem: CertificateEcosystem;
|
|
2161
|
+
address: string;
|
|
2162
|
+
contractAddress: string;
|
|
2163
|
+
}): Promise<SignatureResponse>;
|
|
2164
|
+
signup({ signer, address, contractAddress, maciAccount, oracleCertificate, gasStation, }: {
|
|
2165
|
+
signer: OfflineSigner;
|
|
2166
|
+
address: string;
|
|
2167
|
+
contractAddress: string;
|
|
2168
|
+
maciAccount?: Account;
|
|
2169
|
+
oracleCertificate?: {
|
|
2170
|
+
amount: string;
|
|
2171
|
+
signature: string;
|
|
2172
|
+
};
|
|
2173
|
+
gasStation?: boolean;
|
|
2174
|
+
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
2175
|
+
vote({ signer, address, stateIdx, contractAddress, selectedOptions, operatorCoordPubKey, maciAccount, gasStation, }: {
|
|
2176
|
+
signer: OfflineSigner;
|
|
2177
|
+
address: string;
|
|
2178
|
+
stateIdx: number;
|
|
2179
|
+
contractAddress: string;
|
|
2180
|
+
selectedOptions: {
|
|
2181
|
+
idx: number;
|
|
2182
|
+
vc: number;
|
|
2183
|
+
}[];
|
|
2184
|
+
operatorCoordPubKey: PublicKey;
|
|
2185
|
+
maciAccount?: Account;
|
|
2186
|
+
gasStation?: boolean;
|
|
2187
|
+
}): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2188
|
+
publishMessage({ client, address, payload, contractAddress, gasStation, }: {
|
|
2189
|
+
client: SigningCosmWasmClient;
|
|
2190
|
+
address: string;
|
|
2191
|
+
payload: {
|
|
2192
|
+
msg: bigint[];
|
|
2193
|
+
encPubkeys: PublicKey;
|
|
2194
|
+
}[];
|
|
2195
|
+
contractAddress: string;
|
|
2196
|
+
gasStation: boolean;
|
|
2197
|
+
}): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2198
|
+
claimAMaciRound({ signer, contractAddress, }: {
|
|
2199
|
+
signer: OfflineSigner;
|
|
2200
|
+
contractAddress: string;
|
|
2201
|
+
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
2202
|
+
getOracleCertificateConfig(): Promise<EcosystemsResponse>;
|
|
2203
|
+
batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2204
|
+
batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2190
2205
|
}
|
|
2191
2206
|
|
|
2192
2207
|
declare function isValidAddress(address: string): boolean;
|
package/dist/browser.d.ts
CHANGED
|
@@ -1899,6 +1899,23 @@ declare class MACI {
|
|
|
1899
1899
|
contractAddress: string;
|
|
1900
1900
|
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
1901
1901
|
getOracleCertificateConfig(): Promise<EcosystemsResponse>;
|
|
1902
|
+
/**
|
|
1903
|
+
* Batch grant with bond (for maci)
|
|
1904
|
+
* @param client
|
|
1905
|
+
* @param contractAddress
|
|
1906
|
+
* @param address
|
|
1907
|
+
* @param amount
|
|
1908
|
+
* @returns
|
|
1909
|
+
*/
|
|
1910
|
+
batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Batch revoke with withdraw (for maci)
|
|
1913
|
+
* @param client
|
|
1914
|
+
* @param contractAddress
|
|
1915
|
+
* @param address
|
|
1916
|
+
* @returns
|
|
1917
|
+
*/
|
|
1918
|
+
batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
1902
1919
|
}
|
|
1903
1920
|
|
|
1904
1921
|
declare const circuits: Record<string, CircuitType>;
|
|
@@ -2065,128 +2082,126 @@ declare class MaciClient {
|
|
|
2065
2082
|
logs: readonly _cosmjs_stargate_build_logs.Log[];
|
|
2066
2083
|
height: number;
|
|
2067
2084
|
transactionHash: string;
|
|
2068
|
-
events: readonly
|
|
2085
|
+
events: readonly _cosmjs_cosmwasm_stargate.Event[];
|
|
2069
2086
|
gasWanted: bigint;
|
|
2070
2087
|
gasUsed: bigint;
|
|
2071
2088
|
}>;
|
|
2072
2089
|
createMaciRound(params: CreateMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2073
2090
|
createOracleMaciRound(params: CreateOracleMaciRoundParams): Promise<_cosmjs_cosmwasm_stargate.InstantiateResult>;
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
*/
|
|
2189
|
-
getProofByContractAddress(address: string): Promise<ProofResponse>;
|
|
2091
|
+
getStateIdxInc({ signer, address, contractAddress, }: {
|
|
2092
|
+
signer: OfflineSigner;
|
|
2093
|
+
address: string;
|
|
2094
|
+
contractAddress: string;
|
|
2095
|
+
}): Promise<string>;
|
|
2096
|
+
getVoiceCreditBalance({ signer, stateIdx, contractAddress, }: {
|
|
2097
|
+
signer: OfflineSigner;
|
|
2098
|
+
stateIdx: number;
|
|
2099
|
+
contractAddress: string;
|
|
2100
|
+
}): Promise<string>;
|
|
2101
|
+
getStateIdxByPubKey({ contractAddress, pubKey, }: {
|
|
2102
|
+
contractAddress: string;
|
|
2103
|
+
pubKey: bigint[];
|
|
2104
|
+
}): Promise<number>;
|
|
2105
|
+
feegrantAllowance({ address, contractAddress, }: {
|
|
2106
|
+
address: string;
|
|
2107
|
+
contractAddress: string;
|
|
2108
|
+
}): Promise<FeegrantAllowanceResponse>;
|
|
2109
|
+
hasFeegrant({ address, contractAddress, }: {
|
|
2110
|
+
address: string;
|
|
2111
|
+
contractAddress: string;
|
|
2112
|
+
}): Promise<boolean>;
|
|
2113
|
+
queryWhitelistBalanceOf({ signer, address, contractAddress, certificate, mode, }: {
|
|
2114
|
+
signer: OfflineSigner;
|
|
2115
|
+
address: string;
|
|
2116
|
+
contractAddress: string;
|
|
2117
|
+
certificate?: string;
|
|
2118
|
+
mode?: 'maci' | 'amaci';
|
|
2119
|
+
}): Promise<string>;
|
|
2120
|
+
isWhitelisted({ signer, address, contractAddress, }: {
|
|
2121
|
+
signer: OfflineSigner;
|
|
2122
|
+
address: string;
|
|
2123
|
+
contractAddress: string;
|
|
2124
|
+
}): Promise<boolean>;
|
|
2125
|
+
getOracleWhitelistConfig({ signer, contractAddress, }: {
|
|
2126
|
+
signer: OfflineSigner;
|
|
2127
|
+
contractAddress: string;
|
|
2128
|
+
}): Promise<OracleWhitelistConfig>;
|
|
2129
|
+
getRoundInfo({ contractAddress }: {
|
|
2130
|
+
contractAddress: string;
|
|
2131
|
+
}): Promise<RoundType>;
|
|
2132
|
+
getRoundCircuitType({ contractAddress }: {
|
|
2133
|
+
contractAddress: string;
|
|
2134
|
+
}): Promise<string>;
|
|
2135
|
+
queryRoundIsQv({ contractAddress }: {
|
|
2136
|
+
contractAddress: string;
|
|
2137
|
+
}): Promise<boolean>;
|
|
2138
|
+
queryRoundClaimable({ contractAddress, }: {
|
|
2139
|
+
contractAddress: string;
|
|
2140
|
+
}): Promise<{
|
|
2141
|
+
claimable: boolean | null;
|
|
2142
|
+
balance: string | null;
|
|
2143
|
+
}>;
|
|
2144
|
+
queryAMaciChargeFee({ maxVoter, maxOption, }: {
|
|
2145
|
+
maxVoter: number;
|
|
2146
|
+
maxOption: number;
|
|
2147
|
+
}): Promise<{
|
|
2148
|
+
denom: string;
|
|
2149
|
+
amount: string;
|
|
2150
|
+
}>;
|
|
2151
|
+
queryRoundGasStation({ contractAddress }: {
|
|
2152
|
+
contractAddress: string;
|
|
2153
|
+
}): Promise<boolean>;
|
|
2154
|
+
parseRoundStatus(votingStart: number, votingEnd: number, status: string, currentTime: Date): string;
|
|
2155
|
+
queryRoundBalance({ contractAddress }: {
|
|
2156
|
+
contractAddress: string;
|
|
2157
|
+
}): Promise<string>;
|
|
2158
|
+
requestOracleCertificate({ signer, ecosystem, address, contractAddress, }: {
|
|
2159
|
+
signer: OfflineSigner;
|
|
2160
|
+
ecosystem: CertificateEcosystem;
|
|
2161
|
+
address: string;
|
|
2162
|
+
contractAddress: string;
|
|
2163
|
+
}): Promise<SignatureResponse>;
|
|
2164
|
+
signup({ signer, address, contractAddress, maciAccount, oracleCertificate, gasStation, }: {
|
|
2165
|
+
signer: OfflineSigner;
|
|
2166
|
+
address: string;
|
|
2167
|
+
contractAddress: string;
|
|
2168
|
+
maciAccount?: Account;
|
|
2169
|
+
oracleCertificate?: {
|
|
2170
|
+
amount: string;
|
|
2171
|
+
signature: string;
|
|
2172
|
+
};
|
|
2173
|
+
gasStation?: boolean;
|
|
2174
|
+
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
2175
|
+
vote({ signer, address, stateIdx, contractAddress, selectedOptions, operatorCoordPubKey, maciAccount, gasStation, }: {
|
|
2176
|
+
signer: OfflineSigner;
|
|
2177
|
+
address: string;
|
|
2178
|
+
stateIdx: number;
|
|
2179
|
+
contractAddress: string;
|
|
2180
|
+
selectedOptions: {
|
|
2181
|
+
idx: number;
|
|
2182
|
+
vc: number;
|
|
2183
|
+
}[];
|
|
2184
|
+
operatorCoordPubKey: PublicKey;
|
|
2185
|
+
maciAccount?: Account;
|
|
2186
|
+
gasStation?: boolean;
|
|
2187
|
+
}): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2188
|
+
publishMessage({ client, address, payload, contractAddress, gasStation, }: {
|
|
2189
|
+
client: SigningCosmWasmClient;
|
|
2190
|
+
address: string;
|
|
2191
|
+
payload: {
|
|
2192
|
+
msg: bigint[];
|
|
2193
|
+
encPubkeys: PublicKey;
|
|
2194
|
+
}[];
|
|
2195
|
+
contractAddress: string;
|
|
2196
|
+
gasStation: boolean;
|
|
2197
|
+
}): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2198
|
+
claimAMaciRound({ signer, contractAddress, }: {
|
|
2199
|
+
signer: OfflineSigner;
|
|
2200
|
+
contractAddress: string;
|
|
2201
|
+
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
2202
|
+
getOracleCertificateConfig(): Promise<EcosystemsResponse>;
|
|
2203
|
+
batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2204
|
+
batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
|
|
2190
2205
|
}
|
|
2191
2206
|
|
|
2192
2207
|
declare function isValidAddress(address: string): boolean;
|