@funkit/connect 5.3.6 → 5.4.0
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.
- package/CHANGELOG.md +26 -0
- package/dist/{chunk-CRTRMZFT.js → chunk-ICCAQZHZ.js} +1 -1
- package/dist/{chunk-CRPOYQ6X.js → chunk-R2UFCJL7.js} +5 -0
- package/dist/{chunk-KCSHTK5R.js → chunk-RN4I4Y57.js} +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1335
- package/dist/consts/customers.d.ts +2 -0
- package/dist/css/sprinkles.css.d.ts +3 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -2
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +9 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +7 -5
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +7 -0
- package/dist/index.css +2674 -2664
- package/dist/index.d.ts +1 -1
- package/dist/index.js +596 -412
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +42 -4
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +37 -37
- package/package.json +7 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -176,6 +176,7 @@ export declare const useActiveTheme: () => {
|
|
|
176
176
|
};
|
|
177
177
|
radii: {
|
|
178
178
|
actionButton: string;
|
|
179
|
+
actionButtonInner: string;
|
|
179
180
|
connectButton: string;
|
|
180
181
|
menuButton: string;
|
|
181
182
|
modal: string;
|
|
@@ -364,6 +365,7 @@ export declare const useActiveTheme: () => {
|
|
|
364
365
|
};
|
|
365
366
|
radii: {
|
|
366
367
|
actionButton: string;
|
|
368
|
+
actionButtonInner: string;
|
|
367
369
|
connectButton: string;
|
|
368
370
|
menuButton: string;
|
|
369
371
|
modal: string;
|
|
@@ -550,6 +552,7 @@ export declare const useActiveTheme: () => {
|
|
|
550
552
|
};
|
|
551
553
|
radii: {
|
|
552
554
|
actionButton: string;
|
|
555
|
+
actionButtonInner: string;
|
|
553
556
|
connectButton: string;
|
|
554
557
|
menuButton: string;
|
|
555
558
|
modal: string;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
|
@@ -148,23 +148,37 @@ export declare const flagConfig: {
|
|
|
148
148
|
is_relay_bypass_enabled: {
|
|
149
149
|
type: "boolean";
|
|
150
150
|
default_value: false;
|
|
151
|
-
overrides: {
|
|
152
|
-
|
|
151
|
+
overrides: ({
|
|
152
|
+
value: true;
|
|
153
|
+
if_any: ({
|
|
154
|
+
key: "apiKey";
|
|
155
|
+
type: "isAnyOf";
|
|
156
|
+
values: string[];
|
|
157
|
+
} | {
|
|
153
158
|
key: "userId";
|
|
154
159
|
type: "isAnyOf";
|
|
155
160
|
values: string[];
|
|
161
|
+
})[];
|
|
162
|
+
if_all?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
value: true;
|
|
165
|
+
if_all: ({
|
|
166
|
+
key: "userId";
|
|
167
|
+
type: "pctRollout";
|
|
168
|
+
pct: number;
|
|
169
|
+
values?: undefined;
|
|
156
170
|
} | {
|
|
157
171
|
key: "apiKey";
|
|
158
172
|
type: "isAnyOf";
|
|
159
173
|
values: string[];
|
|
174
|
+
pct?: undefined;
|
|
160
175
|
})[];
|
|
161
176
|
if_any: {
|
|
162
177
|
key: "userId";
|
|
163
178
|
type: "isAnyOf";
|
|
164
179
|
values: string[];
|
|
165
180
|
}[];
|
|
166
|
-
|
|
167
|
-
}[];
|
|
181
|
+
})[];
|
|
168
182
|
};
|
|
169
183
|
relay_bypass_source_chains_and_assets: {
|
|
170
184
|
type: "string";
|
|
@@ -186,4 +200,28 @@ export declare const flagConfig: {
|
|
|
186
200
|
value: string;
|
|
187
201
|
}[];
|
|
188
202
|
};
|
|
203
|
+
enable_card: {
|
|
204
|
+
type: "boolean";
|
|
205
|
+
default_value: true;
|
|
206
|
+
overrides: {
|
|
207
|
+
if_any: {
|
|
208
|
+
key: "apiKey";
|
|
209
|
+
type: "isAnyOf";
|
|
210
|
+
values: string[];
|
|
211
|
+
}[];
|
|
212
|
+
value: false;
|
|
213
|
+
}[];
|
|
214
|
+
};
|
|
215
|
+
enable_brokerage: {
|
|
216
|
+
type: "boolean";
|
|
217
|
+
default_value: true;
|
|
218
|
+
overrides: {
|
|
219
|
+
if_any: {
|
|
220
|
+
key: "apiKey";
|
|
221
|
+
type: "isAnyOf";
|
|
222
|
+
values: string[];
|
|
223
|
+
}[];
|
|
224
|
+
value: false;
|
|
225
|
+
}[];
|
|
226
|
+
};
|
|
189
227
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CheckoutHistoryItem, CheckoutState, type DirectExecution } from '@funkit/api-base';
|
|
1
|
+
import { type CheckoutHistoryItem, type CheckoutState, type DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import type { Address, Hex } from 'viem';
|
|
3
3
|
export type PurifiedCheckoutHistoryItem = {
|
|
4
4
|
depositAddr?: Address;
|
|
@@ -11,6 +11,7 @@ export type PurifiedCheckoutHistoryItem = {
|
|
|
11
11
|
toAmountBaseUnit: string;
|
|
12
12
|
toChainId: string;
|
|
13
13
|
toTokenAddress: Address;
|
|
14
|
+
createdTimeMs: number;
|
|
14
15
|
txHash?: Hex;
|
|
15
16
|
} & ({
|
|
16
17
|
depositAddr: Address;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-NO7XMBB5.js";
|
|
5
|
+
import {
|
|
6
|
+
zealWallet
|
|
7
|
+
} from "./chunk-JROWU5BP.js";
|
|
5
8
|
import {
|
|
6
9
|
zerionWallet
|
|
7
10
|
} from "./chunk-AXWP3GD4.js";
|
|
8
|
-
import {
|
|
9
|
-
xdefiWallet
|
|
10
|
-
} from "./chunk-NO7XMBB5.js";
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
13
|
} from "./chunk-AD2KIJB6.js";
|
|
@@ -17,24 +17,27 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-ABFSXBE6.js";
|
|
20
|
+
import {
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-IDKVN5CF.js";
|
|
20
23
|
import {
|
|
21
24
|
tokenaryWallet
|
|
22
25
|
} from "./chunk-SLOIIJGP.js";
|
|
23
|
-
import {
|
|
24
|
-
uniswapWallet
|
|
25
|
-
} from "./chunk-LH7BMNFZ.js";
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
28
|
} from "./chunk-ISIBREBO.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
walletConnectWallet
|
|
31
|
+
} from "./chunk-NP5QGWNL.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
uniswapWallet
|
|
34
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
38
|
+
import {
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-BVX4XGNP.js";
|
|
38
41
|
import {
|
|
39
42
|
rainbowWallet
|
|
40
43
|
} from "./chunk-2UCNRD7H.js";
|
|
@@ -44,51 +47,48 @@ import {
|
|
|
44
47
|
import {
|
|
45
48
|
roninWallet
|
|
46
49
|
} from "./chunk-63YLN6R5.js";
|
|
50
|
+
import {
|
|
51
|
+
safeWallet
|
|
52
|
+
} from "./chunk-BQQQL6UD.js";
|
|
47
53
|
import {
|
|
48
54
|
safeheronWallet
|
|
49
55
|
} from "./chunk-R6RWZRFF.js";
|
|
50
56
|
import {
|
|
51
57
|
safepalWallet
|
|
52
58
|
} from "./chunk-MSFKSQBY.js";
|
|
53
|
-
import {
|
|
54
|
-
oneInchWallet
|
|
55
|
-
} from "./chunk-OESTDX6I.js";
|
|
56
|
-
import {
|
|
57
|
-
safeWallet
|
|
58
|
-
} from "./chunk-BQQQL6UD.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BRBKM4PW.js";
|
|
62
62
|
import {
|
|
63
63
|
metaMaskWallet
|
|
64
64
|
} from "./chunk-G73C6P5P.js";
|
|
65
|
+
import {
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-V57WLZEE.js";
|
|
65
68
|
import {
|
|
66
69
|
oktoWallet
|
|
67
70
|
} from "./chunk-ADIXAKUL.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
73
|
} from "./chunk-4WEHDI4Y.js";
|
|
71
|
-
import {
|
|
72
|
-
mewWallet
|
|
73
|
-
} from "./chunk-V57WLZEE.js";
|
|
74
74
|
import {
|
|
75
75
|
omniWallet
|
|
76
76
|
} from "./chunk-7CUY5G6R.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-OESTDX6I.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
oneKeyWallet
|
|
82
|
+
} from "./chunk-4AD7VI2P.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
85
|
} from "./chunk-LMZMXEXL.js";
|
|
86
|
-
import {
|
|
87
|
-
frontierWallet
|
|
88
|
-
} from "./chunk-3S2U24BJ.js";
|
|
89
86
|
import {
|
|
90
87
|
frameWallet
|
|
91
88
|
} from "./chunk-ZMYVTWDF.js";
|
|
89
|
+
import {
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-3S2U24BJ.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
94
|
} from "./chunk-GSOYKKIS.js";
|
|
@@ -101,6 +101,9 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
kresusWallet
|
|
103
103
|
} from "./chunk-MJXPRJZT.js";
|
|
104
|
+
import {
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-6ONTSPEY.js";
|
|
104
107
|
import {
|
|
105
108
|
clvWallet
|
|
106
109
|
} from "./chunk-KR6JBW5E.js";
|
|
@@ -116,9 +119,6 @@ import {
|
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-LN7OD5EC.js";
|
|
119
|
-
import {
|
|
120
|
-
bloomWallet
|
|
121
|
-
} from "./chunk-S27IADFU.js";
|
|
122
122
|
import {
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-CTU6JCOK.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";
|
|
143
147
|
import {
|
|
144
148
|
braveWallet
|
|
145
149
|
} 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.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
"react-virtuoso": "4.10.1",
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"uuid": "^9.0.1",
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/
|
|
98
|
-
"@funkit/
|
|
99
|
-
"@funkit/wagmi-tools": "3.0.
|
|
94
|
+
"@funkit/api-base": "1.8.3",
|
|
95
|
+
"@funkit/chains": "0.3.0",
|
|
96
|
+
"@funkit/core": "2.3.20",
|
|
97
|
+
"@funkit/utils": "1.0.14",
|
|
98
|
+
"@funkit/fun-relay": "0.1.3",
|
|
99
|
+
"@funkit/wagmi-tools": "3.0.42"
|
|
100
100
|
},
|
|
101
101
|
"repository": {
|
|
102
102
|
"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,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
|
-
};
|