Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
789b9a9f
Commit
789b9a9f
authored
Mar 01, 2016
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: cleanup old autocompletations relics
parent
8255afbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
168 deletions
+4
-168
doc.go
rpc/doc.go
+0
-126
javascript.go
rpc/javascript.go
+4
-42
No files found.
rpc/doc.go
View file @
789b9a9f
...
@@ -100,129 +100,3 @@ Subscriptions are deleted when:
...
@@ -100,129 +100,3 @@ Subscriptions are deleted when:
- the connection which was used to create the subscription is closed
- the connection which was used to create the subscription is closed
*/
*/
package
rpc
package
rpc
var
(
// Mapping between the different methods each api supports
AutoCompletion
=
map
[
string
][]
string
{
"admin"
:
[]
string
{
"addPeer"
,
"datadir"
,
"enableUserAgent"
,
"exportChain"
,
"getContractInfo"
,
"httpGet"
,
"importChain"
,
"nodeInfo"
,
"peers"
,
"register"
,
"registerUrl"
,
"saveInfo"
,
"setGlobalRegistrar"
,
"setHashReg"
,
"setUrlHint"
,
"setSolc"
,
"sleep"
,
"sleepBlocks"
,
"startNatSpec"
,
"startRPC"
,
"stopNatSpec"
,
"stopRPC"
,
"verbosity"
,
},
"db"
:
[]
string
{
"getString"
,
"putString"
,
"getHex"
,
"putHex"
,
},
"debug"
:
[]
string
{
"dumpBlock"
,
"getBlockRlp"
,
"metrics"
,
"printBlock"
,
"processBlock"
,
"seedHash"
,
"setHead"
,
},
"eth"
:
[]
string
{
"accounts"
,
"blockNumber"
,
"call"
,
"contract"
,
"coinbase"
,
"compile.lll"
,
"compile.serpent"
,
"compile.solidity"
,
"contract"
,
"defaultAccount"
,
"defaultBlock"
,
"estimateGas"
,
"filter"
,
"getBalance"
,
"getBlock"
,
"getBlockTransactionCount"
,
"getBlockUncleCount"
,
"getCode"
,
"getNatSpec"
,
"getCompilers"
,
"gasPrice"
,
"getStorageAt"
,
"getTransaction"
,
"getTransactionCount"
,
"getTransactionFromBlock"
,
"getTransactionReceipt"
,
"getUncle"
,
"hashrate"
,
"mining"
,
"namereg"
,
"pendingTransactions"
,
"resend"
,
"sendRawTransaction"
,
"sendTransaction"
,
"sign"
,
"syncing"
,
},
"miner"
:
[]
string
{
"hashrate"
,
"makeDAG"
,
"setEtherbase"
,
"setExtra"
,
"setGasPrice"
,
"startAutoDAG"
,
"start"
,
"stopAutoDAG"
,
"stop"
,
},
"net"
:
[]
string
{
"peerCount"
,
"listening"
,
},
"personal"
:
[]
string
{
"listAccounts"
,
"newAccount"
,
"unlockAccount"
,
},
"shh"
:
[]
string
{
"post"
,
"newIdentity"
,
"hasIdentity"
,
"newGroup"
,
"addToGroup"
,
"filter"
,
},
"txpool"
:
[]
string
{
"status"
,
},
"web3"
:
[]
string
{
"sha3"
,
"version"
,
"fromWei"
,
"toWei"
,
"toHex"
,
"toAscii"
,
"fromAscii"
,
"toBigNumber"
,
"isAddress"
,
},
}
)
rpc/javascript.go
View file @
789b9a9f
...
@@ -22,7 +22,6 @@ var (
...
@@ -22,7 +22,6 @@ var (
"personal"
:
Personal_JS
,
"personal"
:
Personal_JS
,
"txpool"
:
TxPool_JS
,
"txpool"
:
TxPool_JS
,
"admin"
:
Admin_JS
,
"admin"
:
Admin_JS
,
"db"
:
Db_JS
,
"eth"
:
Eth_JS
,
"eth"
:
Eth_JS
,
"miner"
:
Miner_JS
,
"miner"
:
Miner_JS
,
"debug"
:
Debug_JS
,
"debug"
:
Debug_JS
,
...
@@ -117,12 +116,6 @@ web3._extend({
...
@@ -117,12 +116,6 @@ web3._extend({
call: 'admin_sleepBlocks',
call: 'admin_sleepBlocks',
params: 2
params: 2
}),
}),
new web3._extend.Method({
name: 'verbosity',
call: 'admin_verbosity',
params: 1,
inputFormatter: [web3._extend.utils.fromDecimal]
}),
new web3._extend.Method({
new web3._extend.Method({
name: 'setSolc',
name: 'setSolc',
call: 'admin_setSolc',
call: 'admin_setSolc',
...
@@ -217,18 +210,6 @@ web3._extend({
...
@@ -217,18 +210,6 @@ web3._extend({
});
});
`
`
const
Db_JS
=
`
web3._extend({
property: 'db',
methods:
[
],
properties:
[
]
});
`
const
Eth_JS
=
`
const
Eth_JS
=
`
web3._extend({
web3._extend({
property: 'eth',
property: 'eth',
...
@@ -278,14 +259,7 @@ web3._extend({
...
@@ -278,14 +259,7 @@ web3._extend({
const
Net_JS
=
`
const
Net_JS
=
`
web3._extend({
web3._extend({
property: 'net',
property: 'net',
methods:
methods: [],
[
new web3._extend.Method({
name: 'addPeer',
call: 'net_addPeer',
params: 1
})
],
properties:
properties:
[
[
new web3._extend.Property({
new web3._extend.Property({
...
@@ -413,9 +387,7 @@ web3._extend({
...
@@ -413,9 +387,7 @@ web3._extend({
params: 4
params: 4
})
})
],
],
properties:
properties: []
[
]
});
});
`
`
...
@@ -469,24 +441,14 @@ web3._extend({
...
@@ -469,24 +441,14 @@ web3._extend({
inputFormatter: [web3._extend.formatters.inputDefaultBlockNumberFormatter]
inputFormatter: [web3._extend.formatters.inputDefaultBlockNumberFormatter]
})
})
],
],
properties:
properties: []
[
new web3._extend.Property({
name: 'hashrate',
getter: 'miner_hashrate',
outputFormatter: web3._extend.utils.toDecimal
})
]
});
});
`
`
const
Shh_JS
=
`
const
Shh_JS
=
`
web3._extend({
web3._extend({
property: 'shh',
property: 'shh',
methods:
methods: [],
[
],
properties:
properties:
[
[
new web3._extend.Property({
new web3._extend.Property({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment