@funkit/connect 1.0.12 → 1.0.14

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 (43) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/{chunk-JLKS6NET.js → chunk-AF763GD5.js} +2 -1
  3. package/dist/{chunk-2NNNYGQA.js → chunk-I4LVVIYS.js} +2 -1
  4. package/dist/components/FunContainer/FunContainer.d.ts +3 -1
  5. package/dist/components/FunKeyValue/FunKeyValue.d.ts +2 -1
  6. package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
  7. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +21 -2
  8. package/dist/components/FunkitProvider/FunkitProvider.d.ts +1 -0
  9. package/dist/components/FunkitProvider/FunkitSandboxContext.d.ts +3 -0
  10. package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +4 -0
  11. package/dist/components/FunkitProvider/FunkitWeb2Provider.d.ts +5 -0
  12. package/dist/css/sprinkles.css.d.ts +2 -0
  13. package/dist/index.css +5 -0
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +409 -285
  16. package/dist/themes/darkTheme.d.ts +1 -0
  17. package/dist/themes/darkTheme.js +1 -1
  18. package/dist/themes/lightTheme.d.ts +1 -0
  19. package/dist/themes/lightTheme.js +1 -1
  20. package/dist/utils/assets.d.ts +6 -0
  21. package/dist/utils/moonpay.d.ts +1 -0
  22. package/dist/wallets/walletConnectors/index.js +79 -79
  23. package/package.json +3 -3
  24. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  25. package/dist/wallets/walletConnectors/chunk-2PC2XXUH.js +0 -94
  26. package/dist/wallets/walletConnectors/chunk-75A2U7T7.js +0 -100
  27. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  28. package/dist/wallets/walletConnectors/chunk-FDIIMYTB.js +0 -73
  29. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  30. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  31. package/dist/wallets/walletConnectors/chunk-N3VZE65M.js +0 -98
  32. package/dist/wallets/walletConnectors/chunk-OAEJQOAV.js +0 -105
  33. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  34. package/dist/wallets/walletConnectors/chunk-OR3PU2W4.js +0 -95
  35. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  36. package/dist/wallets/walletConnectors/chunk-SL4VH23R.js +0 -71
  37. package/dist/wallets/walletConnectors/chunk-SQGFKNNZ.js +0 -102
  38. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  39. package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +0 -27
  40. package/dist/wallets/walletConnectors/chunk-X255T3C4.js +0 -178
  41. package/dist/wallets/walletConnectors/chunk-XSSD5ZVD.js +0 -96
  42. package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
  43. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
@@ -67,6 +67,7 @@ export declare const darkTheme: {
67
67
  selectedWallet: string;
68
68
  walletLogo: string;
69
69
  };
70
+ moonpayTheme: string;
70
71
  fonts: {
71
72
  body: string;
72
73
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-2NNNYGQA.js";
4
+ } from "../chunk-I4LVVIYS.js";
5
5
  import "../chunk-UK5FXGK3.js";
6
6
  export {
7
7
  darkTheme
@@ -67,6 +67,7 @@ export declare const lightTheme: {
67
67
  selectedWallet: string;
68
68
  walletLogo: string;
69
69
  };
70
+ moonpayTheme: string;
70
71
  fonts: {
71
72
  body: string;
72
73
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-JLKS6NET.js";
4
+ } from "../chunk-AF763GD5.js";
5
5
  import "../chunk-UK5FXGK3.js";
6
6
  export {
7
7
  lightTheme
@@ -1,5 +1,11 @@
1
+ import { FunkitActiveCheckoutItem } from '../components/FunkitProvider/FunkitCheckoutContext';
2
+ import { PaymentMethod } from '../consts/payment';
1
3
  export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
2
4
  chainId: string;
3
5
  symbolOrAddress: string;
4
6
  }): string | null;
5
7
  export declare const getNormalizedTokenBalance: (tokenBalance: number, decimals: number) => number;
8
+ export declare const isAssetUsableToPayForCheckout: (checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string) => {
9
+ isUsable: boolean;
10
+ reason: string;
11
+ };
@@ -1 +1,2 @@
1
1
  export declare const generateMoonpayCurrencyCode: (tokenSymbol: string, chainId: string) => string;
