@funkit/connect 5.1.1 → 5.1.2

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 (51) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{chunk-SPLTPSN6.js → chunk-ELA2ZIK4.js} +5 -1
  3. package/dist/{chunk-ZX3JBDYE.js → chunk-TTI2Q45P.js} +5 -1
  4. package/dist/components/Box/Box.d.ts +43 -43
  5. package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +3 -2
  6. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -9
  7. package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
  8. package/dist/components/FunAlert/FunAlert.d.ts +3 -1
  9. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -3
  10. package/dist/components/FunBadge/FunBadge.d.ts +14 -4
  11. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  12. package/dist/components/Icons/New/PercentageIcon.d.ts +2 -0
  13. package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +6 -0
  14. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +4 -3
  15. package/dist/consts/checkout.d.ts +4 -2
  16. package/dist/css/sprinkles.css.d.ts +51 -43
  17. package/dist/domains/asset.d.ts +12 -1
  18. package/dist/domains/checkoutRecipient.d.ts +6 -0
  19. package/dist/hooks/useTokenTransfer.d.ts +3 -2
  20. package/dist/index.css +2498 -2243
  21. package/dist/index.d.ts +7 -2
  22. package/dist/index.js +885 -786
  23. package/dist/modals/CheckoutModal/SelectAsset.d.ts +2 -0
  24. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +8 -2
  25. package/dist/providers/AuthenticationContext.d.ts +1 -2
  26. package/dist/providers/FunkitCheckoutContext.d.ts +4 -4
  27. package/dist/providers/FunkitThemeProvider.d.ts +12 -0
  28. package/dist/themes/darkTheme.js +1 -1
  29. package/dist/themes/lightTheme.js +1 -1
  30. package/dist/utils/flags/config.d.ts +9 -15
  31. package/dist/wallets/walletConnectors/index.js +44 -44
  32. package/package.json +3 -3
  33. package/dist/components/FunAsset/FunAssetBadge.d.ts +0 -16
  34. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  35. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  36. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  37. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  38. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  39. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  40. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  41. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  42. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  43. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  44. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  45. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  46. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  47. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  48. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  49. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  50. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  51. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
