Catalog npm
Back to packageRELEASE DETAILS

4.0.5

npm

@0x/subproviders

A few useful web3 subproviders including a LedgerSubprovider useful for adding Ledger Nano S support.

Published11 Apr 2019
Direct dependencies44
Transitive dependenciesNot calculated

README

Current package documentation

@0x/subproviders

A few useful web3 subproviders including a LedgerSubprovider useful for adding Ledger Nano S support.

We have written up a guide article detailing some use cases of this subprovider package.

Read the Documentation.

Installation

yarn add @0x/subproviders

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/subproviders yarn build

Or continuously rebuild on change:

PKG=@0x/subproviders yarn watch

Clean

yarn clean

Lint

yarn lint

Run tests

Unit tests

yarn run test:unit

Integration tests

In order to run the integration tests, make sure you have a Ledger Nano S available.

  • Setup your Ledger with the development mnemonic seed: concert load couple harbor equip island argue ramp clarify fence smart topic
  • Plug it into your computer
  • Unlock the device
  • Open the on-device Ethereum app
  • Make sure "browser support" and "contract data" are disabled
  • Start TestRPC locally at port 8545

Then run:

yarn test:integration

Note: We assume a derivation path of m/44'/60'/0'/0 which is already configured in the tests. With this setup and derivation path, your first account should be 0x5409ed021d9299bf6814279a6a1411a7e866a631, exactly like TestRPC.

All tests

yarn run test:all

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 44

Native requirements
44 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
bip39
Environment
{
  "local_name": "bip39",
  "alias": false,
  "peer_metadata": null
}
^2.5.0runtime
bn.js
Environment
{
  "local_name": "bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.8runtime
hdkey
Environment
{
  "local_name": "hdkey",
  "alias": false,
  "peer_metadata": null
}
^0.7.1runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^2.2.2runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^4.3.1runtime
@0x/assert
Environment
{
  "local_name": "@0x/assert",
  "alias": false,
  "peer_metadata": null
}
^2.0.9runtime
@types/hdkey
Environment
{
  "local_name": "@types/hdkey",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime
ganache-core
Environment
{
  "local_name": "ganache-core",
  "alias": false,
  "peer_metadata": null
}
^2.5.3runtime
ethereumjs-tx
Environment
{
  "local_name": "ethereumjs-tx",
  "alias": false,
  "peer_metadata": null
}
^1.3.5runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^2.1.2runtime
json-rpc-error
Environment
{
  "local_name": "json-rpc-error",
  "alias": false,
  "peer_metadata": null
}
2.0.0runtime
eth-lightwallet
Environment
{
  "local_name": "eth-lightwallet",
  "alias": false,
  "peer_metadata": null
}
^3.0.1runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^6.0.5runtime
@ledgerhq/hw-app-eth
Environment
{
  "local_name": "@ledgerhq/hw-app-eth",
  "alias": false,
  "peer_metadata": null
}
^4.3.0runtime
web3-provider-engine
Environment
{
  "local_name": "web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
14.0.6runtime
semaphore-async-await
Environment
{
  "local_name": "semaphore-async-await",
  "alias": false,
  "peer_metadata": null
}
^1.5.1runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^4.2.2runtime
@types/eth-lightwallet
Environment
{
  "local_name": "@types/eth-lightwallet",
  "alias": false,
  "peer_metadata": null
}
^3.0.0runtime
@ledgerhq/hw-transport-u2f
Environment
{
  "local_name": "@ledgerhq/hw-transport-u2f",
  "alias": false,
  "peer_metadata": null
}
4.24.0runtime
@types/web3-provider-engine
Environment
{
  "local_name": "@types/web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
^14.0.0runtime
nyc
Environment
{
  "local_name": "nyc",
  "alias": false,
  "peer_metadata": null
}
^11.0.1development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^4.1.0development
sinon
Environment
{
  "local_name": "sinon",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
0.13.0development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^4.20.2development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
*development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
@types/bip39
Environment
{
  "local_name": "@types/bip39",
  "alias": false,
  "peer_metadata": null
}
^2.4.0development
@types/bn.js
Environment
{
  "local_name": "@types/bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.0development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^2.2.42development
@types/sinon
Environment
{
  "local_name": "@types/sinon",
  "alias": false,
  "peer_metadata": null
}
^2.2.2development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^3.0.1development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
@types/ethereumjs-tx
Environment
{
  "local_name": "@types/ethereumjs-tx",
  "alias": false,
  "peer_metadata": null
}
^1.0.0development
@ledgerhq/hw-transport-node-hid
Environment
{
  "local_name": "@ledgerhq/hw-transport-node-hid",
  "alias": false,
  "peer_metadata": null
}
^4.3.0optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "37b57e2cc3a534fedcf39fc7bdbfbedb7fb43a64",
  "tarball": "https://registry.npmjs.org/@0x/subproviders/-/subproviders-4.0.5.tgz",
  "fileCount": 133,
  "integrity": "sha512-tXvzx+iXRddmMM3QHCIYiyktkSkzX9ddWJ7SjMmyayFvRlNGuaMTL+bs3sCpgpsDkqWNejHSqLWA0ZoWr5F+tA==",
  "signatures": [
    {
      "sig": "MEUCIQDscBg2YoryeaPXmhcLIdrbLiUsRvegl5fRFRqevGU7dgIgRxE1PwpL2gF1M6NzIRG7nljvQw38plyELIu28QFeYno=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 420103,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcr2S0CRA9TVsSAnZWagAAZJUP/RfyAi6xfu6h1Amm+vyl\nZNBKcdzElTAf0OBM7dURd1CLjUTOYZrcOnrq7fnrbbMm2cUiW7qRcMDxxkQw\nCJw60MTEuFquSKEaeaeLm0EwUiYv+vKBXzGogSOT7qLWFi5cFRkvYIlCVYSO\nBM0CTYW0NngmkwaexwhsYRxbHRVgiz5zd4OxF+cImbakNYwrmbSOl7Qwma0i\nGhhUFJK5kvpxT/0nD1a4NydsCE1qCD3Jbjvjsowsryj5MDBQ2bKjLvMPdh1T\nxUmdaKsyqX5tOl2kyhR12N+Nqo7HqQQTI5H+zo9ZyG1UAyr4b/LmoAzypcAc\nBdKhKnyQhKPV2OrIRPJysWP0do5J3KUoU4g51bN20AxTb8BRHt+LEBQerlDW\ndjt4Ai28RaSTybcmmSZkcbthA1xb0xVYb9owQzP6bCS42ikxGM+Uz/J9GalL\nUZKcCR5fN75qtHvb9r4D+FrKCh1RS5fz150WQpZMm4ArkRA51rUR4DU9RS29\noCz7sya/AOPIzWgI9wYCzZrWQzVer3cmuEESUyWvJIENf7YCY0RIjLI+nHVW\nnFiFuBxJfPs/gDrp3PzsV/Oy+4k3EDeFD5eTnq0HPBDPpHjUlaxtyP9T0jsX\nEHVhUJulG8Y2mtVyhfnhhfNeAHxlPpHbqD+VvEbC9aTGOV38JhrZgiatqqgv\nZzYz\r\n=bFnp\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xproject/tools

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ba975acdc947409f5cf53db4ecaf2f8504e2a81ddee341a1d91c36df6e7f05bc

Other collected versions

8.0.17 Apr7.0.126 Jan7.0.018 Aug6.6.516 Mar6.6.416 Mar6.6.326 FebView all collected versions →