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.
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 aJolocomRegistry
, which is needlessly restrictive. 2) TheAddressInfo
interface needlessly requires the user's balance to be of typeBigNumber
. 3) Multiple declarations of theHttpAgent
interface because it is reused accros modules.