@funkit/connect 1.4.2 → 2.0.0

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,38 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 4c467f2: feat: update minimum node version to v18, use native fetch
8
+
9
+ ### Minor Changes
10
+
11
+ - d50a369: feat: dydx chain and usdc checkout compatibility
12
+
13
+ ### Patch Changes
14
+
15
+ - d50a369: feat: checkout history safeguard across versions
16
+ - Updated dependencies [d50a369]
17
+ - Updated dependencies [d50a369]
18
+ - Updated dependencies [4c467f2]
19
+ - @funkit/core@2.0.0
20
+ - @funkit/api-base@1.0.0
21
+ - @funkit/wagmi-tools@3.0.0
22
+
23
+ ## 1.5.0-next.0
24
+
25
+ ### Minor Changes
26
+
27
+ - 24dbc49: fix: Update minimum node version to v18, use native fetch
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [24dbc49]
32
+ - @funkit/wagmi-tools@2.1.0-next.0
33
+ - @funkit/api-base@0.1.0-next.0
34
+ - @funkit/core@1.1.0-next.0
35
+
3
36
  ## 1.4.2
4
37
 
5
38
  ### Patch Changes
@@ -11,6 +11,7 @@ export interface FunkitCheckoutActionParams {
11
11
  functionArgs: any[];
12
12
  value?: bigint;
13
13
  }
