@dorafactory/maci-sdk 0.0.32 → 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.
- package/dist/browser.d.mts +23 -5
- package/dist/browser.d.ts +23 -5
- package/dist/browser.js +35 -11
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +35 -11
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +35 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/libs/maci/maci.ts +29 -12
- package/src/maci.ts +28 -19
package/dist/browser.d.mts
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
|
|
1904
|
+
* @param signer
|
|
1905
1905
|
* @param contractAddress
|
|
1906
1906
|
* @param address
|
|
1907
1907
|
* @param amount
|
|
1908
1908
|
* @returns
|
|
1909
1909
|
*/
|
|
1910
|
-
batchGrantWithBond(
|
|
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(
|
|
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>;
|
|
@@ -2200,8 +2209,17 @@ declare class MaciClient {
|
|
|
2200
2209
|
contractAddress: string;
|
|
2201
2210
|
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
2202
2211
|
getOracleCertificateConfig(): Promise<EcosystemsResponse>;
|
|
2203
|
-
batchGrantWithBond(
|
|
2204
|
-
|
|
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>;
|
|
2205
2223
|
}
|
|
2206
2224
|
|
|
2207
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
|
|
1904
|
+
* @param signer
|
|
1905
1905
|
* @param contractAddress
|
|
1906
1906
|
* @param address
|
|
1907
1907
|
* @param amount
|
|
1908
1908
|
* @returns
|
|
1909
1909
|
*/
|
|
1910
|
-
batchGrantWithBond(
|
|
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(
|
|
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>;
|
|
@@ -2200,8 +2209,17 @@ declare class MaciClient {
|
|
|
2200
2209
|
contractAddress: string;
|
|
2201
2210
|
}): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
|
|
2202
2211
|
getOracleCertificateConfig(): Promise<EcosystemsResponse>;
|
|
2203
|
-
batchGrantWithBond(
|
|
2204
|
-
|
|
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>;
|
|
2205
2223
|
}
|
|
2206
2224
|
|
|
2207
2225
|
declare function isValidAddress(address: string): boolean;
|
package/dist/browser.js
CHANGED
|
@@ -31152,13 +31152,21 @@ var MACI = class {
|
|
|
31152
31152
|
}
|
|
31153
31153
|
/**
|
|
31154
31154
|
* Batch grant with bond (for maci)
|
|
31155
|
-
* @param
|
|
31155
|
+
* @param signer
|
|
31156
31156
|
* @param contractAddress
|
|
31157
31157
|
* @param address
|
|
31158
31158
|
* @param amount
|
|
31159
31159
|
* @returns
|
|
31160
31160
|
*/
|
|
31161
|
-
async batchGrantWithBond(
|
|
31161
|
+
async batchGrantWithBond({
|
|
31162
|
+
signer,
|
|
31163
|
+
contractAddress,
|
|
31164
|
+
address,
|
|
31165
|
+
amount
|
|
31166
|
+
}) {
|
|
31167
|
+
const client = await this.contract.contractClient({
|
|
31168
|
+
signer
|
|
31169
|
+
});
|
|
31162
31170
|
const msgs = [
|
|
31163
31171
|
{
|
|
31164
31172
|
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
@@ -31211,7 +31219,14 @@ var MACI = class {
|
|
|
31211
31219
|
* @param address
|
|
31212
31220
|
* @returns
|
|
31213
31221
|
*/
|
|
31214
|
-
async batchRevokeWithdraw(
|
|
31222
|
+
async batchRevokeWithdraw({
|
|
31223
|
+
signer,
|
|
31224
|
+
contractAddress,
|
|
31225
|
+
address
|
|
31226
|
+
}) {
|
|
31227
|
+
const client = await this.contract.contractClient({
|
|
31228
|
+
signer
|
|
31229
|
+
});
|
|
31215
31230
|
const msgs = [
|
|
31216
31231
|
{
|
|
31217
31232
|
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
@@ -31549,20 +31564,29 @@ var MaciClient2 = class {
|
|
|
31549
31564
|
async getOracleCertificateConfig() {
|
|
31550
31565
|
return await this.maci.getOracleCertificateConfig();
|
|
31551
31566
|
}
|
|
31552
|
-
async batchGrantWithBond(
|
|
31553
|
-
|
|
31554
|
-
|
|
31567
|
+
async batchGrantWithBond({
|
|
31568
|
+
signer,
|
|
31569
|
+
contractAddress,
|
|
31570
|
+
address,
|
|
31571
|
+
amount
|
|
31572
|
+
}) {
|
|
31573
|
+
return await this.maci.batchGrantWithBond({
|
|
31574
|
+
signer,
|
|
31555
31575
|
contractAddress,
|
|
31556
31576
|
address,
|
|
31557
31577
|
amount
|
|
31558
|
-
);
|
|
31578
|
+
});
|
|
31559
31579
|
}
|
|
31560
|
-
async batchRevokeWithdraw(
|
|
31561
|
-
|
|
31562
|
-
|
|
31580
|
+
async batchRevokeWithdraw({
|
|
31581
|
+
signer,
|
|
31582
|
+
contractAddress,
|
|
31583
|
+
address
|
|
31584
|
+
}) {
|
|
31585
|
+
return await this.maci.batchRevokeWithdraw({
|
|
31586
|
+
signer,
|
|
31563
31587
|
contractAddress,
|
|
31564
31588
|
address
|
|
31565
|
-
);
|
|
31589
|
+
});
|
|
31566
31590
|
}
|
|
31567
31591
|
};
|
|
31568
31592
|
|