@funkit/connect 6.14.17 → 6.14.19
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 +36 -0
- package/dist/__generated__/default_configs.d.ts +3 -1
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +2 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +19 -2
- package/dist/components/FunCheckoutHistory/FunDirectExecutionStatus.d.ts +23 -3
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +2 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +16 -2
- package/dist/consts/bluvo.d.ts +4 -4
- package/dist/domains/fees.d.ts +2 -2
- package/dist/domains/paymentMethods.d.ts +0 -3
- package/dist/domains/quote.d.ts +3 -3
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +4 -2
- package/dist/hooks/statsig/useDynamicConfig.d.ts +1 -1
- package/dist/hooks/track/CheckoutModalEvent.d.ts +2 -2
- package/dist/hooks/useBluvo.d.ts +4 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -4
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +3 -2
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +2 -1
- package/dist/index.css +14 -28
- package/dist/index.js +23319 -23211
- package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +10 -0
- package/dist/modals/CheckoutModal/{MeshVerification.d.ts → Brokerage/BrokerageTwoFA.d.ts} +12 -13
- package/dist/modals/CheckoutModal/{ConnectExchange.d.ts → Brokerage/ConnectExchange.d.ts} +2 -2
- package/dist/modals/CheckoutModal/Brokerage/components/BrokerageSuccess.d.ts +8 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +0 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -1
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -2
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -4
- package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -7
- package/dist/providers/FunkitBrokerageProvider.d.ts +5 -1
- package/dist/providers/FunkitMoonpayProvider.d.ts +0 -5
- package/dist/utils/bluvo.d.ts +29 -3
- package/dist/utils/checkout.d.ts +1 -2
- package/dist/utils/flags/config.d.ts +2 -9
- 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 +76 -76
- 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 -7
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +0 -2
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +0 -12
- package/dist/consts/moonpay.d.ts +0 -10
- package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +0 -17
- package/dist/utils/moonpay.d.ts +0 -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
|
+
walletConnectWallet
|
|
7
|
+
} from "./chunk-NP5QGWNL.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
zealWallet
|
|
10
|
+
} from "./chunk-RNBEDQHF.js";
|
|
11
11
|
import {
|
|
12
12
|
talismanWallet
|
|
13
13
|
} from "./chunk-DRO6WYMM.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
tahoWallet
|
|
19
|
-
} from "./chunk-ZZZRUXZE.js";
|
|
20
|
-
import {
|
|
21
|
-
subWallet
|
|
22
|
-
} from "./chunk-JWFF4AAL.js";
|
|
15
|
+
ledgerWallet
|
|
16
|
+
} from "./chunk-BRBKM4PW.js";
|
|
23
17
|
import {
|
|
24
18
|
tokenaryWallet
|
|
25
19
|
} from "./chunk-D6AOOO5F.js";
|
|
26
20
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
21
|
+
tahoWallet
|
|
22
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
29
23
|
import {
|
|
30
24
|
trustWallet
|
|
31
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RKPCWHXL.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
tokenPocketWallet
|
|
28
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
uniswapWallet
|
|
31
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
xdefiWallet
|
|
34
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
41
35
|
import {
|
|
42
36
|
rabbyWallet
|
|
43
37
|
} from "./chunk-BBOM42DL.js";
|
|
38
|
+
import {
|
|
39
|
+
rainbowWallet
|
|
40
|
+
} from "./chunk-3CICVJUN.js";
|
|
44
41
|
import {
|
|
45
42
|
ramperWallet
|
|
46
43
|
} from "./chunk-BYXPFMI7.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
safeheronWallet
|
|
52
|
-
} from "./chunk-RZIO5TFF.js";
|
|
45
|
+
subWallet
|
|
46
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
53
47
|
import {
|
|
54
48
|
safeWallet
|
|
55
49
|
} from "./chunk-BQQQL6UD.js";
|
|
56
50
|
import {
|
|
57
51
|
safepalWallet
|
|
58
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
59
53
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-RZIO5TFF.js";
|
|
62
56
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
57
|
+
roninWallet
|
|
58
|
+
} from "./chunk-QLVVUKYB.js";
|
|
65
59
|
import {
|
|
66
60
|
mewWallet
|
|
67
61
|
} from "./chunk-OL5ZO7E4.js";
|
|
68
62
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
63
|
+
kresusWallet
|
|
64
|
+
} from "./chunk-MJXPRJZT.js";
|
|
65
|
+
import {
|
|
66
|
+
imTokenWallet
|
|
67
|
+
} from "./chunk-COZ7MIQS.js";
|
|
71
68
|
import {
|
|
72
69
|
omniWallet
|
|
73
70
|
} from "./chunk-7CUY5G6R.js";
|
|
74
71
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import {
|
|
78
|
-
oneInchWallet
|
|
79
|
-
} from "./chunk-OESTDX6I.js";
|
|
72
|
+
oktoWallet
|
|
73
|
+
} from "./chunk-ADIXAKUL.js";
|
|
80
74
|
import {
|
|
81
75
|
oneKeyWallet
|
|
82
76
|
} from "./chunk-SHBUZ7U7.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-OESTDX6I.js";
|
|
86
80
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-362NXNTM.js";
|
|
89
83
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
84
|
+
desigWallet
|
|
85
|
+
} from "./chunk-OPAZMNA7.js";
|
|
92
86
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-IFON7E6U.js";
|
|
95
89
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
98
92
|
import {
|
|
99
93
|
injectedWallet
|
|
100
94
|
} from "./chunk-XWUJE7MW.js";
|
|
101
95
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
96
|
+
gateWallet
|
|
97
|
+
} from "./chunk-CJGUM55H.js";
|
|
104
98
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
99
|
+
metaMaskWallet
|
|
100
|
+
} from "./chunk-UYGJO62F.js";
|
|
107
101
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
102
|
+
okxWallet
|
|
103
|
+
} from "./chunk-AFXHGWBH.js";
|
|
110
104
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
107
|
+
import {
|
|
108
|
+
coinbaseWallet
|
|
109
|
+
} from "./chunk-H4IRCEZN.js";
|
|
113
110
|
import {
|
|
114
111
|
dawnWallet
|
|
115
112
|
} from "./chunk-HWPKCIBE.js";
|
|
116
113
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
119
|
-
import {
|
|
120
|
-
desigWallet
|
|
121
|
-
} from "./chunk-OPAZMNA7.js";
|
|
114
|
+
bloomWallet
|
|
115
|
+
} from "./chunk-S27IADFU.js";
|
|
122
116
|
import {
|
|
123
117
|
enkryptWallet
|
|
124
118
|
} from "./chunk-OLOIXTYS.js";
|
|
125
119
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-JCHN6A47.js";
|
|
122
|
+
import {
|
|
123
|
+
coin98Wallet
|
|
124
|
+
} from "./chunk-KIDC67XJ.js";
|
|
125
|
+
import {
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-CNPKISHN.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-UIASLGLV.js";
|
|
131
134
|
import {
|
|
132
135
|
bitskiWallet
|
|
133
136
|
} from "./chunk-HS3C7OQV.js";
|
|
134
|
-
import {
|
|
135
|
-
bifrostWallet
|
|
136
|
-
} from "./chunk-A5N6B5UW.js";
|
|
137
137
|
import {
|
|
138
138
|
bitgetWallet
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-5W7VDOCL.js";
|
|
140
|
+
import {
|
|
141
|
+
clvWallet
|
|
142
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
143
|
+
import {
|
|
144
|
+
bybitWallet
|
|
145
|
+
} from "./chunk-LNEC5RNX.js";
|
|
146
|
+
import "./chunk-DNSG5Q7V.js";
|
|
140
147
|
import {
|
|
141
148
|
bitverseWallet
|
|
142
149
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import {
|
|
144
|
-
bloomWallet
|
|
145
|
-
} from "./chunk-S27IADFU.js";
|
|
146
150
|
import "./chunk-23WIEY36.js";
|
|
147
|
-
import {
|
|
148
|
-
braveWallet
|
|
149
|
-
} from "./chunk-BPZ2XJO2.js";
|
|
150
|
-
import "./chunk-DNSG5Q7V.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.19",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
"@bluvo/react": "2.0.7",
|
|
82
82
|
"@bluvo/sdk-ts": "2.0.7",
|
|
83
83
|
"@datadog/browser-logs": "5.22.0",
|
|
84
|
-
"@moonpay/moonpay-react": "^1.6.1",
|
|
85
84
|
"@number-flow/react": "^0.5.5",
|
|
86
85
|
"@privy-io/js-sdk-core": "^0.21.0",
|
|
87
86
|
"@solana/addresses": "^2.1.0",
|
|
@@ -100,12 +99,12 @@
|
|
|
100
99
|
"ua-parser-js": "^1.0.37",
|
|
101
100
|
"use-debounce": "^10.0.5",
|
|
102
101
|
"uuid": "^9.0.1",
|
|
103
|
-
"@funkit/api-base": "1.12.
|
|
102
|
+
"@funkit/api-base": "1.12.12",
|
|
104
103
|
"@funkit/chains": "0.4.2",
|
|
105
|
-
"@funkit/
|
|
106
|
-
"@funkit/
|
|
107
|
-
"@funkit/
|
|
108
|
-
"@funkit/
|
|
104
|
+
"@funkit/core": "2.3.57",
|
|
105
|
+
"@funkit/fun-relay": "2.1.7",
|
|
106
|
+
"@funkit/utils": "1.1.14",
|
|
107
|
+
"@funkit/wagmi-tools": "3.0.80"
|
|
109
108
|
},
|
|
110
109
|
"repository": {
|
|
111
110
|
"type": "git",
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
package/dist/consts/moonpay.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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/moonpay.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|