| * Ensure all internal dapps have package.json * Update compilation rules # Conflicts: # js/src/redux/providers/balancesActions.js # js/src/ui/Form/TypedInput/typedInput.js * Remove SignerIcon * Cleanup providers * Enable request of new token from app * Queue when no token (yet) * Add location & token request * Cleanup send logic * Request token * Request comms token * Remove yarn.lock (not updated) * Update version to 1.99.99 (publish prepare) * Move jsonrpc to seperate repo * Update jsonrpc references * Update repo info * Update repo info * Additional debugging * Update repo references * Move ABI to js-abi repo * Move webWorker to shared * Fix package reference * Worker location * Move js-ui & js-shared components * Update file references * Update package repo locations * Remove debugging info * Cleanup debug * Split api into own repo * Update api local references * Update app loading * Update dependencies * Allow serving of /parity-utils * Error when EthereumProvider has not been attached * Use inject.js * Correct appId retrieval | ||
|---|---|---|
| .. | ||
| 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