Catalog npm
Back to packageRELEASE DETAILS

0.10.6

npm

@0xproject/subproviders

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

Published18 Jul 2018
Direct dependencies36
Transitive dependenciesNot calculated

README

Current package documentation

@0xproject/subproviders

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

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

Read the Documentation.

Installation

yarn add @0xproject/subproviders

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

"compilerOptions": {
    "typeRoots": ["node_modules/@0xproject/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=@0xproject/subproviders yarn build

Or continuously rebuild on change:

PKG=@0xproject/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 36

Native requirements
36 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xproject/assert
Environment
{
  "local_name": "@0xproject/assert",
  "alias": false,
  "peer_metadata": null
}
^0.2.14runtime
@0xproject/types
Environment
{
  "local_name": "@0xproject/types",
  "alias": false,
  "peer_metadata": null
}
^0.8.2runtime
@0xproject/typescript-typings
Environment
{
  "local_name": "@0xproject/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.4.3runtime
@0xproject/utils
Environment
{
  "local_name": "@0xproject/utils",
  "alias": false,
  "peer_metadata": null
}
^0.7.3runtime
@ledgerhq/hw-app-eth
Environment
{
  "local_name": "@ledgerhq/hw-app-eth",
  "alias": false,
  "peer_metadata": null
}
4.7.3runtime
@ledgerhq/hw-transport-u2f
Environment
{
  "local_name": "@ledgerhq/hw-transport-u2f",
  "alias": false,
  "peer_metadata": null
}
4.7.3runtime
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.7runtime
ethereumjs-tx
Environment
{
  "local_name": "ethereumjs-tx",
  "alias": false,
  "peer_metadata": null
}
1.3.4runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
5.1.5runtime
ganache-core
Environment
{
  "local_name": "ganache-core",
  "alias": false,
  "peer_metadata": null
}
0xProject/ganache-coreruntime
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.10runtime
semaphore-async-await
Environment
{
  "local_name": "semaphore-async-await",
  "alias": false,
  "peer_metadata": null
}
1.5.1runtime
web3
Environment
{
  "local_name": "web3",
  "alias": false,
  "peer_metadata": null
}
0.20.6runtime
web3-provider-engine
Environment
{
  "local_name": "web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
14.0.6runtime
@0xproject/monorepo-scripts
Environment
{
  "local_name": "@0xproject/monorepo-scripts",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
@0xproject/tslint-config
Environment
{
  "local_name": "@0xproject/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^0.4.21development
@types/bip39
Environment
{
  "local_name": "@types/bip39",
  "alias": false,
  "peer_metadata": null
}
2.4.0development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
2.2.48development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
9.6.0development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
4.1.2development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
7.1.1development
copyfiles
Environment
{
  "local_name": "copyfiles",
  "alias": false,
  "peer_metadata": null
}
1.2.0development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
2.0.1development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
1.1.0development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
4.1.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
4.1.2development
nyc
Environment
{
  "local_name": "nyc",
  "alias": false,
  "peer_metadata": null
}
11.6.0development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
0.2.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.8.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
0xProject/typedocdevelopment
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
2.7.1development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
3.11.0development
@ledgerhq/hw-transport-node-hid
Environment
{
  "local_name": "@ledgerhq/hw-transport-node-hid",
  "alias": false,
  "peer_metadata": null
}
4.7.3optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "383a9bb96c661148b6f4541fb553c79c787983e1",
  "tarball": "https://registry.npmjs.org/@0xproject/subproviders/-/subproviders-0.10.6.tgz",
  "fileCount": 53,
  "unpackedSize": 173845,
  "integrity": "sha512-BTmjz4X/FXtKqYXBOs9iSrNiPjvqQvK9FboLGwTnRE6rMGeukGJHMeketBS8PScnjUZ1CAGxiOtjxUkXjvrweA==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDMHY7/WpRvwc42czRh9NGHVcxUn4pRE4BEib+ZENEUVQIhAPGKRb28q6GY90a+9WFyNh2eA/n5k6QTmhVdfU2qeOdF"
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:34 UTC

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

Record identity

package_version:5398ea079d76f890b4766d688e0d7a96e8f5fb84c511ad4a16db192220dfd829

Other collected versions

2.0.74 Oct2.0.628 Sept2.0.525 Sept2.0.425 Sept2.0.321 Sept2.0.25 SeptView all collected versions →