Catalog npm
Back to packageRELEASE DETAILS

0.2.0

npm

@0xproject/subproviders

@0xproject/subproviders --------

Published28 Dec 2017
Direct dependencies31
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 32

Native requirements
31 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xproject/assert
Environment
{
  "local_name": "@0xproject/assert",
  "alias": false,
  "peer_metadata": null
}
^0.0.9runtime
@0xproject/utils
Environment
{
  "local_name": "@0xproject/utils",
  "alias": false,
  "peer_metadata": null
}
^0.1.2runtime
bn.js
Environment
{
  "local_name": "bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.8runtime
es6-promisify
Environment
{
  "local_name": "es6-promisify",
  "alias": false,
  "peer_metadata": null
}
^5.0.0runtime
ethereumjs-tx
Environment
{
  "local_name": "ethereumjs-tx",
  "alias": false,
  "peer_metadata": null
}
^1.3.3runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
hdkey
Environment
{
  "local_name": "hdkey",
  "alias": false,
  "peer_metadata": null
}
^0.7.1runtime
ledgerco
Environment
{
  "local_name": "ledgerco",
  "alias": false,
  "peer_metadata": null
}
github:0xProject/ledger-node-js-apiruntime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.4runtime
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.0runtime
web3-provider-engine
Environment
{
  "local_name": "web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
^13.0.1runtime
@0xproject/tslint-config
Environment
{
  "local_name": "@0xproject/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^0.4.0development
@0xproject/utils
Environment
{
  "local_name": "@0xproject/utils",
  "alias": false,
  "peer_metadata": null
}
^0.1.2development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
^4.14.86development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^2.2.42development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^8.0.53development
awesome-typescript-loader
Environment
{
  "local_name": "awesome-typescript-loader",
  "alias": false,
  "peer_metadata": null
}
^3.1.3development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
chai-as-promised-typescript-typings
Environment
{
  "local_name": "chai-as-promised-typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.0.3development
chai-typescript-typings
Environment
{
  "local_name": "chai-typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.0.1development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
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
types-bn
Environment
{
  "local_name": "types-bn",
  "alias": false,
  "peer_metadata": null
}
^0.0.1development
types-ethereumjs-util
Environment
{
  "local_name": "types-ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
github:0xproject/types-ethereumjs-utildevelopment
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
~2.6.1development
web3-typescript-typings
Environment
{
  "local_name": "web3-typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.7.2development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^3.1.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-sCrITcyyks15WvXeAy3rpC9Tw+LOq8xGcvjEm2O8KY/1/5Fj9c0kus0j6nSnsOpzLuvJyNeVuyH/oxIUQQzVwA==",
  "shasum": "afcfafcd99bce866f6190baec0d9b937eb15be36",
  "tarball": "https://registry.npmjs.org/@0xproject/subproviders/-/subproviders-0.2.0.tgz",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCICbJ5V5QByJKA2wm1n2b36HmfgSYSMtkQw2J8C3siCpLAiEA0fM683WAq7W+juu1+HQJhmHrZ+J/naWfq+Ea14nSLKQ="
    }
  ]
}

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:70c00aefd77f25f7656a889b503ede87129e04bd7570749fd46f253d5aef0798

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 →