@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.mjs
CHANGED
|
@@ -31128,13 +31128,21 @@ var MACI = class {
|
|
|
31128
31128
|
}
|
|
31129
31129
|
/**
|
|
31130
31130
|
* Batch grant with bond (for maci)
|
|
31131
|
-
* @param
|
|
31131
|
+
* @param signer
|
|
31132
31132
|
* @param contractAddress
|
|
31133
31133
|
* @param address
|
|
31134
31134
|
* @param amount
|
|
31135
31135
|
* @returns
|
|
31136
31136
|
*/
|
|
31137
|
-
async batchGrantWithBond(
|
|
31137
|
+
async batchGrantWithBond({
|
|
31138
|
+
signer,
|
|
31139
|
+
contractAddress,
|
|
31140
|
+
address,
|
|
31141
|
+
amount
|
|
31142
|
+
}) {
|
|
31143
|
+
const client = await this.contract.contractClient({
|
|
31144
|
+
signer
|
|
31145
|
+
});
|
|
31138
31146
|
const msgs = [
|
|
31139
31147
|
{
|
|
31140
31148
|
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
@@ -31187,7 +31195,14 @@ var MACI = class {
|
|
|
31187
31195
|
* @param address
|
|
31188
31196
|
* @returns
|
|
31189
31197
|
*/
|
|
31190
|
-
async batchRevokeWithdraw(
|
|
31198
|
+
async batchRevokeWithdraw({
|
|
31199
|
+
signer,
|
|
31200
|
+
contractAddress,
|
|
31201
|
+
address
|
|
31202
|
+
}) {
|
|
31203
|
+
const client = await this.contract.contractClient({
|
|
31204
|
+
signer
|
|
31205
|
+
});
|
|
31191
31206
|
const msgs = [
|
|
31192
31207
|
{
|
|
31193
31208
|
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
@@ -31525,20 +31540,29 @@ var MaciClient2 = class {
|
|
|
31525
31540
|
async getOracleCertificateConfig() {
|
|
31526
31541
|
return await this.maci.getOracleCertificateConfig();
|
|
31527
31542
|
}
|
|
31528
|
-
async batchGrantWithBond(
|
|
31529
|
-
|
|
31530
|
-
|
|
31543
|
+
async batchGrantWithBond({
|
|
31544
|
+
signer,
|
|
31545
|
+
contractAddress,
|
|
31546
|
+
address,
|
|
31547
|
+
amount
|
|
31548
|
+
}) {
|
|
31549
|
+
return await this.maci.batchGrantWithBond({
|
|
31550
|
+
signer,
|
|
31531
31551
|
contractAddress,
|
|
31532
31552
|
address,
|
|
31533
31553
|
amount
|
|
31534
|
-
);
|
|
31554
|
+
});
|
|
31535
31555
|
}
|
|
31536
|
-
async batchRevokeWithdraw(
|
|
31537
|
-
|
|
31538
|
-
|
|
31556
|
+
async batchRevokeWithdraw({
|
|
31557
|
+
signer,
|
|
31558
|
+
contractAddress,
|
|
31559
|
+
address
|
|
31560
|
+
}) {
|
|
31561
|
+
return await this.maci.batchRevokeWithdraw({
|
|
31562
|
+
signer,
|
|
31539
31563
|
contractAddress,
|
|
31540
31564
|
address
|
|
31541
|
-
);
|
|
31565
|
+
});
|
|
31542
31566
|
}
|
|
31543
31567
|
};
|
|
31544
31568
|
|