@funkit/connect 5.0.6 → 5.0.8

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 (66) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/{chunk-7QFRFB6R.js → chunk-N7ULOOYE.js} +10 -1
  3. package/dist/{chunk-J2TPZOG7.js → chunk-W45X55GI.js} +10 -1
  4. package/dist/components/Box/Box.d.ts +28 -28
  5. package/dist/components/CopyAddress/CopyInputDisplayedAddress.css.d.ts +2 -0
  6. package/dist/components/CopyAddress/CopyInputDisplayedAddress.d.ts +6 -4
  7. package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
  8. package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
  9. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
  10. package/dist/components/FunTooltip/FunTooltip.css.d.ts +0 -1
  11. package/dist/components/FunTooltip/FunTooltip.d.ts +11 -1
  12. package/dist/components/Icons/ArrowRightNarrowIcon.d.ts +4 -0
  13. package/dist/components/Icons/CaretDownIcon.css.d.ts +2 -0
  14. package/dist/components/Icons/CaretDownIcon.d.ts +7 -0
  15. package/dist/components/Icons/New/CheckCircleIcon.d.ts +2 -0
  16. package/dist/components/Icons/New/DollarIcon.d.ts +2 -0
  17. package/dist/components/Icons/New/FileIcon.d.ts +2 -0
  18. package/dist/components/Icons/New/InfoIcon.d.ts +6 -0
  19. package/dist/components/Icons/New/MessageIcon.d.ts +2 -0
  20. package/dist/components/Icons/New/SpeedometerIcon.d.ts +2 -0
  21. package/dist/components/Icons/SourcePaymentIcons.d.ts +22 -0
  22. package/dist/components/QRCode/QRCode.d.ts +2 -1
  23. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.css.d.ts +4 -0
  24. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +4 -2
  25. package/dist/components/TransferTokenDetails/TransferTokenDetails.css.d.ts +1 -0
  26. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +9 -0
  27. package/dist/components/YouPayYouReceive/YouPayYouReceive.d.ts +17 -0
  28. package/dist/consts/customers.d.ts +0 -1
  29. package/dist/consts/layout.d.ts +2 -0
  30. package/dist/css/sprinkles.css.d.ts +38 -28
  31. package/dist/domains/checkout.d.ts +1 -1
  32. package/dist/hooks/useCheckoutTransferDepositAddress.d.ts +2 -1
  33. package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
  34. package/dist/hooks/useTokenTransfer.d.ts +16 -0
  35. package/dist/index.css +1435 -1110
  36. package/dist/index.js +2176 -1056
  37. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +2 -2
  38. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +3 -1
  39. package/dist/modals/CheckoutModal/{TransferToken.d.ts → TransferToken/TransferToken.d.ts} +1 -1
  40. package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -1
  41. package/dist/providers/FunkitThemeProvider.d.ts +15 -0
  42. package/dist/themes/darkTheme.js +1 -1
  43. package/dist/themes/lightTheme.js +1 -1
  44. package/dist/utils/flags/config.d.ts +8 -0
  45. package/dist/wallets/walletConnectors/index.js +42 -42
  46. package/package.json +5 -5
  47. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  48. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  49. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  50. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  51. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  52. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  53. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  54. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  55. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  56. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  57. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  58. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  59. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  60. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  61. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  62. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  63. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  64. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
  65. /package/dist/modals/CheckoutModal/{CheckoutNotification.d.ts → TransferToken/CheckoutNotification.d.ts} +0 -0
  66. /package/dist/modals/CheckoutModal/{CheckoutNotifications.d.ts → TransferToken/CheckoutNotifications.d.ts} +0 -0
@@ -3,11 +3,11 @@ import type { FunButtonProps } from '../../../components/FunButton/FunButton';
3
3
  import { type ErrorNotification } from '../../../components/FunNotification/FunNotification';
