@funkit/connect 3.4.10 → 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.
Files changed (54) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/components/Dialog/Dialog.css.d.ts +0 -4
  3. package/dist/components/Dialog/Dialog.d.ts +3 -1
  4. package/dist/components/Icons/StatusIcons.d.ts +2 -1
  5. package/dist/css/modalTransitionStyles.css.d.ts +6 -5
  6. package/dist/hooks/useAnimatedNavigation.d.ts +15 -5
  7. package/dist/hooks/useIsCheckoutRisky.d.ts +3 -1
  8. package/dist/hooks/useWalletAssets.d.ts +1 -1
  9. package/dist/index.css +109 -60
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.js +3879 -3426
  12. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -2
  13. package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -2
  14. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +0 -5
  15. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +2 -2
  16. package/dist/providers/FunkitCheckoutContext.d.ts +1 -37
  17. package/dist/providers/FunkitConfigContext.d.ts +4 -0
  18. package/dist/providers/FunkitHistoryContext.d.ts +43 -0
  19. package/dist/utils/assets.d.ts +3 -11
  20. package/dist/utils/flags/config.d.ts +87 -10
  21. package/dist/utils/formatTimestamp.d.ts +11 -8
  22. package/dist/utils/safeJSON.d.ts +1 -0
  23. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  28. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/index.js +78 -78
  33. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  42. package/package.json +4 -5
  43. package/dist/utils/memoize.d.ts +0 -3
  44. package/dist/wallets/walletConnectors/chunk-2FMXQV4Z.js +0 -73
  45. package/dist/wallets/walletConnectors/chunk-5HDXDGN6.js +0 -71
  46. package/dist/wallets/walletConnectors/chunk-5VJOQHWP.js +0 -94
  47. package/dist/wallets/walletConnectors/chunk-C2LMEELG.js +0 -95
  48. package/dist/wallets/walletConnectors/chunk-R22FP4XP.js +0 -108
  49. package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +0 -96
  50. package/dist/wallets/walletConnectors/chunk-VCLXOHT7.js +0 -149
  51. package/dist/wallets/walletConnectors/chunk-VPGILWUS.js +0 -98
  52. package/dist/wallets/walletConnectors/chunk-VVELVSSD.js +0 -27
  53. package/dist/wallets/walletConnectors/chunk-W53AHFUK.js +0 -102
  54. package/dist/wallets/walletConnectors/chunk-YILR6Q5Q.js +0 -101
@@ -1,19 +1,22 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-NO7XMBB5.js";
3
+ zerionWallet
4
+ } from "./chunk-RMNN2RIV.js";
5
5
  import {
6
- zealWallet
7
- } from "./chunk-JROWU5BP.js";
6
+ walletConnectWallet
7
+ } from "./chunk-NP5QGWNL.js";
8
8
  import {
9
- zerionWallet
10
- } from "./chunk-KN5BJYWQ.js";
9
+ xdefiWallet
10
+ } from "./chunk-NO7XMBB5.js";
11
11
  import {
12
- safeheronWallet
13
- } from "./chunk-R6RWZRFF.js";
12
+ subWallet
13
+ } from "./chunk-4UM4GTKZ.js";
14
14
  import {
15
15
  tokenPocketWallet
16
- } from "./chunk-EHDKQOCG.js";
16
+ } from "./chunk-N2UFM6FI.js";
17
+ import {
18
+ safepalWallet
19
+ } from "./chunk-6LPM6LUQ.js";
17
20
  import {
18
21
  tahoWallet
19
22
  } from "./chunk-6P2EMPZI.js";
@@ -21,134 +24,131 @@ import {
21
24
  uniswapWallet
22
25
  } from "./chunk-LH7BMNFZ.js";
23
26
  import {
24
- talismanWallet
25
- } from "./chunk-ABFSXBE6.js";
27
+ safeheronWallet
28
+ } from "./chunk-R6RWZRFF.js";
26
29
  import {
27
- walletConnectWallet
28
- } from "./chunk-NP5QGWNL.js";
30
+ trustWallet
31
+ } from "./chunk-NMB62FCH.js";
29
32
  import {
30
- tokenaryWallet
31
- } from "./chunk-7GGVFQBD.js";
33
+ zealWallet
34
+ } from "./chunk-JROWU5BP.js";
32
35
  import {
33
- trustWallet
34
- } from "./chunk-UQAC373E.js";
36
+ roninWallet
37
+ } from "./chunk-25VW5TZP.js";
35
38
  import {
36
- rainbowWallet
37
- } from "./chunk-MATWQVQM.js";
39
+ oneKeyWallet
40
+ } from "./chunk-4AD7VI2P.js";
41
+ import {
42
+ safeWallet
43
+ } from "./chunk-BQQQL6UD.js";
38
44
  import {
39
45
  ramperWallet
40
46
  } from "./chunk-PIUNLQJG.js";
