@funkit/connect 1.0.9 → 1.0.10

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 (47) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +2 -1
  3. package/dist/components/FunPayments/FunPaymentSetup.d.ts +2 -1
  4. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +1 -2
  5. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +8 -3
  6. package/dist/consts/checkout.d.ts +18 -0
  7. package/dist/hooks/useFunListeners.d.ts +1 -0
  8. package/dist/index.js +126 -55
  9. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  14. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +2 -1
  18. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/index.js +72 -72
  20. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  29. package/package.json +1 -1
  30. package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
  31. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  32. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
  33. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
  34. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  35. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
  36. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  37. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
  38. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  39. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
  40. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  41. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
  42. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  43. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  44. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
  45. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
  46. package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
  47. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
@@ -18,7 +18,8 @@ var TO_PROGRESS_CHECKOUT_STATES = [
18
18
  CheckoutState.TO_UNFUNDED,
19
19
  CheckoutState.TO_FUNDED,
20
20
  CheckoutState.TO_POOLED,
21
- CheckoutState.TO_READY
21
+ CheckoutState.TO_READY,
22
+ CheckoutState.PENDING_RECEIVAL
22
23
  ];
23
24
  var IN_PROGRESS_CHECKOUT_STATES = [
24
25
  ...TO_PROGRESS_CHECKOUT_STATES,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-VSZ7PAHS.js";
4
+ } from "../chunk-V45EXW7A.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  gateWallet
10
10
  };
@@ -1,28 +1,28 @@
1
1
  "use client";
2
- import {
3
- oneInchWallet
4
- } from "./chunk-LCPIZUR3.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-DPXMP5KS.js";
8
2
  import {
9
3
  talismanWallet
10
4
  } from "./chunk-H273OTQA.js";
11
5
  import {
12
- desigWallet
13
- } from "./chunk-P4JLZ42R.js";
6
+ zerionWallet
7
+ } from "./chunk-7CQPABJG.js";
8
+ import {
9
+ uniswapWallet
10
+ } from "./chunk-XRSY4JVH.js";
11
+ import {
12
+ subWallet
13
+ } from "./chunk-ZBAQFL6G.js";
14
+ import {
15
+ tahoWallet
16
+ } from "./chunk-H76YCX2M.js";
14
17
  import {
15
18
  tokenPocketWallet
16
- } from "./chunk-7KDOXASH.js";
19
+ } from "./chunk-2UXZAUWT.js";
17
20
  import {
18
21
  tokenaryWallet
19
22
  } from "./chunk-ENZLEAG2.js";
20
23
  import {
21
24
  trustWallet
22
- } from "./chunk-CRSPGVPF.js";
23
- import {
24
- uniswapWallet
25
- } from "./chunk-XRSY4JVH.js";
25
+ } from "./chunk-Z2DGDHHZ.js";
26
26
  import {
27
27
  walletConnectWallet
28
28
  } from "./chunk-ASPRR7T3.js";
@@ -30,125 +30,125 @@ import {
30
30
  xdefiWallet
31
31
  } from "./chunk-L734HTUS.js";
32
32
  import {
33
- zerionWallet
34
- } from "./chunk-XNNLZXHE.js";
33
+ zealWallet
34
+ } from "./chunk-DPXMP5KS.js";
35
+ import {
36
+ phantomWallet
37
+ } from "./chunk-KGBLSE7L.js";
38
+ import {
39
+ rabbyWallet
40
+ } from "./chunk-XPEBP6XV.js";
41
+ import {
42
+ rainbowWallet
43
+ } from "./chunk-O5NKWWEG.js";
35
44
  import {
36
45
  ramperWallet
37
46
  } from "./chunk-ZOL6ZMTJ.js";
47
+ import {
48
+ roninWallet
49
+ } from "./chunk-LVRXH33E.js";
38
50
  import {
39
51
  safeWallet
40
52
  } from "./chunk-D3DCQ72J.js";
41
53
  import {
42
54
  safeheronWallet
43
55
  } from "./chunk-63NPZXAL.js";
44
- import {
45
- roninWallet
46
- } from "./chunk-GW6EF4G2.js";
47
- import {
48
- subWallet
49
- } from "./chunk-2GAW2UBU.js";
50
- import {
51
- tahoWallet
52
- } from "./chunk-H76YCX2M.js";
53
56
  import {
54
57
  safepalWallet
55
- } from "./chunk-RTW6PVQI.js";
58
+ } from "./chunk-SYELB4QO.js";
56
59
  import {
57
- bitgetWallet
58
- } from "./chunk-2B3SPBRY.js";
60
+ ledgerWallet
61
+ } from "./chunk-Y6VY6E3L.js";
59
62
  import {
60
- mewWallet
61
- } from "./chunk-PWYTDYBE.js";
63
+ metaMaskWallet
64
+ } from "./chunk-3WZRNEZH.js";
62
65
  import {
63
66
  oktoWallet
64
67
  } from "./chunk-WKHTUEF5.js";
