good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
41f35d79
Commit
41f35d79
authored
Mar 2, 2016
by
Jeffrey Wilcke
Browse files
Options
Downloads
Plain Diff
Merge pull request #2280 from bas-vk/js-cleanup
console: cleanup old autocompletations relics
parents
5adc461d
789b9a9f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
rpc/doc.go
+0
-126
0 additions, 126 deletions
rpc/doc.go
rpc/javascript.go
+4
-42
4 additions, 42 deletions
rpc/javascript.go
with
4 additions
and
168 deletions
rpc/doc.go
+
0
−
126
View file @
41f35d79
...
...
@@ -100,129 +100,3 @@ Subscriptions are deleted when:
- the connection which was used to create the subscription is closed
*/
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"
,
},
}
)
This diff is collapsed.
Click to expand it.
rpc/javascript.go
+
4
−
42
View file @
41f35d79
...
...
@@ -22,7 +22,6 @@ var (
"personal"
:
Personal_JS
,
"txpool"
:
TxPool_JS
,
"admin"
:
Admin_JS
,
"db"
:
Db_JS
,
"eth"
:
Eth_JS
,
"miner"
:
Miner_JS
,
"debug"
:
Debug_JS
,
...
...
@@ -117,12 +116,6 @@ web3._extend({
call: 'admin_sleepBlocks',
params: 2
}),
new web3._extend.Method({
name: 'verbosity',
call: 'admin_verbosity',
params: 1,
inputFormatter: [web3._extend.utils.fromDecimal]
}),
new web3._extend.Method({
name: 'setSolc',
call: 'admin_setSolc',
...
...
@@ -217,18 +210,6 @@ web3._extend({
});
`
const
Db_JS
=
`
web3._extend({
property: 'db',
methods:
[
],
properties:
[
]
});
`
const
Eth_JS
=
`
web3._extend({
property: 'eth',
...
...
@@ -278,14 +259,7 @@ web3._extend({
const
Net_JS
=
`
web3._extend({
property: 'net',
methods:
[
new web3._extend.Method({
name: 'addPeer',
call: 'net_addPeer',
params: 1
})
],
methods: [],
properties:
[
new web3._extend.Property({
...
...
@@ -413,9 +387,7 @@ web3._extend({
params: 4
})
],
properties:
[
]
properties: []
});
`
...
...
@@ -469,24 +441,14 @@ web3._extend({
inputFormatter: [web3._extend.formatters.inputDefaultBlockNumberFormatter]
})
],
properties:
[
new web3._extend.Property({
name: 'hashrate',
getter: 'miner_hashrate',
outputFormatter: web3._extend.utils.toDecimal
})
]
properties: []
});
`
const
Shh_JS
=
`
web3._extend({
property: 'shh',
methods:
[
],
methods: [],
properties:
[
new web3._extend.Property({
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment