internal/web3ext: rm unused modules (#30532)

Remove console extensions for already deleted API namespaces (les, vflux and ethash).
This commit is contained in:
Sina M 2024-10-01 18:27:25 +02:00 committed by GitHub
parent eff0bed91b
commit 6416813cbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 116 deletions

View File

@ -20,7 +20,6 @@ package web3ext
var Modules = map[string]string{ var Modules = map[string]string{
"admin": AdminJs, "admin": AdminJs,
"clique": CliqueJs, "clique": CliqueJs,
"ethash": EthashJs,
"debug": DebugJs, "debug": DebugJs,
"eth": EthJs, "eth": EthJs,
"miner": MinerJs, "miner": MinerJs,
@ -28,8 +27,6 @@ var Modules = map[string]string{
"personal": PersonalJs, "personal": PersonalJs,
"rpc": RpcJs, "rpc": RpcJs,
"txpool": TxpoolJs, "txpool": TxpoolJs,
"les": LESJs,
"vflux": VfluxJs,
"dev": DevJs, "dev": DevJs,
} }
@ -90,34 +87,6 @@ web3._extend({
}); });
` `
const EthashJs = `
web3._extend({
property: 'ethash',
methods: [
new web3._extend.Method({
name: 'getWork',
call: 'ethash_getWork',
params: 0
}),
new web3._extend.Method({
name: 'getHashrate',
call: 'ethash_getHashrate',
params: 0
}),
new web3._extend.Method({
name: 'submitWork',
call: 'ethash_submitWork',
params: 3,
}),
new web3._extend.Method({
name: 'submitHashrate',
call: 'ethash_submitHashrate',
params: 2,
}),
]
});
`
const AdminJs = ` const AdminJs = `
web3._extend({ web3._extend({
property: 'admin', property: 'admin',
@ -790,91 +759,6 @@ web3._extend({
}); });
` `
const LESJs = `
web3._extend({
property: 'les',
methods:
[
new web3._extend.Method({
name: 'getCheckpoint',
call: 'les_getCheckpoint',
params: 1
}),
new web3._extend.Method({
name: 'clientInfo',
call: 'les_clientInfo',
params: 1
}),
new web3._extend.Method({
name: 'priorityClientInfo',
call: 'les_priorityClientInfo',
params: 3
}),
new web3._extend.Method({
name: 'setClientParams',
call: 'les_setClientParams',
params: 2
}),
new web3._extend.Method({
name: 'setDefaultParams',
call: 'les_setDefaultParams',
params: 1
}),
new web3._extend.Method({
name: 'addBalance',
call: 'les_addBalance',
params: 2
}),
],
properties:
[
new web3._extend.Property({
name: 'latestCheckpoint',
getter: 'les_latestCheckpoint'
}),
new web3._extend.Property({
name: 'checkpointContractAddress',
getter: 'les_getCheckpointContractAddress'
}),
new web3._extend.Property({
name: 'serverInfo',
getter: 'les_serverInfo'
}),
]
});
`
const VfluxJs = `
web3._extend({
property: 'vflux',
methods:
[
new web3._extend.Method({
name: 'distribution',
call: 'vflux_distribution',
params: 2
}),
new web3._extend.Method({
name: 'timeout',
call: 'vflux_timeout',
params: 2
}),
new web3._extend.Method({
name: 'value',
call: 'vflux_value',
params: 2
}),
],
properties:
[
new web3._extend.Property({
name: 'requestStats',
getter: 'vflux_requestStats'
}),
]
});
`
const DevJs = ` const DevJs = `
web3._extend({ web3._extend({
property: 'dev', property: 'dev',