14
+ export type DydxAddress = `dydx${string}`;
14
15
  export interface FunkitCheckoutConfig {
15
16
  /** ****************************
16
17
  * Api-related configurations *
@@ -28,7 +29,7 @@ export interface FunkitCheckoutConfig {
28
29
  /** Timestamp (in milliseconds) after which the checkout should not be performed, and the funds will become rescuable. Min: 300000 (5 mins), Max: 3600000 (1 hour). **/
29
30
  expirationTimestampMs: number;
30
31
  /** Custom recipient address of the checkout. If specified, a different checkout flow will be executed. It is not recommended to set this unless the Fun.xyz team advises it. **/
31
- customRecipient?: Address;
32
+ customRecipient?: Address | DydxAddress;
32
33
  /** ****************************************
33
34
  * Checkout ModalUI-related configurations *
34
35
  *******************************************/
@@ -3761,6 +3761,39 @@ export declare const getDefaultChains: () => ({
3761
3761
  formatters?: undefined;
3762
3762
  serializers?: import("viem").ChainSerializers<undefined> | undefined;
3763
3763
  fees?: import("viem").ChainFees<undefined> | undefined;
3764
+ } | {
3765
+ id: number;
3766
+ name: string;
3767
+ nativeCurrency: {
3768
+ symbol: string;
3769
+ decimals: number;
3770
+ name: string;
3771
+ };
3772
+ rpcUrls: {
3773
+ default: {
3774
+ http: string[];
3775
+ };
3776
+ };
3777
+ blockExplorers: {
3778
+ default: {
3779
+ name: string;
3780
+ url: string;
3781
+ apiUrl: string;
3782
+ };
3783
+ };
3784
+ contracts: {
3785
+ ensRegistry: {
3786
+ address: `0x${string}`;
3787
+ };
3788
+ ensUniversalResolver: {
3789
+ address: `0x${string}`;
3790
+ blockCreated: number;
3791
+ };
3792
+ multicall3: {
3793
+ address: `0x${string}`;
3794
+ blockCreated: number;
3795
+ };
3796
+ };
3764
3797
  } | {
3765
3798
  blockExplorers: {
3766
3799
  readonly default: {
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ // src/components/FunkitProvider/chainIcons/dydx.svg
3
+ var dydx_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgzIiBoZWlnaHQ9IjE4MyIgdmlld0JveD0iMCAwIDE4MyAxODMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjEiIHk9IjEiIHdpZHRoPSIxODEiIGhlaWdodD0iMTgxIiByeD0iMzciIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcikiLz4KPHBhdGggZD0iTTExNS4zMTYgNDNMNDUgMTQxLjk5Mkg2Ni41ODg1TDEzNy4yNjkgNDNIMTE1LjMxNloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik02OC44Mzc1IDQzTDg5LjUyNjUgNzIuMTY5Nkw3OC43MzIyIDg4LjA4MDRMNDYuNzk5MiA0M0g2OC44Mzc1WiIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyKSIvPgo8cGF0aCBkPSJNMTE3LjQxMSAxNDJMOTQuNDczNyAxMDkuNzM3TDEwNS4yNjggOTQuMjY3OUwxMzkgMTQySDExNy40MTFaIiBmaWxsPSJ1cmwoI3BhaW50Ml9saW5lYXIpIi8+CjxyZWN0IHg9IjEiIHk9IjEiIHdpZHRoPSIxODEiIGhlaWdodD0iMTgxIiByeD0iMzciIHN0cm9rZT0iIzJEMkQzRCIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXIiIHgxPSIxNDcuNSIgeTE9Ii0yNC41IiB4Mj0iMTAzIiB5Mj0iMTYwLjUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzJDMkMzRCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxYTFhMjciLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyIiB4MT0iNjMuODkwMSIgeTE9IjQ5LjE4NzUiIHgyPSI5Mi44OTUxIiB5Mj0iODQuODIwNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuNTUiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDJfbGluZWFyIiB4MT0iMTIyLjM1OSIgeTE9IjEzNC40ODciIHgyPSI4Ni43ODczIiB5Mj0iODUuNjg2MyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNjk2NkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzY5NjZGRiIgc3RvcC1vcGFjaXR5PSIwLjM2Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";
4
+ export {
5
+ dydx_default as default
6
+ };
package/dist/index.js CHANGED
@@ -944,6 +944,7 @@ function useFunkitConfig() {
944
944
  }
945
945
 
946
946
  // src/components/FunkitProvider/provideFunkitConnectChains.ts
947
+ import { DYDX_MAINNET_CHAIN_ID } from "@funkit/core";
947
948
  var arbitrumIcon = {
948
949
  iconBackground: "#96bedc",
949
950
  iconUrl: async () => (await import("./arbitrum-U5YFKKLG.js")).default
@@ -968,6 +969,10 @@ var cronosIcon = {
968
969
  iconBackground: "#002D74",
969
970
  iconUrl: async () => (await import("./cronos-2XRBT4RE.js")).default
970
971
  };
972
+ var dydxIcon = {
973
+ iconBackground: "#2C2C3D",
974
+ iconUrl: async () => (await import("./dydx-G2CHDMSF.js")).default
975
+ };
971
976
  var ethereumIcon = {
972
977
  iconBackground: "#484c50",
973
978
  iconUrl: async () => (await import("./ethereum-H5XMTX4V.js")).default
@@ -1031,6 +1036,7 @@ var chainMetadataByName = {
1031
1036
  bscTestnet: { chainId: 97, ...bscIcon },
1032
1037
  cronos: { chainId: 25, ...cronosIcon },
1033
1038
  cronosTestnet: { chainId: 338, ...cronosIcon },
1039
+ dydxMainnet: { chainId: DYDX_MAINNET_CHAIN_ID, ...dydxIcon },
1034
1040
  goerli: { chainId: 5, ...ethereumIcon },
1035
1041
  hardhat: { chainId: 31337, ...hardhatIcon },
1036
1042
  holesky: { chainId: 17e3, ...ethereumIcon },
@@ -2558,6 +2564,18 @@ function normalizeSmallUsdNumber(usdNumber) {
2558
2564
  return parsedNumber;
2559
2565
  }
2560
2566
 
2567
+ // src/utils/isDydxAddress.ts
2568
+ function verifyIsBech32(address) {
2569
+ try {
2570
+ } catch (error) {
2571
+ return error;
2572
+ }
2573
+ return void 0;
2574
+ }
2575
+ function isDydxAddress(address) {
2576
+ return address.startsWith("dydx1") && verifyIsBech32(address) === void 0;
2577
+ }
2578
+
2561
2579
  // src/utils/checkout.ts
2562
2580
  var CHECKOUT_EXPIRATION_TIMESTAMP_UPPERBOUND = 36e5;
2563
2581
  var CHECKOUT_EXPIRATION_TIMESTAMP_LOWERBOUND = 3e5;
@@ -2567,7 +2585,7 @@ var DUMMY_TRANSFER_PARAMS = {
2567
2585
  toAddress: "0x000000000000000000000000000000000000dEaD",
2568
2586
  tokenAmount: 5
2569
2587
  };
2570
- function validateCheckoutConfig(config, isUserLoggedIn) {
2588
+ function validateCheckoutConfig(config) {
2571
2589
  var _a, _b;
2572
2590
  logger.log("validateCheckoutConfig_input", config);
2573
2591
  if (!config.checkoutItemTitle) {
@@ -2619,7 +2637,19 @@ function validateCheckoutConfig(config, isUserLoggedIn) {
2619
2637
  message: `Invalid targetChain configuration: Unsupported chain id ${config.targetChain} for checkout.`
2620
2638
  };
2621
2639
  }
2622
- if (config.customRecipient && !isAddress(config.customRecipient)) {
2640
+ const chainCheckoutAssetWhitelist = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO3[config.targetChain].checkoutAssetWhitelist || [];
2641
+ if ((chainCheckoutAssetWhitelist == null ? void 0 : chainCheckoutAssetWhitelist[0]) !== "*" && !chainCheckoutAssetWhitelist.some(
2642
+ (asset) => {
2643
+ var _a2;
2644
+ return asset.toLowerCase() === ((_a2 = config.targetAsset) == null ? void 0 : _a2.toLowerCase());
2645
+ }
2646
+ )) {
2647
+ return {
2648
+ isValid: false,
2649
+ message: `Invalid targetAsset ${config.targetAsset} for targetChain ${config.targetChain}.`
2650
+ };
2651
+ }
2652
+ if (config.customRecipient && !isAddress(config.customRecipient) && !isDydxAddress(config.customRecipient)) {
2623
2653
  return {
2624
2654
  isValid: false,
2625
2655
  message: `Invalid customRecipient configuration: Has to be a valid address.`
@@ -2918,7 +2948,12 @@ function FunkitCheckoutProvider({ children }) {
2918
2948
  newCheckoutHistoryList = singleCheckoutHistory ? [singleCheckoutHistory] : [];
2919
2949
  }
2920
2950
  setCheckoutHistoryList(
2921
- newCheckoutHistoryList.filter((item) => item.state !== CheckoutState3.CANCELLED).sort((a, b) => b.createdTimeMs - a.createdTimeMs)
2951
+ newCheckoutHistoryList.filter(
2952
+ (item) => {
2953
+ var _a, _b;
2954
+ return item.state !== CheckoutState3.CANCELLED && !!((_a = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5) == null ? void 0 : _a[item.fromChainId]) && !!((_b = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5) == null ? void 0 : _b[item.toChainId]);
2955
+ }
2956
+ ).sort((a, b) => b.createdTimeMs - a.createdTimeMs)
2922
2957
  );
2923
2958
  setIsCheckoutHistoryInited(true);
2924
2959
  } catch (err) {
@@ -3599,13 +3634,15 @@ function FunkitCheckoutProvider({ children }) {
3599
3634
  [
3600
3635
  funkitConfig.apiKey,
3601
3636
  _getAndValidateCheckoutItemByCheckoutId,
3602
- isWeb3Login,
3603
3637
  isWeb2Login,
3638
+ isWeb3Login,
3604
3639
  walletAddress,
3605
3640
  _generateClientMetadataForBackend,
3606
3641
  activeCheckouts,
3607
3642
  triggerRefreshSymbol,
3608
- _generateSignedBatchOperation
3643
+ connector,
3644
+ _generateSignedBatchOperation,
3645
+ switchChainAsync
3609
3646
  ]
3610
3647
  );
3611
3648
  const contextValue = {
@@ -3781,10 +3818,7 @@ var useFunkitCheckout = (props) => {
3781
3818
  ...propsConfig || {},
3782
3819
  ...inputConfig || {}
3783
3820
  };
3784
- const validationResult = validateCheckoutConfig(
3785
- combinedConfig,
3786
- isUserLoggedIn
3787
- );
3821
+ const validationResult = validateCheckoutConfig(combinedConfig);
3788
3822
  onValidation == null ? void 0 : onValidation(validationResult);
3789
3823
  if (validationResult.isValid) {
3790
3824
  const finalConfig = combinedConfig;
@@ -3794,15 +3828,13 @@ var useFunkitCheckout = (props) => {
3794
3828
  );
3795
3829
  if (isUserLoggedIn || !!finalConfig.customRecipient) {
3796
3830
  setPendingCheckoutConfig(void 0);
3797
- if (isUserLoggedIn) {
3798
- if (!((_b = (_a = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5) == null ? void 0 : _a[finalConfig.targetChain]) == null ? void 0 : _b.isMainnet)) {
3799
- onErrorWrapper == null ? void 0 : onErrorWrapper({
3800
- type: "error",
3801
- message: "Unable to begin a new checkout: Insufficient funds on testnet account",
3802
- metadata: {}
3803
- });
3804
- return;
3805
- }
3831
+ if (isUserLoggedIn && !((_b = (_a = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5) == null ? void 0 : _a[finalConfig.targetChain]) == null ? void 0 : _b.isMainnet)) {
3832
+ onErrorWrapper == null ? void 0 : onErrorWrapper({
3833
+ type: "error",
3834
+ message: "Unable to begin a new checkout: Insufficient funds on testnet account",
3835
+ metadata: {}
3836
+ });
3837
+ return;
3806
3838
  }
3807
3839
  onOpenWrapper == null ? void 0 : onOpenWrapper(newId);
3808
3840
  } else {
@@ -4657,6 +4689,7 @@ var EditIcon = ({ size = "24" }) => /* @__PURE__ */ React32.createElement("svg",
4657
4689
 
4658
4690
  // src/components/FunCheckoutModal/FunCheckoutModal.tsx
4659
4691
  import {
4692
+ dydxChain,
4660
4693
  FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8,
4661
4694
  getTokenInfo as getTokenInfo2
4662
4695
  } from "@funkit/core";
@@ -9666,7 +9699,8 @@ function FunCheckoutModal({
9666
9699
  const originalTargetChainId = checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain.toString();
9667
9700
  const moonpayChainId = [
9668
9701
  zkSync2.id.toString(),
9669
- mantle2.id.toString()
9702
+ mantle2.id.toString(),
9703
+ dydxChain.id.toString()
9670
9704
  ].includes(originalTargetChainId) ? arbitrum.id.toString() : originalTargetChainId;
9671
9705
  const wethAddrOnTargetChain = (await getTokenInfo2("weth", moonpayChainId)).toLowerCase();
9672
9706
  const isTargetAssetEthOrWeth = [NATIVE_TOKEN, wethAddrOnTargetChain].includes(
@@ -15984,7 +16018,7 @@ function setFunkitConnectVersion({ version }) {
15984
16018
  localStorage.setItem(storageKey6, version);
15985
16019
  }
15986
16020
  function getCurrentSdkVersion() {
15987
- return "1.4.2";
16021
+ return "2.0.0";
15988
16022
  }
15989
16023
  function useFingerprint() {
15990
16024
  const fingerprint = useCallback33(() => {
@@ -13,7 +13,7 @@ export declare const DUMMY_TRANSFER_PARAMS: {
13
13
  * @param config - The checkout configuration to validate.
14
14
  * @returns An object indicating whether the configuration is valid and a message if it is not.
15
15
  */
16
- export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>, isUserLoggedIn: boolean): {
16
+ export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>): {
17
17
  isValid: boolean;
18
18
  message: string;
19
19
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Replicated from @dydxprotocol/v4-client-js https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-js/src/lib/validation.ts#L145C1-L158
3
+ * Not importing the sdk in the interest of space.
4
+ */
5
+ export declare function verifyIsBech32(address: string): Error | undefined;
6
+ export declare function isDydxAddress(address: string): boolean;
@@ -1,31 +1,31 @@
1
1
  "use client";
2
- import {
3
- zealWallet
4
- } from "./chunk-Z5QFIFDP.js";
5
2
  import {
6
3
  zerionWallet
7
4
  } from "./chunk-G4DNQN67.js";
5
+ import {
6
+ zealWallet
7
+ } from "./chunk-Z5QFIFDP.js";
8
8
  import {
9
9
  walletConnectWallet
10
10
  } from "./chunk-ASPRR7T3.js";
11
11
  import {
12
- tokenPocketWallet
13
- } from "./chunk-UWU574XS.js";
12
+ roninWallet
13
+ } from "./chunk-CNTLU4ZV.js";
14
14
  import {
15
- subWallet
16
- } from "./chunk-WS4EM7AZ.js";
15
+ safeheronWallet
16
+ } from "./chunk-FQDX6QIP.js";
17
17
  import {
18
- tahoWallet
19
- } from "./chunk-PILSRRPJ.js";
18
+ tokenPocketWallet
19
+ } from "./chunk-UWU574XS.js";
20
20
  import {
21
21
  talismanWallet
22
22
  } from "./chunk-R2GYJ376.js";
23
- import {
24
- trustWallet
25
- } from "./chunk-BMHNXJZK.js";
26
23
  import {
27
24
  tokenaryWallet
28
25
  } from "./chunk-MD5OPFAT.js";
26
+ import {
27
+ trustWallet
28
+ } from "./chunk-BMHNXJZK.js";
29
29
  import {
30
30
  uniswapWallet
31
31
  } from "./chunk-XRSY4JVH.js";
@@ -33,62 +33,62 @@ import {
33
33
  xdefiWallet
34
34
  } from "./chunk-JNZ3EYC7.js";
35
35
  import {
36
- phantomWallet
37
- } from "./chunk-4PTY6XNU.js";
36
+ rainbowWallet
37
+ } from "./chunk-EXN2ODSI.js";
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-5SIHQ5GA.js";
41
- import {
42
- rainbowWallet
43
- } from "./chunk-EXN2ODSI.js";
44
41
  import {
45
42
  ramperWallet
46
43
  } from "./chunk-XEZPRJPV.js";
47
- import {
48
- roninWallet
49
- } from "./chunk-CNTLU4ZV.js";
50
44
  import {
51
45
  safeWallet
52
46
  } from "./chunk-D3DCQ72J.js";
53
47
  import {
54
- safeheronWallet
55
- } from "./chunk-FQDX6QIP.js";
48
+ oneInchWallet
49
+ } from "./chunk-LCPIZUR3.js";
56
50
  import {
57
51
  safepalWallet
58
52
  } from "./chunk-PQSJXOGA.js";
59
53
  import {
60
- ledgerWallet
61
- } from "./chunk-Y6VY6E3L.js";
54
+ subWallet
55
+ } from "./chunk-WS4EM7AZ.js";
62
56
  import {
63
- metaMaskWallet
64
- } from "./chunk-TUK3HNKY.js";
57
+ tahoWallet
58
+ } from "./chunk-PILSRRPJ.js";
59
+ import {
60
+ injectedWallet
61
+ } from "./chunk-GUJHPWTU.js";
65
62
  import {
66
63
  mewWallet
67
64
  } from "./chunk-ZCSUP7CX.js";
68
65
  import {
69
- oktoWallet
70
- } from "./chunk-WKHTUEF5.js";
71
- import {
72
- okxWallet
73
- } from "./chunk-5ZGE5SN5.js";
66
+ metaMaskWallet
67
+ } from "./chunk-TUK3HNKY.js";
74
68
  import {
75
69
  omniWallet
76
70
  } from "./chunk-SVN7OEQR.js";
77
71
  import {
78
- oneInchWallet
79
- } from "./chunk-LCPIZUR3.js";
72
+ okxWallet
73
+ } from "./chunk-5ZGE5SN5.js";
74
+ import {
75
+ oktoWallet
76
+ } from "./chunk-WKHTUEF5.js";
80
77
  import {
81
78
  oneKeyWallet
82
79
  } from "./chunk-QS2J6MWB.js";
80
+ import {
81
+ phantomWallet
82
+ } from "./chunk-4PTY6XNU.js";
83
+ import {
84
+ enkryptWallet
85
+ } from "./chunk-SJWHYD45.js";
83
86
  import {
84
87
  frameWallet
85
88
  } from "./chunk-HXGBE5AH.js";
86
89
  import {
87
90
  frontierWallet
88
91
  } from "./chunk-LOEDYNWO.js";
89
- import {
90
- foxWallet
91
- } from "./chunk-TKXMLZXG.js";
92
92
  import {
93
93
  imTokenWallet
94
94
  } from "./chunk-5MVV7OVS.js";
@@ -96,58 +96,58 @@ import {
96
96
  gateWallet
97
97
  } from "./chunk-QGQISKXF.js";
98
98
  import {
99
- injectedWallet
100
- } from "./chunk-GUJHPWTU.js";
99
+ ledgerWallet
100
+ } from "./chunk-Y6VY6E3L.js";
101
101
  import {
102
102
  kresusWallet
103
103
  } from "./chunk-X6T3CICZ.js";
104
104
  import {
105
- bitgetWallet
106
- } from "./chunk-OUQ3ZF2W.js";
105
+ bybitWallet
106
+ } from "./chunk-ZBQT5PV6.js";
107
107
  import {
108
108
  coin98Wallet
109
109
  } from "./chunk-3QXMJHL4.js";
110
110
  import {
111
- bybitWallet
112
- } from "./chunk-ZBQT5PV6.js";
111
+ bitgetWallet
112
+ } from "./chunk-OUQ3ZF2W.js";
113
113
  import {
114
114
  coreWallet
115
115
  } from "./chunk-32O7HVBJ.js";
116
116
  import {
117
117
  coinbaseWallet
118
118
  } from "./chunk-O77H3VWW.js";
119
- import {
120
- desigWallet
121
- } from "./chunk-P4C7ZHIS.js";
122
- import {
123
- enkryptWallet
124
- } from "./chunk-SJWHYD45.js";
125
119
  import {
126
120
  dawnWallet
127
121
  } from "./chunk-QUFNIKMV.js";
128
122
  import {
129
- argentWallet
130
- } from "./chunk-NZ5G23JP.js";
123
+ desigWallet
124
+ } from "./chunk-P4C7ZHIS.js";
125
+ import {
126
+ foxWallet
127
+ } from "./chunk-TKXMLZXG.js";
131
128
  import {
132
129
  bifrostWallet
133
130
  } from "./chunk-AFONKDII.js";
134
131
  import {
135
132
  bitskiWallet
136
133
  } from "./chunk-IMZRCMZR.js";
134
+ import {
135
+ argentWallet
136
+ } from "./chunk-NZ5G23JP.js";
137
+ import {
138
+ bitverseWallet
139
+ } from "./chunk-NL4I7WOT.js";
137
140
  import {
138
141
  bloomWallet
139
142
  } from "./chunk-NTGZF5BY.js";
140
143
  import "./chunk-ZOLACFTK.js";
141
144
  import {
142
- bitverseWallet
143
- } from "./chunk-NL4I7WOT.js";
145
+ braveWallet
146
+ } from "./chunk-KJWMF6GZ.js";
144
147
  import {
145
148
  clvWallet
146
149
  } from "./chunk-ND5YG63V.js";
147
150
  import "./chunk-ZDU3JFGR.js";
148
- import {
149
- braveWallet
150
- } from "./chunk-KJWMF6GZ.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.4.2",
3
+ "version": "2.0.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -20,7 +20,7 @@
20
20
  "src/css/reset.css.ts"
21
21
  ],
22
22
  "engines": {
23
- "node": ">=12.4"
23
+ "node": ">=18"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
@@ -72,14 +72,15 @@
72
72
  "@vanilla-extract/dynamic": "2.1.0",
73
73
  "@vanilla-extract/sprinkles": "1.6.1",
74
74
  "@wagmi/core": "^2.10.2",
75
+ "bech32": "^2.0.0",
75
76
  "clsx": "2.1.1",
76
77
  "qrcode": "1.5.3",
77
78
  "react-remove-scroll": "2.5.7",
78
79
  "ua-parser-js": "^1.0.37",
79
80
  "uuid": "^9.0.1",
80
- "@funkit/api-base": "0.0.6",
81
- "@funkit/wagmi-tools": "2.0.5",
82
- "@funkit/core": "1.0.20"
81
+ "@funkit/api-base": "1.0.0",
82
+ "@funkit/core": "2.0.0",
83
+ "@funkit/wagmi-tools": "3.0.0"
83
84
  },
84
85
  "repository": {
85
86
  "type": "git",