@funkit/connect 1.2.4 → 1.2.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - a7ce654: fix: bypass gas estimation for zksync source assets
8
+
3
9
  ## 1.2.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1896,6 +1896,7 @@ import {
1896
1896
  formatEther,
1897
1897
  pad
1898
1898
  } from "viem";
1899
+ import { zkSync } from "viem/zksync";
1899
1900
  import { useAccount as useAccount3, useConfig as useConfig2 } from "wagmi";
1900
1901
 
1901
1902
  // src/consts/checkout.ts
@@ -2903,7 +2904,7 @@ function FunkitCheckoutProvider({ children }) {
2903
2904
  };
2904
2905
  let additionalFeesTokenAmount = 0;
2905
2906
  let additionalTimeMs = 0;
2906
- if (newPaymentMethodInfo.paymentMethod === "balance" /* ACCOUNT_BALANCE */ && isWeb3Login) {
2907
+ if (newPaymentMethodInfo.paymentMethod === "balance" /* ACCOUNT_BALANCE */ && isWeb3Login && checkoutItem.selectedSourceAssetInfo.chainId !== zkSync.id.toString()) {
2907
2908
  let gasEstimateResult = BigInt(0);
2908
2909
  const isNativeTokenTransfer = checkoutItem.selectedSourceAssetInfo.address === NATIVE_TOKEN;
2909
2910
  if (isNativeTokenTransfer) {
@@ -4429,7 +4430,7 @@ import {
4429
4430
  getTokenInfo as getTokenInfo2
4430
4431
  } from "@funkit/core";
4431
4432
  import React83, { useCallback as useCallback20, useEffect as useEffect20, useMemo as useMemo22, useState as useState23 } from "react";
4432
- import { arbitrum, mainnet as mainnet3, mantle, zkSync } from "viem/chains";
4433
+ import { arbitrum, mainnet as mainnet3, mantle, zkSync as zkSync2 } from "viem/chains";
4433
4434
 
4434
4435
  // src/hooks/useCheckoutAccountBalanceTransfer.ts
4435
4436
  import { useCallback as useCallback9 } from "react";
@@ -9373,7 +9374,7 @@ function FunCheckoutModal({
9373
9374
  const isCanada = userIpInfo ? userIpInfo.alpha2 === "CA" : false;
9374
9375
  const originalTargetChainId = checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain.toString();
9375
9376
  const moonpayChainId = [
9376
- zkSync.id.toString(),
9377
+ zkSync2.id.toString(),
9377
9378
  mantle.id.toString()
9378
9379
  ].includes(originalTargetChainId) ? arbitrum.id.toString() : originalTargetChainId;
9379
9380
  const wethAddrOnTargetChain = (await getTokenInfo2("weth", moonpayChainId)).toLowerCase();
@@ -16994,7 +16995,7 @@ function setFunkitConnectVersion({ version }) {
16994
16995
  localStorage.setItem(storageKey6, version);
16995
16996
  }
16996
16997
  function getCurrentSdkVersion() {
16997
- return "1.2.4";
16998
+ return "1.2.5";
16998
16999
  }
16999
17000
  function useFingerprint() {
17000
17001
  const fingerprint = useCallback33(() => {
@@ -3,53 +3,50 @@ import {
3
3
  walletConnectWallet
4
4
  } from "./chunk-ASPRR7T3.js";
5
5
  import {
6
- xdefiWallet
7
- } from "./chunk-JNZ3EYC7.js";
6
+ zealWallet
7
+ } from "./chunk-Z5QFIFDP.js";
8
8
  import {
9
9
  zerionWallet
10
10
  } from "./chunk-G4DNQN67.js";
11
11
  import {
12
- talismanWallet
13
- } from "./chunk-R2GYJ376.js";
14
- import {
15
- subWallet
16
- } from "./chunk-WS4EM7AZ.js";
12
+ oneInchWallet
13
+ } from "./chunk-LCPIZUR3.js";
17
14
  import {
18
15
  tahoWallet
19
16
  } from "./chunk-PILSRRPJ.js";
20
17
  import {
21
- tokenPocketWallet
22
- } from "./chunk-UWU574XS.js";
18
+ talismanWallet
19
+ } from "./chunk-R2GYJ376.js";
23
20
  import {
24
21
  tokenaryWallet
25
22
  } from "./chunk-MD5OPFAT.js";
26
23
  import {
27
- uniswapWallet
28
- } from "./chunk-XRSY4JVH.js";
24
+ tokenPocketWallet
25
+ } from "./chunk-UWU574XS.js";
29
26
  import {
30
27
  trustWallet
31
28
  } from "./chunk-BMHNXJZK.js";
32
29
  import {
33
- zealWallet
34
- } from "./chunk-Z5QFIFDP.js";
30
+ uniswapWallet
31
+ } from "./chunk-XRSY4JVH.js";
35
32
  import {
36
- phantomWallet
37
- } from "./chunk-4PTY6XNU.js";
33
+ xdefiWallet
34
+ } from "./chunk-JNZ3EYC7.js";
38
35
  import {
39
- rabbyWallet
40
- } from "./chunk-5SIHQ5GA.js";
36
+ rainbowWallet
37
+ } from "./chunk-EXN2ODSI.js";
41
38
  import {
42
39
  ramperWallet
43
40
  } from "./chunk-XEZPRJPV.js";
44
41
  import {
45
- rainbowWallet
46
- } from "./chunk-EXN2ODSI.js";
42
+ roninWallet
43
+ } from "./chunk-CNTLU4ZV.js";
47
44
  import {
48
45
  safeWallet
49
46
  } from "./chunk-D3DCQ72J.js";
