@mistcash/config 0.1.0-beta.1 → 0.2.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
@@ -91,7 +91,31 @@ declare const CHAMBER_ABI: readonly [{
91
91
  readonly state_mutability: "external";
92
92
  }, {
93
93
  readonly type: "function";
94
- readonly name: "withdraw";
94
+ readonly name: "seek_and_hide_no_zk";
95
+ readonly inputs: readonly [{
96
+ readonly name: "claiming_key";
97
+ readonly type: "core::integer::u256";
98
+ }, {
99
+ readonly name: "recipient";
100
+ readonly type: "core::starknet::contract_address::ContractAddress";
101
+ }, {
102
+ readonly name: "asset";
103
+ readonly type: "contracts::multi_asset::Asset";
104
+ }, {
105
+ readonly name: "proof";
106
+ readonly type: "core::array::Span::<core::integer::u256>";
107
+ }, {
108
+ readonly name: "new_tx_secret";
109
+ readonly type: "core::integer::u256";
110
+ }, {
111
+ readonly name: "new_tx_amount";
112
+ readonly type: "core::integer::u256";
113
+ }];
114
+ readonly outputs: readonly [];
115
+ readonly state_mutability: "external";
116
+ }, {
117
+ readonly type: "function";
118
+ readonly name: "handle_zkp";
95
119
  readonly inputs: readonly [{
96
120
  readonly name: "proof";
97
121
  readonly type: "core::array::Span::<core::felt252>";
@@ -189,6 +213,21 @@ declare const CHAMBER_ABI: readonly [{
189
213
  readonly type: "contracts::multi_asset::Asset";
190
214
  }];
191
215
  readonly state_mutability: "view";
216
+ }, {
217
+ readonly type: "function";
218
+ readonly name: "setVerifierAddress";
219
+ readonly inputs: readonly [{
220
+ readonly name: "verifier";
221
+ readonly type: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
222
+ }];
223
+ readonly outputs: readonly [];
224
+ readonly state_mutability: "external";
225
+ }, {
226
+ readonly type: "function";
227
+ readonly name: "recalculate_merkle_root";
228
+ readonly inputs: readonly [];
229
+ readonly outputs: readonly [];
230
+ readonly state_mutability: "external";
192
231
  }, {
193
232
  readonly type: "event";
194
233
  readonly name: "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred";
@@ -502,6 +541,139 @@ declare const ERC20_ABI: readonly [{
502
541
  }];
503
542
  type ChamberTypedContract = TypedContractV2<typeof CHAMBER_ABI>;
504
543
 
544
+ interface Asset {
545
+ amount: string;
546
+ addr: string;
547
+ }
548
+ interface WitnessData {
549
+ claiming_key: string;
550
+ recipient: string;
551
+ asset: Asset;
552
+ proof: string[];
553
+ root: string;
554
+ new_tx_secret: string;
555
+ new_tx_amount: string;
556
+ }
557
+ declare const withdrawCircuit: {
558
+ noir_version: string;
559
+ hash: string;
560
+ abi: {
561
+ parameters: ({
562
+ name: string;
563
+ type: {
564
+ kind: string;
565
+ path?: undefined;
566
+ fields?: undefined;
567
+ length?: undefined;
568
+ type?: undefined;
569
+ };
570
+ visibility: string;
571
+ } | {
572
+ name: string;
573
+ type: {
574
+ kind: string;
575
+ path: string;
576
+ fields: {
577
+ name: string;
578
+ type: {
579
+ kind: string;
580
+ };
581
+ }[];
582
+ length?: undefined;
583
+ type?: undefined;
584
+ };
585
+ visibility: string;
586
+ } | {
587
+ name: string;
588
+ type: {
589
+ kind: string;
590
+ length: number;
591
+ type: {
592
+ kind: string;
593
+ };
594
+ path?: undefined;
595
+ fields?: undefined;
596
+ };
597
+ visibility: string;
598
+ })[];
599
+ return_type: {
600
+ abi_type: {
601
+ kind: string;
602
+ path: string;
603
+ fields: ({
604
+ name: string;
605
+ type: {
606
+ kind: string;
607
+ path?: undefined;
608
+ fields?: undefined;
609
+ };
610
+ } | {
611
+ name: string;
612
+ type: {
613
+ kind: string;
614
+ path: string;
615
+ fields: {
616
+ name: string;
617
+ type: {
618
+ kind: string;
619
+ };
620
+ }[];
621
+ };
622
+ })[];
623
+ };
624
+ visibility: string;
625
+ };
626
+ error_types: {
627
+ "6447708754588225487": {
628
+ error_kind: string;
629
+ string: string;
630
+ };
631
+ "6485997221020871071": {
632
+ error_kind: string;
633
+ string: string;
634
+ };
635
+ "15432385079647219375": {
636
+ error_kind: string;
637
+ string: string;
638
+ };
639
+ "17843811134343075018": {
640
+ error_kind: string;
641
+ string: string;
642
+ };
643
+ };
644
+ };
645
+ bytecode: string;
646
+ debug_symbols: string;
647
+ file_map: {
648
+ "17": {
649
+ source: string;
650
+ path: string;
651
+ };
652
+ "18": {
653
+ source: string;
654
+ path: string;
655
+ };
656
+ "50": {
657
+ source: string;
658
+ path: string;
659
+ };
660
+ "54": {
661
+ source: string;
662
+ path: string;
663
+ };
664
+ "55": {
665
+ source: string;
666
+ path: string;
667
+ };
668
+ "56": {
669
+ source: string;
670
+ path: string;
671
+ };
672
+ };
673
+ names: string[];
674
+ brillig_names: string[];
675
+ };
676
+
505
677
  interface Token {
506
678
  id: string;
507
679
  name: string;
@@ -515,4 +687,4 @@ declare const tokensMap: {
515
687
  [key: string]: Token;
516
688
  };
517
689
 
518
- export { CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, tokensData, tokensMap };
690
+ export { type Asset, CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, type WitnessData, tokensData, tokensMap, withdrawCircuit };
package/dist/index.d.ts CHANGED
@@ -91,7 +91,31 @@ declare const CHAMBER_ABI: readonly [{
91
91
  readonly state_mutability: "external";
92
92
  }, {
93
93
  readonly type: "function";
94
- readonly name: "withdraw";
94
+ readonly name: "seek_and_hide_no_zk";
95
+ readonly inputs: readonly [{
96
+ readonly name: "claiming_key";
97
+ readonly type: "core::integer::u256";
98
+ }, {
99
+ readonly name: "recipient";
100
+ readonly type: "core::starknet::contract_address::ContractAddress";
101
+ }, {
102
+ readonly name: "asset";
103
+ readonly type: "contracts::multi_asset::Asset";
104
+ }, {
105
+ readonly name: "proof";
106
+ readonly type: "core::array::Span::<core::integer::u256>";
107
+ }, {
108
+ readonly name: "new_tx_secret";
109
+ readonly type: "core::integer::u256";
110
+ }, {
111
+ readonly name: "new_tx_amount";
112
+ readonly type: "core::integer::u256";
113
+ }];
114
+ readonly outputs: readonly [];
115
+ readonly state_mutability: "external";
116
+ }, {
117
+ readonly type: "function";
118
+ readonly name: "handle_zkp";
95
119
  readonly inputs: readonly [{
96
120
  readonly name: "proof";
97
121
  readonly type: "core::array::Span::<core::felt252>";
@@ -189,6 +213,21 @@ declare const CHAMBER_ABI: readonly [{
189
213
  readonly type: "contracts::multi_asset::Asset";
190
214
  }];
191
215
  readonly state_mutability: "view";
216
+ }, {
217
+ readonly type: "function";
218
+ readonly name: "setVerifierAddress";
219
+ readonly inputs: readonly [{
220
+ readonly name: "verifier";
221
+ readonly type: "verifier_contracts::honk_verifier::IUltraStarknetZKHonkVerifierDispatcher";
222
+ }];
223
+ readonly outputs: readonly [];
224
+ readonly state_mutability: "external";
225
+ }, {
226
+ readonly type: "function";
227
+ readonly name: "recalculate_merkle_root";
228
+ readonly inputs: readonly [];
229
+ readonly outputs: readonly [];
230
+ readonly state_mutability: "external";
192
231
  }, {
193
232
  readonly type: "event";
194
233
  readonly name: "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred";
@@ -502,6 +541,139 @@ declare const ERC20_ABI: readonly [{
502
541
  }];
503
542
  type ChamberTypedContract = TypedContractV2<typeof CHAMBER_ABI>;
504
543
 
544
+ interface Asset {
545
+ amount: string;
546
+ addr: string;
547
+ }
548
+ interface WitnessData {
549
+ claiming_key: string;
550
+ recipient: string;
551
+ asset: Asset;
552
+ proof: string[];
553
+ root: string;
554
+ new_tx_secret: string;
555
+ new_tx_amount: string;
556
+ }
557
+ declare const withdrawCircuit: {
558
+ noir_version: string;
559
+ hash: string;
560
+ abi: {
561
+ parameters: ({
562
+ name: string;
563
+ type: {
564
+ kind: string;
565
+ path?: undefined;
566
+ fields?: undefined;
567
+ length?: undefined;
568
+ type?: undefined;
569
+ };
570
+ visibility: string;
571
+ } | {
572
+ name: string;
573
+ type: {
574
+ kind: string;
575
+ path: string;
576
+ fields: {
577
+ name: string;
578
+ type: {
579
+ kind: string;
580
+ };
581
+ }[];
582
+ length?: undefined;
583
+ type?: undefined;
584
+ };
585
+ visibility: string;
586
+ } | {
587
+ name: string;
588
+ type: {
589
+ kind: string;
590
+ length: number;
591
+ type: {
592
+ kind: string;
593
+ };
594
+ path?: undefined;
595
+ fields?: undefined;
596
+ };
597
+ visibility: string;
598
+ })[];
599
+ return_type: {
600
+ abi_type: {
601
+ kind: string;
602
+ path: string;
603
+ fields: ({
604
+ name: string;
605
+ type: {
606
+ kind: string;
607
+ path?: undefined;
608
+ fields?: undefined;
609
+ };
610
+ } | {
611
+ name: string;
612
+ type: {
613
+ kind: string;
614
+ path: string;
615
+ fields: {
616
+ name: string;
617
+ type: {
618
+ kind: string;
619
+ };
620
+ }[];
621
+ };
622
+ })[];
623
+ };
624
+ visibility: string;
625
+ };
626
+ error_types: {
627
+ "6447708754588225487": {
628
+ error_kind: string;
629
+ string: string;
630
+ };
631
+ "6485997221020871071": {
632
+ error_kind: string;
633
+ string: string;
634
+ };
635
+ "15432385079647219375": {
636
+ error_kind: string;
637
+ string: string;
638
+ };
639
+ "17843811134343075018": {
640
+ error_kind: string;
641
+ string: string;
642
+ };
643
+ };
644
+ };
645
+ bytecode: string;
646
+ debug_symbols: string;
647
+ file_map: {
648
+ "17": {
649
+ source: string;
650
+ path: string;
651
+ };
652
+ "18": {
653
+ source: string;
654
+ path: string;
655
+ };
656
+ "50": {
657
+ source: string;
658
+ path: string;
659
+ };
660
+ "54": {
661
+ source: string;
662
+ path: string;
663
+ };
664
+ "55": {
665
+ source: string;
666
+ path: string;
667
+ };
668
+ "56": {
669
+ source: string;
670
+ path: string;
671
+ };
672
+ };
673
+ names: string[];
674
+ brillig_names: string[];
675
+ };
676
+
505
677
  interface Token {
506
678
  id: string;
507
679
  name: string;
@@ -515,4 +687,4 @@ declare const tokensMap: {
515
687
  [key: string]: Token;
516
688
  };
517
689
 
518
- export { CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, tokensData, tokensMap };
690
+ export { type Asset, CHAMBER_ABI, CHAMBER_ADDR_MAINNET, type ChamberTypedContract, ERC20_ABI, type Token, type WitnessData, tokensData, tokensMap, withdrawCircuit };