@funkit/connect 4.1.4 → 4.1.6

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 (35) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/CopyAddress/CopyIconButton.d.ts +5 -0
  3. package/dist/components/FunNotificationBanner/FunNotificationBanner.css.d.ts +3 -0
  4. package/dist/components/FunNotificationBanner/FunNotificationBanner.d.ts +13 -0
  5. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.css.d.ts +1 -0
  6. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +7 -0
  7. package/dist/components/FunNotificationBanner/FunNotificationBannerSummary.css.d.ts +1 -0
  8. package/dist/components/FunNotificationBanner/FunNotificationBannerSummary.d.ts +11 -0
  9. package/dist/components/Icons/CopyDoubleRoundedSquareIcon.d.ts +3 -1
  10. package/dist/index.js +953 -852
  11. package/dist/modals/CheckoutModal/MeshVerification.d.ts +4 -0
  12. package/dist/providers/FunkitMeshProvider.d.ts +1 -1
  13. package/dist/providers/GeneralWalletProvider.d.ts +8 -8
  14. package/dist/wallets/walletConnectors/index.js +60 -60
  15. package/package.json +5 -5
  16. package/dist/components/CopyAddress/CopyDisplayedAddress.d.ts +0 -5
  17. package/dist/components/CopyAddress/LabelledCopyAddressButton.d.ts +0 -6
  18. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  19. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  20. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  21. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  22. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  23. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  24. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  25. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  26. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  27. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  28. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  29. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  30. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  31. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  32. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  33. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  34. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  35. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Address } from 'viem';
