jolocom / jolocom-lib

Library for interacting with the identity solution provided by Jolocom.
MIT License
24 stars 18 forks source link

Fix registry related typing issues #294

Closed Exulansis closed 5 years ago

Exulansis commented 5 years ago

Describe the bug Some of the typings are not exactly correct, e.g.

1) At some points instead of taking an IRegistry functions require an instance of a JolocomRegistry, which is needlessly restrictive. 2) The AddressInfo interface needlessly requires the user's balance to be of type BigNumber. 3) Multiple declarations of the HttpAgent interface because it is reused accros modules.