@coin-voyage/crypto 2.4.5-beta.1 → 2.4.6

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.
@@ -3,8 +3,8 @@ import { ChainId, ChainType } from "@coin-voyage/shared/types";
3
3
  import { useWalletConnection } from "@mysten/dapp-kit-react";
4
4
  import { useWallet } from "@solana/wallet-adapter-react";
5
5
  import { useAccount as useAccountInternal } from "wagmi";
6
- import { getConnector } from "../utils/connector";
7
6
  import { extendsWalletAdapter } from "../solana/utils";
7
+ import { getConnector } from "../utils";
8
8
  import { useLastConnector } from "./use-last-connector";
9
9
  const defaultAccount = {
10
10
  chainType: ChainType.EVM,
@@ -86,7 +86,7 @@ export const useUniversalConnect = (props) => {
86
86
  onSuccess?.(undefined, { connector: walletAdapter });
87
87
  break;
88
88
  }
89
- case ChainType.SUI:
89
+ case ChainType.SUI: {
90
90
  const data = await connectWallet({
91
91
  wallet: connector,
92
92
  });
@@ -94,6 +94,7 @@ export const useUniversalConnect = (props) => {
94
94
  onSuccess?.(data, { connector });
95
95
  onSettled?.(data);
96
96
  break;
97
+ }
97
98
  default:
98
99
  throw new Error(`Unsupported chain type: ${chainType}`);
99
100
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coin-voyage/crypto",
3
3
  "description": "Crypto utilities for Coin Voyage",
4
- "version": "2.4.5-beta.1",
4
+ "version": "2.4.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "author": "Lars <lars@coinvoyage.io>",
@@ -97,7 +97,7 @@
97
97
  "@bigmi/core": "0.8.0",
98
98
  "@noble/secp256k1": "1.7.1",
99
99
  "@noble/ed25519": "2.3.0",
100
- "@scure/base": "1.1.1",
100
+ "@scure/base": "2.2.0",
101
101
  "@scure/btc-signer": "1.6.0",
102
102
  "@stablelib/random": "2.0.1",
103
103
  "jsontokens": "4.0.1",
@@ -112,7 +112,7 @@
112
112
  "@solana/wallet-adapter-walletconnect": "0.1.21",
113
113
  "@solana/wallet-adapter-base": "0.9.27",
114
114
  "@solana/wallet-adapter-coinbase": "0.1.23",
115
- "@coin-voyage/shared": "2.4.5-beta.0"
115
+ "@coin-voyage/shared": "2.4.6"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@types/elliptic": "6.4.18"
@@ -124,8 +124,8 @@
124
124
  "@tanstack/react-query": "^5.90.6",
125
125
  "react": "^18 || ^19",
126
126
  "react-dom": "^18 || ^19",
127
- "viem": "^2.41.2",
128
- "wagmi": "^2.19.5"
127
+ "viem": "^2.51.2",
128
+ "wagmi": "^3.6.16"
129
129
  },
130
130
  "overrides": {
131
131
  "@walletconnect/logger": {