@funkit/connect 3.4.1 → 3.4.3

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 (28) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/consts/mesh.d.ts +1 -1
  3. package/dist/index.css +2 -1
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +164 -112
  6. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  7. package/dist/modals/CheckoutModal/TransferToken.d.ts +4 -5
  8. package/dist/utils/assets.d.ts +15 -1
  9. package/dist/wallets/walletConnectors/index.js +53 -53
  10. package/package.json +4 -4
  11. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  12. package/dist/wallets/walletConnectors/chunk-4HKPVECK.js +0 -95
  13. package/dist/wallets/walletConnectors/chunk-4K3EKHXR.js +0 -71
  14. package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +0 -95
  15. package/dist/wallets/walletConnectors/chunk-5MVCKMZT.js +0 -94
  16. package/dist/wallets/walletConnectors/chunk-5NZLWT3Y.js +0 -73
  17. package/dist/wallets/walletConnectors/chunk-B5D7DYVV.js +0 -101
  18. package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +0 -98
  19. package/dist/wallets/walletConnectors/chunk-HLH777AC.js +0 -108
  20. package/dist/wallets/walletConnectors/chunk-HMDUVRZP.js +0 -98
  21. package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +0 -103
  22. package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +0 -87
  23. package/dist/wallets/walletConnectors/chunk-KDGMYRMC.js +0 -102
  24. package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +0 -66
  25. package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
  26. package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +0 -96
  27. package/dist/wallets/walletConnectors/chunk-YRK6XWL6.js +0 -149
  28. package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +0 -110
@@ -11,7 +11,7 @@ export type LoadingAccountNext = ({
11
11
  usablePaymentMethod: PaymentMethod.BROKERAGE;
12
12
  paymentMethodInfo: PaymentMethodBrokerageInfo;
13
13
  } | {
14
- usablePaymentMethod: PaymentMethod.TOKEN_TRANSFER | null;
14
+ usablePaymentMethod: null;
15
15
  }) & {
16
16
  step: FunCheckoutStep.LOADING_ACCOUNT;
17
17
  };
@@ -1,18 +1,17 @@
1
1
  import React from 'react';
