@funkit/connect 4.0.3 → 4.1.1
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 +33 -0
- package/dist/{chunk-LTOE4GIY.js → chunk-2QK6Y7FR.js} +2 -9
- package/dist/{chunk-3F3EYDDR.js → chunk-JFHTYZ23.js} +2 -9
- package/dist/{chunk-OMAXDH7G.js → chunk-TKJVOYWW.js} +5 -3
- package/dist/components/Box/Box.d.ts +51 -51
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -1
- package/dist/components/HelpAlert/HelpAlert.d.ts +6 -0
- package/dist/config/getDefaultConfig.d.ts +34 -34
- package/dist/consts/customers.d.ts +1 -0
- package/dist/consts/funkit.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +53 -83
- package/dist/domains/checkoutFees.d.ts +1 -1
- package/dist/domains/quote.d.ts +2 -6
- package/dist/hooks/useMountEffect.d.ts +8 -0
- package/dist/index.css +1849 -2397
- package/dist/index.js +1848 -1594
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +6 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext.d.ts +2 -3
- package/dist/providers/FunkitConfigContext.d.ts +0 -7
- package/dist/providers/FunkitHistoryContext.d.ts +1 -1
- package/dist/providers/FunkitMeshProvider.d.ts +2 -0
- package/dist/providers/FunkitThemeProvider.d.ts +3 -48
- package/dist/providers/ModalContext.d.ts +0 -4
- package/dist/{scroll-G557LOXM.js → scroll-G3S4ZVYZ.js} +1 -1
- package/dist/themes/baseTheme.d.ts +2 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/types/utils.d.ts +0 -6
- package/dist/utils/checkout.d.ts +8 -39
- package/dist/utils/checkoutHistory.d.ts +7 -0
- package/dist/utils/flags/config.d.ts +21 -7
- package/dist/utils/mesh.d.ts +3 -2
- package/dist/wallets/groupedWallets.d.ts +0 -1
- package/dist/wallets/latestWalletId.d.ts +0 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/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 +50 -50
- 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 +6 -6
- package/dist/components/FunButton/FunViewTxButton.d.ts +0 -5
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +0 -7
- package/dist/hooks/useChainId.d.ts +0 -1
- package/dist/hooks/useCheckoutChains.d.ts +0 -1
- package/dist/hooks/useCheckoutType.d.ts +0 -5
- package/dist/hooks/useWindowSize.d.ts +0 -4
- package/dist/modals/DevTest/FunDevTestModal.d.ts +0 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -1,52 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-NO7XMBB5.js";
|
|
5
2
|
import {
|
|
6
3
|
zealWallet
|
|
7
4
|
} from "./chunk-JROWU5BP.js";
|
|
5
|
+
import {
|
|
6
|
+
frameWallet
|
|
7
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AXWP3GD4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
tahoWallet
|
|
13
|
+
} from "./chunk-6P2EMPZI.js";
|
|
14
14
|
import {
|
|
15
15
|
talismanWallet
|
|
16
16
|
} from "./chunk-ABFSXBE6.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenPocketWallet
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IDKVN5CF.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenaryWallet
|
|
22
22
|
} from "./chunk-SLOIIJGP.js";
|
|
23
23
|
import {
|
|
24
24
|
trustWallet
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ISIBREBO.js";
|
|
26
26
|
import {
|
|
27
27
|
uniswapWallet
|
|
28
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-NO7XMBB5.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-NP5QGWNL.js";
|
|
35
|
-
import {
|
|
36
|
-
phantomWallet
|
|
37
|
-
} from "./chunk-ZSVTX6EK.js";
|
|
38
35
|
import {
|
|
39
36
|
rabbyWallet
|
|
40
37
|
} from "./chunk-BVX4XGNP.js";
|
|
41
38
|
import {
|
|
42
39
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2UCNRD7H.js";
|
|
44
41
|
import {
|
|
45
42
|
ramperWallet
|
|
46
43
|
} from "./chunk-PIUNLQJG.js";
|
|
47
44
|
import {
|
|
48
45
|
roninWallet
|
|
49
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
47
|
import {
|
|
51
48
|
safeWallet
|
|
52
49
|
} from "./chunk-BQQQL6UD.js";
|
|
@@ -54,14 +51,14 @@ import {
|
|
|
54
51
|
safeheronWallet
|
|
55
52
|
} from "./chunk-R6RWZRFF.js";
|
|
56
53
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
subWallet
|
|
55
|
+
} from "./chunk-AD2KIJB6.js";
|
|
59
56
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-MSFKSQBY.js";
|
|
62
59
|
import {
|
|
63
60
|
metaMaskWallet
|
|
64
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-G73C6P5P.js";
|
|
65
62
|
import {
|
|
66
63
|
mewWallet
|
|
67
64
|
} from "./chunk-V57WLZEE.js";
|
|
@@ -70,7 +67,7 @@ import {
|
|
|
70
67
|
} from "./chunk-ADIXAKUL.js";
|
|
71
68
|
import {
|
|
72
69
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
74
71
|
import {
|
|
75
72
|
omniWallet
|
|
76
73
|
} from "./chunk-7CUY5G6R.js";
|
|
@@ -81,62 +78,62 @@ import {
|
|
|
81
78
|
oneKeyWallet
|
|
82
79
|
} from "./chunk-4AD7VI2P.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
frameWallet
|
|
88
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
89
83
|
import {
|
|
90
84
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-3S2U24BJ.js";
|
|
92
86
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
87
|
+
foxWallet
|
|
88
|
+
} from "./chunk-LMZMXEXL.js";
|
|
95
89
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
90
|
+
gateWallet
|
|
91
|
+
} from "./chunk-GSOYKKIS.js";
|
|
98
92
|
import {
|
|
99
93
|
injectedWallet
|
|
100
94
|
} from "./chunk-VCVVV2K7.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-COZ7MIQS.js";
|
|
101
98
|
import {
|
|
102
99
|
kresusWallet
|
|
103
100
|
} from "./chunk-MJXPRJZT.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
104
|
+
import {
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-6ONTSPEY.js";
|
|
107
|
+
import {
|
|
108
|
+
coreWallet
|
|
109
|
+
} from "./chunk-HBA36GW3.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-DTRYS3MO.js";
|
|
110
113
|
import {
|
|
111
114
|
coinbaseWallet
|
|
112
115
|
} from "./chunk-H4IRCEZN.js";
|
|
113
|
-
import {
|
|
114
|
-
clvWallet
|
|
115
|
-
} from "./chunk-LEXSM5KI.js";
|
|
116
|
-
import {
|
|
117
|
-
coreWallet
|
|
118
|
-
} from "./chunk-JXP2QPW7.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-LN7OD5EC.js";
|
|
122
119
|
import {
|
|
123
120
|
desigWallet
|
|
124
121
|
} from "./chunk-CTU6JCOK.js";
|
|
122
|
+
import {
|
|
123
|
+
bitskiWallet
|
|
124
|
+
} from "./chunk-P74YPRF6.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-SJTXS4ZW.js";
|
|
128
|
+
import {
|
|
129
|
+
bifrostWallet
|
|
130
|
+
} from "./chunk-W6N74MS3.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bitskiWallet
|
|
133
|
-
} from "./chunk-P74YPRF6.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import {
|
|
138
|
-
bifrostWallet
|
|
139
|
-
} from "./chunk-545L7Y4M.js";
|
|
136
|
+
} from "./chunk-A5APNTGL.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-3HZRRP4Y.js";
|
|
@@ -144,10 +141,13 @@ import {
|
|
|
144
141
|
bloomWallet
|
|
145
142
|
} from "./chunk-S27IADFU.js";
|
|
146
143
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-WRA2DVJ7.js";
|
|
144
|
+
clvWallet
|
|
145
|
+
} from "./chunk-KR6JBW5E.js";
|
|
150
146
|
import "./chunk-23WIEY36.js";
|
|
147
|
+
import {
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-PB254NQ4.js";
|
|
150
|
+
import "./chunk-WRA2DVJ7.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@aws-sdk/client-s3": "^3.600.0",
|
|
48
48
|
"@chromatic-com/storybook": "^3.2.2",
|
|
49
|
-
"@meshconnect/node-api": "2.0.
|
|
49
|
+
"@meshconnect/node-api": "2.0.14",
|
|
50
50
|
"@storybook/addon-essentials": "^8.4.4",
|
|
51
51
|
"@storybook/addon-interactions": "^8.4.4",
|
|
52
52
|
"@storybook/addon-links": "^8.4.4",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"react-virtuoso": "4.10.1",
|
|
91
91
|
"ua-parser-js": "^1.0.37",
|
|
92
92
|
"uuid": "^9.0.1",
|
|
93
|
-
"@funkit/
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
93
|
+
"@funkit/core": "2.3.0",
|
|
94
|
+
"@funkit/api-base": "1.5.0",
|
|
95
|
+
"@funkit/wagmi-tools": "3.0.21",
|
|
96
|
+
"@funkit/utils": "1.0.3"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useChainId(): number | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useFunkitCheckoutChainsById: () => Record<number, import("..").Chain>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig, ServerCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
|
-
export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig | ServerCheckoutConfig): FunkitCheckoutActionParams[];
|
|
3
|
-
export declare function isCheckoutCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
|
|
4
|
-
export declare function isCheckoutDirectCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
|
|
5
|
-
export declare function isCheckoutPostActionRequired(config: FunkitCheckoutConfig | ServerCheckoutConfig): boolean;
|
|
@@ -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,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/gateWallet/gateWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var gateWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isGateInjected;
|
|
18
|
-
return {
|
|
19
|
-
id: "gate",
|
|
20
|
-
name: "Gate Wallet",
|
|
21
|
-
rdns: "io.gate.wallet",
|
|
22
|
-
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
23
|
-
iconAccent: "#fff",
|
|
24
|
-
iconBackground: "#fff",
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
27
|
-
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
28
|
-
mobile: "https://www.gate.io/mobileapp",
|
|
29
|
-
qrCode: "https://www.gate.io/web3",
|
|
30
|
-
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
31
|
-
browserExtension: "https://www.gate.io/web3"
|
|
32
|
-
},
|
|
33
|
-
mobile: {
|
|
34
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
35
|
-
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
36
|
-
} : void 0
|
|
37
|
-
},
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.gate.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.gate.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.gate.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.gate.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.gate.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.gate.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
gateWallet
|
|
92
|
-
};
|