3
+ import type { TransferTokenDefault } from './TransferToken/TransferToken';
3
4
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
4
5
  export type SelectAssetState = CheckoutModalCommonState & {
5
6
  paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
@@ -7,6 +8,7 @@ export type SelectAssetState = CheckoutModalCommonState & {
7
8
  export type SelectAssetNext = {
8
9
  paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
9
10
  disconnectedBrokerage?: boolean;
11
+ transferToken?: TransferTokenDefault;
10
12
  };
11
13
  export declare const SelectAssetInfo: ModalStepInfo<FunCheckoutStep.SELECT_ASSET>;
12
14
  export declare function SelectAsset({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.SELECT_ASSET>): React.JSX.Element;
@@ -1,9 +1,15 @@
1
1
  import React from 'react';
2
2
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
3
- export type TransferTokenState = CheckoutModalCommonState;
3
+ export type TransferTokenDefault = {
4
+ token: string;
5
+ chainId: number;
6
+ };
7
+ export type TransferTokenState = CheckoutModalCommonState & {
8
+ transferToken?: TransferTokenDefault;
9
+ };
4
10
  export type TransferTokenNext = Record<string, never>;
5
11
  export interface TokenTransferSourceChainsAndAssets {
6
12
  [chainId: number]: string[];
7
13
  }
8
14
  export declare const TransferTokenInfo: ModalStepInfo<FunCheckoutStep.TRANSFER_TOKEN>;
9
- export declare function TransferToken({ onNext, }: ModalStepComponentProps<FunCheckoutStep.TRANSFER_TOKEN>): React.JSX.Element;
15
+ export declare function TransferToken({ onNext, modalState, }: ModalStepComponentProps<FunCheckoutStep.TRANSFER_TOKEN>): React.JSX.Element;
@@ -21,11 +21,10 @@ export interface AuthenticationConfig<Message> {
21
21
  status: AuthenticationStatus;
22
22
  }
23
23
  export declare function createAuthenticationAdapter<Message>(adapter: AuthenticationAdapter<Message>): AuthenticationAdapter<Message>;
24
- interface FunkitConnectAuthenticationProviderProps<Message> extends AuthenticationConfig<Message> {
24
+ export interface FunkitConnectAuthenticationProviderProps<Message> extends AuthenticationConfig<Message> {
25
25
  enabled?: boolean;
26
26
  children: ReactNode;
27
27
  }
28
28
  export declare function FunkitConnectAuthenticationProvider<Message = unknown>({ adapter, children, enabled, status, }: FunkitConnectAuthenticationProviderProps<Message>): React.JSX.Element;
29
29
  export declare function useAuthenticationAdapter(): AuthenticationAdapter<any>;
30
30
  export declare function useAuthenticationStatus(): AuthenticationStatus | null;
31
- export {};
@@ -45,16 +45,16 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
45
45
  /** minimal toAmount needed to proceed checkout. Checked after quote */
46
46
  targetAssetMinAmount?: number;
47
47
  }
48
- interface FunkitCheckoutValidationResult {
48
+ export interface FunkitCheckoutValidationResult {
49
49
  isValid: boolean;
50
50
  message: string;
51
51
  }
52
- type FunkitCheckoutResult = {
52
+ export type FunkitCheckoutResult = {
53
53
  type: 'error' | 'success';
54
54
  message: string;
55
55
  metadata: object | Error;
56
56
  };
57
- interface UseFunkitCheckoutProps {
57
+ export interface UseFunkitCheckoutProps {
58
58
  /** @optional the checkout config object **/
59
59
  config?: FunkitCheckoutConfig;
60
60
  /** @optional fires when the checkout modal is opened **/
@@ -75,7 +75,7 @@ interface UseFunkitCheckoutProps {
75
75
  onLoginRequired?: () => void;
76
76
  }
77
77
  /** Ensures that config is defined */
78
- interface UseFunkitCheckoutPropsWithFullConfig extends UseFunkitCheckoutProps {
78
+ export interface UseFunkitCheckoutPropsWithFullConfig extends UseFunkitCheckoutProps {
79
79
  config: FunkitCheckoutConfig;
80
80
  }
81
81
  /**
@@ -46,6 +46,7 @@ export declare const useActiveTheme: () => {
46
46
  modalBackground: string;
47
47
  modalBorder: string;
48
48
  offBackground: string;
49
+ offBackgroundInverse: string;
49
50
  offBackgroundComplimentary: string;
50
51
  hoverState: string;
51
52
  lightStroke: string;
@@ -87,6 +88,9 @@ export declare const useActiveTheme: () => {
87
88
  badgeBackgroundSuccess: string;
88
89
  badgeBorderSuccess: string;
89
90
  badgeTextSuccess: string;
91
+ badgeBackgroundSolana: string;
92
+ badgeBorderSolana: string;
93
+ badgeTextSolana: string;
90
94
  inputAmountQuickOptionBaseBackground: string;
91
95
  inputAmountQuickOptionHoverBackground: string;
92
96
  inputAmountQuickOptionActiveBackground: string;
@@ -208,6 +212,7 @@ export declare const useActiveTheme: () => {
208
212
  modalBackground: string;
209
213
  modalBorder: string;
210
214
  offBackground: string;
215
+ offBackgroundInverse: string;
211
216
  offBackgroundComplimentary: string;
212
217
  hoverState: string;
213
218
  lightStroke: string;
@@ -249,6 +254,9 @@ export declare const useActiveTheme: () => {
249
254
  badgeBackgroundSuccess: string;
250
255
  badgeBorderSuccess: string;
251
256
  badgeTextSuccess: string;
257
+ badgeBackgroundSolana: string;
258
+ badgeBorderSolana: string;
259
+ badgeTextSolana: string;
252
260
  inputAmountQuickOptionBaseBackground: string;
253
261
  inputAmountQuickOptionHoverBackground: string;
254
262
  inputAmountQuickOptionActiveBackground: string;
@@ -368,6 +376,7 @@ export declare const useActiveTheme: () => {
368
376
  modalBackground: string;
369
377
  modalBorder: string;
370
378
  offBackground: string;
379
+ offBackgroundInverse: string;
371
380
  offBackgroundComplimentary: string;
372
381
  hoverState: string;
373
382
  lightStroke: string;
@@ -409,6 +418,9 @@ export declare const useActiveTheme: () => {
409
418
  badgeBackgroundSuccess: string;
410
419
  badgeBorderSuccess: string;
411
420
  badgeTextSuccess: string;
421
+ badgeBackgroundSolana: string;
422
+ badgeBorderSolana: string;
423
+ badgeTextSolana: string;
412
424
  inputAmountQuickOptionBaseBackground: string;
413
425
  inputAmountQuickOptionHoverBackground: string;
414
426
  inputAmountQuickOptionActiveBackground: string;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-ZX3JBDYE.js";
4
+ } from "../chunk-TTI2Q45P.js";
5
5
  import "../chunk-A7G4HZZY.js";
6
6
  export {
7
7
  darkTheme
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-SPLTPSN6.js";
4
+ } from "../chunk-ELA2ZIK4.js";
5
5
  import "../chunk-A7G4HZZY.js";
6
6
  export {
7
7
  lightTheme
@@ -58,20 +58,6 @@ export declare const flagConfig: {
58
58
  token_transfer_source_chains_and_assets: {
59
59
  type: "string";
60
60
  default_value: string;
61
- overrides: {
62
- if_any: ({
63
- key: "userId";
64
- type: "pctRollout";
65
- pct: number;
66
- values?: undefined;
67
- } | {
68
- key: "userId";
69
- type: "isAnyOf";
70
- values: string[];
71
- pct?: undefined;
72
- })[];
73
- value: string;
74
- }[];
75
61
  };
76
62
  enable_token_transfer_universal_deposit_address: {
77
63
  type: "boolean";
@@ -138,6 +124,14 @@ export declare const flagConfig: {
138
124
  };
139
125
  enable_vertex_swap_bypass: {
140
126
  type: "boolean";
141
- default_value: false;
127
+ default_value: true;
128
+ };
129
+ display_solana_new_badge: {
130
+ type: "boolean";
131
+ default_value: true;
132
+ };
133
+ display_solana_deposits_banner: {
134
+ type: "boolean";
135
+ default_value: true;
142
136
  };
143
137
  };
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import {
3
+ zealWallet
4
+ } from "./chunk-JROWU5BP.js";
2
5
  import {
3
6
  xdefiWallet
4
7
  } from "./chunk-NO7XMBB5.js";
@@ -6,23 +9,20 @@ import {
6
9
  zerionWallet
7
10
  } from "./chunk-AXWP3GD4.js";
8
11
  import {
9
- zealWallet
10
- } from "./chunk-JROWU5BP.js";
11
- import {
12
- subWallet
13
- } from "./chunk-AD2KIJB6.js";
12
+ safeheronWallet
13
+ } from "./chunk-R6RWZRFF.js";
14
14
  import {
15
15
  tahoWallet
16
16
  } from "./chunk-6P2EMPZI.js";
17
+ import {
18
+ tokenaryWallet
19
+ } from "./chunk-SLOIIJGP.js";
17
20
  import {
18
21
  talismanWallet
19
22
  } from "./chunk-ABFSXBE6.js";
20
23
  import {
21
24
  tokenPocketWallet
22
25
  } from "./chunk-IDKVN5CF.js";
23
- import {
24
- tokenaryWallet
25
- } from "./chunk-SLOIIJGP.js";
26
26
  import {
27
27
  trustWallet
28
28
  } from "./chunk-ISIBREBO.js";
@@ -38,12 +38,6 @@ import {
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-BVX4XGNP.js";
41
- import {
42
- rainbowWallet
43
- } from "./chunk-2UCNRD7H.js";
44
- import {
45
- ramperWallet
46
- } from "./chunk-PIUNLQJG.js";
47
41
  import {
48
42
  roninWallet
49
43
  } from "./chunk-63YLN6R5.js";
@@ -51,17 +45,20 @@ import {
51
45
  safeWallet
52
46
  } from "./chunk-BQQQL6UD.js";
53
47
  import {
54
- safeheronWallet
55
- } from "./chunk-R6RWZRFF.js";
48
+ ramperWallet
49
+ } from "./chunk-PIUNLQJG.js";
50
+ import {
51
+ rainbowWallet
52
+ } from "./chunk-2UCNRD7H.js";
56
53
  import {
57
54
  safepalWallet
58
55
  } from "./chunk-MSFKSQBY.js";
59
56
  import {
60
- kresusWallet
61
- } from "./chunk-MJXPRJZT.js";
57
+ subWallet
58
+ } from "./chunk-AD2KIJB6.js";
62
59
  import {
63
- metaMaskWallet
64
- } from "./chunk-G73C6P5P.js";
60
+ ledgerWallet
61
+ } from "./chunk-BRBKM4PW.js";
65
62
  import {
66
63
  mewWallet
67
64
  } from "./chunk-V57WLZEE.js";
@@ -71,27 +68,27 @@ import {
71
68
  import {
72
69
  okxWallet
73
70
  } from "./chunk-4WEHDI4Y.js";
71
+ import {
72
+ metaMaskWallet
73
+ } from "./chunk-G73C6P5P.js";
74
74
  import {
75
75
  omniWallet
76
76
  } from "./chunk-7CUY5G6R.js";
77
+ import {
78
+ oneKeyWallet
79
+ } from "./chunk-4AD7VI2P.js";
77
80
  import {
78
81
  oneInchWallet
79
82
  } from "./chunk-OESTDX6I.js";
80
83
  import {
81
- oneKeyWallet
82
- } from "./chunk-4AD7VI2P.js";
84
+ enkryptWallet
85
+ } from "./chunk-SJTXS4ZW.js";
83
86
  import {
84
87
  foxWallet
85
88
  } from "./chunk-LMZMXEXL.js";
86
- import {
87
- frameWallet
88
- } from "./chunk-ZMYVTWDF.js";
89
89
  import {
90
90
  frontierWallet
91
91
  } from "./chunk-3S2U24BJ.js";
92
- import {
93
- gateWallet
94
- } from "./chunk-GSOYKKIS.js";
95
92
  import {
96
93
  imTokenWallet
97
94
  } from "./chunk-COZ7MIQS.js";
@@ -99,32 +96,35 @@ import {
99
96
  injectedWallet
100
97
  } from "./chunk-VCVVV2K7.js";
101
98
  import {
102
- ledgerWallet
103
- } from "./chunk-BRBKM4PW.js";
99
+ gateWallet
100
+ } from "./chunk-GSOYKKIS.js";
104
101
  import {
105
- bybitWallet
106
- } from "./chunk-6ONTSPEY.js";
102
+ kresusWallet
103
+ } from "./chunk-MJXPRJZT.js";
104
+ import {
105
+ bloomWallet
106
+ } from "./chunk-S27IADFU.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-KR6JBW5E.js";
110
110
  import {
111
111
  coin98Wallet
112
112
  } from "./chunk-DTRYS3MO.js";
113
- import {
114
- coinbaseWallet
115
- } from "./chunk-H4IRCEZN.js";
116
- import {
117
- coreWallet
118
- } from "./chunk-HBA36GW3.js";
119
113
  import {
120
114
  desigWallet
121
115
  } from "./chunk-CTU6JCOK.js";
116
+ import {
117
+ coinbaseWallet
118
+ } from "./chunk-H4IRCEZN.js";
122
119
  import {
123
120
  dawnWallet
124
121
  } from "./chunk-LN7OD5EC.js";
125
122
  import {
126
- enkryptWallet
127
- } from "./chunk-SJTXS4ZW.js";
123
+ coreWallet
124
+ } from "./chunk-HBA36GW3.js";
125
+ import {
126
+ frameWallet
127
+ } from "./chunk-ZMYVTWDF.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
@@ -140,13 +140,13 @@ import {
140
140
  import {
141
141
  bitverseWallet
142
142
  } from "./chunk-3HZRRP4Y.js";
143
- import {
144
- bloomWallet
145
- } from "./chunk-S27IADFU.js";
146
- import "./chunk-23WIEY36.js";
147
143
  import {
148
144
  braveWallet
149
145
  } from "./chunk-PB254NQ4.js";
146
+ import {
147
+ bybitWallet
148
+ } from "./chunk-6ONTSPEY.js";
149
+ import "./chunk-23WIEY36.js";
150
150
  import "./chunk-WRA2DVJ7.js";
151
151
  export {
152
152
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -91,9 +91,9 @@
91
91
  "ua-parser-js": "^1.0.37",
92
92
  "uuid": "^9.0.1",
93
93
  "@funkit/api-base": "1.6.1",
94
- "@funkit/utils": "1.0.10",
95
- "@funkit/core": "2.3.13",
96
94
  "@funkit/chains": "0.2.1",
95
+ "@funkit/core": "2.3.13",
96
+ "@funkit/utils": "1.0.10",
97
97
  "@funkit/wagmi-tools": "3.0.35"
98
98
  },
99
99
  "repository": {
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { type BoxProps } from '../Box/Box';
3
- interface FunAssetBadgeProps {
4
- text: React.ReactNode;
5
- background?: BoxProps['background'];
6
- borderColor?: BoxProps['borderColor'];
7
- color?: BoxProps['color'];
8
- }
9
- export interface BadgeColors {
10
- background: BoxProps['background'];
11
- border: BoxProps['borderColor'];
12
- text: BoxProps['color'];
13
- }
14
- export declare const defaultBadgeColors: BadgeColors;
15
- export declare function FunAssetBadge({ text, background, borderColor, color, }: FunAssetBadgeProps): React.JSX.Element;
16
- export {};
@@ -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
- };