50
47
  import {
51
- roninWallet
52
- } from "./chunk-CNTLU4ZV.js";
48
+ oneKeyWallet
49
+ } from "./chunk-QS2J6MWB.js";
53
50
  import {
54
51
  safeheronWallet
55
52
  } from "./chunk-FQDX6QIP.js";
@@ -57,8 +54,14 @@ import {
57
54
  safepalWallet
58
55
  } from "./chunk-PQSJXOGA.js";
59
56
  import {
60
- kresusWallet
61
- } from "./chunk-X6T3CICZ.js";
57
+ subWallet
58
+ } from "./chunk-WS4EM7AZ.js";
59
+ import {
60
+ ledgerWallet
61
+ } from "./chunk-Y6VY6E3L.js";
62
+ import {
63
+ metaMaskWallet
64
+ } from "./chunk-TUK3HNKY.js";
62
65
  import {
63
66
  mewWallet
64
67
  } from "./chunk-ZCSUP7CX.js";
@@ -72,17 +75,14 @@ import {
72
75
  omniWallet
73
76
  } from "./chunk-SVN7OEQR.js";
74
77
  import {
75
- metaMaskWallet
76
- } from "./chunk-TUK3HNKY.js";
77
- import {
78
- oneInchWallet
79
- } from "./chunk-LCPIZUR3.js";
78
+ phantomWallet
79
+ } from "./chunk-4PTY6XNU.js";
80
80
  import {
81
- oneKeyWallet
82
- } from "./chunk-QS2J6MWB.js";
81
+ rabbyWallet
82
+ } from "./chunk-5SIHQ5GA.js";
83
83
  import {
84
- enkryptWallet
85
- } from "./chunk-SJWHYD45.js";
84
+ foxWallet
85
+ } from "./chunk-TKXMLZXG.js";
86
86
  import {
87
87
  frameWallet
88
88
  } from "./chunk-HXGBE5AH.js";
@@ -99,55 +99,55 @@ import {
99
99
  injectedWallet
100
100
  } from "./chunk-GUJHPWTU.js";
101
101
  import {
102
- ledgerWallet
103
- } from "./chunk-Y6VY6E3L.js";
102
+ kresusWallet
103
+ } from "./chunk-X6T3CICZ.js";
104
104
  import {
105
105
  bybitWallet
106
106
  } from "./chunk-ZBQT5PV6.js";
107
107
  import {
108
- coinbaseWallet
109
- } from "./chunk-O77H3VWW.js";
108
+ clvWallet
109
+ } from "./chunk-ND5YG63V.js";
110
110
  import {
111
111
  coin98Wallet
112
112
  } from "./chunk-3QXMJHL4.js";
113
- import {
114
- bitverseWallet
115
- } from "./chunk-NL4I7WOT.js";
116
113
  import {
117
114
  coreWallet
118
115
  } from "./chunk-32O7HVBJ.js";
116
+ import {
117
+ dawnWallet
118
+ } from "./chunk-QUFNIKMV.js";
119
+ import {
120
+ coinbaseWallet
121
+ } from "./chunk-O77H3VWW.js";
119
122
  import {
120
123
  desigWallet
121
124
  } from "./chunk-P4C7ZHIS.js";
122
125
  import {
123
- dawnWallet
124
- } from "./chunk-QUFNIKMV.js";
126
+ enkryptWallet
127
+ } from "./chunk-SJWHYD45.js";
125
128
  import {
126
- foxWallet
127
- } from "./chunk-TKXMLZXG.js";
129
+ bifrostWallet
130
+ } from "./chunk-AFONKDII.js";
128
131
  import {
129
132
  argentWallet
130
133
  } from "./chunk-NZ5G23JP.js";
131
134
  import {
132
- bitgetWallet
133
- } from "./chunk-OUQ3ZF2W.js";
135
+ bitskiWallet
136
+ } from "./chunk-IMZRCMZR.js";
137
+ import {
138
+ bitverseWallet
139
+ } from "./chunk-NL4I7WOT.js";
134
140
  import {
135
141
  bloomWallet
136
142
  } from "./chunk-NTGZF5BY.js";
137
143
  import {
138
- bitskiWallet
139
- } from "./chunk-IMZRCMZR.js";
140
- import {
141
- bifrostWallet
142
- } from "./chunk-AFONKDII.js";
144
+ bitgetWallet
145
+ } from "./chunk-OUQ3ZF2W.js";
143
146
  import "./chunk-ZOLACFTK.js";
147
+ import "./chunk-ZDU3JFGR.js";
144
148
  import {
145
149
  braveWallet
146
150
  } from "./chunk-KJWMF6GZ.js";
147
- import {
148
- clvWallet
149
- } from "./chunk-ND5YG63V.js";
150
- import "./chunk-ZDU3JFGR.js";
151
151
  import "./chunk-F3VCNZXS.js";
152
152
  export {
153
153
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",