@funkit/connect 5.1.3 → 5.1.4
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/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +3 -1
- package/dist/index.js +32 -20
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +4 -1
- package/dist/wallets/walletConnectors/index.js +38 -38
- package/package.json +2 -2
- package/dist/wallets/walletConnectors/chunk-2UCNRD7H.js +0 -70
- package/dist/wallets/walletConnectors/chunk-3S2U24BJ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-4WEHDI4Y.js +0 -94
- package/dist/wallets/walletConnectors/chunk-63YLN6R5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-6ONTSPEY.js +0 -98
- package/dist/wallets/walletConnectors/chunk-A5APNTGL.js +0 -99
- package/dist/wallets/walletConnectors/chunk-AD2KIJB6.js +0 -103
- package/dist/wallets/walletConnectors/chunk-AXWP3GD4.js +0 -100
- package/dist/wallets/walletConnectors/chunk-DTRYS3MO.js +0 -96
- package/dist/wallets/walletConnectors/chunk-G73C6P5P.js +0 -146
- package/dist/wallets/walletConnectors/chunk-GSOYKKIS.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HBA36GW3.js +0 -95
- package/dist/wallets/walletConnectors/chunk-IDKVN5CF.js +0 -93
- package/dist/wallets/walletConnectors/chunk-ISIBREBO.js +0 -106
- package/dist/wallets/walletConnectors/chunk-KR6JBW5E.js +0 -87
- package/dist/wallets/walletConnectors/chunk-LMZMXEXL.js +0 -66
- package/dist/wallets/walletConnectors/chunk-MSFKSQBY.js +0 -110
- package/dist/wallets/walletConnectors/chunk-W6N74MS3.js +0 -69
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,9 @@ import React from 'react';
|
|
|
3
3
|
interface FunCheckoutHistoryDetailProps {
|
|
4
4
|
checkoutHistoryInfo: CheckoutHistoryItem | undefined;
|
|
5
5
|
onHelp: () => void;
|
|
6
|
-
onClose: (
|
|
6
|
+
onClose: (options?: {
|
|
7
|
+
isNewDeposit?: boolean;
|
|
8
|
+
}) => void;
|
|
7
9
|
/** Element ID to be used to mount the CTA action bar */
|
|
8
10
|
bottomBarId: string;
|
|
9
11
|
includeGenerateActionsParams?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -10084,7 +10084,7 @@ function FunCheckoutHistoryDetail({
|
|
|
10084
10084
|
const { beginCheckout } = useFunkitCheckout({});
|
|
10085
10085
|
const handleNewCheckout = useCallback19(
|
|
10086
10086
|
(fromCheckout) => {
|
|
10087
|
-
onClose();
|
|
10087
|
+
onClose({ isNewDeposit: true });
|
|
10088
10088
|
const historicalCheckout = fromCheckout.clientMetadata;
|
|
10089
10089
|
const checkoutConfig = {
|
|
10090
10090
|
...historicalCheckout.initSettings.config,
|
|
@@ -11092,6 +11092,7 @@ var LabeledField = ({
|
|
|
11092
11092
|
|
|
11093
11093
|
// src/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.tsx
|
|
11094
11094
|
import { CheckoutState as CheckoutState4 } from "@funkit/api-base";
|
|
11095
|
+
import { formatCryptoAndStringify as formatCryptoAndStringify2 } from "@funkit/utils";
|
|
11095
11096
|
import React114 from "react";
|
|
11096
11097
|
import { createPortal as createPortal4 } from "react-dom";
|
|
11097
11098
|
function FunDirectExecutionHistoryDetail({
|
|
@@ -11118,7 +11119,11 @@ function FunDirectExecutionHistoryDetail({
|
|
|
11118
11119
|
height: 15,
|
|
11119
11120
|
useAsImage: true
|
|
11120
11121
|
}
|
|
11121
|
-
), /* @__PURE__ */ React114.createElement(Text, { size: "12", weight: "medium" },
|
|
11122
|
+
), /* @__PURE__ */ React114.createElement(Text, { size: "12", weight: "medium" }, formatCryptoAndStringify2(
|
|
11123
|
+
Number(
|
|
11124
|
+
directExecution.clientMetadata.latestQuote?.baseQuote.estTotalFromAmount || 0
|
|
11125
|
+
)
|
|
11126
|
+
))) : /* @__PURE__ */ React114.createElement(Box, { display: "flex", gap: "5", alignItems: "center" }, /* @__PURE__ */ React114.createElement(FunSkeletonCircle, { size: "15" }), /* @__PURE__ */ React114.createElement(FunSkeletonBlock, { height: "10", width: "93" })))), /* @__PURE__ */ React114.createElement(
|
|
11122
11127
|
HelpAlert,
|
|
11123
11128
|
{
|
|
11124
11129
|
onHelp: () => {
|
|
@@ -11624,7 +11629,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
11624
11629
|
|
|
11625
11630
|
// src/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.tsx
|
|
11626
11631
|
import {
|
|
11627
|
-
formatCryptoAndStringify as
|
|
11632
|
+
formatCryptoAndStringify as formatCryptoAndStringify3,
|
|
11628
11633
|
formatCurrencyAndStringify as formatCurrencyAndStringify3,
|
|
11629
11634
|
isMobile as isMobile7
|
|
11630
11635
|
} from "@funkit/utils";
|
|
@@ -11684,7 +11689,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
11684
11689
|
justifyContent: "space-between"
|
|
11685
11690
|
},
|
|
11686
11691
|
/* @__PURE__ */ React122.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, asset.name),
|
|
11687
|
-
/* @__PURE__ */ React122.createElement(Text, { color: "secondaryText", size: TEXT_SIZE, weight: "regular" },
|
|
11692
|
+
/* @__PURE__ */ React122.createElement(Text, { color: "secondaryText", size: TEXT_SIZE, weight: "regular" }, formatCryptoAndStringify3(normalizedAmount, asset.symbol))
|
|
11688
11693
|
)
|
|
11689
11694
|
),
|
|
11690
11695
|
/* @__PURE__ */ React122.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, formatCurrencyAndStringify3(asset.totalUsdValue || 0))
|
|
@@ -17083,7 +17088,7 @@ import React177, { useEffect as useEffect36 } from "react";
|
|
|
17083
17088
|
// src/modals/CheckoutModal/InputAmount/InputAmountLoaded.tsx
|
|
17084
17089
|
import {
|
|
17085
17090
|
FlagKey as FlagKey15,
|
|
17086
|
-
formatCryptoAndStringify as
|
|
17091
|
+
formatCryptoAndStringify as formatCryptoAndStringify4,
|
|
17087
17092
|
formatCurrencyAndStringify as formatCurrencyAndStringify7,
|
|
17088
17093
|
isTokenEquivalent as isTokenEquivalent5,
|
|
17089
17094
|
round as round3
|
|
@@ -17802,7 +17807,7 @@ function InputAmountLoaded({
|
|
|
17802
17807
|
color: { base: "actionColor", hover: "actionColorHover" },
|
|
17803
17808
|
onClick: handleIsAmountInAbsoluteToggle
|
|
17804
17809
|
},
|
|
17805
|
-
/* @__PURE__ */ React175.createElement(Text, { color: "actionColorDisabled", size: "14" }, isInputInUsd ?
|
|
17810
|
+
/* @__PURE__ */ React175.createElement(Text, { color: "actionColorDisabled", size: "14" }, isInputInUsd ? formatCryptoAndStringify4(
|
|
17806
17811
|
displayAssetAmount,
|
|
17807
17812
|
targetAssetTicker
|
|
17808
17813
|
) : formatCurrencyAndStringify7(usdAmount))
|
|
@@ -17837,7 +17842,7 @@ function InputAmountLoaded({
|
|
|
17837
17842
|
}
|
|
17838
17843
|
|
|
17839
17844
|
// src/modals/CheckoutModal/InputAmount/InputAmountLoading.tsx
|
|
17840
|
-
import { formatCryptoAndStringify as
|
|
17845
|
+
import { formatCryptoAndStringify as formatCryptoAndStringify5 } from "@funkit/utils";
|
|
17841
17846
|
import React176, { useMemo as useMemo28 } from "react";
|
|
17842
17847
|
function InputAmountLoading({
|
|
17843
17848
|
isCardCheckout,
|
|
@@ -17912,7 +17917,7 @@ function InputAmountLoading({
|
|
|
17912
17917
|
paddingX: "6",
|
|
17913
17918
|
color: { base: "actionColor" }
|
|
17914
17919
|
},
|
|
17915
|
-
targetAssetAmount !== void 0 ? /* @__PURE__ */ React176.createElement(Text, { color: "actionColorDisabled", size: "14" },
|
|
17920
|
+
targetAssetAmount !== void 0 ? /* @__PURE__ */ React176.createElement(Text, { color: "actionColorDisabled", size: "14" }, formatCryptoAndStringify5(
|
|
17916
17921
|
targetAssetAmount,
|
|
17917
17922
|
targetAssetTicker
|
|
17918
17923
|
)) : /* @__PURE__ */ React176.createElement(Box, { alignItems: "center", display: "flex", gap: "8" }, /* @__PURE__ */ React176.createElement(FunSkeletonBlock, { height: "14", width: "60" }), /* @__PURE__ */ React176.createElement(Text, { color: "actionColorDisabled", size: "14" }, targetAssetTicker))
|
|
@@ -18153,7 +18158,7 @@ import React180 from "react";
|
|
|
18153
18158
|
|
|
18154
18159
|
// src/components/FunAsset/FunAssetItem.tsx
|
|
18155
18160
|
import {
|
|
18156
|
-
formatCryptoAndStringify as
|
|
18161
|
+
formatCryptoAndStringify as formatCryptoAndStringify6,
|
|
18157
18162
|
formatCurrencyAndStringify as formatCurrencyAndStringify8,
|
|
18158
18163
|
isNotNullish as isNotNullish10
|
|
18159
18164
|
} from "@funkit/utils";
|
|
@@ -18305,7 +18310,7 @@ var FunAssetItem = ({
|
|
|
18305
18310
|
fontSize: TEXT_SIZE_SMALL2,
|
|
18306
18311
|
fontWeight: "regular"
|
|
18307
18312
|
},
|
|
18308
|
-
isNotNullish10(asset.amount) ? /* @__PURE__ */ React179.createElement("div", null,
|
|
18313
|
+
isNotNullish10(asset.amount) ? /* @__PURE__ */ React179.createElement("div", null, formatCryptoAndStringify6(asset.amount), " ", asset.symbol) : null
|
|
18309
18314
|
))
|
|
18310
18315
|
),
|
|
18311
18316
|
/* @__PURE__ */ React179.createElement(
|
|
@@ -22916,15 +22921,22 @@ function initialState(checkoutItem) {
|
|
|
22916
22921
|
function useCheckoutModalTransition(checkoutItem, onClose) {
|
|
22917
22922
|
const [modalState, setModalState] = useState60(() => initialState(checkoutItem));
|
|
22918
22923
|
const { clearCheckoutQuoteMessages } = useCheckoutQuoteNotification();
|
|
22919
|
-
const onCloseWrapper = useCallback39(
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22924
|
+
const onCloseWrapper = useCallback39(
|
|
22925
|
+
(options) => {
|
|
22926
|
+
const normalizedIsNewDeposit = !!options?.isNewDeposit;
|
|
22927
|
+
checkoutItem.initSettings.onClose?.({
|
|
22928
|
+
isNewDeposit: normalizedIsNewDeposit
|
|
22929
|
+
});
|
|
22930
|
+
logger.log("closingCheckoutModal", {
|
|
22931
|
+
checkoutStep: modalState.step,
|
|
22932
|
+
checkoutId: checkoutItem.id,
|
|
22933
|
+
checkoutItem,
|
|
22934
|
+
isNewDeposit: normalizedIsNewDeposit
|
|
22935
|
+
});
|
|
22936
|
+
onClose();
|
|
22937
|
+
},
|
|
22938
|
+
[checkoutItem, modalState.step, onClose]
|
|
22939
|
+
);
|
|
22928
22940
|
const { animation, animate } = useAnimatedNavigation(void 0);
|
|
22929
22941
|
const [stateHistory, setHistory] = useState60([]);
|
|
22930
22942
|
const prevStep = useRef21(null);
|
|
@@ -24983,7 +24995,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
24983
24995
|
localStorage.setItem(storageKey5, version);
|
|
24984
24996
|
}
|
|
24985
24997
|
function getCurrentSdkVersion() {
|
|
24986
|
-
return "5.1.
|
|
24998
|
+
return "5.1.4";
|
|
24987
24999
|
}
|
|
24988
25000
|
function useFingerprint() {
|
|
24989
25001
|
const fingerprint = useCallback43(() => {
|
|
@@ -98,7 +98,9 @@ export declare function useCheckoutModalTransition(checkoutItem: FunkitActiveChe
|
|
|
98
98
|
animation: import("~/hooks/useAnimatedNavigation").AnimationState;
|
|
99
99
|
modalState: CheckoutModalState<FunCheckoutStep>;
|
|
100
100
|
onBack: () => void;
|
|
101
|
-
onCloseWrapper: (
|
|
101
|
+
onCloseWrapper: (options?: {
|
|
102
|
+
isNewDeposit?: boolean;
|
|
103
|
+
}) => void;
|
|
102
104
|
onNext: (payload: NextPayload) => void;
|
|
103
105
|
/** Only use as a last resort. Prefer next/back for proper navigation */
|
|
104
106
|
onStepChange: (nextState: CheckoutModalState) => void;
|
|
@@ -49,6 +49,9 @@ export interface FunkitCheckoutValidationResult {
|
|
|
49
49
|
isValid: boolean;
|
|
50
50
|
message: string;
|
|
51
51
|
}
|
|
52
|
+
export interface FunkitCheckoutOnCloseResult {
|
|
53
|
+
isNewDeposit: boolean;
|
|
54
|
+
}
|
|
52
55
|
export type FunkitCheckoutResult = {
|
|
53
56
|
type: 'error' | 'success';
|
|
54
57
|
message: string;
|
|
@@ -60,7 +63,7 @@ export interface UseFunkitCheckoutProps {
|
|
|
60
63
|
/** @optional fires when the checkout modal is opened **/
|
|
61
64
|
onOpen?: () => void;
|
|
62
65
|
/** @optional fires when the checkout modal is closed **/
|
|
63
|
-
onClose?: () => void;
|
|
66
|
+
onClose?: (result: FunkitCheckoutOnCloseResult) => void;
|
|
64
67
|
/** @optional fires when checkout config is done validating **/
|
|
65
68
|
onValidation?: (result: FunkitCheckoutValidationResult) => void;
|
|
66
69
|
/** @optional fires when a checkout quote is received **/
|
|
@@ -11,6 +11,9 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
13
|
} from "./chunk-4UM4GTKZ.js";
|
|
14
|
+
import {
|
|
15
|
+
tokenPocketWallet
|
|
16
|
+
} from "./chunk-FRGSRLTS.js";
|
|
14
17
|
import {
|
|
15
18
|
tahoWallet
|
|
16
19
|
} from "./chunk-6P2EMPZI.js";
|
|
@@ -21,23 +24,17 @@ import {
|
|
|
21
24
|
tokenaryWallet
|
|
22
25
|
} from "./chunk-SLOIIJGP.js";
|
|
23
26
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-IPOC2VJX.js";
|
|
26
29
|
import {
|
|
27
30
|
uniswapWallet
|
|
28
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
-
import {
|
|
30
|
-
trustWallet
|
|
31
|
-
} from "./chunk-IPOC2VJX.js";
|
|
32
32
|
import {
|
|
33
33
|
xdefiWallet
|
|
34
34
|
} from "./chunk-NO7XMBB5.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
rabbyWallet
|
|
40
|
-
} from "./chunk-BVX4XGNP.js";
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-4AD7VI2P.js";
|
|
41
38
|
import {
|
|
42
39
|
rainbowWallet
|
|
43
40
|
} from "./chunk-MOOBCMMB.js";
|
|
@@ -45,8 +42,8 @@ import {
|
|
|
45
42
|
ramperWallet
|
|
46
43
|
} from "./chunk-PIUNLQJG.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
rabbyWallet
|
|
46
|
+
} from "./chunk-BVX4XGNP.js";
|
|
50
47
|
import {
|
|
51
48
|
roninWallet
|
|
52
49
|
} from "./chunk-25VW5TZP.js";
|
|
@@ -56,6 +53,9 @@ import {
|
|
|
56
53
|
import {
|
|
57
54
|
safeheronWallet
|
|
58
55
|
} from "./chunk-R6RWZRFF.js";
|
|
56
|
+
import {
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-6LPM6LUQ.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BRBKM4PW.js";
|
|
@@ -65,12 +65,6 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
metaMaskWallet
|
|
67
67
|
} from "./chunk-N2NIIUW6.js";
|
|
68
|
-
import {
|
|
69
|
-
okxWallet
|
|
70
|
-
} from "./chunk-3U3BMEH5.js";
|
|
71
|
-
import {
|
|
72
|
-
oneInchWallet
|
|
73
|
-
} from "./chunk-OESTDX6I.js";
|
|
74
68
|
import {
|
|
75
69
|
oktoWallet
|
|
76
70
|
} from "./chunk-ADIXAKUL.js";
|
|
@@ -78,11 +72,17 @@ import {
|
|
|
78
72
|
omniWallet
|
|
79
73
|
} from "./chunk-7CUY5G6R.js";
|
|
80
74
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
75
|
+
okxWallet
|
|
76
|
+
} from "./chunk-3U3BMEH5.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-OESTDX6I.js";
|
|
80
|
+
import {
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-ZMYVTWDF.js";
|
|
@@ -95,15 +95,15 @@ import {
|
|
|
95
95
|
import {
|
|
96
96
|
gateWallet
|
|
97
97
|
} from "./chunk-3NC26XLM.js";
|
|
98
|
-
import {
|
|
99
|
-
injectedWallet
|
|
100
|
-
} from "./chunk-VCVVV2K7.js";
|
|
101
98
|
import {
|
|
102
99
|
kresusWallet
|
|
103
100
|
} from "./chunk-MJXPRJZT.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
injectedWallet
|
|
103
|
+
} from "./chunk-VCVVV2K7.js";
|
|
104
|
+
import {
|
|
105
|
+
bloomWallet
|
|
106
|
+
} from "./chunk-S27IADFU.js";
|
|
107
107
|
import {
|
|
108
108
|
braveWallet
|
|
109
109
|
} from "./chunk-PB254NQ4.js";
|
|
@@ -113,6 +113,9 @@ import {
|
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-H4IRCEZN.js";
|
|
116
|
+
import {
|
|
117
|
+
dawnWallet
|
|
118
|
+
} from "./chunk-LN7OD5EC.js";
|
|
116
119
|
import {
|
|
117
120
|
desigWallet
|
|
118
121
|
} from "./chunk-CTU6JCOK.js";
|
|
@@ -120,32 +123,29 @@ import {
|
|
|
120
123
|
coreWallet
|
|
121
124
|
} from "./chunk-JXP2QPW7.js";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
enkryptWallet
|
|
127
|
-
} from "./chunk-SJTXS4ZW.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-XYBEMO3C.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bitgetWallet
|
|
133
|
-
} from "./chunk-7GSNBOD3.js";
|
|
134
131
|
import {
|
|
135
132
|
bifrostWallet
|
|
136
133
|
} from "./chunk-545L7Y4M.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-7GSNBOD3.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-P74YPRF6.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import {
|
|
144
|
-
bloomWallet
|
|
145
|
-
} from "./chunk-S27IADFU.js";
|
|
146
143
|
import {
|
|
147
144
|
clvWallet
|
|
148
145
|
} from "./chunk-LEXSM5KI.js";
|
|
146
|
+
import {
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-W5O4YSZN.js";
|
|
149
149
|
import "./chunk-WRA2DVJ7.js";
|
|
150
150
|
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"uuid": "^9.0.1",
|
|
93
93
|
"@funkit/api-base": "1.7.0",
|
|
94
94
|
"@funkit/chains": "0.2.1",
|
|
95
|
-
"@funkit/utils": "1.0.10",
|
|
96
95
|
"@funkit/core": "2.3.14",
|
|
96
|
+
"@funkit/utils": "1.0.10",
|
|
97
97
|
"@funkit/wagmi-tools": "3.0.36"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
|
-
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
-
var rainbowWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
17
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
20
|
-
uri
|
|
21
|
-
)}&connector=rainbowkit`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "rainbow",
|
|
25
|
-
name: "Rainbow",
|
|
26
|
-
rdns: "me.rainbow",
|
|
27
|
-
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
28
|
-
iconBackground: "#0c2f78",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
32
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
33
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
34
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
35
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
36
|
-
},
|
|
37
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
62
|
-
projectId,
|
|
63
|
-
walletConnectParameters
|
|
64
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
rainbowWallet
|
|
70
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var frontierWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isFrontierInjected = hasInjectedProvider({
|
|
17
|
-
namespace: "frontier.ethereum",
|
|
18
|
-
flag: "isFrontier"
|
|
19
|
-
});
|
|
20
|
-
const shouldUseWalletConnect = !isFrontierInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "frontier",
|
|
23
|
-
name: "Frontier Wallet",
|
|
24
|
-
rdns: "xyz.frontier.wallet",
|
|
25
|
-
installed: isFrontierInjected,
|
|
26
|
-
iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
|
|
27
|
-
iconBackground: "#CC703C",
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
|
|
30
|
-
ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
|
|
31
|
-
qrCode: "https://www.frontier.xyz/download",
|
|
32
|
-
chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
|
|
33
|
-
browserExtension: "https://www.frontier.xyz/download"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
-
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
38
|
-
} : void 0
|
|
39
|
-
},
|
|
40
|
-
qrCode: shouldUseWalletConnect ? {
|
|
41
|
-
getUri: (uri) => {
|
|
42
|
-
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
43
|
-
},
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://help.frontier.xyz/en/",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.im_token.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.im_token.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.im_token.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.im_token.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.im_token.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.im_token.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
} : void 0,
|
|
65
|
-
extension: {
|
|
66
|
-
instructions: {
|
|
67
|
-
learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
|
|
68
|
-
steps: [
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.frontier.extension.step1.description",
|
|
71
|
-
step: "install",
|
|
72
|
-
title: "wallet_connectors.frontier.extension.step1.title"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
description: "wallet_connectors.frontier.extension.step2.description",
|
|
76
|
-
step: "create",
|
|
77
|
-
title: "wallet_connectors.frontier.extension.step2.title"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
description: "wallet_connectors.frontier.extension.step3.description",
|
|
81
|
-
step: "refresh",
|
|
82
|
-
title: "wallet_connectors.frontier.extension.step3.title"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
|
|
88
|
-
namespace: "frontier.ethereum",
|
|
89
|
-
flag: "isFrontier"
|
|
90
|
-
})
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
frontierWallet
|
|
96
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var okxWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isOKXInjected;
|
|
18
|
-
return {
|
|
19
|
-
id: "okx",
|
|
20
|
-
name: "OKX Wallet",
|
|
21
|
-
rdns: "com.okex.wallet",
|
|
22
|
-
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
23
|
-
iconAccent: "#000",
|
|
24
|
-
iconBackground: "#000",
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
27
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
28
|
-
mobile: "https://okx.com/download",
|
|
29
|
-
qrCode: "https://okx.com/download",
|
|
30
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
31
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
32
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
33
|
-
browserExtension: "https://okx.com/download"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
-
} : void 0
|
|
39
|
-
},
|
|
40
|
-
qrCode: shouldUseWalletConnect ? {
|
|
41
|
-
getUri: (uri) => uri,
|
|
42
|
-
instructions: {
|
|
43
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
44
|
-
steps: [
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
47
|
-
step: "install",
|
|
48
|
-
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
52
|
-
step: "create",
|
|
53
|
-
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
57
|
-
step: "scan",
|
|
58
|
-
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
} : void 0,
|
|
63
|
-
extension: {
|
|
64
|
-
instructions: {
|
|
65
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
66
|
-
steps: [
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.okx.extension.step1.description",
|
|
69
|
-
step: "install",
|
|
70
|
-
title: "wallet_connectors.okx.extension.step1.title"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "wallet_connectors.okx.extension.step2.description",
|
|
74
|
-
step: "create",
|
|
75
|
-
title: "wallet_connectors.okx.extension.step2.title"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.okx.extension.step3.description",
|
|
79
|
-
step: "refresh",
|
|
80
|
-
title: "wallet_connectors.okx.extension.step3.title"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
-
projectId,
|
|
87
|
-
walletConnectParameters
|
|
88
|
-
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
okxWallet
|
|
94
|
-
};
|