diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-07-07 00:13:06 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 17:30:45 +0800 |
commit | 3791831081eb2d6e0dbfb3aa96f181dbb645c394 (patch) | |
tree | f7b4ead25d2c5e37a9a714b6eeaa7bd2e008ad0f /rpc/api | |
parent | 7e6c1f8024d0cc0f381c615cab3c97b57fc9515e (diff) | |
download | go-tangerine-3791831081eb2d6e0dbfb3aa96f181dbb645c394.tar.gz go-tangerine-3791831081eb2d6e0dbfb3aa96f181dbb645c394.tar.zst go-tangerine-3791831081eb2d6e0dbfb3aa96f181dbb645c394.zip |
rebase with zelig/frontier/registrar
Diffstat (limited to 'rpc/api')
-rw-r--r-- | rpc/api/admin_js.go | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/rpc/api/admin_js.go b/rpc/api/admin_js.go index 86a4f6a4c..ddfa2ea04 100644 --- a/rpc/api/admin_js.go +++ b/rpc/api/admin_js.go @@ -27,8 +27,7 @@ web3._extend({ name: 'sleepBlocks', call: 'admin_sleepBlocks', params: 2, - inputFormatter: [web3._extend.utils.formatInputInt,web3._extend.utils.formatInputInt], - outputFormatter: web3._extend.formatters.formatOutputInt + inputFormatter: [null, null] }), new web3._extend.Method({ name: 'verbosity', @@ -51,58 +50,50 @@ web3._extend({ new web3._extend.Method({ name: 'stopRPC', call: 'admin_stopRPC', - params: 2, - inputFormatter: [], - outputFormatter: web3._extend.formatters.formatOutputBool + params: 0, + inputFormatter: [] }), new web3._extend.Method({ name: 'setGlobalRegistrar', call: 'admin_setGlobalRegistrar', params: 2, - inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString], - outputFormatter: web3._extend.formatters.formatOutputString + inputFormatter: [null,null] }), new web3._extend.Method({ name: 'setHashReg', call: 'admin_setHashReg', params: 2, - inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString], - outputFormatter: web3._extend.formatters.formatOutputString + inputFormatter: [null,null] }), new web3._extend.Method({ name: 'setUrlHint', call: 'admin_setUrlHint', params: 2, - inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString], - outputFormatter: web3._extend.formatters.formatOutputString + inputFormatter: [null,null] }), new web3._extend.Method({ name: 'saveInfo', call: 'admin_saveInfo', params: 2, - inputFormatter: [function(obj) { return obj; },web3._extend.utils.formatInputString], - outputFormatter: web3._extend.formatters.formatOutputString + inputFormatter: [null,null] }), new web3._extend.Method({ name: 'register', call: 'admin_register', params: 3, - inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString,web3._extend.utils.formatInputString], - outputFormatter: web3._extend.formatters.formatOutputBool + inputFormatter: [null,null,null] }), new web3._extend.Method({ name: 'registerUrl', call: 'admin_registerUrl', params: 3, - inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString,web3._extend.utils.formatInputString], - outputFormatter: web3._extend.formatters.formatOutputBool + inputFormatter: [null,null,null] }), new web3._extend.Method({ name: 'startNatSpec', call: 'admin_startNatSpec', params: 0, - inputFormatter: [], - outputFormatter: web3._extend.formatters.formatOutputBool + inputFormatter: [] }), new web3._extend.Method({ name: 'stopNatSpec', @@ -122,7 +113,6 @@ web3._extend({ params: 2, inputFormatter: [null, null] }) - ], properties: [ |