added personal API

This commit is contained in:
Bas van Kervel
2015-06-09 10:59:44 +02:00
committed by Bas van Kervel
parent 09d0d55fc5
commit 08d72a9245
5 changed files with 259 additions and 9 deletions

View File

@ -29,6 +29,8 @@ func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.
apis[i] = NewMinerApi(eth, codec)
case NetApiName:
apis[i] = NewNetApi(xeth, eth, codec)
case PersonalApiName:
apis[i] = NewPersonal(xeth, eth, codec)
case Web3ApiName:
apis[i] = NewWeb3(xeth, codec)
default:
@ -47,6 +49,8 @@ func Javascript(name string) string {
return Miner_JS
case NetApiName:
return Net_JS
case PersonalApiName:
return Personal_JS
}
return ""