@funkit/connect-rn 3.4.0 → 3.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/CHANGELOG.md +37 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2261 -387
- package/dist/index.js.map +4 -4
- package/dist/src/components/AmountInput.d.ts +40 -0
- package/dist/src/components/AmountInput.d.ts.map +1 -0
- package/dist/src/components/RecipientAddressInput.d.ts +28 -0
- package/dist/src/components/RecipientAddressInput.d.ts.map +1 -0
- package/dist/src/components/WithdrawFeeSummary.d.ts +17 -0
- package/dist/src/components/WithdrawFeeSummary.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +10 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +4 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/guardHostCallbacks.d.ts +11 -0
- package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts +4 -10
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +61 -9
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/logging/serializeLogBatch.d.ts +9 -0
- package/dist/src/logging/serializeLogBatch.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +9 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/screens/SelectDestinationScreen.d.ts +19 -0
- package/dist/src/screens/SelectDestinationScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCompleteScreen.d.ts +17 -0
- package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoComplete.d.ts +16 -0
- package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoCta.d.ts +20 -0
- package/dist/src/screens/WithdrawCryptoCta.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoForm.d.ts +17 -0
- package/dist/src/screens/WithdrawCryptoForm.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoScreen.d.ts +3 -1
- package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +33 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +3 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +6 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/availableChains.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts +23 -0
- package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useTransferInit.d.ts +3 -2
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/chainDisplay.d.ts +8 -0
- package/dist/src/utils/chainDisplay.d.ts.map +1 -0
- package/dist/src/utils/customers.d.ts +1 -0
- package/dist/src/utils/customers.d.ts.map +1 -1
- package/dist/src/withdrawal/sourceToken.d.ts +17 -0
- package/dist/src/withdrawal/sourceToken.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +44 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts +42 -0
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +24 -0
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -0
- package/dist/src/withdrawal/useSourceTokenDecimals.d.ts +13 -0
- package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts +32 -0
- package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalRisk.d.ts +16 -0
- package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts +31 -0
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts +48 -0
- package/dist/src/withdrawal/validation.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/src/withdrawal/publicClient.d.ts +0 -10
- package/dist/src/withdrawal/publicClient.d.ts.map +0 -1
|
@@ -25,6 +25,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
25
25
|
pressed: string;
|
|
26
26
|
disabled: string;
|
|
27
27
|
};
|
|
28
|
+
overlay: string;
|
|
28
29
|
};
|
|
29
30
|
content: {
|
|
30
31
|
elements: {
|
|
@@ -201,6 +202,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
201
202
|
pressed: string;
|
|
202
203
|
disabled: string;
|
|
203
204
|
};
|
|
205
|
+
overlay: string;
|
|
204
206
|
};
|
|
205
207
|
content: {
|
|
206
208
|
elements: {
|
|
@@ -377,6 +379,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
377
379
|
pressed: string;
|
|
378
380
|
disabled: string;
|
|
379
381
|
};
|
|
382
|
+
overlay: string;
|
|
380
383
|
};
|
|
381
384
|
content: {
|
|
382
385
|
elements: {
|
|
@@ -553,6 +556,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
553
556
|
pressed: string;
|
|
554
557
|
disabled: string;
|
|
555
558
|
};
|
|
559
|
+
overlay: string;
|
|
556
560
|
};
|
|
557
561
|
content: {
|
|
558
562
|
elements: {
|
|
@@ -729,6 +733,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
729
733
|
pressed: string;
|
|
730
734
|
disabled: string;
|
|
731
735
|
};
|
|
736
|
+
overlay: string;
|
|
732
737
|
};
|
|
733
738
|
content: {
|
|
734
739
|
elements: {
|
|
@@ -1063,6 +1068,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1063
1068
|
pressed: string;
|
|
1064
1069
|
disabled: string;
|
|
1065
1070
|
};
|
|
1071
|
+
overlay: string;
|
|
1066
1072
|
};
|
|
1067
1073
|
content: {
|
|
1068
1074
|
elements: {
|
|
@@ -1239,6 +1245,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1239
1245
|
pressed: string;
|
|
1240
1246
|
disabled: string;
|
|
1241
1247
|
};
|
|
1248
|
+
overlay: string;
|
|
1242
1249
|
};
|
|
1243
1250
|
content: {
|
|
1244
1251
|
elements: {
|
|
@@ -1418,6 +1425,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1418
1425
|
pressed: string;
|
|
1419
1426
|
disabled: string;
|
|
1420
1427
|
};
|
|
1428
|
+
overlay: string;
|
|
1421
1429
|
};
|
|
1422
1430
|
content: {
|
|
1423
1431
|
elements: {
|
|
@@ -1594,6 +1602,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1594
1602
|
pressed: string;
|
|
1595
1603
|
disabled: string;
|
|
1596
1604
|
};
|
|
1605
|
+
overlay: string;
|
|
1597
1606
|
};
|
|
1598
1607
|
content: {
|
|
1599
1608
|
elements: {
|
|
@@ -1770,6 +1779,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1770
1779
|
pressed: string;
|
|
1771
1780
|
disabled: string;
|
|
1772
1781
|
};
|
|
1782
|
+
overlay: string;
|
|
1773
1783
|
};
|
|
1774
1784
|
content: {
|
|
1775
1785
|
elements: {
|
|
@@ -1946,6 +1956,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1946
1956
|
pressed: string;
|
|
1947
1957
|
disabled: string;
|
|
1948
1958
|
};
|
|
1959
|
+
overlay: string;
|
|
1949
1960
|
};
|
|
1950
1961
|
content: {
|
|
1951
1962
|
elements: {
|
|
@@ -2122,6 +2133,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
2122
2133
|
pressed: string;
|
|
2123
2134
|
disabled: string;
|
|
2124
2135
|
};
|
|
2136
|
+
overlay: string;
|
|
2125
2137
|
};
|
|
2126
2138
|
content: {
|
|
2127
2139
|
elements: {
|
|
@@ -2456,6 +2468,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
2456
2468
|
pressed: string;
|
|
2457
2469
|
disabled: string;
|
|
2458
2470
|
};
|
|
2471
|
+
overlay: string;
|
|
2459
2472
|
};
|
|
2460
2473
|
content: {
|
|
2461
2474
|
elements: {
|
|
@@ -2632,6 +2645,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
2632
2645
|
pressed: string;
|
|
2633
2646
|
disabled: string;
|
|
2634
2647
|
};
|
|
2648
|
+
overlay: string;
|
|
2635
2649
|
};
|
|
2636
2650
|
content: {
|
|
2637
2651
|
elements: {
|
|
@@ -2812,6 +2826,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
2812
2826
|
pressed: string;
|
|
2813
2827
|
disabled: string;
|
|
2814
2828
|
};
|
|
2829
|
+
overlay: string;
|
|
2815
2830
|
};
|
|
2816
2831
|
content: {
|
|
2817
2832
|
elements: {
|
|
@@ -2988,6 +3003,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
2988
3003
|
pressed: string;
|
|
2989
3004
|
disabled: string;
|
|
2990
3005
|
};
|
|
3006
|
+
overlay: string;
|
|
2991
3007
|
};
|
|
2992
3008
|
content: {
|
|
2993
3009
|
elements: {
|
|
@@ -3164,6 +3180,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3164
3180
|
pressed: string;
|
|
3165
3181
|
disabled: string;
|
|
3166
3182
|
};
|
|
3183
|
+
overlay: string;
|
|
3167
3184
|
};
|
|
3168
3185
|
content: {
|
|
3169
3186
|
elements: {
|
|
@@ -3340,6 +3357,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3340
3357
|
pressed: string;
|
|
3341
3358
|
disabled: string;
|
|
3342
3359
|
};
|
|
3360
|
+
overlay: string;
|
|
3343
3361
|
};
|
|
3344
3362
|
content: {
|
|
3345
3363
|
elements: {
|
|
@@ -3516,6 +3534,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3516
3534
|
pressed: string;
|
|
3517
3535
|
disabled: string;
|
|
3518
3536
|
};
|
|
3537
|
+
overlay: string;
|
|
3519
3538
|
};
|
|
3520
3539
|
content: {
|
|
3521
3540
|
elements: {
|
|
@@ -3692,6 +3711,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3692
3711
|
pressed: string;
|
|
3693
3712
|
disabled: string;
|
|
3694
3713
|
};
|
|
3714
|
+
overlay: string;
|
|
3695
3715
|
};
|
|
3696
3716
|
content: {
|
|
3697
3717
|
elements: {
|
|
@@ -3885,6 +3905,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3885
3905
|
pressed: string;
|
|
3886
3906
|
disabled: string;
|
|
3887
3907
|
};
|
|
3908
|
+
overlay: string;
|
|
3888
3909
|
};
|
|
3889
3910
|
content: {
|
|
3890
3911
|
elements: {
|
|
@@ -4061,6 +4082,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4061
4082
|
pressed: string;
|
|
4062
4083
|
disabled: string;
|
|
4063
4084
|
};
|
|
4085
|
+
overlay: string;
|
|
4064
4086
|
};
|
|
4065
4087
|
content: {
|
|
4066
4088
|
elements: {
|
|
@@ -4239,6 +4261,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4239
4261
|
pressed: string;
|
|
4240
4262
|
disabled: string;
|
|
4241
4263
|
};
|
|
4264
|
+
overlay: string;
|
|
4242
4265
|
};
|
|
4243
4266
|
content: {
|
|
4244
4267
|
elements: {
|
|
@@ -4416,6 +4439,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4416
4439
|
pressed: string;
|
|
4417
4440
|
disabled: string;
|
|
4418
4441
|
};
|
|
4442
|
+
overlay: string;
|
|
4419
4443
|
};
|
|
4420
4444
|
content: {
|
|
4421
4445
|
elements: {
|
|
@@ -4592,6 +4616,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4592
4616
|
pressed: string;
|
|
4593
4617
|
disabled: string;
|
|
4594
4618
|
};
|
|
4619
|
+
overlay: string;
|
|
4595
4620
|
};
|
|
4596
4621
|
content: {
|
|
4597
4622
|
elements: {
|
|
@@ -4768,6 +4793,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4768
4793
|
pressed: string;
|
|
4769
4794
|
disabled: string;
|
|
4770
4795
|
};
|
|
4796
|
+
overlay: string;
|
|
4771
4797
|
};
|
|
4772
4798
|
content: {
|
|
4773
4799
|
elements: {
|
|
@@ -4944,6 +4970,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4944
4970
|
pressed: string;
|
|
4945
4971
|
disabled: string;
|
|
4946
4972
|
};
|
|
4973
|
+
overlay: string;
|
|
4947
4974
|
};
|
|
4948
4975
|
content: {
|
|
4949
4976
|
elements: {
|
|
@@ -5120,6 +5147,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5120
5147
|
pressed: string;
|
|
5121
5148
|
disabled: string;
|
|
5122
5149
|
};
|
|
5150
|
+
overlay: string;
|
|
5123
5151
|
};
|
|
5124
5152
|
content: {
|
|
5125
5153
|
elements: {
|
|
@@ -5296,6 +5324,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5296
5324
|
pressed: string;
|
|
5297
5325
|
disabled: string;
|
|
5298
5326
|
};
|
|
5327
|
+
overlay: string;
|
|
5299
5328
|
};
|
|
5300
5329
|
content: {
|
|
5301
5330
|
elements: {
|
|
@@ -5489,6 +5518,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5489
5518
|
pressed: string;
|
|
5490
5519
|
disabled: string;
|
|
5491
5520
|
};
|
|
5521
|
+
overlay: string;
|
|
5492
5522
|
};
|
|
5493
5523
|
content: {
|
|
5494
5524
|
elements: {
|
|
@@ -5665,6 +5695,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5665
5695
|
pressed: string;
|
|
5666
5696
|
disabled: string;
|
|
5667
5697
|
};
|
|
5698
|
+
overlay: string;
|
|
5668
5699
|
};
|
|
5669
5700
|
content: {
|
|
5670
5701
|
elements: {
|
|
@@ -5843,6 +5874,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5843
5874
|
pressed: string;
|
|
5844
5875
|
disabled: string;
|
|
5845
5876
|
};
|
|
5877
|
+
overlay: string;
|
|
5846
5878
|
};
|
|
5847
5879
|
content: {
|
|
5848
5880
|
elements: {
|
|
@@ -6038,6 +6070,7 @@ export declare const useTheme: () => {
|
|
|
6038
6070
|
pressed: string;
|
|
6039
6071
|
disabled: string;
|
|
6040
6072
|
};
|
|
6073
|
+
overlay: string;
|
|
6041
6074
|
};
|
|
6042
6075
|
content: {
|
|
6043
6076
|
elements: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restyle.d.ts","sourceRoot":"","sources":["../../../src/theme/restyle.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"restyle.d.ts","sourceRoot":"","sources":["../../../src/theme/restyle.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAA;AAE7C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,WAAW,CAAC;IACnE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,4GAsBhB,CAAA;AAED,0EAA0E;AAC1E,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA"}
|
|
@@ -24,6 +24,7 @@ export declare function toRestyleTheme(tokens: FunkitTokens): {
|
|
|
24
24
|
pressed: string;
|
|
25
25
|
disabled: string;
|
|
26
26
|
};
|
|
27
|
+
overlay: string;
|
|
27
28
|
};
|
|
28
29
|
content: {
|
|
29
30
|
elements: {
|
|
@@ -204,6 +205,7 @@ export declare const defaultLightTheme: {
|
|
|
204
205
|
pressed: string;
|
|
205
206
|
disabled: string;
|
|
206
207
|
};
|
|
208
|
+
overlay: string;
|
|
207
209
|
};
|
|
208
210
|
content: {
|
|
209
211
|
elements: {
|
|
@@ -381,6 +383,7 @@ export declare const defaultDarkTheme: {
|
|
|
381
383
|
pressed: string;
|
|
382
384
|
disabled: string;
|
|
383
385
|
};
|
|
386
|
+
overlay: string;
|
|
384
387
|
};
|
|
385
388
|
content: {
|
|
386
389
|
elements: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElD;AAED,4EAA4E;AAC5E,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,wFAAwF;AACxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8B,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA"}
|
|
@@ -65,6 +65,12 @@ export interface FunkitTokens {
|
|
|
65
65
|
pressed: string;
|
|
66
66
|
disabled: string;
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Scrim dimming the host app behind the flow sheet. NOT yet a Fun Variable
|
|
70
|
+
* — the design (13315:9391) hardcodes it — so it lives here to stay
|
|
71
|
+
* per-client overridable. Fold it in when the export gains the variable.
|
|
72
|
+
*/
|
|
73
|
+
overlay: string;
|
|
68
74
|
};
|
|
69
75
|
/** `opacity/disabled` — a percentage (0–100); divide by 100 for RN `opacity`. */
|
|
70
76
|
opacity: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEtD,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEhD,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ;;;;WAIG;QACH,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;QACrD,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;QAEtC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAC1C,CAAA;IACD,MAAM,EAAE;QACN,MAAM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AC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAC/D,CAAA;IACD,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE;QACP,OAAO,EAAE;YACP,QAAQ,EAAE;gBAAE,UAAU,EAAE,MAAM,CAAA;aAAE,CAAA;YAChC,KAAK,EAAE;gBAAE,UAAU,EAAE,MAAM,CAAA;aAAE,CAAA;SAC9B,CAAA;QACD,OAAO,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAC5C,CAAA;IACD,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,MAAM,EAAE;QAGN,IAAI,EAAE;YACJ,IAAI,EAAE;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAA;aAAE,CAAA;SACzD,CAAA;QACD,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,CAAA;KACzD,CAAA;CACF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,mBAAmB,GAC7B,MAAM,CAER;AAED,8FAA8F;AAC9F,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,mBAAmB,EACnB,SAAS,CAAC,YAAY,CAAC,CAIxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,YA2EzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,YA2ExB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"availableChains.d.ts","sourceRoot":"","sources":["../../../src/transfer/availableChains.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"availableChains.d.ts","sourceRoot":"","sources":["../../../src/transfer/availableChains.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAGvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,kEAAkE;AAClE,MAAM,WAAW,cAAc;IAC7B,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,CAAC,EACD,YAAY,EACZ,iBAAiB,EACjB,MAAM,GACP,EAAE;IACD,CAAC,EAAE,SAAS,CAAA;IACZ,gFAAgF;IAChF,YAAY,EAAE,gBAAgB,EAAE,CAAA;IAChC,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B,GAAG,cAAc,EAAE,CAsBnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface LighterDepositRecipientOverride {
|
|
2
|
+
/** True when this deposit targets Lighter — callers must not fall back to the L1 wallet address. */
|
|
3
|
+
isLighterDeposit: boolean;
|
|
4
|
+
/** The L2 main-account index. Undefined while the lookup is pending, failed, or found no main account. */
|
|
5
|
+
recipientOverride: string | undefined;
|
|
6
|
+
/** True while the account lookup is in flight — an unresolved recipient is expected then. */
|
|
7
|
+
isLookupFetching: boolean;
|
|
8
|
+
/** Lookup query status, for the unresolved-recipient WARN log. */
|
|
9
|
+
lookupStatus: 'pending' | 'error' | 'success';
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Lighter EOA generation targets the L2 main-account index, not the L1
|
|
13
|
+
* address — resolves it as a deposit recipientAddr override (mirrors web's
|
|
14
|
+
* `useLighterAccounts`). `isLighterDeposit` lets callers withhold the L1
|
|
15
|
+
* wallet fallback until `recipientOverride` resolves, since the backend
|
|
16
|
+
* rejects an L1 address for Lighter.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useLighterDepositRecipientOverride({ apiKey, targetChain, walletAddress, }: {
|
|
19
|
+
apiKey: string;
|
|
20
|
+
targetChain: string | undefined;
|
|
21
|
+
walletAddress: string | undefined;
|
|
22
|
+
}): LighterDepositRecipientOverride;
|
|
23
|
+
//# sourceMappingURL=useLighterDepositRecipientOverride.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLighterDepositRecipientOverride.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useLighterDepositRecipientOverride.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,+BAA+B;IAC9C,oGAAoG;IACpG,gBAAgB,EAAE,OAAO,CAAA;IACzB,0GAA0G;IAC1G,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,6FAA6F;IAC7F,gBAAgB,EAAE,OAAO,CAAA;IACzB,kEAAkE;IAClE,YAAY,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CAC9C;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,MAAM,EACN,WAAW,EACX,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;CAClC,GAAG,+BAA+B,CAclC"}
|
|
@@ -20,8 +20,9 @@ export interface UseTransferInitResult {
|
|
|
20
20
|
* Thin RN reimplementation of `@funkit/connect`'s `useCheckoutTransferInit`:
|
|
21
21
|
* builds the (customer-agnostic) transfer params via the core helper and
|
|
22
22
|
* creates the deposit-address EOA through `@funkit/api-base`. Identity comes
|
|
23
|
-
* from {@link useFunkitIdentity};
|
|
24
|
-
*
|
|
23
|
+
* from {@link useFunkitIdentity}; web's Polymarket target override and geo /
|
|
24
|
+
* post-action gating are dropped. Lighter's main-account override is kept —
|
|
25
|
+
* see {@link useLighterDepositRecipientOverride}.
|
|
25
26
|
*/
|
|
26
27
|
export declare function useTransferInit({ checkoutConfig, recipientAddr, dynamicRoutingId, enabled, }: UseTransferInitParams): UseTransferInitResult;
|
|
27
28
|
//# sourceMappingURL=useTransferInit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;AAe7B,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,kEAAkE;IAClE,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,aAAa,EAAE,UAAU,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,OAAc,GACf,EAAE,qBAAqB,GAAG,qBAAqB,CAuF/C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Chain logo, or the placeholder for a chain the metadata doesn't cover. */
|
|
2
|
+
export declare function chainIconUri(chainId: number): string;
|
|
3
|
+
/**
|
|
4
|
+
* The chain's name, or `undefined` when the metadata doesn't know it — callers
|
|
5
|
+
* supply their own fallback, since not all of them have a `t` to hand.
|
|
6
|
+
*/
|
|
7
|
+
export declare function chainName(chainId: number): string | undefined;
|
|
8
|
+
//# sourceMappingURL=chainDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chainDisplay.d.ts","sourceRoot":"","sources":["../../../src/utils/chainDisplay.ts"],"names":[],"mappings":"AAQA,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/utils/customers.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEvD"}
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/utils/customers.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WithdrawalFlowConfig, WithdrawalSourceTokenOption, WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* The source tokens the user may pick between. A host with one source omits
|
|
4
|
+
* `sourceTokens`, leaving the single `sourceToken` as the only option.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveWithdrawalSourceTokens(config: Pick<WithdrawalFlowConfig, 'sourceToken' | 'sourceTokens'>): WithdrawalSourceTokenOption[];
|
|
7
|
+
/**
|
|
8
|
+
* Resolve the integrator's `withdrawalSourceTokenBalance` callback to a numeric
|
|
9
|
+
* string. Port of web's `resolveWithdrawalSourceTokenBalance`.
|
|
10
|
+
*
|
|
11
|
+
* `undefined` means no callback was supplied, which is not the same as a
|
|
12
|
+
* callback returning `0` ("nothing withdrawable"). A throw or an unusable value
|
|
13
|
+
* yields `'0'`, never `undefined`: a broken callback must not read as "unknown"
|
|
14
|
+
* and let the form fall through to some other balance.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveWithdrawalSourceBalance(config: Pick<WithdrawalFlowConfig, 'withdrawalSourceTokenBalance'>, sourceToken: WithdrawalToken): string | undefined;
|
|
17
|
+
//# sourceMappingURL=sourceToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceToken.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/sourceToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,eAAe,EAChB,MAAM,8BAA8B,CAAA;AAQrC;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,cAAc,CAAC,GACjE,2BAA2B,EAAE,CAG/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,8BAA8B,CAAC,EAClE,WAAW,EAAE,eAAe,GAC3B,MAAM,GAAG,SAAS,CAuBpB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type CheckoutQuoteResponse, type WithdrawalExecutionErrorCode } from '@funkit/connect-core';
|
|
2
|
+
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig, WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
3
|
+
export type CryptoWithdrawalSubmission = {
|
|
4
|
+
status: 'idle';
|
|
5
|
+
} | {
|
|
6
|
+
status: 'submitting';
|
|
7
|
+
stepMessage?: string;
|
|
8
|
+
} | {
|
|
9
|
+
status: 'submitted';
|
|
10
|
+
txHash: string;
|
|
11
|
+
submissionId: string;
|
|
12
|
+
/** The amount that executed, not whatever the field says by now. */
|
|
13
|
+
amount: string;
|
|
14
|
+
} | {
|
|
15
|
+
status: 'failed';
|
|
16
|
+
code: WithdrawalExecutionErrorCode;
|
|
17
|
+
};
|
|
18
|
+
export interface UseCryptoWithdrawalExecutionParams {
|
|
19
|
+
config: WithdrawalFlowConfig;
|
|
20
|
+
sourceToken: WithdrawalToken;
|
|
21
|
+
destinationToken: WithdrawalToken;
|
|
22
|
+
callbacks: WithdrawalFlowCallbacks;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Executes the quote the user approved.
|
|
26
|
+
*
|
|
27
|
+
* Both guards are read synchronously inside the async submit — before the first
|
|
28
|
+
* await — so neither may wait for a re-render: a ref for a double-tap on this
|
|
29
|
+
* mount, and a module-scoped set of in-flight withdrawals for a second press
|
|
30
|
+
* after the sheet was closed and reopened mid-execution. The set holds only
|
|
31
|
+
* while the signature is outstanding; deliberately sending the same amount to
|
|
32
|
+
* the same address again once it has settled is a legitimate withdrawal.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useCryptoWithdrawalExecution({ config, sourceToken, destinationToken, callbacks, }: UseCryptoWithdrawalExecutionParams): {
|
|
35
|
+
submission: CryptoWithdrawalSubmission;
|
|
36
|
+
submit: ({ quote, recipientAddress, amount, }: {
|
|
37
|
+
/** The quote on screen — executed as-is, so fees shown are fees paid. */
|
|
38
|
+
quote: CheckoutQuoteResponse;
|
|
39
|
+
recipientAddress: string;
|
|
40
|
+
amount: string;
|
|
41
|
+
}) => Promise<void>;
|
|
42
|
+
reset: () => void;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=useCryptoWithdrawalExecution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCryptoWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,4BAA4B,EAMlC,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AA4CrC,MAAM,MAAM,0BAA0B,GAClC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,MAAM,EAAE,WAAW,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAA;CACf,GAGD;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,4BAA4B,CAAA;CAAE,CAAA;AAE5D,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,CAAA;IACjC,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,EAAE,kCAAkC;;mDAY9B;QACD,yEAAyE;QACzE,KAAK,EAAE,qBAAqB,CAAA;QAC5B,gBAAgB,EAAE,MAAM,CAAA;QACxB,MAAM,EAAE,MAAM,CAAA;KACf;;EAuFJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type CheckoutQuoteResponse } from '@funkit/connect-core';
|
|
2
|
+
import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
3
|
+
import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
4
|
+
export declare const CRYPTO_WITHDRAWAL_QUOTE_QUERY_KEY = "cryptoWithdrawalQuote";
|
|
5
|
+
/**
|
|
6
|
+
* How long a quote stays good for. Used for BOTH `staleTime` and
|
|
7
|
+
* `refetchInterval`, and the equality is load-bearing: with `staleTime: 0`, an
|
|
8
|
+
* `enabled` flip mid-edit remounts the query and refetches the previous key
|
|
9
|
+
* before the new amount lands, replaying a stale quote. The interval keeps it
|
|
10
|
+
* fresh regardless.
|
|
11
|
+
*/
|
|
12
|
+
export declare const QUOTE_REFRESH_INTERVAL_MS = 25000;
|
|
13
|
+
export interface CryptoWithdrawalQuoteView {
|
|
14
|
+
/** Executed as-is by the pipeline — never rebuilt from the fields below. */
|
|
15
|
+
raw: CheckoutQuoteResponse;
|
|
16
|
+
/** What the recipient gets, in destination-token units. */
|
|
17
|
+
receiveAmount: string | undefined;
|
|
18
|
+
fees: FeeBreakdownV2;
|
|
19
|
+
}
|
|
20
|
+
export interface UseCryptoWithdrawalQuoteParams {
|
|
21
|
+
sourceToken: WithdrawalToken;
|
|
22
|
+
destinationToken: WithdrawalToken | undefined;
|
|
23
|
+
recipientAddress: string;
|
|
24
|
+
/** Source-token units. Already debounced and settled by the caller. */
|
|
25
|
+
amount: string;
|
|
26
|
+
walletAddress: string;
|
|
27
|
+
/** The caller's own gate — validation, risk, blacklist (see `useQuoteGate`). */
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The EXACT_IN quote for a crypto withdrawal, refreshed on an interval so the
|
|
32
|
+
* fees on screen stay the fees that execute.
|
|
33
|
+
*
|
|
34
|
+
* The query key is the inputs themselves — no context round-trip — so a quote
|
|
35
|
+
* can never describe a different withdrawal than the form shows.
|
|
36
|
+
*/
|
|
37
|
+
export declare function useCryptoWithdrawalQuote({ sourceToken, destinationToken, recipientAddress, amount, walletAddress, enabled, }: UseCryptoWithdrawalQuoteParams): {
|
|
38
|
+
quote: CryptoWithdrawalQuoteView | undefined;
|
|
39
|
+
isLoading: boolean;
|
|
40
|
+
isError: boolean;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=useCryptoWithdrawalQuote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCryptoWithdrawalQuote.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalQuote.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAK3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAItD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAKnE,eAAO,MAAM,iCAAiC,0BAA0B,CAAA;AAExE;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAE/C,MAAM,WAAW,yBAAyB;IACxC,4EAA4E;IAC5E,GAAG,EAAE,qBAAqB,CAAA;IAC1B,2DAA2D;IAC3D,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,IAAI,EAAE,cAAc,CAAA;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,gBAAgB,EAAE,MAAM,CAAA;IACxB,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,gFAAgF;IAChF,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,aAAa,EACb,OAAO,GACR,EAAE,8BAA8B;;;;EAiEhC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type WithdrawalAmountValidation } from '@funkit/connect-core';
|
|
2
|
+
import type { WithdrawalFlowConfig, WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
3
|
+
import { type WithdrawCtaBlocker } from './validation';
|
|
4
|
+
export interface CryptoWithdrawalValidation {
|
|
5
|
+
/** Recipient the funds would be lost in (e.g. a token contract). */
|
|
6
|
+
isRecipientBlacklisted: boolean;
|
|
7
|
+
amountValidation: WithdrawalAmountValidation;
|
|
8
|
+
/** The single thing left to fix, or `undefined` when the form is complete. */
|
|
9
|
+
ctaBlocker: WithdrawCtaBlocker | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Everything the crypto withdrawal form knows synchronously about what the user
|
|
13
|
+
* has typed. The Statsig-backed blacklist is why this is a hook; the verdicts
|
|
14
|
+
* themselves come from the pure functions in `validation.ts`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useCryptoWithdrawalValidation({ config, sourceToken, destinationToken, amount, recipient, balance, }: {
|
|
17
|
+
config: WithdrawalFlowConfig;
|
|
18
|
+
sourceToken: WithdrawalToken;
|
|
19
|
+
destinationToken: WithdrawalToken | undefined;
|
|
20
|
+
amount: string;
|
|
21
|
+
recipient: string;
|
|
22
|
+
balance: string | undefined;
|
|
23
|
+
}): CryptoWithdrawalValidation;
|
|
24
|
+
//# sourceMappingURL=useCryptoWithdrawalValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCryptoWithdrawalValidation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,0BAA0B;IACzC,oEAAoE;IACpE,sBAAsB,EAAE,OAAO,CAAA;IAC/B,gBAAgB,EAAE,0BAA0B,CAAA;IAC5C,8EAA8E;IAC9E,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAA;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,GAAG,0BAA0B,CAiC7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
export declare const SOURCE_TOKEN_DECIMALS_QUERY_KEY = "sourceTokenDecimals";
|
|
3
|
+
/**
|
|
4
|
+
* Decimals for the amount conversion: the host's value when it has one,
|
|
5
|
+
* otherwise read on-chain. A stale host value would mis-scale the transfer, so
|
|
6
|
+
* the read is preferred over a guess.
|
|
7
|
+
*
|
|
8
|
+
* Its own query rather than a step inside the quote, so the read runs once per
|
|
9
|
+
* token — as soon as the form knows what it is spending — instead of on every
|
|
10
|
+
* 25-second quote refresh.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useSourceTokenDecimals(sourceToken: WithdrawalToken): number | undefined;
|
|
13
|
+
//# sourceMappingURL=useSourceTokenDecimals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSourceTokenDecimals.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useSourceTokenDecimals.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAEnE,eAAO,MAAM,+BAA+B,wBAAwB,CAAA;AAEpE;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,eAAe,GAC3B,MAAM,GAAG,SAAS,CA2BpB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
export declare const WITHDRAWAL_DESTINATION_TOKENS_QUERY_KEY = "withdrawalDestinations";
|
|
3
|
+
export interface DestinationChain {
|
|
4
|
+
chainId: number;
|
|
5
|
+
/** Symbols receivable on this chain, priority ones first. */
|
|
6
|
+
symbols: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface UseWithdrawalDestinationTokensResult {
|
|
9
|
+
chains: DestinationChain[];
|
|
10
|
+
/** Where the funds land. `undefined` until the curated list resolves. */
|
|
11
|
+
destinationToken: WithdrawalToken | undefined;
|
|
12
|
+
selectDestinationToken: (chainId: number, symbol: string) => void;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Everything a withdrawal can be received as: the curated Statsig
|
|
17
|
+
* `withdrawalconfig` chains and assets, minus
|
|
18
|
+
* `disablewithdrawalchainsandassets`, resolved against api-base's asset
|
|
19
|
+
* metadata — the same pipeline the deposit list uses, and the same one web
|
|
20
|
+
* feeds into its receive-token dropdown.
|
|
21
|
+
*
|
|
22
|
+
* The destination token is the point of this rail. Sending the source token back out
|
|
23
|
+
* on its own chain is a plain transfer with nothing to quote; the relay quote
|
|
24
|
+
* exists precisely so a user holding USDG on one chain can receive USDC on
|
|
25
|
+
* another.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useWithdrawalDestinationTokens({ sourceToken, defaultReceiveToken, }: {
|
|
28
|
+
sourceToken: WithdrawalToken;
|
|
29
|
+
/** Symbol to preselect; falls back to the source token's symbol. */
|
|
30
|
+
defaultReceiveToken?: string;
|
|
31
|
+
}): UseWithdrawalDestinationTokensResult;
|
|
32
|
+
//# sourceMappingURL=useWithdrawalDestinationTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWithdrawalDestinationTokens.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalDestinationTokens.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAKnE,eAAO,MAAM,uCAAuC,2BAA2B,CAAA;AAE/E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,6DAA6D;IAC7D,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,oCAAoC;IACnD,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,yEAAyE;IACzE,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACjE,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAAC,EAC7C,WAAW,EACX,mBAAmB,GACpB,EAAE;IACD,WAAW,EAAE,eAAe,CAAA;IAC5B,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B,GAAG,oCAAoC,CA2EvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAM3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAkBrC,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,oBAAoB,CAAA;IAC5B,oFAAoF;IACpF,KAAK,EAAE,qBAAqB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,8DAA8D;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,KAAK,EACL,SAAS,EACT,OAAO,GACR,EAAE,4BAA4B,GAAG;IAChC,YAAY,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5D,CA4FA"}
|