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

@ethersproject-bsc/experimental

v5.1.0

Published

Experimental libraries for ethers. These should not be considered stable.

Downloads

3

Readme

Experimental Playground

This package is a collection of quick little ideas, which may be half-baked.

If you find a particular feature piques your interest, please feel free to open an issue on GitHub to discuss it.

Also, if you have any system that requires an object from this package, make sure you specify the exact npm version in your package.json, as backwards compatibility is NOT guaranteed for this pacakge; APIs may change and classes may disappear.

Items

BrainWallet

In general, a Brain Wallet is not recommended, but it is a fature we offered in v3 and below. It allows a wallet to be described and recovered using a username and a password. However, anyone who can guess a username and password can steal the funds, and the password cannot be changed. But for backwards compatibility and for simple testing, we provide it here.

import { BrainWallet } from "@ethersproject-bsc/experimenatl/brain-wallet";

// This is optional, but since a Brain Wallet can take 5-10s to generate,
// helps keep your users informed
function showProgress(percent) {
    if (percent === 1) {
        console.log("Done.");
    } else {
        console.log("Completed: " + Math.trunc(100 * percent) + "%");
    }
}

// Generate a legacy-compatible Brain Wallet
BrainWallet.generateLegacy(username, password, showProgress).then((wallet) => {
    console.log(wallet);
});

// Generate a new-style Brain Wallet, which contains a Mnemonic Phrase too
BrainWallet.generate(username, password, showProgess).then((wallet) => {
    console.log(wallet);
});

NonceManager

import { NonceManager } from "@ethersproject-bsc/experimenatl/nonce-manager";

let signer = "... any way you get a signer ...";

// The NonceManager Signer will automatically manage the nonce for you
// so you may blast the network with as many transactions as you would
// like. Transactions which have not been mined within XXX timeout and
// will be rebroadcast; keep in mind that unmined transactions remain
// in memory.
let managedSigner = new NonceManager(signer);

RetryProvider

import { RetryProvider } from "@ethersproject-bsc/experimenatl/retry-provider";

let provider = "... any way you get a signer...";

// All options are optional
let options = {
}

let retryProivder = new RetryProvider(provider, options);

License

MIT License.