@funkit/connect 3.4.2 → 3.4.4

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 +24 -0
  2. package/dist/hooks/useWalletAssets.d.ts +3 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +739 -692
  5. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  6. package/dist/modals/CheckoutModal/TransferToken.d.ts +1 -1
  7. package/dist/providers/GeneralWalletProvider.d.ts +1 -0
  8. package/dist/utils/assets.d.ts +1 -0
  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
  };
@@ -13,5 +13,5 @@ export interface TokenTransferSourceChainsAndAssets {
13
13
  }
14
14
  export declare function transferTokenNext(state: TransferTokenState, _: TransferTokenNext): StepTransition[FunCheckoutStep.TRANSFER_TOKEN];
15
15
  type Props = StateTransitionProps<TransferTokenState, TransferTokenNext>;
16
- export declare function TransferToken({ onNext }: Props): React.JSX.Element;
16
+ export declare function TransferToken({ onBack }: Props): React.JSX.Element;
17
17
  export {};
@@ -80,6 +80,7 @@ export declare const useFunkitAccount: () => {
80
80
  isDisconnected: false;
81
81
  status: "connecting";
82
82
  };
83
+ export declare const useFunkitUserInfo: () => FunkitUserInfo;
83
84
  /**
84
85
  * Replacement for wagmi's `disconnect` from `useDisconnect`
85
86
  */
@@ -1,6 +1,7 @@
1
1
  import { PaymentMethod } from '../domains/paymentMethods';
2
2
  import { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
3
3
  import { FlagValues } from '../providers/FunkitFlagsProvider';
4
+ export declare const ASSETS_LOW_VALUE_THRESHOLD = 0.1;
4
5
  export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number, decimals: number) => number;
5
6
  export declare const isAssetUsableToPayForCheckout: (flags: FlagValues, checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string, isWeb2Login: boolean, isWeb3Login: boolean) => {
6
7
  isUsable: boolean;
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import {
3
- zealWallet
4
- } from "./chunk-BUUV6BS4.js";
5
2
  import {
6
3
  zerionWallet
7
4
  } from "./chunk-DBP432DI.js";
8
5
  import {
9
- oneInchWallet
10
- } from "./chunk-I7MKK24W.js";
6
+ zealWallet
7
+ } from "./chunk-BUUV6BS4.js";
11
8
  import {
12
- talismanWallet
13
- } from "./chunk-OTXHQMSG.js";
9
+ uniswapWallet
10
+ } from "./chunk-QFRZGNNV.js";
11
+ import {
12
+ subWallet
13
+ } from "./chunk-N3ELQYCY.js";
14
14
  import {
15
15
  tahoWallet
16
16
  } from "./chunk-6AYBA6IH.js";
@@ -20,21 +20,21 @@ import {
20
20
  import {
21
21
  tokenPocketWallet
22
22
  } from "./chunk-ISJYPD3T.js";
23
+ import {
24
+ talismanWallet
25
+ } from "./chunk-OTXHQMSG.js";
23
26
  import {
24
27
  trustWallet
25
28
  } from "./chunk-X45WXZDO.js";
26
29
  import {
27
- uniswapWallet
28
- } from "./chunk-QFRZGNNV.js";
30
+ walletConnectWallet
31
+ } from "./chunk-OFU3PEVT.js";
29
32
  import {
30
33
  xdefiWallet
31
34
  } from "./chunk-RVIZMVFR.js";
32
35
  import {
33
- walletConnectWallet
34
- } from "./chunk-OFU3PEVT.js";
35
- import {
36
- rabbyWallet
37
- } from "./chunk-H5LLXNOI.js";
36
+ oneInchWallet
37
+ } from "./chunk-I7MKK24W.js";
38
38
  import {
39
39
  rainbowWallet
40
40
  } from "./chunk-OHJBALD3.js";
@@ -42,29 +42,29 @@ import {
42
42
  ramperWallet
43
43
  } from "./chunk-TKXQYHWJ.js";
44
44
  import {
45
- roninWallet
46
- } from "./chunk-63YLN6R5.js";
45
+ rabbyWallet
46
+ } from "./chunk-H5LLXNOI.js";
47
+ import {
48
+ safeheronWallet
49
+ } from "./chunk-FCIRHRFH.js";
47
50
  import {
48
51
  safeWallet
49
52
  } from "./chunk-Z2QCE6O6.js";
50
53
  import {
51
- safeheronWallet
52
- } from "./chunk-FCIRHRFH.js";
54
+ roninWallet
55
+ } from "./chunk-63YLN6R5.js";
53
56
  import {
54
57
  safepalWallet
55
58
  } from "./chunk-AKAT37SI.js";
56
- import {
57
- subWallet
58
- } from "./chunk-N3ELQYCY.js";
59
- import {
60
- ledgerWallet
61
- } from "./chunk-ZMHCZCGS.js";
62
59
  import {
63
60
  mewWallet
64
61
  } from "./chunk-CVYXTHZ6.js";