3
+ import { type MeshExchangeType } from '~/consts/mesh';
3
4
  import type { PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
4
5
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
5
6
  export type MeshVerificationState = CheckoutModalCommonState & {
@@ -7,6 +8,9 @@ export type MeshVerificationState = CheckoutModalCommonState & {
7
8
  };
8
9
  export type MeshVerificationNext = {
9
10
  depositAddress: Address;
11
+ } | {
12
+ depositAddress: null;
13
+ brokerType: MeshExchangeType;
10
14
  };
11
15
  export declare const MeshVerificationInfo: ModalStepInfo<FunCheckoutStep.MESH_VERIFICATION>;
12
16
  export declare function MeshVerification({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MESH_VERIFICATION>): React.JSX.Element;
@@ -11,7 +11,7 @@ export declare function FunkitMeshProvider({ children }: {
11
11
  export declare function useFunkitMesh(): {
12
12
  getActiveConnection: (brokerType: MeshExchangeType) => MeshConnectionInfo | null;
13
13
  getFirstActiveConnection: () => MeshConnectionInfo | null;
14
- unlinkBrokerage: (brokerType: MeshExchangeType) => void;
14
+ unlinkBrokerage: (brokerType: MeshExchangeType) => Promise<void>;
15
15
  };
16
16
  interface FunkitMeshHook {
17
17
  onBeforeConnect(): void;
@@ -96,15 +96,15 @@ export declare const useFunkitDisconnect: () => {
96
96
  error: null;
97
97
  data: undefined;
98
98
  status: "idle";
99
- isPaused: boolean;
100
- context: unknown;
101
99
  isError: false;
102
100
  isPending: false;
103
101
  isSuccess: false;
104
102
  failureCount: number;
105
103
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
104
+ isPaused: boolean;
106
105
  variables: undefined;
107
106
  isIdle: true;
107
+ context: unknown;
108
108
  submittedAt: number;
109
109
  connectors: readonly import("wagmi").Connector[];
110
110
  } | {
@@ -114,15 +114,15 @@ export declare const useFunkitDisconnect: () => {
114
114
  error: null;
115
115
  data: undefined;
116
116
  status: "pending";
117
- isPaused: boolean;
118
- context: unknown;
119
117
  isError: false;
120
118
  isPending: true;
121
119
  isSuccess: false;
122
120
  failureCount: number;
123
121
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
122
+ isPaused: boolean;
124
123
  variables: import("wagmi/query").DisconnectVariables;
125
124
  isIdle: false;
125
+ context: unknown;
126
126
  submittedAt: number;
127
127
  connectors: readonly import("wagmi").Connector[];
128
128
  } | {
@@ -132,15 +132,15 @@ export declare const useFunkitDisconnect: () => {
132
132
  error: import("@wagmi/core").DisconnectErrorType;
133
133
  data: undefined;
134
134
  status: "error";
135
- isPaused: boolean;
136
- context: unknown;
137
135
  isError: true;
138
136
  isPending: false;
139
137
  isSuccess: false;
140
138
  failureCount: number;
141
139
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
140
+ isPaused: boolean;
142
141
  variables: import("wagmi/query").DisconnectVariables;
143
142
  isIdle: false;
143
+ context: unknown;
144
144
  submittedAt: number;
145
145
  connectors: readonly import("wagmi").Connector[];
146
146
  } | {
@@ -150,15 +150,15 @@ export declare const useFunkitDisconnect: () => {
150
150
  error: null;
151
151
  data: void;
152
152
  status: "success";
153
- isPaused: boolean;
154
- context: unknown;
155
153
  isError: false;
156
154
  isPending: false;
157
155
  isSuccess: true;
158
156
  failureCount: number;
159
157
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
158
+ isPaused: boolean;
160
159
  variables: import("wagmi/query").DisconnectVariables;
161
160
  isIdle: false;
161
+ context: unknown;
162
162
  submittedAt: number;
163
163
  connectors: readonly import("wagmi").Connector[];
164
164
  };
@@ -1,109 +1,106 @@
1
1
  "use client";
2
2
  import {
3
- tahoWallet
4
- } from "./chunk-6P2EMPZI.js";
5
- import {
6
- ledgerWallet
7
- } from "./chunk-BRBKM4PW.js";
3
+ xdefiWallet
4
+ } from "./chunk-NO7XMBB5.js";
8
5
  import {
9
- zerionWallet
10
- } from "./chunk-AXWP3GD4.js";
6
+ zealWallet
7
+ } from "./chunk-JROWU5BP.js";
11
8
  import {
12
- tokenaryWallet
13
- } from "./chunk-SLOIIJGP.js";
9
+ uniswapWallet
10
+ } from "./chunk-LH7BMNFZ.js";
14
11
  import {
15
12
  talismanWallet
16
13
  } from "./chunk-ABFSXBE6.js";
17
14
  import {
18
- uniswapWallet
19
- } from "./chunk-LH7BMNFZ.js";
15
+ roninWallet
16
+ } from "./chunk-63YLN6R5.js";
17
+ import {
18
+ tokenPocketWallet
19
+ } from "./chunk-IDKVN5CF.js";
20
+ import {
21
+ tokenaryWallet
22
+ } from "./chunk-SLOIIJGP.js";
20
23
  import {
21
24
  trustWallet
22
25
  } from "./chunk-ISIBREBO.js";
26
+ import {
27
+ zerionWallet
28
+ } from "./chunk-AXWP3GD4.js";
29
+ import {
30
+ tahoWallet
31
+ } from "./chunk-6P2EMPZI.js";
23
32
  import {
24
33
  walletConnectWallet
25
34
  } from "./chunk-NP5QGWNL.js";
26
35
  import {
27
- zealWallet
28
- } from "./chunk-JROWU5BP.js";
36
+ phantomWallet
37
+ } from "./chunk-ZSVTX6EK.js";
29
38
  import {
30
- xdefiWallet
31
- } from "./chunk-NO7XMBB5.js";
39
+ rainbowWallet
40
+ } from "./chunk-2UCNRD7H.js";
32
41
  import {
33
- tokenPocketWallet
34
- } from "./chunk-IDKVN5CF.js";
42
+ rabbyWallet
43
+ } from "./chunk-BVX4XGNP.js";
35
44
  import {
36
45
  ramperWallet
37
46
  } from "./chunk-PIUNLQJG.js";
38
47
  import {
39
- roninWallet
40
- } from "./chunk-63YLN6R5.js";
41
- import {
42
- oktoWallet
43
- } from "./chunk-ADIXAKUL.js";
48
+ safeheronWallet
49
+ } from "./chunk-R6RWZRFF.js";
44
50
  import {
45
51
  safeWallet
46
52
  } from "./chunk-BQQQL6UD.js";
47
53
  import {
48
- safeheronWallet
49
- } from "./chunk-R6RWZRFF.js";
50
- import {
51
- phantomWallet
52
- } from "./chunk-ZSVTX6EK.js";
54
+ safepalWallet
55
+ } from "./chunk-MSFKSQBY.js";
53
56
  import {
54
57
  subWallet
55
58
  } from "./chunk-AD2KIJB6.js";
56
59
  import {
57
- safepalWallet
58
- } from "./chunk-MSFKSQBY.js";
60
+ ledgerWallet
61
+ } from "./chunk-BRBKM4PW.js";
62
+ import {
63
+ oktoWallet
64
+ } from "./chunk-ADIXAKUL.js";
59
65
  import {
60
66
  okxWallet
61
67
  } from "./chunk-4WEHDI4Y.js";
62
68
  import {
63
- omniWallet
64
- } from "./chunk-7CUY5G6R.js";
69
+ mewWallet
70
+ } from "./chunk-V57WLZEE.js";
65
71
  import {
66
72
  metaMaskWallet
67
73
  } from "./chunk-G73C6P5P.js";
68
74
  import {
69
75
  oneInchWallet
70
76
  } from "./chunk-OESTDX6I.js";
