@dorafactory/maci-sdk 0.1.2 → 0.1.3-pre.10

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.
Files changed (39) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +2371 -975
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +2369 -975
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/libs/const.d.ts +1 -2
  7. package/dist/libs/contract/config.d.ts +12 -0
  8. package/dist/libs/contract/contract.d.ts +66 -4
  9. package/dist/libs/contract/ts/AMaci.client.d.ts +25 -3
  10. package/dist/libs/contract/ts/AMaci.types.d.ts +26 -1
  11. package/dist/libs/contract/ts/ApiMaci.client.d.ts +170 -0
  12. package/dist/libs/contract/ts/ApiMaci.types.d.ts +187 -0
  13. package/dist/libs/contract/ts/ApiSaas.client.d.ts +148 -0
  14. package/dist/libs/contract/ts/ApiSaas.types.d.ts +126 -0
  15. package/dist/libs/contract/ts/Registry.client.d.ts +17 -7
  16. package/dist/libs/contract/ts/Registry.types.d.ts +16 -5
  17. package/dist/libs/contract/types.d.ts +15 -3
  18. package/dist/libs/crypto/bigintUtils.d.ts +2 -0
  19. package/dist/libs/maci/maci.d.ts +34 -4
  20. package/dist/maci.d.ts +47 -3
  21. package/dist/types/index.d.ts +2 -2
  22. package/package.json +1 -1
  23. package/src/index.ts +5 -1
  24. package/src/libs/const.ts +5 -6
  25. package/src/libs/contract/config.ts +36 -0
  26. package/src/libs/contract/contract.ts +611 -6
  27. package/src/libs/contract/ts/AMaci.client.ts +66 -0
  28. package/src/libs/contract/ts/AMaci.types.ts +30 -1
  29. package/src/libs/contract/ts/ApiMaci.client.ts +459 -0
  30. package/src/libs/contract/ts/ApiMaci.types.ts +188 -0
  31. package/src/libs/contract/ts/ApiSaas.client.ts +581 -0
  32. package/src/libs/contract/ts/ApiSaas.types.ts +144 -0
  33. package/src/libs/contract/ts/Registry.client.ts +57 -9
  34. package/src/libs/contract/ts/Registry.types.ts +18 -5
  35. package/src/libs/contract/types.ts +16 -3
  36. package/src/libs/crypto/bigintUtils.ts +28 -0
  37. package/src/libs/maci/maci.ts +190 -9
  38. package/src/maci.ts +86 -4
  39. package/src/types/index.ts +2 -2
