@@ -9,22 +9,19 @@ web3._extend({
9
9
name: 'addPeer',
10
10
call: 'admin_addPeer',
11
11
params: 1,
12
- inputFormatter: [web3._extend.utils.formatInputString],
13
- outputFormatter: web3._extend.formatters.formatOutputBool
12
+ inputFormatter: [null]
14
13
}),
15
14
new web3._extend.Method({
16
15
name: 'exportChain',
17
16
call: 'admin_exportChain',
18
17
params: 1,
19
- inputFormatter: [web3._extend.utils.formatInputString],
20
- outputFormatter: function(obj) { return obj; }
18
+ inputFormatter: [null]
21
19
}),
22
20
new web3._extend.Method({
23
21
name: 'importChain',
24
22
call: 'admin_importChain',
25
23
params: 1,
26
- inputFormatter: [web3._extend.utils.formatInputString],
27
- outputFormatter: function(obj) { return obj; }
24
+ inputFormatter: [null]
28
25
}),
29
26
new web3._extend.Method({
30
27
name: 'sleepBlocks',
@@ -37,22 +34,19 @@ web3._extend({
37
34
name: 'verbosity',
38
35
call: 'admin_verbosity',
39
36
params: 1,
40
- inputFormatter: [web3._extend.utils.formatInputInt],
41
- outputFormatter: web3._extend.formatters.formatOutputBool
37
+ inputFormatter: [web3._extend.utils.toDecimal]
42
38
}),
43
39
new web3._extend.Method({
44
40
name: 'setSolc',
45
41
call: 'admin_setSolc',
46
42
params: 1,
47
- inputFormatter: [web3._extend.utils.formatInputString],
48
- outputFormatter: web3._extend.formatters.formatOutputString
43
+ inputFormatter: [null]
49
44
}),
50
45
new web3._extend.Method({
51
46
name: 'startRPC',
52
47
call: 'admin_startRPC',
53
48
params: 4,
54
- inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputInteger,web3._extend.utils.formatInputString,web3._extend.utils.formatInputString],
55
- outputFormatter: web3._extend.formatters.formatOutputBool
49
+ inputFormatter: [null, web3._extend.utils.toDecimal, null, null]
56
50
}),
57
51
new web3._extend.Method({
58
52
name: 'stopRPC',
@@ -114,46 +108,39 @@ web3._extend({
114
108
name: 'stopNatSpec',
115
109
call: 'admin_stopNatSpec',
116
110
params: 0,
117
- inputFormatter: [],
118
- outputFormatter: web3._extend.formatters.formatOutputBool
111
+ inputFormatter: []
119
112
}),
120
113
new web3._extend.Method({
121
114
name: 'getContractInfo',
122
115
call: 'admin_getContractInfo',
123
116
params: 1,
124
- inputFormatter: [web3._extend.utils.formatInputString],
125
- outputFormatter: function(obj) { return json.parse(obj); }
117
+ inputFormatter: [null],
126
118
}),
127
119
new web3._extend.Method({
128
120
name: 'httpGet',
129
121
call: 'admin_httpGet',
130
122
params: 2,
131
- inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString],
132
- outputFormatter: web3._extend.formatters.formatOutputString
123
+ inputFormatter: [null, null]
133
124
})
134
125
135
126
],
136
127
properties:
137
128
[
138
129
new web3._extend.Property({
139
130
name: 'nodeInfo',
140
- getter: 'admin_nodeInfo',
141
- outputFormatter: web3._extend.formatters.formatOutputString
131
+ getter: 'admin_nodeInfo'
142
132
}),
143
133
new web3._extend.Property({
144
134
name: 'peers',
145
- getter: 'admin_peers',
146
- outputFormatter: function(obj) { return obj; }
135
+ getter: 'admin_peers'
147
136
}),
148
137
new web3._extend.Property({
149
138
name: 'datadir',
150
- getter: 'admin_datadir',
151
- outputFormatter: web3._extend.formatters.formatOutputString
139
+ getter: 'admin_datadir'
152
140
}),
153
141
new web3._extend.Property({
154
142
name: 'chainSyncStatus',
155
- getter: 'admin_chainSyncStatus',
156
- outputFormatter: function(obj) { return obj; }
143
+ getter: 'admin_chainSyncStatus'
157
144
})
158
145
]
159
146
});
0 commit comments