@funkit/connect 6.14.1 → 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 +28 -0
- package/dist/consts/funkit.d.ts +1 -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 +551 -470
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +1 -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 +64 -64
- 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/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,79 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
zerionWallet
|
|
7
|
-
} from "./chunk-SULRQO27.js";
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
8
5
|
import {
|
|
9
6
|
zealWallet
|
|
10
7
|
} from "./chunk-RNBEDQHF.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
zerionWallet
|
|
10
|
+
} from "./chunk-Q3H3TRBS.js";
|
|
11
|
+
import {
|
|
12
|
+
roninWallet
|
|
13
|
+
} from "./chunk-QLVVUKYB.js";
|
|
14
14
|
import {
|
|
15
15
|
tahoWallet
|
|
16
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-DRO6WYMM.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-D6AOOO5F.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
27
|
+
uniswapWallet
|
|
28
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
29
29
|
import {
|
|
30
30
|
trustWallet
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RKPCWHXL.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
walletConnectWallet
|
|
34
|
+
} from "./chunk-NP5QGWNL.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
38
38
|
import {
|
|
39
39
|
rainbowWallet
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
roninWallet
|
|
43
|
-
} from "./chunk-NWIQNBJU.js";
|
|
40
|
+
} from "./chunk-3CICVJUN.js";
|
|
44
41
|
import {
|
|
45
42
|
rabbyWallet
|
|
46
43
|
} from "./chunk-BBOM42DL.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
safeWallet
|
|
46
|
+
} from "./chunk-BQQQL6UD.js";
|
|
50
47
|
import {
|
|
51
48
|
safeheronWallet
|
|
52
49
|
} from "./chunk-RZIO5TFF.js";
|
|
53
50
|
import {
|
|
54
51
|
safepalWallet
|
|
55
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
56
53
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
ramperWallet
|
|
55
|
+
} from "./chunk-BYXPFMI7.js";
|
|
59
56
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
59
|
+
import {
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-OL5ZO7E4.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-ADIXAKUL.js";
|
|
65
|
+
import {
|
|
66
|
+
kresusWallet
|
|
67
|
+
} from "./chunk-MJXPRJZT.js";
|
|
65
68
|
import {
|
|
66
69
|
metaMaskWallet
|
|
67
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-UYGJO62F.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import {
|
|
72
|
-
mewWallet
|
|
73
|
-
} from "./chunk-OL5ZO7E4.js";
|
|
74
|
-
import {
|
|
75
|
-
oneKeyWallet
|
|
76
|
-
} from "./chunk-SHBUZ7U7.js";
|
|
73
|
+
} from "./chunk-AFXHGWBH.js";
|
|
77
74
|
import {
|
|
78
75
|
omniWallet
|
|
79
76
|
} from "./chunk-7CUY5G6R.js";
|
|
@@ -81,73 +78,76 @@ import {
|
|
|
81
78
|
oneInchWallet
|
|
82
79
|
} from "./chunk-OESTDX6I.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-362NXNTM.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-OLOIXTYS.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-IFON7E6U.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import {
|
|
93
|
-
gateWallet
|
|
94
|
-
} from "./chunk-FKJJQNKX.js";
|
|
91
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
|
+
import {
|
|
96
|
+
gateWallet
|
|
97
|
+
} from "./chunk-CJGUM55H.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-2STUC6QL.js";
|
|
107
|
-
import {
|
|
108
|
-
clvWallet
|
|
109
|
-
} from "./chunk-M3NZ6R2E.js";
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
110
104
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
113
107
|
import {
|
|
114
108
|
coinbaseWallet
|
|
115
109
|
} from "./chunk-H4IRCEZN.js";
|
|
110
|
+
import {
|
|
111
|
+
coin98Wallet
|
|
112
|
+
} from "./chunk-KIDC67XJ.js";
|
|
116
113
|
import {
|
|
117
114
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-JCHN6A47.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-HWPKCIBE.js";
|
|
119
|
+
import {
|
|
120
|
+
bybitWallet
|
|
121
|
+
} from "./chunk-LNEC5RNX.js";
|
|
122
122
|
import {
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-OPAZMNA7.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
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-UIASLGLV.js";
|
|
134
134
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-5W7VDOCL.js";
|
|
137
137
|
import {
|
|
138
138
|
bitverseWallet
|
|
139
139
|
} from "./chunk-3HZRRP4Y.js";
|
|
140
140
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
141
|
+
bitskiWallet
|
|
142
|
+
} from "./chunk-HS3C7OQV.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
clvWallet
|
|
148
|
+
} from "./chunk-2GJQ4XZQ.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.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/api-base": "1.12.
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/
|
|
98
|
-
"@funkit/
|
|
99
|
-
"@funkit/
|
|
100
|
-
"@funkit/utils": "1.1.
|
|
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",
|