2
+ export declare function colorToHex(color: string): string;
@@ -1,37 +1,43 @@
1
1
  "use client";
2
2
  import {
3
- zealWallet
4
- } from "./chunk-DPXMP5KS.js";
3
+ trustWallet
4
+ } from "./chunk-Z2DGDHHZ.js";
5
5
  import {
6
- uniswapWallet
7
- } from "./chunk-XRSY4JVH.js";
6
+ safeheronWallet
7
+ } from "./chunk-63NPZXAL.js";
8
8
  import {
9
- zerionWallet
10
- } from "./chunk-7CQPABJG.js";
9
+ talismanWallet
10
+ } from "./chunk-H273OTQA.js";
11
11
  import {
12
- tahoWallet
13
- } from "./chunk-H76YCX2M.js";
12
+ tokenPocketWallet
13
+ } from "./chunk-2UXZAUWT.js";
14
14
  import {
15
- ramperWallet
16
- } from "./chunk-ZOL6ZMTJ.js";
15
+ safepalWallet
16
+ } from "./chunk-SYELB4QO.js";
17
17
  import {
18
- subWallet
19
- } from "./chunk-ZBAQFL6G.js";
18
+ uniswapWallet
19
+ } from "./chunk-XRSY4JVH.js";
20
20
  import {
21
21
  tokenaryWallet
22
22
  } from "./chunk-ENZLEAG2.js";
23
23
  import {
24
- tokenPocketWallet
25
- } from "./chunk-2UXZAUWT.js";
24
+ xdefiWallet
25
+ } from "./chunk-L734HTUS.js";
26
26
  import {
27
27
  walletConnectWallet
28
28
  } from "./chunk-ASPRR7T3.js";
29
29
  import {
30
- trustWallet
31
- } from "./chunk-Z2DGDHHZ.js";
30
+ zealWallet
31
+ } from "./chunk-DPXMP5KS.js";
32
32
  import {
33
- xdefiWallet
34
- } from "./chunk-L734HTUS.js";
33
+ zerionWallet
34
+ } from "./chunk-7CQPABJG.js";
35
+ import {
36
+ phantomWallet
37
+ } from "./chunk-KGBLSE7L.js";
38
+ import {
39
+ ramperWallet
40
+ } from "./chunk-ZOL6ZMTJ.js";
35
41
  import {
36
42
  roninWallet
37
43
  } from "./chunk-LVRXH33E.js";
@@ -39,80 +45,65 @@ import {
39
45
  safeWallet
40
46
  } from "./chunk-D3DCQ72J.js";
41
47
  import {
42
- phantomWallet
43
- } from "./chunk-KGBLSE7L.js";
44
- import {
45
- omniWallet
46
- } from "./chunk-SVN7OEQR.js";
47
- import {
48
- safeheronWallet
49
- } from "./chunk-63NPZXAL.js";
48
+ rainbowWallet
49
+ } from "./chunk-O5NKWWEG.js";
50
50
  import {
51
- safepalWallet
52
- } from "./chunk-SYELB4QO.js";
51
+ mewWallet
52
+ } from "./chunk-PWYTDYBE.js";
53
53
  import {
54
- rabbyWallet
55
- } from "./chunk-XPEBP6XV.js";
54
+ tahoWallet
55
+ } from "./chunk-H76YCX2M.js";
56
56
  import {
57
- talismanWallet
58
- } from "./chunk-H273OTQA.js";
57
+ subWallet
58
+ } from "./chunk-ZBAQFL6G.js";
59
59
  import {
60
- mewWallet
61
- } from "./chunk-PWYTDYBE.js";
60
+ kresusWallet
61
+ } from "./chunk-X6T3CICZ.js";
62
62
  import {
63
- okxWallet
64
- } from "./chunk-NGXIHASN.js";
63
+ ledgerWallet
64
+ } from "./chunk-Y6VY6E3L.js";
65
65
  import {
66
66
  oktoWallet
67
67
  } from "./chunk-WKHTUEF5.js";
