diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-09 01:22:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-09 01:22:25 +0800 |
commit | 828dffffedf64e7ab5301284e2586082b6bc8f9c (patch) | |
tree | 6f429e6f2b3050de6dd7ce16e42c7f387bd5018a /packages/subproviders/README.md | |
parent | 5eea829be9f5e8669c40dac965231051b668ed37 (diff) | |
parent | af8d24d0eb5af781f4731b5559979f2b02579785 (diff) | |
download | dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.tar dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.tar.gz dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.tar.bz2 dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.tar.lz dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.tar.xz dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.tar.zst dexon-sol-tools-828dffffedf64e7ab5301284e2586082b6bc8f9c.zip |
Merge pull request #252 from 0xProject/feature/addSubproviders
Add Subproviders Subpackage
Diffstat (limited to 'packages/subproviders/README.md')
-rw-r--r-- | packages/subproviders/README.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/subproviders/README.md b/packages/subproviders/README.md new file mode 100644 index 000000000..5fa31611a --- /dev/null +++ b/packages/subproviders/README.md @@ -0,0 +1,39 @@ +Subproviders +----------- + +A few useful subproviders. + +## Installation + +``` +npm install @0xproject/subproviders --save +``` + +## Subproviders + +#### Ledger Nano S subprovider + +A subprovider that enables your dApp to send signing requests to a user's Ledger Nano S hardware wallet. These can be requests to sign transactions or messages. + +#### Redundant RPC subprovider + +A subprovider which attempts to send an RPC call to a list of RPC endpoints sequentially, until one of them returns a successful response. + +#### Injected Web3 subprovider + +A subprovider that relays all signing related requests to a particular provider (in our case the provider injected onto the web page), while sending all other requests to a different provider (perhaps your own backing Ethereum node or Infura). + +### Integration tests + +In order to run the integration tests, make sure you have a Ledger Nano S available. + +- Plug it into your computer +- Unlock the device +- Open the on-device Ethereum app +- Make sure "browser support" is disabled + +Then run: + +``` +yarn test:integration +``` |