@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.
Files changed (29) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/consts/funkit.d.ts +1 -0
  3. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  4. package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
  5. package/dist/hooks/useIsTokenWhitelisted.d.ts +30 -0
  6. package/dist/index.css +2 -2
  7. package/dist/index.js +551 -470
  8. package/dist/utils/checkout.d.ts +2 -1
  9. package/dist/utils/flags/config.d.ts +1 -9
  10. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  15. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/index.js +64 -64
  20. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  29. package/package.json +7 -7
@@ -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: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
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,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-A5N6B5UW.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-UIASLGLV.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-TDAVGY5F.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-5W7VDOCL.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-2STUC6QL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-LNEC5RNX.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-M3NZ6R2E.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-2GJQ4XZQ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-OBOVHCEI.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-KIDC67XJ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-VR4TBQ6S.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-JCHN6A47.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-7QONTUXT.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-CNPKISHN.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-TCAGNB4B.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-VWCLFMWJ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-FKJJQNKX.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-CJGUM55H.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -1,79 +1,76 @@
1
1
  "use client";
2
2
  import {
3
- walletConnectWallet
4
- } from "./chunk-NP5QGWNL.js";
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
- subWallet
13
- } from "./chunk-JWFF4AAL.js";
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
- tokenPocketWallet
19
- } from "./chunk-2L43XSW3.js";
18
+ talismanWallet
19
+ } from "./chunk-DRO6WYMM.js";
20
20
  import {
21
- uniswapWallet
22
- } from "./chunk-LH7BMNFZ.js";
21
+ tokenPocketWallet
22
+ } from "./chunk-J3LI3FYZ.js";
23
23
  import {
24
24
  tokenaryWallet
25
25
  } from "./chunk-D6AOOO5F.js";
26
26
  import {
27
- talismanWallet
28
- } from "./chunk-DRO6WYMM.js";
27
+ uniswapWallet
28
+ } from "./chunk-LH7BMNFZ.js";
29
29
  import {
30
30
  trustWallet
31
- } from "./chunk-VYBAYMP3.js";
31
+ } from "./chunk-RKPCWHXL.js";
32
32
  import {
33
- xdefiWallet
34
- } from "./chunk-BOU4WKRZ.js";
33
+ walletConnectWallet
34
+ } from "./chunk-NP5QGWNL.js";
35
35
  import {
36
- phantomWallet
37
- } from "./chunk-362NXNTM.js";
36
+ oneKeyWallet
37
+ } from "./chunk-SHBUZ7U7.js";
38
38
  import {
39
39
  rainbowWallet
40
- } from "./chunk-2KUBG3S6.js";
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
- ramperWallet
49
- } from "./chunk-BYXPFMI7.js";
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-NT2HYJKW.js";
52
+ } from "./chunk-EC6CHBSZ.js";
56
53
  import {
57
- safeWallet
58
- } from "./chunk-BQQQL6UD.js";
54
+ ramperWallet
55
+ } from "./chunk-BYXPFMI7.js";
59
56
  import {
60
- ledgerWallet
61
- } from "./chunk-BRBKM4PW.js";
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-2HYNUNAS.js";
70
+ } from "./chunk-UYGJO62F.js";
68
71
  import {
69
72
  okxWallet
70
- } from "./chunk-TDIEHTMB.js";
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
- foxWallet
85
- } from "./chunk-7QONTUXT.js";
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-TCAGNB4B.js";
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
- kresusWallet
103
- } from "./chunk-MJXPRJZT.js";
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
- coin98Wallet
112
- } from "./chunk-OBOVHCEI.js";
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-VR4TBQ6S.js";
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
- enkryptWallet
127
- } from "./chunk-OLOIXTYS.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
- } from "./chunk-A5N6B5UW.js";
133
+ } from "./chunk-UIASLGLV.js";
134
134
  import {
135
- bitskiWallet
136
- } from "./chunk-HS3C7OQV.js";
135
+ bitgetWallet
136
+ } from "./chunk-5W7VDOCL.js";
137
137
  import {
138
138
  bitverseWallet
139
139
  } from "./chunk-3HZRRP4Y.js";
140
140
  import {
141
- bitgetWallet
142
- } from "./chunk-TDAVGY5F.js";
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
- braveWallet
149
- } from "./chunk-BPZ2XJO2.js";
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,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-2HYNUNAS.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-UYGJO62F.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-TDIEHTMB.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-AFXHGWBH.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-2KUBG3S6.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3CICVJUN.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-NWIQNBJU.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-QLVVUKYB.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-NT2HYJKW.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-EC6CHBSZ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-JWFF4AAL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-ZSI5N4VV.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-2L43XSW3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-J3LI3FYZ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-VYBAYMP3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-RKPCWHXL.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-SULRQO27.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-Q3H3TRBS.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.1",
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.3",
96
- "@funkit/core": "2.3.48",
97
- "@funkit/wagmi-tools": "3.0.71",
98
- "@funkit/chains": "0.4.0",
99
- "@funkit/fun-relay": "2.0.3",
100
- "@funkit/utils": "1.1.11"
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",