| * Move secureApi to shell
* Extract isTestnet test
* Use mobx + subscriptions for status
* Re-add status indicator
* Add lerna
* Move intial packages to js/packages
* Move 3rdparty/{email,sms}-verification to correct location
* Move package.json & README to library src
* Move tests for library packages
* Move views & dapps to packages
* Move i18n to root
* Move shell to actual src (main app)
* Remove ~ references
* Change ~ to root (explicit imports)
* Finalise convert of ~
* Move views into dapps as well
* Move dapps to packages/
* Fix references
* Update css
* Update test spec locations
* Update tests
* Case fix
* Skip flakey tests
* Update enzyme
* Skip previously ignored tests
* Allow empty api for hw
* Re-add theme for embed | ||
|---|---|---|
| .. | ||
| helpers.spec.js | ||
| index.js | ||
| library.js | ||
| package.json | ||
| README.md | ||
| rpc.js | ||
| rpc.spec.js | ||
| shapeshift.js | ||
| shapeshift.spec.js | ||
@parity/shapeshift
A thin ES6 promise wrapper around the shapeshift.io APIs as documented at https://shapeshift.io/api
https://github.com/paritytech/parity/tree/master/js/packages/shapeshift
usage
installation -
npm install --save @parity/shapeshift
Usage -
const APIKEY = 'private affiliate key or undefined';
const shapeshift = require('@parity/shapeshift')(APIKEY);
// api calls goes here
api
queries -
- getCoins()https://shapeshift.io/api#api-104
- getMarketInfo(pair)https://shapeshift.io/api#api-103
- getStatus(depositAddress)https://shapeshift.io/api#api-5
transactions -
- shift(toAddress, returnAddress, pair)https://shapeshift.io/api#api-7