@funkit/connect 6.0.3 → 6.0.5

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 (27) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/domains/relay.d.ts +7 -13
  3. package/dist/hooks/queries/useWithdrawalQuote.d.ts +6 -0
  4. package/dist/index.js +213 -174
  5. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
  6. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +6 -1
  7. package/dist/utils/flags/config.d.ts +3 -26
  8. package/dist/wallets/walletConnectors/index.js +41 -41
  9. package/package.json +5 -5
  10. package/dist/wallets/walletConnectors/chunk-2GJQ4XZQ.js +0 -87
  11. package/dist/wallets/walletConnectors/chunk-3CICVJUN.js +0 -70
  12. package/dist/wallets/walletConnectors/chunk-5W7VDOCL.js +0 -99
  13. package/dist/wallets/walletConnectors/chunk-AFXHGWBH.js +0 -94
  14. package/dist/wallets/walletConnectors/chunk-CJGUM55H.js +0 -92
  15. package/dist/wallets/walletConnectors/chunk-CNPKISHN.js +0 -66
  16. package/dist/wallets/walletConnectors/chunk-EC6CHBSZ.js +0 -110
  17. package/dist/wallets/walletConnectors/chunk-J3LI3FYZ.js +0 -93
  18. package/dist/wallets/walletConnectors/chunk-JCHN6A47.js +0 -95
  19. package/dist/wallets/walletConnectors/chunk-KIDC67XJ.js +0 -96
  20. package/dist/wallets/walletConnectors/chunk-LNEC5RNX.js +0 -98
  21. package/dist/wallets/walletConnectors/chunk-Q3H3TRBS.js +0 -100
  22. package/dist/wallets/walletConnectors/chunk-QLVVUKYB.js +0 -92
  23. package/dist/wallets/walletConnectors/chunk-RKPCWHXL.js +0 -106
  24. package/dist/wallets/walletConnectors/chunk-UIASLGLV.js +0 -69
  25. package/dist/wallets/walletConnectors/chunk-UYGJO62F.js +0 -218
  26. package/dist/wallets/walletConnectors/chunk-VWCLFMWJ.js +0 -96
  27. package/dist/wallets/walletConnectors/chunk-ZSI5N4VV.js +0 -103
@@ -9,7 +9,8 @@ export declare enum ConfirmationErrorCode {
9
9
  GENERIC_ERROR = "GENERIC_ERROR",
10
10
  RISK_ERROR = "RISK_ERROR",
11
11
  SIGNATURE_DENIED = "SIGNATURE_DENIED",
12
- SWITCH_CHAIN_ERROR = "SWITCH_CHAIN_ERROR"
12
+ SWITCH_CHAIN_ERROR = "SWITCH_CHAIN_ERROR",
13
+ WALLET_CLIENT_UNDEFINED = "WALLET_CLIENT_UNDEFINED"
13
14
  }
