@funkit/connect 0.1.17 → 0.1.18
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 +11 -0
- package/dist/{chunk-2AOSP73X.js → chunk-7PLQM2DB.js} +2445 -2300
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -4
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -1
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +1 -3
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +1 -3
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +1 -1
- package/dist/components/FunMeshVerificationStep/FunMeshVerificationStep.d.ts +12 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -26
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +5 -3
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +3 -0
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +2 -2
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +2 -1
- package/dist/components/index.css +86 -86
- package/dist/components/index.js +1 -1
- package/dist/consts/payment.d.ts +26 -0
- package/dist/index.css +68 -68
- package/dist/index.js +1 -1
- package/dist/utils/checkout.d.ts +4 -0
- package/dist/utils/deposit.d.ts +1 -1
- package/dist/utils/mesh.d.ts +23 -6
- package/dist/wallets/walletConnectors/index.js +63 -63
- package/package.json +3 -3
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +0 -9
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -33,7 +33,29 @@ export declare enum MeshExchanges {
|
|
|
33
33
|
Bybit = "Bybit"
|
|
34
34
|
}
|
|
35
35
|
export declare function fetchMeshLinkToken(selectedExchange: MeshExchanges, funApiKey: string): Promise<any>;
|
|
36
|
-
export declare
|
|
36
|
+
export declare enum MeshExecuteTransferStatus {
|
|
37
|
+
succeeded = "succeeded",
|
|
38
|
+
failed = "failed",
|
|
39
|
+
mfaRequired = "mfaRequired",
|
|
40
|
+
emailConfirmationRequired = "emailConfirmationRequired",
|
|
41
|
+
deviceConfirmationRequired = "deviceConfirmationRequired",
|
|
42
|
+
mfaFailed = "mfaFailed",
|
|
43
|
+
addressWhitelistRequired = "addressWhitelistRequired",
|
|
44
|
+
secondMfaRequired = "secondMfaRequired"
|
|
45
|
+
}
|
|
46
|
+
export declare enum MeshExecuteTransferMfaType {
|
|
47
|
+
unspecified = "unspecified",
|
|
48
|
+
phone = "phone",
|
|
49
|
+
email = "email",
|
|
50
|
+
otp = "otp"
|
|
51
|
+
}
|
|
52
|
+
export interface MeshExecuteTransferContent {
|
|
53
|
+
status: MeshExecuteTransferStatus;
|
|
54
|
+
mfaType: MeshExecuteTransferMfaType;
|
|
55
|
+
errorMessage: string | null;
|
|
56
|
+
executeTransferResult: object | null;
|
|
57
|
+
}
|
|
58
|
+
export declare function executeBrokerageDeposit(fromAuthToken: string, brokerage: string, previewId: string, apiKey: string, mfaCode?: string): Promise<MeshExecuteTransferContent>;
|
|
37
59
|
export declare function fetchMeshAccountCryptoHoldings({ authToken, apiKey, exchange, }: {
|
|
38
60
|
authToken: string;
|
|
39
61
|
apiKey: string;
|
|
@@ -51,8 +73,3 @@ export declare function fetchMeshSupportedTokensAndIdByChainIdAndBrokerage({ cha
|
|
|
51
73
|
meshSupportedTokens: any;
|
|
52
74
|
meshNetworkId: any;
|
|
53
75
|
}>;
|
|
54
|
-
export type MeshCheckoutQuoteMeta = null | {
|
|
55
|
-
accessToken: string;
|
|
56
|
-
brokerName: MeshExchanges;
|
|
57
|
-
meshNetworkId: string;
|
|
58
|
-
};
|
|
@@ -1,46 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
zealWallet
|
|
7
|
-
} from "./chunk-QBKHMTGI.js";
|
|
8
|
-
import {
|
|
9
|
-
subWallet
|
|
10
|
-
} from "./chunk-PTF3JKWO.js";
|
|
11
|
-
import {
|
|
12
|
-
tahoWallet
|
|
13
|
-
} from "./chunk-OOGGCCFQ.js";
|
|
3
|
+
trustWallet
|
|
4
|
+
} from "./chunk-YWKKNHO3.js";
|
|
14
5
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
6
|
+
safepalWallet
|
|
7
|
+
} from "./chunk-TZR3P22N.js";
|
|
17
8
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
9
|
+
foxWallet
|
|
10
|
+
} from "./chunk-TG2HN6KW.js";
|
|
20
11
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
12
|
+
uniswapWallet
|
|
13
|
+
} from "./chunk-APZ6YBCA.js";
|
|
23
14
|
import {
|
|
24
15
|
walletConnectWallet
|
|
25
16
|
} from "./chunk-XXTDCRCW.js";
|
|
26
17
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-5UETJ33B.js";
|
|
29
20
|
import {
|
|
30
21
|
xdefiWallet
|
|
31
22
|
} from "./chunk-5ZLRNFDM.js";
|
|
32
23
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
oneKeyWallet
|
|
37
|
-
} from "./chunk-6CW3SAA3.js";
|
|
24
|
+
zealWallet
|
|
25
|
+
} from "./chunk-QBKHMTGI.js";
|
|
38
26
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
27
|
+
metaMaskWallet
|
|
28
|
+
} from "./chunk-MOWIPEYK.js";
|
|
41
29
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
30
|
+
zerionWallet
|
|
31
|
+
} from "./chunk-77KYAV4P.js";
|
|
44
32
|
import {
|
|
45
33
|
rabbyWallet
|
|
46
34
|
} from "./chunk-TNC2B7LX.js";
|
|
@@ -48,81 +36,93 @@ import {
|
|
|
48
36
|
safeheronWallet
|
|
49
37
|
} from "./chunk-7WTKIVCW.js";
|
|
50
38
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
39
|
+
subWallet
|
|
40
|
+
} from "./chunk-PTF3JKWO.js";
|
|
53
41
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-IEAKLGB6.js";
|
|
56
44
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
45
|
+
tahoWallet
|
|
46
|
+
} from "./chunk-OOGGCCFQ.js";
|
|
59
47
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
48
|
+
phantomWallet
|
|
49
|
+
} from "./chunk-KUZFZL2D.js";
|
|
62
50
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
51
|
+
oneKeyWallet
|
|
52
|
+
} from "./chunk-6CW3SAA3.js";
|
|
53
|
+
import {
|
|
54
|
+
tokenPocketWallet
|
|
55
|
+
} from "./chunk-3XLDPS4Y.js";
|
|
56
|
+
import {
|
|
57
|
+
argentWallet
|
|
58
|
+
} from "./chunk-LEWQ7DQV.js";
|
|
65
59
|
import {
|
|
66
60
|
ledgerWallet
|
|
67
61
|
} from "./chunk-GLB4HFDR.js";
|
|
62
|
+
import {
|
|
63
|
+
omniWallet
|
|
64
|
+
} from "./chunk-NEDPCNTA.js";
|
|
65
|
+
import {
|
|
66
|
+
injectedWallet
|
|
67
|
+
} from "./chunk-U32TVZ7G.js";
|
|
68
68
|
import {
|
|
69
69
|
mewWallet
|
|
70
70
|
} from "./chunk-BZFEDZQJ.js";
|
|
71
|
-
import {
|
|
72
|
-
metaMaskWallet
|
|
73
|
-
} from "./chunk-MOWIPEYK.js";
|
|
74
71
|
import {
|
|
75
72
|
oktoWallet
|
|
76
73
|
} from "./chunk-VW5SMBMG.js";
|
|
77
74
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
75
|
+
okxWallet
|
|
76
|
+
} from "./chunk-GHYJ56FA.js";
|
|
77
|
+
import {
|
|
78
|
+
safeWallet
|
|
79
|
+
} from "./chunk-BNTZHUB6.js";
|
|
80
80
|
import {
|
|
81
81
|
coin98Wallet
|
|
82
82
|
} from "./chunk-LVMQKSKW.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-ND76X5A2.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-MBFEMLUU.js";
|
|
83
89
|
import {
|
|
84
90
|
coinbaseWallet
|
|
85
91
|
} from "./chunk-WFTAXMQP.js";
|
|
86
92
|
import "./chunk-UZ5XLPAW.js";
|
|
87
93
|
import {
|
|
88
|
-
|
|
89
|
-
} from "./chunk-
|
|
94
|
+
frontierWallet
|
|
95
|
+
} from "./chunk-4EKX7Z25.js";
|
|
90
96
|
import {
|
|
91
97
|
desigWallet
|
|
92
98
|
} from "./chunk-SXUVHZCG.js";
|
|
93
99
|
import {
|
|
94
|
-
|
|
95
|
-
} from "./chunk-
|
|
96
|
-
import {
|
|
97
|
-
foxWallet
|
|
98
|
-
} from "./chunk-TG2HN6KW.js";
|
|
99
|
-
import {
|
|
100
|
-
frameWallet
|
|
101
|
-
} from "./chunk-MBFEMLUU.js";
|
|
100
|
+
imTokenWallet
|
|
101
|
+
} from "./chunk-7EOFWORX.js";
|
|
102
102
|
import {
|
|
103
|
-
|
|
104
|
-
} from "./chunk-
|
|
103
|
+
dawnWallet
|
|
104
|
+
} from "./chunk-QJNS6IE4.js";
|
|
105
105
|
import {
|
|
106
106
|
bitKeepWallet,
|
|
107
107
|
bitgetWallet
|
|
108
108
|
} from "./chunk-6FQF7H7H.js";
|
|
109
|
+
import {
|
|
110
|
+
clvWallet
|
|
111
|
+
} from "./chunk-EHO4MJZJ.js";
|
|
109
112
|
import {
|
|
110
113
|
bifrostWallet
|
|
111
114
|
} from "./chunk-LL6T7V77.js";
|
|
115
|
+
import "./chunk-ZOLACFTK.js";
|
|
112
116
|
import {
|
|
113
117
|
bitskiWallet
|
|
114
118
|
} from "./chunk-FL3REGA5.js";
|
|
119
|
+
import {
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-T3RIVRAX.js";
|
|
122
|
+
import "./chunk-6T5K52ZY.js";
|
|
115
123
|
import {
|
|
116
124
|
braveWallet
|
|
117
125
|
} from "./chunk-INSQDNCE.js";
|
|
118
|
-
import {
|
|
119
|
-
clvWallet
|
|
120
|
-
} from "./chunk-EHO4MJZJ.js";
|
|
121
|
-
import {
|
|
122
|
-
argentWallet
|
|
123
|
-
} from "./chunk-LEWQ7DQV.js";
|
|
124
|
-
import "./chunk-ZOLACFTK.js";
|
|
125
|
-
import "./chunk-6T5K52ZY.js";
|
|
126
126
|
export {
|
|
127
127
|
argentWallet,
|
|
128
128
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"@meshconnect/web-link-sdk": "^2.0.1",
|
|
89
89
|
"@funkit/core": "^0.10.12",
|
|
90
90
|
"@funkit/wagmi-tools": "^0.1.11",
|
|
91
|
-
"@moonpay/moonpay-react": "^1.
|
|
92
|
-
"@privy-io/js-sdk-core": "^0.
|
|
91
|
+
"@moonpay/moonpay-react": "^1.6.1",
|
|
92
|
+
"@privy-io/js-sdk-core": "^0.13.5",
|
|
93
93
|
"@types/uuid": "^9.0.1",
|
|
94
94
|
"@vanilla-extract/css": "1.9.1",
|
|
95
95
|
"@vanilla-extract/dynamic": "2.0.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PaymentMethodInfo } from '../FunPayments/FunPaymentMethods';
|
|
3
|
-
interface FunTwoFactorModalProps {
|
|
4
|
-
previewId: string;
|
|
5
|
-
onSuccess: () => void;
|
|
6
|
-
paymentMethodInfo: PaymentMethodInfo | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function FunMeshTwoFactorStep({ previewId, onSuccess, paymentMethodInfo, }: FunTwoFactorModalProps): React.JSX.Element;
|
|
9
|
-
export {};
|