4
4
  interface InputAmountLayoutProps {
5
5
  actionButtonProps: FunButtonProps;
6
- availableBalance?: ReactNode;
6
+ youPayYouReceive?: ReactNode;
7
7
  amountOptions?: ReactNode;
8
8
  amountInput: ReactNode;
9
9
  amountInputSwitch: ReactNode;
10
10
  error?: ErrorNotification;
11
11
  }
12
- export declare function InputAmountLayout({ actionButtonProps, amountOptions, amountInput, amountInputSwitch, availableBalance, error, }: InputAmountLayoutProps): React.JSX.Element;
12
+ export declare function InputAmountLayout({ actionButtonProps, amountOptions, amountInput, amountInputSwitch, youPayYouReceive, error, }: InputAmountLayoutProps): React.JSX.Element;
13
13
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { AssetHoldingsItem } from '~/utils/assets';
3
+ import type { FunkitTextCustomizationsConfig } from '~/providers/FunkitConfigContext';
3
4
  import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
4
5
  import type { FunCheckoutStep, ModalStepComponentProps } from '../stepTransition';
5
6
  interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep.INPUT_AMOUNT> {
@@ -8,6 +9,7 @@ interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep
8
9
  /** unit price of target asset */
9
10
  unitPrice: number;
10
11
  isCardCheckout: boolean;
12
+ textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
11
13
  }
