@dogeos/dogeos-sdk 1.0.4-beta.4 → 1.0.4-beta.5
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 +4 -4
- package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-265UVQVV.js +68 -0
- package/dist/wallets/walletConnectors/chunk-2CARHU3Q.js +92 -0
- package/dist/wallets/walletConnectors/chunk-2KIA372N.js +95 -0
- package/dist/wallets/walletConnectors/chunk-32NVGNZM.js +99 -0
- package/dist/wallets/walletConnectors/chunk-3RV2PDNU.js +90 -0
- package/dist/wallets/walletConnectors/chunk-BH3DH43L.js +92 -0
- package/dist/wallets/walletConnectors/chunk-C77FT77Y.js +93 -0
- package/dist/wallets/walletConnectors/chunk-FWKF7LPD.js +107 -0
- package/dist/wallets/walletConnectors/chunk-FZFBCMJX.js +98 -0
- package/dist/wallets/walletConnectors/chunk-GPSB5KPA.js +63 -0
- package/dist/wallets/walletConnectors/chunk-HOLACY3F.js +68 -0
- package/dist/wallets/walletConnectors/chunk-IQZBD6M4.js +63 -0
- package/dist/wallets/walletConnectors/chunk-JY4IF5AQ.js +84 -0
- package/dist/wallets/walletConnectors/chunk-L3O7BR5I.js +105 -0
- package/dist/wallets/walletConnectors/chunk-MD4POIVS.js +93 -0
- package/dist/wallets/walletConnectors/chunk-MFP2ILVQ.js +93 -0
- package/dist/wallets/walletConnectors/chunk-OP7MZATO.js +100 -0
- package/dist/wallets/walletConnectors/chunk-U37MS2YB.js +88 -0
- package/dist/wallets/walletConnectors/chunk-UID7XAQR.js +143 -0
- package/dist/wallets/walletConnectors/chunk-UW7FKY4Z.js +27 -0
- package/dist/wallets/walletConnectors/chunk-VFRUWZVT.js +62 -0
- package/dist/wallets/walletConnectors/chunk-WQIJIVN4.js +91 -0
- package/dist/wallets/walletConnectors/chunk-XAQXLPKN.js +90 -0
- package/dist/wallets/walletConnectors/chunk-XVUM5YFT.js +93 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +43 -43
- package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +1 -6
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-75A5A7MH.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
|
+
var roninWallet = ({ projectId, walletConnectParameters }) => {
|
|
12
|
+
const isRoninInjected = hasInjectedProvider({
|
|
13
|
+
namespace: "ronin.provider"
|
|
14
|
+
});
|
|
15
|
+
const shouldUseWalletConnect = !isRoninInjected;
|
|
16
|
+
const getUri = (uri) => {
|
|
17
|
+
return `roninwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
id: "ronin",
|
|
21
|
+
name: "Ronin Wallet",
|
|
22
|
+
iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
|
|
23
|
+
iconBackground: "#ffffff",
|
|
24
|
+
rdns: "com.roninchain.wallet",
|
|
25
|
+
installed: isRoninInjected || void 0,
|
|
26
|
+
downloadUrls: {
|
|
27
|
+
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
28
|
+
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
29
|
+
mobile: "https://wallet.roninchain.com",
|
|
30
|
+
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
31
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
32
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
33
|
+
browserExtension: "https://wallet.roninchain.com/",
|
|
34
|
+
qrCode: "https://wallet.roninchain.com/"
|
|
35
|
+
},
|
|
36
|
+
mobile: {
|
|
37
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
38
|
+
},
|
|
39
|
+
qrCode: shouldUseWalletConnect ? {
|
|
40
|
+
getUri: (uri) => uri,
|
|
41
|
+
instructions: {
|
|
42
|
+
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
43
|
+
steps: [
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.ronin.qr_code.step1.description",
|
|
46
|
+
step: "install",
|
|
47
|
+
title: "wallet_connectors.ronin.qr_code.step1.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.ronin.qr_code.step2.description",
|
|
51
|
+
step: "create",
|
|
52
|
+
title: "wallet_connectors.ronin.qr_code.step2.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
description: "wallet_connectors.ronin.qr_code.step3.description",
|
|
56
|
+
step: "scan",
|
|
57
|
+
title: "wallet_connectors.ronin.qr_code.step3.title"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
} : void 0,
|
|
62
|
+
extension: {
|
|
63
|
+
instructions: {
|
|
64
|
+
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
65
|
+
steps: [
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.ronin.extension.step1.description",
|
|
68
|
+
step: "install",
|
|
69
|
+
title: "wallet_connectors.ronin.extension.step1.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.ronin.extension.step2.description",
|
|
73
|
+
step: "create",
|
|
74
|
+
title: "wallet_connectors.ronin.extension.step2.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.ronin.extension.step3.description",
|
|
78
|
+
step: "refresh",
|
|
79
|
+
title: "wallet_connectors.ronin.extension.step3.title"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
+
projectId,
|
|
86
|
+
walletConnectParameters
|
|
87
|
+
}) : getInjectedConnector({ namespace: "ronin.provider" })
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
roninWallet
|
|
93
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-75A5A7MH.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
14
|
+
var okxWallet = ({ projectId, walletConnectParameters }) => {
|
|
15
|
+
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
16
|
+
const shouldUseWalletConnect = !isOKXInjected;
|
|
17
|
+
return {
|
|
18
|
+
id: "okx",
|
|
19
|
+
name: "OKX Wallet",
|
|
20
|
+
rdns: "com.okex.wallet",
|
|
21
|
+
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
22
|
+
iconAccent: "#000",
|
|
23
|
+
iconBackground: "#000",
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
26
|
+
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
27
|
+
mobile: "https://okx.com/download",
|
|
28
|
+
qrCode: "https://okx.com/download",
|
|
29
|
+
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
30
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
31
|
+
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
32
|
+
browserExtension: "https://okx.com/download"
|
|
33
|
+
},
|
|
34
|
+
mobile: {
|
|
35
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
36
|
+
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
37
|
+
} : void 0
|
|
38
|
+
},
|
|
39
|
+
qrCode: shouldUseWalletConnect ? {
|
|
40
|
+
getUri: (uri) => uri,
|
|
41
|
+
instructions: {
|
|
42
|
+
learnMoreUrl: "https://okx.com/web3/",
|
|
43
|
+
steps: [
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
46
|
+
step: "install",
|
|
47
|
+
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
51
|
+
step: "create",
|
|
52
|
+
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
56
|
+
step: "scan",
|
|
57
|
+
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
} : void 0,
|
|
62
|
+
extension: {
|
|
63
|
+
instructions: {
|
|
64
|
+
learnMoreUrl: "https://okx.com/web3/",
|
|
65
|
+
steps: [
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.okx.extension.step1.description",
|
|
68
|
+
step: "install",
|
|
69
|
+
title: "wallet_connectors.okx.extension.step1.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.okx.extension.step2.description",
|
|
73
|
+
step: "create",
|
|
74
|
+
title: "wallet_connectors.okx.extension.step2.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.okx.extension.step3.description",
|
|
78
|
+
step: "refresh",
|
|
79
|
+
title: "wallet_connectors.okx.extension.step3.title"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
+
projectId,
|
|
86
|
+
walletConnectParameters
|
|
87
|
+
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
okxWallet
|
|
93
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-75A5A7MH.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
+
var subWallet = ({ projectId, walletConnectParameters }) => {
|
|
12
|
+
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
13
|
+
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
14
|
+
const getUriMobile = (uri) => {
|
|
15
|
+
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
16
|
+
};
|
|
17
|
+
const getUriQR = (uri) => {
|
|
18
|
+
return uri;
|
|
19
|
+
};
|
|
20
|
+
const mobileConnector = {
|
|
21
|
+
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
22
|
+
};
|
|
23
|
+
let qrConnector = void 0;
|
|
24
|
+
if (shouldUseWalletConnect) {
|
|
25
|
+
qrConnector = {
|
|
26
|
+
getUri: getUriQR,
|
|
27
|
+
instructions: {
|
|
28
|
+
learnMoreUrl: "https://www.subwallet.app/",
|
|
29
|
+
steps: [
|
|
30
|
+
{
|
|
31
|
+
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
32
|
+
step: "install",
|
|
33
|
+
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
37
|
+
step: "create",
|
|
38
|
+
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
42
|
+
step: "scan",
|
|
43
|
+
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const extensionConnector = {
|
|
50
|
+
instructions: {
|
|
51
|
+
learnMoreUrl: "https://www.subwallet.app/",
|
|
52
|
+
steps: [
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
55
|
+
step: "install",
|
|
56
|
+
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
60
|
+
step: "create",
|
|
61
|
+
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
65
|
+
step: "refresh",
|
|
66
|
+
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
return {
|
|
72
|
+
id: "subwallet",
|
|
73
|
+
name: "SubWallet",
|
|
74
|
+
rdns: "app.subwallet",
|
|
75
|
+
iconUrl: async () => (await import("./subWallet-LOZELSAO.js")).default,
|
|
76
|
+
iconBackground: "#fff",
|
|
77
|
+
installed: isSubWalletInjected || void 0,
|
|
78
|
+
downloadUrls: {
|
|
79
|
+
browserExtension: "https://www.subwallet.app/download",
|
|
80
|
+
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
81
|
+
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
82
|
+
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
83
|
+
mobile: "https://www.subwallet.app/download",
|
|
84
|
+
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
85
|
+
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
86
|
+
qrCode: "https://www.subwallet.app/download"
|
|
87
|
+
},
|
|
88
|
+
mobile: mobileConnector,
|
|
89
|
+
qrCode: qrConnector,
|
|
90
|
+
extension: extensionConnector,
|
|
91
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
92
|
+
projectId,
|
|
93
|
+
walletConnectParameters
|
|
94
|
+
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
subWallet
|
|
100
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-75A5A7MH.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/zealWallet/zealWallet.ts
|
|
11
|
+
var zealWallet = ({ projectId, walletConnectParameters }) => {
|
|
12
|
+
const isZealWalletInjected = hasInjectedProvider({ flag: "isZeal" });
|
|
13
|
+
const shouldUseWalletConnect = !isZealWalletInjected;
|
|
14
|
+
return {
|
|
15
|
+
id: "zeal",
|
|
16
|
+
name: "Zeal",
|
|
17
|
+
rdns: "app.zeal",
|
|
18
|
+
iconUrl: async () => (await import("./zealWallet-URNQ2AWF.js")).default,
|
|
19
|
+
iconBackground: "#fff0",
|
|
20
|
+
iconAccent: "#00FFFF",
|
|
21
|
+
downloadUrls: {
|
|
22
|
+
browserExtension: "https://zeal.app",
|
|
23
|
+
chrome: "https://chromewebstore.google.com/detail/zeal-wallet/heamnjbnflcikcggoiplibfommfbkjpj",
|
|
24
|
+
android: "https://play.google.com/store/apps/details?id=app.zeal.wallet",
|
|
25
|
+
ios: "https://testflight.apple.com/join/MP72Ytw8",
|
|
26
|
+
mobile: "https://zeal.app",
|
|
27
|
+
qrCode: "https://zeal.app"
|
|
28
|
+
},
|
|
29
|
+
mobile: {
|
|
30
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
31
|
+
return `zeal://wc?uri=${encodeURIComponent(uri)}`;
|
|
32
|
+
} : void 0
|
|
33
|
+
},
|
|
34
|
+
qrCode: shouldUseWalletConnect ? {
|
|
35
|
+
getUri: (uri) => uri,
|
|
36
|
+
instructions: {
|
|
37
|
+
learnMoreUrl: "https://zeal.app",
|
|
38
|
+
steps: [
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.zeal.qr_code.step1.description",
|
|
41
|
+
step: "install",
|
|
42
|
+
title: "wallet_connectors.zeal.qr_code.step1.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.zeal.qr_code.step2.description",
|
|
46
|
+
step: "create",
|
|
47
|
+
title: "wallet_connectors.zeal.qr_code.step2.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.zeal.qr_code.step3.description",
|
|
51
|
+
step: "scan",
|
|
52
|
+
title: "wallet_connectors.zeal.qr_code.step3.title"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
} : void 0,
|
|
57
|
+
extension: {
|
|
58
|
+
instructions: {
|
|
59
|
+
learnMoreUrl: "https://zeal.app",
|
|
60
|
+
steps: [
|
|
61
|
+
{
|
|
62
|
+
description: "wallet_connectors.zeal.extension.step1.description",
|
|
63
|
+
step: "install",
|
|
64
|
+
title: "wallet_connectors.zeal.extension.step1.title"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.zeal.extension.step2.description",
|
|
68
|
+
step: "create",
|
|
69
|
+
title: "wallet_connectors.zeal.extension.step2.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.zeal.extension.step3.description",
|
|
73
|
+
step: "refresh",
|
|
74
|
+
title: "wallet_connectors.zeal.extension.step3.title"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
80
|
+
projectId,
|
|
81
|
+
walletConnectParameters
|
|
82
|
+
}) : getInjectedConnector({ flag: "isZeal" })
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export {
|
|
87
|
+
zealWallet
|
|
88
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid,
|
|
8
|
+
isIOS
|
|
9
|
+
} from "./chunk-RETKWSKD.js";
|
|
10
|
+
import {
|
|
11
|
+
getWalletConnectConnector
|
|
12
|
+
} from "./chunk-75A5A7MH.js";
|
|
13
|
+
|
|
14
|
+
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
15
|
+
function isMetaMask(ethereum) {
|
|
16
|
+
if (!ethereum?.isMetaMask) return false;
|
|
17
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) return false;
|
|
18
|
+
if (ethereum.isApexWallet) return false;
|
|
19
|
+
if (ethereum.isAvalanche) return false;
|
|
20
|
+
if (ethereum.isBackpack) return false;
|
|
21
|
+
if (ethereum.isBifrost) return false;
|
|
22
|
+
if (ethereum.isBitKeep) return false;
|
|
23
|
+
if (ethereum.isBitski) return false;
|
|
24
|
+
if (ethereum.isBlockWallet) return false;
|
|
25
|
+
if (ethereum.isCoinbaseWallet) return false;
|
|
26
|
+
if (ethereum.isDawn) return false;
|
|
27
|
+
if (ethereum.isEnkrypt) return false;
|
|
28
|
+
if (ethereum.isExodus) return false;
|
|
29
|
+
if (ethereum.isFrame) return false;
|
|
30
|
+
if (ethereum.isFrontier) return false;
|
|
31
|
+
if (ethereum.isGamestop) return false;
|
|
32
|
+
if (ethereum.isHyperPay) return false;
|
|
33
|
+
if (ethereum.isImToken) return false;
|
|
34
|
+
if (ethereum.isKuCoinWallet) return false;
|
|
35
|
+
if (ethereum.isMathWallet) return false;
|
|
36
|
+
if (ethereum.isNestWallet) return false;
|
|
37
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
|
|
38
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) return false;
|
|
39
|
+
if (ethereum.isOpera) return false;
|
|
40
|
+
if (ethereum.isPhantom) return false;
|
|
41
|
+
if (ethereum.isPortal) return false;
|
|
42
|
+
if (ethereum.isRabby) return false;
|
|
43
|
+
if (ethereum.isRainbow) return false;
|
|
44
|
+
if (ethereum.isStatus) return false;
|
|
45
|
+
if (ethereum.isTalisman) return false;
|
|
46
|
+
if (ethereum.isTally) return false;
|
|
47
|
+
if (ethereum.isTokenPocket) return false;
|
|
48
|
+
if (ethereum.isTokenary) return false;
|
|
49
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
|
|
50
|
+
if (ethereum.isXDEFI) return false;
|
|
51
|
+
if (ethereum.isZeal) return false;
|
|
52
|
+
if (ethereum.isZerion) return false;
|
|
53
|
+
if (ethereum.__seif) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
var metaMaskWallet = ({ projectId, walletConnectParameters }) => {
|
|
57
|
+
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
58
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
59
|
+
const getUri = (uri) => {
|
|
60
|
+
return isAndroid() ? uri : isIOS() ? (
|
|
61
|
+
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
62
|
+
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
63
|
+
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
64
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
id: "metaMask",
|
|
67
|
+
name: "MetaMask",
|
|
68
|
+
rdns: "io.metamask",
|
|
69
|
+
iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
|
|
70
|
+
iconAccent: "#f6851a",
|
|
71
|
+
iconBackground: "#fff",
|
|
72
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
73
|
+
downloadUrls: {
|
|
74
|
+
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
75
|
+
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
76
|
+
mobile: "https://metamask.io/download",
|
|
77
|
+
qrCode: "https://metamask.io/download",
|
|
78
|
+
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
79
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
80
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
81
|
+
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
82
|
+
browserExtension: "https://metamask.io/download"
|
|
83
|
+
},
|
|
84
|
+
mobile: {
|
|
85
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
86
|
+
},
|
|
87
|
+
qrCode: shouldUseWalletConnect ? {
|
|
88
|
+
getUri,
|
|
89
|
+
instructions: {
|
|
90
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
91
|
+
steps: [
|
|
92
|
+
{
|
|
93
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
94
|
+
step: "install",
|
|
95
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
99
|
+
step: "create",
|
|
100
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
104
|
+
step: "refresh",
|
|
105
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
} : void 0,
|
|
110
|
+
extension: {
|
|
111
|
+
instructions: {
|
|
112
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
113
|
+
steps: [
|
|
114
|
+
{
|
|
115
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
116
|
+
step: "install",
|
|
117
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
121
|
+
step: "create",
|
|
122
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
126
|
+
step: "refresh",
|
|
127
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
133
|
+
projectId,
|
|
134
|
+
walletConnectParameters
|
|
135
|
+
}) : getInjectedConnector({
|
|
136
|
+
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(isMetaMask) ?? window.ethereum : void 0
|
|
137
|
+
})
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
metaMaskWallet
|
|
143
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
isIOS
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/dawnWallet/dawnWallet.ts
|
|
11
|
+
var dawnWallet = () => ({
|
|
12
|
+
id: "dawn",
|
|
13
|
+
name: "Dawn",
|
|
14
|
+
iconUrl: async () => (await import("./dawnWallet-ONVAA3S4.js")).default,
|
|
15
|
+
iconBackground: "#000000",
|
|
16
|
+
installed: hasInjectedProvider({ flag: "isDawn" }),
|
|
17
|
+
hidden: () => !isIOS(),
|
|
18
|
+
downloadUrls: {
|
|
19
|
+
ios: "https://apps.apple.com/us/app/dawn-ethereum-wallet/id1673143782",
|
|
20
|
+
mobile: "https://dawnwallet.xyz"
|
|
21
|
+
},
|
|
22
|
+
createConnector: getInjectedConnector({ flag: "isDawn" })
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
dawnWallet
|
|
27
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-75A5A7MH.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/berasigWallet/berasigWallet.ts
|
|
11
|
+
var berasigWallet = ({ projectId, walletConnectParameters }) => {
|
|
12
|
+
const isBerasigWalletInjected = hasInjectedProvider({
|
|
13
|
+
namespace: "berasig.ethereum"
|
|
14
|
+
});
|
|
15
|
+
const shouldUseWalletConnect = !isBerasigWalletInjected;
|
|
16
|
+
return {
|
|
17
|
+
id: "berasig",
|
|
18
|
+
name: "BeraSig",
|
|
19
|
+
iconUrl: async () => (await import("./berasigWallet-NNBFDHFK.js")).default,
|
|
20
|
+
iconBackground: "#ffffff",
|
|
21
|
+
installed: isBerasigWalletInjected,
|
|
22
|
+
downloadUrls: {
|
|
23
|
+
android: "https://play.google.com/store/apps/details?id=io.berasig.ios",
|
|
24
|
+
ios: "https://apps.apple.com/us/app/berasig-wallet-on-berachain/id6502052535",
|
|
25
|
+
qrCode: "https://berasig.com",
|
|
26
|
+
mobile: "https://berasig.com",
|
|
27
|
+
browserExtension: "https://chromewebstore.google.com/detail/berasig/ckedkkegjbflcfblcjklibnedmfjppbj"
|
|
28
|
+
},
|
|
29
|
+
extension: {
|
|
30
|
+
instructions: {
|
|
31
|
+
steps: [
|
|
32
|
+
{
|
|
33
|
+
description: "wallet_connectors.berasig.extension.step1.description",
|
|
34
|
+
step: "install",
|
|
35
|
+
title: "wallet_connectors.berasig.extension.step1.title"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
description: "wallet_connectors.berasig.extension.step2.description",
|
|
39
|
+
step: "create",
|
|
40
|
+
title: "wallet_connectors.berasig.extension.step2.title"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
description: "wallet_connectors.berasig.extension.step3.description",
|
|
44
|
+
step: "refresh",
|
|
45
|
+
title: "wallet_connectors.berasig.extension.step3.title"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
learnMoreUrl: "https://berasig.com"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
52
|
+
projectId,
|
|
53
|
+
walletConnectParameters
|
|
54
|
+
}) : getInjectedConnector({
|
|
55
|
+
namespace: "berasig.ethereum"
|
|
56
|
+
})
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
berasigWallet
|
|
62
|
+
};
|