@funkit/connect 6.14.21 → 6.14.22
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/FunPayments/FunPaymentMoonpayType.css.d.ts +2 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +12 -0
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.experiment.d.ts +13 -0
- package/dist/components/Icons/ArrowTwoWayIcon.d.ts +6 -0
- package/dist/consts/moonpay.d.ts +10 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +17 -0
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/moonpay.d.ts +10 -0
- 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 +70 -70
- 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 +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.14.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 62ea9d1: fix: fix versioning issue
|
|
8
|
+
- Updated dependencies [62ea9d1]
|
|
9
|
+
- @funkit/api-base@1.12.14
|
|
10
|
+
- @funkit/chains@0.4.3
|
|
11
|
+
- @funkit/core@2.3.59
|
|
12
|
+
- @funkit/fun-relay@2.1.9
|
|
13
|
+
- @funkit/utils@1.1.16
|
|
14
|
+
- @funkit/wagmi-tools@3.0.82
|
|
15
|
+
|
|
3
16
|
## 6.14.21
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
export interface FunPaymentMoonpayProps {
|
|
4
|
+
paymentAddress: Address;
|
|
5
|
+
depositToken: string;
|
|
6
|
+
depositTokenChainId: string;
|
|
7
|
+
depositTokenAmount: number;
|
|
8
|
+
onUnsupportedRegion: () => void;
|
|
9
|
+
onTransactionCreated: () => void;
|
|
10
|
+
onTransactionCompleted: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function FunPaymentMoonpayType({ paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, onTransactionCompleted, onUnsupportedRegion, onTransactionCreated, }: FunPaymentMoonpayProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
|
+
import { type FeeLineItemProps, type PaymentFeesSummaryProps } from './PaymentFeesSummary';
|
|
4
|
+
export declare enum FEE_SECTION_VARIANT {
|
|
5
|
+
A = "A",
|
|
6
|
+
B = "B",
|
|
7
|
+
C = "C"
|
|
8
|
+
}
|
|
9
|
+
export declare const PaymentSummaryFeeLineItemExperiment: ({ isExpandable, isExpanded, isLoading, label, value, valueIcon, variant, checkoutItem, quote, }: FeeLineItemProps & {
|
|
10
|
+
variant: FEE_SECTION_VARIANT;
|
|
11
|
+
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
12
|
+
quote: PaymentFeesSummaryProps["quote"];
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -14,6 +14,7 @@ export declare function useCheckoutAccountBalanceTransfer(): {
|
|
|
14
14
|
bypassInit: boolean;
|
|
15
15
|
apiKey?: string;
|
|
16
16
|
nonce?: bigint | undefined;
|
|
17
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
17
18
|
fee?: {
|
|
18
19
|
token?: string;
|
|
19
20
|
amount?: number;
|
|
@@ -21,7 +22,6 @@ export declare function useCheckoutAccountBalanceTransfer(): {
|
|
|
21
22
|
recipient: import("viem").Address;
|
|
22
23
|
} | undefined;
|
|
23
24
|
skipDBAction?: boolean | undefined;
|
|
24
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
25
25
|
};
|
|
26
26
|
} | {
|
|
27
27
|
rFunWallet: null;
|
|
@@ -9,7 +9,7 @@ export declare const PAYMENT_METHOD_ICONS: Record<Exclude<PaymentMethod, Payment
|
|
|
9
9
|
* if no SDK icons available, show icon from wagmi
|
|
10
10
|
* otherwise show fallback icon EVM
|
|
11
11
|
*/
|
|
12
|
-
export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, iconSize?: number): string | number | boolean |
|
|
12
|
+
export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, iconSize?: number): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
13
13
|
interface PaymentMethodInfoLabel {
|
|
14
14
|
text: string;
|
|
15
15
|
icon: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -1471,7 +1471,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1471
1471
|
localStorage.setItem(storageKey, version);
|
|
1472
1472
|
}
|
|
1473
1473
|
function getCurrentSdkVersion() {
|
|
1474
|
-
return "6.14.
|
|
1474
|
+
return "6.14.22";
|
|
1475
1475
|
}
|
|
1476
1476
|
function useFingerprint() {
|
|
1477
1477
|
const fingerprint = useCallback2(() => {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
import type { PaymentMethodCardInfo } from '~/domains/paymentMethods';
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
|
+
export type MoonpaySetupState = CheckoutModalCommonState & {
|
|
6
|
+
paymentAddress: Address;
|
|
7
|
+
token: string;
|
|
8
|
+
tokenChainId: string;
|
|
9
|
+
depositAmount: number;
|
|
10
|
+
isSendingToQr: boolean;
|
|
11
|
+
paymentMethodInfo: PaymentMethodCardInfo;
|
|
12
|
+
};
|
|
13
|
+
export type MoonpaySetupNext = {
|
|
14
|
+
depositAddress: Address;
|
|
15
|
+
};
|
|
16
|
+
export declare const MoonpaySetupInfo: ModalStepInfo<FunCheckoutStep.MOONPAY_SETUP>;
|
|
17
|
+
export declare function MoonpaySetup({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MOONPAY_SETUP>): React.JSX.Element;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
55
55
|
bypassInit: boolean;
|
|
56
56
|
apiKey?: string;
|
|
57
57
|
nonce?: bigint | undefined;
|
|
58
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
58
59
|
fee?: {
|
|
59
60
|
token?: string;
|
|
60
61
|
amount?: number;
|
|
@@ -62,7 +63,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
62
63
|
recipient: Address;
|
|
63
64
|
} | undefined;
|
|
64
65
|
skipDBAction?: boolean | undefined;
|
|
65
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
66
66
|
};
|
|
67
67
|
export type TokenInfo = {
|
|
68
68
|
symbol: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
|
|
2
|
+
export declare const MAXIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 10000;
|
|
3
|
+
export declare const generateMoonpayCurrencyCode: (tokenSymbol: string, chainId: string) => string;
|
|
4
|
+
export declare function checkAmountForMoonpay(amountUsd: number, isDefiMode?: boolean): {
|
|
5
|
+
readonly isInvalid: true;
|
|
6
|
+
readonly message: string;
|
|
7
|
+
} | {
|
|
8
|
+
readonly isInvalid: false;
|
|
9
|
+
readonly message?: undefined;
|
|
10
|
+
};
|
|
@@ -1,153 +1,153 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zerionWallet
|
|
4
|
+
} from "./chunk-Q3H3TRBS.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
trustWallet
|
|
7
|
+
} from "./chunk-RKPCWHXL.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
uniswapWallet
|
|
10
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
11
|
+
import {
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
11
14
|
import {
|
|
12
15
|
talismanWallet
|
|
13
16
|
} from "./chunk-DRO6WYMM.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
trustWallet
|
|
19
|
-
} from "./chunk-VYBAYMP3.js";
|
|
20
|
-
import {
|
|
21
|
-
subWallet
|
|
22
|
-
} from "./chunk-JWFF4AAL.js";
|
|
19
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
23
20
|
import {
|
|
24
21
|
tokenaryWallet
|
|
25
22
|
} from "./chunk-D6AOOO5F.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
walletConnectWallet
|
|
25
|
+
} from "./chunk-NP5QGWNL.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
ramperWallet
|
|
28
|
+
} from "./chunk-BYXPFMI7.js";
|
|
29
|
+
import {
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-RNBEDQHF.js";
|
|
32
32
|
import {
|
|
33
33
|
xdefiWallet
|
|
34
34
|
} from "./chunk-BOU4WKRZ.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
omniWallet
|
|
37
|
+
} from "./chunk-7CUY5G6R.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-BBOM42DL.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-3CICVJUN.js";
|
|
41
44
|
import {
|
|
42
45
|
roninWallet
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QLVVUKYB.js";
|
|
44
47
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
safeheronWallet
|
|
49
|
+
} from "./chunk-RZIO5TFF.js";
|
|
47
50
|
import {
|
|
48
51
|
safepalWallet
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
imTokenWallet
|
|
52
|
-
} from "./chunk-COZ7MIQS.js";
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
53
53
|
import {
|
|
54
54
|
safeWallet
|
|
55
55
|
} from "./chunk-BQQQL6UD.js";
|
|
56
56
|
import {
|
|
57
57
|
tahoWallet
|
|
58
58
|
} from "./chunk-ZZZRUXZE.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-2HYNUNAS.js";
|
|
62
59
|
import {
|
|
63
60
|
mewWallet
|
|
64
61
|
} from "./chunk-OL5ZO7E4.js";
|
|
62
|
+
import {
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-UYGJO62F.js";
|
|
65
65
|
import {
|
|
66
66
|
oktoWallet
|
|
67
67
|
} from "./chunk-ADIXAKUL.js";
|
|
68
68
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
69
|
+
ledgerWallet
|
|
70
|
+
} from "./chunk-BRBKM4PW.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AFXHGWBH.js";
|
|
74
74
|
import {
|
|
75
75
|
oneInchWallet
|
|
76
76
|
} from "./chunk-OESTDX6I.js";
|
|
77
|
+
import {
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
77
80
|
import {
|
|
78
81
|
phantomWallet
|
|
79
82
|
} from "./chunk-362NXNTM.js";
|
|
80
83
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
frameWallet
|
|
85
|
+
} from "./chunk-IFON7E6U.js";
|
|
83
86
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
87
|
+
enkryptWallet
|
|
88
|
+
} from "./chunk-OLOIXTYS.js";
|
|
86
89
|
import {
|
|
87
90
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-CJGUM55H.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-COZ7MIQS.js";
|
|
92
98
|
import {
|
|
93
99
|
kresusWallet
|
|
94
100
|
} from "./chunk-MJXPRJZT.js";
|
|
95
101
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
98
|
-
import {
|
|
99
|
-
gateWallet
|
|
100
|
-
} from "./chunk-FKJJQNKX.js";
|
|
101
|
-
import {
|
|
102
|
-
ledgerWallet
|
|
103
|
-
} from "./chunk-BRBKM4PW.js";
|
|
102
|
+
injectedWallet
|
|
103
|
+
} from "./chunk-XWUJE7MW.js";
|
|
104
104
|
import {
|
|
105
105
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
bitskiWallet
|
|
109
|
+
} from "./chunk-HS3C7OQV.js";
|
|
110
110
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
111
|
+
bybitWallet
|
|
112
|
+
} from "./chunk-LNEC5RNX.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
coreWallet
|
|
115
|
+
} from "./chunk-JCHN6A47.js";
|
|
116
116
|
import {
|
|
117
117
|
dawnWallet
|
|
118
118
|
} from "./chunk-HWPKCIBE.js";
|
|
119
|
+
import {
|
|
120
|
+
coinbaseWallet
|
|
121
|
+
} from "./chunk-H4IRCEZN.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-OPAZMNA7.js";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
enkryptWallet
|
|
127
|
-
} from "./chunk-OLOIXTYS.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-CNPKISHN.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bitskiWallet
|
|
133
|
-
} from "./chunk-HS3C7OQV.js";
|
|
134
131
|
import {
|
|
135
132
|
bifrostWallet
|
|
136
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-UIASLGLV.js";
|
|
137
134
|
import {
|
|
138
135
|
bitgetWallet
|
|
139
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-5W7VDOCL.js";
|
|
140
137
|
import {
|
|
141
138
|
bloomWallet
|
|
142
139
|
} from "./chunk-S27IADFU.js";
|
|
143
|
-
import {
|
|
144
|
-
bybitWallet
|
|
145
|
-
} from "./chunk-2STUC6QL.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
140
|
import {
|
|
148
141
|
braveWallet
|
|
149
142
|
} from "./chunk-BPZ2XJO2.js";
|
|
143
|
+
import {
|
|
144
|
+
bitverseWallet
|
|
145
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
146
|
+
import {
|
|
147
|
+
coin98Wallet
|
|
148
|
+
} from "./chunk-KIDC67XJ.js";
|
|
150
149
|
import "./chunk-DNSG5Q7V.js";
|
|
150
|
+
import "./chunk-23WIEY36.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": "6.14.
|
|
3
|
+
"version": "6.14.22",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"ua-parser-js": "^1.0.37",
|
|
100
100
|
"use-debounce": "^10.0.5",
|
|
101
101
|
"uuid": "^9.0.1",
|
|
102
|
-
"@funkit/api-base": "1.12.
|
|
103
|
-
"@funkit/
|
|
104
|
-
"@funkit/
|
|
105
|
-
"@funkit/
|
|
106
|
-
"@funkit/
|
|
107
|
-
"@funkit/
|
|
102
|
+
"@funkit/api-base": "1.12.14",
|
|
103
|
+
"@funkit/core": "2.3.59",
|
|
104
|
+
"@funkit/chains": "0.4.3",
|
|
105
|
+
"@funkit/fun-relay": "2.1.9",
|
|
106
|
+
"@funkit/utils": "1.1.16",
|
|
107
|
+
"@funkit/wagmi-tools": "3.0.82"
|
|
108
108
|
},
|
|
109
109
|
"repository": {
|
|
110
110
|
"type": "git",
|