@@ -0,0 +1,581 @@
1
+ /**
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@1.11.1.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
+ */
6
+
7
+ import {
8
+ CosmWasmClient,
9
+ SigningCosmWasmClient,
10
+ ExecuteResult,
11
+ } from '@cosmjs/cosmwasm-stargate';
12
+ import { Coin, StdFee } from '@cosmjs/amino';
13
+ import {
14
+ Addr,
15
+ InstantiateMsg,
16
+ ExecuteMsg,
17
+ Uint128,
18
+ Uint256,
19
+ Timestamp,
20
+ Uint64,
21
+ PubKey,
22
+ RoundInfo,
23
+ VotingTime,
24
+ WhitelistBase,
25
+ WhitelistBaseConfig,
26
+ QueryMsg,
27
+ Config,
28
+ Boolean,
29
+ ArrayOfOperatorInfo,
30
+ OperatorInfo,
31
+ } from './ApiSaas.types';
32
+ export interface ApiSaasReadOnlyInterface {
33
+ contractAddress: string;
34
+ config: () => Promise<Config>;
35
+ operators: () => Promise<ArrayOfOperatorInfo>;
36
+ isOperator: ({ address }: { address: Addr }) => Promise<Boolean>;
37
+ balance: () => Promise<Uint128>;
38
+ maciCodeId: () => Promise<Uint64>;
39
+ treasuryManager: () => Promise<Addr>;
40
+ }
41
+ export class ApiSaasQueryClient implements ApiSaasReadOnlyInterface {
42
+ client: CosmWasmClient;
43
+ contractAddress: string;
44
+ constructor(client: CosmWasmClient, contractAddress: string) {
45
+ this.client = client;
46
+ this.contractAddress = contractAddress;
47
+ this.config = this.config.bind(this);
48
+ this.operators = this.operators.bind(this);
49
+ this.isOperator = this.isOperator.bind(this);
50
+ this.balance = this.balance.bind(this);
51
+ this.maciCodeId = this.maciCodeId.bind(this);
52
+ this.treasuryManager = this.treasuryManager.bind(this);
53
+ }
54
+ config = async (): Promise<Config> => {
55
+ return this.client.queryContractSmart(this.contractAddress, {
56
+ config: {},
57
+ });
58
+ };
59
+ operators = async (): Promise<ArrayOfOperatorInfo> => {
60
+ return this.client.queryContractSmart(this.contractAddress, {
61
+ operators: {},
62
+ });
63
+ };
64
+ isOperator = async ({ address }: { address: Addr }): Promise<Boolean> => {
65
+ return this.client.queryContractSmart(this.contractAddress, {
66
+ is_operator: {
67
+ address,
68
+ },
69
+ });
70
+ };
71
+ balance = async (): Promise<Uint128> => {
72
+ return this.client.queryContractSmart(this.contractAddress, {
73
+ balance: {},
74
+ });
75
+ };
76
+ maciCodeId = async (): Promise<Uint64> => {
77
+ return this.client.queryContractSmart(this.contractAddress, {
78
+ maci_code_id: {},
79
+ });
80
+ };
81
+ treasuryManager = async (): Promise<Addr> => {
82
+ return this.client.queryContractSmart(this.contractAddress, {
83
+ treasury_manager: {},
84
+ });
85
+ };
86
+ }
87
+ export interface ApiSaasInterface extends ApiSaasReadOnlyInterface {
88
+ contractAddress: string;
89
+ sender: string;
90
+ updateConfig: (
91
+ {
92
+ admin,
93
+ denom,
94
+ }: {
95
+ admin?: Addr;
96
+ denom?: string;
97
+ },
98
+ fee?: number | StdFee | 'auto',
99
+ memo?: string,
100
+ _funds?: Coin[]
101
+ ) => Promise<ExecuteResult>;
102
+ updateMaciCodeId: (
103
+ {
104
+ codeId,
105
+ }: {
106
+ codeId: number;
107
+ },
108
+ fee?: number | StdFee | 'auto',
109
+ memo?: string,
110
+ _funds?: Coin[]
111
+ ) => Promise<ExecuteResult>;
112
+ updateAmaciRegistryContract: (
113
+ {
114
+ registryContract,
115
+ }: {
116
+ registryContract: Addr;
117
+ },
118
+ fee?: number | StdFee | 'auto',
119
+ memo?: string,
120
+ _funds?: Coin[]
121
+ ) => Promise<ExecuteResult>;
122
+ addOperator: (
123
+ {
124
+ operator,
125
+ }: {
126
+ operator: Addr;
127
+ },
128
+ fee?: number | StdFee | 'auto',
129
+ memo?: string,
130
+ _funds?: Coin[]
131
+ ) => Promise<ExecuteResult>;
132
+ removeOperator: (
133
+ {
134
+ operator,
135
+ }: {
136
+ operator: Addr;
137
+ },
138
+ fee?: number | StdFee | 'auto',
139
+ memo?: string,
140
+ _funds?: Coin[]
141
+ ) => Promise<ExecuteResult>;
142
+ deposit: (
143
+ fee?: number | StdFee | 'auto',
144
+ memo?: string,
145
+ _funds?: Coin[]
146
+ ) => Promise<ExecuteResult>;
147
+ withdraw: (
148
+ {
149
+ amount,
150
+ recipient,
151
+ }: {
152
+ amount: Uint128;
153
+ recipient?: Addr;
154
+ },
155
+ fee?: number | StdFee | 'auto',
156
+ memo?: string,
157
+ _funds?: Coin[]
158
+ ) => Promise<ExecuteResult>;
159
+ createMaciRound: (
160
+ {
161
+ certificationSystem,
162
+ circuitType,
163
+ coordinator,
164
+ endTime,
165
+ maxVoters,
166
+ roundInfo,
167
+ startTime,
168
+ voteOptionMap,
169
+ whitelistBackendPubkey,
170
+ }: {
171
+ certificationSystem: Uint256;
172
+ circuitType: Uint256;
173
+ coordinator: PubKey;
174
+ endTime: Timestamp;
175
+ maxVoters: number;
176
+ roundInfo: RoundInfo;
177
+ startTime: Timestamp;
178
+ voteOptionMap: string[];
179
+ whitelistBackendPubkey: string;
180
+ },
181
+ fee?: number | StdFee | 'auto',
182
+ memo?: string,
183
+ _funds?: Coin[]
184
+ ) => Promise<ExecuteResult>;
185
+ createAmaciRound: (
186
+ {
187
+ certificationSystem,
188
+ circuitType,
189
+ maxVoter,
190
+ operator,
191
+ oracleWhitelistPubkey,
192
+ preDeactivateRoot,
193
+ roundInfo,
194
+ voiceCreditAmount,
195
+ voteOptionMap,
196
+ votingTime,
197
+ whitelist,
198
+ }: {
199
+ certificationSystem: Uint256;
200
+ circuitType: Uint256;
201
+ maxVoter: Uint256;
202
+ operator: Addr;
203
+ oracleWhitelistPubkey?: string;
204
+ preDeactivateRoot: Uint256;
205
+ roundInfo: RoundInfo;
206
+ voiceCreditAmount: Uint256;
207
+ voteOptionMap: string[];
208
+ votingTime: VotingTime;
209
+ whitelist?: WhitelistBase;
210
+ },
211
+ fee?: number | StdFee | 'auto',
212
+ memo?: string,
213
+ _funds?: Coin[]
214
+ ) => Promise<ExecuteResult>;
215
+ setRoundInfo: (
216
+ {
217
+ contractAddr,
218
+ roundInfo,
219
+ }: {
220
+ contractAddr: string;
221
+ roundInfo: RoundInfo;
222
+ },
223
+ fee?: number | StdFee | 'auto',
224
+ memo?: string,
225
+ _funds?: Coin[]
226
+ ) => Promise<ExecuteResult>;
227
+ setVoteOptionsMap: (
228
+ {
229
+ contractAddr,
230
+ voteOptionMap,
231
+ }: {
232
+ contractAddr: string;
233
+ voteOptionMap: string[];
234
+ },
235
+ fee?: number | StdFee | 'auto',
236
+ memo?: string,
237
+ _funds?: Coin[]
238
+ ) => Promise<ExecuteResult>;
239
+ }
240
+ export class ApiSaasClient
241
+ extends ApiSaasQueryClient
242
+ implements ApiSaasInterface
243
+ {
244
+ client: SigningCosmWasmClient;
245
+ sender: string;
246
+ contractAddress: string;
247
+ constructor(
248
+ client: SigningCosmWasmClient,
249
+ sender: string,
250
+ contractAddress: string
251
+ ) {
252
+ super(client, contractAddress);
253
+ this.client = client;
254
+ this.sender = sender;
255
+ this.contractAddress = contractAddress;
256
+ this.updateConfig = this.updateConfig.bind(this);
257
+ this.updateMaciCodeId = this.updateMaciCodeId.bind(this);
258
+ this.updateAmaciRegistryContract =
259
+ this.updateAmaciRegistryContract.bind(this);
260
+ this.addOperator = this.addOperator.bind(this);
261
+ this.removeOperator = this.removeOperator.bind(this);
262
+ this.deposit = this.deposit.bind(this);
263
+ this.withdraw = this.withdraw.bind(this);
264
+ this.createMaciRound = this.createMaciRound.bind(this);
265
+ this.createAmaciRound = this.createAmaciRound.bind(this);
266
+ this.setRoundInfo = this.setRoundInfo.bind(this);
267
+ this.setVoteOptionsMap = this.setVoteOptionsMap.bind(this);
268
+ }
269
+ updateConfig = async (
270
+ {
271
+ admin,
272
+ denom,
273
+ }: {
274
+ admin?: Addr;
275
+ denom?: string;
276
+ },
277
+ fee: number | StdFee | 'auto' = 'auto',
278
+ memo?: string,
279
+ _funds?: Coin[]
280
+ ): Promise<ExecuteResult> => {
281
+ return await this.client.execute(
282
+ this.sender,
283
+ this.contractAddress,
284
+ {
285
+ update_config: {
286
+ admin,
287
+ denom,
288
+ },
289
+ },
290
+ fee,
291
+ memo,
292
+ _funds
293
+ );
294
+ };
295
+ updateMaciCodeId = async (
296
+ {
297
+ codeId,
298
+ }: {
299
+ codeId: number;
300
+ },
301
+ fee: number | StdFee | 'auto' = 'auto',
302
+ memo?: string,
303
+ _funds?: Coin[]
304
+ ): Promise<ExecuteResult> => {
305
+ return await this.client.execute(
306
+ this.sender,
307
+ this.contractAddress,
308
+ {
309
+ update_maci_code_id: {
310
+ code_id: codeId,
311
+ },
312
+ },
313
+ fee,
314
+ memo,
315
+ _funds
316
+ );
317
+ };
318
+ updateAmaciRegistryContract = async (
319
+ {
320
+ registryContract,
321
+ }: {
322
+ registryContract: Addr;
323
+ },
324
+ fee: number | StdFee | 'auto' = 'auto',
325
+ memo?: string,
326
+ _funds?: Coin[]
327
+ ): Promise<ExecuteResult> => {
328
+ return await this.client.execute(
329
+ this.sender,
330
+ this.contractAddress,
331
+ {
332
+ update_amaci_registry_contract: {
333
+ registry_contract: registryContract,
334
+ },
335
+ },
336
+ fee,
337
+ memo,
338
+ _funds
339
+ );
340
+ };
341
+ addOperator = async (
342
+ {
343
+ operator,
344
+ }: {
345
+ operator: Addr;
346
+ },
347
+ fee: number | StdFee | 'auto' = 'auto',
348
+ memo?: string,
349
+ _funds?: Coin[]
350
+ ): Promise<ExecuteResult> => {
351
+ return await this.client.execute(
352
+ this.sender,
353
+ this.contractAddress,
354
+ {
355
+ add_operator: {
356
+ operator,
357
+ },
358
+ },
359
+ fee,
360
+ memo,
361
+ _funds
362
+ );
363
+ };
364
+ removeOperator = async (
365
+ {
366
+ operator,
367
+ }: {
368
+ operator: Addr;
369
+ },
370
+ fee: number | StdFee | 'auto' = 'auto',
371
+ memo?: string,
372
+ _funds?: Coin[]
373
+ ): Promise<ExecuteResult> => {
374
+ return await this.client.execute(
375
+ this.sender,
376
+ this.contractAddress,
377
+ {
378
+ remove_operator: {
379
+ operator,
380
+ },
381
+ },
382
+ fee,
383
+ memo,
384
+ _funds
385
+ );
386
+ };
387
+ deposit = async (
388
+ fee: number | StdFee | 'auto' = 'auto',
389
+ memo?: string,
390
+ _funds?: Coin[]
391
+ ): Promise<ExecuteResult> => {
392
+ return await this.client.execute(
393
+ this.sender,
394
+ this.contractAddress,
395
+ {
396
+ deposit: {},
397
+ },
398
+ fee,
399
+ memo,
400
+ _funds
401
+ );
402
+ };
403
+ withdraw = async (
404
+ {
405
+ amount,
406
+ recipient,
407
+ }: {
408
+ amount: Uint128;
409
+ recipient?: Addr;
410
+ },
411
+ fee: number | StdFee | 'auto' = 'auto',
412
+ memo?: string,
413
+ _funds?: Coin[]
414
+ ): Promise<ExecuteResult> => {
415
+ return await this.client.execute(
416
+ this.sender,
417
+ this.contractAddress,
418
+ {
419
+ withdraw: {
420
+ amount,
421
+ recipient,
422
+ },
423
+ },
424
+ fee,
425
+ memo,
426
+ _funds
427
+ );
428
+ };
429
+ createMaciRound = async (
430
+ {
431
+ certificationSystem,
432
+ circuitType,
433
+ coordinator,
434
+ endTime,
435
+ maxVoters,
436
+ roundInfo,
437
+ startTime,
438
+ voteOptionMap,
439
+ whitelistBackendPubkey,
440
+ }: {
441
+ certificationSystem: Uint256;
442
+ circuitType: Uint256;
443
+ coordinator: PubKey;
444
+ endTime: Timestamp;
445
+ maxVoters: number;
446
+ roundInfo: RoundInfo;
447
+ startTime: Timestamp;
448
+ voteOptionMap: string[];
449
+ whitelistBackendPubkey: string;
450
+ },
451
+ fee: number | StdFee | 'auto' = 'auto',
452
+ memo?: string,
453
+ _funds?: Coin[]
454
+ ): Promise<ExecuteResult> => {
455
+ return await this.client.execute(
456
+ this.sender,
457
+ this.contractAddress,
458
+ {
459
+ create_maci_round: {
460
+ certification_system: certificationSystem,
461
+ circuit_type: circuitType,
462
+ coordinator,
463
+ end_time: endTime,
464
+ max_voters: maxVoters.toString(),
465
+ round_info: roundInfo,
466
+ start_time: startTime,
467
+ vote_option_map: voteOptionMap,
468
+ whitelist_backend_pubkey: whitelistBackendPubkey,
469
+ },
470
+ },
471
+ fee,
472
+ memo,
473
+ _funds
474
+ );
475
+ };
476
+ createAmaciRound = async (
477
+ {
478
+ certificationSystem,
479
+ circuitType,
480
+ maxVoter,
481
+ operator,
482
+ oracleWhitelistPubkey,
483
+ preDeactivateRoot,
484
+ roundInfo,
485
+ voiceCreditAmount,
486
+ voteOptionMap,
487
+ votingTime,
488
+ whitelist,
489
+ }: {
490
+ certificationSystem: Uint256;
491
+ circuitType: Uint256;
492
+ maxVoter: Uint256;
493
+ operator: Addr;
494
+ oracleWhitelistPubkey?: string;
495
+ preDeactivateRoot: Uint256;
496
+ roundInfo: RoundInfo;
497
+ voiceCreditAmount: Uint256;
498
+ voteOptionMap: string[];
499
+ votingTime: VotingTime;
500
+ whitelist?: WhitelistBase;
501
+ },
502
+ fee: number | StdFee | 'auto' = 'auto',
503
+ memo?: string,
504
+ _funds?: Coin[]
505
+ ): Promise<ExecuteResult> => {
506
+ return await this.client.execute(
507
+ this.sender,
508
+ this.contractAddress,
509
+ {
510
+ create_amaci_round: {
511
+ certification_system: certificationSystem,
512
+ circuit_type: circuitType,
513
+ max_voter: maxVoter,
514
+ operator,
515
+ oracle_whitelist_pubkey: oracleWhitelistPubkey,
516
+ pre_deactivate_root: preDeactivateRoot,
517
+ round_info: roundInfo,
518
+ voice_credit_amount: voiceCreditAmount,
519
+ vote_option_map: voteOptionMap,
520
+ voting_time: votingTime,
521
+ whitelist,
522
+ },
523
+ },
524
+ fee,
525
+ memo,
526
+ _funds
527
+ );
528
+ };
529
+ setRoundInfo = async (
530
+ {
531
+ contractAddr,
532
+ roundInfo,
533
+ }: {
534
+ contractAddr: string;
535
+ roundInfo: RoundInfo;
536
+ },
537
+ fee: number | StdFee | 'auto' = 'auto',
538
+ memo?: string,
539
+ _funds?: Coin[]
540
+ ): Promise<ExecuteResult> => {
541
+ return await this.client.execute(
542
+ this.sender,
543
+ this.contractAddress,
544
+ {
545
+ set_round_info: {
546
+ contract_addr: contractAddr,
547
+ round_info: roundInfo,
548
+ },
549
+ },
550
+ fee,
551
+ memo,
552
+ _funds
553
+ );
554
+ };
555
+ setVoteOptionsMap = async (
556
+ {
557
+ contractAddr,
558
+ voteOptionMap,
559
+ }: {
560
+ contractAddr: string;
561
+ voteOptionMap: string[];
562
+ },
563
+ fee: number | StdFee | 'auto' = 'auto',
564
+ memo?: string,
565
+ _funds?: Coin[]
566
+ ): Promise<ExecuteResult> => {
567
+ return await this.client.execute(
568
+ this.sender,
569
+ this.contractAddress,
570
+ {
571
+ set_vote_options_map: {
572
+ contract_addr: contractAddr,
573
+ vote_option_map: voteOptionMap,
574
+ },
575
+ },
576
+ fee,
577
+ memo,
578
+ _funds
579
+ );
580
+ };
581
+ }
@@ -0,0 +1,144 @@
1
+ /**
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@1.11.1.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
+ */
6
+
7
+ export type Addr = string;
8
+ export interface InstantiateMsg {
9
+ admin: Addr;
10
+ denom: string;
11
+ maci_code_id: number;
12
+ registry_contract: Addr;
13
+ treasury_manager: Addr;
14
+ }
15
+ export type ExecuteMsg =
16
+ | {
17
+ update_config: {
18
+ admin?: Addr | null;
19
+ denom?: string | null;
20
+ };
21
+ }
22
+ | {
23
+ update_maci_code_id: {
24
+ code_id: number;
25
+ };
26
+ }
27
+ | {
28
+ update_amaci_registry_contract: {
29
+ registry_contract: Addr;
30
+ };
31
+ }
32
+ | {
33
+ add_operator: {
34
+ operator: Addr;
35
+ };
36
+ }
37
+ | {
38
+ remove_operator: {
39
+ operator: Addr;
40
+ };
41
+ }
42
+ | {
43
+ deposit: {};
44
+ }
45
+ | {
46
+ withdraw: {
47
+ amount: Uint128;
48
+ recipient?: Addr | null;
49
+ };
50
+ }
51
+ | {
52
+ create_maci_round: {
53
+ certification_system: Uint256;
54
+ circuit_type: Uint256;
55
+ coordinator: PubKey;
56
+ end_time: Timestamp;
57
+ max_voters: number;
58
+ round_info: RoundInfo;
59
+ start_time: Timestamp;
60
+ vote_option_map: string[];
61
+ whitelist_backend_pubkey: string;
62
+ };
63
+ }
64
+ | {
65
+ create_amaci_round: {
66
+ certification_system: Uint256;
67
+ circuit_type: Uint256;
68
+ max_voter: Uint256;
69
+ operator: Addr;
70
+ oracle_whitelist_pubkey?: string | null;
71
+ pre_deactivate_root: Uint256;
72
+ round_info: RoundInfo;
73
+ voice_credit_amount: Uint256;
74
+ vote_option_map: string[];
75
+ voting_time: VotingTime;
76
+ whitelist?: WhitelistBase | null;
77
+ };
78
+ }
79
+ | {
80
+ set_round_info: {
81
+ contract_addr: string;
82
+ round_info: RoundInfo;
83
+ };
84
+ }
85
+ | {
86
+ set_vote_options_map: {
87
+ contract_addr: string;
88
+ vote_option_map: string[];
89
+ };
90
+ };
91
+ export type Uint128 = string;
92
+ export type Uint256 = string;
93
+ export type Timestamp = Uint64;
94
+ export type Uint64 = string;
95
+ export interface PubKey {
96
+ x: Uint256;
97
+ y: Uint256;
98
+ }
99
+ export interface RoundInfo {
100
+ description: string;
101
+ link: string;
102
+ title: string;
103
+ }
104
+ export interface VotingTime {
105
+ end_time: Timestamp;
106
+ start_time: Timestamp;
107
+ }
108
+ export interface WhitelistBase {
109
+ users: WhitelistBaseConfig[];
110
+ }
111
+ export interface WhitelistBaseConfig {
112
+ addr: Addr;
113
+ }
114
+ export type QueryMsg =
115
+ | {
116
+ config: {};
117
+ }
118
+ | {
119
+ operators: {};
120
+ }
121
+ | {
122
+ is_operator: {
123
+ address: Addr;
124
+ };
125
+ }
126
+ | {
127
+ balance: {};
128
+ }
129
+ | {
130
+ maci_code_id: {};
131
+ }
132
+ | {
133
+ treasury_manager: {};
134
+ };
135
+ export interface Config {
136
+ admin: Addr;
137
+ denom: string;
138
+ }
139
+ export type Boolean = boolean;
140
+ export type ArrayOfOperatorInfo = OperatorInfo[];
141
+ export interface OperatorInfo {
142
+ added_at: Timestamp;
143
+ address: Addr;
144
+ }