From 341d64664d21e2830348b8527b972f39097d65ca Mon Sep 17 00:00:00 2001 From: David Totraev Date: Sat, 30 Nov 2024 19:39:12 +0500 Subject: [PATCH] fix: bump wallet connect version --- package-lock.json | 8 ++++---- package.json | 2 +- src/app/context/wallet/WalletConnectionProvider.tsx | 8 ++++---- src/config/wallet/babylon.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index b36c7aa8..816061be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@babylonlabs-io/babylon-proto-ts": "0.0.3-canary.3", "@babylonlabs-io/bbn-core-ui": "^0.2.0", - "@babylonlabs-io/bbn-wallet-connect": "^0.0.21", + "@babylonlabs-io/bbn-wallet-connect": "^0.0.23", "@babylonlabs-io/btc-staking-ts": "0.4.0-canary.3", "@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3", "@bitcoinerlab/secp256k1": "^1.1.1", @@ -2085,9 +2085,9 @@ } }, "node_modules/@babylonlabs-io/bbn-wallet-connect": { - "version": "0.0.21", - "resolved": "https://registry.npmjs.org/@babylonlabs-io/bbn-wallet-connect/-/bbn-wallet-connect-0.0.21.tgz", - "integrity": "sha512-gSwBFDP0gN+m36xG156IXaMKWsysOuKFZD2CvXBT8VRdxQv3bjifDiWjBGTCstZ3lttKy7DTUeDJH6u3O0Q3+w==", + "version": "0.0.23", + "resolved": "https://registry.npmjs.org/@babylonlabs-io/bbn-wallet-connect/-/bbn-wallet-connect-0.0.23.tgz", + "integrity": "sha512-x6pFnKmo/2tSofQrtJnYYa05//+d8dLhp2zrxFNtjogVkZMgSeP5X7lq12gNXUE5Wlvzd5C9WfNDC61x3TyQEQ==", "dependencies": { "@cosmjs/stargate": "^0.32.4", "@keplr-wallet/types": "^0.12.156", diff --git a/package.json b/package.json index 40980b89..292aa783 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "dependencies": { "@babylonlabs-io/babylon-proto-ts": "0.0.3-canary.3", "@babylonlabs-io/bbn-core-ui": "^0.2.0", - "@babylonlabs-io/bbn-wallet-connect": "^0.0.21", + "@babylonlabs-io/bbn-wallet-connect": "^0.0.23", "@babylonlabs-io/btc-staking-ts": "0.4.0-canary.3", "@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3", "@bitcoinerlab/secp256k1": "^1.1.1", diff --git a/src/app/context/wallet/WalletConnectionProvider.tsx b/src/app/context/wallet/WalletConnectionProvider.tsx index cfa8d4ec..d6cb4e3d 100644 --- a/src/app/context/wallet/WalletConnectionProvider.tsx +++ b/src/app/context/wallet/WalletConnectionProvider.tsx @@ -4,7 +4,7 @@ import { Network, WalletProvider } from "@babylonlabs-io/bbn-wallet-connect"; import { type PropsWithChildren } from "react"; import { ErrorState } from "@/app/types/errors"; -import { keplrRegistry } from "@/config/wallet/babylon"; +import { bbnDevnet } from "@/config/wallet/babylon"; import { useError } from "../Error/ErrorContext"; @@ -23,9 +23,9 @@ const config = [ { chain: "BBN", config: { - chainId: keplrRegistry.chainId, - rpc: keplrRegistry.rpc, - chainData: keplrRegistry, + chainId: bbnDevnet.chainId, + rpc: bbnDevnet.rpc, + chainData: bbnDevnet, }, }, ] as const; diff --git a/src/config/wallet/babylon.ts b/src/config/wallet/babylon.ts index a0da1aaf..615fce5c 100644 --- a/src/config/wallet/babylon.ts +++ b/src/config/wallet/babylon.ts @@ -1,6 +1,6 @@ // Temporary solution until we have a stable chain registry // The values here shall match from https://rpc.devnet.babylonlabs.io/genesis? -export const keplrRegistry = { +export const bbnDevnet = { chainId: "devnet-7", chainName: "Babylon Devnet 7", chainSymbolImageUrl: