mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
commit
ae7762a91a
15
dist/web3-light.js
vendored
15
dist/web3-light.js
vendored
@ -1163,6 +1163,7 @@ var toAddress = function (address) {
|
||||
return '0x' + padLeft(toHex(address).substr(2), 40);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if object is BigNumber, otherwise false
|
||||
*
|
||||
@ -1987,6 +1988,18 @@ var compileSerpent = new Method({
|
||||
params: 1
|
||||
});
|
||||
|
||||
var submitWork = new Method({
|
||||
name: 'submitWork',
|
||||
call: 'eth_submitWork',
|
||||
params: 3
|
||||
});
|
||||
|
||||
var getWork = new Method({
|
||||
name: 'getWork',
|
||||
call: 'eth_getWork',
|
||||
params: 0
|
||||
});
|
||||
|
||||
var methods = [
|
||||
getBalance,
|
||||
getStorageAt,
|
||||
@ -2004,6 +2017,8 @@ var methods = [
|
||||
compileSolidity,
|
||||
compileLLL,
|
||||
compileSerpent,
|
||||
submitWork,
|
||||
getWork
|
||||
];
|
||||
|
||||
/// @returns an array of objects describing web3.eth api properties
|
||||
|
6
dist/web3-light.js.map
vendored
6
dist/web3-light.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/web3-light.min.js
vendored
4
dist/web3-light.min.js
vendored
File diff suppressed because one or more lines are too long
15
dist/web3.js
vendored
15
dist/web3.js
vendored
@ -1163,6 +1163,7 @@ var toAddress = function (address) {
|
||||
return '0x' + padLeft(toHex(address).substr(2), 40);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if object is BigNumber, otherwise false
|
||||
*
|
||||
@ -1987,6 +1988,18 @@ var compileSerpent = new Method({
|
||||
params: 1
|
||||
});
|
||||
|
||||
var submitWork = new Method({
|
||||
name: 'submitWork',
|
||||
call: 'eth_submitWork',
|
||||
params: 3
|
||||
});
|
||||
|
||||
var getWork = new Method({
|
||||
name: 'getWork',
|
||||
call: 'eth_getWork',
|
||||
params: 0
|
||||
});
|
||||
|
||||
var methods = [
|
||||
getBalance,
|
||||
getStorageAt,
|
||||
@ -2004,6 +2017,8 @@ var methods = [
|
||||
compileSolidity,
|
||||
compileLLL,
|
||||
compileSerpent,
|
||||
submitWork,
|
||||
getWork
|
||||
];
|
||||
|
||||
/// @returns an array of objects describing web3.eth api properties
|
||||
|
6
dist/web3.js.map
vendored
6
dist/web3.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/web3.min.js
vendored
4
dist/web3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -363,6 +363,7 @@ var toAddress = function (address) {
|
||||
return '0x' + padLeft(toHex(address).substr(2), 40);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if object is BigNumber, otherwise false
|
||||
*
|
||||
|
@ -192,6 +192,18 @@ var compileSerpent = new Method({
|
||||
params: 1
|
||||
});
|
||||
|
||||
var submitWork = new Method({
|
||||
name: 'submitWork',
|
||||
call: 'eth_submitWork',
|
||||
params: 3
|
||||
});
|
||||
|
||||
var getWork = new Method({
|
||||
name: 'getWork',
|
||||
call: 'eth_getWork',
|
||||
params: 0
|
||||
});
|
||||
|
||||
var methods = [
|
||||
getBalance,
|
||||
getStorageAt,
|
||||
@ -209,6 +221,8 @@ var methods = [
|
||||
compileSolidity,
|
||||
compileLLL,
|
||||
compileSerpent,
|
||||
submitWork,
|
||||
getWork
|
||||
];
|
||||
|
||||
/// @returns an array of objects describing web3.eth api properties
|
||||
|
16
test/web3.eth.getWork.js
Normal file
16
test/web3.eth.getWork.js
Normal file
@ -0,0 +1,16 @@
|
||||
var chai = require('chai');
|
||||
var web3 = require('../index');
|
||||
var testMethod = require('./helpers/test.method.js');
|
||||
|
||||
var method = 'getWork';
|
||||
|
||||
var tests = [{
|
||||
args: [],
|
||||
formattedArgs: [],
|
||||
result: true,
|
||||
formattedResult: true,
|
||||
call: 'eth_'+ method
|
||||
}];
|
||||
|
||||
testMethod.runTests('eth', method, tests);
|
||||
|
17
test/web3.eth.submitWork.js
Normal file
17
test/web3.eth.submitWork.js
Normal file
@ -0,0 +1,17 @@
|
||||
var chai = require('chai');
|
||||
var web3 = require('../index');
|
||||
var testMethod = require('./helpers/test.method.js');
|
||||
|
||||
var method = 'submitWork';
|
||||
|
||||
var tests = [
|
||||
{
|
||||
args: ['0x567890abcdef5555', '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef', '0xcdef1234567890abcdef1234567890abcdef0x1234567890abcf1234567890ab'],
|
||||
formattedArgs: ['0x567890abcdef5555', '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef', '0xcdef1234567890abcdef1234567890abcdef0x1234567890abcf1234567890ab'],
|
||||
result: true,
|
||||
formattedResult: true,
|
||||
call: 'eth_'+ method
|
||||
}];
|
||||
|
||||
testMethod.runTests('eth', method, tests);
|
||||
|
Loading…
x
Reference in New Issue
Block a user