@argent/x-shared 1.27.0 → 1.29.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.
Files changed (29) hide show
  1. package/dist/features/simulation/activity/schema.d.ts +338 -338
  2. package/dist/features/simulation/activity/utils/createNativeActivity.d.ts +10 -10
  3. package/dist/features/simulation/activity/utils/index.d.ts +1 -0
  4. package/dist/features/simulation/activity/utils/isUpgradeActivity.d.ts +3 -0
  5. package/dist/features/simulation/transactionReview/schema.d.ts +1562 -1562
  6. package/dist/index.d.ts +10 -9
  7. package/dist/index.js +3 -3
  8. package/dist/index.mjs +3937 -2230
  9. package/dist/knownDapps/schema.d.ts +22 -22
  10. package/dist/knownDapps/utils/getDapplandUrl.d.ts +1 -1
  11. package/dist/nameResolution/ResolveNameService.d.ts +1 -1
  12. package/dist/nameResolution/schema.d.ts +4 -4
  13. package/dist/onchainRecovery/IOnchainRecoveryService.d.ts +13 -0
  14. package/dist/onchainRecovery/OnchainRecoveryService.d.ts +18 -0
  15. package/dist/onchainRecovery/index.d.ts +3 -0
  16. package/dist/onchainRecovery/schema.d.ts +73 -0
  17. package/dist/{schema-THcYC9Pj.mjs → schema-3qaq9ugL.mjs} +141 -141
  18. package/dist/{schema-CtZY8-Gm.js → schema-C-_pmcO7.js} +1 -1
  19. package/dist/simulation.js +1 -1
  20. package/dist/simulation.mjs +113 -93
  21. package/dist/tokens/service/implementation.d.ts +1 -1
  22. package/dist/tokens/service/types/backend.model.d.ts +20 -20
  23. package/dist/tokens/service/types/defiPosition.model.d.ts +236 -236
  24. package/dist/tokens/service/types/token.model.d.ts +24 -24
  25. package/dist/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
  26. package/dist/transactions/errors.d.ts +4 -4
  27. package/dist/transactions/useTransactionReviewV2web.d.ts +56 -56
  28. package/dist/utils/starknet/starknetSchemas.d.ts +212 -212
  29. package/package.json +2 -1
@@ -37,12 +37,12 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
37
37
  unknown?: boolean | undefined;
38
38
  decimals?: number | undefined;
39
39
  description?: string | undefined;
40
- iconUrl?: string | undefined;
41
40
  links?: {
41
+ discord?: string | undefined;
42
42
  twitter?: string | undefined;
43
43
  external?: string | undefined;
44
- discord?: string | undefined;
45
44
  } | undefined;
45
+ iconUrl?: string | undefined;
46
46
  usdValue?: string | undefined;
