npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@romeblockchain/wallet

v0.1.36

Published

Implmentation of web3react-v8 for RT widgets

Downloads

11

Readme

Wallet Context

Current version is 0.1.36 | version | description | | 0.1.36 | Enable ability to just connect wallet without requiring to switch networks | 0.1.35 | change type for chainparams | 0.1.34 | remove icons | 0.1.33 | expose utils | 0.1.32 | simplified handle connect logic, added loading event | 0.1.30 | emit wallet connect and disconnect events | 0.1.29 | use latest version of bridge to allow type consistency | 0.1.29 | remove window.localstorage.clear | 0.1.27 | always return chain information | 0.1.25 | delete deprecated testnets | 0.1.23 | added ofac list | 0.1.22 | added coinbase | 0.1.19 | return error when wallet fails to connect | 0.1.18 | add boolean for eagerly connecting to network | 0.1.17 | revert package versions due to incompatibility | 0.1.16 | revert handleConnect args dues to referential equality requirement | 0.1.14 | update package versions | 0.1.13 | add DFK | 0.1.12 | add rinkeby | 0.1.10 | add handle connect | 0.1.8 | remove eager connect, add utility fn

This is an opinionated implementation fo web3react v8 library for Rome Terminal iframe widgets. This allows users to have multiple wallets active simultaneously but only have one priority wallet. The priority wallet is determined by the last wallet the user has activated.

The package exposes the following

  1. WalletProvider - React Context Provider for the connectors
  2. useWallets - Hook that exposes setSelectedWallet function that updates the priority wallet
  3. useWeb3React - Hook that exposes the connector and hooks for the priority wallet
  4. ConnectionList - An array that contains all supported wallets by the package.

Quick Start

  1. yarn add @romeblockchain/wallet
  2. If using React add 2 the following env variables. REACT_APP_INFURA_KEY and REACT_APP_ALCHEMY_KEY
  3. if using Next JS add 2 the following env variables instead. INFURA_KEY and ALCHEMY_KEY.

Demo

  1. Check /example folder for React example