{"dist":{"shasum":"020369711330755448397b3b8cecf2868ae7c54c","tarball":"https://registry.npmjs.org/@0x/subproviders/-/subproviders-5.1.0-beta.2.tgz","fileCount":81,"integrity":"sha512-Nk8iSlR95Zo6L1tq2tHLKupX5bCD/NlxQ/KKli4qyAawyxuXQcQbl8flUApJFd+BYY7mghLDwY5u4o8CCR56Nw==","signatures":[{"sig":"MEUCIDeAvwdlzTr2KI8w8CZ3yVJFSEM+HmpYAGqqjtt+ucUwAiEA5FyAwzjkyxnJDp1UYqpEoqQquyfPUTy3FGbvKSJEtiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":283880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0dHmCRA9TVsSAnZWagAAwq8QAIx33/M66H1l15UMrycF\nS1oynSbtd0tGO87/RSrZKBNlLlyuTispCHrsrDZxsR+bcon18H3e5LvKINyU\n/HdCPosja/nRggopV9HecobTejCO31LCqPSj8G5K9vjHconFTg3uhlZpo0cy\ngszXKFXrmPvYI8ih+2BrihhbvdcxjMDlTlu2pxz+oLEae8wDZpgHAX+kLHvl\nS/Jqti28NrNjSEa0+bsL5g7cYCltaDRMnX337TqYw4GI8kyKbZ2ZN2kwPuo/\naCZJ/yh8jk9mtwvE4lEiDoy6uwOXn2U2PYxAK3C4aPDI26DyD/upYG9+xbYB\nfQcpSYGunoG646Y6zupHMwsCDcXmfFbzrwHciez8bBldog9VGnAKQcZjppwI\nIxd7Oi0tfUg8/F8a8KIw/84F8zm76bR127sG40N/rtEyPzCemBKFPBwM0PEQ\nt0pF+m0poW54Jt/Ktcpd3773FOEn0U9t3mlMv2rhildFa/ZflnkvLtFRMcLs\nzIqyUsQz/NmyUhkVYdYqIwK0bipAB+kGlvXeVyevgvVLU0QiHyEaBguYwQHc\nj4oz/FUHj9nSl4WVbC1vipyIae3RHfj9pLxy0HHebWJAGcnw7m6u6aeVz4Y6\naDRzubedu/k+zgN+hMZMQOULN1hjbpveoq6jNOIVYvSW+wD80vvO7OyTCLVO\nxxPx\r\n=xFlZ\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":"9e9e0d6592f089a372c1285c8f34217fb7b0d4c6","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":"xianny","email":"xianny@gmail.com"},"_npmVersion":"lerna/3.16.10/node@v8.16.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":"8.16.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.2","@0x/utils":"^4.6.0-beta.2","@0x/assert":"^2.2.0-beta.2","@types/hdkey":"^0.7.0","ganache-core":"^2.6.0","ethereumjs-tx":"^1.3.5","ethereum-types":"^2.2.0-beta.2","json-rpc-error":"2.0.0","ethereumjs-util":"^5.1.1","@0x/web3-wrapper":"^6.1.0-beta.2","@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.2","@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.2","make-promises-safe":"^1.1.0","@types/ethereumjs-tx":"^1.0.1"},"optionalDependencies":{"@ledgerhq/hw-transport-node-hid":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/subproviders_5.1.0-beta.2_1574031846604_0.565072977751063","host":"s3://npm-registry-packages"},"_id":"@0x/subproviders@5.1.0-beta.2","version":"5.1.0-beta.2"}