mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
65 lines
1.3 KiB
Go
65 lines
1.3 KiB
Go
package web3ext
|
|
|
|
// BorJs bor related apis
|
|
const BorJs = `
|
|
web3._extend({
|
|
property: 'bor',
|
|
methods: [
|
|
new web3._extend.Method({
|
|
name: 'getSnapshot',
|
|
call: 'bor_getSnapshot',
|
|
params: 1,
|
|
inputFormatter: [null]
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getAuthor',
|
|
call: 'bor_getAuthor',
|
|
params: 1,
|
|
inputFormatter: [null]
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getSnapshotProposer',
|
|
call: 'bor_getSnapshotProposer',
|
|
params: 1,
|
|
inputFormatter: [null]
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getSnapshotProposerSequence',
|
|
call: 'bor_getSnapshotProposerSequence',
|
|
params: 1,
|
|
inputFormatter: [null]
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getSnapshotAtHash',
|
|
call: 'bor_getSnapshotAtHash',
|
|
params: 1
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getSigners',
|
|
call: 'bor_getSigners',
|
|
params: 1,
|
|
inputFormatter: [null]
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getSignersAtHash',
|
|
call: 'bor_getSignersAtHash',
|
|
params: 1
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getCurrentProposer',
|
|
call: 'bor_getCurrentProposer',
|
|
params: 0
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getCurrentValidators',
|
|
call: 'bor_getCurrentValidators',
|
|
params: 0
|
|
}),
|
|
new web3._extend.Method({
|
|
name: 'getRootHash',
|
|
call: 'bor_getRootHash',
|
|
params: 2,
|
|
}),
|
|
]
|
|
});
|
|
`
|