mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
Remove Bzz_JS extension for web3
This commit is contained in:
parent
96778a1c21
commit
31160ab977
1 changed files with 0 additions and 69 deletions
|
|
@ -19,7 +19,6 @@ package web3ext
|
||||||
|
|
||||||
var Modules = map[string]string{
|
var Modules = map[string]string{
|
||||||
"admin": Admin_JS,
|
"admin": Admin_JS,
|
||||||
"bzz": Bzz_JS,
|
|
||||||
"chequebook": Chequebook_JS,
|
"chequebook": Chequebook_JS,
|
||||||
"debug": Debug_JS,
|
"debug": Debug_JS,
|
||||||
"ens": ENS_JS,
|
"ens": ENS_JS,
|
||||||
|
|
@ -32,74 +31,6 @@ var Modules = map[string]string{
|
||||||
"txpool": TxPool_JS,
|
"txpool": TxPool_JS,
|
||||||
}
|
}
|
||||||
|
|
||||||
const Bzz_JS = `
|
|
||||||
web3._extend({
|
|
||||||
property: 'bzz',
|
|
||||||
methods:
|
|
||||||
[
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'syncEnabled',
|
|
||||||
call: 'bzz_syncEnabled',
|
|
||||||
params: 1,
|
|
||||||
inputFormatter: [null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'swapEnabled',
|
|
||||||
call: 'bzz_swapEnabled',
|
|
||||||
params: 1,
|
|
||||||
inputFormatter: [null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'download',
|
|
||||||
call: 'bzz_download',
|
|
||||||
params: 2,
|
|
||||||
inputFormatter: [null, null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'upload',
|
|
||||||
call: 'bzz_upload',
|
|
||||||
params: 2,
|
|
||||||
inputFormatter: [null, null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'resolve',
|
|
||||||
call: 'bzz_resolve',
|
|
||||||
params: 1,
|
|
||||||
inputFormatter: [null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'get',
|
|
||||||
call: 'bzz_get',
|
|
||||||
params: 1,
|
|
||||||
inputFormatter: [null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'put',
|
|
||||||
call: 'bzz_put',
|
|
||||||
params: 2,
|
|
||||||
inputFormatter: [null, null]
|
|
||||||
}),
|
|
||||||
new web3._extend.Method({
|
|
||||||
name: 'modify',
|
|
||||||
call: 'bzz_modify',
|
|
||||||
params: 4,
|
|
||||||
inputFormatter: [null, null, null, null]
|
|
||||||
})
|
|
||||||
],
|
|
||||||
properties:
|
|
||||||
[
|
|
||||||
new web3._extend.Property({
|
|
||||||
name: 'hive',
|
|
||||||
getter: 'bzz_hive'
|
|
||||||
}),
|
|
||||||
new web3._extend.Property({
|
|
||||||
name: 'info',
|
|
||||||
getter: 'bzz_info',
|
|
||||||
}),
|
|
||||||
]
|
|
||||||
});
|
|
||||||
`
|
|
||||||
|
|
||||||
const ENS_JS = `
|
const ENS_JS = `
|
||||||
web3._extend({
|
web3._extend({
|
||||||
property: 'ens',
|
property: 'ens',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue