mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
remove 2 commands XDPoS.propose & XDPoS.discard
This commit is contained in:
parent
b2593aa0c3
commit
c8c71dc500
1 changed files with 41 additions and 3 deletions
|
|
@ -20,7 +20,8 @@ package web3ext
|
||||||
var Modules = map[string]string{
|
var Modules = map[string]string{
|
||||||
"admin": Admin_JS,
|
"admin": Admin_JS,
|
||||||
"chequebook": Chequebook_JS,
|
"chequebook": Chequebook_JS,
|
||||||
"clique": clique_JS,
|
"clique": Clique_JS,
|
||||||
|
"XDPoS": XDPoS_JS,
|
||||||
"debug": Debug_JS,
|
"debug": Debug_JS,
|
||||||
"eth": Eth_JS,
|
"eth": Eth_JS,
|
||||||
"miner": Miner_JS,
|
"miner": Miner_JS,
|
||||||
|
|
@ -63,7 +64,7 @@ web3._extend({
|
||||||
});
|
});
|
||||||
`
|
`
|
||||||
|
|
||||||
const clique_JS = `
|
const Clique_JS = `
|
||||||
web3._extend({
|
web3._extend({
|
||||||
property: 'clique',
|
property: 'clique',
|
||||||
methods: [
|
methods: [
|
||||||
|
|
@ -109,6 +110,43 @@ web3._extend({
|
||||||
});
|
});
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const XDPoS_JS = `
|
||||||
|
web3._extend({
|
||||||
|
property: 'XDPoS',
|
||||||
|
methods: [
|
||||||
|
new web3._extend.Method({
|
||||||
|
name: 'getSnapshot',
|
||||||
|
call: 'XDPoS_getSnapshot',
|
||||||
|
params: 1,
|
||||||
|
inputFormatter: [null]
|
||||||
|
}),
|
||||||
|
new web3._extend.Method({
|
||||||
|
name: 'getSnapshotAtHash',
|
||||||
|
call: 'XDPoS_getSnapshotAtHash',
|
||||||
|
params: 1
|
||||||
|
}),
|
||||||
|
new web3._extend.Method({
|
||||||
|
name: 'getSigners',
|
||||||
|
call: 'XDPoS_getSigners',
|
||||||
|
params: 1,
|
||||||
|
inputFormatter: [null]
|
||||||
|
}),
|
||||||
|
new web3._extend.Method({
|
||||||
|
name: 'getSignersAtHash',
|
||||||
|
call: 'XDPoS_getSignersAtHash',
|
||||||
|
params: 1
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
properties: [
|
||||||
|
new web3._extend.Property({
|
||||||
|
name: 'proposals',
|
||||||
|
getter: 'XDPoS_proposals'
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
});
|
||||||
|
`
|
||||||
|
|
||||||
|
|
||||||
const Admin_JS = `
|
const Admin_JS = `
|
||||||
web3._extend({
|
web3._extend({
|
||||||
property: 'admin',
|
property: 'admin',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue