@talken/talkenkit 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -27
- package/dist/wallets/walletConnectors/abcWallet/abcApi.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWallet.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/index.js +6 -6
- package/dist/wallets/walletConnectors/chunk-2J66VMY5.js +152 -0
- package/dist/wallets/walletConnectors/chunk-2J6LHJAF.js +228 -0
- package/dist/wallets/walletConnectors/chunk-2W6UBYKX.js +66 -0
- package/dist/wallets/walletConnectors/chunk-2ZPGPZCP.js +228 -0
- package/dist/wallets/walletConnectors/chunk-3DPCIDW6.js +1730 -0
- package/dist/wallets/walletConnectors/chunk-3IVTKZ7V.js +87 -0
- package/dist/wallets/walletConnectors/chunk-47TQ23J4.js +63 -0
- package/dist/wallets/walletConnectors/chunk-4HKJ53H3.js +1742 -0
- package/dist/wallets/walletConnectors/chunk-4T3UOJYR.js +76 -0
- package/dist/wallets/walletConnectors/chunk-53IBFGVW.js +102 -0
- package/dist/wallets/walletConnectors/chunk-5EARL7FN.js +39 -0
- package/dist/wallets/walletConnectors/chunk-5NM2LK2G.js +95 -0
- package/dist/wallets/walletConnectors/chunk-66SCJ77O.js +63 -0
- package/dist/wallets/walletConnectors/chunk-6JKWIEGA.js +228 -0
- package/dist/wallets/walletConnectors/chunk-7L33BY4P.js +44 -0
- package/dist/wallets/walletConnectors/chunk-7SXCH5TL.js +1752 -0
- package/dist/wallets/walletConnectors/chunk-7UZBDZZZ.js +599 -0
- package/dist/wallets/walletConnectors/chunk-AKLKCDXT.js +186 -0
- package/dist/wallets/walletConnectors/chunk-ATQWOE4J.js +110 -0
- package/dist/wallets/walletConnectors/chunk-B6DM7J4N.js +71 -0
- package/dist/wallets/walletConnectors/chunk-BHMMHU7Y.js +228 -0
- package/dist/wallets/walletConnectors/chunk-BJYSWRV6.js +93 -0
- package/dist/wallets/walletConnectors/chunk-BRM4ZVXZ.js +44 -0
- package/dist/wallets/walletConnectors/chunk-BUDWZAL7.js +44 -0
- package/dist/wallets/walletConnectors/chunk-C7S72VGD.js +93 -0
- package/dist/wallets/walletConnectors/chunk-CSWWNAYR.js +44 -0
- package/dist/wallets/walletConnectors/chunk-CULIWWLV.js +101 -0
- package/dist/wallets/walletConnectors/chunk-D7U5WEH2.js +96 -0
- package/dist/wallets/walletConnectors/chunk-E4N7SPPU.js +39 -0
- package/dist/wallets/walletConnectors/chunk-ENU7XLF5.js +44 -0
- package/dist/wallets/walletConnectors/chunk-ESRU5KCF.js +151 -0
- package/dist/wallets/walletConnectors/chunk-FBI7UGNO.js +95 -0
- package/dist/wallets/walletConnectors/chunk-FF7ZIXKD.js +39 -0
- package/dist/wallets/walletConnectors/chunk-FJCL2YPU.js +1737 -0
- package/dist/wallets/walletConnectors/chunk-FSU3WBH3.js +63 -0
- package/dist/wallets/walletConnectors/chunk-G2IHR6PW.js +63 -0
- package/dist/wallets/walletConnectors/chunk-GILMNC3J.js +96 -0
- package/dist/wallets/walletConnectors/chunk-HDYBRMYW.js +194 -0
- package/dist/wallets/walletConnectors/chunk-HIZCIW5L.js +228 -0
- package/dist/wallets/walletConnectors/chunk-JBVBQUCS.js +73 -0
- package/dist/wallets/walletConnectors/chunk-JCMXNOQ5.js +63 -0
- package/dist/wallets/walletConnectors/chunk-JWO4ZQLK.js +98 -0
- package/dist/wallets/walletConnectors/chunk-K6GEK4JB.js +66 -0
- package/dist/wallets/walletConnectors/chunk-K6UZPSBG.js +94 -0
- package/dist/wallets/walletConnectors/chunk-KIQDE4N6.js +39 -0
- package/dist/wallets/walletConnectors/chunk-KM55XFBI.js +65 -0
- package/dist/wallets/walletConnectors/chunk-KOT7JYJR.js +39 -0
- package/dist/wallets/walletConnectors/chunk-KRAIITU7.js +39 -0
- package/dist/wallets/walletConnectors/chunk-KZOSE2PI.js +228 -0
- package/dist/wallets/walletConnectors/chunk-L7I5I4CZ.js +44 -0
- package/dist/wallets/walletConnectors/chunk-LNZJLKFB.js +39 -0
- package/dist/wallets/walletConnectors/chunk-LTBQU2GW.js +63 -0
- package/dist/wallets/walletConnectors/chunk-LV765WZL.js +1748 -0
- package/dist/wallets/walletConnectors/chunk-MSI2BPP5.js +1722 -0
- package/dist/wallets/walletConnectors/chunk-MX2IY5CD.js +44 -0
- package/dist/wallets/walletConnectors/chunk-NLX2EV7O.js +44 -0
- package/dist/wallets/walletConnectors/chunk-NVAZ3B3V.js +228 -0
- package/dist/wallets/walletConnectors/chunk-OEB7MRS5.js +39 -0
- package/dist/wallets/walletConnectors/chunk-OEWU3ZMN.js +39 -0
- package/dist/wallets/walletConnectors/chunk-P2E4LSYH.js +1678 -0
- package/dist/wallets/walletConnectors/chunk-P2MTINFI.js +280 -0
- package/dist/wallets/walletConnectors/chunk-PNMSIVVT.js +44 -0
- package/dist/wallets/walletConnectors/chunk-PZNYT2HC.js +1722 -0
- package/dist/wallets/walletConnectors/chunk-QZRNNI3E.js +39 -0
- package/dist/wallets/walletConnectors/chunk-R4UYVU5X.js +1721 -0
- package/dist/wallets/walletConnectors/chunk-R6JCHV55.js +39 -0
- package/dist/wallets/walletConnectors/chunk-RLBGBBIO.js +309 -0
- package/dist/wallets/walletConnectors/chunk-RSZS2RMC.js +44 -0
- package/dist/wallets/walletConnectors/chunk-S2PY4MDO.js +108 -0
- package/dist/wallets/walletConnectors/chunk-SCOX5RF4.js +91 -0
- package/dist/wallets/walletConnectors/chunk-TUUNSVKZ.js +345 -0
- package/dist/wallets/walletConnectors/chunk-U2CUEL35.js +240 -0
- package/dist/wallets/walletConnectors/chunk-V6NRLREB.js +44 -0
- package/dist/wallets/walletConnectors/chunk-V7E5KRXJ.js +103 -0
- package/dist/wallets/walletConnectors/chunk-VCBVYFLJ.js +63 -0
- package/dist/wallets/walletConnectors/chunk-VM7AEC7H.js +39 -0
- package/dist/wallets/walletConnectors/chunk-VPNKJ7PB.js +1674 -0
- package/dist/wallets/walletConnectors/chunk-W2VDZD74.js +478 -0
- package/dist/wallets/walletConnectors/chunk-WAO3KL5U.js +285 -0
- package/dist/wallets/walletConnectors/chunk-WPHTIILX.js +228 -0
- package/dist/wallets/walletConnectors/chunk-WR7HSVMH.js +228 -0
- package/dist/wallets/walletConnectors/chunk-WSCJY2QD.js +228 -0
- package/dist/wallets/walletConnectors/chunk-WSLFMQIG.js +98 -0
- package/dist/wallets/walletConnectors/chunk-X3JQB5QL.js +44 -0
- package/dist/wallets/walletConnectors/chunk-X4CDP7L7.js +228 -0
- package/dist/wallets/walletConnectors/chunk-XETOVXYM.js +228 -0
- package/dist/wallets/walletConnectors/chunk-XYPR4BAF.js +436 -0
- package/dist/wallets/walletConnectors/chunk-YZBFKVTX.js +1675 -0
- package/dist/wallets/walletConnectors/chunk-Z2E65XSS.js +96 -0
- package/dist/wallets/walletConnectors/chunk-Z2ZRPTPX.js +1726 -0
- package/dist/wallets/walletConnectors/index.js +13 -13
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid,
|
|
4
|
+
isIOS
|
|
5
|
+
} from "./chunk-RETKWSKD.js";
|
|
6
|
+
import {
|
|
7
|
+
getInjectedConnector,
|
|
8
|
+
hasInjectedProvider
|
|
9
|
+
} from "./chunk-MBBGZGXF.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
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
WalletApi
|
|
4
|
+
} from "./chunk-JBRW4UTW.js";
|
|
5
|
+
import {
|
|
6
|
+
AuthApi
|
|
7
|
+
} from "./chunk-W7R3JGSC.js";
|
|
8
|
+
import {
|
|
9
|
+
BitcoinApi
|
|
10
|
+
} from "./chunk-BXCOGV3N.js";
|
|
11
|
+
import {
|
|
12
|
+
SolanaApi
|
|
13
|
+
} from "./chunk-DMRM7XAS.js";
|
|
14
|
+
import {
|
|
15
|
+
TransactionApi
|
|
16
|
+
} from "./chunk-KD2OAMDA.js";
|
|
17
|
+
import {
|
|
18
|
+
SigningApi
|
|
19
|
+
} from "./chunk-4UGXLYKP.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid
|
|
4
|
+
} from "./chunk-RETKWSKD.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-MBBGZGXF.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-PODFK4OS.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
|
|
14
|
+
var frontierWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isFrontierInjected = hasInjectedProvider({
|
|
19
|
+
namespace: "frontier.ethereum",
|
|
20
|
+
flag: "isFrontier"
|
|
21
|
+
});
|
|
22
|
+
const shouldUseWalletConnect = !isFrontierInjected;
|
|
23
|
+
return {
|
|
24
|
+
id: "frontier",
|
|
25
|
+
name: "Frontier Wallet",
|
|
26
|
+
rdns: "xyz.frontier.wallet",
|
|
27
|
+
installed: isFrontierInjected,
|
|
28
|
+
iconUrl: async () => (await import("./frontierWallet-HNIG7QYQ.js")).default,
|
|
29
|
+
iconBackground: "#CC703C",
|
|
30
|
+
downloadUrls: {
|
|
31
|
+
android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
|
|
32
|
+
ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
|
|
33
|
+
qrCode: "https://www.frontier.xyz/download",
|
|
34
|
+
chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
|
|
35
|
+
browserExtension: "https://www.frontier.xyz/download"
|
|
36
|
+
},
|
|
37
|
+
mobile: {
|
|
38
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
39
|
+
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
40
|
+
} : void 0
|
|
41
|
+
},
|
|
42
|
+
qrCode: shouldUseWalletConnect ? {
|
|
43
|
+
getUri: (uri) => {
|
|
44
|
+
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
45
|
+
},
|
|
46
|
+
instructions: {
|
|
47
|
+
learnMoreUrl: "https://help.frontier.xyz/en/",
|
|
48
|
+
steps: [
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.im_token.qr_code.step1.description",
|
|
51
|
+
step: "install",
|
|
52
|
+
title: "wallet_connectors.im_token.qr_code.step1.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
description: "wallet_connectors.im_token.qr_code.step2.description",
|
|
56
|
+
step: "create",
|
|
57
|
+
title: "wallet_connectors.im_token.qr_code.step2.title"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
description: "wallet_connectors.im_token.qr_code.step3.description",
|
|
61
|
+
step: "scan",
|
|
62
|
+
title: "wallet_connectors.im_token.qr_code.step3.title"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
} : void 0,
|
|
67
|
+
extension: {
|
|
68
|
+
instructions: {
|
|
69
|
+
learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
|
|
70
|
+
steps: [
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.frontier.extension.step1.description",
|
|
73
|
+
step: "install",
|
|
74
|
+
title: "wallet_connectors.frontier.extension.step1.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.frontier.extension.step2.description",
|
|
78
|
+
step: "create",
|
|
79
|
+
title: "wallet_connectors.frontier.extension.step2.title"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
description: "wallet_connectors.frontier.extension.step3.description",
|
|
83
|
+
step: "refresh",
|
|
84
|
+
title: "wallet_connectors.frontier.extension.step3.title"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
|
|
90
|
+
namespace: "frontier.ethereum",
|
|
91
|
+
flag: "isFrontier"
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
frontierWallet
|
|
98
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-MBBGZGXF.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-PODFK4OS.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/foxWallet/foxWallet.ts
|
|
11
|
+
var foxWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isFoxInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "foxwallet.ethereum"
|
|
17
|
+
});
|
|
18
|
+
const shouldUseWalletConnect = !isFoxInjected;
|
|
19
|
+
return {
|
|
20
|
+
id: "foxwallet",
|
|
21
|
+
name: "FoxWallet",
|
|
22
|
+
iconUrl: async () => (await import("./foxWallet-5ESSNXJV.js")).default,
|
|
23
|
+
iconBackground: "#fff",
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
|
|
26
|
+
ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
|
|
27
|
+
qrCode: "https://foxwallet.com/download"
|
|
28
|
+
},
|
|
29
|
+
mobile: {
|
|
30
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
31
|
+
return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
32
|
+
} : void 0
|
|
33
|
+
},
|
|
34
|
+
qrCode: shouldUseWalletConnect ? {
|
|
35
|
+
getUri: (uri) => uri,
|
|
36
|
+
instructions: {
|
|
37
|
+
learnMoreUrl: "https://foxwallet.com",
|
|
38
|
+
steps: [
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.fox.qr_code.step1.description",
|
|
41
|
+
step: "install",
|
|
42
|
+
title: "wallet_connectors.fox.qr_code.step1.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.fox.qr_code.step2.description",
|
|
46
|
+
step: "create",
|
|
47
|
+
title: "wallet_connectors.fox.qr_code.step2.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.fox.qr_code.step3.description",
|
|
51
|
+
step: "scan",
|
|
52
|
+
title: "wallet_connectors.fox.qr_code.step3.title"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
} : void 0,
|
|
57
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
58
|
+
projectId,
|
|
59
|
+
walletConnectParameters
|
|
60
|
+
}) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
foxWallet
|
|
66
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid
|
|
4
|
+
} from "./chunk-RETKWSKD.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-MBBGZGXF.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-PODFK4OS.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
14
|
+
var gateWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
19
|
+
const shouldUseWalletConnect = !isGateInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "gate",
|
|
22
|
+
name: "Gate Wallet",
|
|
23
|
+
rdns: "io.gate.wallet",
|
|
24
|
+
iconUrl: async () => (await import("./gateWallet-ZVEZILRP.js")).default,
|
|
25
|
+
iconAccent: "#fff",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
30
|
+
mobile: "https://www.gate.io/mobileapp",
|
|
31
|
+
qrCode: "https://www.gate.io/web3",
|
|
32
|
+
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
33
|
+
browserExtension: "https://www.gate.io/web3"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
+
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
+
} : void 0
|
|
39
|
+
},
|
|
40
|
+
qrCode: shouldUseWalletConnect ? {
|
|
41
|
+
getUri: (uri) => uri,
|
|
42
|
+
instructions: {
|
|
43
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
44
|
+
steps: [
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
47
|
+
step: "install",
|
|
48
|
+
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
52
|
+
step: "create",
|
|
53
|
+
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
57
|
+
step: "scan",
|
|
58
|
+
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
} : void 0,
|
|
63
|
+
extension: {
|
|
64
|
+
instructions: {
|
|
65
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
66
|
+
steps: [
|
|
67
|
+
{
|
|
68
|
+
description: "wallet_connectors.gate.extension.step1.description",
|
|
69
|
+
step: "install",
|
|
70
|
+
title: "wallet_connectors.gate.extension.step1.title"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.gate.extension.step2.description",
|
|
74
|
+
step: "create",
|
|
75
|
+
title: "wallet_connectors.gate.extension.step2.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.gate.extension.step3.description",
|
|
79
|
+
step: "refresh",
|
|
80
|
+
title: "wallet_connectors.gate.extension.step3.title"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
+
projectId,
|
|
87
|
+
walletConnectParameters
|
|
88
|
+
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
gateWallet
|
|
94
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
createAbcSolanaConnector
|
|
4
|
+
} from "./chunk-U2CUEL35.js";
|
|
5
|
+
import {
|
|
6
|
+
createAbcSolanaProvider
|
|
7
|
+
} from "./chunk-MY5YIDOB.js";
|
|
8
|
+
import {
|
|
9
|
+
createAbcWaasClient
|
|
10
|
+
} from "./chunk-R4UYVU5X.js";
|
|
11
|
+
|
|
12
|
+
// src/wallets/walletConnectors/abcWallet/abcSolanaWallet.ts
|
|
13
|
+
var abcSolanaWallet = (options) => ({
|
|
14
|
+
id: "abc-solana",
|
|
15
|
+
name: "ABC Solana Wallet",
|
|
16
|
+
iconUrl: async () => (await import("./abcWallet-AYWSIGAG.js")).default,
|
|
17
|
+
iconBackground: "#fff",
|
|
18
|
+
// Embedded wallet - no download URLs needed
|
|
19
|
+
installed: void 0,
|
|
20
|
+
createConnector: () => {
|
|
21
|
+
console.log("[abcSolanaWallet] Creating Solana connector with options:", {
|
|
22
|
+
hasConfig: !!options.config,
|
|
23
|
+
waasUrl: options.config.waasUrl,
|
|
24
|
+
environment: options.config.environment
|
|
25
|
+
});
|
|
26
|
+
const client = createAbcWaasClient(options.config);
|
|
27
|
+
const provider = createAbcSolanaProvider(client);
|
|
28
|
+
const connector = createAbcSolanaConnector({
|
|
29
|
+
client,
|
|
30
|
+
provider
|
|
31
|
+
});
|
|
32
|
+
console.log("[abcSolanaWallet] Solana connector created successfully");
|
|
33
|
+
return connector;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
abcSolanaWallet
|
|
39
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-MBBGZGXF.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-PODFK4OS.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/berasigWallet/berasigWallet.ts
|
|
11
|
+
var berasigWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isBerasigWalletInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "berasig.ethereum"
|
|
17
|
+
});
|
|
18
|
+
const shouldUseWalletConnect = !isBerasigWalletInjected;
|
|
19
|
+
return {
|
|
20
|
+
id: "berasig",
|
|
21
|
+
name: "BeraSig",
|
|
22
|
+
iconUrl: async () => (await import("./berasigWallet-NNBFDHFK.js")).default,
|
|
23
|
+
iconBackground: "#ffffff",
|
|
24
|
+
installed: isBerasigWalletInjected,
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
android: "https://play.google.com/store/apps/details?id=io.berasig.ios",
|
|
27
|
+
ios: "https://apps.apple.com/us/app/berasig-wallet-on-berachain/id6502052535",
|
|
28
|
+
qrCode: "https://berasig.com",
|
|
29
|
+
mobile: "https://berasig.com",
|
|
30
|
+
browserExtension: "https://chromewebstore.google.com/detail/berasig/ckedkkegjbflcfblcjklibnedmfjppbj"
|
|
31
|
+
},
|
|
32
|
+
extension: {
|
|
33
|
+
instructions: {
|
|
34
|
+
steps: [
|
|
35
|
+
{
|
|
36
|
+
description: "wallet_connectors.berasig.extension.step1.description",
|
|
37
|
+
step: "install",
|
|
38
|
+
title: "wallet_connectors.berasig.extension.step1.title"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.berasig.extension.step2.description",
|
|
42
|
+
step: "create",
|
|
43
|
+
title: "wallet_connectors.berasig.extension.step2.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.berasig.extension.step3.description",
|
|
47
|
+
step: "refresh",
|
|
48
|
+
title: "wallet_connectors.berasig.extension.step3.title"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
learnMoreUrl: "https://berasig.com"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
55
|
+
projectId,
|
|
56
|
+
walletConnectParameters
|
|
57
|
+
}) : getInjectedConnector({
|
|
58
|
+
namespace: "berasig.ethereum"
|
|
59
|
+
})
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
berasigWallet
|
|
65
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
createAbcSolanaConnector
|
|
4
|
+
} from "./chunk-AEQOPQL6.js";
|
|
5
|
+
import {
|
|
6
|
+
createAbcSolanaProvider
|
|
7
|
+
} from "./chunk-MY5YIDOB.js";
|
|
8
|
+
import {
|
|
9
|
+
createAbcWaasClient
|
|
10
|
+
} from "./chunk-3DPCIDW6.js";
|
|
11
|
+
|
|
12
|
+
// src/wallets/walletConnectors/abcWallet/abcSolanaWallet.ts
|
|
13
|
+
var abcSolanaWallet = (options) => ({
|
|
14
|
+
id: "abc-solana",
|
|
15
|
+
name: "ABC Solana Wallet",
|
|
16
|
+
iconUrl: async () => (await import("./abcWallet-AYWSIGAG.js")).default,
|
|
17
|
+
iconBackground: "#fff",
|
|
18
|
+
// Embedded wallet - no download URLs needed
|
|
19
|
+
installed: void 0,
|
|
20
|
+
createConnector: () => {
|
|
21
|
+
console.log("[abcSolanaWallet] Creating Solana connector with options:", {
|
|
22
|
+
hasConfig: !!options.config,
|
|
23
|
+
waasUrl: options.config.waasUrl,
|
|
24
|
+
environment: options.config.environment
|
|
25
|
+
});
|
|
26
|
+
const client = createAbcWaasClient(options.config);
|
|
27
|
+
const provider = createAbcSolanaProvider(client);
|
|
28
|
+
const connector = createAbcSolanaConnector({
|
|
29
|
+
client,
|
|
30
|
+
provider
|
|
31
|
+
});
|
|
32
|
+
console.log("[abcSolanaWallet] Solana connector created successfully");
|
|
33
|
+
return connector;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
abcSolanaWallet
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
createAbcSolanaConnector
|
|
4
|
+
} from "./chunk-AEQOPQL6.js";
|
|
5
|
+
import {
|
|
6
|
+
createAbcSolanaProvider
|
|
7
|
+
} from "./chunk-MY5YIDOB.js";
|
|
8
|
+
import {
|
|
9
|
+
createAbcWaasClient
|
|
10
|
+
} from "./chunk-VPNKJ7PB.js";
|
|
11
|
+
|
|
12
|
+
// src/wallets/walletConnectors/abcWallet/abcSolanaWallet.ts
|
|
13
|
+
var abcSolanaWallet = (options) => ({
|
|
14
|
+
id: "abc-solana",
|
|
15
|
+
name: "ABC Solana Wallet",
|
|
16
|
+
iconUrl: async () => (await import("./abcWallet-AYWSIGAG.js")).default,
|
|
17
|
+
iconBackground: "#fff",
|
|
18
|
+
// Embedded wallet - no download URLs needed
|
|
19
|
+
installed: void 0,
|
|
20
|
+
createConnector: () => {
|
|
21
|
+
console.log("[abcSolanaWallet] Creating Solana connector with options:", {
|
|
22
|
+
hasConfig: !!options.config,
|
|
23
|
+
waasUrl: options.config.waasUrl,
|
|
24
|
+
environment: options.config.environment
|
|
25
|
+
});
|
|
26
|
+
const client = createAbcWaasClient(options.config);
|
|
27
|
+
const provider = createAbcSolanaProvider(client);
|
|
28
|
+
const connector = createAbcSolanaConnector({
|
|
29
|
+
client,
|
|
30
|
+
provider
|
|
31
|
+
});
|
|
32
|
+
console.log("[abcSolanaWallet] Solana connector created successfully");
|
|
33
|
+
return connector;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
abcSolanaWallet
|
|
39
|
+
};
|