@funkit/connect 6.14.2 → 6.14.3
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 +22 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
- package/dist/hooks/useIsTokenWhitelisted.d.ts +30 -0
- package/dist/index.css +2 -2
- package/dist/index.js +535 -459
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +1 -9
- package/dist/wallets/walletConnectors/index.js +52 -52
- package/package.json +7 -7
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const hasSufficientBalance: (wagmiConfig: UseConfigReturnType, wa
|
|
|
36
36
|
result: boolean;
|
|
37
37
|
tokenTicker: null;
|
|
38
38
|
}>;
|
|
39
|
+
export declare const hasGasToken: (wagmiConfig: UseConfigReturnType, walletAddress: string, chainId: string) => Promise<boolean>;
|
|
39
40
|
/**
|
|
40
41
|
* Generates an env config for checkout estimation
|
|
41
42
|
* So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
|
|
@@ -54,6 +55,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
54
55
|
bypassInit: boolean;
|
|
55
56
|
apiKey?: string;
|
|
56
57
|
nonce?: bigint | undefined;
|
|
58
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
57
59
|
fee?: {
|
|
58
60
|
token?: string;
|
|
59
61
|
amount?: number;
|
|
@@ -61,7 +63,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
61
63
|
recipient: Address;
|
|
62
64
|
} | undefined;
|
|
63
65
|
skipDBAction?: boolean | undefined;
|
|
64
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
65
66
|
};
|
|
66
67
|
export type TokenInfo = {
|
|
67
68
|
symbol: string;
|
|
@@ -139,7 +139,7 @@ export declare const flagConfig: {
|
|
|
139
139
|
readonly if_any: [{
|
|
140
140
|
readonly key: "apiKey";
|
|
141
141
|
readonly type: "isAnyOf";
|
|
142
|
-
readonly values: ["
|
|
142
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
143
143
|
}];
|
|
144
144
|
readonly value: string;
|
|
145
145
|
}];
|
|
@@ -234,14 +234,6 @@ export declare const flagConfig: {
|
|
|
234
234
|
readonly type: "string";
|
|
235
235
|
readonly default_value: string;
|
|
236
236
|
};
|
|
237
|
-
readonly withdrawal_exclude_chains: {
|
|
238
|
-
readonly type: "string";
|
|
239
|
-
readonly default_value: string;
|
|
240
|
-
};
|
|
241
|
-
readonly enable_source_navigation_widget: {
|
|
242
|
-
readonly type: "boolean";
|
|
243
|
-
readonly default_value: false;
|
|
244
|
-
};
|
|
245
237
|
readonly token_transfer_default_tokens: {
|
|
246
238
|
readonly type: "string";
|
|
247
239
|
readonly default_value: "";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
2
5
|
import {
|
|
3
6
|
zealWallet
|
|
4
7
|
} from "./chunk-RNBEDQHF.js";
|
|
@@ -6,89 +9,86 @@ import {
|
|
|
6
9
|
zerionWallet
|
|
7
10
|
} from "./chunk-Q3H3TRBS.js";
|
|
8
11
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
talismanWallet
|
|
13
|
-
} from "./chunk-DRO6WYMM.js";
|
|
14
|
-
import {
|
|
15
|
-
safepalWallet
|
|
16
|
-
} from "./chunk-EC6CHBSZ.js";
|
|
12
|
+
roninWallet
|
|
13
|
+
} from "./chunk-QLVVUKYB.js";
|
|
17
14
|
import {
|
|
18
15
|
tahoWallet
|
|
19
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
17
|
+
import {
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-DRO6WYMM.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-J3LI3FYZ.js";
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-RKPCWHXL.js";
|
|
26
23
|
import {
|
|
27
24
|
tokenaryWallet
|
|
28
25
|
} from "./chunk-D6AOOO5F.js";
|
|
29
26
|
import {
|
|
30
27
|
uniswapWallet
|
|
31
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
+
import {
|
|
30
|
+
trustWallet
|
|
31
|
+
} from "./chunk-RKPCWHXL.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-NP5QGWNL.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
rabbyWallet
|
|
40
|
-
} from "./chunk-BBOM42DL.js";
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
41
38
|
import {
|
|
42
39
|
rainbowWallet
|
|
43
40
|
} from "./chunk-3CICVJUN.js";
|
|
44
41
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
roninWallet
|
|
49
|
-
} from "./chunk-QLVVUKYB.js";
|
|
42
|
+
rabbyWallet
|
|
43
|
+
} from "./chunk-BBOM42DL.js";
|
|
50
44
|
import {
|
|
51
45
|
safeWallet
|
|
52
46
|
} from "./chunk-BQQQL6UD.js";
|
|
53
47
|
import {
|
|
54
48
|
safeheronWallet
|
|
55
49
|
} from "./chunk-RZIO5TFF.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
53
|
+
import {
|
|
54
|
+
ramperWallet
|
|
55
|
+
} from "./chunk-BYXPFMI7.js";
|
|
56
56
|
import {
|
|
57
57
|
subWallet
|
|
58
58
|
} from "./chunk-ZSI5N4VV.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-UYGJO62F.js";
|
|
62
59
|
import {
|
|
63
60
|
mewWallet
|
|
64
61
|
} from "./chunk-OL5ZO7E4.js";
|
|
65
62
|
import {
|
|
66
63
|
oktoWallet
|
|
67
64
|
} from "./chunk-ADIXAKUL.js";
|
|
65
|
+
import {
|
|
66
|
+
kresusWallet
|
|
67
|
+
} from "./chunk-MJXPRJZT.js";
|
|
68
|
+
import {
|
|
69
|
+
metaMaskWallet
|
|
70
|
+
} from "./chunk-UYGJO62F.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
73
|
} from "./chunk-AFXHGWBH.js";
|
|
71
74
|
import {
|
|
72
75
|
omniWallet
|
|
73
76
|
} from "./chunk-7CUY5G6R.js";
|
|
74
|
-
import {
|
|
75
|
-
ledgerWallet
|
|
76
|
-
} from "./chunk-BRBKM4PW.js";
|
|
77
77
|
import {
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-OESTDX6I.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import {
|
|
84
|
-
foxWallet
|
|
85
|
-
} from "./chunk-CNPKISHN.js";
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-362NXNTM.js";
|
|
86
83
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-OLOIXTYS.js";
|
|
89
86
|
import {
|
|
90
87
|
frameWallet
|
|
91
88
|
} from "./chunk-IFON7E6U.js";
|
|
89
|
+
import {
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-COZ7MIQS.js";
|
|
@@ -99,11 +99,14 @@ import {
|
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
107
|
+
import {
|
|
108
|
+
coinbaseWallet
|
|
109
|
+
} from "./chunk-H4IRCEZN.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
112
|
} from "./chunk-KIDC67XJ.js";
|
|
@@ -114,39 +117,36 @@ import {
|
|
|
114
117
|
dawnWallet
|
|
115
118
|
} from "./chunk-HWPKCIBE.js";
|
|
116
119
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
120
|
+
bybitWallet
|
|
121
|
+
} from "./chunk-LNEC5RNX.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-OPAZMNA7.js";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
clvWallet
|
|
127
|
-
} from "./chunk-2GJQ4XZQ.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-CNPKISHN.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
133
|
} from "./chunk-UIASLGLV.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-5W7VDOCL.js";
|
|
134
137
|
import {
|
|
135
138
|
bitverseWallet
|
|
136
139
|
} from "./chunk-3HZRRP4Y.js";
|
|
137
140
|
import {
|
|
138
141
|
bitskiWallet
|
|
139
142
|
} from "./chunk-HS3C7OQV.js";
|
|
140
|
-
import {
|
|
141
|
-
bitgetWallet
|
|
142
|
-
} from "./chunk-5W7VDOCL.js";
|
|
143
|
-
import {
|
|
144
|
-
braveWallet
|
|
145
|
-
} from "./chunk-BPZ2XJO2.js";
|
|
146
|
-
import "./chunk-DNSG5Q7V.js";
|
|
147
143
|
import {
|
|
148
144
|
bloomWallet
|
|
149
145
|
} from "./chunk-S27IADFU.js";
|
|
146
|
+
import {
|
|
147
|
+
clvWallet
|
|
148
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
149
|
+
import "./chunk-DNSG5Q7V.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.3",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"use-debounce": "^10.0.5",
|
|
94
94
|
"uuid": "^9.0.1",
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/
|
|
98
|
-
"@funkit/
|
|
99
|
-
"@funkit/
|
|
100
|
-
"@funkit/
|
|
95
|
+
"@funkit/api-base": "1.12.4",
|
|
96
|
+
"@funkit/chains": "0.4.1",
|
|
97
|
+
"@funkit/fun-relay": "2.0.4",
|
|
98
|
+
"@funkit/core": "2.3.49",
|
|
99
|
+
"@funkit/wagmi-tools": "3.0.72",
|
|
100
|
+
"@funkit/utils": "1.1.12"
|
|
101
101
|
},
|
|
102
102
|
"repository": {
|
|
103
103
|
"type": "git",
|