68
+ import {
69
+ okxWallet
70
+ } from "./chunk-NGXIHASN.js";
65
71
  import {
66
72
  omniWallet
67
73
  } from "./chunk-SVN7OEQR.js";
68
74
  import {
69
- okxWallet
70
- } from "./chunk-DV3SI63E.js";
75
+ mewWallet
76
+ } from "./chunk-PWYTDYBE.js";
77
+ import {
78
+ oneInchWallet
79
+ } from "./chunk-LCPIZUR3.js";
71
80
  import {
72
81
  oneKeyWallet
73
82
  } from "./chunk-4WOV4ITL.js";
74
83
  import {
75
- rabbyWallet
76
- } from "./chunk-XPEBP6XV.js";
77
- import {
78
- phantomWallet
79
- } from "./chunk-KGBLSE7L.js";
80
- import {
81
- rainbowWallet
82
- } from "./chunk-RCWZ4KBR.js";
84
+ frameWallet
85
+ } from "./chunk-XXFJVY73.js";
83
86
  import {
84
- frontierWallet
85
- } from "./chunk-HD5VYJNC.js";
87
+ coinbaseWallet
88
+ } from "./chunk-XBUTWYE4.js";
86
89
  import {
87
- imTokenWallet
88
- } from "./chunk-5MVV7OVS.js";
90
+ gateWallet
91
+ } from "./chunk-V45EXW7A.js";
89
92
  import {
90
93
  injectedWallet
91
94
  } from "./chunk-KIHCNUU3.js";
92
95
  import {
93
- gateWallet
94
- } from "./chunk-VSZ7PAHS.js";
96
+ imTokenWallet
97
+ } from "./chunk-5MVV7OVS.js";
95
98
  import {
96
99
  kresusWallet
97
100
  } from "./chunk-X6T3CICZ.js";
98
101
  import {
99
- metaMaskWallet
100
- } from "./chunk-XRMAVTK7.js";
101
- import {
102
- ledgerWallet
103
- } from "./chunk-Y6VY6E3L.js";
102
+ bitverseWallet
103
+ } from "./chunk-NL4I7WOT.js";
104
104
  import {
105
105
  clvWallet
106
- } from "./chunk-T6JVHES7.js";
106
+ } from "./chunk-MIWCKFYE.js";
107
107
  import {
108
108
  coin98Wallet
109
- } from "./chunk-Z2HIQYVN.js";
110
- import {
111
- coinbaseWallet
112
- } from "./chunk-XBUTWYE4.js";
109
+ } from "./chunk-4FQLUQNA.js";
113
110
  import {
114
111
  coreWallet
115
- } from "./chunk-IBWFKX7P.js";
112
+ } from "./chunk-JLQ5HJYV.js";
116
113
  import {
117
114
  dawnWallet
118
115
  } from "./chunk-4XQDKOGF.js";
119
- import {
120
- foxWallet
121
- } from "./chunk-OKWOB3DN.js";
122
- import {
123
- frameWallet
124
- } from "./chunk-XXFJVY73.js";
125
116
  import {
126
117
  enkryptWallet
127
118
  } from "./chunk-FLY7F4XA.js";
128
119
  import {
129
- bifrostWallet
130
- } from "./chunk-KGTZ6E7L.js";
120
+ desigWallet
121
+ } from "./chunk-P4JLZ42R.js";
131
122
  import {
132
- bitskiWallet
133
- } from "./chunk-C67TQJ6W.js";
123
+ foxWallet
124
+ } from "./chunk-Q4RLUJJD.js";
125
+ import {
126
+ frontierWallet
127
+ } from "./chunk-AM4SSLAP.js";
134
128
  import {
135
129
  argentWallet
136
130
  } from "./chunk-NZ5G23JP.js";
137
131
  import {
138
- bitverseWallet
139
- } from "./chunk-NL4I7WOT.js";
132
+ bifrostWallet
133
+ } from "./chunk-6LTLPR2Q.js";
140
134
  import {
141
- braveWallet
142
- } from "./chunk-ABYQAXUX.js";
135
+ bitgetWallet
136
+ } from "./chunk-ZNXQ4V6G.js";
143
137
  import {
144
138
  bloomWallet
145
139
  } from "./chunk-NTGZF5BY.js";
146
140
  import "./chunk-ZOLACFTK.js";
