@funkit/connect 1.0.22 → 1.0.23

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 (42) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +2 -1
  3. package/dist/index.js +122 -71
  4. package/dist/utils/mesh.d.ts +7 -6
  5. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  6. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  7. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  8. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  10. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/index.js +64 -64
  15. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  24. package/package.json +3 -3
  25. package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
  26. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  27. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
  28. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
  29. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  30. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
  31. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  32. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
  33. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  34. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
  35. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  36. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
  37. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  38. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  39. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
  40. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
  41. package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
  42. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-KGTZ6E7L.js";
4
+ } from "../chunk-6LTLPR2Q.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
  bifrostWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-2B3SPBRY.js";
4
+ } from "../chunk-ZNXQ4V6G.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
  bitgetWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-CUKVUCIP.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-ZUAHWUEL.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-T6JVHES7.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-MIWCKFYE.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-Z2HIQYVN.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-4FQLUQNA.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-IBWFKX7P.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-JLQ5HJYV.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-OKWOB3DN.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-Q4RLUJJD.js";
6
5
  import "../chunk-ZDU3JFGR.js";
6
+ import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-HD5VYJNC.js";
4
+ } from "../chunk-AM4SSLAP.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
  frontierWallet
10
10
  };
@@ -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,94 +1,100 @@
1
1
  "use client";
2
2
  import {
3
- zealWallet
4
- } from "./chunk-DPXMP5KS.js";
3
+ safeheronWallet
4
+ } from "./chunk-63NPZXAL.js";
5
5
  import {
6
- coinbaseWallet
7
- } from "./chunk-XBUTWYE4.js";
6
+ oktoWallet
7
+ } from "./chunk-WKHTUEF5.js";
8
8
  import {
9
- zerionWallet
10
- } from "./chunk-XNNLZXHE.js";
9
+ uniswapWallet
10
+ } from "./chunk-XRSY4JVH.js";
11
11
  import {
12
12
  talismanWallet
13
13
  } from "./chunk-H273OTQA.js";
14
- import {
15
- tokenPocketWallet
16
- } from "./chunk-7KDOXASH.js";
17
14
  import {
18
15
  tokenaryWallet
19
16
  } from "./chunk-ENZLEAG2.js";
20
17
  import {
21
18
  trustWallet
22
- } from "./chunk-CRSPGVPF.js";
23
- import {
24
- uniswapWallet
25
- } from "./chunk-XRSY4JVH.js";
26
- import {
27
- braveWallet
28
- } from "./chunk-ABYQAXUX.js";
19
+ } from "./chunk-Z2DGDHHZ.js";
29
20
  import {
30
21
  walletConnectWallet
31
22
  } from "./chunk-ASPRR7T3.js";
23
+ import {
24
+ tokenPocketWallet
25
+ } from "./chunk-2UXZAUWT.js";
32
26
  import {
33
27
  xdefiWallet
34
28
  } from "./chunk-L734HTUS.js";
35
29
  import {
36
- rainbowWallet
37
- } from "./chunk-RCWZ4KBR.js";
30
+ zealWallet
31
+ } from "./chunk-DPXMP5KS.js";
38
32
  import {
39
- ramperWallet
40
- } from "./chunk-ZOL6ZMTJ.js";
33
+ zerionWallet
34
+ } from "./chunk-7CQPABJG.js";
35
+ import {
36
+ rainbowWallet
37
+ } from "./chunk-O5NKWWEG.js";
41
38
  import {
42
39
  roninWallet
43
- } from "./chunk-GW6EF4G2.js";
40
+ } from "./chunk-LVRXH33E.js";
44
41
  import {
45
42
  safeWallet
46
43
  } from "./chunk-D3DCQ72J.js";
47
44
  import {
48
- safepalWallet
49
- } from "./chunk-RTW6PVQI.js";
45
+ ramperWallet
46
+ } from "./chunk-ZOL6ZMTJ.js";
50
47
  import {
51
- safeheronWallet
52
- } from "./chunk-63NPZXAL.js";
48
+ oneKeyWallet
49
+ } from "./chunk-4WOV4ITL.js";
50
+ import {
51
+ safepalWallet
52
+ } from "./chunk-SYELB4QO.js";
53
53
  import {
54
54
  subWallet
55
- } from "./chunk-2GAW2UBU.js";
55
+ } from "./chunk-ZBAQFL6G.js";
56
56
  import {
57
57
  tahoWallet
58
58
  } from "./chunk-H76YCX2M.js";
59
+ import {
60
+ ledgerWallet
61
+ } from "./chunk-Y6VY6E3L.js";
62
+ import {
63
+ metaMaskWallet
64
+ } from "./chunk-3WZRNEZH.js";
59
65
  import {
60
66
  mewWallet
61
67
  } from "./chunk-PWYTDYBE.js";
