@talken/talkenkit 2.8.3 → 2.8.4
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/dist/{AbcCredentialManager-6FBGTSSM.js → AbcCredentialManager-QM2BNLSR.js} +1 -1
- package/dist/{abcWallet-7ZZXHG7O.js → abcWallet-4PXYWHYM.js} +2 -2
- package/dist/{chunk-SUYKWM5G.js → chunk-PS5CBMY5.js} +10 -8
- package/dist/{chunk-HX6JUKSS.js → chunk-ZISAJ7BZ.js} +253 -25
- package/dist/index.css +13 -13
- package/dist/index.js +11 -11
- package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/StorageService.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +19 -16
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +7 -6
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +19 -17
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +20 -17
- package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/api/ConfigApi.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +15 -13
- package/dist/wallets/walletConnectors/abcWallet/api/TokenApi.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +18 -16
- package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.d.ts +1 -1
- package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.js +13 -5
- package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.d.ts +8 -5
- package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.js +12 -4
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.d.ts +34 -0
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.js +25 -0
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.d.ts +17 -0
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.js +18 -0
- package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.d.ts +1 -1
- package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.js +9 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/wallet.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/walletscan.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +6 -6
- package/dist/wallets/walletConnectors/abcWallet/constants.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/evmTxType.d.ts +20 -0
- package/dist/wallets/walletConnectors/abcWallet/evmTxType.js +8 -0
- package/dist/wallets/walletConnectors/abcWallet/index.js +37 -34
- package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/types/api.types.d.ts +71 -1
- package/dist/wallets/walletConnectors/abcWallet/types.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/utils.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +5 -5
- package/dist/wallets/walletConnectors/{chunk-3NWM24MH.js → chunk-5E7TNMON.js} +6 -3
- package/dist/wallets/walletConnectors/{chunk-YNE2UX2Z.js → chunk-5SHN7JNR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TYJR3KGY.js → chunk-6BHMNR5X.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2LOET2LX.js → chunk-6HR6CEOY.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ANBOP6A6.js → chunk-6LPMWYFM.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-L3EPZ4NZ.js → chunk-75H6DQT6.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-3Z5DO42M.js → chunk-7GBAUSQJ.js} +10 -8
- package/dist/wallets/walletConnectors/{chunk-7DLZKN46.js → chunk-CCUNTMLD.js} +6 -6
- package/dist/wallets/walletConnectors/{chunk-HM73RD2O.js → chunk-CIAVEXOY.js} +10 -4
- package/dist/wallets/walletConnectors/{chunk-URTS7ZIZ.js → chunk-DPYQH3WE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2LH53QET.js → chunk-F6AHT6K4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZXG3X6PV.js → chunk-F6EG7H2O.js} +2 -2
- package/dist/wallets/walletConnectors/chunk-FLBJ7T4Q.js +44 -0
- package/dist/wallets/walletConnectors/{chunk-4DGLNUHL.js → chunk-FWKMNVWU.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZOBSRU6L.js → chunk-HFW2XV2R.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M4YGDOD5.js → chunk-HMMEOZDT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-S6XEM7RM.js → chunk-HXYOWG5P.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-CXWASK7L.js → chunk-KX3IFHJQ.js} +16 -16
- package/dist/wallets/walletConnectors/chunk-OESFVVLA.js +38 -0
- package/dist/wallets/walletConnectors/{chunk-XDNFWX2X.js → chunk-OEZE4GBQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-YFNVHCMA.js → chunk-QTBJ6WNZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-FWX2HD26.js → chunk-RQYBKCWA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4BG6V5TZ.js → chunk-TXB6KXPR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4Y7YP4IR.js → chunk-UNLWNVSN.js} +16 -6
- package/dist/wallets/walletConnectors/{chunk-6FPKKAFI.js → chunk-XQTK7NGN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VVXSRRXI.js → chunk-YECMDMEA.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-ICGK5DGY.js → chunk-YUBS7MJ6.js} +44 -19
- package/dist/wallets/walletConnectors/{chunk-NEMEHJ72.js → chunk-ZITVWA4X.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-ZTIRW7TR.js +161 -0
- package/dist/wallets/walletConnectors/index.js +64 -61
- package/package.json +1 -1
- package/dist/wallets/walletConnectors/chunk-2KHTFKPP.js +0 -186
- package/dist/wallets/walletConnectors/chunk-3QC567QK.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4K2V7RCL.js +0 -96
- package/dist/wallets/walletConnectors/chunk-4V3HRM2R.js +0 -95
- package/dist/wallets/walletConnectors/chunk-5QYCHHVB.js +0 -98
- package/dist/wallets/walletConnectors/chunk-76M232IF.js +0 -101
- package/dist/wallets/walletConnectors/chunk-7IBMHOYD.js +0 -102
- package/dist/wallets/walletConnectors/chunk-A2DZALFI.js +0 -108
- package/dist/wallets/walletConnectors/chunk-BZPKBSWY.js +0 -66
- package/dist/wallets/walletConnectors/chunk-CEOJSQAI.js +0 -66
- package/dist/wallets/walletConnectors/chunk-CTAFZ5RQ.js +0 -71
- package/dist/wallets/walletConnectors/chunk-DHWJ3552.js +0 -93
- package/dist/wallets/walletConnectors/chunk-EJALZNAR.js +0 -101
- package/dist/wallets/walletConnectors/chunk-FE2BFYJB.js +0 -73
- package/dist/wallets/walletConnectors/chunk-FGYJTUYV.js +0 -94
- package/dist/wallets/walletConnectors/chunk-FVA6H2VF.js +0 -95
- package/dist/wallets/walletConnectors/chunk-GNF5CHDQ.js +0 -102
- package/dist/wallets/walletConnectors/chunk-GZPGNUNF.js +0 -94
- package/dist/wallets/walletConnectors/chunk-HALTGRQW.js +0 -87
- package/dist/wallets/walletConnectors/chunk-IONL6LMJ.js +0 -71
- package/dist/wallets/walletConnectors/chunk-KNNHGFKJ.js +0 -98
- package/dist/wallets/walletConnectors/chunk-KQDFRZT4.js +0 -65
- package/dist/wallets/walletConnectors/chunk-KQROIRBW.js +0 -27
- package/dist/wallets/walletConnectors/chunk-LKNK2KKU.js +0 -76
- package/dist/wallets/walletConnectors/chunk-NM7YUGLV.js +0 -186
- package/dist/wallets/walletConnectors/chunk-PXL5G2PM.js +0 -96
- package/dist/wallets/walletConnectors/chunk-QB3QLNSL.js +0 -76
- package/dist/wallets/walletConnectors/chunk-QRU6XFHH.js +0 -110
- package/dist/wallets/walletConnectors/chunk-T6RB3SM7.js +0 -73
- package/dist/wallets/walletConnectors/chunk-TA4DDCKN.js +0 -96
- package/dist/wallets/walletConnectors/chunk-TWVKSPTP.js +0 -91
- package/dist/wallets/walletConnectors/chunk-U5UPCM5V.js +0 -66
- package/dist/wallets/walletConnectors/chunk-V5LGED4F.js +0 -103
- package/dist/wallets/walletConnectors/chunk-WZMFQQ6R.js +0 -108
- package/dist/wallets/walletConnectors/chunk-XS6GJRRA.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XSJUQHR7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-XSX5EECZ.js +0 -96
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-PONHGUSY.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid,
|
|
8
|
-
isIOS
|
|
9
|
-
} from "./chunk-RETKWSKD.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-PODFK4OS.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
15
|
-
function isMetaMask(ethereum) {
|
|
16
|
-
if (!ethereum?.isMetaMask)
|
|
17
|
-
return false;
|
|
18
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
|
|
19
|
-
return false;
|
|
20
|
-
if (ethereum.isApexWallet)
|
|
21
|
-
return false;
|
|
22
|
-
if (ethereum.isAvalanche)
|
|
23
|
-
return false;
|
|
24
|
-
if (ethereum.isBackpack)
|
|
25
|
-
return false;
|
|
26
|
-
if (ethereum.isBifrost)
|
|
27
|
-
return false;
|
|
28
|
-
if (ethereum.isBitKeep)
|
|
29
|
-
return false;
|
|
30
|
-
if (ethereum.isBitski)
|
|
31
|
-
return false;
|
|
32
|
-
if (ethereum.isBlockWallet)
|
|
33
|
-
return false;
|
|
34
|
-
if (ethereum.isCoinbaseWallet)
|
|
35
|
-
return false;
|
|
36
|
-
if (ethereum.isDawn)
|
|
37
|
-
return false;
|
|
38
|
-
if (ethereum.isEnkrypt)
|
|
39
|
-
return false;
|
|
40
|
-
if (ethereum.isExodus)
|
|
41
|
-
return false;
|
|
42
|
-
if (ethereum.isFrame)
|
|
43
|
-
return false;
|
|
44
|
-
if (ethereum.isFrontier)
|
|
45
|
-
return false;
|
|
46
|
-
if (ethereum.isGamestop)
|
|
47
|
-
return false;
|
|
48
|
-
if (ethereum.isHyperPay)
|
|
49
|
-
return false;
|
|
50
|
-
if (ethereum.isImToken)
|
|
51
|
-
return false;
|
|
52
|
-
if (ethereum.isKuCoinWallet)
|
|
53
|
-
return false;
|
|
54
|
-
if (ethereum.isMathWallet)
|
|
55
|
-
return false;
|
|
56
|
-
if (ethereum.isNestWallet)
|
|
57
|
-
return false;
|
|
58
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet)
|
|
59
|
-
return false;
|
|
60
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
|
|
61
|
-
return false;
|
|
62
|
-
if (ethereum.isOpera)
|
|
63
|
-
return false;
|
|
64
|
-
if (ethereum.isPhantom)
|
|
65
|
-
return false;
|
|
66
|
-
if (ethereum.isPortal)
|
|
67
|
-
return false;
|
|
68
|
-
if (ethereum.isRabby)
|
|
69
|
-
return false;
|
|
70
|
-
if (ethereum.isRainbow)
|
|
71
|
-
return false;
|
|
72
|
-
if (ethereum.isStatus)
|
|
73
|
-
return false;
|
|
74
|
-
if (ethereum.isTalisman)
|
|
75
|
-
return false;
|
|
76
|
-
if (ethereum.isTally)
|
|
77
|
-
return false;
|
|
78
|
-
if (ethereum.isTokenPocket)
|
|
79
|
-
return false;
|
|
80
|
-
if (ethereum.isTokenary)
|
|
81
|
-
return false;
|
|
82
|
-
if (ethereum.isTrust || ethereum.isTrustWallet)
|
|
83
|
-
return false;
|
|
84
|
-
if (ethereum.isXDEFI)
|
|
85
|
-
return false;
|
|
86
|
-
if (ethereum.isZeal)
|
|
87
|
-
return false;
|
|
88
|
-
if (ethereum.isZerion)
|
|
89
|
-
return false;
|
|
90
|
-
if (ethereum.__seif)
|
|
91
|
-
return false;
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
var metaMaskWallet = ({
|
|
95
|
-
projectId,
|
|
96
|
-
walletConnectParameters
|
|
97
|
-
}) => {
|
|
98
|
-
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
99
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
100
|
-
const getUri = (uri) => {
|
|
101
|
-
return isAndroid() ? uri : isIOS() ? (
|
|
102
|
-
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
103
|
-
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
104
|
-
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
105
|
-
};
|
|
106
|
-
return {
|
|
107
|
-
id: "metaMask",
|
|
108
|
-
name: "MetaMask",
|
|
109
|
-
rdns: "io.metamask",
|
|
110
|
-
iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
|
|
111
|
-
iconAccent: "#f6851a",
|
|
112
|
-
iconBackground: "#fff",
|
|
113
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
114
|
-
downloadUrls: {
|
|
115
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
116
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
117
|
-
mobile: "https://metamask.io/download",
|
|
118
|
-
qrCode: "https://metamask.io/download",
|
|
119
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
120
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
121
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
122
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
123
|
-
browserExtension: "https://metamask.io/download"
|
|
124
|
-
},
|
|
125
|
-
mobile: {
|
|
126
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
127
|
-
},
|
|
128
|
-
qrCode: shouldUseWalletConnect ? {
|
|
129
|
-
getUri,
|
|
130
|
-
instructions: {
|
|
131
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
132
|
-
steps: [
|
|
133
|
-
{
|
|
134
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
135
|
-
step: "install",
|
|
136
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
140
|
-
step: "create",
|
|
141
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
145
|
-
step: "refresh",
|
|
146
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
} : void 0,
|
|
151
|
-
extension: {
|
|
152
|
-
instructions: {
|
|
153
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
154
|
-
steps: [
|
|
155
|
-
{
|
|
156
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
157
|
-
step: "install",
|
|
158
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
162
|
-
step: "create",
|
|
163
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
167
|
-
step: "refresh",
|
|
168
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
174
|
-
projectId,
|
|
175
|
-
walletConnectParameters
|
|
176
|
-
}) : getInjectedConnector({
|
|
177
|
-
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
178
|
-
isMetaMask
|
|
179
|
-
) ?? window.ethereum : void 0
|
|
180
|
-
})
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export {
|
|
185
|
-
metaMaskWallet
|
|
186
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-PONHGUSY.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-PODFK4OS.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
14
|
-
var okxWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
19
|
-
const shouldUseWalletConnect = !isOKXInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "okx",
|
|
22
|
-
name: "OKX Wallet",
|
|
23
|
-
rdns: "com.okex.wallet",
|
|
24
|
-
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
25
|
-
iconAccent: "#000",
|
|
26
|
-
iconBackground: "#000",
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
29
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
30
|
-
mobile: "https://okx.com/download",
|
|
31
|
-
qrCode: "https://okx.com/download",
|
|
32
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
33
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
34
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
35
|
-
browserExtension: "https://okx.com/download"
|
|
36
|
-
},
|
|
37
|
-
mobile: {
|
|
38
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
39
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
40
|
-
} : void 0
|
|
41
|
-
},
|
|
42
|
-
qrCode: shouldUseWalletConnect ? {
|
|
43
|
-
getUri: (uri) => uri,
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
} : void 0,
|
|
65
|
-
extension: {
|
|
66
|
-
instructions: {
|
|
67
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
68
|
-
steps: [
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.okx.extension.step1.description",
|
|
71
|
-
step: "install",
|
|
72
|
-
title: "wallet_connectors.okx.extension.step1.title"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
description: "wallet_connectors.okx.extension.step2.description",
|
|
76
|
-
step: "create",
|
|
77
|
-
title: "wallet_connectors.okx.extension.step2.title"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
description: "wallet_connectors.okx.extension.step3.description",
|
|
81
|
-
step: "refresh",
|
|
82
|
-
title: "wallet_connectors.okx.extension.step3.title"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
88
|
-
projectId,
|
|
89
|
-
walletConnectParameters
|
|
90
|
-
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
okxWallet
|
|
96
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-PONHGUSY.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-PODFK4OS.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/binanceWallet/binanceWallet.ts
|
|
14
|
-
var binanceWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBinanceInjected = hasInjectedProvider({
|
|
19
|
-
flag: "isBinance"
|
|
20
|
-
});
|
|
21
|
-
const shouldUseWalletConnect = !isBinanceInjected;
|
|
22
|
-
return {
|
|
23
|
-
id: "binance",
|
|
24
|
-
name: "Binance Wallet",
|
|
25
|
-
rdns: "com.binance.wallet",
|
|
26
|
-
iconUrl: async () => (await import("./binanceWallet-BCWLBY3Q.js")).default,
|
|
27
|
-
iconBackground: "#000000",
|
|
28
|
-
installed: !shouldUseWalletConnect ? isBinanceInjected : void 0,
|
|
29
|
-
downloadUrls: {
|
|
30
|
-
android: "https://play.google.com/store/apps/details?id=com.binance.dev",
|
|
31
|
-
ios: "https://apps.apple.com/us/app/id1436799971",
|
|
32
|
-
mobile: "https://www.binance.com/en/download",
|
|
33
|
-
qrCode: "https://www.binance.com/en/web3wallet"
|
|
34
|
-
},
|
|
35
|
-
mobile: shouldUseWalletConnect ? {
|
|
36
|
-
getUri: (uri) => {
|
|
37
|
-
return isAndroid() ? uri : `bnc://app.binance.com/cedefi/wc?uri=${encodeURIComponent(
|
|
38
|
-
uri
|
|
39
|
-
)}`;
|
|
40
|
-
}
|
|
41
|
-
} : void 0,
|
|
42
|
-
qrCode: shouldUseWalletConnect ? {
|
|
43
|
-
getUri: (uri) => uri,
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://www.binance.com/en/web3wallet",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.binance.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.binance.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.binance.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.binance.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.binance.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.binance.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
} : void 0,
|
|
65
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
66
|
-
projectId,
|
|
67
|
-
walletConnectParameters
|
|
68
|
-
}) : getInjectedConnector({
|
|
69
|
-
flag: "isBinance"
|
|
70
|
-
})
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export {
|
|
75
|
-
binanceWallet
|
|
76
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-PONHGUSY.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-PODFK4OS.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
|
|
11
|
-
var safepalWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSafePalWalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "safepalProvider",
|
|
17
|
-
flag: "isSafePal"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isSafePalWalletInjected;
|
|
20
|
-
const getUriMobile = (uri) => {
|
|
21
|
-
return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
const getUriQR = async (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://safepal.com/",
|
|
35
|
-
steps: [
|
|
36
|
-
{
|
|
37
|
-
description: "wallet_connectors.safepal.qr_code.step1.description",
|
|
38
|
-
step: "install",
|
|
39
|
-
title: "wallet_connectors.safepal.qr_code.step1.title"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description: "wallet_connectors.safepal.qr_code.step2.description",
|
|
43
|
-
step: "create",
|
|
44
|
-
title: "wallet_connectors.safepal.qr_code.step2.title"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.safepal.qr_code.step3.description",
|
|
48
|
-
step: "scan",
|
|
49
|
-
title: "wallet_connectors.safepal.qr_code.step3.title"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const extensionConnector = {
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://www.safepal.com/download?product=2",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.safepal.extension.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.safepal.extension.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.safepal.extension.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.safepal.extension.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.safepal.extension.step3.description",
|
|
71
|
-
step: "refresh",
|
|
72
|
-
title: "wallet_connectors.safepal.extension.step3.title"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return {
|
|
78
|
-
id: "safepal",
|
|
79
|
-
name: "SafePal Wallet",
|
|
80
|
-
iconUrl: async () => (await import("./safepalWallet-KQJ4OCNH.js")).default,
|
|
81
|
-
// Note that we never resolve `installed` to `false` because the
|
|
82
|
-
// SafePal Wallet provider falls back to other connection methods if
|
|
83
|
-
// the injected connector isn't available
|
|
84
|
-
installed: isSafePalWalletInjected,
|
|
85
|
-
iconAccent: "#3375BB",
|
|
86
|
-
iconBackground: "#fff",
|
|
87
|
-
downloadUrls: {
|
|
88
|
-
android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
|
|
89
|
-
ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
|
|
90
|
-
mobile: "https://www.safepal.com/en/download",
|
|
91
|
-
qrCode: "https://www.safepal.com/en/download",
|
|
92
|
-
chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
|
|
93
|
-
browserExtension: "https://www.safepal.com/download?product=2"
|
|
94
|
-
},
|
|
95
|
-
mobile: mobileConnector,
|
|
96
|
-
...qrConnector ? qrConnector : {},
|
|
97
|
-
extension: extensionConnector,
|
|
98
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
99
|
-
projectId,
|
|
100
|
-
walletConnectParameters
|
|
101
|
-
}) : getInjectedConnector({
|
|
102
|
-
namespace: "safepalProvider",
|
|
103
|
-
flag: "isSafePal"
|
|
104
|
-
})
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
safepalWallet
|
|
110
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid,
|
|
4
|
-
isIOS
|
|
5
|
-
} from "./chunk-RETKWSKD.js";
|
|
6
|
-
import {
|
|
7
|
-
getInjectedConnector,
|
|
8
|
-
hasInjectedProvider
|
|
9
|
-
} from "./chunk-PONHGUSY.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-PODFK4OS.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
15
|
-
var rainbowWallet = ({
|
|
16
|
-
projectId,
|
|
17
|
-
walletConnectParameters
|
|
18
|
-
}) => {
|
|
19
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
20
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
21
|
-
const getUri = (uri) => {
|
|
22
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
23
|
-
uri
|
|
24
|
-
)}&connector=rainbowkit`;
|
|
25
|
-
};
|
|
26
|
-
return {
|
|
27
|
-
id: "rainbow",
|
|
28
|
-
name: "Rainbow",
|
|
29
|
-
rdns: "me.rainbow",
|
|
30
|
-
iconUrl: async () => (await import("./rainbowWallet-2SR6TVBF.js")).default,
|
|
31
|
-
iconBackground: "#0c2f78",
|
|
32
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
33
|
-
downloadUrls: {
|
|
34
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
35
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
36
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
37
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
38
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
39
|
-
},
|
|
40
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
41
|
-
qrCode: shouldUseWalletConnect ? {
|
|
42
|
-
getUri,
|
|
43
|
-
instructions: {
|
|
44
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
45
|
-
steps: [
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
48
|
-
step: "install",
|
|
49
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
53
|
-
step: "create",
|
|
54
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
58
|
-
step: "scan",
|
|
59
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
} : void 0,
|
|
64
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
65
|
-
projectId,
|
|
66
|
-
walletConnectParameters
|
|
67
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
rainbowWallet
|
|
73
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-PONHGUSY.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-PODFK4OS.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
|
-
var coin98Wallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isCoin98WalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "coin98.provider",
|
|
17
|
-
flag: "isCoin98"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isCoin98WalletInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "coin98",
|
|
22
|
-
name: "Coin98 Wallet",
|
|
23
|
-
iconUrl: async () => (await import("./coin98Wallet-RFXRNVWP.js")).default,
|
|
24
|
-
installed: isCoin98WalletInjected,
|
|
25
|
-
iconAccent: "#CDA349",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
rdns: "coin98.com",
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
|
|
30
|
-
ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
|
|
31
|
-
mobile: "https://coin98.com/wallet",
|
|
32
|
-
qrCode: "https://coin98.com/wallet",
|
|
33
|
-
chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
|
|
34
|
-
browserExtension: "https://coin98.com/wallet"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri: (uri) => uri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.coin98.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.coin98.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.coin98.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.coin98.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.coin98.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.coin98.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.coin98.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.coin98.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.coin98.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.coin98.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.coin98.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.coin98.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({
|
|
88
|
-
namespace: "coin98Wallet",
|
|
89
|
-
flag: "isCoin98"
|
|
90
|
-
})
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
coin98Wallet
|
|
96
|
-
};
|