12
- export declare function InputAmountLoaded({ checkoutConfig, isCardCheckout, modalState, onNext, sourceHolding, unitPrice, }: InputAmountLoadedProps): React.JSX.Element;
14
+ export declare function InputAmountLoaded({ checkoutConfig, isCardCheckout, modalState, onNext, sourceHolding, unitPrice, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
13
15
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
2
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
3
3
  export type TransferTokenState = CheckoutModalCommonState;
4
4
  export type TransferTokenNext = Record<string, never>;
5
5
  export interface TokenTransferSourceChainsAndAssets {
@@ -12,7 +12,7 @@ import { type MoonpaySetupNext, type MoonpaySetupState } from './MoonpaySetup';
12
12
  import { type SelectAssetNext, type SelectAssetState } from './SelectAsset';
13
13
  import { type SelectBrokerageNext, type SelectBrokerageState } from './SelectBrokerage';
14
14
  import { type SourceChangeNext, type SourceChangeState } from './SourceChange/SourceChange';
15
- import { type TransferTokenNext, type TransferTokenState } from './TransferToken';
15
+ import { type TransferTokenNext, type TransferTokenState } from './TransferToken/TransferToken';
16
16
  export interface CheckoutModalCommonState {
17
17
  checkoutId: string;
18
18
  /** Handles soft hiding of the dialog (without removing it from the DOM) */
@@ -95,6 +95,10 @@ export declare const useActiveTheme: () => {
95
95
  inputAmountQuickOptionHoverBorder: string;
96
96
  inputAmountQuickOptionActiveBorder: string;
97
97
  inputAmountQuickOptionFocusedBorder: string;
98
+ youPayYouReceiveBackground: string;
99
+ youPayYouReceiveBorder: string;
100
+ youPayYouReceivePrimaryText: string;
101
+ youPayYouReceiveSecondaryText: string;
98
102
  announceGradientFrom: string;
99
103
  announceGradientTo: string;
100
104
  };
@@ -167,6 +171,7 @@ export declare const useActiveTheme: () => {
167
171
  dropdown: string;
168
172
  notification: string;
169
173
  vertexDropdown: string;
174
+ qrCode: string;
170
175
  };
171
176
  blurs: {
172
177
  modalOverlay: string;
@@ -250,6 +255,10 @@ export declare const useActiveTheme: () => {
250
255
  inputAmountQuickOptionHoverBorder: string;
251
256
  inputAmountQuickOptionActiveBorder: string;
252
257
  inputAmountQuickOptionFocusedBorder: string;
258
+ youPayYouReceiveBackground: string;
259
+ youPayYouReceiveBorder: string;
260
+ youPayYouReceivePrimaryText: string;
261
+ youPayYouReceiveSecondaryText: string;
253
262
  announceGradientFrom: string;
254
263
  announceGradientTo: string;
255
264
  };
@@ -322,6 +331,7 @@ export declare const useActiveTheme: () => {
322
331
  dropdown: string;
323
332
  notification: string;
324
333
  vertexDropdown: string;
334
+ qrCode: string;
325
335
  };
326
336
  blurs: {
327
337
  modalOverlay: string;
@@ -403,6 +413,10 @@ export declare const useActiveTheme: () => {
403
413
  inputAmountQuickOptionHoverBorder: string;
404
414
  inputAmountQuickOptionActiveBorder: string;
405
415
  inputAmountQuickOptionFocusedBorder: string;
416
+ youPayYouReceiveBackground: string;
417
+ youPayYouReceiveBorder: string;
418
+ youPayYouReceivePrimaryText: string;
419
+ youPayYouReceiveSecondaryText: string;
406
420
  announceGradientFrom: string;
407
421
  announceGradientTo: string;
408
422
  };
@@ -475,6 +489,7 @@ export declare const useActiveTheme: () => {
475
489
  dropdown: string;
476
490
  notification: string;
477
491
  vertexDropdown: string;
492
+ qrCode: string;
478
493
  };
479
494
  blurs: {
480
495
  modalOverlay: string;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-J2TPZOG7.js";
4
+ } from "../chunk-W45X55GI.js";
5
5
  import "../chunk-2T4ZDGAO.js";
6
6
  export {
7
7
  darkTheme
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-7QFRFB6R.js";
4
+ } from "../chunk-N7ULOOYE.js";
5
5
  import "../chunk-2T4ZDGAO.js";
6
6
  export {
7
7
  lightTheme
@@ -101,6 +101,14 @@ export declare const flagConfig: {
101
101
  token_transfer_default_chain_id: {
102
102
  type: "string";
103
103
  default_value: string;
104
+ overrides: {
105
+ if_any: {
106
+ key: "apiKey";
107
+ type: "isAnyOf";
108
+ values: string[];
109
+ }[];
110
+ value: string;
111
+ }[];
104
112
  };
105
113
  is_checkout_activated: {
106
114
  type: "boolean";
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- xdefiWallet
4
- } from "./chunk-NO7XMBB5.js";
5
2
  import {
6
3
  zealWallet
7
4
  } from "./chunk-JROWU5BP.js";
@@ -9,41 +6,41 @@ import {
9
6
  zerionWallet
10
7
  } from "./chunk-AXWP3GD4.js";
11
8
  import {
12
- tahoWallet
13
- } from "./chunk-6P2EMPZI.js";
14
- import {
15
- talismanWallet
16
- } from "./chunk-ABFSXBE6.js";
9
+ coin98Wallet
10
+ } from "./chunk-DTRYS3MO.js";
17
11
  import {
18
12
  subWallet
19
13
  } from "./chunk-AD2KIJB6.js";
14
+ import {
15
+ talismanWallet
16
+ } from "./chunk-ABFSXBE6.js";
20
17
  import {
21
18
  tokenPocketWallet
22
19
  } from "./chunk-IDKVN5CF.js";
23
- import {
24
- tokenaryWallet
25
- } from "./chunk-SLOIIJGP.js";
26
20
  import {
27
21
  trustWallet
28
22
  } from "./chunk-ISIBREBO.js";
29
23
  import {
30
- uniswapWallet
31
- } from "./chunk-LH7BMNFZ.js";
24
+ tokenaryWallet
25
+ } from "./chunk-SLOIIJGP.js";
32
26
  import {
33
27
  walletConnectWallet
34
28
  } from "./chunk-NP5QGWNL.js";
35
29
  import {
36
- phantomWallet
37
- } from "./chunk-ZSVTX6EK.js";
30
+ xdefiWallet
31
+ } from "./chunk-NO7XMBB5.js";
32
+ import {
33
+ uniswapWallet
34
+ } from "./chunk-LH7BMNFZ.js";
35
+ import {
36
+ rainbowWallet
37
+ } from "./chunk-2UCNRD7H.js";
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-BVX4XGNP.js";
41
41
  import {
42
42
  ramperWallet
43
43
  } from "./chunk-PIUNLQJG.js";
44
- import {
45
- rainbowWallet
46
- } from "./chunk-2UCNRD7H.js";
47
44
  import {
48
45
  roninWallet
49
46
  } from "./chunk-63YLN6R5.js";
@@ -53,15 +50,15 @@ import {
53
50
  import {
54
51
  safeheronWallet
55
52
  } from "./chunk-R6RWZRFF.js";
53
+ import {
54
+ tahoWallet
55
+ } from "./chunk-6P2EMPZI.js";
56
56
  import {
57
57
  safepalWallet
58
58
  } from "./chunk-MSFKSQBY.js";
59
59
  import {
60
60
  ledgerWallet
61
61
  } from "./chunk-BRBKM4PW.js";
62
- import {
63
- metaMaskWallet
64
- } from "./chunk-G73C6P5P.js";
65
62
  import {
66
63
  oktoWallet
67
64
  } from "./chunk-ADIXAKUL.js";
@@ -71,60 +68,63 @@ import {
71
68
  import {
72
69
  okxWallet
73
70
  } from "./chunk-4WEHDI4Y.js";
74
- import {
75
- oneInchWallet
76
- } from "./chunk-OESTDX6I.js";
77
71
  import {
78
72
  omniWallet
79
73
  } from "./chunk-7CUY5G6R.js";
74
+ import {
75
+ oneInchWallet
76
+ } from "./chunk-OESTDX6I.js";
80
77
  import {
81
78
  oneKeyWallet
82
79
  } from "./chunk-4AD7VI2P.js";
83
80
  import {
84
- foxWallet
85
- } from "./chunk-LMZMXEXL.js";
81
+ phantomWallet
82
+ } from "./chunk-ZSVTX6EK.js";
86
83
  import {
87
84
  frameWallet
88
85
  } from "./chunk-ZMYVTWDF.js";
89
86
  import {
90
87
  frontierWallet
91
88
  } from "./chunk-3S2U24BJ.js";
92
- import {
93
- gateWallet
94
- } from "./chunk-GSOYKKIS.js";
95
89
  import {
96
90
  imTokenWallet
97
91
  } from "./chunk-COZ7MIQS.js";
92
+ import {
93
+ gateWallet
94
+ } from "./chunk-GSOYKKIS.js";
98
95
  import {
99
96
  injectedWallet
100
97
  } from "./chunk-VCVVV2K7.js";
101
98
  import {
102
99
  kresusWallet
103
100
  } from "./chunk-MJXPRJZT.js";
101
+ import {
102
+ metaMaskWallet
103
+ } from "./chunk-G73C6P5P.js";
104
104
  import {
105
105
  bybitWallet
106
106
  } from "./chunk-6ONTSPEY.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-KR6JBW5E.js";
110
- import {
111
- coin98Wallet
112
- } from "./chunk-DTRYS3MO.js";
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-H4IRCEZN.js";
113
+ import {
114
+ coreWallet
115
+ } from "./chunk-HBA36GW3.js";
116
116
  import {
117
117
  dawnWallet
118
118
  } from "./chunk-LN7OD5EC.js";
119
+ import {
120
+ enkryptWallet
121
+ } from "./chunk-SJTXS4ZW.js";
119
122
  import {
120
123
  desigWallet
121
124
  } from "./chunk-CTU6JCOK.js";
122
125
  import {
123
- coreWallet
124
- } from "./chunk-HBA36GW3.js";
125
- import {
126
- enkryptWallet
127
- } from "./chunk-SJTXS4ZW.js";
126
+ foxWallet
127
+ } from "./chunk-LMZMXEXL.js";
128
128
  import {
129
129
  bifrostWallet
130
130
  } from "./chunk-W6N74MS3.js";
@@ -132,17 +132,17 @@ import {
132
132
  argentWallet
133
133
  } from "./chunk-WSQ2YJO2.js";
134
134
  import {
135
- bitgetWallet
136
- } from "./chunk-A5APNTGL.js";
135
+ bitskiWallet
136
+ } from "./chunk-P74YPRF6.js";
137
137
  import {
138
138
  bitverseWallet
139
139
  } from "./chunk-3HZRRP4Y.js";
140
- import {
141
- bitskiWallet
142
- } from "./chunk-P74YPRF6.js";
143
140
  import {
144
141
  bloomWallet
145
142
  } from "./chunk-S27IADFU.js";
143
+ import {
144
+ bitgetWallet
145
+ } from "./chunk-A5APNTGL.js";
146
146
  import "./chunk-23WIEY36.js";
147
147
  import {
148
148
  braveWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -90,11 +90,11 @@
90
90
  "react-virtuoso": "4.10.1",
91
91
  "ua-parser-js": "^1.0.37",
92
92
  "uuid": "^9.0.1",
93
- "@funkit/api-base": "1.5.8",
94
- "@funkit/core": "2.3.10",
95
- "@funkit/utils": "1.0.8",
96
93
  "@funkit/chains": "0.1.3",
97
- "@funkit/wagmi-tools": "3.0.32"
94
+ "@funkit/api-base": "1.5.9",
95
+ "@funkit/utils": "1.0.9",
96
+ "@funkit/core": "2.3.11",
97
+ "@funkit/wagmi-tools": "3.0.33"
98
98
  },
99
99
  "repository": {
100
100
  "type": "git",
@@ -1,92 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
- var roninWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isRoninInjected = hasInjectedProvider({
16
- namespace: "ronin.provider"
17
- });
18
- return {
19
- id: "ronin",
20
- name: "Ronin Wallet",
21
- iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
22
- iconBackground: "#ffffff",
23
- rdns: "com.roninchain.wallet",
24
- installed: isRoninInjected || void 0,
25
- downloadUrls: {
26
- android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
27
- ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
28
- mobile: "https://wallet.roninchain.com",
29
- chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
30
- edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
31
- firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
32
- browserExtension: "https://wallet.roninchain.com/",
33
- qrCode: "https://wallet.roninchain.com/"
34
- },
35
- mobile: {
36
- getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
37
- },
38
- qrCode: {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://wallet.roninchain.com/",
42
- steps: [
43
- {
44
- description: "wallet_connectors.ronin.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.ronin.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.ronin.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.ronin.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.ronin.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.ronin.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- },
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://wallet.roninchain.com/",
64
- steps: [
65
- {
66
- description: "wallet_connectors.ronin.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.ronin.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.ronin.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.ronin.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.ronin.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.ronin.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- })
87
- };
88
- };
89
-
90
- export {
91
- roninWallet
92
- };
@@ -1,92 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/gateWallet/gateWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var gateWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
17
- const shouldUseWalletConnect = !isGateInjected;
18
- return {
19
- id: "gate",
20
- name: "Gate Wallet",
21
- rdns: "io.gate.wallet",
22
- iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
23
- iconAccent: "#fff",
24
- iconBackground: "#fff",
25
- downloadUrls: {
26
- android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
27
- ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
28
- mobile: "https://www.gate.io/mobileapp",
29
- qrCode: "https://www.gate.io/web3",
30
- chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
31
- browserExtension: "https://www.gate.io/web3"
32
- },
33
- mobile: {
34
- getUri: shouldUseWalletConnect ? (uri) => {
35
- return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
36
- } : void 0
37
- },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://www.gate.io/learn",
42
- steps: [
43
- {
44
- description: "wallet_connectors.gate.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.gate.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.gate.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.gate.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.gate.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.gate.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://www.gate.io/learn",
64
- steps: [
65
- {
66
- description: "wallet_connectors.gate.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.gate.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.gate.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.gate.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.gate.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.gate.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- }) : getInjectedConnector({ namespace: "gatewallet" })
87
- };
88
- };
89
-
90
- export {
91
- gateWallet
92
- };
@@ -1,94 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.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
- };