add type MiningInfo

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>
add getgenerate gethashespersec getmininginfo

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>