@funkit/connect 1.0.27 → 1.0.28
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 +8 -0
- package/dist/index.js +2 -4
- package/dist/wallets/walletConnectors/index.js +61 -61
- package/package.json +2 -2
- package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
- package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -7938,9 +7938,7 @@ function FunCheckoutInputAmountStep({
|
|
|
7938
7938
|
onClick: () => {
|
|
7939
7939
|
setRotateIconAnimation(true);
|
|
7940
7940
|
setAmountInput(
|
|
7941
|
-
isAmountInAbsolute ? finalAmounts.usdEquivalent === 0 ? "" :
|
|
7942
|
-
finalAmounts.usdEquivalent
|
|
7943
|
-
).slice(1) : finalAmounts.absoluteEquivalent === 0 ? "" : formatCryptoAndStringify(finalAmounts.absoluteEquivalent)
|
|
7941
|
+
isAmountInAbsolute ? finalAmounts.usdEquivalent === 0 ? "" : finalAmounts.usdEquivalent.toString() : finalAmounts.absoluteEquivalent === 0 ? "" : finalAmounts.absoluteEquivalent.toString()
|
|
7944
7942
|
);
|
|
7945
7943
|
setIsAmountInAbsolute(!isAmountInAbsolute);
|
|
7946
7944
|
setTimeout(() => {
|
|
@@ -17357,7 +17355,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
17357
17355
|
localStorage.setItem(storageKey6, version);
|
|
17358
17356
|
}
|
|
17359
17357
|
function getCurrentSdkVersion() {
|
|
17360
|
-
return "1.0.
|
|
17358
|
+
return "1.0.28";
|
|
17361
17359
|
}
|
|
17362
17360
|
function useFingerprint() {
|
|
17363
17361
|
const fingerprint = useCallback34(() => {
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zerionWallet
|
|
4
|
-
} from "./chunk-7CQPABJG.js";
|
|
5
|
-
import {
|
|
6
|
-
subWallet
|
|
7
|
-
} from "./chunk-ZBAQFL6G.js";
|
|
8
2
|
import {
|
|
9
3
|
zealWallet
|
|
10
4
|
} from "./chunk-DPXMP5KS.js";
|
|
11
5
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
6
|
+
trustWallet
|
|
7
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
14
8
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
9
|
+
bifrostWallet
|
|
10
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
11
|
+
import {
|
|
12
|
+
tokenPocketWallet
|
|
13
|
+
} from "./chunk-2UXZAUWT.js";
|
|
14
|
+
import {
|
|
15
|
+
ledgerWallet
|
|
16
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-H273OTQA.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
safepalWallet
|
|
25
|
-
} from "./chunk-SYELB4QO.js";
|
|
21
|
+
tokenaryWallet
|
|
22
|
+
} from "./chunk-ENZLEAG2.js";
|
|
26
23
|
import {
|
|
27
24
|
walletConnectWallet
|
|
28
25
|
} from "./chunk-ASPRR7T3.js";
|
|
26
|
+
import {
|
|
27
|
+
uniswapWallet
|
|
28
|
+
} from "./chunk-XRSY4JVH.js";
|
|
29
29
|
import {
|
|
30
30
|
xdefiWallet
|
|
31
31
|
} from "./chunk-L734HTUS.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
zerionWallet
|
|
34
|
+
} from "./chunk-7CQPABJG.js";
|
|
35
|
+
import {
|
|
36
|
+
roninWallet
|
|
37
|
+
} from "./chunk-LVRXH33E.js";
|
|
38
|
+
import {
|
|
39
|
+
safeWallet
|
|
40
|
+
} from "./chunk-D3DCQ72J.js";
|
|
35
41
|
import {
|
|
36
42
|
ramperWallet
|
|
37
43
|
} from "./chunk-ZOL6ZMTJ.js";
|
|
38
44
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
45
|
+
rainbowWallet
|
|
46
|
+
} from "./chunk-O5NKWWEG.js";
|
|
41
47
|
import {
|
|
42
48
|
safeheronWallet
|
|
43
49
|
} from "./chunk-63NPZXAL.js";
|
|
44
50
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
51
|
+
subWallet
|
|
52
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
47
53
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
54
|
+
safepalWallet
|
|
55
|
+
} from "./chunk-SYELB4QO.js";
|
|
50
56
|
import {
|
|
51
57
|
tahoWallet
|
|
52
58
|
} from "./chunk-H76YCX2M.js";
|
|
53
59
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
tokenPocketWallet
|
|
58
|
-
} from "./chunk-2UXZAUWT.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-3WZRNEZH.js";
|
|
60
|
+
oktoWallet
|
|
61
|
+
} from "./chunk-WKHTUEF5.js";
|
|
62
62
|
import {
|
|
63
63
|
mewWallet
|
|
64
64
|
} from "./chunk-PWYTDYBE.js";
|
|
@@ -66,35 +66,26 @@ import {
|
|
|
66
66
|
okxWallet
|
|
67
67
|
} from "./chunk-NGXIHASN.js";
|
|
68
68
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
69
|
+
oneInchWallet
|
|
70
|
+
} from "./chunk-LCPIZUR3.js";
|
|
71
71
|
import {
|
|
72
72
|
omniWallet
|
|
73
73
|
} from "./chunk-SVN7OEQR.js";
|
|
74
|
-
import {
|
|
75
|
-
rainbowWallet
|
|
76
|
-
} from "./chunk-O5NKWWEG.js";
|
|
77
|
-
import {
|
|
78
|
-
ledgerWallet
|
|
79
|
-
} from "./chunk-Y6VY6E3L.js";
|
|
80
74
|
import {
|
|
81
75
|
oneKeyWallet
|
|
82
76
|
} from "./chunk-4WOV4ITL.js";
|
|
77
|
+
import {
|
|
78
|
+
rabbyWallet
|
|
79
|
+
} from "./chunk-XPEBP6XV.js";
|
|
80
|
+
import {
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-KGBLSE7L.js";
|
|
83
83
|
import {
|
|
84
84
|
enkryptWallet
|
|
85
85
|
} from "./chunk-FLY7F4XA.js";
|
|
86
|
-
import {
|
|
87
|
-
frameWallet
|
|
88
|
-
} from "./chunk-XXFJVY73.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
88
|
} from "./chunk-AM4SSLAP.js";
|
|
92
|
-
import {
|
|
93
|
-
imTokenWallet
|
|
94
|
-
} from "./chunk-5MVV7OVS.js";
|
|
95
|
-
import {
|
|
96
|
-
kresusWallet
|
|
97
|
-
} from "./chunk-X6T3CICZ.js";
|
|
98
89
|
import {
|
|
99
90
|
gateWallet
|
|
100
91
|
} from "./chunk-V45EXW7A.js";
|
|
@@ -102,41 +93,47 @@ import {
|
|
|
102
93
|
injectedWallet
|
|
103
94
|
} from "./chunk-KIHCNUU3.js";
|
|
104
95
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
96
|
+
kresusWallet
|
|
97
|
+
} from "./chunk-X6T3CICZ.js";
|
|
107
98
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
99
|
+
imTokenWallet
|
|
100
|
+
} from "./chunk-5MVV7OVS.js";
|
|
110
101
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-3WZRNEZH.js";
|
|
113
104
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
105
|
+
bitskiWallet
|
|
106
|
+
} from "./chunk-C67TQJ6W.js";
|
|
116
107
|
import {
|
|
117
108
|
coin98Wallet
|
|
118
109
|
} from "./chunk-4FQLUQNA.js";
|
|
110
|
+
import {
|
|
111
|
+
coreWallet
|
|
112
|
+
} from "./chunk-JLQ5HJYV.js";
|
|
119
113
|
import {
|
|
120
114
|
dawnWallet
|
|
121
115
|
} from "./chunk-4XQDKOGF.js";
|
|
116
|
+
import {
|
|
117
|
+
coinbaseWallet
|
|
118
|
+
} from "./chunk-XBUTWYE4.js";
|
|
122
119
|
import {
|
|
123
120
|
desigWallet
|
|
124
121
|
} from "./chunk-P4JLZ42R.js";
|
|
125
122
|
import {
|
|
126
123
|
foxWallet
|
|
127
124
|
} from "./chunk-Q4RLUJJD.js";
|
|
125
|
+
import {
|
|
126
|
+
frameWallet
|
|
127
|
+
} from "./chunk-XXFJVY73.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-NZ5G23JP.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-6LTLPR2Q.js";
|
|
134
131
|
import {
|
|
135
132
|
bitgetWallet
|
|
136
133
|
} from "./chunk-ZNXQ4V6G.js";
|
|
137
134
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
135
|
+
bitverseWallet
|
|
136
|
+
} from "./chunk-NL4I7WOT.js";
|
|
140
137
|
import {
|
|
141
138
|
bloomWallet
|
|
142
139
|
} from "./chunk-NTGZF5BY.js";
|
|
@@ -144,6 +141,9 @@ import "./chunk-ZOLACFTK.js";
|
|
|
144
141
|
import {
|
|
145
142
|
braveWallet
|
|
146
143
|
} from "./chunk-ABYQAXUX.js";
|
|
144
|
+
import {
|
|
145
|
+
bybitWallet
|
|
146
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
147
147
|
import {
|
|
148
148
|
clvWallet
|
|
149
149
|
} from "./chunk-MIWCKFYE.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@datadog/browser-logs": "^5.12.0",
|
|
76
76
|
"@funkit/core": "^1.0.11",
|
|
77
|
-
"@funkit/wagmi-tools": "^1.0.
|
|
77
|
+
"@funkit/wagmi-tools": "^1.0.13",
|
|
78
78
|
"@meshconnect/web-link-sdk": "^2.0.1",
|
|
79
79
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
80
80
|
"@privy-io/js-sdk-core": "^0.18.1",
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-QII6PY2D.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
14
|
-
var bitgetWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBitKeepInjected = hasInjectedProvider({
|
|
19
|
-
namespace: "bitkeep.ethereum",
|
|
20
|
-
flag: "isBitKeep"
|
|
21
|
-
});
|
|
22
|
-
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
23
|
-
return {
|
|
24
|
-
id: "bitget",
|
|
25
|
-
name: "Bitget Wallet",
|
|
26
|
-
iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
|
|
27
|
-
iconAccent: "#f6851a",
|
|
28
|
-
iconBackground: "#fff",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
32
|
-
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
33
|
-
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
34
|
-
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
35
|
-
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
36
|
-
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
37
|
-
},
|
|
38
|
-
extension: {
|
|
39
|
-
instructions: {
|
|
40
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
41
|
-
steps: [
|
|
42
|
-
{
|
|
43
|
-
description: "wallet_connectors.bitget.extension.step1.description",
|
|
44
|
-
step: "install",
|
|
45
|
-
title: "wallet_connectors.bitget.extension.step1.title"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bitget.extension.step2.description",
|
|
49
|
-
step: "create",
|
|
50
|
-
title: "wallet_connectors.bitget.extension.step2.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bitget.extension.step3.description",
|
|
54
|
-
step: "refresh",
|
|
55
|
-
title: "wallet_connectors.bitget.extension.step3.description"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
mobile: {
|
|
61
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
62
|
-
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
63
|
-
} : void 0
|
|
64
|
-
},
|
|
65
|
-
qrCode: shouldUseWalletConnect ? {
|
|
66
|
-
getUri: (uri) => uri,
|
|
67
|
-
instructions: {
|
|
68
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
69
|
-
steps: [
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
72
|
-
step: "install",
|
|
73
|
-
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
77
|
-
step: "create",
|
|
78
|
-
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
82
|
-
step: "scan",
|
|
83
|
-
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
} : void 0,
|
|
88
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
89
|
-
projectId,
|
|
90
|
-
walletConnectParameters
|
|
91
|
-
}) : getInjectedConnector({
|
|
92
|
-
namespace: "bitkeep.ethereum",
|
|
93
|
-
flag: "isBitKeep"
|
|
94
|
-
})
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
bitgetWallet
|
|
100
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-QII6PY2D.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-ZDU3JFGR.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
|
-
iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
|
|
78
|
-
iconBackground: "#fff",
|
|
79
|
-
installed: isSubWalletInjected || void 0,
|
|
80
|
-
downloadUrls: {
|
|
81
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
82
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
83
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
84
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
85
|
-
mobile: "https://www.subwallet.app/download",
|
|
86
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
87
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
88
|
-
qrCode: "https://www.subwallet.app/download"
|
|
89
|
-
},
|
|
90
|
-
mobile: mobileConnector,
|
|
91
|
-
qrCode: qrConnector,
|
|
92
|
-
extension: extensionConnector,
|
|
93
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
94
|
-
projectId,
|
|
95
|
-
walletConnectParameters
|
|
96
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
subWallet
|
|
102
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isMobile
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-QII6PY2D.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-ZDU3JFGR.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-UYD66DEM.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,105 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isMobile
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-QII6PY2D.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
14
|
-
var trustWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
|
|
19
|
-
const shouldUseWalletConnect = !isTrustWalletInjected;
|
|
20
|
-
const getUriMobile = (uri) => {
|
|
21
|
-
return `trust://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
const getUriQR = (uri) => {
|
|
24
|
-
return uri;
|
|
25
|
-
};
|
|
26
|
-
const mobileConnector = {
|
|
27
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
28
|
-
};
|
|
29
|
-
let qrConnector = void 0;
|
|
30
|
-
if (shouldUseWalletConnect) {
|
|
31
|
-
qrConnector = {
|
|
32
|
-
getUri: getUriQR,
|
|
33
|
-
instructions: {
|
|
34
|
-
learnMoreUrl: "https://trustwallet.com/",
|
|
35
|
-
steps: [
|
|
36
|
-
{
|
|
37
|
-
description: "wallet_connectors.trust.qr_code.step1.description",
|
|
38
|
-
step: "install",
|
|
39
|
-
title: "wallet_connectors.trust.qr_code.step1.title"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description: "wallet_connectors.trust.qr_code.step2.description",
|
|
43
|
-
step: "create",
|
|
44
|
-
title: "wallet_connectors.trust.qr_code.step2.title"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.trust.qr_code.step3.description",
|
|
48
|
-
step: "scan",
|
|
49
|
-
title: "wallet_connectors.trust.qr_code.step3.title"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const extensionConnector = {
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://trustwallet.com/browser-extension",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.trust.extension.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.trust.extension.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.trust.extension.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.trust.extension.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.trust.extension.step3.description",
|
|
71
|
-
step: "refresh",
|
|
72
|
-
title: "wallet_connectors.trust.extension.step3.title"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return {
|
|
78
|
-
id: "trust",
|
|
79
|
-
name: "Trust Wallet",
|
|
80
|
-
rdns: "com.trustwallet.app",
|
|
81
|
-
iconUrl: async () => (await import("./trustWallet-FST5ID2K.js")).default,
|
|
82
|
-
installed: isTrustWalletInjected || void 0,
|
|
83
|
-
iconAccent: "#3375BB",
|
|
84
|
-
iconBackground: "#fff",
|
|
85
|
-
downloadUrls: {
|
|
86
|
-
android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
|
|
87
|
-
ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
|
|
88
|
-
mobile: "https://trustwallet.com/download",
|
|
89
|
-
qrCode: "https://trustwallet.com/download",
|
|
90
|
-
chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
|
|
91
|
-
browserExtension: "https://trustwallet.com/browser-extension"
|
|
92
|
-
},
|
|
93
|
-
mobile: mobileConnector,
|
|
94
|
-
qrCode: qrConnector,
|
|
95
|
-
extension: extensionConnector,
|
|
96
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
97
|
-
projectId,
|
|
98
|
-
walletConnectParameters
|
|
99
|
-
}) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
trustWallet
|
|
105
|
-
};
|