{"dist":{"shasum":"92a9bc1700b018728cdcd23de26cc951a77e8d73","tarball":"https://registry.npmjs.org/@0x/subproviders/-/subproviders-5.1.0-beta.3.tgz","fileCount":81,"integrity":"sha512-ifPprVxP4rwPejjwMXFckPxLCQkNZbfy78Wtiwqy0FXaL4CbBYtiFA7eWiFNIRSPRjgOPXVB7FC/rGxqjEyZhg==","signatures":[{"sig":"MEUCIQCKGIjDNmLKH7qorNi5oqzZI6M1FCFEJZkSgW2fGjIwegIgQbWVLV/0JI8IYl7lrsPjWQ8/L2T7dCZO5GmzqfHx8B4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":284134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5QXbCRA9TVsSAnZWagAAje4P/iiXXbgAWEaFQIOs0Rfq\nzyzxB9Lfa7K3tsiCbC7x5LX7AUX4gGuH+432Umoce00jPgBmDADT2veRo2uQ\nH6455ZaTx2GKVz9nvIqSBlhYcRiXXw9q/NREHYeNlO9eluhz69UDbzJputM7\nOiHD/6b8rXNDzNJuo6qukqxn4czFjEfBHNDLT6/NzgGJ/qSU37Tg3tNA5VJb\nEDO4WaV5ripCRTTHhkvYASjpYvRsQR2KFcLcgfBTWIe1i5N9SFm3qTL+5kX2\ncVsyg78DAYyQQdivms4U7XtdSidhL6TftTyHU7z4YMwtABEGhnx+3uArdytZ\nHJ7STyvYokyfNyTI2GKnk8t2RD/CB/Fup0khgU2OUInO3VmgsUqtzsWuIEPY\n9kQBB3K1C+BZ5AP94cwml+kvwXCui+LvyQPRh/wcBlpy9hmU3n6ISmDh0Jmx\n/ngocEQTrvjcFtO57W94Tkap8IS6CGWQdZ45j4Fz53eyA0UWwdAm7blC4oMM\ngKnEliGK/evuT34yl8/UOy9zwGRANvjwgET2mLQncM59Bp9H9UbFstbw6kKH\n4+tJlOlBVPY46RMe/HbB4nVcrWRcLCJHb62mZ5L+3HLL1NIUTWcEz2v7A9OC\nmHj3S8Nmd4N4V2Q7rtlmh/p/VUZoakZtg6OVV0FO8leUcxtPpXMN/WNv+Oxg\nLhzB\r\n=epPw\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":"21db0e6275eef4fbfd58c5a1c05d384098e6334a","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":"dekz","email":"jacob@dekz.net"},"_npmVersion":"lerna/3.16.10/node@v11.13.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.13.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.3","@0x/utils":"^4.6.0-beta.3","@0x/assert":"^2.2.0-beta.3","@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.3","@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.3_1575290331174_0.6822764212212578","host":"s3://npm-registry-packages"},"_id":"@0x/subproviders@5.1.0-beta.3","version":"5.1.0-beta.3"}