141
+ import {
142
+ bitskiWallet
143
+ } from "./chunk-C67TQJ6W.js";
144
+ import {
145
+ braveWallet
146
+ } from "./chunk-ABYQAXUX.js";
147
147
  import {
148
148
  bybitWallet
149
- } from "./chunk-CUKVUCIP.js";
150
- import "./chunk-QII6PY2D.js";
149
+ } from "./chunk-ZUAHWUEL.js";
151
150
  import "./chunk-ZDU3JFGR.js";
151
+ import "./chunk-QII6PY2D.js";
152
152
  export {
153
153
  argentWallet,
154
154
  bifrostWallet,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-XRMAVTK7.js";
4
+ } from "../chunk-3WZRNEZH.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  metaMaskWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-DV3SI63E.js";
4
+ } from "../chunk-NGXIHASN.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  okxWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-RCWZ4KBR.js";
4
+ } from "../chunk-O5NKWWEG.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  rainbowWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-GW6EF4G2.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-LVRXH33E.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-RTW6PVQI.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-SYELB4QO.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-2GAW2UBU.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-ZBAQFL6G.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-7KDOXASH.js";
4
+ } from "../chunk-2UXZAUWT.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  tokenPocketWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-CRSPGVPF.js";
4
+ } from "../chunk-Z2DGDHHZ.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  trustWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-XNNLZXHE.js";
4
+ } from "../chunk-7CQPABJG.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-QII6PY2D.js";
7
6
  import "../chunk-ZDU3JFGR.js";