2
- import { PaymentMethodAccountInfo } from '../../domains/paymentMethods';
2
+ import { PaymentMethodAccountInfo, PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
3
3
  import { CheckoutModalCommonState, FunCheckoutStep, StateTransitionProps, StepTransition } from './stepTransition';
4
4
  export interface TransferTokenState extends CheckoutModalCommonState {
5
5
  step: FunCheckoutStep.TRANSFER_TOKEN;
6
+ prevPaymentMethodInfo?: PaymentMethodAccountInfo | PaymentMethodBrokerageInfo;
6
7
  }
7
8
  export type TransferTokenNext = {
8
9
  step: FunCheckoutStep.TRANSFER_TOKEN;
9
- paymentMethodInfo?: PaymentMethodAccountInfo;
10
- isLoggedIn?: boolean;
11
10
  };
12
11
  export interface TokenTransferSourceChainsAndAssets {
13
12
  [chainId: number]: string[];
14
13
  }
15
- export declare function transferTokenNext(state: TransferTokenState, payload: TransferTokenNext): StepTransition[FunCheckoutStep.TRANSFER_TOKEN];
14
+ export declare function transferTokenNext(state: TransferTokenState, _: TransferTokenNext): StepTransition[FunCheckoutStep.TRANSFER_TOKEN];
16
15
  type Props = StateTransitionProps<TransferTokenState, TransferTokenNext>;
17
- export declare function TransferToken({ onNext }: Props): React.JSX.Element;
16
+ export declare function TransferToken({ onBack }: Props): React.JSX.Element;
18
17
  export {};
@@ -13,6 +13,9 @@ export declare const getAssetSymbolWithMaxUsdValue: ({ accountHoldingsMap, filte
13
13
  export declare const L1_FEES_ESTIMATE = 20;
14
14
  export declare const L2_FEES_ESTIMATE = 1;
15
15
  export declare const L2_COST_MARGIN_MULTIPLIER = 1.2;
16
+ export declare const MESH_L1_FEES_ESTIMATE = 8;
17
+ export declare const MESH_L2_FEES_ESTIMATE = 2;
18
+ export declare const MESH_CUSTOM_CLIENT_FEE_PERCENT = 0.055;
16
19
  export interface AssetHoldingsItem {
17
20
  iconSrc: string | undefined;
18
21
  symbol: string;
@@ -24,7 +27,18 @@ export interface AssetHoldingsItem {
24
27
  export interface AssetHoldingsMap {
25
28
  [symbol: string]: AssetHoldingsItem;
26
29
  }
27
- export declare const getFeesUsdEstimate: (checkoutItem: FunkitActiveCheckoutItem, asset: AssetHoldingsItem) => 1 | 20;
30
+ /**
31
+ * Estimating mesh fees
32
+ */
33
+ export declare const getMeshFeesUsdEstimate: (asset: AssetHoldingsItem) => number;
34
+ /**
35
+ * Estimating fun base quote fees (market maker gas fees in particular)
36
+ */
37
+ export declare const getBaseFeeUsdEstimate: (checkoutItem: FunkitActiveCheckoutItem, asset: AssetHoldingsItem) => 1 | 20;
38
+ /**
39
+ * Estimating overall fees
40
+ */
41
+ export declare const getFeesUsdEstimate: (checkoutItem: FunkitActiveCheckoutItem, asset: AssetHoldingsItem) => number;
28
42
  export declare const isAssetUsdAmountSufficient: (checkoutItem: FunkitActiveCheckoutItem, asset: AssetHoldingsItem | null) => boolean;
29
43
  type RecommendedAsset = {
30
44
  symbol: string;
@@ -2,36 +2,39 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-RVIZMVFR.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-BUUV6BS4.js";
8
5
  import {
9
6
  zerionWallet
10
7
  } from "./chunk-DBP432DI.js";
11
8
  import {
12
- subWallet
13
- } from "./chunk-N3ELQYCY.js";
9
+ zealWallet
10
+ } from "./chunk-BUUV6BS4.js";
11
+ import {
12
+ tahoWallet
13
+ } from "./chunk-6AYBA6IH.js";
14
14
  import {
15
15
  talismanWallet
16
16
  } from "./chunk-OTXHQMSG.js";
17
+ import {
18
+ subWallet
19
+ } from "./chunk-N3ELQYCY.js";
17
20
  import {
18
21
  tokenPocketWallet
19
22
  } from "./chunk-ISJYPD3T.js";
20
23
  import {
21
24
  tokenaryWallet
22
25
  } from "./chunk-FAYEL4JP.js";
23
- import {
24
- trustWallet
25
- } from "./chunk-X45WXZDO.js";
26
26
  import {
27
27
  uniswapWallet
28
28
  } from "./chunk-QFRZGNNV.js";
29
- import {
30
- tahoWallet
31
- } from "./chunk-6AYBA6IH.js";
32
29
  import {
33
30
  walletConnectWallet
34
31
  } from "./chunk-OFU3PEVT.js";
32
+ import {
33
+ trustWallet
34
+ } from "./chunk-X45WXZDO.js";
35
+ import {
36
+ oktoWallet
37
+ } from "./chunk-MBQTOALG.js";
35
38
  import {
36
39
  rabbyWallet
37
40
  } from "./chunk-H5LLXNOI.js";
@@ -39,8 +42,8 @@ import {
39
42
  rainbowWallet
40
43
  } from "./chunk-OHJBALD3.js";
41
44
  import {
42
- roninWallet
43
- } from "./chunk-63YLN6R5.js";
45
+ safeheronWallet
46
+ } from "./chunk-FCIRHRFH.js";
44
47
  import {
45
48
  ramperWallet
46
49
  } from "./chunk-TKXQYHWJ.js";
@@ -48,32 +51,23 @@ import {
48
51
  safeWallet
49
52
  } from "./chunk-Z2QCE6O6.js";
50
53
  import {
51
- oneInchWallet
52
- } from "./chunk-I7MKK24W.js";
53
- import {
54
- safeheronWallet
55
- } from "./chunk-FCIRHRFH.js";
54
+ roninWallet
55
+ } from "./chunk-63YLN6R5.js";
56
56
  import {
57
57
  safepalWallet
58
58
  } from "./chunk-AKAT37SI.js";
59
59
  import {
60
- metaMaskWallet
61
- } from "./chunk-ODRDT73B.js";
60
+ enkryptWallet
61
+ } from "./chunk-JJ4DXD7R.js";
62
62
  import {
63
63
  mewWallet
64
64
  } from "./chunk-CVYXTHZ6.js";
65
65
  import {
66
- coreWallet
67
- } from "./chunk-MOOW2AOC.js";
68
- import {
69
- oktoWallet
70
- } from "./chunk-MBQTOALG.js";
66
+ omniWallet
67
+ } from "./chunk-II6YBG2B.js";
71
68
  import {
72
69
  okxWallet
73
70
  } from "./chunk-5HXH52SO.js";
74
- import {
75
- omniWallet
76
- } from "./chunk-II6YBG2B.js";
77
71
  import {
78
72
  oneKeyWallet
79
73
  } from "./chunk-ZP2SV6KN.js";
@@ -81,14 +75,8 @@ import {
81
75
  phantomWallet
82
76
  } from "./chunk-KEVUI6AA.js";
83
77
  import {
84
- frameWallet
85
- } from "./chunk-KPVNJO3R.js";
86
- import {
87
- frontierWallet
88
- } from "./chunk-LCOUKF2U.js";
89
- import {
90
- imTokenWallet
91
- } from "./chunk-BMJOLT2N.js";
78
+ oneInchWallet
79
+ } from "./chunk-I7MKK24W.js";
92
80
  import {
93
81
  gateWallet
94
82
  } from "./chunk-YIJ5ULO3.js";
