@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/index.d.mts CHANGED
@@ -1902,13 +1902,18 @@ declare class MACI {
1902
1902
  getOracleCertificateConfig(): Promise<EcosystemsResponse>;
1903
1903
  /**
1904
1904
  * Batch grant with bond (for maci)
1905
- * @param client
1905
+ * @param signer
1906
1906
  * @param contractAddress
1907
1907
  * @param address
1908
1908
  * @param amount
1909
1909
  * @returns
1910
1910
  */
1911
- batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1911
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
1912
+ signer: OfflineSigner;
1913
+ contractAddress: string;
1914
+ address: string;
1915
+ amount: string;
1916
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1912
1917
  /**
1913
1918
  * Batch revoke with withdraw (for maci)
1914
1919
  * @param client
@@ -1916,7 +1921,11 @@ declare class MACI {
1916
1921
  * @param address
1917
1922
  * @returns
1918
1923
  */
1919
- batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1924
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
1925
+ signer: OfflineSigner;
1926
+ contractAddress: string;
1927
+ address: string;
1928
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1920
1929
  }
1921
1930
 
1922
1931
  declare const circuits: Record<string, CircuitType>;
@@ -2201,8 +2210,17 @@ declare class MaciClient {
2201
2210
  contractAddress: string;
2202
2211
  }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
2203
2212
  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>;
2213
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
2214
+ signer: OfflineSigner;
2215
+ contractAddress: string;
2216
+ address: string;
2217
+ amount: string;
2218
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2219
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
2220
+ signer: OfflineSigner;
2221
+ contractAddress: string;
2222
+ address: string;
2223
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2206
2224
  }
2207
2225
 
2208
2226
  declare function isValidAddress(address: string): boolean;
package/dist/index.d.ts CHANGED
@@ -1902,13 +1902,18 @@ declare class MACI {
1902
1902
  getOracleCertificateConfig(): Promise<EcosystemsResponse>;
1903
1903
  /**
1904
1904
  * Batch grant with bond (for maci)
1905
- * @param client
1905
+ * @param signer
1906
1906
  * @param contractAddress
1907
1907
  * @param address
1908
1908
  * @param amount
1909
1909
  * @returns
1910
1910
  */
1911
- batchGrantWithBond(client: SigningCosmWasmClient, contractAddress: string, address: string, amount: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1911
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
1912
+ signer: OfflineSigner;
1913
+ contractAddress: string;
1914
+ address: string;
1915
+ amount: string;
1916
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1912
1917
  /**
1913
1918
  * Batch revoke with withdraw (for maci)
1914
1919
  * @param client
@@ -1916,7 +1921,11 @@ declare class MACI {
1916
1921
  * @param address
1917
1922
  * @returns
1918
1923
  */
1919
- batchRevokeWithdraw(client: SigningCosmWasmClient, contractAddress: string, address: string): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1924
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
1925
+ signer: OfflineSigner;
1926
+ contractAddress: string;
1927
+ address: string;
1928
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
1920
1929
  }
1921
1930
 
1922
1931
  declare const circuits: Record<string, CircuitType>;
@@ -2201,8 +2210,17 @@ declare class MaciClient {
2201
2210
  contractAddress: string;
2202
2211
  }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
2203
2212
  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>;
2213
+ batchGrantWithBond({ signer, contractAddress, address, amount, }: {
2214
+ signer: OfflineSigner;
2215
+ contractAddress: string;
2216
+ address: string;
2217
+ amount: string;
2218
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2219
+ batchRevokeWithdraw({ signer, contractAddress, address, }: {
2220
+ signer: OfflineSigner;
2221
+ contractAddress: string;
2222
+ address: string;
2223
+ }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2206
2224
  }
2207
2225
 
2208
2226
  declare function isValidAddress(address: string): boolean;
package/dist/index.js CHANGED
@@ -5376,13 +5376,21 @@ var MACI = class {
5376
5376
  }
5377
5377
  /**
5378
5378
  * Batch grant with bond (for maci)
5379
- * @param client
5379
+ * @param signer
5380
5380
  * @param contractAddress
5381
5381
  * @param address
5382
5382
  * @param amount
5383
5383
  * @returns
5384
5384
  */
5385
- async batchGrantWithBond(client, contractAddress, address, amount) {
5385
+ async batchGrantWithBond({
5386
+ signer,
5387
+ contractAddress,
5388
+ address,
5389
+ amount
5390
+ }) {
5391
+ const client = await this.contract.contractClient({
5392
+ signer
5393
+ });
5386
5394
  const msgs = [
5387
5395
  {
5388
5396
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
@@ -5435,7 +5443,14 @@ var MACI = class {
5435
5443
  * @param address
5436
5444
  * @returns
5437
5445
  */
5438
- async batchRevokeWithdraw(client, contractAddress, address) {
5446
+ async batchRevokeWithdraw({
5447
+ signer,
5448
+ contractAddress,
5449
+ address
5450
+ }) {
5451
+ const client = await this.contract.contractClient({
5452
+ signer
5453
+ });
5439
5454
  const msgs = [
5440
5455
  {
5441
5456
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
@@ -5772,20 +5787,29 @@ var MaciClient2 = class {
5772
5787
  async getOracleCertificateConfig() {
5773
5788
  return await this.maci.getOracleCertificateConfig();
5774
5789
  }
5775
- async batchGrantWithBond(client, contractAddress, address, amount) {
5776
- return await this.maci.batchGrantWithBond(
5777
- client,
5790
+ async batchGrantWithBond({
5791
+ signer,
5792
+ contractAddress,
5793
+ address,
5794
+ amount
5795
+ }) {
5796
+ return await this.maci.batchGrantWithBond({
5797
+ signer,
5778
5798
  contractAddress,
5779
5799
  address,
5780
5800
  amount
5781
- );
5801
+ });
5782
5802
  }
5783
- async batchRevokeWithdraw(client, contractAddress, address) {
5784
- return await this.maci.batchRevokeWithdraw(
5785
- client,
5803
+ async batchRevokeWithdraw({
5804
+ signer,
5805
+ contractAddress,
5806
+ address
5807
+ }) {
5808
+ return await this.maci.batchRevokeWithdraw({
5809
+ signer,
5786
5810
  contractAddress,
5787
5811
  address
5788
- );
5812
+ });
5789
5813
  }
5790
5814
  };
5791
5815