65
62
  import {
66
63
  frontierWallet
67
64
  } from "./chunk-LCOUKF2U.js";
65
+ import {
66
+ oktoWallet
67
+ } from "./chunk-MBQTOALG.js";
68
68
  import {
69
69
  okxWallet
70
70
  } from "./chunk-5HXH52SO.js";
@@ -72,8 +72,8 @@ import {
72
72
  omniWallet
73
73
  } from "./chunk-II6YBG2B.js";
74
74
  import {
75
- oktoWallet
76
- } from "./chunk-MBQTOALG.js";
75
+ desigWallet
76
+ } from "./chunk-44CHUPEQ.js";
77
77
  import {
78
78
  oneKeyWallet
79
79
  } from "./chunk-ZP2SV6KN.js";
@@ -81,29 +81,26 @@ import {
81
81
  phantomWallet
82
82
  } from "./chunk-KEVUI6AA.js";
83
83
  import {
84
- foxWallet
85
- } from "./chunk-WAOREEBE.js";
86
- import {
87
- frameWallet
88
- } from "./chunk-KPVNJO3R.js";
84
+ imTokenWallet
85
+ } from "./chunk-BMJOLT2N.js";
89
86
  import {
90
87
  gateWallet
91
88
  } from "./chunk-YIJ5ULO3.js";
92
89
  import {
93
- imTokenWallet
94
- } from "./chunk-BMJOLT2N.js";
90
+ injectedWallet
91
+ } from "./chunk-E5NYR4SS.js";
92
+ import {
93
+ bitverseWallet
94
+ } from "./chunk-BQEOIDHP.js";
95
95
  import {
96
96
  kresusWallet
97
97
  } from "./chunk-QQJKQCII.js";
98
- import {
99
- injectedWallet
100
- } from "./chunk-E5NYR4SS.js";
101
98
  import {
102
99
  metaMaskWallet
103
100
  } from "./chunk-ODRDT73B.js";
104
101
  import {
105
- bybitWallet
106
- } from "./chunk-3AZNOY75.js";
102
+ ledgerWallet
103
+ } from "./chunk-ZMHCZCGS.js";
107
104
  import {
108
105
  coin98Wallet
109
106
  } from "./chunk-ZXGMW3OS.js";
@@ -111,42 +108,45 @@ import {
111
108
  coinbaseWallet
112
109
  } from "./chunk-PNEDRY6O.js";
113
110
  import {
114
- bitskiWallet
115
- } from "./chunk-OCCT5PIN.js";
116
- import {
117
- coreWallet
118
- } from "./chunk-MOOW2AOC.js";
119
- import {
120
- desigWallet
121
- } from "./chunk-44CHUPEQ.js";
111
+ clvWallet
112
+ } from "./chunk-UHHA5V52.js";
122
113
  import {
123
114
  dawnWallet
124
115
  } from "./chunk-KCTWDMQP.js";
116
+ import {
117
+ coreWallet
118
+ } from "./chunk-MOOW2AOC.js";
125
119
  import {
126
120
  enkryptWallet
127
121
  } from "./chunk-JJ4DXD7R.js";
122
+ import {
123
+ foxWallet
124
+ } from "./chunk-WAOREEBE.js";
125
+ import {
126
+ frameWallet
127
+ } from "./chunk-KPVNJO3R.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-ZHFISYEQ.js";
131
+ import {
132
+ bifrostWallet
133
+ } from "./chunk-KL5Z3XHJ.js";
131
134
  import {
132
135
  bitgetWallet
133
136
  } from "./chunk-IEVZW3XR.js";
134
137
  import {
135
- bifrostWallet
136
- } from "./chunk-KL5Z3XHJ.js";
138
+ bitskiWallet
139
+ } from "./chunk-OCCT5PIN.js";
137
140
  import {
138
141
  bloomWallet
139
142
  } from "./chunk-J64P6XK3.js";
140
143
  import "./chunk-RETKWSKD.js";
141
- import {
142
- bitverseWallet
143
- } from "./chunk-BQEOIDHP.js";
144
144
  import {
145
145
  braveWallet
146
146
  } from "./chunk-NUEOWEZS.js";
147
147
  import {
148
- clvWallet
149
- } from "./chunk-UHHA5V52.js";
148
+ bybitWallet
149
+ } from "./chunk-3AZNOY75.js";
150
150
  import "./chunk-23WIEY36.js";
151
151
  import "./chunk-WRA2DVJ7.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
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/core": "2.2.2",
96
- "@funkit/wagmi-tools": "3.0.13"
94
+ "@funkit/api-base": "1.3.1",
95
+ "@funkit/core": "2.2.3",
96
+ "@funkit/wagmi-tools": "3.0.14"
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
- };