@@ -96,32 +84,44 @@ import {
96
84
  kresusWallet
97
85
  } from "./chunk-QQJKQCII.js";
98
86
  import {
99
- injectedWallet
100
- } from "./chunk-E5NYR4SS.js";
87
+ desigWallet
88
+ } from "./chunk-44CHUPEQ.js";
101
89
  import {
102
90
  ledgerWallet
103
91
  } from "./chunk-ZMHCZCGS.js";
104
92
  import {
105
- bybitWallet
106
- } from "./chunk-3AZNOY75.js";
93
+ frontierWallet
94
+ } from "./chunk-LCOUKF2U.js";
107
95
  import {
108
- clvWallet
109
- } from "./chunk-UHHA5V52.js";
96
+ injectedWallet
97
+ } from "./chunk-E5NYR4SS.js";
98
+ import {
99
+ metaMaskWallet
100
+ } from "./chunk-ODRDT73B.js";
101
+ import {
102
+ imTokenWallet
103
+ } from "./chunk-BMJOLT2N.js";
104
+ import {
105
+ bloomWallet
106
+ } from "./chunk-J64P6XK3.js";
110
107
  import {
111
108
  coin98Wallet
112
109
  } from "./chunk-ZXGMW3OS.js";
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-PNEDRY6O.js";
113
+ import {
114
+ coreWallet
115
+ } from "./chunk-MOOW2AOC.js";
116
+ import {
117
+ frameWallet
118
+ } from "./chunk-KPVNJO3R.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-KCTWDMQP.js";
119
122
  import {
120
- desigWallet
121
- } from "./chunk-44CHUPEQ.js";
122
- import {
123
- enkryptWallet
124
- } from "./chunk-JJ4DXD7R.js";
123
+ clvWallet
124
+ } from "./chunk-UHHA5V52.js";
125
125
  import {
126
126
  foxWallet
127
127
  } from "./chunk-WAOREEBE.js";
