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

mbs-wallet-core

v0.0.2

Published

The MBS Wallet Core library handling the crypto wallet interactions

Downloads

1

Readme

🅒🅖🅒 Coingrig Core

The Coingrig Core library handling the wallet interactions

Setup

Run yarn. (Installs dependencies and links packages in the workspace.)

Compilation

Create an .env file to configure the platform: TESTNET=true|false.
The default value is TESTNET=false.

Test

Jest tests are set up to run with TESTNET=true yarn test.


Documentation

Classes

BitcoinGenerator ⇐ GenericGenerator

Kind: global class
Extends: GenericGenerator

BscGenerator ⇐ EthereumGenerator

Kind: global class
Extends: EthereumGenerator

EthereumGenerator ⇐ GenericGenerator

Kind: global class
Extends: GenericGenerator

PolygonGenerator ⇐ EthereumGenerator

Kind: global class
Extends: EthereumGenerator

GenericGenerator

Kind: global class

GenericGenerator.generateWalletXpub(mnemonic, config) ⇒ string

Kind: static method of GenericGenerator
Returns: string - The XPUB value

| Param | Type | | --- | --- | | mnemonic | string | | config | * |

GenericGenerator.generatePrivateKeyFromMnemonic(mnemonic, derivation, config) ⇒ string

Kind: static method of GenericGenerator
Returns: string - The Private Key

| Param | Type | | --- | --- | | mnemonic | string | | derivation | integer | | config | * |

GenericGenerator.generateAddressFromXPub(xpub, derivation, config) ⇒ string

Kind: static method of GenericGenerator
Returns: string - The Public Key

| Param | Type | | --- | --- | | xpub | string | | derivation | integer | | config | * |

WalletFactory

Kind: global class

new WalletFactory()

WalletGenerator

Kind: global class

WalletGenerator.generateMnemonic([size]) ⇒ string

Kind: static method of WalletGenerator
Returns: string - The mnemonic

| Param | Type | Default | Description | | --- | --- | --- | --- | | [size] | number | 128 | Or use 256 for 24 words |

WalletGenerator.getDriver(chain) ⇒ GenericGenerator

Kind: static method of WalletGenerator

| Param | Type | | --- | --- | | chain | Chains |

WalletGenerator.generateWalletXpub(chain, mnemonic, [config]) ⇒ string

Kind: static method of WalletGenerator
Returns: string - The wallet's XPUB address

| Param | Type | Default | Description | | --- | --- | --- | --- | | chain | Chains | | The type of chain | | mnemonic | string | | | | [config] | * | CONFIG | |

WalletGenerator.generatePrivateKeyFromMnemonic(chain, mnemonic, derivation, [config]) ⇒ string

Kind: static method of WalletGenerator
Returns: string - The wallet's private key

| Param | Type | Default | Description | | --- | --- | --- | --- | | chain | Chains | | The type of chain | | mnemonic | string | | | | derivation | integer | | The derivation key to allow generation of more private keys for the same chain | | [config] | * | CONFIG | |

WalletGenerator.generateAddressFromXPub(chain, xpub, derivation, [config]) ⇒ string

Kind: static method of WalletGenerator
Returns: string - The wallet's public address

| Param | Type | Default | Description | | --- | --- | --- | --- | | chain | Chains | | The type of chain | | xpub | string | | | | derivation | integer | | | | [config] | * | CONFIG | |

GenericWallet

Kind: global class

Chains : enum

Kind: global enum
Read only: true
Properties

| Name | Type | Description | | --- | --- | --- | | BTC | string | "BTC" | | ETH | string | "ETH" | | POLYGON | string | "POLYGON" | | BSC | string | "BSC" |


Code of Conduct

This library has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

License

The Coingrig Core Library is licensed under the MIT License.