{"dist":{"shasum":"799b0855d0c41263661b7ffd0d90f23696f9ca7d","tarball":"https://registry.npmjs.org/@0x/subproviders/-/subproviders-5.1.0-beta.1.tgz","fileCount":77,"integrity":"sha512-KQFKihf6FQOMDQoDKy3y5IO/hZOixWE8x+UfMyWb5b8gakMXG4On3PmaoVn5NFBMbd6tMqTyltGoZK6F8jjXXg==","signatures":[{"sig":"MEQCIHVyvt3fNcRlbVuR9lXE5WNF71MaDmMliuMBh/QEvEljAiBLgXCm+w5aPQb237tMzezrAF3j4/XoxsKeS7nE6WQE6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":273410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxIIICRA9TVsSAnZWagAARpgP/Rtrv0ox9H4aTFsrjNuH\nJ/9WHofsHg+/x72uQmiv4rbYqkpGvApVeSOZ1v8Qw1rMBkIipXy2wlEde0ny\npwovrunOi6OAREGMxablMDJXU0v2J/AfuUlAbTo6WSsZN7vU21JQsIS2q+DM\nTC9mGI37RFgEVYRhT8wxGdjyB4AGDtjJ3iF+mIxOVwcbrjUIWAdgvVdbVmv/\nteSssqKGGxGzCcWan6DYFoNkG8Slt/Zwcf+UGCjaXxGDM1SEvJMKugWmvubY\n/zcT+DwC3C4Ekok561o839WqXPIidvzJuod3w/CzR6YKRTaPh7aOcbLNg9f2\n0SG6w44PQQu2J4AY5D/ej/GvkYV0yi181YE/5bSNLtIu1iYrSt5sVWDvoUhF\n9JnPceNBc2Jrirad0hgflkeYwd+4DgmSvqrgP8KNBRXIDHLN3FgbEFqMpy+i\nG6b6Z+Hv03IlbH66c5uWoiyJ9eLnaDXn7daoWB8EEQudy9s3g4/z42kKZaAf\nGGJMRLmgT1RN4HvvNy4KPmgTTFnz0sNwPvfQGsC6+0ipaRUVCf/jNl03V5Rk\ngXAWxvldvLMiqlq/wgMyswvVpity5fcBYoaKU15tlZgE/rIy5G/0FsorDeqJ\n4/mLltwpJacEVTj4A55HwSHqIiN5zbh+Dr/uOh9EozRAi4wfWP9ETh0yxP+S\nVW28\r\n=O8Oy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/src/index.js","name":"@0x/subproviders","types":"lib/src/index.d.ts","config":{"postpublish":{"assets":[]}},"readme":"## @0x/subproviders\n\nA few useful web3 subproviders including a LedgerSubprovider useful for adding Ledger Nano S support.\n\nWe have written up a [guide](https://0x.org/docs/guides/web3-provider-explained#web3-provider-examples) article detailing some use cases of this subprovider package.\n\n### Read the [Documentation](https://0x.org/docs/tools/subproviders).\n\n## Installation\n\n```\nyarn add @0x/subproviders\n```\n\nIf your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:\n\n```json\n\"compilerOptions\": {\n    \"typeRoots\": [\"node_modules/@0x/typescript-typings/types\", \"node_modules/@types\"],\n}\n```\n\n## Contributing\n\nWe welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.\n\nPlease read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.\n\n### Install dependencies\n\nIf you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:\n\n```bash\nyarn config set workspaces-experimental true\n```\n\nThen install dependencies\n\n```bash\nyarn install\n```\n\n### Build\n\nTo build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:\n\n```bash\nPKG=@0x/subproviders yarn build\n```\n\nOr continuously rebuild on change:\n\n```bash\nPKG=@0x/subproviders yarn watch\n```\n\n### Clean\n\n```bash\nyarn clean\n```\n\n### Lint\n\n```bash\nyarn lint\n```\n\n### Run tests\n\n#### Unit tests\n\n```bash\nyarn run test:unit\n```\n\n#### Integration tests\n\nIn order to run the integration tests, make sure you have a Ledger Nano S available.\n\n-   Setup your Ledger with the development mnemonic seed: `concert load couple harbor equip island argue ramp clarify fence smart topic`\n-   Plug it into your computer\n-   Unlock the device\n-   Open the on-device Ethereum app\n-   Make sure \"browser support\" and \"contract data\" are disabled\n-   Start [TestRPC](https://github.com/trufflesuite/ganache-cli) locally at port `8545`\n\nThen run:\n\n```\nyarn test:integration\n```\n\n**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.\n\n#### All tests\n\n```bash\nyarn run test:all\n```\n","browser":{"ganache-core":false},"engines":{"node":">=6.12"},"gitHead":"3b9d84fa5841e419239690e74235b92fbf6b4ba5","license":"Apache-2.0","scripts":{"fix":"tslint --fix --format stylish --project .","lint":"tslint --format stylish --project .","test":"npm run test:unit","build":"tsc -b","clean":"shx rm -rf lib generated_docs","docs:md":"ts-doc-gen --sourceDir='$PROJECT_FILES' --output=$MD_FILE_DIR --fileExtension=mdx --tsconfig=./typedoc-tsconfig.json","build:ci":"yarn build","test:all":"run-s test:unit test:integration","diff_docs":"git diff --exit-code ./docs","docs:json":"typedoc --excludePrivate --excludeExternals --excludeProtected --ignoreCompilerErrors --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES","test:unit":"run-s clean build run_mocha_unit","test:circleci":"npm run test:unit:coverage","run_mocha_unit":"mocha --require source-map-support/register --require make-promises-safe lib/test/unit/**/*_test.js --timeout 10000 --bail --exit","s3:sync_md_docs":"aws s3 sync ./docs s3://docs-markdown/${npm_package_name}/v${npm_package_version} --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers","test:integration":"run-s clean build run_mocha_integration","test:unit:coverage":"nyc npm run test:unit --all && yarn coverage:report:lcov","coverage:report:lcov":"nyc report --reporter=text-lcov > coverage/lcov.info","run_mocha_integration":"mocha --require source-map-support/register --require make-promises-safe lib/test/integration/**/*_test.js --timeout 10000 --bail --exit"},"_npmUser":{"name":"fberger","email":"me@fabioberger.com"},"_npmVersion":"lerna/3.16.10/node@v11.15.0+x64 (darwin)","description":"A few useful web3 subproviders including a LedgerSubprovider useful for adding Ledger Nano S support.","directories":{},"maintainers":[{"name":"albrow","email":"stephenalexbrowne@gmail.com"},{"name":"bchillman","email":"brandon.millman@gmail.com"},{"name":"dave4506","email":"dvsuner@gmail.com"},{"name":"dekz","email":"jacob@dekz.net"},{"name":"fberger","email":"me@fabioberger.com"},{"name":"xianny","email":"xianny@gmail.com"}],"_nodeVersion":"11.15.0","dependencies":{"bip39":"^2.5.0","bn.js":"^4.11.8","hdkey":"^0.7.1","lodash":"^4.17.11","@0x/types":"^2.5.0-beta.1","@0x/utils":"^4.6.0-beta.1","@0x/assert":"^2.2.0-beta.1","@types/hdkey":"^0.7.0","ganache-core":"^2.6.0","ethereumjs-tx":"^1.3.5","ethereum-types":"^2.2.0-beta.1","json-rpc-error":"2.0.0","ethereumjs-util":"^5.1.1","@0x/web3-wrapper":"^6.1.0-beta.1","@ledgerhq/hw-app-eth":"^4.3.0","web3-provider-engine":"14.0.6","semaphore-async-await":"^1.5.1","@0x/typescript-typings":"^4.4.0-beta.1","@ledgerhq/hw-transport-u2f":"4.24.0","@types/web3-provider-engine":"^14.0.0","@ledgerhq/hw-transport-node-hid":"^4.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^11.0.1","shx":"^0.2.2","chai":"^4.0.1","mocha":"^6.2.0","sinon":"^4.0.0","tslint":"5.11.0","typedoc":"^0.15.0","webpack":"^4.20.2","dirty-chai":"^2.0.1","typescript":"3.0.1","@types/node":"*","npm-run-all":"^4.1.2","@types/bip39":"^2.4.0","@types/bn.js":"^4.11.0","@types/hdkey":"^0.7.0","@types/mocha":"^5.2.7","@types/sinon":"^2.2.2","@types/lodash":"4.14.104","@0x/ts-doc-gen":"^0.0.22","chai-as-promised":"^7.1.0","@0x/tslint-config":"^3.1.0-beta.1","make-promises-safe":"^1.1.0","@types/ethereumjs-tx":"^1.0.0"},"optionalDependencies":{"@ledgerhq/hw-transport-node-hid":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/subproviders_5.1.0-beta.1_1573159431711_0.9386204845673154","host":"s3://npm-registry-packages"},"_id":"@0x/subproviders@5.1.0-beta.1","version":"5.1.0-beta.1"}