47
47
  imageUrls?: {
48
48
  banner?: string | null | undefined;
@@ -80,12 +80,12 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
80
80
  unknown?: boolean | undefined;
81
81
  decimals?: number | undefined;
82
82
  description?: string | undefined;
83
- iconUrl?: string | undefined;
84
83
  links?: {
84
+ discord?: string | undefined;
85
85
  twitter?: string | undefined;
86
86
  external?: string | undefined;
87
- discord?: string | undefined;
88
87
  } | undefined;
88
+ iconUrl?: string | undefined;
89
89
  usdValue?: string | undefined;
90
90
  imageUrls?: {
91
91
  banner?: string | null | undefined;
@@ -108,12 +108,12 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
108
108
  unknown?: boolean | undefined;
109
109
  decimals?: number | undefined;
110
110
  description?: string | undefined;
111
- iconUrl?: string | undefined;
112
111
  links?: {
112
+ discord?: string | undefined;
113
113
  twitter?: string | undefined;
114
114
  external?: string | undefined;
115
- discord?: string | undefined;
116
115
  } | undefined;
116
+ iconUrl?: string | undefined;
117
117
  usdValue?: string | undefined;
118
118
  imageUrls?: {
119
119
  banner?: string | null | undefined;
@@ -137,9 +137,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
137
137
  amount: string;
138
138
  label: string;
139
139
  token: {
140
- type: string;
141
140
  name: string;
142
141
  address: string;
142
+ type: string;
143
143
  unknown: boolean;
144
144
  symbol?: string | undefined;
145
145
  decimals?: number | undefined;
@@ -148,22 +148,22 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
148
148
  usd: string;
149
149
  editable: boolean;
150
150
  } | {
151
- type: "address";
152
151
  address: string;
152
+ type: "address";
153
153
  label: string;
154
154
  verified?: boolean | undefined;
155
155
  addressName?: string | undefined;
156
156
  } | {
157
- type: "timestamp";
158
157
  value: string;
158
+ type: "timestamp";
159
159
  label: string;
160
160
  } | {
161
161
  type: "token_address";
162
162
  label: string;
163
163
  token: {
164
- type: string;
165
164
  name: string;
166
165
  address: string;
166
+ type: string;
167
167
  unknown: boolean;
168
168
  symbol?: string | undefined;
169
169
  decimals?: number | undefined;
@@ -182,9 +182,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
182
182
  type: "nft";
183
183
  label: string;
184
184
  token: {
185
- type: string;
186
185
  name: string;
187
186
  address: string;
187
+ type: string;
188
188
  unknown: boolean;
189
189
  symbol?: string | undefined;
190
190
  decimals?: number | undefined;
@@ -196,9 +196,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
196
196
  amount: string;
197
197
  label: string;
198
198
  token: {
199
- type: string;
200
199
  name: string;
201
200
  address: string;
201
+ type: string;
202
202
  unknown: boolean;
203
203
  symbol?: string | undefined;
204
204
  decimals?: number | undefined;
@@ -207,22 +207,22 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
207
207
  usd: string;
208
208
  editable: boolean;
209
209
  } | {
210
- type: "address";
211
210
  address: string;
211
+ type: "address";
212
212
  label: string;
213
213
  verified?: boolean | undefined;
214
214
  addressName?: string | undefined;
215
215
  } | {
216
- type: "timestamp";
217
216
  value: string;
217
+ type: "timestamp";
218
218
  label: string;
219
219
  } | {
220
220
  type: "token_address";
221
221
  label: string;
222
222
  token: {
223
- type: string;
224
223
  name: string;
225
224
  address: string;
225
+ type: string;
226
226
  unknown: boolean;
227
227
  symbol?: string | undefined;
228
228
  decimals?: number | undefined;
@@ -241,9 +241,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
241
241
  type: "nft";
242
242
  label: string;
243
243
  token: {
244
- type: string;
245
244
  name: string;
246
245
  address: string;
246
+ type: string;
247
247
  unknown: boolean;
248
248
  symbol?: string | undefined;
249
249
  decimals?: number | undefined;
@@ -284,7 +284,6 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
284
284
  targetedDapp?: {
285
285
  name: string;
286
286
  description: string;
287
- iconUrl: string;
288
287
  logoUrl: string;
289
288
  argentVerified: boolean;
290
289
  links: {
@@ -292,6 +291,7 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
292
291
  url: string;
293
292
  position: number;
294
293
  }[];
294
+ iconUrl: string;
295
295
  } | undefined;
296
296
  } | undefined;
297
297
  simulationError?: undefined;
@@ -313,9 +313,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
313
313
  amount: string;
314
314
  label: string;
315
315
  token: {
316
- type: string;
317
316
  name: string;
318
317
  address: string;
318
+ type: string;
319
319
  unknown: boolean;
320
320
  symbol?: string | undefined;
321
321
  decimals?: number | undefined;
@@ -324,22 +324,22 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
324
324
  usd: string;
325
325
  editable: boolean;
326
326
  } | {
327
- type: "address";
328
327
  address: string;
328
+ type: "address";
329
329
  label: string;
330
330
  verified?: boolean | undefined;
331
331
  addressName?: string | undefined;
332
332
  } | {
333
- type: "timestamp";
334
333
  value: string;
334
+ type: "timestamp";
335
335
  label: string;
336
336
  } | {
337
337
  type: "token_address";
338
338
  label: string;
339
339
  token: {
340
- type: string;
341
340
  name: string;
342
341
  address: string;
342
+ type: string;
343
343
  unknown: boolean;
344
344
  symbol?: string | undefined;
345
345
  decimals?: number | undefined;
@@ -358,9 +358,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
358
358
  type: "nft";
359
359
  label: string;
360
360
  token: {
361
- type: string;
362
361
  name: string;
363
362
  address: string;
363
+ type: string;
364
364
  unknown: boolean;
365
365
  symbol?: string | undefined;
366
366
  decimals?: number | undefined;
@@ -372,9 +372,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
372
372
  amount: string;
373
373
  label: string;
374
374
  token: {
375
- type: string;
376
375
  name: string;
377
376
  address: string;
377
+ type: string;
378
378
  unknown: boolean;
379
379
  symbol?: string | undefined;
380
380
  decimals?: number | undefined;
@@ -383,22 +383,22 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
383
383
  usd: string;
384
384
  editable: boolean;
385
385
  } | {
386
- type: "address";
387
386
  address: string;
387
+ type: "address";
388
388
  label: string;
389
389
  verified?: boolean | undefined;
390
390
  addressName?: string | undefined;
391
391
  } | {
392
- type: "timestamp";
393
392
  value: string;
393
+ type: "timestamp";
394
394
  label: string;
395
395
  } | {
396
396
  type: "token_address";
397
397
  label: string;
398
398
  token: {
399
- type: string;
400
399
  name: string;
401
400
  address: string;
401
+ type: string;
402
402
  unknown: boolean;
403
403
  symbol?: string | undefined;
404
404
  decimals?: number | undefined;
@@ -417,9 +417,9 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
417
417
  type: "nft";
418
418
  label: string;
419
419
  token: {
420
- type: string;
421
420
  name: string;
422
421
  address: string;
422
+ type: string;
423
423
  unknown: boolean;
424
424
  symbol?: string | undefined;
425
425
  decimals?: number | undefined;
@@ -460,7 +460,6 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
460
460
  targetedDapp?: {
461
461
  name: string;
462
462
  description: string;
463
- iconUrl: string;
464
463
  logoUrl: string;
465
464
  argentVerified: boolean;
466
465
  links: {
@@ -468,6 +467,7 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
468
467
  url: string;
469
468
  position: number;
470
469
  }[];
470
+ iconUrl: string;
471
471
  } | undefined;
472
472
  } | undefined;
473
473
  simulation?: undefined;
@@ -537,12 +537,12 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
537
537
  unknown?: boolean | undefined;
538
538
  decimals?: number | undefined;
539
539
  description?: string | undefined;
540
- iconUrl?: string | undefined;
541
540
  links?: {
541
+ discord?: string | undefined;
542
542
  twitter?: string | undefined;
543
543
  external?: string | undefined;
544
- discord?: string | undefined;
545
544
  } | undefined;
545
+ iconUrl?: string | undefined;
546
546
  usdValue?: string | undefined;
547
547
  imageUrls?: {
548
548
  banner?: string | null | undefined;
@@ -580,12 +580,12 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
580
580
  unknown?: boolean | undefined;
581
581
  decimals?: number | undefined;
582
582
  description?: string | undefined;
583
- iconUrl?: string | undefined;
584
583
  links?: {
584
+ discord?: string | undefined;
585
585
  twitter?: string | undefined;
586
586
  external?: string | undefined;
587
- discord?: string | undefined;
588
587
  } | undefined;
588
+ iconUrl?: string | undefined;
589
589
  usdValue?: string | undefined;
590
590
  imageUrls?: {
591
591
  banner?: string | null | undefined;
@@ -608,12 +608,12 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
608
608
  unknown?: boolean | undefined;
609
609
  decimals?: number | undefined;
610
610
  description?: string | undefined;
611
- iconUrl?: string | undefined;
612
611
  links?: {
612
+ discord?: string | undefined;
613
613
  twitter?: string | undefined;
614
614
  external?: string | undefined;
615
- discord?: string | undefined;
616
615
  } | undefined;
616
+ iconUrl?: string | undefined;
617
617
  usdValue?: string | undefined;
618
618
  imageUrls?: {
619
619
  banner?: string | null | undefined;
@@ -637,9 +637,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
637
637
  amount: string;
638
638
  label: string;
639
639
  token: {
640
- type: string;
641
640
  name: string;
642
641
  address: string;
642
+ type: string;
643
643
  unknown: boolean;
644
644
  symbol?: string | undefined;
645
645
  decimals?: number | undefined;
@@ -648,22 +648,22 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
648
648
  usd: string;
649
649
  editable: boolean;
650
650
  } | {
651
- type: "address";
652
651
  address: string;
652
+ type: "address";
653
653
  label: string;
654
654
  verified?: boolean | undefined;
655
655
  addressName?: string | undefined;
656
656
  } | {
657
- type: "timestamp";
658
657
  value: string;
658
+ type: "timestamp";
659
659
  label: string;
660
660
  } | {
661
661
  type: "token_address";
662
662
  label: string;
663
663
  token: {
664
- type: string;
665
664
  name: string;
666
665
  address: string;
666
+ type: string;
667
667
  unknown: boolean;
668
668
  symbol?: string | undefined;
669
669
  decimals?: number | undefined;
@@ -682,9 +682,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
682
682
  type: "nft";
683
683
  label: string;
684
684
  token: {
685
- type: string;
686
685
  name: string;
687
686
  address: string;
687
+ type: string;
688
688
  unknown: boolean;
689
689
  symbol?: string | undefined;
690
690
  decimals?: number | undefined;
@@ -696,9 +696,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
696
696
  amount: string;
697
697
  label: string;
698
698
  token: {
699
- type: string;
700
699
  name: string;
701
700
  address: string;
701
+ type: string;
702
702
  unknown: boolean;
703
703
  symbol?: string | undefined;
704
704
  decimals?: number | undefined;
@@ -707,22 +707,22 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
707
707
  usd: string;
708
708
  editable: boolean;
709
709
  } | {
710
- type: "address";
711
710
  address: string;
711
+ type: "address";
712
712
  label: string;
713
713
  verified?: boolean | undefined;
714
714
  addressName?: string | undefined;
715
715
  } | {
716
- type: "timestamp";
717
716
  value: string;
717
+ type: "timestamp";
718
718
  label: string;
719
719
  } | {
720
720
  type: "token_address";
721
721
  label: string;
722
722
  token: {
723
- type: string;
724
723
  name: string;
725
724
  address: string;
725
+ type: string;
726
726
  unknown: boolean;
727
727
  symbol?: string | undefined;
728
728
  decimals?: number | undefined;
@@ -741,9 +741,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
741
741
  type: "nft";
742
742
  label: string;
743
743
  token: {
744
- type: string;
745
744
  name: string;
746
745
  address: string;
746
+ type: string;
747
747
  unknown: boolean;
748
748
  symbol?: string | undefined;
749
749
  decimals?: number | undefined;
@@ -784,7 +784,6 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
784
784
  targetedDapp?: {
785
785
  name: string;
786
786
  description: string;
787
- iconUrl: string;
788
787
  logoUrl: string;
789
788
  argentVerified: boolean;
790
789
  links: {
@@ -792,6 +791,7 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
792
791
  url: string;
793
792
  position: number;
794
793
  }[];
794
+ iconUrl: string;
795
795
  } | undefined;
796
796
  } | undefined;
797
797
  simulationError?: undefined;
@@ -813,9 +813,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
813
813
  amount: string;
814
814
  label: string;
815
815
  token: {
816
- type: string;
817
816
  name: string;
818
817
  address: string;
818
+ type: string;
819
819
  unknown: boolean;
820
820
  symbol?: string | undefined;
821
821
  decimals?: number | undefined;
@@ -824,22 +824,22 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
824
824
  usd: string;
825
825
  editable: boolean;
826
826
  } | {
827
- type: "address";
828
827
  address: string;
828
+ type: "address";
829
829
  label: string;
830
830
  verified?: boolean | undefined;
831
831
  addressName?: string | undefined;
832
832
  } | {
833
- type: "timestamp";
834
833
  value: string;
834
+ type: "timestamp";
835
835
  label: string;
836
836
  } | {
837
837
  type: "token_address";
838
838
  label: string;
839
839
  token: {
840
- type: string;
841
840
  name: string;
842
841
  address: string;
842
+ type: string;
843
843
  unknown: boolean;
844
844
  symbol?: string | undefined;
845
845
  decimals?: number | undefined;
@@ -858,9 +858,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
858
858
  type: "nft";
859
859
  label: string;
860
860
  token: {
861
- type: string;
862
861
  name: string;
863
862
  address: string;
863
+ type: string;
864
864
  unknown: boolean;
865
865
  symbol?: string | undefined;
866
866
  decimals?: number | undefined;
@@ -872,9 +872,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
872
872
  amount: string;
873
873
  label: string;
874
874
  token: {
875
- type: string;
876
875
  name: string;
877
876
  address: string;
877
+ type: string;
878
878
  unknown: boolean;
879
879
  symbol?: string | undefined;
880
880
  decimals?: number | undefined;
@@ -883,22 +883,22 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
883
883
  usd: string;
884
884
  editable: boolean;
885
885
  } | {
886
- type: "address";
887
886
  address: string;
887
+ type: "address";
888
888
  label: string;
889
889
  verified?: boolean | undefined;
890
890
  addressName?: string | undefined;
891
891
  } | {
892
- type: "timestamp";
893
892
  value: string;
893
+ type: "timestamp";
894
894
  label: string;
895
895
  } | {
896
896
  type: "token_address";
897
897
  label: string;
898
898
  token: {
899
- type: string;
900
899
  name: string;
901
900
  address: string;
901
+ type: string;
902
902
  unknown: boolean;
903
903
  symbol?: string | undefined;
904
904
  decimals?: number | undefined;
@@ -917,9 +917,9 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
917
917
  type: "nft";
918
918
  label: string;
919
919
  token: {
920
- type: string;
921
920
  name: string;
922
921
  address: string;
922
+ type: string;
923
923
  unknown: boolean;
924
924
  symbol?: string | undefined;
925
925
  decimals?: number | undefined;
@@ -960,7 +960,6 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
960
960
  targetedDapp?: {
961
961
  name: string;
962
962
  description: string;
963
- iconUrl: string;
964
963
  logoUrl: string;
965
964
  argentVerified: boolean;
966
965
  links: {
@@ -968,6 +967,7 @@ export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress,
968
967
  url: string;
969
968
  position: number;
970
969
  }[];
970
+ iconUrl: string;
971
971
  } | undefined;
972
972
  } | undefined;
973
973
  simulation?: undefined;