New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@edgeandnode/wallet

Package Overview
Dependencies
Maintainers
19
Versions
855
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edgeandnode/wallet

Package for managing web3 wallets

  • 3.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
117
decreased by-91.85%
Maintainers
19
Weekly downloads
 
Created
Source

E&N Wallet

Reusable react component for connecting to web3 wallets

Test coverage

Coverage lines Coverage functions Coverage branches Coverage statements

Usage

SigninModal and Context

import { SigninModal, useWallet } from '@edgeandnode/wallet'

const App = () => {
  const { address, setIsModalOpen } = useWallet()
  return (
    <div>
      Wallet address: { address }
      <button onClick={() => { setIsModalOpen(true) }}>
        Connect
      </button>
      <SigninModal headerImage="link/to/image.png" />
    </div>
  )
}

Context Provider

<WalletContextProvider infuraId={process.env.INFURA_KEY}>
  <App />
</WalletContextProvider>

Building and running

  1. Run yarn to install all dependencies.
  2. Run yarn build to bundle all files
  3. Run yarn npm:publish to publish to NPM

Local development

  1. Run yarn link inside of this folder
  2. Run yarn link @edgeandnode/wallet inside of another application that includes components in local development

Analyzing test coverage

  1. Run yarn test:coverage to generate a test coverage report
  2. Open /coverage/lcov-report/index.html in your browser
  3. This shows an overview of the test coverage for each component. You can click into a specific component to view a detailed report on test coverage for that component including coverage on statements, branches, functions and lines

FAQs

Package last updated on 06 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc