Revamp API wrapper code #10

Merged
alexliebowitz merged 5 commits from new-api-wrapper into master 2017-03-10 09:57:43 +01:00

5 commits

Author SHA1 Message Date
alexliebowitz
9fedfe2b93 Merge pull request #11 from lbryio/outpoints
Use outpoints for unique IDs
2017-03-10 03:57:19 -05:00
Alex Liebowitz
a5feefe294 Use updated key name in file_list (was lbry_uri, now name) 2017-03-09 17:55:17 -05:00
Alex Liebowitz
3b428c394c Convert UI to use outpoints for unique IDs
This covers *almost* everything. There are a couple of places that
still use names or SD hashes because the APIs haven't been updated
yet.
2017-03-09 17:55:17 -05:00
Alex Liebowitz
cba3ec3091 Add unique ID to JSON-RPC requests 2017-03-09 17:54:46 -05:00
Alex Liebowitz
1567a2de0a Revamp API wrapper code
- Refactoring throughout JSON-RPC, lbrynet and Lighthouse logic
 - Move JSON-RPC stuff into its own module
 - Add ability to directly call API methods on the lbry and lighthouse
   modules, e.g. lbry.file_list({name: 'what'})
 - New-style API calls use promises instead of callbacks.
 - Converted some lbrynet calls and all Lighthouse calls to use the new
   style
2017-03-09 17:54:46 -05:00