From 7dcb483a330a8e1eae679aa9170c88f2d34e2d83 Mon Sep 17 00:00:00 2001 From: Govard Barkhatov Date: Thu, 12 Dec 2024 01:18:41 +0200 Subject: [PATCH] bbn injectable --- src/core/wallets/bbn/index.ts | 3 ++- src/core/wallets/bbn/injectable/index.ts | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/core/wallets/bbn/injectable/index.ts diff --git a/src/core/wallets/bbn/index.ts b/src/core/wallets/bbn/index.ts index 86889bb..8ca9096 100644 --- a/src/core/wallets/bbn/index.ts +++ b/src/core/wallets/bbn/index.ts @@ -2,13 +2,14 @@ import { BBNConfig, ChainMetadata } from "@/core/types"; import { BBNProvider } from "./BBNProvider"; import icon from "./babylon.jpeg"; +import injectable from "./injectable"; import keplr from "./keplr"; const metadata: ChainMetadata<"BBN", BBNProvider, BBNConfig> = { chain: "BBN", name: "Babylon Chain", icon, - wallets: [keplr], + wallets: [injectable, keplr], }; export default metadata; diff --git a/src/core/wallets/bbn/injectable/index.ts b/src/core/wallets/bbn/injectable/index.ts new file mode 100644 index 0000000..62f1fcc --- /dev/null +++ b/src/core/wallets/bbn/injectable/index.ts @@ -0,0 +1,15 @@ +import { Network, type BBNConfig, type WalletMetadata } from "@/core/types"; + +import { BBNProvider } from "../BBNProvider"; + +const metadata: WalletMetadata = { + id: "injectable", + name: (wallet) => wallet.getWalletProviderName?.(), + icon: (wallet) => wallet.getWalletProviderIcon?.(), + docs: "", + wallet: "bbnwallet", + createProvider: (wallet) => wallet, + networks: [Network.MAINNET, Network.SIGNET], +}; + +export default metadata;