@funkit/connect 5.0.7 → 5.0.8
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 +6 -0
- package/dist/index.js +4 -4
- package/dist/wallets/walletConnectors/index.js +36 -36
- package/package.json +4 -4
- 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
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2465,7 +2465,7 @@ var GateIoIcon = ({ size = 24 }) => {
|
|
|
2465
2465
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2466
2466
|
},
|
|
2467
2467
|
/* @__PURE__ */ React33.createElement("rect", { width: "25", height: "25", rx: "5.357", fill: "#fff" }),
|
|
2468
|
-
/* @__PURE__ */ React33.createElement("g", {
|
|
2468
|
+
/* @__PURE__ */ React33.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ React33.createElement(
|
|
2469
2469
|
"mask",
|
|
2470
2470
|
{
|
|
2471
2471
|
id: "b",
|
|
@@ -19413,7 +19413,7 @@ var BinancePillIcon = ({
|
|
|
19413
19413
|
xmlns: "http://www.w3.org/2000/svg"
|
|
19414
19414
|
},
|
|
19415
19415
|
/* @__PURE__ */ React195.createElement("rect", { x: "0.0801334", width: "20", height: "20", rx: "10", fill: backdropColor }),
|
|
19416
|
-
/* @__PURE__ */ React195.createElement("g", {
|
|
19416
|
+
/* @__PURE__ */ React195.createElement("g", { clipPath: "url(#clip0_23602_6232)" }, /* @__PURE__ */ React195.createElement("g", { clipPath: "url(#clip1_23602_6232)" }, /* @__PURE__ */ React195.createElement(
|
|
19417
19417
|
"rect",
|
|
19418
19418
|
{
|
|
19419
19419
|
x: "2.08013",
|
|
@@ -19485,7 +19485,7 @@ var RainbowPillIcon = ({
|
|
|
19485
19485
|
},
|
|
19486
19486
|
/* @__PURE__ */ React195.createElement("rect", { x: "0.0801392", width: "20", height: "20", rx: "10", fill: backdropColor }),
|
|
19487
19487
|
/* @__PURE__ */ React195.createElement("rect", { x: "0.0801392", width: "20", height: "20", rx: "10", fill: backdropColor }),
|
|
19488
|
-
/* @__PURE__ */ React195.createElement("g", {
|
|
19488
|
+
/* @__PURE__ */ React195.createElement("g", { clipPath: "url(#clip0_24096_7834)" }, /* @__PURE__ */ React195.createElement(
|
|
19489
19489
|
"rect",
|
|
19490
19490
|
{
|
|
19491
19491
|
x: "2.08014",
|
|
@@ -24550,7 +24550,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
24550
24550
|
localStorage.setItem(storageKey5, version);
|
|
24551
24551
|
}
|
|
24552
24552
|
function getCurrentSdkVersion() {
|
|
24553
|
-
return "5.0.
|
|
24553
|
+
return "5.0.8";
|
|
24554
24554
|
}
|
|
24555
24555
|
function useFingerprint() {
|
|
24556
24556
|
const fingerprint = useCallback44(() => {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-NO7XMBB5.js";
|
|
5
2
|
import {
|
|
6
3
|
zealWallet
|
|
7
4
|
} from "./chunk-JROWU5BP.js";
|
|
@@ -9,17 +6,14 @@ import {
|
|
|
9
6
|
zerionWallet
|
|
10
7
|
} from "./chunk-AXWP3GD4.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
coin98Wallet
|
|
10
|
+
} from "./chunk-DTRYS3MO.js";
|
|
14
11
|
import {
|
|
15
12
|
subWallet
|
|
16
13
|
} from "./chunk-AD2KIJB6.js";
|
|
17
14
|
import {
|
|
18
15
|
talismanWallet
|
|
19
16
|
} from "./chunk-ABFSXBE6.js";
|
|
20
|
-
import {
|
|
21
|
-
tokenaryWallet
|
|
22
|
-
} from "./chunk-SLOIIJGP.js";
|
|
23
17
|
import {
|
|
24
18
|
tokenPocketWallet
|
|
25
19
|
} from "./chunk-IDKVN5CF.js";
|
|
@@ -27,14 +21,17 @@ import {
|
|
|
27
21
|
trustWallet
|
|
28
22
|
} from "./chunk-ISIBREBO.js";
|
|
29
23
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
24
|
+
tokenaryWallet
|
|
25
|
+
} from "./chunk-SLOIIJGP.js";
|
|
32
26
|
import {
|
|
33
27
|
walletConnectWallet
|
|
34
28
|
} from "./chunk-NP5QGWNL.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-NO7XMBB5.js";
|
|
32
|
+
import {
|
|
33
|
+
uniswapWallet
|
|
34
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
38
35
|
import {
|
|
39
36
|
rainbowWallet
|
|
40
37
|
} from "./chunk-2UCNRD7H.js";
|
|
@@ -47,42 +44,42 @@ import {
|
|
|
47
44
|
import {
|
|
48
45
|
roninWallet
|
|
49
46
|
} from "./chunk-63YLN6R5.js";
|
|
47
|
+
import {
|
|
48
|
+
safeWallet
|
|
49
|
+
} from "./chunk-BQQQL6UD.js";
|
|
50
50
|
import {
|
|
51
51
|
safeheronWallet
|
|
52
52
|
} from "./chunk-R6RWZRFF.js";
|
|
53
|
+
import {
|
|
54
|
+
tahoWallet
|
|
55
|
+
} from "./chunk-6P2EMPZI.js";
|
|
53
56
|
import {
|
|
54
57
|
safepalWallet
|
|
55
58
|
} from "./chunk-MSFKSQBY.js";
|
|
56
|
-
import {
|
|
57
|
-
safeWallet
|
|
58
|
-
} from "./chunk-BQQQL6UD.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-G73C6P5P.js";
|
|
62
59
|
import {
|
|
63
60
|
ledgerWallet
|
|
64
61
|
} from "./chunk-BRBKM4PW.js";
|
|
65
|
-
import {
|
|
66
|
-
mewWallet
|
|
67
|
-
} from "./chunk-V57WLZEE.js";
|
|
68
62
|
import {
|
|
69
63
|
oktoWallet
|
|
70
64
|
} from "./chunk-ADIXAKUL.js";
|
|
65
|
+
import {
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-V57WLZEE.js";
|
|
71
68
|
import {
|
|
72
69
|
okxWallet
|
|
73
70
|
} from "./chunk-4WEHDI4Y.js";
|
|
74
71
|
import {
|
|
75
72
|
omniWallet
|
|
76
73
|
} from "./chunk-7CUY5G6R.js";
|
|
77
|
-
import {
|
|
78
|
-
oneKeyWallet
|
|
79
|
-
} from "./chunk-4AD7VI2P.js";
|
|
80
74
|
import {
|
|
81
75
|
oneInchWallet
|
|
82
76
|
} from "./chunk-OESTDX6I.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-4AD7VI2P.js";
|
|
80
|
+
import {
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-ZMYVTWDF.js";
|
|
@@ -101,15 +98,15 @@ import {
|
|
|
101
98
|
import {
|
|
102
99
|
kresusWallet
|
|
103
100
|
} from "./chunk-MJXPRJZT.js";
|
|
101
|
+
import {
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-G73C6P5P.js";
|
|
104
104
|
import {
|
|
105
105
|
bybitWallet
|
|
106
106
|
} from "./chunk-6ONTSPEY.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
109
|
} from "./chunk-KR6JBW5E.js";
|
|
110
|
-
import {
|
|
111
|
-
coin98Wallet
|
|
112
|
-
} from "./chunk-DTRYS3MO.js";
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-H4IRCEZN.js";
|
|
@@ -119,21 +116,21 @@ import {
|
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-LN7OD5EC.js";
|
|
122
|
-
import {
|
|
123
|
-
desigWallet
|
|
124
|
-
} from "./chunk-CTU6JCOK.js";
|
|
125
119
|
import {
|
|
126
120
|
enkryptWallet
|
|
127
121
|
} from "./chunk-SJTXS4ZW.js";
|
|
128
122
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-CTU6JCOK.js";
|
|
125
|
+
import {
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-LMZMXEXL.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
130
|
} from "./chunk-W6N74MS3.js";
|
|
134
131
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} from "./chunk-P74YPRF6.js";
|
|
@@ -143,6 +140,9 @@ import {
|
|
|
143
140
|
import {
|
|
144
141
|
bloomWallet
|
|
145
142
|
} from "./chunk-S27IADFU.js";
|
|
143
|
+
import {
|
|
144
|
+
bitgetWallet
|
|
145
|
+
} from "./chunk-A5APNTGL.js";
|
|
146
146
|
import "./chunk-23WIEY36.js";
|
|
147
147
|
import {
|
|
148
148
|
braveWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"react-virtuoso": "4.10.1",
|
|
91
91
|
"ua-parser-js": "^1.0.37",
|
|
92
92
|
"uuid": "^9.0.1",
|
|
93
|
+
"@funkit/chains": "0.1.3",
|
|
93
94
|
"@funkit/api-base": "1.5.9",
|
|
94
|
-
"@funkit/core": "2.3.11",
|
|
95
|
-
"@funkit/wagmi-tools": "3.0.33",
|
|
96
95
|
"@funkit/utils": "1.0.9",
|
|
97
|
-
"@funkit/
|
|
96
|
+
"@funkit/core": "2.3.11",
|
|
97
|
+
"@funkit/wagmi-tools": "3.0.33"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"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
|
-
};
|
|
@@ -1,103 +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/subWallet/subWallet.ts
|
|
11
|
-
var subWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
-
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
-
const getUriMobile = (uri) => {
|
|
18
|
-
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
};
|
|
20
|
-
const getUriQR = (uri) => {
|
|
21
|
-
return uri;
|
|
22
|
-
};
|
|
23
|
-
const mobileConnector = {
|
|
24
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
-
};
|
|
26
|
-
let qrConnector = void 0;
|
|
27
|
-
if (shouldUseWalletConnect) {
|
|
28
|
-
qrConnector = {
|
|
29
|
-
getUri: getUriQR,
|
|
30
|
-
instructions: {
|
|
31
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
-
steps: [
|
|
33
|
-
{
|
|
34
|
-
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
-
step: "install",
|
|
36
|
-
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
-
step: "create",
|
|
41
|
-
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
-
step: "scan",
|
|
46
|
-
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
const extensionConnector = {
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
-
step: "refresh",
|
|
69
|
-
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
id: "subwallet",
|
|
76
|
-
name: "SubWallet",
|
|
77
|
-
rdns: "app.subwallet",
|
|
78
|
-
iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
|
|
79
|
-
iconBackground: "#fff",
|
|
80
|
-
installed: isSubWalletInjected || void 0,
|
|
81
|
-
downloadUrls: {
|
|
82
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
83
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
84
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
85
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
86
|
-
mobile: "https://www.subwallet.app/download",
|
|
87
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
88
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
89
|
-
qrCode: "https://www.subwallet.app/download"
|
|
90
|
-
},
|
|
91
|
-
mobile: mobileConnector,
|
|
92
|
-
qrCode: qrConnector,
|
|
93
|
-
extension: extensionConnector,
|
|
94
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
95
|
-
projectId,
|
|
96
|
-
walletConnectParameters
|
|
97
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
subWallet
|
|
103
|
-
};
|
|
@@ -1,69 +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/bifrostWallet/bifrostWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var bifrostWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "bifrostWallet",
|
|
23
|
-
name: "Bifrost Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
25
|
-
iconBackground: "#fff",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
-
},
|
|
32
|
-
mobile: {
|
|
33
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
-
},
|
|
35
|
-
qrCode: shouldUseWalletConnect ? {
|
|
36
|
-
getUri: (uri) => uri,
|
|
37
|
-
instructions: {
|
|
38
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
-
steps: [
|
|
40
|
-
{
|
|
41
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
-
step: "install",
|
|
43
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
-
step: "create",
|
|
48
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
-
step: "scan",
|
|
53
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
} : void 0,
|
|
58
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
-
projectId,
|
|
60
|
-
walletConnectParameters
|
|
61
|
-
}) : getInjectedConnector({
|
|
62
|
-
flag: "isBifrost"
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
bifrostWallet
|
|
69
|
-
};
|