41
- import {
42
- roninWallet
43
- } from "./chunk-63YLN6R5.js";
44
47
  import {
45
48
  rabbyWallet
46
49
  } from "./chunk-BVX4XGNP.js";
47
50
  import {
48
- okxWallet
49
- } from "./chunk-5HXH52SO.js";
51
+ phantomWallet
52
+ } from "./chunk-ZSVTX6EK.js";
50
53
  import {
51
- safeWallet
52
- } from "./chunk-BQQQL6UD.js";
54
+ talismanWallet
55
+ } from "./chunk-ABFSXBE6.js";
53
56
  import {
54
- safepalWallet
55
- } from "./chunk-MSFKSQBY.js";
57
+ tokenaryWallet
58
+ } from "./chunk-7GGVFQBD.js";
56
59
  import {
57
- subWallet
58
- } from "./chunk-AD2KIJB6.js";
60
+ foxWallet
61
+ } from "./chunk-XYBEMO3C.js";
59
62
  import {
60
- imTokenWallet
61
- } from "./chunk-COZ7MIQS.js";
63
+ injectedWallet
64
+ } from "./chunk-VCVVV2K7.js";
62
65
  import {
63
- oktoWallet
64
- } from "./chunk-UJVBNAKM.js";
66
+ metaMaskWallet
67
+ } from "./chunk-QQEO4YQS.js";
65
68
  import {
66
69
  mewWallet
67
70
  } from "./chunk-V57WLZEE.js";
68
- import {
69
- omniWallet
70
- } from "./chunk-24OBTKSN.js";
71
71
  import {
72
72
  oneInchWallet
73
73
  } from "./chunk-OESTDX6I.js";
74
74
  import {
75
- phantomWallet
76
- } from "./chunk-ZSVTX6EK.js";
75
+ okxWallet
76
+ } from "./chunk-VU6B3HMD.js";
77
77
  import {
78
- ledgerWallet
79
- } from "./chunk-GDXRZB7A.js";
78
+ omniWallet
79
+ } from "./chunk-24OBTKSN.js";
80
80
  import {
81
- oneKeyWallet
82
- } from "./chunk-4AD7VI2P.js";
81
+ rainbowWallet
82
+ } from "./chunk-DWOWRRNZ.js";
83
83
  import {
84
84
  frameWallet
85
85
  } from "./chunk-ZMYVTWDF.js";
86
86
  import {
87
- coinbaseWallet
88
- } from "./chunk-BDI5G6GA.js";
89
- import {
90
- frontierWallet
91
- } from "./chunk-E2VPHAWU.js";
92
- import {
93
- injectedWallet
94
- } from "./chunk-VCVVV2K7.js";
87
+ imTokenWallet
88
+ } from "./chunk-COZ7MIQS.js";
95
89
  import {
96
90
  gateWallet
97
- } from "./chunk-CTBFNNME.js";
91
+ } from "./chunk-C7PUODSS.js";
98
92
  import {
99
- foxWallet
100
- } from "./chunk-LMZMXEXL.js";
93
+ frontierWallet
94
+ } from "./chunk-R6TLOQL3.js";
101
95
  import {
102
96
  kresusWallet
103
97
  } from "./chunk-MJXPRJZT.js";
104
98
  import {
105
- metaMaskWallet
106
- } from "./chunk-FGLYJDAL.js";
99
+ oktoWallet
100
+ } from "./chunk-UJVBNAKM.js";
101
+ import {
102
+ ledgerWallet
103
+ } from "./chunk-GDXRZB7A.js";
107
104
  import {
108
105
  bloomWallet
109
106
  } from "./chunk-CV5FY7VL.js";
110
107
  import {
111
- coin98Wallet
112
- } from "./chunk-DTRYS3MO.js";
108
+ bifrostWallet
109
+ } from "./chunk-HA5KAB4M.js";
113
110
  import {
114
- coreWallet
115
- } from "./chunk-HBA36GW3.js";
111
+ dawnWallet
112
+ } from "./chunk-IKPUD375.js";
116
113
  import {
117
- bitverseWallet
118
- } from "./chunk-3HZRRP4Y.js";
114
+ coinbaseWallet
115
+ } from "./chunk-BDI5G6GA.js";
119
116
  import {
120
- desigWallet
121
- } from "./chunk-CTU6JCOK.js";
117
+ bybitWallet
118
+ } from "./chunk-W5O4YSZN.js";
119
+ import {
120
+ coreWallet
121
+ } from "./chunk-JXP2QPW7.js";
122
122
  import {
123
123
  enkryptWallet
124
124
  } from "./chunk-SJTXS4ZW.js";
125
125
  import {
126
- dawnWallet
127
- } from "./chunk-IKPUD375.js";
128
- import {
129
- bifrostWallet
130
- } from "./chunk-LVBXKMWP.js";
126
+ desigWallet
127
+ } from "./chunk-CTU6JCOK.js";
131
128
  import {
132
- bitgetWallet
133
- } from "./chunk-PFRM52PK.js";
129
+ argentWallet
130
+ } from "./chunk-HRDRUWYF.js";
134
131
  import {
135
132
  braveWallet
136
133
  } from "./chunk-PB254NQ4.js";
137
- import {
138
- bybitWallet
139
- } from "./chunk-6ONTSPEY.js";
140
134
  import {
141
135
  clvWallet
142
- } from "./chunk-KR6JBW5E.js";
136
+ } from "./chunk-LEXSM5KI.js";
143
137
  import {
144
- argentWallet
145
- } from "./chunk-HRDRUWYF.js";
138
+ coin98Wallet
139
+ } from "./chunk-KFFJPS5R.js";
140
+ import {
141
+ bitgetWallet
142
+ } from "./chunk-SIPHIY4F.js";
146
143
  import "./chunk-RETKWSKD.js";
147
- import "./chunk-23WIEY36.js";
148
144
  import {
149
145
  bitskiWallet
150
146
  } from "./chunk-P74YPRF6.js";
151
147
  import "./chunk-WRA2DVJ7.js";
148
+ import {
149
+ bitverseWallet
150
+ } from "./chunk-3HZRRP4Y.js";
151
+ import "./chunk-23WIEY36.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-FGLYJDAL.js";
4
+ } from "../chunk-QQEO4YQS.js";
5
5
  import "../chunk-RETKWSKD.js";
6
- import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-23WIEY36.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-5HXH52SO.js";
4
+ } from "../chunk-VU6B3HMD.js";
5
5
  import "../chunk-RETKWSKD.js";
6
- import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-23WIEY36.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-MATWQVQM.js";
4
+ } from "../chunk-DWOWRRNZ.js";
5
5
  import "../chunk-RETKWSKD.js";
6
- import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-23WIEY36.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-63YLN6R5.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-25VW5TZP.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-MSFKSQBY.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-6LPM6LUQ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-AD2KIJB6.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-4UM4GTKZ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-EHDKQOCG.js";
4
+ } from "../chunk-N2UFM6FI.js";
5
5
  import "../chunk-RETKWSKD.js";
6
- import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-23WIEY36.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-UQAC373E.js";
4
+ } from "../chunk-NMB62FCH.js";
5
5
  import "../chunk-RETKWSKD.js";
6
- import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-23WIEY36.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-KN5BJYWQ.js";
4
+ } from "../chunk-RMNN2RIV.js";
5
5
  import "../chunk-RETKWSKD.js";
6
- import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-23WIEY36.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": "3.4.10",
3
+ "version": "3.5.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -71,7 +71,6 @@
71
71
  "prop-types": "^15.8.1",
72
72
  "react": "^18.3.0",
73
73
  "storybook": "^8.2.7",
74
- "svgo": "^3.3.2",
75
74
  "tsx": "^4.15.7",
76
75
  "vitest": "^2.0.5"
77
76
  },
@@ -92,9 +91,9 @@
92
91
  "react-virtuoso": "4.10.1",
93
92
  "ua-parser-js": "^1.0.37",
94
93
  "uuid": "^9.0.1",
