aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/admin_js.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-10 17:29:52 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:41 +0800
commitbd38428f33b127e9c60d26127695e50c55798fcd (patch)
tree9bb838822fc3d1b28775f57223a30a243d4df9f2 /rpc/api/admin_js.go
parent87b62f75a7b9c15c17f3352f1b50ad88966e7070 (diff)
downloadgo-tangerine-bd38428f33b127e9c60d26127695e50c55798fcd.tar.gz
go-tangerine-bd38428f33b127e9c60d26127695e50c55798fcd.tar.zst
go-tangerine-bd38428f33b127e9c60d26127695e50c55798fcd.zip
cleanup of javascript API
Diffstat (limited to 'rpc/api/admin_js.go')
-rw-r--r--rpc/api/admin_js.go29
1 files changed, 15 insertions, 14 deletions
diff --git a/rpc/api/admin_js.go b/rpc/api/admin_js.go
index 6255a6c7b..c3e713c67 100644
--- a/rpc/api/admin_js.go
+++ b/rpc/api/admin_js.go
@@ -13,13 +13,6 @@ web3._extend({
outputFormatter: web3._extend.formatters.formatOutputBool
}),
new web3._extend.Method({
- name: 'peers',
- call: 'admin_peers',
- params: 0,
- inputFormatter: [],
- outputFormatter: function(obj) { return obj; }
- }),
- new web3._extend.Method({
name: 'exportChain',
call: 'admin_exportChain',
params: 1,
@@ -41,13 +34,6 @@ web3._extend({
outputFormatter: web3._extend.formatters.formatOutputBool
}),
new web3._extend.Method({
- name: 'syncStatus',
- call: 'admin_syncStatus',
- params: 1,
- inputFormatter: [web3._extend.utils.formatInputInt],
- outputFormatter: function(obj) { return obj; }
- }),
- new web3._extend.Method({
name: 'setSolc',
call: 'admin_setSolc',
params: 1,
@@ -61,6 +47,21 @@ web3._extend({
name: 'nodeInfo',
getter: 'admin_nodeInfo',
outputFormatter: web3._extend.formatters.formatOutputString
+ }),
+ new web3._extend.Property({
+ name: 'peers',
+ getter: 'admin_peers',
+ outputFormatter: function(obj) { return obj; }
+ }),
+ new web3._extend.Property({
+ name: 'datadir',
+ getter: 'admin_datadir',
+ outputFormatter: web3._extend.formatters.formatOutputString
+ }),
+ new web3._extend.Property({
+ name: 'chainSyncStatus',
+ getter: 'admin_chainSyncStatus',
+ outputFormatter: function(obj) { return obj; }
})
]
});