14
15
  interface UseCheckoutConfirmationOptions {
15
16
  onError(error: CheckoutConfirmationError): void;
@@ -78,6 +78,11 @@ export type AmountInputError = {
78
78
  /** Input is empty */
79
79
  type: 'noInput';
80
80
  };
81
- export declare function initializeState({ checkoutConfig, maxUsd, minUsd, paymentMethod, sourceHolding, unitPrice, defaultAmount, fiatCurrency, quickOptions, }: AmountInputInitOptions): AmountInputState;
81
+ /**
82
+ * Calculate initial input amount for account balance deposits.
83
+ * Return half the balance and round up to nearest 10, 100, 1000 etc
84
+ */
85
+ export declare function calcInitialFiatAmount(balance: number): number;
86
+ export declare function initializeState({ checkoutConfig, maxUsd, minUsd, paymentMethod, sourceHolding, unitPrice: realUnitPrice, defaultAmount, fiatCurrency, quickOptions, }: AmountInputInitOptions): AmountInputState;
82
87
  export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
83
88
  export declare function getDerivedState(state: AmountInputState): AmountInputDerivedState;
@@ -185,37 +185,14 @@ export declare const flagConfig: {
185
185
  is_relay_bypass_enabled: {
186
186
  type: "boolean";
187
187
  default_value: false;
188
- overrides: ({
189
- value: true;
190
- if_any: ({
191
- key: "apiKey";
192
- type: "isAnyOf";
193
- values: string[];
194
- } | {
195
- key: "userId";
196
- type: "isAnyOf";
197
- values: string[];
198
- })[];
199
- if_all?: undefined;
200
- } | {
188
+ overrides: {
201
189
  value: true;
202
- if_all: ({
203
- key: "userId";
204
- type: "pctRollout";
205
- pct: number;
206
- values?: undefined;
207
- } | {
208
- key: "apiKey";
209
- type: "isAnyOf";
210
- values: string[];
211
- pct?: undefined;
212
- })[];
213
190
  if_any: {
214
- key: "userId";
191
+ key: "apiKey";
215
192
  type: "isAnyOf";
216
193
  values: string[];
217
194
  }[];
218
- })[];
195
+ }[];
219
196
  };
220
197
  relay_bypass_source_chains_and_assets: {
221
198
  type: "string";
@@ -2,39 +2,39 @@
2
2
  import {
3
3
  zerionWallet
4
4
  } from "./chunk-SULRQO27.js";
5
+ import {
6
+ walletConnectWallet
7
+ } from "./chunk-NP5QGWNL.js";
5
8
  import {
6
9
  xdefiWallet
7
10
  } from "./chunk-BOU4WKRZ.js";
8
- import {
9
- zealWallet
10
- } from "./chunk-RNBEDQHF.js";
11
11
  import {
12
12
  tahoWallet
13
13
  } from "./chunk-ZZZRUXZE.js";
14
- import {
15
- subWallet
16
- } from "./chunk-JWFF4AAL.js";
17
- import {
18
- talismanWallet
19
- } from "./chunk-DRO6WYMM.js";
20
14
  import {
21
15
  tokenPocketWallet
22
16
  } from "./chunk-2L43XSW3.js";
17
+ import {
18
+ subWallet
19
+ } from "./chunk-JWFF4AAL.js";
23
20
  import {
24
21
  tokenaryWallet
25
22
  } from "./chunk-D6AOOO5F.js";
26
23
  import {
27
24
  trustWallet
28
25
  } from "./chunk-VYBAYMP3.js";
26
+ import {
27
+ talismanWallet
28
+ } from "./chunk-DRO6WYMM.js";
29
29
  import {
30
30
  uniswapWallet
31
31
  } from "./chunk-LH7BMNFZ.js";
32
32
  import {
33
- walletConnectWallet
34
- } from "./chunk-NP5QGWNL.js";
33
+ zealWallet
34
+ } from "./chunk-RNBEDQHF.js";
35
35
  import {
36
- oneInchWallet
37
- } from "./chunk-OESTDX6I.js";
36
+ omniWallet
37
+ } from "./chunk-7CUY5G6R.js";
38
38
  import {
39
39
  rainbowWallet
40
40
  } from "./chunk-2KUBG3S6.js";
@@ -45,23 +45,23 @@ import {
45
45
  ramperWallet
46
46
  } from "./chunk-BYXPFMI7.js";
47
47
  import {
48
- roninWallet
49
- } from "./chunk-NWIQNBJU.js";
48
+ safeWallet
49
+ } from "./chunk-BQQQL6UD.js";
50
50
  import {
51
51
  safeheronWallet
52
52
  } from "./chunk-RZIO5TFF.js";
53
53
  import {
54
- safeWallet
55
- } from "./chunk-BQQQL6UD.js";
54
+ roninWallet
55
+ } from "./chunk-NWIQNBJU.js";
56
56
  import {
57
57
  safepalWallet
58
58
  } from "./chunk-NT2HYJKW.js";
59
- import {
60
- metaMaskWallet
61
- } from "./chunk-2HYNUNAS.js";
62
59
  import {
63
60
  ledgerWallet
64
61
  } from "./chunk-BRBKM4PW.js";
62
+ import {
63
+ metaMaskWallet
64
+ } from "./chunk-2HYNUNAS.js";
65
65
  import {
66
66
  mewWallet
67
67
  } from "./chunk-OL5ZO7E4.js";
