@funkit/connect 4.1.0 → 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 +7 -0
- package/dist/{chunk-TO3BYKDH.js → chunk-2QK6Y7FR.js} +1 -1
- package/dist/{chunk-5BMBHTAR.js → chunk-JFHTYZ23.js} +1 -1
- package/dist/{chunk-REN4AGZZ.js → chunk-TKJVOYWW.js} +5 -1
- package/dist/index.js +21 -12
- package/dist/providers/GeneralWalletProvider.d.ts +8 -8
- 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/utils/flags/config.d.ts +6 -6
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/package.json +3 -3
- 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
package/CHANGELOG.md
CHANGED
|
@@ -86,6 +86,7 @@ var baseTheme = ({
|
|
|
86
86
|
fontSizing = "regular",
|
|
87
87
|
customFontFamily,
|
|
88
88
|
customFontWeights = DEFAULT_FONT_WEIGHTS,
|
|
89
|
+
customFontSizings = FONT_SIZINGS[fontSizing],
|
|
89
90
|
overlayBlur = "small"
|
|
90
91
|
}) => ({
|
|
91
92
|
blurs: {
|
|
@@ -98,7 +99,10 @@ var baseTheme = ({
|
|
|
98
99
|
...DEFAULT_FONT_WEIGHTS,
|
|
99
100
|
...customFontWeights
|
|
100
101
|
},
|
|
101
|
-
fontSize:
|
|
102
|
+
fontSize: {
|
|
103
|
+
...FONT_SIZINGS[fontSizing],
|
|
104
|
+
...customFontSizings
|
|
105
|
+
},
|
|
102
106
|
radii: {
|
|
103
107
|
actionButton: radiusScales[borderRadius].actionButton,
|
|
104
108
|
connectButton: radiusScales[borderRadius].connectButton,
|
package/dist/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
en_US_default
|
|
4
4
|
} from "./chunk-FRCBBARC.js";
|
|
5
|
-
import {
|
|
6
|
-
darkTheme
|
|
7
|
-
} from "./chunk-TO3BYKDH.js";
|
|
8
5
|
import {
|
|
9
6
|
lightTheme
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JFHTYZ23.js";
|
|
8
|
+
import {
|
|
9
|
+
darkTheme
|
|
10
|
+
} from "./chunk-2QK6Y7FR.js";
|
|
11
11
|
import {
|
|
12
12
|
systemFontStack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TKJVOYWW.js";
|
|
14
14
|
|
|
15
15
|
// src/components/Dialog/DialogContent.css.ts
|
|
16
16
|
var BASE_DIALOG_PADDING = "6";
|
|
@@ -3189,10 +3189,6 @@ var flagConfig = {
|
|
|
3189
3189
|
"0x409ad08cc6CA757f69Fb80250a424B9eFeB99807"
|
|
3190
3190
|
])
|
|
3191
3191
|
},
|
|
3192
|
-
["asset_blacklist" /* AssetBlacklist */]: {
|
|
3193
|
-
type: "string",
|
|
3194
|
-
default_value: JSON.stringify([])
|
|
3195
|
-
},
|
|
3196
3192
|
["show_powered_tagline" /* ShowPoweredTagline */]: {
|
|
3197
3193
|
type: "boolean",
|
|
3198
3194
|
default_value: false,
|
|
@@ -3255,6 +3251,10 @@ var flagConfig = {
|
|
|
3255
3251
|
}
|
|
3256
3252
|
]
|
|
3257
3253
|
},
|
|
3254
|
+
["enable_token_transfer_universal_deposit_address" /* EnableTokenTransferUniversalDepositAddress */]: {
|
|
3255
|
+
type: "boolean",
|
|
3256
|
+
default_value: false
|
|
3257
|
+
},
|
|
3258
3258
|
["max_checkout_usd" /* MaxCheckoutUsd */]: {
|
|
3259
3259
|
type: "string",
|
|
3260
3260
|
default_value: String(Number.MAX_VALUE),
|
|
@@ -3293,7 +3293,12 @@ var flagConfig = {
|
|
|
3293
3293
|
{
|
|
3294
3294
|
key: "apiKey",
|
|
3295
3295
|
type: "isAnyOf",
|
|
3296
|
-
values: [
|
|
3296
|
+
values: [
|
|
3297
|
+
DEV_API_KEY,
|
|
3298
|
+
DEGEN_API_KEY,
|
|
3299
|
+
DYDX_API_KEY,
|
|
3300
|
+
POLYMARKET_API_KEY
|
|
3301
|
+
]
|
|
3297
3302
|
}
|
|
3298
3303
|
],
|
|
3299
3304
|
value: true
|
|
@@ -19124,6 +19129,10 @@ var TransferTokenInfo = {
|
|
|
19124
19129
|
function useTokenTransfer(selectedChainId, selectedToken) {
|
|
19125
19130
|
const { checkoutItem } = useCheckoutContext();
|
|
19126
19131
|
const { walletAddress, userInfo } = useGeneralWallet();
|
|
19132
|
+
const enableUniversal = useFlag(
|
|
19133
|
+
"enable_token_transfer_universal_deposit_address" /* EnableTokenTransferUniversalDepositAddress */,
|
|
19134
|
+
false
|
|
19135
|
+
);
|
|
19127
19136
|
const recipientAddr = checkoutItem?.initSettings?.config.customRecipient || walletAddress || "0x";
|
|
19128
19137
|
const funTransferDepositAddress = useCheckoutTransferDepositAddress(
|
|
19129
19138
|
checkoutItem,
|
|
@@ -19132,7 +19141,7 @@ function useTokenTransfer(selectedChainId, selectedToken) {
|
|
|
19132
19141
|
);
|
|
19133
19142
|
const isUsdceOnPolygon = selectedChainId === polygon4.id && selectedToken === "USDC.e";
|
|
19134
19143
|
const isUsdcOnPolygon = selectedChainId === polygon4.id && selectedToken === "USDC";
|
|
19135
|
-
const showOriginalRecipient = isUsdceOnPolygon || isUsdcOnPolygon;
|
|
19144
|
+
const showOriginalRecipient = !enableUniversal && (isUsdceOnPolygon || isUsdcOnPolygon);
|
|
19136
19145
|
if (showOriginalRecipient) {
|
|
19137
19146
|
return {
|
|
19138
19147
|
depositAddress: recipientAddr,
|
|
@@ -21477,7 +21486,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
21477
21486
|
localStorage.setItem(storageKey5, version);
|
|
21478
21487
|
}
|
|
21479
21488
|
function getCurrentSdkVersion() {
|
|
21480
|
-
return "4.1.
|
|
21489
|
+
return "4.1.1";
|
|
21481
21490
|
}
|
|
21482
21491
|
function useFingerprint() {
|
|
21483
21492
|
const fingerprint = useCallback43(() => {
|
|
@@ -96,15 +96,15 @@ export declare const useFunkitDisconnect: () => {
|
|
|
96
96
|
error: null;
|
|
97
97
|
data: undefined;
|
|
98
98
|
status: "idle";
|
|
99
|
-
isPaused: boolean;
|
|
100
|
-
context: unknown;
|
|
101
99
|
isError: false;
|
|
102
100
|
isPending: false;
|
|
103
101
|
isSuccess: false;
|
|
104
102
|
failureCount: number;
|
|
105
103
|
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
104
|
+
isPaused: boolean;
|
|
106
105
|
variables: undefined;
|
|
107
106
|
isIdle: true;
|
|
107
|
+
context: unknown;
|
|
108
108
|
submittedAt: number;
|
|
109
109
|
connectors: readonly import("wagmi").Connector[];
|
|
110
110
|
} | {
|
|
@@ -114,15 +114,15 @@ export declare const useFunkitDisconnect: () => {
|
|
|
114
114
|
error: null;
|
|
115
115
|
data: undefined;
|
|
116
116
|
status: "pending";
|
|
117
|
-
isPaused: boolean;
|
|
118
|
-
context: unknown;
|
|
119
117
|
isError: false;
|
|
120
118
|
isPending: true;
|
|
121
119
|
isSuccess: false;
|
|
122
120
|
failureCount: number;
|
|
123
121
|
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
122
|
+
isPaused: boolean;
|
|
124
123
|
variables: import("wagmi/query").DisconnectVariables;
|
|
125
124
|
isIdle: false;
|
|
125
|
+
context: unknown;
|
|
126
126
|
submittedAt: number;
|
|
127
127
|
connectors: readonly import("wagmi").Connector[];
|
|
128
128
|
} | {
|
|
@@ -132,15 +132,15 @@ export declare const useFunkitDisconnect: () => {
|
|
|
132
132
|
error: import("@wagmi/core").DisconnectErrorType;
|
|
133
133
|
data: undefined;
|
|
134
134
|
status: "error";
|
|
135
|
-
isPaused: boolean;
|
|
136
|
-
context: unknown;
|
|
137
135
|
isError: true;
|
|
138
136
|
isPending: false;
|
|
139
137
|
isSuccess: false;
|
|
140
138
|
failureCount: number;
|
|
141
139
|
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
140
|
+
isPaused: boolean;
|
|
142
141
|
variables: import("wagmi/query").DisconnectVariables;
|
|
143
142
|
isIdle: false;
|
|
143
|
+
context: unknown;
|
|
144
144
|
submittedAt: number;
|
|
145
145
|
connectors: readonly import("wagmi").Connector[];
|
|
146
146
|
} | {
|
|
@@ -150,15 +150,15 @@ export declare const useFunkitDisconnect: () => {
|
|
|
150
150
|
error: null;
|
|
151
151
|
data: void;
|
|
152
152
|
status: "success";
|
|
153
|
-
isPaused: boolean;
|
|
154
|
-
context: unknown;
|
|
155
153
|
isError: false;
|
|
156
154
|
isPending: false;
|
|
157
155
|
isSuccess: true;
|
|
158
156
|
failureCount: number;
|
|
159
157
|
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
158
|
+
isPaused: boolean;
|
|
160
159
|
variables: import("wagmi/query").DisconnectVariables;
|
|
161
160
|
isIdle: false;
|
|
161
|
+
context: unknown;
|
|
162
162
|
submittedAt: number;
|
|
163
163
|
connectors: readonly import("wagmi").Connector[];
|
|
164
164
|
};
|
|
@@ -13,12 +13,13 @@ type FontSizeType = 'regular' | 'small';
|
|
|
13
13
|
interface BaseThemeOptions {
|
|
14
14
|
customFontWeights?: Partial<ThemeVars['fontWeight']>;
|
|
15
15
|
customFontFamily?: string;
|
|
16
|
+
customFontSizings?: Partial<ThemeVars['fontSize']>;
|
|
16
17
|
fontSizing?: FontSizeType;
|
|
17
18
|
borderRadius?: RadiusScale;
|
|
18
19
|
fontStack?: FontStack;
|
|
19
20
|
overlayBlur?: Blurs;
|
|
20
21
|
}
|
|
21
|
-
export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "fonts" | "fontWeight" | "fontSize" | "blurs">;
|
|
22
|
+
export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "fonts" | "fontWeight" | "fontSize" | "blurs">;
|
|
22
23
|
export interface AccentColor {
|
|
23
24
|
accentColor: string;
|
|
24
25
|
accentColorForeground: string;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
|
@@ -16,8 +16,6 @@ export declare enum FlagKey {
|
|
|
16
16
|
BlockedCountries = "blocked_countries",
|
|
17
17
|
/** Which users/addresses should be blocked for Funkit Checkout */
|
|
18
18
|
AddressBlacklist = "address_blacklist",
|
|
19
|
-
/** List of asset keys that should be displayed as `Unsupported`. Format is `${chainId}|${address}` */
|
|
20
|
-
AssetBlacklist = "asset_blacklist",
|
|
21
19
|
/** Whether to show the [Powered by Fun.xyz] tagline at the bottom of the checkout modal. */
|
|
22
20
|
ShowPoweredTagline = "show_powered_tagline",
|
|
23
21
|
/** Whether to enable Token Transfer as a payment method. */
|
|
@@ -26,6 +24,8 @@ export declare enum FlagKey {
|
|
|
26
24
|
TokenTransferSourceChainsAndAssets = "token_transfer_source_chains_and_assets",
|
|
27
25
|
/** Token Transfer additional disclaimer text. */
|
|
28
26
|
TokenTransferAdditionalDisclaimer = "token_transfer_additional_disclaimer",
|
|
27
|
+
/** Token Transfer universal deposit address */
|
|
28
|
+
EnableTokenTransferUniversalDepositAddress = "enable_token_transfer_universal_deposit_address",
|
|
29
29
|
/** Maximum usd amount that can be checked out. */
|
|
30
30
|
MaxCheckoutUsd = "max_checkout_usd",
|
|
31
31
|
/** Payment proxy server - whether we're using FROG for proxying payment (mesh) requests */
|
|
@@ -64,10 +64,6 @@ export declare const flagConfig: {
|
|
|
64
64
|
type: "string";
|
|
65
65
|
default_value: string;
|
|
66
66
|
};
|
|
67
|
-
asset_blacklist: {
|
|
68
|
-
type: "string";
|
|
69
|
-
default_value: string;
|
|
70
|
-
};
|
|
71
67
|
show_powered_tagline: {
|
|
72
68
|
type: "boolean";
|
|
73
69
|
default_value: false;
|
|
@@ -108,6 +104,10 @@ export declare const flagConfig: {
|
|
|
108
104
|
value: string;
|
|
109
105
|
}[];
|
|
110
106
|
};
|
|
107
|
+
enable_token_transfer_universal_deposit_address: {
|
|
108
|
+
type: "boolean";
|
|
109
|
+
default_value: false;
|
|
110
|
+
};
|
|
111
111
|
max_checkout_usd: {
|
|
112
112
|
type: "string";
|
|
113
113
|
default_value: string;
|
|
@@ -1,61 +1,64 @@
|
|
|
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
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
|
+
import {
|
|
18
|
+
tokenPocketWallet
|
|
19
|
+
} from "./chunk-IDKVN5CF.js";
|
|
17
20
|
import {
|
|
18
21
|
tokenaryWallet
|
|
19
22
|
} from "./chunk-SLOIIJGP.js";
|
|
23
|
+
import {
|
|
24
|
+
trustWallet
|
|
25
|
+
} from "./chunk-ISIBREBO.js";
|
|
20
26
|
import {
|
|
21
27
|
uniswapWallet
|
|
22
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
23
29
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-NO7XMBB5.js";
|
|
26
32
|
import {
|
|
27
33
|
walletConnectWallet
|
|
28
34
|
} from "./chunk-NP5QGWNL.js";
|
|
29
35
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-BVX4XGNP.js";
|
|
32
38
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
39
|
+
rainbowWallet
|
|
40
|
+
} from "./chunk-2UCNRD7H.js";
|
|
35
41
|
import {
|
|
36
42
|
ramperWallet
|
|
37
43
|
} from "./chunk-PIUNLQJG.js";
|
|
38
|
-
import {
|
|
39
|
-
oneKeyWallet
|
|
40
|
-
} from "./chunk-4AD7VI2P.js";
|
|
41
|
-
import {
|
|
42
|
-
rainbowWallet
|
|
43
|
-
} from "./chunk-2UCNRD7H.js";
|
|
44
44
|
import {
|
|
45
45
|
roninWallet
|
|
46
46
|
} from "./chunk-63YLN6R5.js";
|
|
47
47
|
import {
|
|
48
48
|
safeWallet
|
|
49
49
|
} from "./chunk-BQQQL6UD.js";
|
|
50
|
-
import {
|
|
51
|
-
safepalWallet
|
|
52
|
-
} from "./chunk-MSFKSQBY.js";
|
|
53
50
|
import {
|
|
54
51
|
safeheronWallet
|
|
55
52
|
} from "./chunk-R6RWZRFF.js";
|
|
56
53
|
import {
|
|
57
54
|
subWallet
|
|
58
55
|
} from "./chunk-AD2KIJB6.js";
|
|
56
|
+
import {
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-MSFKSQBY.js";
|
|
59
|
+
import {
|
|
60
|
+
metaMaskWallet
|
|
61
|
+
} from "./chunk-G73C6P5P.js";
|
|
59
62
|
import {
|
|
60
63
|
mewWallet
|
|
61
64
|
} from "./chunk-V57WLZEE.js";
|
|
@@ -63,59 +66,53 @@ import {
|
|
|
63
66
|
oktoWallet
|
|
64
67
|
} from "./chunk-ADIXAKUL.js";
|
|
65
68
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
71
|
+
import {
|
|
72
|
+
omniWallet
|
|
73
|
+
} from "./chunk-7CUY5G6R.js";
|
|
68
74
|
import {
|
|
69
75
|
oneInchWallet
|
|
70
76
|
} from "./chunk-OESTDX6I.js";
|
|
71
77
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-4AD7VI2P.js";
|
|
74
80
|
import {
|
|
75
81
|
phantomWallet
|
|
76
82
|
} from "./chunk-ZSVTX6EK.js";
|
|
77
|
-
import {
|
|
78
|
-
rabbyWallet
|
|
79
|
-
} from "./chunk-BVX4XGNP.js";
|
|
80
|
-
import {
|
|
81
|
-
okxWallet
|
|
82
|
-
} from "./chunk-4WEHDI4Y.js";
|
|
83
83
|
import {
|
|
84
84
|
frontierWallet
|
|
85
85
|
} from "./chunk-3S2U24BJ.js";
|
|
86
86
|
import {
|
|
87
87
|
foxWallet
|
|
88
88
|
} from "./chunk-LMZMXEXL.js";
|
|
89
|
-
import {
|
|
90
|
-
enkryptWallet
|
|
91
|
-
} from "./chunk-SJTXS4ZW.js";
|
|
92
89
|
import {
|
|
93
90
|
gateWallet
|
|
94
91
|
} from "./chunk-GSOYKKIS.js";
|
|
95
92
|
import {
|
|
96
93
|
injectedWallet
|
|
97
94
|
} from "./chunk-VCVVV2K7.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-COZ7MIQS.js";
|
|
98
|
+
import {
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-MJXPRJZT.js";
|
|
98
101
|
import {
|
|
99
102
|
ledgerWallet
|
|
100
103
|
} from "./chunk-BRBKM4PW.js";
|
|
101
104
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-6ONTSPEY.js";
|
|
107
|
+
import {
|
|
108
|
+
coreWallet
|
|
109
|
+
} from "./chunk-HBA36GW3.js";
|
|
104
110
|
import {
|
|
105
111
|
coin98Wallet
|
|
106
112
|
} from "./chunk-DTRYS3MO.js";
|
|
107
|
-
import {
|
|
108
|
-
bitgetWallet
|
|
109
|
-
} from "./chunk-A5APNTGL.js";
|
|
110
|
-
import {
|
|
111
|
-
bitskiWallet
|
|
112
|
-
} from "./chunk-P74YPRF6.js";
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-H4IRCEZN.js";
|
|
116
|
-
import {
|
|
117
|
-
coreWallet
|
|
118
|
-
} from "./chunk-HBA36GW3.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-LN7OD5EC.js";
|
|
@@ -123,30 +120,33 @@ import {
|
|
|
123
120
|
desigWallet
|
|
124
121
|
} from "./chunk-CTU6JCOK.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
bitskiWallet
|
|
124
|
+
} from "./chunk-P74YPRF6.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
130
|
} from "./chunk-W6N74MS3.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-A5APNTGL.js";
|
|
134
137
|
import {
|
|
135
138
|
bitverseWallet
|
|
136
139
|
} from "./chunk-3HZRRP4Y.js";
|
|
137
140
|
import {
|
|
138
141
|
bloomWallet
|
|
139
142
|
} from "./chunk-S27IADFU.js";
|
|
140
|
-
import {
|
|
141
|
-
bybitWallet
|
|
142
|
-
} from "./chunk-6ONTSPEY.js";
|
|
143
|
-
import {
|
|
144
|
-
braveWallet
|
|
145
|
-
} from "./chunk-PB254NQ4.js";
|
|
146
143
|
import {
|
|
147
144
|
clvWallet
|
|
148
145
|
} from "./chunk-KR6JBW5E.js";
|
|
149
146
|
import "./chunk-23WIEY36.js";
|
|
147
|
+
import {
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-PB254NQ4.js";
|
|
150
150
|
import "./chunk-WRA2DVJ7.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "4.1.
|
|
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",
|
|
@@ -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/core": "2.3.0",
|
|
93
94
|
"@funkit/api-base": "1.5.0",
|
|
94
|
-
"@funkit/utils": "1.0.3",
|
|
95
95
|
"@funkit/wagmi-tools": "3.0.21",
|
|
96
|
-
"@funkit/
|
|
96
|
+
"@funkit/utils": "1.0.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
|
-
};
|