95
- "@funkit/core": "2.2.4",
96
- "@funkit/wagmi-tools": "3.0.15",
97
- "@funkit/api-base": "1.3.2"
94
+ "@funkit/api-base": "1.3.3",
95
+ "@funkit/core": "2.2.5",
96
+ "@funkit/wagmi-tools": "3.0.16"
98
97
  },
99
98
  "repository": {
100
99
  "type": "git",
@@ -1,3 +0,0 @@
1
- export declare const memoize: <F extends (...args: any[]) => any>(fn: F) => F & {
2
- cache: Map<string, ReturnType<F>>;
3
- };
@@ -1,73 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- isAndroid,
8
- isIOS
9
- } from "./chunk-RETKWSKD.js";
10
- import {
11
- getWalletConnectConnector
12
- } from "./chunk-23WIEY36.js";
13
-
14
- // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
15
- var rainbowWallet = ({
16
- projectId,
17
- walletConnectParameters
18
- }) => {
19
- const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
20
- const shouldUseWalletConnect = !isRainbowInjected;
21
- const getUri = (uri) => {
22
- return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
23
- uri
24
- )}&connector=rainbowkit`;
25
- };
26
- return {
27
- id: "rainbow",
28
- name: "Rainbow",
29
- rdns: "me.rainbow",
30
- iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
31
- iconBackground: "#0c2f78",
32
- installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
33
- downloadUrls: {
34
- android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
35
- ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
36
- mobile: "https://rainbow.download?utm_source=rainbowkit",
37
- qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
38
- browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
39
- },
40
- mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
41
- qrCode: shouldUseWalletConnect ? {
42
- getUri,
43
- instructions: {
44
- learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
45
- steps: [
46
- {
47
- description: "wallet_connectors.rainbow.qr_code.step1.description",
48
- step: "install",
49
- title: "wallet_connectors.rainbow.qr_code.step1.title"
50
- },
51
- {
52
- description: "wallet_connectors.rainbow.qr_code.step2.description",
53
- step: "create",
54
- title: "wallet_connectors.rainbow.qr_code.step2.title"
55
- },
56
- {
57
- description: "wallet_connectors.rainbow.qr_code.step3.description",
58
- step: "scan",
59
- title: "wallet_connectors.rainbow.qr_code.step3.title"
60
- }
61
- ]
62
- }
63
- } : void 0,
64
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
65
- projectId,
66
- walletConnectParameters
67
- }) : getInjectedConnector({ flag: "isRainbow" })
68
- };
69
- };
70
-
71
- export {
72
- rainbowWallet
73
- };
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-RETKWSKD.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-23WIEY36.js";
12
-
13
- // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
14
- var bifrostWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
19
- const shouldUseWalletConnect = !isBifrostInjected;
20
- const getUri = (uri) => {
21
- return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
22
- };
23
- return {
24
- id: "bifrostWallet",
25
- name: "Bifrost Wallet",
26
- iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
27
- iconBackground: "#fff",
28
- installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
29
- downloadUrls: {
30
- android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
31
- ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
32
- qrCode: "https://bifrostwallet.com/#download-app"
33
- },
34
- mobile: {
35
- getUri: shouldUseWalletConnect ? getUri : void 0
36
- },
37
- qrCode: shouldUseWalletConnect ? {
38
- getUri: (uri) => uri,
39
- instructions: {
40
- learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
41
- steps: [
42
- {
43
- description: "wallet_connectors.bifrost.qr_code.step1.description",
44
- step: "install",
45
- title: "wallet_connectors.bifrost.qr_code.step1.title"
46
- },
47
- {
48
- description: "wallet_connectors.bifrost.qr_code.step2.description",
49
- step: "create",
50
- title: "wallet_connectors.bifrost.qr_code.step2.title"
51
- },
52
- {
53
- description: "wallet_connectors.bifrost.qr_code.step3.description",
54
- step: "scan",
55
- title: "wallet_connectors.bifrost.qr_code.step3.title"
56
- }
57
- ]
58
- }
59
- } : void 0,
60
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
61
- projectId,
62
- walletConnectParameters
63
- }) : getInjectedConnector({
64
- flag: "isBifrost"
65
- })
66
- };
67
- };
68
-
69
- export {
70
- bifrostWallet
71
- };
@@ -1,94 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-RETKWSKD.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-23WIEY36.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-CJNGQQCV.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
- };