68
68
  import {
69
- injectedWallet
70
- } from "./chunk-KIHCNUU3.js";
69
+ omniWallet
70
+ } from "./chunk-SVN7OEQR.js";
71
71
  import {
72
- oneKeyWallet
73
- } from "./chunk-4WOV4ITL.js";
72
+ okxWallet
73
+ } from "./chunk-NGXIHASN.js";
74
74
  import {
75
75
  oneInchWallet
76
76
  } from "./chunk-LCPIZUR3.js";
77
77
  import {
78
- rainbowWallet
79
- } from "./chunk-O5NKWWEG.js";
78
+ rabbyWallet
79
+ } from "./chunk-XPEBP6XV.js";
80
80
  import {
81
- ledgerWallet
82
- } from "./chunk-Y6VY6E3L.js";
81
+ oneKeyWallet
82
+ } from "./chunk-4WOV4ITL.js";
83
83
  import {
84
- frameWallet
85
- } from "./chunk-XXFJVY73.js";
84
+ bitverseWallet
85
+ } from "./chunk-NL4I7WOT.js";
86
86
  import {
87
- enkryptWallet
88
- } from "./chunk-FLY7F4XA.js";
87
+ bloomWallet
88
+ } from "./chunk-NTGZF5BY.js";
89
89
  import {
90
90
  imTokenWallet
91
91
  } from "./chunk-5MVV7OVS.js";
92
- import {
93
- kresusWallet
94
- } from "./chunk-X6T3CICZ.js";
95
- import {
96
- frontierWallet
97
- } from "./chunk-AM4SSLAP.js";
98
92
  import {
99
93
  gateWallet
100
94
  } from "./chunk-V45EXW7A.js";
101
95
  import {
102
- metaMaskWallet
103
- } from "./chunk-3WZRNEZH.js";
104
- import {
105
- bitskiWallet
106
- } from "./chunk-C67TQJ6W.js";
96
+ bybitWallet
97
+ } from "./chunk-ZUAHWUEL.js";
107
98
  import {
108
- clvWallet
109
- } from "./chunk-MIWCKFYE.js";
99
+ injectedWallet
100
+ } from "./chunk-KIHCNUU3.js";
110
101
  import {
111
- desigWallet
112
- } from "./chunk-P4JLZ42R.js";
102
+ metaMaskWallet
103
+ } from "./chunk-3WZRNEZH.js";
113
104
  import {
114
- coin98Wallet
115
- } from "./chunk-4FQLUQNA.js";
105
+ coinbaseWallet
106
+ } from "./chunk-XBUTWYE4.js";
116
107
  import {
117
108
  coreWallet
118
109
  } from "./chunk-JLQ5HJYV.js";
@@ -120,33 +111,42 @@ import {
120
111
  dawnWallet
121
112
  } from "./chunk-4XQDKOGF.js";
122
113
  import {
123
- foxWallet
124
- } from "./chunk-Q4RLUJJD.js";
114
+ desigWallet
115
+ } from "./chunk-P4JLZ42R.js";
125
116
  import {
126
- coinbaseWallet
127
- } from "./chunk-XBUTWYE4.js";
117
+ enkryptWallet
118
+ } from "./chunk-FLY7F4XA.js";
128
119
  import {
129
- argentWallet
130
- } from "./chunk-NZ5G23JP.js";
120
+ foxWallet
121
+ } from "./chunk-Q4RLUJJD.js";
131
122
  import {
132
- bitgetWallet
133
- } from "./chunk-ZNXQ4V6G.js";
123
+ frameWallet
124
+ } from "./chunk-XXFJVY73.js";
134
125
  import {
135
- bitverseWallet
136
- } from "./chunk-NL4I7WOT.js";
126
+ frontierWallet
127
+ } from "./chunk-AM4SSLAP.js";
137
128
  import {
138
- bloomWallet
139
- } from "./chunk-NTGZF5BY.js";
129
+ bitskiWallet
130
+ } from "./chunk-C67TQJ6W.js";
140
131
  import {
141
132
  bifrostWallet
142
133
  } from "./chunk-6LTLPR2Q.js";
