@funkit/connect 12.0.0 → 12.1.0
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 +17 -0
- package/dist/clients/{chunk-3DHSLLCU.js → chunk-DNVDK7JQ.js} +18 -14
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/fanatics.js +1 -1
- package/dist/clients/internal/nado/withdrawalCallback.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.css +11 -14
- package/dist/clients/internal/nado/withdrawalForm.js +1 -0
- package/dist/clients/lighter.css +11 -14
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +4 -2
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +7 -0
- package/dist/hooks/statsig/index.d.ts +1 -0
- package/dist/hooks/statsig/useExperimentV2.d.ts +8 -0
- package/dist/hooks/track/analytics/events.d.ts +51 -2
- package/dist/hooks/track/analytics/mappers.d.ts +4 -1
- package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +16 -3
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/track/user.d.ts +8 -0
- package/dist/index.css +11 -14
- package/dist/index.js +3276 -2952
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +10 -0
- package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +8 -1
- package/dist/modals/WithdrawalModal/useTrackWithdrawalQuoteEvents.d.ts +16 -0
- package/dist/providers/FunkitConfigContext.d.ts +1 -1
- package/dist/providers/FunkitStatsigProvider.d.ts +2 -7
- package/dist/providers/FunkitStatsigWhnProvider.d.ts +17 -0
- package/dist/providers/GeneralWalletProvider.d.ts +1 -0
- package/dist/shadow-css.js +1 -1
- package/dist/utils/statsig/client.d.ts +4 -0
- 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/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/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 +59 -59
- 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/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
- package/dist/clients/chunk-37Q6DUR7.js +0 -296
- package/dist/clients/chunk-3J2GOB5X.js +0 -190
- package/dist/clients/chunk-BCNE3ZKM.js +0 -190
- package/dist/clients/chunk-BWJC2WD7.js +0 -4899
- package/dist/clients/chunk-EQA5U4V6.js +0 -98
- package/dist/clients/chunk-EYMFEWQL.js +0 -30
- package/dist/clients/chunk-FPOGADLJ.js +0 -4899
- package/dist/clients/chunk-HB7S3NDI.js +0 -15
- package/dist/clients/chunk-HDFCM5UL.js +0 -15
- package/dist/clients/chunk-NEKHTWTT.js +0 -331
- package/dist/clients/chunk-PA7WW6VC.js +0 -296
- package/dist/clients/chunk-SKDFSMAO.js +0 -30
- package/dist/clients/chunk-TI2NG2Z6.js +0 -30
- package/dist/clients/chunk-TZFXFVDW.js +0 -296
- package/dist/clients/chunk-VXX2XK5J.js +0 -190
- package/dist/clients/chunk-WXSFLUPZ.js +0 -4891
- package/dist/clients/chunk-XSRAZSYG.js +0 -15
- package/dist/wallets/walletConnectors/chunk-4NV5BYRP.js +0 -95
- package/dist/wallets/walletConnectors/chunk-AVDUNQUW.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GUQM4QSL.js +0 -66
- package/dist/wallets/walletConnectors/chunk-IULPZP2Q.js +0 -69
- package/dist/wallets/walletConnectors/chunk-JPN6TWIT.js +0 -92
- package/dist/wallets/walletConnectors/chunk-KCRO2AGO.js +0 -106
- package/dist/wallets/walletConnectors/chunk-KI5Y2BBF.js +0 -94
- package/dist/wallets/walletConnectors/chunk-NR2OGDHQ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-OEEGYENV.js +0 -87
- package/dist/wallets/walletConnectors/chunk-OX37G4YT.js +0 -98
- package/dist/wallets/walletConnectors/chunk-SWFF3TWJ.js +0 -100
- package/dist/wallets/walletConnectors/chunk-TKB2OY6G.js +0 -99
- package/dist/wallets/walletConnectors/chunk-W2LCLDPX.js +0 -70
- package/dist/wallets/walletConnectors/chunk-WAHGI5L7.js +0 -96
- package/dist/wallets/walletConnectors/chunk-WKNQMP4A.js +0 -93
- package/dist/wallets/walletConnectors/chunk-XCNHV3HS.js +0 -110
- package/dist/wallets/walletConnectors/chunk-YO2K4MBH.js +0 -218
- package/dist/wallets/walletConnectors/chunk-YQFGVZGR.js +0 -92
- package/dist/clients/{chunk-JVR4CX6N.js → chunk-ECGTOMZQ.js} +3 -3
- /package/dist/clients/{chunk-RHOSJED2.js → chunk-RQALGV5U.js} +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-OLZ7626J.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
|
-
import { isMobile } from "@funkit/utils";
|
|
12
|
-
var tokenPocketWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
17
|
-
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "tokenPocket",
|
|
23
|
-
name: "TokenPocket",
|
|
24
|
-
rdns: "pro.tokenpocket",
|
|
25
|
-
iconUrl: async () => (await import("./tokenPocketWallet-FLFG3JUQ.js")).default,
|
|
26
|
-
iconBackground: "#2980FE",
|
|
27
|
-
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
30
|
-
browserExtension: "https://extension.tokenpocket.pro/",
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
32
|
-
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
33
|
-
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
34
|
-
mobile: "https://tokenpocket.pro/en/download/app"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
tokenPocketWallet
|
|
93
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-OLZ7626J.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-7YULGM2L.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,218 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-OLZ7626J.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
|
-
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
-
function isMetaMask(ethereum) {
|
|
13
|
-
if (!ethereum?.isMetaMask) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
if (ethereum.isApexWallet) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
if (ethereum.isAvalanche) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
if (ethereum.isBackpack) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
if (ethereum.isBifrost) {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
if (ethereum.isBitKeep) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
if (ethereum.isBitski) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
if (ethereum.isBlockWallet) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
if (ethereum.isCoinbaseWallet) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
if (ethereum.isDawn) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
if (ethereum.isEnkrypt) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
if (ethereum.isExodus) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
if (ethereum.isFrame) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
if (ethereum.isFrontier) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
if (ethereum.isGamestop) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
if (ethereum.isHyperPay) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
if (ethereum.isImToken) {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
if (ethereum.isKuCoinWallet) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
if (ethereum.isMathWallet) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
if (ethereum.isNestWallet) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
if (ethereum.isOpera) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
if (ethereum.isPhantom) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
if (ethereum.isPortal) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
if (ethereum.isRabby) {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
if (ethereum.isRainbow) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
if (ethereum.isStatus) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
if (ethereum.isTalisman) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
if (ethereum.isTally) {
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
if (ethereum.isTokenPocket) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
if (ethereum.isTokenary) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
if (ethereum.isXDEFI) {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
if (ethereum.isZeal) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
if (ethereum.isZerion) {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
var metaMaskWallet = ({
|
|
127
|
-
projectId,
|
|
128
|
-
walletConnectParameters
|
|
129
|
-
}) => {
|
|
130
|
-
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
131
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
132
|
-
const getUri = (uri) => {
|
|
133
|
-
return isAndroid() ? uri : isIOS() ? (
|
|
134
|
-
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
135
|
-
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
136
|
-
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
137
|
-
};
|
|
138
|
-
return {
|
|
139
|
-
id: "metaMask",
|
|
140
|
-
name: "MetaMask",
|
|
141
|
-
rdns: "io.metamask",
|
|
142
|
-
iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
|
|
143
|
-
iconAccent: "#f6851a",
|
|
144
|
-
iconBackground: "#fff",
|
|
145
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
146
|
-
downloadUrls: {
|
|
147
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
148
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
149
|
-
mobile: "https://metamask.io/download",
|
|
150
|
-
qrCode: "https://metamask.io/download",
|
|
151
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
152
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
153
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
154
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
155
|
-
browserExtension: "https://metamask.io/download"
|
|
156
|
-
},
|
|
157
|
-
mobile: {
|
|
158
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
159
|
-
},
|
|
160
|
-
qrCode: shouldUseWalletConnect ? {
|
|
161
|
-
getUri,
|
|
162
|
-
instructions: {
|
|
163
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
164
|
-
steps: [
|
|
165
|
-
{
|
|
166
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
167
|
-
step: "install",
|
|
168
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
172
|
-
step: "create",
|
|
173
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
177
|
-
step: "refresh",
|
|
178
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
} : void 0,
|
|
183
|
-
extension: {
|
|
184
|
-
instructions: {
|
|
185
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
186
|
-
steps: [
|
|
187
|
-
{
|
|
188
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
189
|
-
step: "install",
|
|
190
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
194
|
-
step: "create",
|
|
195
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
199
|
-
step: "refresh",
|
|
200
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
206
|
-
projectId,
|
|
207
|
-
walletConnectParameters
|
|
208
|
-
}) : getInjectedConnector({
|
|
209
|
-
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
210
|
-
isMetaMask
|
|
211
|
-
) ?? window.ethereum : void 0
|
|
212
|
-
})
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
export {
|
|
217
|
-
metaMaskWallet
|
|
218
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-OLZ7626J.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
|
-
var roninWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isRoninInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "ronin.provider"
|
|
17
|
-
});
|
|
18
|
-
return {
|
|
19
|
-
id: "ronin",
|
|
20
|
-
name: "Ronin Wallet",
|
|
21
|
-
iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
|
|
22
|
-
iconBackground: "#ffffff",
|
|
23
|
-
rdns: "com.roninchain.wallet",
|
|
24
|
-
installed: isRoninInjected || void 0,
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
27
|
-
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
28
|
-
mobile: "https://wallet.roninchain.com",
|
|
29
|
-
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
30
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
31
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
32
|
-
browserExtension: "https://wallet.roninchain.com/",
|
|
33
|
-
qrCode: "https://wallet.roninchain.com/"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
|
|
37
|
-
},
|
|
38
|
-
qrCode: {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.ronin.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.ronin.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.ronin.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.ronin.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.ronin.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.ronin.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.ronin.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.ronin.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.ronin.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.ronin.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.ronin.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.ronin.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
})
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
roninWallet
|
|
92
|
-
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
toWithdrawalAmountBaseUnit
|
|
4
|
-
} from "./chunk-B7UU2ETA.js";
|
|
5
2
|
import {
|
|
6
3
|
isExpectedNadoWithdrawalFailure,
|
|
7
4
|
toNadoWithdrawalErrorMessage
|
|
8
5
|
} from "./chunk-DYV3LRSE.js";
|
|
6
|
+
import {
|
|
7
|
+
toWithdrawalAmountBaseUnit
|
|
8
|
+
} from "./chunk-B7UU2ETA.js";
|
|
9
9
|
import {
|
|
10
10
|
getAccount,
|
|
11
11
|
signTypedData,
|
|
File without changes
|