@mistcash/config 0.2.2 → 0.5.0

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
@@ -21,7 +21,7 @@ declare const CHAMBER_ABI: readonly [{
21
21
  }, {
22
22
  readonly type: "impl";
23
23
  readonly name: "IChamberImpl";
24
- readonly interface_name: "contracts::multi_asset::IChamber";
24
+ readonly interface_name: "contracts::chamber::IChamber";
25
25
  }, {
26
26
  readonly type: "struct";
27
27
  readonly name: "core::integer::u256";
@@ -34,7 +34,7 @@ declare const CHAMBER_ABI: readonly [{
34
34
  }];
35
35
  }, {
36
36
  readonly type: "struct";
37
- readonly name: "contracts::multi_asset::Asset";
37
+ readonly name: "contracts::chamber::Asset";
38
38
  readonly members: readonly [{
39
39
  readonly name: "amount";
40
40
  readonly type: "core::integer::u256";
@@ -56,9 +56,26 @@ declare const CHAMBER_ABI: readonly [{
56
56
  readonly name: "snapshot";
57
57
  readonly type: "@core::array::Array::<core::felt252>";
58
58
  }];
59
+ }, {
60
+ readonly type: "enum";
61
+ readonly name: "core::bool";
62
+ readonly variants: readonly [{
63
+ readonly name: "False";
64
+ readonly type: "()";
65
+ }, {
66
+ readonly name: "True";
67
+ readonly type: "()";
68
+ }];
69
+ }, {
70
+ readonly type: "struct";
71
+ readonly name: "verifier_contracts::groth16_verifier::IGroth16VerifierBN254Dispatcher";
72
+ readonly members: readonly [{
73
+ readonly name: "contract_address";
74
+ readonly type: "core::starknet::contract_address::ContractAddress";
75
+ }];
59
76
  }, {
60
77
  readonly type: "interface";
61
- readonly name: "contracts::multi_asset::IChamber";
78
+ readonly name: "contracts::chamber::IChamber";
62
79
  readonly items: readonly [{
63
80
  readonly type: "function";
64
81
  readonly name: "deposit";
@@ -67,7 +84,7 @@ declare const CHAMBER_ABI: readonly [{
67
84
  readonly type: "core::integer::u256";
68
85
  }, {
69
86
  readonly name: "asset";
70
- readonly type: "contracts::multi_asset::Asset";
87
+ readonly type: "contracts::chamber::Asset";
71
88
  }];
72
89
  readonly outputs: readonly [];
73
90
  readonly state_mutability: "external";
@@ -82,7 +99,7 @@ declare const CHAMBER_ABI: readonly [{
82
99
  readonly type: "core::starknet::contract_address::ContractAddress";
83
100
  }, {
84
101
  readonly name: "asset";
85
- readonly type: "contracts::multi_asset::Asset";
102
+ readonly type: "contracts::chamber::Asset";
86
103
  }, {
87
104
  readonly name: "proof";
88
105
  readonly type: "core::array::Span::<core::integer::u256>";
@@ -100,7 +117,7 @@ declare const CHAMBER_ABI: readonly [{
100
117
  readonly type: "core::starknet::contract_address::ContractAddress";
101
118
  }, {
102
119
  readonly name: "asset";
103
- readonly type: "contracts::multi_asset::Asset";
120
+ readonly type: "contracts::chamber::Asset";
104
121
  }, {
105
122
  readonly name: "proof";
106
123
  readonly type: "core::array::Span::<core::integer::u256>";
@@ -160,6 +177,54 @@ declare const CHAMBER_ABI: readonly [{
160
177
  readonly type: "core::array::Array::<core::integer::u256>";
161
178
  }];
162
179
  readonly state_mutability: "external";
180
+ }, {
181
+ readonly type: "function";
182
+ readonly name: "assets_from_secret";
183
+ readonly inputs: readonly [{
184
+ readonly name: "tx_secret";
185
+ readonly type: "core::integer::u256";
186
+ }];
187
+ readonly outputs: readonly [{
188
+ readonly type: "contracts::chamber::Asset";
189
+ }];
190
+ readonly state_mutability: "view";
191
+ }, {
192
+ readonly type: "function";
193
+ readonly name: "nullifiers_spent";
194
+ readonly inputs: readonly [{
195
+ readonly name: "nullifiers";
196
+ readonly type: "core::array::Array::<core::integer::u256>";
197
+ }];
198
+ readonly outputs: readonly [{
199
+ readonly type: "core::array::Array::<core::bool>";
200
+ }];
201
+ readonly state_mutability: "view";
202
+ }, {
203
+ readonly type: "function";
204
+ readonly name: "transactions_exist";
205
+ readonly inputs: readonly [{
206
+ readonly name: "transactions";
207
+ readonly type: "core::array::Array::<core::integer::u256>";
208
+ }];
209
+ readonly outputs: readonly [{
210
+ readonly type: "core::array::Array::<core::bool>";
211
+ }];
212
+ readonly state_mutability: "view";
213
+ }, {
214
+ readonly type: "function";
215
+ readonly name: "setVerifierAddress";
216
+ readonly inputs: readonly [{
217
+ readonly name: "verifier";
218
+ readonly type: "verifier_contracts::groth16_verifier::IGroth16VerifierBN254Dispatcher";
219
+ }];
220
+ readonly outputs: readonly [];
221
+ readonly state_mutability: "external";
222
+ }, {
223
+ readonly type: "function";
224
+ readonly name: "recalculate_merkle_root";
225
+ readonly inputs: readonly [];
226
+ readonly outputs: readonly [];
227
+ readonly state_mutability: "external";
163
228
  }];
164
229
  }, {
165
230
  readonly type: "impl";
@@ -207,13 +272,6 @@ declare const CHAMBER_ABI: readonly [{
207
272
  readonly outputs: readonly [];
208
273
  readonly state_mutability: "external";
209
274
  }];
210
- }, {
211
- readonly type: "struct";
212
- readonly name: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
213
- readonly members: readonly [{
214
- readonly name: "contract_address";
215
- readonly type: "core::starknet::contract_address::ContractAddress";
216
- }];
217
275
  }, {
218
276
  readonly type: "constructor";
219
277
  readonly name: "constructor";
@@ -222,34 +280,8 @@ declare const CHAMBER_ABI: readonly [{
222
280
  readonly type: "core::starknet::contract_address::ContractAddress";
223
281
  }, {
224
282
  readonly name: "verifier";
225
- readonly type: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
226
- }];
227
- }, {
228
- readonly type: "function";
229
- readonly name: "read_tx";
230
- readonly inputs: readonly [{
231
- readonly name: "tx_hash";
232
- readonly type: "core::integer::u256";
233
- }];
234
- readonly outputs: readonly [{
235
- readonly type: "contracts::multi_asset::Asset";
236
- }];
237
- readonly state_mutability: "view";
238
- }, {
239
- readonly type: "function";
240
- readonly name: "setVerifierAddress";
241
- readonly inputs: readonly [{
242
- readonly name: "verifier";
243
- readonly type: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
283
+ readonly type: "verifier_contracts::groth16_verifier::IGroth16VerifierBN254Dispatcher";
244
284
  }];
245
- readonly outputs: readonly [];
246
- readonly state_mutability: "external";
247
- }, {
248
- readonly type: "function";
249
- readonly name: "recalculate_merkle_root";
250
- readonly inputs: readonly [];
251
- readonly outputs: readonly [];
252
- readonly state_mutability: "external";
253
285
  }, {
254
286
  readonly type: "event";
255
287
  readonly name: "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred";
@@ -309,7 +341,7 @@ declare const CHAMBER_ABI: readonly [{
309
341
  }];
310
342
  }, {
311
343
  readonly type: "event";
312
- readonly name: "contracts::multi_asset::Chamber::Event";
344
+ readonly name: "contracts::chamber::Chamber::Event";
313
345
  readonly kind: "enum";
314
346
  readonly variants: readonly [{
315
347
  readonly name: "OwnableEvent";
@@ -563,139 +595,6 @@ declare const ERC20_ABI: readonly [{
563
595
  }];
564
596
  type ChamberTypedContract = TypedContractV2<typeof CHAMBER_ABI>;
565
597
 
566
- interface Asset {
567
- amount: string;
568
- addr: string;
569
- }
570
- interface WitnessData {
571
- claiming_key: string;
572
- recipient: string;
573
- asset: Asset;
574
- proof: string[];
575
- root: string;
576
- new_tx_secret: string;
577
- new_tx_amount: string;
578
- }
579
- declare const withdrawCircuit: {
580
- noir_version: string;
581
- hash: string;
582
- abi: {
583
- parameters: ({
584
- name: string;
585
- type: {
586
- kind: string;
587
- path?: undefined;
588
- fields?: undefined;
589
- length?: undefined;
590
- type?: undefined;
591
- };
592
- visibility: string;
593
- } | {
594
- name: string;
595
- type: {
596
- kind: string;
597
- path: string;
598
- fields: {
599
- name: string;
600
- type: {
601
- kind: string;
602
- };
603
- }[];
604
- length?: undefined;
605
- type?: undefined;
606
- };
607
- visibility: string;
608
- } | {
609
- name: string;
610
- type: {
611
- kind: string;
612
- length: number;
613
- type: {
614
- kind: string;
615
- };
616
- path?: undefined;
617
- fields?: undefined;
618
- };
619
- visibility: string;
620
- })[];
621
- return_type: {
622
- abi_type: {
623
- kind: string;
624
- path: string;
625
- fields: ({
626
- name: string;
627
- type: {
628
- kind: string;
629
- path?: undefined;
630
- fields?: undefined;
631
- };
632
- } | {
633
- name: string;
634
- type: {
635
- kind: string;
636
- path: string;
637
- fields: {
638
- name: string;
639
- type: {
640
- kind: string;
641
- };
642
- }[];
643
- };
644
- })[];
645
- };
646
- visibility: string;
647
- };
648
- error_types: {
649
- "6447708754588225487": {
650
- error_kind: string;
651
- string: string;
652
- };
653
- "6485997221020871071": {
654
- error_kind: string;
655
- string: string;
656
- };
657
- "15432385079647219375": {
658
- error_kind: string;
659
- string: string;
660
- };
661
- "17843811134343075018": {
662
- error_kind: string;
663
- string: string;
664
- };
665
- };
666
- };
667
- bytecode: string;
668
- debug_symbols: string;
669
- file_map: {
670
- "17": {
671
- source: string;
672
- path: string;
673
- };
674
- "18": {
675
- source: string;
676
- path: string;
677
- };
678
- "50": {
679
- source: string;
680
- path: string;
681
- };
682
- "54": {
683
- source: string;
684
- path: string;
685
- };
686
- "55": {
687
- source: string;
688
- path: string;
689
- };
690
- "56": {
691
- source: string;
692
- path: string;
693
- };
694
- };
695
- names: string[];
696
- brillig_names: string[];
697
- };
698
-
699
598
  interface Token {
700
599
  id: string;
701
600
  name: string;
@@ -709,4 +608,4 @@ declare const tokensMap: {
709
608
  [key: string]: Token;
710
609
  };
711
610
 
712
- export { type Asset, CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, type WitnessData, tokensData, tokensMap, withdrawCircuit };
611
+ export { CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, tokensData, tokensMap };
package/dist/index.d.ts CHANGED
@@ -21,7 +21,7 @@ declare const CHAMBER_ABI: readonly [{
21
21
  }, {
22
22
  readonly type: "impl";
23
23
  readonly name: "IChamberImpl";
24
- readonly interface_name: "contracts::multi_asset::IChamber";
24
+ readonly interface_name: "contracts::chamber::IChamber";
25
25
  }, {
26
26
  readonly type: "struct";
27
27
  readonly name: "core::integer::u256";
@@ -34,7 +34,7 @@ declare const CHAMBER_ABI: readonly [{
34
34
  }];
35
35
  }, {
36
36
  readonly type: "struct";
37
- readonly name: "contracts::multi_asset::Asset";
37
+ readonly name: "contracts::chamber::Asset";
38
38
  readonly members: readonly [{
39
39
  readonly name: "amount";
40
40
  readonly type: "core::integer::u256";
@@ -56,9 +56,26 @@ declare const CHAMBER_ABI: readonly [{
56
56
  readonly name: "snapshot";
57
57
  readonly type: "@core::array::Array::<core::felt252>";
58
58
  }];
59
+ }, {
60
+ readonly type: "enum";
61
+ readonly name: "core::bool";
62
+ readonly variants: readonly [{
63
+ readonly name: "False";
64
+ readonly type: "()";
65
+ }, {
66
+ readonly name: "True";
67
+ readonly type: "()";
68
+ }];
69
+ }, {
70
+ readonly type: "struct";
71
+ readonly name: "verifier_contracts::groth16_verifier::IGroth16VerifierBN254Dispatcher";
72
+ readonly members: readonly [{
73
+ readonly name: "contract_address";
74
+ readonly type: "core::starknet::contract_address::ContractAddress";
75
+ }];
59
76
  }, {
60
77
  readonly type: "interface";
61
- readonly name: "contracts::multi_asset::IChamber";
78
+ readonly name: "contracts::chamber::IChamber";
62
79
  readonly items: readonly [{
63
80
  readonly type: "function";
64
81
  readonly name: "deposit";
@@ -67,7 +84,7 @@ declare const CHAMBER_ABI: readonly [{
67
84
  readonly type: "core::integer::u256";
68
85
  }, {
69
86
  readonly name: "asset";
70
- readonly type: "contracts::multi_asset::Asset";
87
+ readonly type: "contracts::chamber::Asset";
71
88
  }];
72
89
  readonly outputs: readonly [];
73
90
  readonly state_mutability: "external";
@@ -82,7 +99,7 @@ declare const CHAMBER_ABI: readonly [{
82
99
  readonly type: "core::starknet::contract_address::ContractAddress";
83
100
  }, {
84
101
  readonly name: "asset";
85
- readonly type: "contracts::multi_asset::Asset";
102
+ readonly type: "contracts::chamber::Asset";
86
103
  }, {
87
104
  readonly name: "proof";
88
105
  readonly type: "core::array::Span::<core::integer::u256>";
@@ -100,7 +117,7 @@ declare const CHAMBER_ABI: readonly [{
100
117
  readonly type: "core::starknet::contract_address::ContractAddress";
101
118
  }, {
102
119
  readonly name: "asset";
103
- readonly type: "contracts::multi_asset::Asset";
120
+ readonly type: "contracts::chamber::Asset";
104
121
  }, {
105
122
  readonly name: "proof";
106
123
  readonly type: "core::array::Span::<core::integer::u256>";
@@ -160,6 +177,54 @@ declare const CHAMBER_ABI: readonly [{
160
177
  readonly type: "core::array::Array::<core::integer::u256>";
161
178
  }];
162
179
  readonly state_mutability: "external";
180
+ }, {
181
+ readonly type: "function";
182
+ readonly name: "assets_from_secret";
183
+ readonly inputs: readonly [{
184
+ readonly name: "tx_secret";
185
+ readonly type: "core::integer::u256";
186
+ }];
187
+ readonly outputs: readonly [{
188
+ readonly type: "contracts::chamber::Asset";
189
+ }];
190
+ readonly state_mutability: "view";
191
+ }, {
192
+ readonly type: "function";
193
+ readonly name: "nullifiers_spent";
194
+ readonly inputs: readonly [{
195
+ readonly name: "nullifiers";
196
+ readonly type: "core::array::Array::<core::integer::u256>";
197
+ }];
198
+ readonly outputs: readonly [{
199
+ readonly type: "core::array::Array::<core::bool>";
200
+ }];
201
+ readonly state_mutability: "view";
202
+ }, {
203
+ readonly type: "function";
204
+ readonly name: "transactions_exist";
205
+ readonly inputs: readonly [{
206
+ readonly name: "transactions";
207
+ readonly type: "core::array::Array::<core::integer::u256>";
208
+ }];
209
+ readonly outputs: readonly [{
210
+ readonly type: "core::array::Array::<core::bool>";
211
+ }];
212
+ readonly state_mutability: "view";
213
+ }, {
214
+ readonly type: "function";
215
+ readonly name: "setVerifierAddress";
216
+ readonly inputs: readonly [{
217
+ readonly name: "verifier";
218
+ readonly type: "verifier_contracts::groth16_verifier::IGroth16VerifierBN254Dispatcher";
219
+ }];
220
+ readonly outputs: readonly [];
221
+ readonly state_mutability: "external";
222
+ }, {
223
+ readonly type: "function";
224
+ readonly name: "recalculate_merkle_root";
225
+ readonly inputs: readonly [];
226
+ readonly outputs: readonly [];
227
+ readonly state_mutability: "external";
163
228
  }];
164
229
  }, {
165
230
  readonly type: "impl";
@@ -207,13 +272,6 @@ declare const CHAMBER_ABI: readonly [{
207
272
  readonly outputs: readonly [];
208
273
  readonly state_mutability: "external";
209
274
  }];
210
- }, {
211
- readonly type: "struct";
212
- readonly name: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
213
- readonly members: readonly [{
214
- readonly name: "contract_address";
215
- readonly type: "core::starknet::contract_address::ContractAddress";
216
- }];
217
275
  }, {
218
276
  readonly type: "constructor";
219
277
  readonly name: "constructor";
@@ -222,34 +280,8 @@ declare const CHAMBER_ABI: readonly [{
222
280
  readonly type: "core::starknet::contract_address::ContractAddress";
223
281
  }, {
224
282
  readonly name: "verifier";
225
- readonly type: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
226
- }];
227
- }, {
228
- readonly type: "function";
229
- readonly name: "read_tx";
230
- readonly inputs: readonly [{
231
- readonly name: "tx_hash";
232
- readonly type: "core::integer::u256";
233
- }];
234
- readonly outputs: readonly [{
235
- readonly type: "contracts::multi_asset::Asset";
236
- }];
237
- readonly state_mutability: "view";
238
- }, {
239
- readonly type: "function";
240
- readonly name: "setVerifierAddress";
241
- readonly inputs: readonly [{
242
- readonly name: "verifier";
243
- readonly type: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
283
+ readonly type: "verifier_contracts::groth16_verifier::IGroth16VerifierBN254Dispatcher";
244
284
  }];
245
- readonly outputs: readonly [];
246
- readonly state_mutability: "external";
247
- }, {
248
- readonly type: "function";
249
- readonly name: "recalculate_merkle_root";
250
- readonly inputs: readonly [];
251
- readonly outputs: readonly [];
252
- readonly state_mutability: "external";
253
285
  }, {
254
286
  readonly type: "event";
255
287
  readonly name: "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred";
@@ -309,7 +341,7 @@ declare const CHAMBER_ABI: readonly [{
309
341
  }];
310
342
  }, {
311
343
  readonly type: "event";
312
- readonly name: "contracts::multi_asset::Chamber::Event";
344
+ readonly name: "contracts::chamber::Chamber::Event";
313
345
  readonly kind: "enum";
314
346
  readonly variants: readonly [{
315
347
  readonly name: "OwnableEvent";
@@ -563,139 +595,6 @@ declare const ERC20_ABI: readonly [{
563
595
  }];
564
596
  type ChamberTypedContract = TypedContractV2<typeof CHAMBER_ABI>;
565
597
 
566
- interface Asset {
567
- amount: string;
568
- addr: string;
569
- }
570
- interface WitnessData {
571
- claiming_key: string;
572
- recipient: string;
573
- asset: Asset;
574
- proof: string[];
575
- root: string;
576
- new_tx_secret: string;
577
- new_tx_amount: string;
578
- }
579
- declare const withdrawCircuit: {
580
- noir_version: string;
581
- hash: string;
582
- abi: {
583
- parameters: ({
584
- name: string;
585
- type: {
586
- kind: string;
587
- path?: undefined;
588
- fields?: undefined;
589
- length?: undefined;
590
- type?: undefined;
591
- };
592
- visibility: string;
593
- } | {
594
- name: string;
595
- type: {
596
- kind: string;
597
- path: string;
598
- fields: {
599
- name: string;
600
- type: {
601
- kind: string;
602
- };
603
- }[];
604
- length?: undefined;
605
- type?: undefined;
606
- };
607
- visibility: string;
608
- } | {
609
- name: string;
610
- type: {
611
- kind: string;
612
- length: number;
613
- type: {
614
- kind: string;
615
- };
616
- path?: undefined;
617
- fields?: undefined;
618
- };
619
- visibility: string;
620
- })[];
621
- return_type: {
622
- abi_type: {
623
- kind: string;
624
- path: string;
625
- fields: ({
626
- name: string;
627
- type: {
628
- kind: string;
629
- path?: undefined;
630
- fields?: undefined;
631
- };
632
- } | {
633
- name: string;
634
- type: {
635
- kind: string;
636
- path: string;
637
- fields: {
638
- name: string;
639
- type: {
640
- kind: string;
641
- };
642
- }[];
643
- };
644
- })[];
645
- };
646
- visibility: string;
647
- };
648
- error_types: {
649
- "6447708754588225487": {
650
- error_kind: string;
651
- string: string;
652
- };
653
- "6485997221020871071": {
654
- error_kind: string;
655
- string: string;
656
- };
657
- "15432385079647219375": {
658
- error_kind: string;
659
- string: string;
660
- };
661
- "17843811134343075018": {
662
- error_kind: string;
663
- string: string;
664
- };
665
- };
666
- };
667
- bytecode: string;
668
- debug_symbols: string;
669
- file_map: {
670
- "17": {
671
- source: string;
672
- path: string;
673
- };
674
- "18": {
675
- source: string;
676
- path: string;
677
- };
678
- "50": {
679
- source: string;
680
- path: string;
681
- };
682
- "54": {
683
- source: string;
684
- path: string;
685
- };
686
- "55": {
687
- source: string;
688
- path: string;
689
- };
690
- "56": {
691
- source: string;
692
- path: string;
693
- };
694
- };
695
- names: string[];
696
- brillig_names: string[];
697
- };
698
-
699
598
  interface Token {
700
599
  id: string;
701
600
  name: string;
@@ -709,4 +608,4 @@ declare const tokensMap: {
709
608
  [key: string]: Token;
710
609
  };
711
610
 
712
- export { type Asset, CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, type WitnessData, tokensData, tokensMap, withdrawCircuit };
611
+ export { CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, tokensData, tokensMap };