@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.mjs CHANGED
@@ -31128,13 +31128,21 @@ var MACI = class {
31128
31128
  }
31129
31129
  /**
31130
31130
  * Batch grant with bond (for maci)
31131
- * @param client
31131
+ * @param signer
31132
31132
  * @param contractAddress
31133
31133
  * @param address
31134
31134
  * @param amount
31135
31135
  * @returns
31136
31136
  */
31137
- async batchGrantWithBond(client, contractAddress, address, amount) {
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(client, contractAddress, address) {
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(client, contractAddress, address, amount) {
31529
- return await this.maci.batchGrantWithBond(
31530
- client,
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(client, contractAddress, address) {
31537
- return await this.maci.batchRevokeWithdraw(
31538
- client,
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