71
- import {
72
- kresusWallet
73
- } from "./chunk-MJXPRJZT.js";
74
77
  import {
75
78
  oneKeyWallet
76
79
  } from "./chunk-4AD7VI2P.js";
77
80
  import {
78
- rainbowWallet
79
- } from "./chunk-2UCNRD7H.js";
80
- import {
81
- rabbyWallet
82
- } from "./chunk-BVX4XGNP.js";
81
+ omniWallet
82
+ } from "./chunk-7CUY5G6R.js";
83
83
  import {
84
- frameWallet
85
- } from "./chunk-ZMYVTWDF.js";
84
+ foxWallet
85
+ } from "./chunk-LMZMXEXL.js";
86
86
  import {
87
87
  frontierWallet
88
88
  } from "./chunk-3S2U24BJ.js";
89
89
  import {
90
- foxWallet
91
- } from "./chunk-LMZMXEXL.js";
90
+ imTokenWallet
91
+ } from "./chunk-COZ7MIQS.js";
92
92
  import {
93
93
  gateWallet
94
94
  } from "./chunk-GSOYKKIS.js";
95
95
  import {
96
- imTokenWallet
97
- } from "./chunk-COZ7MIQS.js";
96
+ frameWallet
97
+ } from "./chunk-ZMYVTWDF.js";
98
98
  import {
99
99
  injectedWallet
100
100
  } from "./chunk-VCVVV2K7.js";
101
101
  import {
102
- mewWallet
103
- } from "./chunk-V57WLZEE.js";
104
- import {
105
- bitverseWallet
106
- } from "./chunk-3HZRRP4Y.js";
102
+ kresusWallet
103
+ } from "./chunk-MJXPRJZT.js";
107
104
  import {
108
105
  clvWallet
109
106
  } from "./chunk-KR6JBW5E.js";
@@ -113,36 +110,39 @@ import {
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-H4IRCEZN.js";
116
- import {
117
- dawnWallet
118
- } from "./chunk-LN7OD5EC.js";
119
113
  import {
120
114
  coin98Wallet
121
115
  } from "./chunk-DTRYS3MO.js";
116
+ import {
117
+ bitskiWallet
118
+ } from "./chunk-P74YPRF6.js";
119
+ import {
120
+ dawnWallet
121
+ } from "./chunk-LN7OD5EC.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-CTU6JCOK.js";
125
125
  import {
126
126
  enkryptWallet
127
127
  } from "./chunk-SJTXS4ZW.js";
128
+ import {
129
+ bifrostWallet
130
+ } from "./chunk-W6N74MS3.js";
128
131
  import {
129
132
  argentWallet
130
133
  } from "./chunk-WSQ2YJO2.js";
131
134
  import {
132
- bifrostWallet
133
- } from "./chunk-W6N74MS3.js";
135
+ bitgetWallet
136
+ } from "./chunk-A5APNTGL.js";
134
137
  import {
135
- bitskiWallet
136
- } from "./chunk-P74YPRF6.js";
138
+ bitverseWallet
139
+ } from "./chunk-3HZRRP4Y.js";
137
140
  import {
138
141
  bloomWallet
139
142
  } from "./chunk-S27IADFU.js";
140
143
  import {
141
144
  braveWallet
142
145
  } from "./chunk-PB254NQ4.js";
143
- import {
144
- bitgetWallet
145
- } from "./chunk-A5APNTGL.js";
146
146
  import {
147
147
  bybitWallet
148
148
  } from "./chunk-6ONTSPEY.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -88,11 +88,11 @@
88
88
  "react-virtuoso": "4.10.1",
89
89
  "ua-parser-js": "^1.0.37",
90
90
  "uuid": "^9.0.1",
91
- "@funkit/chains": "0.1.1",
92
- "@funkit/core": "2.3.3",
93
- "@funkit/wagmi-tools": "3.0.24",
91
+ "@funkit/api-base": "1.5.3",
94
92
  "@funkit/utils": "1.0.5",
95
- "@funkit/api-base": "1.5.2"
93
+ "@funkit/chains": "0.1.2",
94
+ "@funkit/core": "2.3.4",
95
+ "@funkit/wagmi-tools": "3.0.26"
96
96
  },
97
97
  "repository": {
98
98
  "type": "git",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- /** Element displaying the provided address along with a copy button, similar to `CopyInputDisplayedAddress` but doesn't look like an input, instead it's wrapped in a simple background box */
3
- export declare function CopyDisplayedAddress({ address, }: {
4
- address: string;
5
- }): React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- /** Copy address button with a label `Copy Address` */
3
- export declare function LabelledCopyAddressButton({ address, showAddress, }: {
4
- address: string;
5
- showAddress?: boolean;
6
- }): React.JSX.Element;
@@ -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
- };