@funkit/connect 1.0.12 → 1.0.14
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 +25 -0
- package/dist/{chunk-JLKS6NET.js → chunk-AF763GD5.js} +2 -1
- package/dist/{chunk-2NNNYGQA.js → chunk-I4LVVIYS.js} +2 -1
- package/dist/components/FunContainer/FunContainer.d.ts +3 -1
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +2 -1
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +21 -2
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitSandboxContext.d.ts +3 -0
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +4 -0
- package/dist/components/FunkitProvider/FunkitWeb2Provider.d.ts +5 -0
- package/dist/css/sprinkles.css.d.ts +2 -0
- package/dist/index.css +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +409 -285
- package/dist/themes/darkTheme.d.ts +1 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +1 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/assets.d.ts +6 -0
- package/dist/utils/moonpay.d.ts +1 -0
- package/dist/wallets/walletConnectors/index.js +79 -79
- package/package.json +3 -3
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-2PC2XXUH.js +0 -94
- package/dist/wallets/walletConnectors/chunk-75A2U7T7.js +0 -100
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-FDIIMYTB.js +0 -73
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-N3VZE65M.js +0 -98
- package/dist/wallets/walletConnectors/chunk-OAEJQOAV.js +0 -105
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-OR3PU2W4.js +0 -95
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-SL4VH23R.js +0 -71
- package/dist/wallets/walletConnectors/chunk-SQGFKNNZ.js +0 -102
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +0 -27
- package/dist/wallets/walletConnectors/chunk-X255T3C4.js +0 -178
- package/dist/wallets/walletConnectors/chunk-XSSD5ZVD.js +0 -96
- package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/assets.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { FunkitActiveCheckoutItem } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
2
|
+
import { PaymentMethod } from '../consts/payment';
|
|
1
3
|
export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
|
|
2
4
|
chainId: string;
|
|
3
5
|
symbolOrAddress: string;
|
|
4
6
|
}): string | null;
|
|
5
7
|
export declare const getNormalizedTokenBalance: (tokenBalance: number, decimals: number) => number;
|
|
8
|
+
export declare const isAssetUsableToPayForCheckout: (checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string) => {
|
|
9
|
+
isUsable: boolean;
|
|
10
|
+
reason: string;
|
|
11
|
+
};
|
package/dist/utils/moonpay.d.ts
CHANGED
|
@@ -1,37 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
trustWallet
|
|
4
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
safeheronWallet
|
|
7
|
+
} from "./chunk-63NPZXAL.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
talismanWallet
|
|
10
|
+
} from "./chunk-H273OTQA.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
tokenPocketWallet
|
|
13
|
+
} from "./chunk-2UXZAUWT.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
safepalWallet
|
|
16
|
+
} from "./chunk-SYELB4QO.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
uniswapWallet
|
|
19
|
+
} from "./chunk-XRSY4JVH.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenaryWallet
|
|
22
22
|
} from "./chunk-ENZLEAG2.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
xdefiWallet
|
|
25
|
+
} from "./chunk-L734HTUS.js";
|
|
26
26
|
import {
|
|
27
27
|
walletConnectWallet
|
|
28
28
|
} from "./chunk-ASPRR7T3.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-DPXMP5KS.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
zerionWallet
|
|
34
|
+
} from "./chunk-7CQPABJG.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-KGBLSE7L.js";
|
|
38
|
+
import {
|
|
39
|
+
ramperWallet
|
|
40
|
+
} from "./chunk-ZOL6ZMTJ.js";
|
|
35
41
|
import {
|
|
36
42
|
roninWallet
|
|
37
43
|
} from "./chunk-LVRXH33E.js";
|
|
@@ -39,80 +45,65 @@ import {
|
|
|
39
45
|
safeWallet
|
|
40
46
|
} from "./chunk-D3DCQ72J.js";
|
|
41
47
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
omniWallet
|
|
46
|
-
} from "./chunk-SVN7OEQR.js";
|
|
47
|
-
import {
|
|
48
|
-
safeheronWallet
|
|
49
|
-
} from "./chunk-63NPZXAL.js";
|
|
48
|
+
rainbowWallet
|
|
49
|
+
} from "./chunk-O5NKWWEG.js";
|
|
50
50
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
51
|
+
mewWallet
|
|
52
|
+
} from "./chunk-PWYTDYBE.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
tahoWallet
|
|
55
|
+
} from "./chunk-H76YCX2M.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
kresusWallet
|
|
61
|
+
} from "./chunk-X6T3CICZ.js";
|
|
62
62
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
63
|
+
ledgerWallet
|
|
64
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
65
65
|
import {
|
|
66
66
|
oktoWallet
|
|
67
67
|
} from "./chunk-WKHTUEF5.js";
|
|
68
68
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
69
|
+
omniWallet
|
|
70
|
+
} from "./chunk-SVN7OEQR.js";
|
|
71
71
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
72
|
+
okxWallet
|
|
73
|
+
} from "./chunk-NGXIHASN.js";
|
|
74
74
|
import {
|
|
75
75
|
oneInchWallet
|
|
76
76
|
} from "./chunk-LCPIZUR3.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
rabbyWallet
|
|
79
|
+
} from "./chunk-XPEBP6XV.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
oneKeyWallet
|
|
82
|
+
} from "./chunk-4WOV4ITL.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
bitverseWallet
|
|
85
|
+
} from "./chunk-NL4I7WOT.js";
|
|
86
86
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
87
|
+
bloomWallet
|
|
88
|
+
} from "./chunk-NTGZF5BY.js";
|
|
89
89
|
import {
|
|
90
90
|
imTokenWallet
|
|
91
91
|
} from "./chunk-5MVV7OVS.js";
|
|
92
|
-
import {
|
|
93
|
-
kresusWallet
|
|
94
|
-
} from "./chunk-X6T3CICZ.js";
|
|
95
|
-
import {
|
|
96
|
-
frontierWallet
|
|
97
|
-
} from "./chunk-AM4SSLAP.js";
|
|
98
92
|
import {
|
|
99
93
|
gateWallet
|
|
100
94
|
} from "./chunk-V45EXW7A.js";
|
|
101
95
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
bitskiWallet
|
|
106
|
-
} from "./chunk-C67TQJ6W.js";
|
|
96
|
+
bybitWallet
|
|
97
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
107
98
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-KIHCNUU3.js";
|
|
110
101
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-3WZRNEZH.js";
|
|
113
104
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
105
|
+
coinbaseWallet
|
|
106
|
+
} from "./chunk-XBUTWYE4.js";
|
|
116
107
|
import {
|
|
117
108
|
coreWallet
|
|
118
109
|
} from "./chunk-JLQ5HJYV.js";
|
|
@@ -120,33 +111,42 @@ import {
|
|
|
120
111
|
dawnWallet
|
|
121
112
|
} from "./chunk-4XQDKOGF.js";
|
|
122
113
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
114
|
+
desigWallet
|
|
115
|
+
} from "./chunk-P4JLZ42R.js";
|
|
125
116
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
117
|
+
enkryptWallet
|
|
118
|
+
} from "./chunk-FLY7F4XA.js";
|
|
128
119
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
120
|
+
foxWallet
|
|
121
|
+
} from "./chunk-Q4RLUJJD.js";
|
|
131
122
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
123
|
+
frameWallet
|
|
124
|
+
} from "./chunk-XXFJVY73.js";
|
|
134
125
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
126
|
+
frontierWallet
|
|
127
|
+
} from "./chunk-AM4SSLAP.js";
|
|
137
128
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
129
|
+
bitskiWallet
|
|
130
|
+
} from "./chunk-C67TQJ6W.js";
|
|
140
131
|
import {
|
|
141
132
|
bifrostWallet
|
|
142
133
|
} from "./chunk-6LTLPR2Q.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-ZNXQ4V6G.js";
|
|
137
|
+
import {
|
|
138
|
+
argentWallet
|
|
139
|
+
} from "./chunk-NZ5G23JP.js";
|
|
143
140
|
import "./chunk-ZOLACFTK.js";
|
|
144
141
|
import {
|
|
145
142
|
braveWallet
|
|
146
143
|
} from "./chunk-ABYQAXUX.js";
|
|
147
144
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
145
|
+
clvWallet
|
|
146
|
+
} from "./chunk-MIWCKFYE.js";
|
|
147
|
+
import {
|
|
148
|
+
coin98Wallet
|
|
149
|
+
} from "./chunk-4FQLUQNA.js";
|
|
150
150
|
import "./chunk-ZDU3JFGR.js";
|
|
151
151
|
import "./chunk-QII6PY2D.js";
|
|
152
152
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@types/ua-parser-js": "^0.7.39"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@funkit/wagmi-tools": "^1.0.
|
|
76
|
-
"@funkit/core": "^1.0.
|
|
75
|
+
"@funkit/wagmi-tools": "^1.0.6",
|
|
76
|
+
"@funkit/core": "^1.0.5",
|
|
77
77
|
"@vanilla-extract/css": "1.14.0",
|
|
78
78
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
79
79
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-QII6PY2D.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-ZDU3JFGR.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
|
-
iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
|
|
78
|
-
iconBackground: "#fff",
|
|
79
|
-
installed: isSubWalletInjected || void 0,
|
|
80
|
-
downloadUrls: {
|
|
81
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
82
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
83
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
84
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
85
|
-
mobile: "https://www.subwallet.app/download",
|
|
86
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
87
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
88
|
-
qrCode: "https://www.subwallet.app/download"
|
|
89
|
-
},
|
|
90
|
-
mobile: mobileConnector,
|
|
91
|
-
qrCode: qrConnector,
|
|
92
|
-
extension: extensionConnector,
|
|
93
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
94
|
-
projectId,
|
|
95
|
-
walletConnectParameters
|
|
96
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
subWallet
|
|
102
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-QII6PY2D.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-ZDU3JFGR.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-GFLHFAGG.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
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-QII6PY2D.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
14
|
-
var bitgetWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBitKeepInjected = hasInjectedProvider({
|
|
19
|
-
namespace: "bitkeep.ethereum",
|
|
20
|
-
flag: "isBitKeep"
|
|
21
|
-
});
|
|
22
|
-
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
23
|
-
return {
|
|
24
|
-
id: "bitget",
|
|
25
|
-
name: "Bitget Wallet",
|
|
26
|
-
iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
|
|
27
|
-
iconAccent: "#f6851a",
|
|
28
|
-
iconBackground: "#fff",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
32
|
-
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
33
|
-
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
34
|
-
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
35
|
-
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
36
|
-
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
37
|
-
},
|
|
38
|
-
extension: {
|
|
39
|
-
instructions: {
|
|
40
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
41
|
-
steps: [
|
|
42
|
-
{
|
|
43
|
-
description: "wallet_connectors.bitget.extension.step1.description",
|
|
44
|
-
step: "install",
|
|
45
|
-
title: "wallet_connectors.bitget.extension.step1.title"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bitget.extension.step2.description",
|
|
49
|
-
step: "create",
|
|
50
|
-
title: "wallet_connectors.bitget.extension.step2.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bitget.extension.step3.description",
|
|
54
|
-
step: "refresh",
|
|
55
|
-
title: "wallet_connectors.bitget.extension.step3.description"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
mobile: {
|
|
61
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
62
|
-
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
63
|
-
} : void 0
|
|
64
|
-
},
|
|
65
|
-
qrCode: shouldUseWalletConnect ? {
|
|
66
|
-
getUri: (uri) => uri,
|
|
67
|
-
instructions: {
|
|
68
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
69
|
-
steps: [
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
72
|
-
step: "install",
|
|
73
|
-
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
77
|
-
step: "create",
|
|
78
|
-
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
82
|
-
step: "scan",
|
|
83
|
-
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
} : void 0,
|
|
88
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
89
|
-
projectId,
|
|
90
|
-
walletConnectParameters
|
|
91
|
-
}) : getInjectedConnector({
|
|
92
|
-
namespace: "bitkeep.ethereum",
|
|
93
|
-
flag: "isBitKeep"
|
|
94
|
-
})
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
bitgetWallet
|
|
100
|
-
};
|