@@ -71,12 +71,12 @@ import {
71
71
  import {
72
72
  okxWallet
73
73
  } from "./chunk-TDIEHTMB.js";
74
- import {
75
- omniWallet
76
- } from "./chunk-7CUY5G6R.js";
77
74
  import {
78
75
  oneKeyWallet
79
76
  } from "./chunk-SHBUZ7U7.js";
77
+ import {
78
+ oneInchWallet
79
+ } from "./chunk-OESTDX6I.js";
80
80
  import {
81
81
  phantomWallet
82
82
  } from "./chunk-362NXNTM.js";
@@ -86,24 +86,21 @@ import {
86
86
  import {
87
87
  frameWallet
88
88
  } from "./chunk-IFON7E6U.js";
89
- import {
90
- gateWallet
91
- } from "./chunk-FKJJQNKX.js";
92
89
  import {
93
90
  frontierWallet
94
91
  } from "./chunk-TCAGNB4B.js";
95
- import {
96
- kresusWallet
97
- } from "./chunk-MJXPRJZT.js";
98
92
  import {
99
93
  imTokenWallet
100
94
  } from "./chunk-COZ7MIQS.js";
95
+ import {
96
+ gateWallet
97
+ } from "./chunk-FKJJQNKX.js";
101
98
  import {
102
99
  injectedWallet
103
100
  } from "./chunk-XWUJE7MW.js";
104
101
  import {
105
- coin98Wallet
106
- } from "./chunk-OBOVHCEI.js";
102
+ kresusWallet
103
+ } from "./chunk-MJXPRJZT.js";
107
104
  import {
108
105
  bybitWallet
109
106
  } from "./chunk-2STUC6QL.js";
@@ -111,35 +108,38 @@ import {
111
108
  clvWallet
112
109
  } from "./chunk-M3NZ6R2E.js";
113
110
  import {
114
- coinbaseWallet
115
- } from "./chunk-H4IRCEZN.js";
111
+ coin98Wallet
112
+ } from "./chunk-OBOVHCEI.js";
116
113
  import {
117
114
  coreWallet
118
115
  } from "./chunk-VR4TBQ6S.js";
116
+ import {
117
+ coinbaseWallet
118
+ } from "./chunk-H4IRCEZN.js";
119
+ import {
120
+ desigWallet
121
+ } from "./chunk-OPAZMNA7.js";
119
122
  import {
120
123
  dawnWallet
121
124
  } from "./chunk-HWPKCIBE.js";
122
125
  import {
123
126
  enkryptWallet
124
127
  } from "./chunk-OLOIXTYS.js";
125
- import {
126
- desigWallet
127
- } from "./chunk-OPAZMNA7.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
- import {
132
- bitgetWallet
133
- } from "./chunk-TDAVGY5F.js";
134
131
  import {
135
132
  bifrostWallet
136
133
  } from "./chunk-A5N6B5UW.js";
137
134
  import {
138
- bitskiWallet
139
- } from "./chunk-HS3C7OQV.js";
135
+ bitgetWallet
136
+ } from "./chunk-TDAVGY5F.js";
140
137
  import {
141
138
  bitverseWallet
142
139
  } from "./chunk-3HZRRP4Y.js";
140
+ import {
141
+ bitskiWallet
142
+ } from "./chunk-HS3C7OQV.js";
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-S27IADFU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -89,12 +89,12 @@
89
89
  "ua-parser-js": "^1.0.37",
90
90
  "use-debounce": "^10.0.5",
91
91
  "uuid": "^9.0.1",
92
- "@funkit/api-base": "1.9.12",
93
- "@funkit/fun-relay": "1.0.0",
92
+ "@funkit/api-base": "1.9.13",
93
+ "@funkit/fun-relay": "1.0.1",
94
94
  "@funkit/chains": "0.3.7",
95
+ "@funkit/wagmi-tools": "3.0.59",
95
96
  "@funkit/utils": "1.1.8",
96
- "@funkit/core": "2.3.36",
97
- "@funkit/wagmi-tools": "3.0.58"
97
+ "@funkit/core": "2.3.37"
98
98
  },
