
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@lidofinance/blocks-connect-wallet-modal
Advanced tools
React components for Lido Finance projects. Provides a modal window with buttons for connection with various crypto wallets. Part of [Lido UI Blocks](https://github.com/lidofinance/ui-blocks/#readme).
React components for Lido Finance projects.
Provides a modal window with buttons for connection with various crypto wallets.
Part of Lido UI Blocks.
yarn add @lidofinance/blocks-connect-wallet-modal
Check out our Storybook at https://ui-blocks.lido.fi
Note that to use Connect Wallet Modal, you need to wrap your app with ProviderWeb3
from lido-js-sdk.
You can configure the list of wallets displayed in the modal. The package provides wallet connection buttons that are meant to be used inside the modal. You can use them, or you can make your own.
Import the basic WalletsModal component with required wallet connection buttons:
import { WalletsModal, ConnectMetamask, ConnectWalletConnect } from '@lidofinance/blocks-connect-wallet-modal'
Use it like this:
<WalletsModal
open={isOpen}
onClose={handleClose}
shouldInvertWalletIcon={false} // set to true for the dark color theme
>
{(commonProps) => (
<>
<ConnectMetamask key='Metamask' {...commonProps} />
<ConnectWalletConnect key='WalletConnect' {...commonProps} />
</>
)}
</WalletsModal>
The package provides the modal variant with the predefined list of wallets, which work with the Ethereum network.
Import the component:
import { WalletsModalForEth } from '@lidofinance/blocks-connect-wallet-modal'
Use it like this:
<WalletsModalForEth {...props} />
You can hide one or several wallet connection buttons from the list of wallets in the modal.
Use the hiddenWallets
property like this:
<WalletsModalForEth
hiddenWallets={['Metamask', 'Mathwallet']}
/>
Available values are:
'Metamask'
'WalletConnect'
'Ledger'
'Coinbase'
'Trust'
'ImToken'
'Coin98'
'MathWallet'
This list will grow with the addition of new wallets. You can see the actual list by looking into the WalletsModalForEth
component.
FAQs
React components for Lido Finance projects. Provides a modal window with buttons for connection with various crypto wallets. Part of [Lido UI Blocks](https://github.com/lidofinance/ui-blocks/#readme).
We found that @lidofinance/blocks-connect-wallet-modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.