A collection of packages that extend the functionality of divvy-lib.
These modules will need to be compiled for use in the browser.
From the root directory of each module, run $ npm install
then $ gulp
The compiled libraries will be available in the /dist/web
directory
Live updating orderbook data from the Divvy Network. Requires DivvyAPI version 0.14.0 or greater.
var api = new divvy.DivvyAPI({server: 'wss://one.vld.xdv.io'});
api.connect().then(function() {
var book = divvyOrderbook.OrderBook.createOrderBook(api, {
currency_gets: 'XDV',
issuer_pays: 'rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B',
currency_pays: 'USD'
});
book.on('model', function(offers) {
console.log(offers);
});
});
Parses transaction objects to a higher-level view.
Signs arbitrary data.