@funkit/connect 12.7.0 → 12.8.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 +12 -0
- package/dist/__private__/index.d.ts +3 -0
- package/dist/clients/chunk-YD27ZAJB.js +296 -0
- package/dist/clients/internal/nado/withdrawalCallback.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.css +81 -81
- package/dist/clients/lighter.css +81 -81
- package/dist/clients/nado.js +2 -2
- package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
- package/dist/index.css +159 -159
- package/dist/index.js +20053 -20049
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -1
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -1
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -1
- package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +2 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +2 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +2 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +2 -1
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -1
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeController.d.ts +2 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +2 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -13
- package/dist/modals/CheckoutModal/stepTransition.shared.d.ts +16 -0
- package/dist/shadow-css.js +1 -1
- package/dist/wallets/walletConnectors/index.js +50 -50
- package/package.json +5 -5
- package/dist/wallets/walletConnectors/chunk-53MYTA42.js +0 -94
- package/dist/wallets/walletConnectors/chunk-65ULY6OC.js +0 -70
- package/dist/wallets/walletConnectors/chunk-A5POD5SV.js +0 -103
- package/dist/wallets/walletConnectors/chunk-ANODOMIN.js +0 -218
- package/dist/wallets/walletConnectors/chunk-ASTCNVJC.js +0 -96
- package/dist/wallets/walletConnectors/chunk-F45CUFRR.js +0 -66
- package/dist/wallets/walletConnectors/chunk-FYPQ3HP4.js +0 -92
- package/dist/wallets/walletConnectors/chunk-IWPW26AL.js +0 -98
- package/dist/wallets/walletConnectors/chunk-JJBLW4IU.js +0 -87
- package/dist/wallets/walletConnectors/chunk-KE4CWI3A.js +0 -93
- package/dist/wallets/walletConnectors/chunk-MWB6LFSG.js +0 -110
- package/dist/wallets/walletConnectors/chunk-OVDCDVFX.js +0 -100
- package/dist/wallets/walletConnectors/chunk-PPQ6L4K2.js +0 -106
- package/dist/wallets/walletConnectors/chunk-RJF2YEZ5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-RQYEGJKL.js +0 -96
- package/dist/wallets/walletConnectors/chunk-TIHTQ3OB.js +0 -95
- package/dist/wallets/walletConnectors/chunk-TM7UBV3Q.js +0 -69
- package/dist/wallets/walletConnectors/chunk-USLZMUJ3.js +0 -99
|
@@ -1,148 +1,148 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-HXX4PRE2.js";
|
|
5
|
+
import {
|
|
6
|
+
zealWallet
|
|
7
|
+
} from "./chunk-GLX5FULK.js";
|
|
5
8
|
import {
|
|
6
9
|
zerionWallet
|
|
7
10
|
} from "./chunk-34B7OJNT.js";
|
|
8
11
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-XODA5ESL.js";
|
|
11
14
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
talismanWallet
|
|
16
|
+
} from "./chunk-IAYYWCVB.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenPocketWallet
|
|
16
19
|
} from "./chunk-NXWG6FG2.js";
|
|
17
20
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
talismanWallet
|
|
22
|
-
} from "./chunk-IAYYWCVB.js";
|
|
21
|
+
tahoWallet
|
|
22
|
+
} from "./chunk-U74RFZOL.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-TPM5PUJD.js";
|
|
26
|
-
import {
|
|
27
|
-
uniswapWallet
|
|
28
|
-
} from "./chunk-UNDWHCDH.js";
|
|
29
26
|
import {
|
|
30
27
|
trustWallet
|
|
31
28
|
} from "./chunk-SR5CZR3L.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
30
|
+
uniswapWallet
|
|
31
|
+
} from "./chunk-UNDWHCDH.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
walletConnectWallet
|
|
34
|
+
} from "./chunk-DUX4XCDV.js";
|
|
38
35
|
import {
|
|
39
36
|
phantomWallet
|
|
40
37
|
} from "./chunk-Q27YVDDH.js";
|
|
38
|
+
import {
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-RQ2GXOJL.js";
|
|
41
41
|
import {
|
|
42
42
|
ramperWallet
|
|
43
43
|
} from "./chunk-GPXIBTWN.js";
|
|
44
|
+
import {
|
|
45
|
+
rainbowWallet
|
|
46
|
+
} from "./chunk-ZSSSLFQF.js";
|
|
44
47
|
import {
|
|
45
48
|
roninWallet
|
|
46
49
|
} from "./chunk-IA5432IR.js";
|
|
47
50
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
safeWallet
|
|
52
|
+
} from "./chunk-IR3PJMVM.js";
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-UN3ONVNC.js";
|
|
53
56
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
subWallet
|
|
58
|
-
} from "./chunk-XODA5ESL.js";
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-BBB2J3US.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
ledgerWallet
|
|
61
|
+
} from "./chunk-BL4OC2EJ.js";
|
|
62
62
|
import {
|
|
63
63
|
metaMaskWallet
|
|
64
64
|
} from "./chunk-RXRYHMRI.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-DSPQXAB2.js";
|
|
68
|
+
import {
|
|
69
|
+
oktoWallet
|
|
70
|
+
} from "./chunk-V4M3SNPS.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
73
|
} from "./chunk-CU5J53XR.js";
|
|
71
74
|
import {
|
|
72
75
|
omniWallet
|
|
73
76
|
} from "./chunk-2TAUCVX7.js";
|
|
74
|
-
import {
|
|
75
|
-
oktoWallet
|
|
76
|
-
} from "./chunk-V4M3SNPS.js";
|
|
77
77
|
import {
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-GFS2AVAH.js";
|
|
80
80
|
import {
|
|
81
81
|
oneKeyWallet
|
|
82
82
|
} from "./chunk-KN32ITJ7.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-Z6LDN2AN.js";
|
|
83
86
|
import {
|
|
84
87
|
foxWallet
|
|
85
88
|
} from "./chunk-U52QO5HF.js";
|
|
86
|
-
import {
|
|
87
|
-
dawnWallet
|
|
88
|
-
} from "./chunk-LV6YV3DE.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
91
|
} from "./chunk-IWOMSW64.js";
|
|
92
|
+
import {
|
|
93
|
+
frameWallet
|
|
94
|
+
} from "./chunk-B572YIAQ.js";
|
|
92
95
|
import {
|
|
93
96
|
gateWallet
|
|
94
97
|
} from "./chunk-YRMBR6NA.js";
|
|
95
98
|
import {
|
|
96
99
|
imTokenWallet
|
|
97
100
|
} from "./chunk-YY2JA23M.js";
|
|
98
|
-
import {
|
|
99
|
-
frameWallet
|
|
100
|
-
} from "./chunk-B572YIAQ.js";
|
|
101
|
-
import {
|
|
102
|
-
ledgerWallet
|
|
103
|
-
} from "./chunk-BL4OC2EJ.js";
|
|
104
101
|
import {
|
|
105
102
|
injectedWallet
|
|
106
103
|
} from "./chunk-M75V7OL3.js";
|
|
104
|
+
import {
|
|
105
|
+
kresusWallet
|
|
106
|
+
} from "./chunk-V77ATGZT.js";
|
|
107
107
|
import {
|
|
108
108
|
bybitWallet
|
|
109
109
|
} from "./chunk-BBDNB5TQ.js";
|
|
110
110
|
import {
|
|
111
111
|
clvWallet
|
|
112
112
|
} from "./chunk-4FHNLTR3.js";
|
|
113
|
-
import {
|
|
114
|
-
coin98Wallet
|
|
115
|
-
} from "./chunk-RFCZYLNR.js";
|
|
116
113
|
import {
|
|
117
114
|
coinbaseWallet
|
|
118
115
|
} from "./chunk-SM2A3OSG.js";
|
|
119
116
|
import {
|
|
120
117
|
coreWallet
|
|
121
118
|
} from "./chunk-TRZDAXCQ.js";
|
|
119
|
+
import {
|
|
120
|
+
coin98Wallet
|
|
121
|
+
} from "./chunk-RFCZYLNR.js";
|
|
122
122
|
import {
|
|
123
123
|
customWallet
|
|
124
124
|
} from "./chunk-VKM5M5UK.js";
|
|
125
|
+
import {
|
|
126
|
+
dawnWallet
|
|
127
|
+
} from "./chunk-LV6YV3DE.js";
|
|
125
128
|
import {
|
|
126
129
|
desigWallet
|
|
127
130
|
} from "./chunk-DFHP75HV.js";
|
|
128
131
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
bitskiWallet
|
|
133
|
+
} from "./chunk-NPITCCJE.js";
|
|
131
134
|
import {
|
|
132
135
|
bifrostWallet
|
|
133
136
|
} from "./chunk-ALGPGI6V.js";
|
|
134
|
-
import {
|
|
135
|
-
bitskiWallet
|
|
136
|
-
} from "./chunk-NPITCCJE.js";
|
|
137
137
|
import {
|
|
138
138
|
argentWallet
|
|
139
139
|
} from "./chunk-XSDTNMQY.js";
|
|
140
|
-
import {
|
|
141
|
-
bloomWallet
|
|
142
|
-
} from "./chunk-PNHDOC77.js";
|
|
143
140
|
import {
|
|
144
141
|
bitverseWallet
|
|
145
142
|
} from "./chunk-5AEWIKRA.js";
|
|
143
|
+
import {
|
|
144
|
+
bloomWallet
|
|
145
|
+
} from "./chunk-PNHDOC77.js";
|
|
146
146
|
import {
|
|
147
147
|
bitgetWallet
|
|
148
148
|
} from "./chunk-HOCKAU5H.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
"ua-parser-js": "^1.0.37",
|
|
120
120
|
"use-debounce": "^10.0.5",
|
|
121
121
|
"uuid": "^11.1.1",
|
|
122
|
-
"@funkit/api-base": "8.4.0",
|
|
123
122
|
"@funkit/chains": "2.4.0",
|
|
124
|
-
"@funkit/connect-core": "8.1.
|
|
125
|
-
"@funkit/
|
|
126
|
-
"@funkit/
|
|
123
|
+
"@funkit/connect-core": "8.1.1",
|
|
124
|
+
"@funkit/utils": "5.0.0",
|
|
125
|
+
"@funkit/api-base": "8.4.0",
|
|
126
|
+
"@funkit/fun-relay": "3.0.1"
|
|
127
127
|
},
|
|
128
128
|
"repository": {
|
|
129
129
|
"type": "git",
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-EYWGX5LT.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-AALSJCUR.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var okxWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isOKXInjected;
|
|
18
|
-
return {
|
|
19
|
-
id: "okx",
|
|
20
|
-
name: "OKX Wallet",
|
|
21
|
-
rdns: "com.okex.wallet",
|
|
22
|
-
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
23
|
-
iconAccent: "#000",
|
|
24
|
-
iconBackground: "#000",
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
27
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
28
|
-
mobile: "https://okx.com/download",
|
|
29
|
-
qrCode: "https://okx.com/download",
|
|
30
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
31
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
32
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
33
|
-
browserExtension: "https://okx.com/download"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
-
} : void 0
|
|
39
|
-
},
|
|
40
|
-
qrCode: shouldUseWalletConnect ? {
|
|
41
|
-
getUri: (uri) => uri,
|
|
42
|
-
instructions: {
|
|
43
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
44
|
-
steps: [
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
47
|
-
step: "install",
|
|
48
|
-
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
52
|
-
step: "create",
|
|
53
|
-
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
57
|
-
step: "scan",
|
|
58
|
-
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
} : void 0,
|
|
63
|
-
extension: {
|
|
64
|
-
instructions: {
|
|
65
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
66
|
-
steps: [
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.okx.extension.step1.description",
|
|
69
|
-
step: "install",
|
|
70
|
-
title: "wallet_connectors.okx.extension.step1.title"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "wallet_connectors.okx.extension.step2.description",
|
|
74
|
-
step: "create",
|
|
75
|
-
title: "wallet_connectors.okx.extension.step2.title"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.okx.extension.step3.description",
|
|
79
|
-
step: "refresh",
|
|
80
|
-
title: "wallet_connectors.okx.extension.step3.title"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
-
projectId,
|
|
87
|
-
walletConnectParameters
|
|
88
|
-
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
okxWallet
|
|
94
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-EYWGX5LT.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-AALSJCUR.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
|
-
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
-
var rainbowWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
17
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
20
|
-
uri
|
|
21
|
-
)}&connector=rainbowkit`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "rainbow",
|
|
25
|
-
name: "Rainbow",
|
|
26
|
-
rdns: "me.rainbow",
|
|
27
|
-
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
28
|
-
iconBackground: "#0c2f78",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
32
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
33
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
34
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
35
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
36
|
-
},
|
|
37
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
62
|
-
projectId,
|
|
63
|
-
walletConnectParameters
|
|
64
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
rainbowWallet
|
|
70
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-EYWGX5LT.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-AALSJCUR.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
-
var subWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
-
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
-
const getUriMobile = (uri) => {
|
|
18
|
-
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
};
|
|
20
|
-
const getUriQR = (uri) => {
|
|
21
|
-
return uri;
|
|
22
|
-
};
|
|
23
|
-
const mobileConnector = {
|
|
24
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
-
};
|
|
26
|
-
let qrConnector = void 0;
|
|
27
|
-
if (shouldUseWalletConnect) {
|
|
28
|
-
qrConnector = {
|
|
29
|
-
getUri: getUriQR,
|
|
30
|
-
instructions: {
|
|
31
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
-
steps: [
|
|
33
|
-
{
|
|
34
|
-
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
-
step: "install",
|
|
36
|
-
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
-
step: "create",
|
|
41
|
-
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
-
step: "scan",
|
|
46
|
-
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
const extensionConnector = {
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
-
step: "refresh",
|
|
69
|
-
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
id: "subwallet",
|
|
76
|
-
name: "SubWallet",
|
|
77
|
-
rdns: "app.subwallet",
|
|
78
|
-
iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
|
|
79
|
-
iconBackground: "#fff",
|
|
80
|
-
installed: isSubWalletInjected || void 0,
|
|
81
|
-
downloadUrls: {
|
|
82
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
83
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
84
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
85
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
86
|
-
mobile: "https://www.subwallet.app/download",
|
|
87
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
88
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
89
|
-
qrCode: "https://www.subwallet.app/download"
|
|
90
|
-
},
|
|
91
|
-
mobile: mobileConnector,
|
|
92
|
-
qrCode: qrConnector,
|
|
93
|
-
extension: extensionConnector,
|
|
94
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
95
|
-
projectId,
|
|
96
|
-
walletConnectParameters
|
|
97
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
subWallet
|
|
103
|
-
};
|