62
68
  import {
63
- oktoWallet
64
- } from "./chunk-WKHTUEF5.js";
69
+ okxWallet
70
+ } from "./chunk-NGXIHASN.js";
65
71
  import {
66
72
  omniWallet
67
73
  } from "./chunk-SVN7OEQR.js";
68
- import {
69
- okxWallet
70
- } from "./chunk-DV3SI63E.js";
71
74
  import {
72
75
  oneInchWallet
73
76
  } from "./chunk-LCPIZUR3.js";
74
- import {
75
- oneKeyWallet
76
- } from "./chunk-4WOV4ITL.js";
77
77
  import {
78
78
  phantomWallet
79
79
  } from "./chunk-KGBLSE7L.js";
80
80
  import {
81
81
  rabbyWallet
82
82
  } from "./chunk-XPEBP6XV.js";
83
+ import {
84
+ foxWallet
85
+ } from "./chunk-Q4RLUJJD.js";
83
86
  import {
84
87
  frontierWallet
85
- } from "./chunk-HD5VYJNC.js";
88
+ } from "./chunk-AM4SSLAP.js";
86
89
  import {
87
- imTokenWallet
88
- } from "./chunk-5MVV7OVS.js";
90
+ frameWallet
91
+ } from "./chunk-XXFJVY73.js";
89
92
  import {
90
93
  gateWallet
91
- } from "./chunk-VSZ7PAHS.js";
94
+ } from "./chunk-V45EXW7A.js";
95
+ import {
96
+ imTokenWallet
97
+ } from "./chunk-5MVV7OVS.js";
92
98
  import {
93
99
  injectedWallet
94
100
  } from "./chunk-KIHCNUU3.js";
@@ -96,17 +102,20 @@ import {
96
102
  kresusWallet
97
103
  } from "./chunk-X6T3CICZ.js";
98
104
  import {
99
- ledgerWallet
100
- } from "./chunk-Y6VY6E3L.js";
105
+ bybitWallet
106
+ } from "./chunk-ZUAHWUEL.js";
101
107
  import {
102
- metaMaskWallet
103
- } from "./chunk-XRMAVTK7.js";
108
+ clvWallet
109
+ } from "./chunk-MIWCKFYE.js";
104
110
  import {
105
- bitverseWallet
106
- } from "./chunk-NL4I7WOT.js";
111
+ coin98Wallet
112
+ } from "./chunk-4FQLUQNA.js";
113
+ import {
114
+ coinbaseWallet
115
+ } from "./chunk-XBUTWYE4.js";
107
116
  import {
108
117
  coreWallet
109
- } from "./chunk-IBWFKX7P.js";
118
+ } from "./chunk-JLQ5HJYV.js";
110
119
  import {
111
120
  dawnWallet
112
121
  } from "./chunk-4XQDKOGF.js";
@@ -116,39 +125,30 @@ import {
116
125
  import {
117
126
  enkryptWallet
118
127
  } from "./chunk-FLY7F4XA.js";
119
- import {
120
- foxWallet
121
- } from "./chunk-OKWOB3DN.js";
122
- import {
123
- bitgetWallet
124
- } from "./chunk-2B3SPBRY.js";
125
- import {
126
- frameWallet
127
- } from "./chunk-XXFJVY73.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-NZ5G23JP.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-KGTZ6E7L.js";
133
+ } from "./chunk-6LTLPR2Q.js";
134
+ import {
135
+ bitgetWallet
136
+ } from "./chunk-ZNXQ4V6G.js";
134
137
  import {
135
138
  bitskiWallet
136
139
  } from "./chunk-C67TQJ6W.js";
140
+ import {
141
+ bitverseWallet
142
+ } from "./chunk-NL4I7WOT.js";
137
143
  import {
138
144
  bloomWallet
139
145
  } from "./chunk-NTGZF5BY.js";
140
146
  import "./chunk-ZOLACFTK.js";
147
+ import "./chunk-ZDU3JFGR.js";
141
148
  import {
142
- bybitWallet
143
- } from "./chunk-CUKVUCIP.js";
144
- import {
145
- clvWallet
146
- } from "./chunk-T6JVHES7.js";
147
- import {
148
- coin98Wallet
149
- } from "./chunk-Z2HIQYVN.js";
149
+ braveWallet
150
+ } from "./chunk-ABYQAXUX.js";
150
151
  import "./chunk-QII6PY2D.js";
151
- import "./chunk-ZDU3JFGR.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.22",
3
+ "version": "1.0.23",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@datadog/browser-logs": "^5.12.0",
76
- "@funkit/core": "^1.0.8",
77
- "@funkit/wagmi-tools": "^1.0.9",
76
+ "@funkit/core": "^1.0.9",
77
+ "@funkit/wagmi-tools": "^1.0.10",
78
78
  "@meshconnect/web-link-sdk": "^2.0.1",
79
79
  "@moonpay/moonpay-react": "^1.6.1",
80
80
  "@privy-io/js-sdk-core": "^0.18.1",
@@ -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
- };