@rash2x/bridge-widget 0.5.1 → 0.5.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.
package/README.md CHANGED
@@ -43,8 +43,30 @@ npm install wagmi ethers connectkit
43
43
  # For TON
44
44
  npm install @tonconnect/ui-react @ton/core @ton/crypto @ton/ton
45
45
 
46
- # For Tron
47
- npm install @tronweb3/tronwallet-adapter-react-hooks @tronweb3/tronwallet-adapters tronweb @walletconnect/universal-provider @walletconnect/modal
46
+ # For Tron (with specific WalletConnect versions)
47
+ npm install @tronweb3/tronwallet-adapter-react-hooks @tronweb3/tronwallet-adapters tronweb @walletconnect/universal-provider@^2.23.0 @walletconnect/modal@^2.7.0
48
+ ```
49
+
50
+ > **⚠️ Important:** When using TRON WalletConnect support, ensure you install the exact versions specified above (`@walletconnect/modal@^2.7.0` and `@walletconnect/universal-provider@^2.23.0`) to avoid runtime errors like `this.client.core.relayer.publishCustom is not a function`.
51
+
52
+ ### Version Lock (Recommended)
53
+
54
+ To prevent version conflicts, add these overrides to your `package.json`:
55
+
56
+ ```json
57
+ {
58
+ "overrides": {
59
+ "@walletconnect/modal": "^2.7.0",
60
+ "@walletconnect/universal-provider": "^2.23.0"
61
+ }
62
+ }
63
+ ```
64
+
65
+ For **yarn**, use `resolutions` instead of `overrides`. For **pnpm**, add to your `.npmrc`:
66
+
67
+ ```
68
+ @walletconnect/modal=^2.7.0
69
+ @walletconnect/universal-provider=^2.23.0
48
70
  ```
49
71
 
50
72
  ### Required shadcn/ui Components
@@ -286,6 +308,55 @@ npm run build:lib
286
308
  npm run lint
287
309
  ```
288
310
 
311
+ ## Troubleshooting
312
+
313
+ ### WalletConnect Error: `this.client.core.relayer.publishCustom is not a function`
314
+
315
+ This error occurs due to version conflicts with WalletConnect packages. To fix:
316
+
317
+ 1. **Ensure exact versions are installed**:
318
+ ```bash
319
+ npm install @walletconnect/modal@^2.7.0 @walletconnect/universal-provider@^2.23.0
320
+ ```
321
+
322
+ 2. **Add package overrides** to your `package.json`:
323
+ ```json
324
+ {
325
+ "overrides": {
326
+ "@walletconnect/modal": "^2.7.0",
327
+ "@walletconnect/universal-provider": "^2.23.0"
328
+ }
329
+ }
330
+ ```
331
+
332
+ 3. **Delete `node_modules` and lock file**, then reinstall:
333
+ ```bash
334
+ rm -rf node_modules package-lock.json
335
+ npm install
336
+ ```
337
+
338
+ 4. **For yarn users**, use `resolutions` instead of `overrides`:
339
+ ```json
340
+ {
341
+ "resolutions": {
342
+ "@walletconnect/modal": "^2.7.0",
343
+ "@walletconnect/universal-provider": "^2.23.0"
344
+ }
345
+ }
346
+ ```
347
+
348
+ 5. **For pnpm users**, add to `.npmrc`:
349
+ ```
350
+ @walletconnect/modal=^2.7.0
351
+ @walletconnect/universal-provider=^2.23.0
352
+ ```
353
+
354
+ ### Other Common Issues
355
+
356
+ - **Missing peer dependencies**: Check that all required peer dependencies are installed for your chain (see Installation section)
357
+ - **shadcn/ui component errors**: Ensure all required shadcn components are installed (see Required shadcn/ui Components)
358
+ - **Theme not working**: Make sure you have CSS variables configured properly (see Theme Customization)
359
+
289
360
  ## Contributing
290
361
 
291
362
  Contributions are welcome! Please open an issue or submit a pull request.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-C0llk2Pm.cjs");
3
+ const index = require("./index-BXUBhn_o.cjs");
4
4
  exports.DEFAULT_SLIPPAGE_BPS = index.DEFAULT_SLIPPAGE_BPS;
5
5
  exports.EvaaBridge = index.EvaaBridge;
6
6
  exports.RoutePriority = index.RoutePriority;
@@ -1,4 +1,4 @@
1
- import { Q, d, f, e, G, A, D, V, K, y, Z, F, z, B, X, v, r, s, q, o, p, J, a0, a7, a2, a4, w, H, x, a3, a1, a5, a6, W, U, L, Y, $, a8, N, P, _, I, S, t, i, u, l, m, j, n, h, k } from "./index-NQh101e3.js";
1
+ import { Q, d, f, e, G, A, D, V, K, y, Z, F, z, B, X, v, r, s, q, o, p, J, a0, a7, a2, a4, w, H, x, a3, a1, a5, a6, W, U, L, Y, $, a8, N, P, _, I, S, t, i, u, l, m, j, n, h, k } from "./index-w-PXiL0q.js";
2
2
  export {
3
3
  Q as DEFAULT_SLIPPAGE_BPS,
4
4
  d as EvaaBridge,