99
99
  "repository": {
100
100
  "type": "git",
@@ -1,87 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-DNSG5Q7V.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
- var clvWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
16
- const shouldUseWalletConnect = !isCLVInjected;
17
- return {
18
- id: "clv",
19
- name: "CLV",
20
- iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
21
- iconBackground: "#fff",
22
- iconAccent: "#BDFDE2",
23
- installed: isCLVInjected,
24
- downloadUrls: {
25
- chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
26
- ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
27
- mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
28
- qrCode: "https://clv.org/"
29
- },
30
- extension: {
31
- instructions: {
32
- learnMoreUrl: "https://clv.org/",
33
- steps: [
34
- {
35
- description: "wallet_connectors.clv.extension.step1.description",
36
- step: "install",
37
- title: "wallet_connectors.clv.extension.step1.title"
38
- },
39
- {
40
- description: "wallet_connectors.clv.extension.step2.description",
41
- step: "create",
42
- title: "wallet_connectors.clv.extension.step2.title"
43
- },
44
- {
45
- description: "wallet_connectors.clv.extension.step3.description",
46
- step: "refresh",
47
- title: "wallet_connectors.clv.extension.step3.title"
48
- }
49
- ]
50
- }
51
- },
52
- mobile: {
53
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
54
- },
55
- qrCode: shouldUseWalletConnect ? {
56
- getUri: (uri) => uri,
57
- instructions: {
58
- learnMoreUrl: "https://clv.org/",
59
- steps: [
60
- {
61
- description: "wallet_connectors.clv.qr_code.step1.description",
62
- step: "install",
63
- title: "wallet_connectors.clv.qr_code.step1.title"
64
- },
65
- {
66
- description: "wallet_connectors.clv.qr_code.step2.description",
67
- step: "create",
68
- title: "wallet_connectors.clv.qr_code.step2.title"
69
- },
70
- {
71
- description: "wallet_connectors.clv.qr_code.step3.description",
72
- step: "scan",
73
- title: "wallet_connectors.clv.qr_code.step3.title"
74
- }
75
- ]
76
- }
77
- } : void 0,
78
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
79
- projectId,
80
- walletConnectParameters
81
- }) : getInjectedConnector({ namespace: "clover" })
82
- };
83
- };
84
-
85
- export {
86
- clvWallet
87
- };
@@ -1,70 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-DNSG5Q7V.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
11
- import { isAndroid, isIOS } from "@funkit/utils";
12
- var rainbowWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
17
- const shouldUseWalletConnect = !isRainbowInjected;
18
- const getUri = (uri) => {
19
- return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
20
- uri
21
- )}&connector=rainbowkit`;
22
- };
23
- return {
24
- id: "rainbow",
25
- name: "Rainbow",
26
- rdns: "me.rainbow",
27
- iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
28
- iconBackground: "#0c2f78",
29
- installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
30
- downloadUrls: {
31
- android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
32
- ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
33
- mobile: "https://rainbow.download?utm_source=rainbowkit",
34
- qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
35
- browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
36
- },
37
- mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri,
40
- instructions: {
41
- learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
42
- steps: [
43
- {
44
- description: "wallet_connectors.rainbow.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.rainbow.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.rainbow.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.rainbow.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.rainbow.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.rainbow.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
62
- projectId,
63
- walletConnectParameters
64
- }) : getInjectedConnector({ flag: "isRainbow" })
65
- };
66
- };
67
-
68
- export {
69
- rainbowWallet
70
- };
@@ -1,99 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-DNSG5Q7V.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var bitgetWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isBitKeepInjected = hasInjectedProvider({
17
- namespace: "bitkeep.ethereum",
18
- flag: "isBitKeep"
19
- });
20
- const shouldUseWalletConnect = !isBitKeepInjected;
21
- return {
22
- id: "bitget",
23
- name: "Bitget Wallet",
24
- rdns: "com.bitget.web3",
25
- iconUrl: async () => (await import("./bitgetWallet-CBQAJOIK.js")).default,
26
- iconAccent: "#f6851a",
27
- iconBackground: "#fff",
28
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
29
- downloadUrls: {
30
- android: "https://web3.bitget.com/en/wallet-download?type=0",
31
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
32
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
33
- qrCode: "https://web3.bitget.com/en/wallet-download",
34
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
35
- browserExtension: "https://web3.bitget.com/en/wallet-download"
36
- },
37
- extension: {
38
- instructions: {
39
- learnMoreUrl: "https://web3.bitget.com/en/academy",
40
- steps: [
41
- {
42
- description: "wallet_connectors.bitget.extension.step1.description",
43
- step: "install",
44
- title: "wallet_connectors.bitget.extension.step1.title"
45
- },
46
- {
47
- description: "wallet_connectors.bitget.extension.step2.description",
48
- step: "create",
49
- title: "wallet_connectors.bitget.extension.step2.title"
50
- },
51
- {
52
- description: "wallet_connectors.bitget.extension.step3.description",
53
- step: "refresh",
54
- title: "wallet_connectors.bitget.extension.step3.description"
55
- }
56
- ]
57
- }
58
- },
59
- mobile: {
60
- getUri: shouldUseWalletConnect ? (uri) => {
61
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
62
- } : void 0
63
- },
64
- qrCode: shouldUseWalletConnect ? {
65
- getUri: (uri) => uri,
66
- instructions: {
67
- learnMoreUrl: "https://web3.bitget.com/en/academy",
68
- steps: [
69
- {
70
- description: "wallet_connectors.bitget.qr_code.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.bitget.qr_code.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.bitget.qr_code.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.bitget.qr_code.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.bitget.qr_code.step3.description",
81
- step: "scan",
82
- title: "wallet_connectors.bitget.qr_code.step3.title"
83
- }
84
- ]
85
- }
86
- } : void 0,
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
- projectId,
89
- walletConnectParameters
90
- }) : getInjectedConnector({
91
- namespace: "bitkeep.ethereum",
92
- flag: "isBitKeep"
93
- })
94
- };
95
- };
96
-
97
- export {
98
- bitgetWallet
99
- };
@@ -1,94 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-DNSG5Q7V.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
- };