134
+ import {
135
+ bitgetWallet
136
+ } from "./chunk-ZNXQ4V6G.js";
137
+ import {
138
+ argentWallet
139
+ } from "./chunk-NZ5G23JP.js";
143
140
  import "./chunk-ZOLACFTK.js";
144
141
  import {
145
142
  braveWallet
146
143
  } from "./chunk-ABYQAXUX.js";
147
144
  import {
148
- bybitWallet
149
- } from "./chunk-ZUAHWUEL.js";
145
+ clvWallet
146
+ } from "./chunk-MIWCKFYE.js";
147
+ import {
148
+ coin98Wallet
149
+ } from "./chunk-4FQLUQNA.js";
150
150
  import "./chunk-ZDU3JFGR.js";
151
151
  import "./chunk-QII6PY2D.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -72,8 +72,8 @@
72
72
  "@types/ua-parser-js": "^0.7.39"
73
73
  },
74
74
  "dependencies": {
75
- "@funkit/wagmi-tools": "^1.0.5",
76
- "@funkit/core": "^1.0.4",
75
+ "@funkit/wagmi-tools": "^1.0.6",
76
+ "@funkit/core": "^1.0.5",
77
77
  "@vanilla-extract/css": "1.14.0",
78
78
  "@vanilla-extract/dynamic": "2.1.0",
79
79
  "@vanilla-extract/sprinkles": "1.6.1",
@@ -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,94 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-ZDU3JFGR.js";
12
-
13
- // src/wallets/walletConnectors/gateWallet/gateWallet.ts
14
- var gateWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
19
- const shouldUseWalletConnect = !isGateInjected;
20
- return {
21
- id: "gate",
22
- name: "Gate Wallet",
23
- rdns: "io.gate.wallet",
24
- iconUrl: async () => (await import("./gateWallet-GFLHFAGG.js")).default,
25
- iconAccent: "#fff",
26
- iconBackground: "#fff",
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
29
- ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
30
- mobile: "https://www.gate.io/mobileapp",
31
- qrCode: "https://www.gate.io/web3",
32
- chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
33
- browserExtension: "https://www.gate.io/web3"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => {
37
- return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
38
- } : void 0
39
- },
40
- qrCode: shouldUseWalletConnect ? {
41
- getUri: (uri) => uri,
42
- instructions: {
43
- learnMoreUrl: "https://www.gate.io/learn",
44
- steps: [
45
- {
46
- description: "wallet_connectors.gate.qr_code.step1.description",
47
- step: "install",
48
- title: "wallet_connectors.gate.qr_code.step1.title"
49
- },
50
- {
51
- description: "wallet_connectors.gate.qr_code.step2.description",
52
- step: "create",
53
- title: "wallet_connectors.gate.qr_code.step2.title"
54
- },
55
- {
56
- description: "wallet_connectors.gate.qr_code.step3.description",
57
- step: "scan",
58
- title: "wallet_connectors.gate.qr_code.step3.title"
59
- }
60
- ]
61
- }
62
- } : void 0,
63
- extension: {
64
- instructions: {
65
- learnMoreUrl: "https://www.gate.io/learn",
66
- steps: [
67
- {
68
- description: "wallet_connectors.gate.extension.step1.description",
69
- step: "install",
70
- title: "wallet_connectors.gate.extension.step1.title"
71
- },
72
- {
73
- description: "wallet_connectors.gate.extension.step2.description",
74
- step: "create",
75
- title: "wallet_connectors.gate.extension.step2.title"
76
- },
77
- {
78
- description: "wallet_connectors.gate.extension.step3.description",
79
- step: "refresh",
80
- title: "wallet_connectors.gate.extension.step3.title"
81
- }
82
- ]
83
- }
84
- },
85
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
86
- projectId,
87
- walletConnectParameters
88
- }) : getInjectedConnector({ namespace: "gatewallet" })
89
- };
90
- };
91
-
92
- export {
93
- gateWallet
94
- };
@@ -1,100 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.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
- };