mirror of https://github.com/status-im/web3.js.git
build files again
This commit is contained in:
parent
539ef7bdcf
commit
97f6e7de0b
|
@ -1796,7 +1796,7 @@ module.exports = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Web3
|
* Web3
|
||||||
*
|
*
|
||||||
* @module web3
|
* @module web3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1850,16 +1850,16 @@ var uncleCountCall = function (args) {
|
||||||
/// @returns an array of objects describing web3.eth api methods
|
/// @returns an array of objects describing web3.eth api methods
|
||||||
|
|
||||||
var getBalance = new Method({
|
var getBalance = new Method({
|
||||||
name: 'getBalance',
|
name: 'getBalance',
|
||||||
call: 'eth_getBalance',
|
call: 'eth_getBalance',
|
||||||
params: 2,
|
params: 2,
|
||||||
inputFormatter: [utils.toAddress, formatters.inputDefaultBlockNumberFormatter],
|
inputFormatter: [utils.toAddress, formatters.inputDefaultBlockNumberFormatter],
|
||||||
outputFormatter: formatters.outputBigNumberFormatter
|
outputFormatter: formatters.outputBigNumberFormatter
|
||||||
});
|
});
|
||||||
|
|
||||||
var getStorageAt = new Method({
|
var getStorageAt = new Method({
|
||||||
name: 'getStorageAt',
|
name: 'getStorageAt',
|
||||||
call: 'eth_getStorageAt',
|
call: 'eth_getStorageAt',
|
||||||
params: 3,
|
params: 3,
|
||||||
inputFormatter: [null, utils.toHex, formatters.inputDefaultBlockNumberFormatter]
|
inputFormatter: [null, utils.toHex, formatters.inputDefaultBlockNumberFormatter]
|
||||||
});
|
});
|
||||||
|
@ -1872,7 +1872,7 @@ var getCode = new Method({
|
||||||
});
|
});
|
||||||
|
|
||||||
var getBlock = new Method({
|
var getBlock = new Method({
|
||||||
name: 'getBlock',
|
name: 'getBlock',
|
||||||
call: blockCall,
|
call: blockCall,
|
||||||
params: 2,
|
params: 2,
|
||||||
inputFormatter: [formatters.inputBlockNumberFormatter, function (val) { return !!val; }],
|
inputFormatter: [formatters.inputBlockNumberFormatter, function (val) { return !!val; }],
|
||||||
|
@ -1997,6 +1997,11 @@ var properties = [
|
||||||
name: 'mining',
|
name: 'mining',
|
||||||
getter: 'eth_mining'
|
getter: 'eth_mining'
|
||||||
}),
|
}),
|
||||||
|
new Property({
|
||||||
|
name: 'hashrate',
|
||||||
|
getter: 'eth_hashrate',
|
||||||
|
outputFormatter: utils.toDecimal
|
||||||
|
}),
|
||||||
new Property({
|
new Property({
|
||||||
name: 'gasPrice',
|
name: 'gasPrice',
|
||||||
getter: 'eth_gasPrice',
|
getter: 'eth_gasPrice',
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1796,7 +1796,7 @@ module.exports = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Web3
|
* Web3
|
||||||
*
|
*
|
||||||
* @module web3
|
* @module web3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1850,16 +1850,16 @@ var uncleCountCall = function (args) {
|
||||||
/// @returns an array of objects describing web3.eth api methods
|
/// @returns an array of objects describing web3.eth api methods
|
||||||
|
|
||||||
var getBalance = new Method({
|
var getBalance = new Method({
|
||||||
name: 'getBalance',
|
name: 'getBalance',
|
||||||
call: 'eth_getBalance',
|
call: 'eth_getBalance',
|
||||||
params: 2,
|
params: 2,
|
||||||
inputFormatter: [utils.toAddress, formatters.inputDefaultBlockNumberFormatter],
|
inputFormatter: [utils.toAddress, formatters.inputDefaultBlockNumberFormatter],
|
||||||
outputFormatter: formatters.outputBigNumberFormatter
|
outputFormatter: formatters.outputBigNumberFormatter
|
||||||
});
|
});
|
||||||
|
|
||||||
var getStorageAt = new Method({
|
var getStorageAt = new Method({
|
||||||
name: 'getStorageAt',
|
name: 'getStorageAt',
|
||||||
call: 'eth_getStorageAt',
|
call: 'eth_getStorageAt',
|
||||||
params: 3,
|
params: 3,
|
||||||
inputFormatter: [null, utils.toHex, formatters.inputDefaultBlockNumberFormatter]
|
inputFormatter: [null, utils.toHex, formatters.inputDefaultBlockNumberFormatter]
|
||||||
});
|
});
|
||||||
|
@ -1872,7 +1872,7 @@ var getCode = new Method({
|
||||||
});
|
});
|
||||||
|
|
||||||
var getBlock = new Method({
|
var getBlock = new Method({
|
||||||
name: 'getBlock',
|
name: 'getBlock',
|
||||||
call: blockCall,
|
call: blockCall,
|
||||||
params: 2,
|
params: 2,
|
||||||
inputFormatter: [formatters.inputBlockNumberFormatter, function (val) { return !!val; }],
|
inputFormatter: [formatters.inputBlockNumberFormatter, function (val) { return !!val; }],
|
||||||
|
@ -1997,6 +1997,11 @@ var properties = [
|
||||||
name: 'mining',
|
name: 'mining',
|
||||||
getter: 'eth_mining'
|
getter: 'eth_mining'
|
||||||
}),
|
}),
|
||||||
|
new Property({
|
||||||
|
name: 'hashrate',
|
||||||
|
getter: 'eth_hashrate',
|
||||||
|
outputFormatter: utils.toDecimal
|
||||||
|
}),
|
||||||
new Property({
|
new Property({
|
||||||
name: 'gasPrice',
|
name: 'gasPrice',
|
||||||
getter: 'eth_gasPrice',
|
getter: 'eth_gasPrice',
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue