@funkit/connect 12.5.0 → 12.6.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 (51) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/clients/{chunk-B7UU2ETA.js → chunk-4DBUYTEE.js} +1 -1
  3. package/dist/clients/{chunk-XOLUUA5B.js → chunk-F36IJA7V.js} +3 -3
  4. package/dist/clients/{chunk-WCQ6HJ27.js → chunk-I5VRAFH6.js} +1 -1
  5. package/dist/clients/internal/nado/withdrawalCallback.js +2 -2
  6. package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
  7. package/dist/clients/internal/nado/withdrawalForm.js +2 -2
  8. package/dist/clients/nado.js +2 -2
  9. package/dist/hooks/useSavedTokenChainSelection.d.ts +16 -0
  10. package/dist/index.js +323 -214
  11. package/dist/modals/CheckoutModal/TransferToken/useSavedTransferTokenSelection.d.ts +16 -0
  12. package/dist/modals/WithdrawalModal/useSavedWithdrawalChain.d.ts +13 -0
  13. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  18. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/index.js +61 -61
  23. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  32. package/package.json +5 -5
  33. package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +0 -17
  34. package/dist/wallets/walletConnectors/chunk-53MYTA42.js +0 -94
  35. package/dist/wallets/walletConnectors/chunk-65ULY6OC.js +0 -70
  36. package/dist/wallets/walletConnectors/chunk-A5POD5SV.js +0 -103
  37. package/dist/wallets/walletConnectors/chunk-ANODOMIN.js +0 -218
  38. package/dist/wallets/walletConnectors/chunk-ASTCNVJC.js +0 -96
  39. package/dist/wallets/walletConnectors/chunk-F45CUFRR.js +0 -66
  40. package/dist/wallets/walletConnectors/chunk-FYPQ3HP4.js +0 -92
  41. package/dist/wallets/walletConnectors/chunk-IWPW26AL.js +0 -98
  42. package/dist/wallets/walletConnectors/chunk-JJBLW4IU.js +0 -87
  43. package/dist/wallets/walletConnectors/chunk-KE4CWI3A.js +0 -93
  44. package/dist/wallets/walletConnectors/chunk-MWB6LFSG.js +0 -110
  45. package/dist/wallets/walletConnectors/chunk-OVDCDVFX.js +0 -100
  46. package/dist/wallets/walletConnectors/chunk-PPQ6L4K2.js +0 -106
  47. package/dist/wallets/walletConnectors/chunk-RJF2YEZ5.js +0 -92
  48. package/dist/wallets/walletConnectors/chunk-RQYEGJKL.js +0 -96
  49. package/dist/wallets/walletConnectors/chunk-TIHTQ3OB.js +0 -95
  50. package/dist/wallets/walletConnectors/chunk-TM7UBV3Q.js +0 -69
  51. package/dist/wallets/walletConnectors/chunk-USLZMUJ3.js +0 -99
@@ -0,0 +1,16 @@
1
+ import type { TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
2
+ import type { NotificationItem } from './types';
3
+ /**
4
+ * Restores the source the user last deposited from, behind
5
+ * `remember-token-transfer-selection`.
6
+ */
7
+ export declare function useSavedTransferTokenSelection(): {
8
+ selectionOverride: TransferTokenDefault | undefined;
9
+ };
10
+ /**
11
+ * A detected deposit is the screen's success signal. It names the source token
12
+ * by address only, so it is mapped back to the dropdown's symbol before saving.
13
+ */
14
+ export declare function useSaveTransferTokenOnDeposit(): {
15
+ saveDetectedDeposit: (item: NotificationItem) => void;
16
+ };
@@ -0,0 +1,13 @@
1
+ import type { TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
2
+ import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
+ type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
4
+ type SavedWithdrawalChainConfig = Pick<FunkitWithdrawalConfig, 'sourceChainId'>;
5
+ /**
6
+ * Restores the destination the user last withdrew to, behind
7
+ * `remember-withdrawal-chain` (targeted per customer in Statsig).
8
+ */
9
+ export declare function useSavedWithdrawalChain(config: SavedWithdrawalChainConfig): {
10
+ selectionOverride: TransferTokenDefault | undefined;
11
+ saveWithdrawalDestination: (destination: TransferTokenDefault) => void;
12
+ };
13
+ export {};
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-TM7UBV3Q.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-ALGPGI6V.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-USLZMUJ3.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-HOCKAU5H.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-IWPW26AL.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-BBDNB5TQ.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  bybitWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-JJBLW4IU.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-4FHNLTR3.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  clvWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-RQYEGJKL.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-RFCZYLNR.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  coin98Wallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-TIHTQ3OB.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-TRZDAXCQ.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  coreWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-F45CUFRR.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-U52QO5HF.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  foxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-ASTCNVJC.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-IWOMSW64.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  frontierWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-FYPQ3HP4.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-YRMBR6NA.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  gateWallet
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-GLX5FULK.js";
8
8
  import {
9
9
  zerionWallet
10
- } from "./chunk-OVDCDVFX.js";
10
+ } from "./chunk-34B7OJNT.js";
11
11
  import {
12
12
  subWallet
13
- } from "./chunk-A5POD5SV.js";
13
+ } from "./chunk-XODA5ESL.js";
14
14
  import {
15
15
  tahoWallet
16
16
  } from "./chunk-U74RFZOL.js";
@@ -19,73 +19,82 @@ import {
19
19
  } from "./chunk-IAYYWCVB.js";
20
20
  import {
21
21
  tokenPocketWallet
22
- } from "./chunk-KE4CWI3A.js";
23
- import {
24
- trustWallet
25
- } from "./chunk-PPQ6L4K2.js";
26
- import {
27
- walletConnectWallet
28
- } from "./chunk-DUX4XCDV.js";
22
+ } from "./chunk-NXWG6FG2.js";
29
23
  import {
30
24
  tokenaryWallet
31
25
  } from "./chunk-TPM5PUJD.js";
26
+ import {
27
+ trustWallet
28
+ } from "./chunk-SR5CZR3L.js";
32
29
  import {
33
30
  uniswapWallet
34
31
  } from "./chunk-UNDWHCDH.js";
35
32
  import {
36
- oneInchWallet
37
- } from "./chunk-GFS2AVAH.js";
33
+ walletConnectWallet
34
+ } from "./chunk-DUX4XCDV.js";
38
35
  import {
39
- bifrostWallet
40
- } from "./chunk-TM7UBV3Q.js";
36
+ phantomWallet
37
+ } from "./chunk-Q27YVDDH.js";
41
38
  import {
42
- bitskiWallet
43
- } from "./chunk-NPITCCJE.js";
39
+ rabbyWallet
40
+ } from "./chunk-RQ2GXOJL.js";
44
41
  import {
45
42
  ramperWallet
46
43
  } from "./chunk-GPXIBTWN.js";
47
44
  import {
48
- safeWallet
49
- } from "./chunk-IR3PJMVM.js";
45
+ rainbowWallet
46
+ } from "./chunk-ZSSSLFQF.js";
50
47
  import {
51
48
  roninWallet
52
- } from "./chunk-RJF2YEZ5.js";
49
+ } from "./chunk-IA5432IR.js";
53
50
  import {
54
51
  safeheronWallet
55
52
  } from "./chunk-UN3ONVNC.js";
53
+ import {
54
+ safeWallet
55
+ } from "./chunk-IR3PJMVM.js";
56
56
  import {
57
57
  safepalWallet
58
- } from "./chunk-MWB6LFSG.js";
58
+ } from "./chunk-BBB2J3US.js";
59
+ import {
60
+ ledgerWallet
61
+ } from "./chunk-BL4OC2EJ.js";
59
62
  import {
60
63
  oktoWallet
61
64
  } from "./chunk-V4M3SNPS.js";
62
65
  import {
63
- okxWallet
64
- } from "./chunk-53MYTA42.js";
66
+ metaMaskWallet
67
+ } from "./chunk-RXRYHMRI.js";
65
68
  import {
66
- argentWallet
67
- } from "./chunk-XSDTNMQY.js";
69
+ mewWallet
70
+ } from "./chunk-DSPQXAB2.js";
71
+ import {
72
+ okxWallet
73
+ } from "./chunk-CU5J53XR.js";
68
74
  import {
69
75
  omniWallet
70
76
  } from "./chunk-2TAUCVX7.js";
71
77
  import {
72
- phantomWallet
73
- } from "./chunk-Q27YVDDH.js";
74
- import {
75
- rabbyWallet
76
- } from "./chunk-RQ2GXOJL.js";
78
+ oneInchWallet
79
+ } from "./chunk-GFS2AVAH.js";
77
80
  import {
78
81
  oneKeyWallet
79
82
  } from "./chunk-KN32ITJ7.js";
80
83
  import {
81
- rainbowWallet
82
- } from "./chunk-65ULY6OC.js";
84
+ enkryptWallet
85
+ } from "./chunk-Z6LDN2AN.js";
83
86
  import {
84
- gateWallet
85
- } from "./chunk-FYPQ3HP4.js";
87
+ foxWallet
88
+ } from "./chunk-U52QO5HF.js";
89
+ import {
90
+ frameWallet
91
+ } from "./chunk-B572YIAQ.js";
86
92
  import {
87
93
  frontierWallet
88
- } from "./chunk-ASTCNVJC.js";
94
+ } from "./chunk-IWOMSW64.js";
95
+ import {
96
+ gateWallet
97
+ } from "./chunk-YRMBR6NA.js";
89
98
  import {
90
99
  imTokenWallet
91
100
  } from "./chunk-YY2JA23M.js";
@@ -96,23 +105,23 @@ import {
96
105
  kresusWallet
97
106
  } from "./chunk-V77ATGZT.js";
98
107
  import {
99
- ledgerWallet
100
- } from "./chunk-BL4OC2EJ.js";
101
- import {
102
- metaMaskWallet
103
- } from "./chunk-ANODOMIN.js";
108
+ clvWallet
109
+ } from "./chunk-4FHNLTR3.js";
104
110
  import {
105
- mewWallet
106
- } from "./chunk-DSPQXAB2.js";
111
+ coin98Wallet
112
+ } from "./chunk-RFCZYLNR.js";
107
113
  import {
108
114
  coinbaseWallet
109
115
  } from "./chunk-SM2A3OSG.js";
110
116
  import {
111
- coreWallet
112
- } from "./chunk-TIHTQ3OB.js";
117
+ bitverseWallet
118
+ } from "./chunk-5AEWIKRA.js";
113
119
  import {
114
120
  customWallet
115
121
  } from "./chunk-VKM5M5UK.js";
122
+ import {
123
+ coreWallet
124
+ } from "./chunk-TRZDAXCQ.js";
116
125
  import {
117
126
  dawnWallet
118
127
  } from "./chunk-LV6YV3DE.js";
@@ -120,17 +129,17 @@ import {
120
129
  desigWallet
121
130
  } from "./chunk-DFHP75HV.js";
122
131
  import {
123
- enkryptWallet
124
- } from "./chunk-Z6LDN2AN.js";
132
+ argentWallet
133
+ } from "./chunk-XSDTNMQY.js";
125
134
  import {
126
- foxWallet
127
- } from "./chunk-F45CUFRR.js";
135
+ bitgetWallet
136
+ } from "./chunk-HOCKAU5H.js";
128
137
  import {
129
- frameWallet
130
- } from "./chunk-B572YIAQ.js";
138
+ bitskiWallet
139
+ } from "./chunk-NPITCCJE.js";
131
140
  import {
132
- bitgetWallet
133
- } from "./chunk-USLZMUJ3.js";
141
+ bifrostWallet
142
+ } from "./chunk-ALGPGI6V.js";
134
143
  import {
135
144
  bloomWallet
136
145
  } from "./chunk-PNHDOC77.js";
@@ -139,18 +148,9 @@ import {
139
148
  } from "./chunk-U2XXV45G.js";
140
149
  import {
141
150
  bybitWallet
142
- } from "./chunk-IWPW26AL.js";
143
- import {
144
- clvWallet
145
- } from "./chunk-JJBLW4IU.js";
146
- import {
147
- bitverseWallet
148
- } from "./chunk-5AEWIKRA.js";
149
- import {
150
- coin98Wallet
151
- } from "./chunk-RQYEGJKL.js";
152
- import "./chunk-EYWGX5LT.js";
151
+ } from "./chunk-BBDNB5TQ.js";
153
152
  import "./chunk-AALSJCUR.js";
153
+ import "./chunk-EYWGX5LT.js";
154
154
  import "./chunk-B454LLKJ.js";
155
155
  export {
156
156
  argentWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-ANODOMIN.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-RXRYHMRI.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  metaMaskWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-53MYTA42.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-CU5J53XR.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  okxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-65ULY6OC.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-ZSSSLFQF.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  rainbowWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-RJF2YEZ5.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-IA5432IR.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  roninWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-MWB6LFSG.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-BBB2J3US.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  safepalWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-A5POD5SV.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-XODA5ESL.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  subWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-KE4CWI3A.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-NXWG6FG2.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  tokenPocketWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-PPQ6L4K2.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-SR5CZR3L.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  trustWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-OVDCDVFX.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-34B7OJNT.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  zerionWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "12.5.0",
3
+ "version": "12.6.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -113,11 +113,11 @@
113
113
  "ua-parser-js": "^1.0.37",
114
114
  "use-debounce": "^10.0.5",
115
115
  "uuid": "^11.1.1",
116
- "@funkit/api-base": "8.3.0",
116
+ "@funkit/api-base": "8.3.1",
117
117
  "@funkit/chains": "2.4.0",
118
- "@funkit/fun-relay": "3.0.0",
119
- "@funkit/utils": "4.0.3",
120
- "@funkit/connect-core": "7.0.0"
118
+ "@funkit/connect-core": "8.0.0",
119
+ "@funkit/fun-relay": "3.0.1",
120
+ "@funkit/utils": "5.0.0"
121
121
  },
122
122
  "repository": {
123
123
  "type": "git",
@@ -1,17 +0,0 @@
1
- import type { TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
2
- import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
- /** Last successfully used destination chain for this source chain + account. */
4
- export declare function readWithdrawalLastChain(sourceChainId: string, accountAddress: string): number | undefined;
5
- /** Persist a successful destination without affecting the flow. */
6
- export declare function writeWithdrawalLastChain(sourceChainId: string, accountAddress: string, chainId: number): void;
7
- type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
8
- type WithdrawalChainPreferenceConfig = Pick<FunkitWithdrawalConfig, 'sourceChainId' | 'defaultReceiveToken' | 'sourceTokenSymbol'>;
9
- /**
10
- * Restores the destination chain the user last withdrew to, behind
11
- * `remember-withdrawal-chain` (targeted per customer in Statsig).
12
- */
13
- export declare function useWithdrawalChainPreference(config: WithdrawalChainPreferenceConfig): {
14
- selectionOverride: TransferTokenDefault | undefined;
15
- rememberSuccessfulChain: (chainId: number) => void;
16
- };
17
- export {};
@@ -1,94 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-EYWGX5LT.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-AALSJCUR.js";
9
-
10
- // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var okxWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
17
- const shouldUseWalletConnect = !isOKXInjected;
18
- return {
19
- id: "okx",
20
- name: "OKX Wallet",
21
- rdns: "com.okex.wallet",
22
- iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
23
- iconAccent: "#000",
24
- iconBackground: "#000",
25
- downloadUrls: {
26
- android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
27
- ios: "https://itunes.apple.com/app/id1327268470?mt=8",
28
- mobile: "https://okx.com/download",
29
- qrCode: "https://okx.com/download",
30
- chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
31
- edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
32
- firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
33
- browserExtension: "https://okx.com/download"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => {
37
- return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
38
- } : void 0
39
- },
40
- qrCode: shouldUseWalletConnect ? {
41
- getUri: (uri) => uri,
42
- instructions: {
43
- learnMoreUrl: "https://okx.com/web3/",
44
- steps: [
45
- {
46
- description: "wallet_connectors.okx.qr_code.step1.description",
47
- step: "install",
48
- title: "wallet_connectors.okx.qr_code.step1.title"
49
- },
50
- {
51
- description: "wallet_connectors.okx.qr_code.step2.description",
52
- step: "create",
53
- title: "wallet_connectors.okx.qr_code.step2.title"
54
- },
55
- {
56
- description: "wallet_connectors.okx.qr_code.step3.description",
57
- step: "scan",
58
- title: "wallet_connectors.okx.qr_code.step3.title"
59
- }
60
- ]
61
- }
62
- } : void 0,
63
- extension: {
64
- instructions: {
65
- learnMoreUrl: "https://okx.com/web3/",
66
- steps: [
67
- {
68
- description: "wallet_connectors.okx.extension.step1.description",
69
- step: "install",
70
- title: "wallet_connectors.okx.extension.step1.title"
71
- },
72
- {
73
- description: "wallet_connectors.okx.extension.step2.description",
74
- step: "create",
75
- title: "wallet_connectors.okx.extension.step2.title"
76
- },
77
- {
78
- description: "wallet_connectors.okx.extension.step3.description",
79
- step: "refresh",
80
- title: "wallet_connectors.okx.extension.step3.title"
81
- }
82
- ]
83
- }
84
- },
85
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
86
- projectId,
87
- walletConnectParameters
88
- }) : getInjectedConnector({ namespace: "okxwallet" })
89
- };
90
- };
91
-
92
- export {
93
- okxWallet
94
- };