@funkit/connect 3.4.2 → 3.4.3
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 +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +117 -88
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +60 -60
- package/package.json +4 -4
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-4HKPVECK.js +0 -95
- package/dist/wallets/walletConnectors/chunk-4K3EKHXR.js +0 -71
- package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +0 -95
- package/dist/wallets/walletConnectors/chunk-5MVCKMZT.js +0 -94
- package/dist/wallets/walletConnectors/chunk-5NZLWT3Y.js +0 -73
- package/dist/wallets/walletConnectors/chunk-B5D7DYVV.js +0 -101
- package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +0 -98
- package/dist/wallets/walletConnectors/chunk-HLH777AC.js +0 -108
- package/dist/wallets/walletConnectors/chunk-HMDUVRZP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +0 -103
- package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +0 -87
- package/dist/wallets/walletConnectors/chunk-KDGMYRMC.js +0 -102
- package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +0 -66
- package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
- package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +0 -96
- package/dist/wallets/walletConnectors/chunk-YRK6XWL6.js +0 -149
- package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +0 -110
|
@@ -1,79 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-RVIZMVFR.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
7
|
} from "./chunk-DBP432DI.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
talismanWallet
|
|
13
|
-
} from "./chunk-OTXHQMSG.js";
|
|
9
|
+
zealWallet
|
|
10
|
+
} from "./chunk-BUUV6BS4.js";
|
|
14
11
|
import {
|
|
15
12
|
tahoWallet
|
|
16
13
|
} from "./chunk-6AYBA6IH.js";
|
|
17
14
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
15
|
+
talismanWallet
|
|
16
|
+
} from "./chunk-OTXHQMSG.js";
|
|
17
|
+
import {
|
|
18
|
+
subWallet
|
|
19
|
+
} from "./chunk-N3ELQYCY.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-ISJYPD3T.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
tokenaryWallet
|
|
25
|
+
} from "./chunk-FAYEL4JP.js";
|
|
26
26
|
import {
|
|
27
27
|
uniswapWallet
|
|
28
28
|
} from "./chunk-QFRZGNNV.js";
|
|
29
|
-
import {
|
|
30
|
-
xdefiWallet
|
|
31
|
-
} from "./chunk-RVIZMVFR.js";
|
|
32
29
|
import {
|
|
33
30
|
walletConnectWallet
|
|
34
31
|
} from "./chunk-OFU3PEVT.js";
|
|
32
|
+
import {
|
|
33
|
+
trustWallet
|
|
34
|
+
} from "./chunk-X45WXZDO.js";
|
|
35
|
+
import {
|
|
36
|
+
oktoWallet
|
|
37
|
+
} from "./chunk-MBQTOALG.js";
|
|
35
38
|
import {
|
|
36
39
|
rabbyWallet
|
|
37
40
|
} from "./chunk-H5LLXNOI.js";
|
|
38
41
|
import {
|
|
39
42
|
rainbowWallet
|
|
40
43
|
} from "./chunk-OHJBALD3.js";
|
|
44
|
+
import {
|
|
45
|
+
safeheronWallet
|
|
46
|
+
} from "./chunk-FCIRHRFH.js";
|
|
41
47
|
import {
|
|
42
48
|
ramperWallet
|
|
43
49
|
} from "./chunk-TKXQYHWJ.js";
|
|
44
|
-
import {
|
|
45
|
-
roninWallet
|
|
46
|
-
} from "./chunk-63YLN6R5.js";
|
|
47
50
|
import {
|
|
48
51
|
safeWallet
|
|
49
52
|
} from "./chunk-Z2QCE6O6.js";
|
|
50
53
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
roninWallet
|
|
55
|
+
} from "./chunk-63YLN6R5.js";
|
|
53
56
|
import {
|
|
54
57
|
safepalWallet
|
|
55
58
|
} from "./chunk-AKAT37SI.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
ledgerWallet
|
|
61
|
-
} from "./chunk-ZMHCZCGS.js";
|
|
60
|
+
enkryptWallet
|
|
61
|
+
} from "./chunk-JJ4DXD7R.js";
|
|
62
62
|
import {
|
|
63
63
|
mewWallet
|
|
64
64
|
} from "./chunk-CVYXTHZ6.js";
|
|
65
|
-
import {
|
|
66
|
-
frontierWallet
|
|
67
|
-
} from "./chunk-LCOUKF2U.js";
|
|
68
|
-
import {
|
|
69
|
-
okxWallet
|
|
70
|
-
} from "./chunk-5HXH52SO.js";
|
|
71
65
|
import {
|
|
72
66
|
omniWallet
|
|
73
67
|
} from "./chunk-II6YBG2B.js";
|
|
74
68
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-5HXH52SO.js";
|
|
77
71
|
import {
|
|
78
72
|
oneKeyWallet
|
|
79
73
|
} from "./chunk-ZP2SV6KN.js";
|
|
@@ -81,20 +75,23 @@ import {
|
|
|
81
75
|
phantomWallet
|
|
82
76
|
} from "./chunk-KEVUI6AA.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
frameWallet
|
|
88
|
-
} from "./chunk-KPVNJO3R.js";
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-I7MKK24W.js";
|
|
89
80
|
import {
|
|
90
81
|
gateWallet
|
|
91
82
|
} from "./chunk-YIJ5ULO3.js";
|
|
92
|
-
import {
|
|
93
|
-
imTokenWallet
|
|
94
|
-
} from "./chunk-BMJOLT2N.js";
|
|
95
83
|
import {
|
|
96
84
|
kresusWallet
|
|
97
85
|
} from "./chunk-QQJKQCII.js";
|
|
86
|
+
import {
|
|
87
|
+
desigWallet
|
|
88
|
+
} from "./chunk-44CHUPEQ.js";
|
|
89
|
+
import {
|
|
90
|
+
ledgerWallet
|
|
91
|
+
} from "./chunk-ZMHCZCGS.js";
|
|
92
|
+
import {
|
|
93
|
+
frontierWallet
|
|
94
|
+
} from "./chunk-LCOUKF2U.js";
|
|
98
95
|
import {
|
|
99
96
|
injectedWallet
|
|
100
97
|
} from "./chunk-E5NYR4SS.js";
|
|
@@ -102,52 +99,55 @@ import {
|
|
|
102
99
|
metaMaskWallet
|
|
103
100
|
} from "./chunk-ODRDT73B.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
imTokenWallet
|
|
103
|
+
} from "./chunk-BMJOLT2N.js";
|
|
104
|
+
import {
|
|
105
|
+
bloomWallet
|
|
106
|
+
} from "./chunk-J64P6XK3.js";
|
|
107
107
|
import {
|
|
108
108
|
coin98Wallet
|
|
109
109
|
} from "./chunk-ZXGMW3OS.js";
|
|
110
110
|
import {
|
|
111
111
|
coinbaseWallet
|
|
112
112
|
} from "./chunk-PNEDRY6O.js";
|
|
113
|
-
import {
|
|
114
|
-
bitskiWallet
|
|
115
|
-
} from "./chunk-OCCT5PIN.js";
|
|
116
113
|
import {
|
|
117
114
|
coreWallet
|
|
118
115
|
} from "./chunk-MOOW2AOC.js";
|
|
119
116
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
117
|
+
frameWallet
|
|
118
|
+
} from "./chunk-KPVNJO3R.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
121
|
} from "./chunk-KCTWDMQP.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
clvWallet
|
|
124
|
+
} from "./chunk-UHHA5V52.js";
|
|
125
|
+
import {
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-WAOREEBE.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-ZHFISYEQ.js";
|
|
131
|
-
import {
|
|
132
|
-
bitgetWallet
|
|
133
|
-
} from "./chunk-IEVZW3XR.js";
|
|
134
131
|
import {
|
|
135
132
|
bifrostWallet
|
|
136
133
|
} from "./chunk-KL5Z3XHJ.js";
|
|
137
|
-
import {
|
|
138
|
-
bloomWallet
|
|
139
|
-
} from "./chunk-J64P6XK3.js";
|
|
140
|
-
import "./chunk-RETKWSKD.js";
|
|
141
134
|
import {
|
|
142
135
|
bitverseWallet
|
|
143
136
|
} from "./chunk-BQEOIDHP.js";
|
|
144
137
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-OCCT5PIN.js";
|
|
147
140
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
141
|
+
bitgetWallet
|
|
142
|
+
} from "./chunk-IEVZW3XR.js";
|
|
143
|
+
import "./chunk-RETKWSKD.js";
|
|
144
|
+
import {
|
|
145
|
+
bybitWallet
|
|
146
|
+
} from "./chunk-3AZNOY75.js";
|
|
150
147
|
import "./chunk-23WIEY36.js";
|
|
148
|
+
import {
|
|
149
|
+
braveWallet
|
|
150
|
+
} from "./chunk-NUEOWEZS.js";
|
|
151
151
|
import "./chunk-WRA2DVJ7.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"react-virtuoso": "4.10.1",
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"uuid": "^9.0.1",
|
|
94
|
-
"@funkit/api-base": "1.3.
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
94
|
+
"@funkit/api-base": "1.3.1",
|
|
95
|
+
"@funkit/wagmi-tools": "3.0.14",
|
|
96
|
+
"@funkit/core": "2.2.3"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.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,95 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isMobile
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
14
|
-
var tokenPocketWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
19
|
-
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
20
|
-
const getUri = (uri) => {
|
|
21
|
-
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "tokenPocket",
|
|
25
|
-
name: "TokenPocket",
|
|
26
|
-
rdns: "pro.tokenpocket",
|
|
27
|
-
iconUrl: async () => (await import("./tokenPocketWallet-BVMBOYTC.js")).default,
|
|
28
|
-
iconBackground: "#2980FE",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
32
|
-
browserExtension: "https://extension.tokenpocket.pro/",
|
|
33
|
-
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
34
|
-
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
35
|
-
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
36
|
-
mobile: "https://tokenpocket.pro/en/download/app"
|
|
37
|
-
},
|
|
38
|
-
mobile: {
|
|
39
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
40
|
-
},
|
|
41
|
-
qrCode: shouldUseWalletConnect ? {
|
|
42
|
-
getUri,
|
|
43
|
-
instructions: {
|
|
44
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
45
|
-
steps: [
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
48
|
-
step: "install",
|
|
49
|
-
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
53
|
-
step: "create",
|
|
54
|
-
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
58
|
-
step: "scan",
|
|
59
|
-
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
} : void 0,
|
|
64
|
-
extension: {
|
|
65
|
-
instructions: {
|
|
66
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
67
|
-
steps: [
|
|
68
|
-
{
|
|
69
|
-
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
70
|
-
step: "install",
|
|
71
|
-
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
75
|
-
step: "create",
|
|
76
|
-
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
80
|
-
step: "refresh",
|
|
81
|
-
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
87
|
-
projectId,
|
|
88
|
-
walletConnectParameters
|
|
89
|
-
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export {
|
|
94
|
-
tokenPocketWallet
|
|
95
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
14
|
-
var bifrostWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
19
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
20
|
-
const getUri = (uri) => {
|
|
21
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "bifrostWallet",
|
|
25
|
-
name: "Bifrost Wallet",
|
|
26
|
-
iconUrl: async () => (await import("./bifrostWallet-ORF3DABG.js")).default,
|
|
27
|
-
iconBackground: "#fff",
|
|
28
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
29
|
-
downloadUrls: {
|
|
30
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
31
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
32
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
33
|
-
},
|
|
34
|
-
mobile: {
|
|
35
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
36
|
-
},
|
|
37
|
-
qrCode: shouldUseWalletConnect ? {
|
|
38
|
-
getUri: (uri) => uri,
|
|
39
|
-
instructions: {
|
|
40
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
41
|
-
steps: [
|
|
42
|
-
{
|
|
43
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
44
|
-
step: "install",
|
|
45
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
49
|
-
step: "create",
|
|
50
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
54
|
-
step: "scan",
|
|
55
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
} : void 0,
|
|
60
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
61
|
-
projectId,
|
|
62
|
-
walletConnectParameters
|
|
63
|
-
}) : getInjectedConnector({
|
|
64
|
-
flag: "isBifrost"
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
bifrostWallet
|
|
71
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/coreWallet/coreWallet.ts
|
|
11
|
-
var coreWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isCoreInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "avalanche",
|
|
17
|
-
flag: "isAvalanche"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isCoreInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "core",
|
|
22
|
-
name: "Core",
|
|
23
|
-
rdns: "app.core.extension",
|
|
24
|
-
iconUrl: async () => (await import("./coreWallet-52SXITOT.js")).default,
|
|
25
|
-
iconBackground: "#1A1A1C",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
|
|
30
|
-
mobile: "https://core.app/?downloadCoreMobile=1",
|
|
31
|
-
qrCode: "https://core.app/?downloadCoreMobile=1",
|
|
32
|
-
chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
|
|
33
|
-
browserExtension: "https://extension.core.app/"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
37
|
-
},
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.core.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.core.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.core.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.core.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.core.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.core.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://extension.core.app/",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.core.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.core.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.core.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.core.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.core.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.core.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
}) : getInjectedConnector({
|
|
87
|
-
namespace: "avalanche",
|
|
88
|
-
flag: "isAvalanche"
|
|
89
|
-
})
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export {
|
|
94
|
-
coreWallet
|
|
95
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.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
|
-
};
|