7
+ import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  zerionWallet
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -1,100 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-ZDU3JFGR.js";
12
-
13
- // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
14
- var bitgetWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isBitKeepInjected = hasInjectedProvider({
19
- namespace: "bitkeep.ethereum",
20
- flag: "isBitKeep"
21
- });
22
- const shouldUseWalletConnect = !isBitKeepInjected;
23
- return {
24
- id: "bitget",
25
- name: "Bitget Wallet",
26
- iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
27
- iconAccent: "#f6851a",
28
- iconBackground: "#fff",
29
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
30
- downloadUrls: {
31
- android: "https://web3.bitget.com/en/wallet-download?type=0",
32
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
33
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
34
- qrCode: "https://web3.bitget.com/en/wallet-download",
35
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
36
- browserExtension: "https://web3.bitget.com/en/wallet-download"
37
- },
38
- extension: {
39
- instructions: {
40
- learnMoreUrl: "https://web3.bitget.com/en/academy",
41
- steps: [
42
- {
43
- description: "wallet_connectors.bitget.extension.step1.description",
44
- step: "install",
45
- title: "wallet_connectors.bitget.extension.step1.title"
46
- },
47
- {
48
- description: "wallet_connectors.bitget.extension.step2.description",
49
- step: "create",
50
- title: "wallet_connectors.bitget.extension.step2.title"
51
- },
52
- {
53
- description: "wallet_connectors.bitget.extension.step3.description",
54
- step: "refresh",
55
- title: "wallet_connectors.bitget.extension.step3.description"
56
- }
57
- ]
58
- }
59
- },
60
- mobile: {
61
- getUri: shouldUseWalletConnect ? (uri) => {
62
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
63
- } : void 0
64
- },
65
- qrCode: shouldUseWalletConnect ? {
66
- getUri: (uri) => uri,
67
- instructions: {
68
- learnMoreUrl: "https://web3.bitget.com/en/academy",
69
- steps: [
70
- {
71
- description: "wallet_connectors.bitget.qr_code.step1.description",
72
- step: "install",
73
- title: "wallet_connectors.bitget.qr_code.step1.title"
74
- },
75
- {
76
- description: "wallet_connectors.bitget.qr_code.step2.description",
77
- step: "create",
78
- title: "wallet_connectors.bitget.qr_code.step2.title"
79
- },
80
- {
81
- description: "wallet_connectors.bitget.qr_code.step3.description",
82
- step: "scan",
83
- title: "wallet_connectors.bitget.qr_code.step3.title"
84
- }
85
- ]
86
- }
87
- } : void 0,
88
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
89
- projectId,
90
- walletConnectParameters
91
- }) : getInjectedConnector({
92
- namespace: "bitkeep.ethereum",
93
- flag: "isBitKeep"
94
- })
95
- };
96
- };
97
-
98
- export {
99
- bitgetWallet
100
- };
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-ZDU3JFGR.js";
9
-
10
- // src/wallets/walletConnectors/subWallet/subWallet.ts
11
- var subWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
16
- const shouldUseWalletConnect = !isSubWalletInjected;
17
- const getUriMobile = (uri) => {
18
- return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
19
- };
20
- const getUriQR = (uri) => {
21
- return uri;
22
- };
23
- const mobileConnector = {
24
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
25
- };
26
- let qrConnector = void 0;
27
- if (shouldUseWalletConnect) {
28
- qrConnector = {
29
- getUri: getUriQR,
30
- instructions: {
31
- learnMoreUrl: "https://www.subwallet.app/",
32
- steps: [
33
- {
34
- description: "wallet_connectors.subwallet.qr_code.step1.description",
35
- step: "install",
36
- title: "wallet_connectors.subwallet.qr_code.step1.title"
37
- },
38
- {
39
- description: "wallet_connectors.subwallet.qr_code.step2.description",
40
- step: "create",
41
- title: "wallet_connectors.subwallet.qr_code.step2.title"
42
- },
43
- {
44
- description: "wallet_connectors.subwallet.qr_code.step3.description",
45
- step: "scan",
46
- title: "wallet_connectors.subwallet.qr_code.step3.title"
47
- }
48
- ]
49
- }
50
- };
51
- }
52
- const extensionConnector = {
53
- instructions: {
54
- learnMoreUrl: "https://www.subwallet.app/",
55
- steps: [
56
- {
57
- description: "wallet_connectors.subwallet.extension.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.subwallet.extension.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.subwallet.extension.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.subwallet.extension.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.subwallet.extension.step3.description",
68
- step: "refresh",
69
- title: "wallet_connectors.subwallet.extension.step3.title"
70
- }
71
- ]
72
- }
73
- };
74
- return {
75
- id: "subwallet",
76
- name: "SubWallet",
77
- iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
78
- iconBackground: "#fff",
79
- installed: isSubWalletInjected || void 0,
80
- downloadUrls: {
81
- browserExtension: "https://www.subwallet.app/download",
82
- chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
83
- firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
84
- edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
85
- mobile: "https://www.subwallet.app/download",
86
- android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
87
- ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
88
- qrCode: "https://www.subwallet.app/download"
89
- },
90
- mobile: mobileConnector,
91
- qrCode: qrConnector,
92
- extension: extensionConnector,
93
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
94
- projectId,
95
- walletConnectParameters
96
- }) : getInjectedConnector({ namespace: "SubWallet" })
97
- };
98
- };
99
-
100
- export {
101
- subWallet
102
- };
@@ -1,95 +0,0 @@
1
- "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-ZDU3JFGR.js";
12
-
13
- // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
14
- var tokenPocketWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
19
- const shouldUseWalletConnect = !isTokenPocketInjected;
20
- const getUri = (uri) => {
21
- return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
22
- };
23
- return {
24
- id: "tokenPocket",
25
- name: "TokenPocket",
26
- rdns: "pro.tokenpocket",
27
- iconUrl: async () => (await import("./tokenPocketWallet-UYD66DEM.js")).default,
28
- iconBackground: "#2980FE",
29
- installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
30
- downloadUrls: {
31
- chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
32
- browserExtension: "https://extension.tokenpocket.pro/",
33
- android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
34
- ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
35
- qrCode: "https://tokenpocket.pro/en/download/app",
36
- mobile: "https://tokenpocket.pro/en/download/app"
37
- },
38
- mobile: {
39
- getUri: shouldUseWalletConnect ? getUri : void 0
40
- },
41
- qrCode: shouldUseWalletConnect ? {
42
- getUri,
43
- instructions: {
44
- learnMoreUrl: "https://help.tokenpocket.pro/en/",
45
- steps: [
46
- {
47
- description: "wallet_connectors.token_pocket.qr_code.step1.description",
48
- step: "install",
49
- title: "wallet_connectors.token_pocket.qr_code.step1.title"
50
- },
51
- {
52
- description: "wallet_connectors.token_pocket.qr_code.step2.description",
53
- step: "create",
54
- title: "wallet_connectors.token_pocket.qr_code.step2.title"
55
- },
56
- {
57
- description: "wallet_connectors.token_pocket.qr_code.step3.description",
58
- step: "scan",
59
- title: "wallet_connectors.token_pocket.qr_code.step3.title"
60
- }
61
- ]
62
- }
63
- } : void 0,
64
- extension: {
65
- instructions: {
66
- learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
67
- steps: [
68
- {
69
- description: "wallet_connectors.token_pocket.extension.step1.description",
70
- step: "install",
71
- title: "wallet_connectors.token_pocket.extension.step1.title"
72
- },
73
- {
74
- description: "wallet_connectors.token_pocket.extension.step2.description",
75
- step: "create",
76
- title: "wallet_connectors.token_pocket.extension.step2.title"
77
- },
78
- {
79
- description: "wallet_connectors.token_pocket.extension.step3.description",
80
- step: "refresh",
81
- title: "wallet_connectors.token_pocket.extension.step3.title"
82
- }
83
- ]
84
- }
85
- },
86
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
87
- projectId,
88
- walletConnectParameters
89
- }) : getInjectedConnector({ flag: "isTokenPocket" })
90
- };
91
- };
92
-
93
- export {
94
- tokenPocketWallet
95
- };