@@ -131,19 +131,19 @@ import {
131
131
  import {
132
132
  bifrostWallet
133
133
  } from "./chunk-KL5Z3XHJ.js";
134
+ import {
135
+ bitverseWallet
136
+ } from "./chunk-BQEOIDHP.js";
134
137
  import {
135
138
  bitskiWallet
136
139
  } from "./chunk-OCCT5PIN.js";
137
140
  import {
138
141
  bitgetWallet
139
142
  } from "./chunk-IEVZW3XR.js";
140
- import {
141
- bitverseWallet
142
- } from "./chunk-BQEOIDHP.js";
143
- import {
144
- bloomWallet
145
- } from "./chunk-J64P6XK3.js";
146
143
  import "./chunk-RETKWSKD.js";
144
+ import {
145
+ bybitWallet
146
+ } from "./chunk-3AZNOY75.js";
147
147
  import "./chunk-23WIEY36.js";
148
148
  import {
149
149
  braveWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
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
  "react-virtuoso": "4.10.1",
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "uuid": "^9.0.1",
94
- "@funkit/api-base": "1.3.0",
95
- "@funkit/wagmi-tools": "3.0.12",
96
- "@funkit/core": "2.2.1"
94
+ "@funkit/api-base": "1.3.1",
95
+ "@funkit/wagmi-tools": "3.0.14",
96
+ "@funkit/core": "2.2.3"
97
97
  },
98
98
  "repository": {
99
99
  "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,95 +0,0 @@
1
- "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-WRA2DVJ7.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-23WIEY36.js";
12
-
13
- // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
14
- var tokenPocketWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
19
- const shouldUseWalletConnect = !isTokenPocketInjected;
20
- const getUri = (uri) => {
21
- return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
22
- };
23
- return {
24
- id: "tokenPocket",
25
- name: "TokenPocket",
26
- rdns: "pro.tokenpocket",
27
- iconUrl: async () => (await import("./tokenPocketWallet-BVMBOYTC.js")).default,
28
- iconBackground: "#2980FE",
29
- installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
30
- downloadUrls: {
31
- chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
32
- browserExtension: "https://extension.tokenpocket.pro/",
33
- android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
34
- ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
35
- qrCode: "https://tokenpocket.pro/en/download/app",
36
- mobile: "https://tokenpocket.pro/en/download/app"
37
- },
38
- mobile: {
39
- getUri: shouldUseWalletConnect ? getUri : void 0
40
- },
41
- qrCode: shouldUseWalletConnect ? {
42
- getUri,
43
- instructions: {
44
- learnMoreUrl: "https://help.tokenpocket.pro/en/",
45
- steps: [
46
- {
47
- description: "wallet_connectors.token_pocket.qr_code.step1.description",
48
- step: "install",
49
- title: "wallet_connectors.token_pocket.qr_code.step1.title"
50
- },
51
- {
52
- description: "wallet_connectors.token_pocket.qr_code.step2.description",
53
- step: "create",
54
- title: "wallet_connectors.token_pocket.qr_code.step2.title"
55
- },
56
- {
57
- description: "wallet_connectors.token_pocket.qr_code.step3.description",
58
- step: "scan",
59
- title: "wallet_connectors.token_pocket.qr_code.step3.title"
60
- }
61
- ]
62
- }
63
- } : void 0,
64
- extension: {
65
- instructions: {
66
- learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
67
- steps: [
68
- {
69
- description: "wallet_connectors.token_pocket.extension.step1.description",
70
- step: "install",
71
- title: "wallet_connectors.token_pocket.extension.step1.title"
72
- },
73
- {
74
- description: "wallet_connectors.token_pocket.extension.step2.description",
75
- step: "create",
76
- title: "wallet_connectors.token_pocket.extension.step2.title"
77
- },
78
- {
79
- description: "wallet_connectors.token_pocket.extension.step3.description",
80
- step: "refresh",
81
- title: "wallet_connectors.token_pocket.extension.step3.title"
82
- }
83
- ]
84
- }
85
- },
86
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
87
- projectId,
88
- walletConnectParameters
89
- }) : getInjectedConnector({ flag: "isTokenPocket" })
90
- };
91
- };
92
-
93
- export {
94
- tokenPocketWallet
95
- };
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-WRA2DVJ7.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-ORF3DABG.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,95 +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/coreWallet/coreWallet.ts
11
- var coreWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCoreInjected = hasInjectedProvider({
16
- namespace: "avalanche",
17
- flag: "isAvalanche"
18
- });
19
- const shouldUseWalletConnect = !isCoreInjected;
20
- return {
21
- id: "core",
22
- name: "Core",
23
- rdns: "app.core.extension",
24
- iconUrl: async () => (await import("./coreWallet-52SXITOT.js")).default,
25
- iconBackground: "#1A1A1C",
26
- installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
29
- ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
30
- mobile: "https://core.app/?downloadCoreMobile=1",
31
- qrCode: "https://core.app/?downloadCoreMobile=1",
32
- chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
33
- browserExtension: "https://extension.core.app/"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
37
- },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
42
- steps: [
43
- {
44
- description: "wallet_connectors.core.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.core.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.core.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.core.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.core.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.core.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://extension.core.app/",
64
- steps: [
65
- {
66
- description: "wallet_connectors.core.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.core.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.core.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.core.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.core.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.core.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- }) : getInjectedConnector({
87
- namespace: "avalanche",
88
- flag: "isAvalanche"
89
- })
90
- };
91
- };
92
-
93
- export {
94
- coreWallet
95
- };