@funkit/connect 3.0.1 → 3.0.2
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 +13 -0
- package/dist/components/Dialog/Dialog.css.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +2 -1
- package/dist/components/FunButton/FunIconButton.d.ts +1 -0
- package/dist/config/getDefaultConfig.d.ts +428 -3148
- package/dist/consts/customers.d.ts +1 -0
- package/dist/index.css +9 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +71 -38
- package/dist/providers/FunkitCheckoutContext.d.ts +2 -0
- package/dist/utils/flags/config.d.ts +4 -1
- package/dist/utils/flags/index.d.ts +1 -0
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
- package/dist/wallets/walletConnectors/chunk-4HKPVECK.js +95 -0
- package/dist/wallets/walletConnectors/chunk-4K3EKHXR.js +71 -0
- package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +95 -0
- package/dist/wallets/walletConnectors/chunk-5MVCKMZT.js +94 -0
- package/dist/wallets/walletConnectors/chunk-5NZLWT3Y.js +73 -0
- package/dist/wallets/walletConnectors/chunk-B5D7DYVV.js +101 -0
- package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +98 -0
- package/dist/wallets/walletConnectors/chunk-HLH777AC.js +108 -0
- package/dist/wallets/walletConnectors/chunk-HMDUVRZP.js +98 -0
- package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +103 -0
- package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +87 -0
- package/dist/wallets/walletConnectors/chunk-KDGMYRMC.js +102 -0
- package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +66 -0
- package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +96 -0
- package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +96 -0
- package/dist/wallets/walletConnectors/chunk-YRK6XWL6.js +149 -0
- package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +110 -0
- package/dist/wallets/walletConnectors/index.js +67 -67
- package/package.json +5 -5
|
@@ -0,0 +1,110 @@
|
|
|
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/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-KQJ4OCNH.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,153 +1,153 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
uniswapWallet
|
|
4
|
+
} from "./chunk-QFRZGNNV.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
7
|
} from "./chunk-DBP432DI.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
zealWallet
|
|
10
|
+
} from "./chunk-BUUV6BS4.js";
|
|
11
|
+
import {
|
|
12
|
+
safeheronWallet
|
|
13
|
+
} from "./chunk-FCIRHRFH.js";
|
|
11
14
|
import {
|
|
12
15
|
tahoWallet
|
|
13
16
|
} from "./chunk-6AYBA6IH.js";
|
|
14
|
-
import {
|
|
15
|
-
talismanWallet
|
|
16
|
-
} from "./chunk-OTXHQMSG.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenPocketWallet
|
|
19
19
|
} from "./chunk-ISJYPD3T.js";
|
|
20
|
+
import {
|
|
21
|
+
subWallet
|
|
22
|
+
} from "./chunk-N3ELQYCY.js";
|
|
20
23
|
import {
|
|
21
24
|
tokenaryWallet
|
|
22
25
|
} from "./chunk-FAYEL4JP.js";
|
|
23
|
-
import {
|
|
24
|
-
uniswapWallet
|
|
25
|
-
} from "./chunk-QFRZGNNV.js";
|
|
26
26
|
import {
|
|
27
27
|
walletConnectWallet
|
|
28
28
|
} from "./chunk-OFU3PEVT.js";
|
|
29
|
+
import {
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-RVIZMVFR.js";
|
|
29
32
|
import {
|
|
30
33
|
trustWallet
|
|
31
34
|
} from "./chunk-X45WXZDO.js";
|
|
32
35
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
roninWallet
|
|
37
|
-
} from "./chunk-63YLN6R5.js";
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-KEVUI6AA.js";
|
|
38
38
|
import {
|
|
39
39
|
ramperWallet
|
|
40
40
|
} from "./chunk-TKXQYHWJ.js";
|
|
41
|
-
import {
|
|
42
|
-
phantomWallet
|
|
43
|
-
} from "./chunk-KEVUI6AA.js";
|
|
44
41
|
import {
|
|
45
42
|
rainbowWallet
|
|
46
43
|
} from "./chunk-OHJBALD3.js";
|
|
44
|
+
import {
|
|
45
|
+
rabbyWallet
|
|
46
|
+
} from "./chunk-H5LLXNOI.js";
|
|
47
47
|
import {
|
|
48
48
|
safeWallet
|
|
49
49
|
} from "./chunk-Z2QCE6O6.js";
|
|
50
|
+
import {
|
|
51
|
+
roninWallet
|
|
52
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
53
|
import {
|
|
51
54
|
safepalWallet
|
|
52
55
|
} from "./chunk-AKAT37SI.js";
|
|
53
56
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
talismanWallet
|
|
58
|
+
} from "./chunk-OTXHQMSG.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
imTokenWallet
|
|
61
|
+
} from "./chunk-BMJOLT2N.js";
|
|
62
|
+
import {
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-ODRDT73B.js";
|
|
59
65
|
import {
|
|
60
66
|
mewWallet
|
|
61
67
|
} from "./chunk-CVYXTHZ6.js";
|
|
62
|
-
import {
|
|
63
|
-
kresusWallet
|
|
64
|
-
} from "./chunk-QQJKQCII.js";
|
|
65
|
-
import {
|
|
66
|
-
ledgerWallet
|
|
67
|
-
} from "./chunk-ZMHCZCGS.js";
|
|
68
|
-
import {
|
|
69
|
-
oneInchWallet
|
|
70
|
-
} from "./chunk-I7MKK24W.js";
|
|
71
68
|
import {
|
|
72
69
|
omniWallet
|
|
73
70
|
} from "./chunk-II6YBG2B.js";
|
|
74
71
|
import {
|
|
75
72
|
oktoWallet
|
|
76
73
|
} from "./chunk-MBQTOALG.js";
|
|
74
|
+
import {
|
|
75
|
+
okxWallet
|
|
76
|
+
} from "./chunk-5HXH52SO.js";
|
|
77
77
|
import {
|
|
78
78
|
oneKeyWallet
|
|
79
79
|
} from "./chunk-ZP2SV6KN.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
oneInchWallet
|
|
82
|
+
} from "./chunk-I7MKK24W.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
frontierWallet
|
|
85
|
+
} from "./chunk-LCOUKF2U.js";
|
|
86
86
|
import {
|
|
87
87
|
foxWallet
|
|
88
88
|
} from "./chunk-WAOREEBE.js";
|
|
89
|
+
import {
|
|
90
|
+
frameWallet
|
|
91
|
+
} from "./chunk-KPVNJO3R.js";
|
|
89
92
|
import {
|
|
90
93
|
gateWallet
|
|
91
94
|
} from "./chunk-YIJ5ULO3.js";
|
|
92
95
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import {
|
|
96
|
-
frontierWallet
|
|
97
|
-
} from "./chunk-LCOUKF2U.js";
|
|
96
|
+
ledgerWallet
|
|
97
|
+
} from "./chunk-ZMHCZCGS.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-E5NYR4SS.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
kresusWallet
|
|
103
|
+
} from "./chunk-QQJKQCII.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-UHHA5V52.js";
|
|
107
107
|
import {
|
|
108
108
|
coinbaseWallet
|
|
109
109
|
} from "./chunk-PNEDRY6O.js";
|
|
110
110
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
coreWallet
|
|
115
|
-
} from "./chunk-MOOW2AOC.js";
|
|
116
|
-
import {
|
|
117
|
-
bloomWallet
|
|
118
|
-
} from "./chunk-J64P6XK3.js";
|
|
119
|
-
import {
|
|
120
|
-
bitskiWallet
|
|
121
|
-
} from "./chunk-OCCT5PIN.js";
|
|
111
|
+
bybitWallet
|
|
112
|
+
} from "./chunk-3AZNOY75.js";
|
|
122
113
|
import {
|
|
123
114
|
desigWallet
|
|
124
115
|
} from "./chunk-44CHUPEQ.js";
|
|
116
|
+
import {
|
|
117
|
+
coin98Wallet
|
|
118
|
+
} from "./chunk-ZXGMW3OS.js";
|
|
125
119
|
import {
|
|
126
120
|
dawnWallet
|
|
127
121
|
} from "./chunk-KCTWDMQP.js";
|
|
128
122
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import {
|
|
132
|
-
bitverseWallet
|
|
133
|
-
} from "./chunk-BQEOIDHP.js";
|
|
134
|
-
import {
|
|
135
|
-
clvWallet
|
|
136
|
-
} from "./chunk-UHHA5V52.js";
|
|
123
|
+
coreWallet
|
|
124
|
+
} from "./chunk-MOOW2AOC.js";
|
|
137
125
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-JJ4DXD7R.js";
|
|
140
128
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
129
|
+
bloomWallet
|
|
130
|
+
} from "./chunk-J64P6XK3.js";
|
|
143
131
|
import {
|
|
144
132
|
bifrostWallet
|
|
145
133
|
} from "./chunk-KL5Z3XHJ.js";
|
|
134
|
+
import {
|
|
135
|
+
argentWallet
|
|
136
|
+
} from "./chunk-ZHFISYEQ.js";
|
|
137
|
+
import {
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-OCCT5PIN.js";
|
|
146
140
|
import {
|
|
147
141
|
bitgetWallet
|
|
148
142
|
} from "./chunk-IEVZW3XR.js";
|
|
149
143
|
import "./chunk-RETKWSKD.js";
|
|
144
|
+
import {
|
|
145
|
+
bitverseWallet
|
|
146
|
+
} from "./chunk-BQEOIDHP.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.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"@meshconnect/web-link-sdk": "2.1.1",
|
|
67
67
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
68
68
|
"@privy-io/js-sdk-core": "^0.21.0",
|
|
69
|
-
"@tanstack/react-query": "^5.
|
|
69
|
+
"@tanstack/react-query": "^5.51.11",
|
|
70
70
|
"@types/uuid": "^9.0.8",
|
|
71
71
|
"@vanilla-extract/css": "1.15.3",
|
|
72
72
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
73
73
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
74
|
-
"@wagmi/core": "^2.
|
|
74
|
+
"@wagmi/core": "^2.13.0",
|
|
75
75
|
"bech32": "^2.0.0",
|
|
76
76
|
"clsx": "2.1.1",
|
|
77
77
|
"qrcode": "1.5.3",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"react-virtuoso": "4.10.1",
|
|
80
80
|
"ua-parser-js": "^1.0.37",
|
|
81
81
|
"uuid": "^9.0.1",
|
|
82
|
+
"@funkit/core": "2.1.4",
|
|
82
83
|
"@funkit/api-base": "1.0.3",
|
|
83
|
-
"@funkit/wagmi-tools": "3.0.
|
|
84
|
-
"@funkit/core": "2.1.3"
|
|
84
|
+
"@funkit/wagmi-tools": "3.0.6"
|
|
85
85
|
},
|
|
86
86
|
"repository": {
|
|
87
87
|
"type": "git",
|