@funkit/connect 6.14.18 → 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 +9 -0
- package/dist/hooks/track/CheckoutModalEvent.d.ts +0 -1
- package/dist/index.css +5 -5
- package/dist/index.js +1840 -2037
- package/dist/providers/FunkitMoonpayProvider.d.ts +0 -5
- package/dist/utils/checkout.d.ts +0 -1
- package/dist/wallets/walletConnectors/index.js +70 -70
- package/package.json +3 -3
- package/dist/consts/moonpay.d.ts +0 -10
- package/dist/utils/moonpay.d.ts +0 -10
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
export declare function FunkitMoonpayProvider({ children, }: {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
debug: boolean;
|
|
5
|
-
}): React.JSX.Element;
|
|
6
1
|
export interface UserIpInfoFromMoonpay {
|
|
7
2
|
/** https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
|
|
8
3
|
alpha2: 'AU' | 'CA' | 'US' | string;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -77,7 +77,6 @@ export type TokenInfo = {
|
|
|
77
77
|
* @returns List of tokenItem objects
|
|
78
78
|
*/
|
|
79
79
|
export declare function decorateTokenList(tokensChainMap: Record<string, Set<string>>, targetChainId: string, apiKey: string): Promise<TokenInfo[]>;
|
|
80
|
-
export declare function formatTokenAmountForMoonpay(amount: number, mpCurrencyCode: string): string;
|
|
81
80
|
export declare function getTimeFromNowSeconds(startTimeMs: number, durationMs: number): number;
|
|
82
81
|
export declare function getCheckoutReceivedAmount({ config, quote, }: {
|
|
83
82
|
config: FunkitCheckoutConfig | ServerCheckoutConfig;
|
|
@@ -1,152 +1,152 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-RNBEDQHF.js";
|
|
5
2
|
import {
|
|
6
3
|
zerionWallet
|
|
7
4
|
} from "./chunk-Q3H3TRBS.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
walletConnectWallet
|
|
7
|
+
} from "./chunk-NP5QGWNL.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
zealWallet
|
|
10
|
+
} from "./chunk-RNBEDQHF.js";
|
|
14
11
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
talismanWallet
|
|
13
|
+
} from "./chunk-DRO6WYMM.js";
|
|
17
14
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
15
|
+
ledgerWallet
|
|
16
|
+
} from "./chunk-BRBKM4PW.js";
|
|
20
17
|
import {
|
|
21
18
|
tokenaryWallet
|
|
22
19
|
} from "./chunk-D6AOOO5F.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
tahoWallet
|
|
22
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
trustWallet
|
|
25
|
+
} from "./chunk-RKPCWHXL.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
tokenPocketWallet
|
|
28
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
29
|
+
import {
|
|
30
|
+
uniswapWallet
|
|
31
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
32
32
|
import {
|
|
33
33
|
xdefiWallet
|
|
34
34
|
} from "./chunk-BOU4WKRZ.js";
|
|
35
|
-
import {
|
|
36
|
-
ramperWallet
|
|
37
|
-
} from "./chunk-BYXPFMI7.js";
|
|
38
|
-
import {
|
|
39
|
-
roninWallet
|
|
40
|
-
} from "./chunk-QLVVUKYB.js";
|
|
41
35
|
import {
|
|
42
36
|
rabbyWallet
|
|
43
37
|
} from "./chunk-BBOM42DL.js";
|
|
44
38
|
import {
|
|
45
39
|
rainbowWallet
|
|
46
40
|
} from "./chunk-3CICVJUN.js";
|
|
41
|
+
import {
|
|
42
|
+
ramperWallet
|
|
43
|
+
} from "./chunk-BYXPFMI7.js";
|
|
44
|
+
import {
|
|
45
|
+
subWallet
|
|
46
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
47
47
|
import {
|
|
48
48
|
safeWallet
|
|
49
49
|
} from "./chunk-BQQQL6UD.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-RZIO5TFF.js";
|
|
53
56
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
roninWallet
|
|
58
|
+
} from "./chunk-QLVVUKYB.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-OL5ZO7E4.js";
|
|
59
62
|
import {
|
|
60
63
|
kresusWallet
|
|
61
64
|
} from "./chunk-MJXPRJZT.js";
|
|
62
65
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
imTokenWallet
|
|
67
|
+
} from "./chunk-COZ7MIQS.js";
|
|
65
68
|
import {
|
|
66
69
|
omniWallet
|
|
67
70
|
} from "./chunk-7CUY5G6R.js";
|
|
68
71
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import {
|
|
72
|
-
ledgerWallet
|
|
73
|
-
} from "./chunk-BRBKM4PW.js";
|
|
72
|
+
oktoWallet
|
|
73
|
+
} from "./chunk-ADIXAKUL.js";
|
|
74
74
|
import {
|
|
75
75
|
oneKeyWallet
|
|
76
76
|
} from "./chunk-SHBUZ7U7.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-OESTDX6I.js";
|
|
80
80
|
import {
|
|
81
81
|
phantomWallet
|
|
82
82
|
} from "./chunk-362NXNTM.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
desigWallet
|
|
85
|
+
} from "./chunk-OPAZMNA7.js";
|
|
86
86
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-IFON7E6U.js";
|
|
89
89
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
injectedWallet
|
|
94
|
+
} from "./chunk-XWUJE7MW.js";
|
|
95
95
|
import {
|
|
96
96
|
gateWallet
|
|
97
97
|
} from "./chunk-CJGUM55H.js";
|
|
98
|
-
import {
|
|
99
|
-
mewWallet
|
|
100
|
-
} from "./chunk-OL5ZO7E4.js";
|
|
101
98
|
import {
|
|
102
99
|
metaMaskWallet
|
|
103
100
|
} from "./chunk-UYGJO62F.js";
|
|
101
|
+
import {
|
|
102
|
+
okxWallet
|
|
103
|
+
} from "./chunk-AFXHGWBH.js";
|
|
104
|
+
import {
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
104
107
|
import {
|
|
105
108
|
coinbaseWallet
|
|
106
109
|
} from "./chunk-H4IRCEZN.js";
|
|
107
110
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
111
|
+
dawnWallet
|
|
112
|
+
} from "./chunk-HWPKCIBE.js";
|
|
113
|
+
import {
|
|
114
|
+
bloomWallet
|
|
115
|
+
} from "./chunk-S27IADFU.js";
|
|
110
116
|
import {
|
|
111
117
|
enkryptWallet
|
|
112
118
|
} from "./chunk-OLOIXTYS.js";
|
|
113
119
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import {
|
|
117
|
-
clvWallet
|
|
118
|
-
} from "./chunk-2GJQ4XZQ.js";
|
|
119
|
-
import {
|
|
120
|
-
desigWallet
|
|
121
|
-
} from "./chunk-OPAZMNA7.js";
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-JCHN6A47.js";
|
|
122
122
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
coin98Wallet
|
|
124
|
+
} from "./chunk-KIDC67XJ.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-CNPKISHN.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-UIASLGLV.js";
|
|
134
134
|
import {
|
|
135
135
|
bitskiWallet
|
|
136
136
|
} from "./chunk-HS3C7OQV.js";
|
|
137
137
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
138
|
+
bitgetWallet
|
|
139
|
+
} from "./chunk-5W7VDOCL.js";
|
|
140
140
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
141
|
+
clvWallet
|
|
142
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
143
|
+
import {
|
|
144
|
+
bybitWallet
|
|
145
|
+
} from "./chunk-LNEC5RNX.js";
|
|
143
146
|
import "./chunk-DNSG5Q7V.js";
|
|
144
147
|
import {
|
|
145
148
|
bitverseWallet
|
|
146
149
|
} from "./chunk-3HZRRP4Y.js";
|
|
147
|
-
import {
|
|
148
|
-
bloomWallet
|
|
149
|
-
} from "./chunk-S27IADFU.js";
|
|
150
150
|
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
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",
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"@funkit/api-base": "1.12.12",
|
|
103
103
|
"@funkit/chains": "0.4.2",
|
|
104
104
|
"@funkit/core": "2.3.57",
|
|
105
|
-
"@funkit/
|
|
105
|
+
"@funkit/fun-relay": "2.1.7",
|
|
106
106
|
"@funkit/utils": "1.1.14",
|
|
107
|
-
"@funkit/
|
|
107
|
+
"@funkit/wagmi-tools": "3.0.80"
|
|
108
108
|
},
|
|
109
109
|
"repository": {
|
|
110
110
|
"type": "git",
|
package/dist/consts/moonpay.d.ts
DELETED
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
|
-
};
|