From 21980a152518f5436c9abba0ebb223ec9e49e2fd Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Tue, 28 Nov 2023 16:35:24 +0100 Subject: [PATCH] update walletconnect guide --- developer-guide/wallet-connect/guide.md | 34 +++++++++++++++++++++++-- developer-guide/wallet-connect/index.md | 2 ++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/developer-guide/wallet-connect/guide.md b/developer-guide/wallet-connect/guide.md index d8686e4..f9f3ba2 100644 --- a/developer-guide/wallet-connect/guide.md +++ b/developer-guide/wallet-connect/guide.md @@ -5,13 +5,43 @@ order: 1000 # Guide + +## Include Bloom in Web3Modal + + +### Add Bloom to wallets + +As we're waiting for WalletConnect to approve our project, you can add Bloom manually to the list of wallets as follows: + +``` +createWeb3Modal({ + //... + desktopWallets: [ + { + id: '652df0cee82d5cd3cadfd57829c5578a', + name: 'Bloom Wallet', + links: { + native: 'bloom://walletConnect/connect' + universal: 'bloomwallet.io', + }, + }, + ], + walletImages: { + 652df0cee82d5cd3cadfd57829c5578a: "bloomwallet.io/assets/logos/bloom.png", + }; +}) +``` + + +### Add Bloom as recommendation + `WalletConnect`s `Web3Modal` has many suggestions on wallets on all ecosystems, but these suggestions can be adapted and changed by the dApp developer. If `Bloom` wallet implements features that your app requires, or if you generally want to recomment `Bloom` for your dApp's users, you can include the following code into your code base: ``` createWeb3Modal({ //... featuredWalletIds: [ - '1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369', // Bloom wallet + '652df0cee82d5cd3cadfd57829c5578a', // Bloom wallet ] }) ``` @@ -22,7 +52,7 @@ If your dApp requires a feature that most of the wallets don't implement, but `B createWeb3Modal({ //... includeWalletIds: [ - '1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369', // Bloom wallet + '652df0cee82d5cd3cadfd57829c5578a', // Bloom wallet ] }) ``` \ No newline at end of file diff --git a/developer-guide/wallet-connect/index.md b/developer-guide/wallet-connect/index.md index c924f05..7d1727a 100644 --- a/developer-guide/wallet-connect/index.md +++ b/developer-guide/wallet-connect/index.md @@ -10,5 +10,7 @@ To be able to connect with the IOTA / Shimmer ecosystem, Bloom implements `Walle If you're a dApp developer and plan to implement `WalletConnect` into your dApp, checkout https://docs.walletconnect.com/web3modal/about. +**Bloom projectId**: `652df0cee82d5cd3cadfd57829c5578a` + [Include Bloom](guide.md) [Supported Networks and Methods](supported.md)