@dorafactory/maci-sdk 0.0.21 → 0.0.23

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
@@ -1200,13 +1200,12 @@ interface VotingTime {
1200
1200
  end_time: Timestamp;
1201
1201
  start_time: Timestamp;
1202
1202
  }
1203
- interface Whitelist {
1204
- users: WhitelistConfig[];
1203
+ interface WhitelistBase {
1204
+ users: WhitelistBaseConfig[];
1205
1205
  }
1206
- interface WhitelistConfig {
1206
+ interface WhitelistBaseConfig {
1207
1207
  addr: Addr;
1208
1208
  }
1209
- type Uint128 = string;
1210
1209
  interface MessageData {
1211
1210
  data: [Uint256, Uint256, Uint256, Uint256, Uint256, Uint256, Uint256];
1212
1211
  }
@@ -1215,12 +1214,31 @@ interface Groth16ProofType {
1215
1214
  b: string;
1216
1215
  c: string;
1217
1216
  }
1217
+ type Boolean = boolean;
1218
+ type DelayType = 'deactivate_delay' | 'tally_delay';
1219
+ interface DelayRecords {
1220
+ records: DelayRecord[];
1221
+ }
1222
+ interface DelayRecord {
1223
+ delay_duration: number;
1224
+ delay_process_dmsg_count: Uint256;
1225
+ delay_reason: string;
1226
+ delay_timestamp: Timestamp;
1227
+ delay_type: DelayType;
1228
+ }
1218
1229
  type PeriodStatus = 'pending' | 'voting' | 'processing' | 'tallying' | 'ended';
1219
1230
  interface Period {
1220
1231
  status: PeriodStatus;
1221
1232
  }
1222
- type Boolean = boolean;
1233
+ type Uint128 = string;
1223
1234
  type ArrayOfString = string[];
1235
+ interface Whitelist {
1236
+ users: WhitelistConfig[];
1237
+ }
1238
+ interface WhitelistConfig {
1239
+ addr: Addr;
1240
+ is_register: boolean;
1241
+ }
1224
1242
 
1225
1243
  /**
1226
1244
  * This file was automatically generated by @cosmwasm/ts-codegen@1.11.1.
@@ -1253,9 +1271,15 @@ interface AMaciReadOnlyInterface {
1253
1271
  }) => Promise<Uint256>;
1254
1272
  getVoiceCreditAmount: () => Promise<Uint256>;
1255
1273
  whiteList: () => Promise<Whitelist>;
1274
+ canSignUp: ({ sender }: {
1275
+ sender: Addr;
1276
+ }) => Promise<Boolean>;
1256
1277
  isWhiteList: ({ sender }: {
1257
1278
  sender: Addr;
1258
1279
  }) => Promise<Boolean>;
1280
+ isRegister: ({ sender }: {
1281
+ sender: Addr;
1282
+ }) => Promise<Boolean>;
1259
1283
  signuped: ({ pubkeyX }: {
1260
1284
  pubkeyX: Uint256;
1261
1285
  }) => Promise<Uint256>;
@@ -1265,6 +1289,7 @@ interface AMaciReadOnlyInterface {
1265
1289
  queryCircuitType: () => Promise<Uint256>;
1266
1290
  queryCertSystem: () => Promise<Uint256>;
1267
1291
  queryPreDeactivateRoot: () => Promise<Uint256>;
1292
+ getDelayRecords: () => Promise<DelayRecords>;
1268
1293
  }
1269
1294
  declare class AMaciQueryClient implements AMaciReadOnlyInterface {
1270
1295
  client: CosmWasmClient;
@@ -1293,9 +1318,15 @@ declare class AMaciQueryClient implements AMaciReadOnlyInterface {
1293
1318
  }) => Promise<Uint256>;
1294
1319
  getVoiceCreditAmount: () => Promise<Uint256>;
1295
1320
  whiteList: () => Promise<Whitelist>;
1321
+ canSignUp: ({ sender }: {
1322
+ sender: Addr;
1323
+ }) => Promise<Boolean>;
1296
1324
  isWhiteList: ({ sender }: {
1297
1325
  sender: Addr;
1298
1326
  }) => Promise<Boolean>;
1327
+ isRegister: ({ sender }: {
1328
+ sender: Addr;
1329
+ }) => Promise<Boolean>;
1299
1330
  signuped: ({ pubkeyX }: {
1300
1331
  pubkeyX: Uint256;
1301
1332
  }) => Promise<Uint256>;
@@ -1305,6 +1336,7 @@ declare class AMaciQueryClient implements AMaciReadOnlyInterface {
1305
1336
  queryCircuitType: () => Promise<Uint256>;
1306
1337
  queryCertSystem: () => Promise<Uint256>;
1307
1338
  queryPreDeactivateRoot: () => Promise<Uint256>;
1339
+ getDelayRecords: () => Promise<DelayRecords>;
1308
1340
  }
1309
1341
  interface AMaciInterface extends AMaciReadOnlyInterface {
1310
1342
  contractAddress: string;
@@ -1313,7 +1345,7 @@ interface AMaciInterface extends AMaciReadOnlyInterface {
1313
1345
  roundInfo: RoundInfo;
1314
1346
  }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1315
1347
  setWhitelists: ({ whitelists, }: {
1316
- whitelists: Whitelist;
1348
+ whitelists: WhitelistBase;
1317
1349
  }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1318
1350
  setVoteOptionsMap: ({ voteOptionMap, }: {
1319
1351
  voteOptionMap: string[];
@@ -1361,14 +1393,7 @@ interface AMaciInterface extends AMaciReadOnlyInterface {
1361
1393
  results: Uint256[];
1362
1394
  salt: Uint256;
1363
1395
  }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1364
- grant: ({ maxAmount, }: {
1365
- maxAmount: Uint128;
1366
- }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1367
- revoke: (fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1368
- bond: (fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1369
- withdraw: ({ amount, }: {
1370
- amount?: Uint128;
1371
- }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1396
+ claim: (fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1372
1397
  }
1373
1398
  declare class AMaciClient extends AMaciQueryClient implements AMaciInterface {
1374
1399
  client: SigningCosmWasmClient;
@@ -1379,7 +1404,7 @@ declare class AMaciClient extends AMaciQueryClient implements AMaciInterface {
1379
1404
  roundInfo: RoundInfo;
1380
1405
  }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1381
1406
  setWhitelists: ({ whitelists, }: {
1382
- whitelists: Whitelist;
1407
+ whitelists: WhitelistBase;
1383
1408
  }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1384
1409
  setVoteOptionsMap: ({ voteOptionMap, }: {
1385
1410
  voteOptionMap: string[];
@@ -1427,14 +1452,7 @@ declare class AMaciClient extends AMaciQueryClient implements AMaciInterface {
1427
1452
  results: Uint256[];
1428
1453
  salt: Uint256;
1429
1454
  }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1430
- grant: ({ maxAmount, }: {
1431
- maxAmount: Uint128;
1432
- }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1433
- revoke: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1434
- bond: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1435
- withdraw: ({ amount, }: {
1436
- amount?: Uint128;
1437
- }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1455
+ claim: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1438
1456
  }
1439
1457
 
1440
1458
  /**
@@ -1747,6 +1765,13 @@ declare class MACI {
1747
1765
  claimable: boolean | null;
1748
1766
  balance: string | null;
1749
1767
  }>;
1768
+ queryAMaciChargeFee({ maxVoter, maxOption, }: {
1769
+ maxVoter: number;
1770
+ maxOption: number;
1771
+ }): Promise<{
1772
+ denom: string;
1773
+ amount: string;
1774
+ }>;
1750
1775
  queryRoundGasStation({ contractAddress }: {
1751
1776
  contractAddress: string;
1752
1777
  }): Promise<boolean>;
@@ -1813,6 +1838,10 @@ declare class MACI {
1813
1838
  };
1814
1839
  gasStation?: boolean;
1815
1840
  }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
1841
+ claimAMaciRound({ signer, contractAddress, }: {
1842
+ signer: OfflineSigner;
1843
+ contractAddress: string;
1844
+ }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
1816
1845
  }
1817
1846
 
1818
1847
  declare const circuits: Record<string, CircuitType>;
package/dist/index.d.ts CHANGED
@@ -1200,13 +1200,12 @@ interface VotingTime {
1200
1200
  end_time: Timestamp;
1201
1201
  start_time: Timestamp;
1202
1202
  }
1203
- interface Whitelist {
1204
- users: WhitelistConfig[];
1203
+ interface WhitelistBase {
1204
+ users: WhitelistBaseConfig[];
1205
1205
  }
1206
- interface WhitelistConfig {
1206
+ interface WhitelistBaseConfig {
1207
1207
  addr: Addr;
1208
1208
  }
1209
- type Uint128 = string;
1210
1209
  interface MessageData {
1211
1210
  data: [Uint256, Uint256, Uint256, Uint256, Uint256, Uint256, Uint256];
1212
1211
  }
@@ -1215,12 +1214,31 @@ interface Groth16ProofType {
1215
1214
  b: string;
1216
1215
  c: string;
1217
1216
  }
1217
+ type Boolean = boolean;
1218
+ type DelayType = 'deactivate_delay' | 'tally_delay';
1219
+ interface DelayRecords {
1220
+ records: DelayRecord[];
1221
+ }
1222
+ interface DelayRecord {
1223
+ delay_duration: number;
1224
+ delay_process_dmsg_count: Uint256;
1225
+ delay_reason: string;
1226
+ delay_timestamp: Timestamp;
1227
+ delay_type: DelayType;
1228
+ }
1218
1229
  type PeriodStatus = 'pending' | 'voting' | 'processing' | 'tallying' | 'ended';
1219
1230
  interface Period {
1220
1231
  status: PeriodStatus;
1221
1232
  }
1222
- type Boolean = boolean;
1233
+ type Uint128 = string;
1223
1234
  type ArrayOfString = string[];
1235
+ interface Whitelist {
1236
+ users: WhitelistConfig[];
1237
+ }
1238
+ interface WhitelistConfig {
1239
+ addr: Addr;
1240
+ is_register: boolean;
1241
+ }
1224
1242
 
1225
1243
  /**
1226
1244
  * This file was automatically generated by @cosmwasm/ts-codegen@1.11.1.
@@ -1253,9 +1271,15 @@ interface AMaciReadOnlyInterface {
1253
1271
  }) => Promise<Uint256>;
1254
1272
  getVoiceCreditAmount: () => Promise<Uint256>;
1255
1273
  whiteList: () => Promise<Whitelist>;
1274
+ canSignUp: ({ sender }: {
1275
+ sender: Addr;
1276
+ }) => Promise<Boolean>;
1256
1277
  isWhiteList: ({ sender }: {
1257
1278
  sender: Addr;
1258
1279
  }) => Promise<Boolean>;
1280
+ isRegister: ({ sender }: {
1281
+ sender: Addr;
1282
+ }) => Promise<Boolean>;
1259
1283
  signuped: ({ pubkeyX }: {
1260
1284
  pubkeyX: Uint256;
1261
1285
  }) => Promise<Uint256>;
@@ -1265,6 +1289,7 @@ interface AMaciReadOnlyInterface {
1265
1289
  queryCircuitType: () => Promise<Uint256>;
1266
1290
  queryCertSystem: () => Promise<Uint256>;
1267
1291
  queryPreDeactivateRoot: () => Promise<Uint256>;
1292
+ getDelayRecords: () => Promise<DelayRecords>;
1268
1293
  }
1269
1294
  declare class AMaciQueryClient implements AMaciReadOnlyInterface {
1270
1295
  client: CosmWasmClient;
@@ -1293,9 +1318,15 @@ declare class AMaciQueryClient implements AMaciReadOnlyInterface {
1293
1318
  }) => Promise<Uint256>;
1294
1319
  getVoiceCreditAmount: () => Promise<Uint256>;
1295
1320
  whiteList: () => Promise<Whitelist>;
1321
+ canSignUp: ({ sender }: {
1322
+ sender: Addr;
1323
+ }) => Promise<Boolean>;
1296
1324
  isWhiteList: ({ sender }: {
1297
1325
  sender: Addr;
1298
1326
  }) => Promise<Boolean>;
1327
+ isRegister: ({ sender }: {
1328
+ sender: Addr;
1329
+ }) => Promise<Boolean>;
1299
1330
  signuped: ({ pubkeyX }: {
1300
1331
  pubkeyX: Uint256;
1301
1332
  }) => Promise<Uint256>;
@@ -1305,6 +1336,7 @@ declare class AMaciQueryClient implements AMaciReadOnlyInterface {
1305
1336
  queryCircuitType: () => Promise<Uint256>;
1306
1337
  queryCertSystem: () => Promise<Uint256>;
1307
1338
  queryPreDeactivateRoot: () => Promise<Uint256>;
1339
+ getDelayRecords: () => Promise<DelayRecords>;
1308
1340
  }
1309
1341
  interface AMaciInterface extends AMaciReadOnlyInterface {
1310
1342
  contractAddress: string;
@@ -1313,7 +1345,7 @@ interface AMaciInterface extends AMaciReadOnlyInterface {
1313
1345
  roundInfo: RoundInfo;
1314
1346
  }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1315
1347
  setWhitelists: ({ whitelists, }: {
1316
- whitelists: Whitelist;
1348
+ whitelists: WhitelistBase;
1317
1349
  }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1318
1350
  setVoteOptionsMap: ({ voteOptionMap, }: {
1319
1351
  voteOptionMap: string[];
@@ -1361,14 +1393,7 @@ interface AMaciInterface extends AMaciReadOnlyInterface {
1361
1393
  results: Uint256[];
1362
1394
  salt: Uint256;
1363
1395
  }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1364
- grant: ({ maxAmount, }: {
1365
- maxAmount: Uint128;
1366
- }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1367
- revoke: (fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1368
- bond: (fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1369
- withdraw: ({ amount, }: {
1370
- amount?: Uint128;
1371
- }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1396
+ claim: (fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1372
1397
  }
1373
1398
  declare class AMaciClient extends AMaciQueryClient implements AMaciInterface {
1374
1399
  client: SigningCosmWasmClient;
@@ -1379,7 +1404,7 @@ declare class AMaciClient extends AMaciQueryClient implements AMaciInterface {
1379
1404
  roundInfo: RoundInfo;
1380
1405
  }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1381
1406
  setWhitelists: ({ whitelists, }: {
1382
- whitelists: Whitelist;
1407
+ whitelists: WhitelistBase;
1383
1408
  }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1384
1409
  setVoteOptionsMap: ({ voteOptionMap, }: {
1385
1410
  voteOptionMap: string[];
@@ -1427,14 +1452,7 @@ declare class AMaciClient extends AMaciQueryClient implements AMaciInterface {
1427
1452
  results: Uint256[];
1428
1453
  salt: Uint256;
1429
1454
  }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1430
- grant: ({ maxAmount, }: {
1431
- maxAmount: Uint128;
1432
- }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1433
- revoke: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1434
- bond: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1435
- withdraw: ({ amount, }: {
1436
- amount?: Uint128;
1437
- }, fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1455
+ claim: (fee?: number | StdFee | "auto", memo?: string, _funds?: Coin[]) => Promise<ExecuteResult>;
1438
1456
  }
1439
1457
 
1440
1458
  /**
@@ -1747,6 +1765,13 @@ declare class MACI {
1747
1765
  claimable: boolean | null;
1748
1766
  balance: string | null;
1749
1767
  }>;
1768
+ queryAMaciChargeFee({ maxVoter, maxOption, }: {
1769
+ maxVoter: number;
1770
+ maxOption: number;
1771
+ }): Promise<{
1772
+ denom: string;
1773
+ amount: string;
1774
+ }>;
1750
1775
  queryRoundGasStation({ contractAddress }: {
1751
1776
  contractAddress: string;
1752
1777
  }): Promise<boolean>;
@@ -1813,6 +1838,10 @@ declare class MACI {
1813
1838
  };
1814
1839
  gasStation?: boolean;
1815
1840
  }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
1841
+ claimAMaciRound({ signer, contractAddress, }: {
1842
+ signer: OfflineSigner;
1843
+ contractAddress: string;
1844
+ }): Promise<_cosmjs_cosmwasm_stargate.ExecuteResult>;
1816
1845
  }
1817
1846
 
1818
1847
  declare const circuits: Record<string, CircuitType>;
package/dist/index.js CHANGED
@@ -2547,6 +2547,13 @@ var AMaciQueryClient = class {
2547
2547
  white_list: {}
2548
2548
  });
2549
2549
  };
2550
+ this.canSignUp = async ({ sender }) => {
2551
+ return this.client.queryContractSmart(this.contractAddress, {
2552
+ can_sign_up: {
2553
+ sender
2554
+ }
2555
+ });
2556
+ };
2550
2557
  this.isWhiteList = async ({ sender }) => {
2551
2558
  return this.client.queryContractSmart(this.contractAddress, {
2552
2559
  is_white_list: {
@@ -2554,6 +2561,13 @@ var AMaciQueryClient = class {
2554
2561
  }
2555
2562
  });
2556
2563
  };
2564
+ this.isRegister = async ({ sender }) => {
2565
+ return this.client.queryContractSmart(this.contractAddress, {
2566
+ is_register: {
2567
+ sender
2568
+ }
2569
+ });
2570
+ };
2557
2571
  this.signuped = async ({ pubkeyX }) => {
2558
2572
  return this.client.queryContractSmart(this.contractAddress, {
2559
2573
  signuped: {
@@ -2591,6 +2605,11 @@ var AMaciQueryClient = class {
2591
2605
  query_pre_deactivate_root: {}
2592
2606
  });
2593
2607
  };
2608
+ this.getDelayRecords = async () => {
2609
+ return this.client.queryContractSmart(this.contractAddress, {
2610
+ get_delay_records: {}
2611
+ });
2612
+ };
2594
2613
  this.client = client;
2595
2614
  this.contractAddress = contractAddress;
2596
2615
  this.admin = this.admin.bind(this);
@@ -2610,7 +2629,9 @@ var AMaciQueryClient = class {
2610
2629
  this.getVoiceCreditBalance = this.getVoiceCreditBalance.bind(this);
2611
2630
  this.getVoiceCreditAmount = this.getVoiceCreditAmount.bind(this);
2612
2631
  this.whiteList = this.whiteList.bind(this);
2632
+ this.canSignUp = this.canSignUp.bind(this);
2613
2633
  this.isWhiteList = this.isWhiteList.bind(this);
2634
+ this.isRegister = this.isRegister.bind(this);
2614
2635
  this.signuped = this.signuped.bind(this);
2615
2636
  this.voteOptionMap = this.voteOptionMap.bind(this);
2616
2637
  this.maxVoteOptions = this.maxVoteOptions.bind(this);
@@ -2618,6 +2639,7 @@ var AMaciQueryClient = class {
2618
2639
  this.queryCircuitType = this.queryCircuitType.bind(this);
2619
2640
  this.queryCertSystem = this.queryCertSystem.bind(this);
2620
2641
  this.queryPreDeactivateRoot = this.queryPreDeactivateRoot.bind(this);
2642
+ this.getDelayRecords = this.getDelayRecords.bind(this);
2621
2643
  }
2622
2644
  };
2623
2645
  var AMaciClient = class extends AMaciQueryClient {
@@ -2867,56 +2889,12 @@ var AMaciClient = class extends AMaciQueryClient {
2867
2889
  _funds
2868
2890
  );
2869
2891
  };
2870
- this.grant = async ({
2871
- maxAmount
2872
- }, fee = "auto", memo, _funds) => {
2873
- return await this.client.execute(
2874
- this.sender,
2875
- this.contractAddress,
2876
- {
2877
- grant: {
2878
- max_amount: maxAmount
2879
- }
2880
- },
2881
- fee,
2882
- memo,
2883
- _funds
2884
- );
2885
- };
2886
- this.revoke = async (fee = "auto", memo, _funds) => {
2887
- return await this.client.execute(
2888
- this.sender,
2889
- this.contractAddress,
2890
- {
2891
- revoke: {}
2892
- },
2893
- fee,
2894
- memo,
2895
- _funds
2896
- );
2897
- };
2898
- this.bond = async (fee = "auto", memo, _funds) => {
2892
+ this.claim = async (fee = "auto", memo, _funds) => {
2899
2893
  return await this.client.execute(
2900
2894
  this.sender,
2901
2895
  this.contractAddress,
2902
2896
  {
2903
- bond: {}
2904
- },
2905
- fee,
2906
- memo,
2907
- _funds
2908
- );
2909
- };
2910
- this.withdraw = async ({
2911
- amount
2912
- }, fee = "auto", memo, _funds) => {
2913
- return await this.client.execute(
2914
- this.sender,
2915
- this.contractAddress,
2916
- {
2917
- withdraw: {
2918
- amount
2919
- }
2897
+ claim: {}
2920
2898
  },
2921
2899
  fee,
2922
2900
  memo,
@@ -2940,10 +2918,7 @@ var AMaciClient = class extends AMaciQueryClient {
2940
2918
  this.stopProcessingPeriod = this.stopProcessingPeriod.bind(this);
2941
2919
  this.processTally = this.processTally.bind(this);
2942
2920
  this.stopTallyingPeriod = this.stopTallyingPeriod.bind(this);
2943
- this.grant = this.grant.bind(this);
2944
- this.revoke = this.revoke.bind(this);
2945
- this.bond = this.bond.bind(this);
2946
- this.withdraw = this.withdraw.bind(this);
2921
+ this.claim = this.claim.bind(this);
2947
2922
  }
2948
2923
  };
2949
2924
 
@@ -4936,6 +4911,13 @@ var MACI = class {
4936
4911
  };
4937
4912
  }
4938
4913
  }
4914
+ async queryAMaciChargeFee({
4915
+ maxVoter,
4916
+ maxOption
4917
+ }) {
4918
+ const fee = getAMaciRoundCircuitFee(maxVoter, maxOption);
4919
+ return fee;
4920
+ }
4939
4921
  async queryRoundGasStation({ contractAddress }) {
4940
4922
  const roundInfo = await this.getRoundInfo({ contractAddress });
4941
4923
  return roundInfo.gasStationEnable;
@@ -5232,6 +5214,16 @@ var MACI = class {
5232
5214
  fee
5233
5215
  );
5234
5216
  }
5217
+ async claimAMaciRound({
5218
+ signer,
5219
+ contractAddress
5220
+ }) {
5221
+ const client = await this.contract.amaciClient({
5222
+ signer,
5223
+ contractAddress
5224
+ });
5225
+ return client.claim();
5226
+ }
5235
5227
  };
5236
5228
 
5237
5229
  // src/maci.ts