Comparing version 0.7.1 to 0.7.2
47
index.js
@@ -542,2 +542,18 @@ /** | ||
miner: function (command, params, f) { | ||
return this.broadcast(this.marshal(command, params, "miner_"), f); | ||
}, | ||
admin: function (command, params, f) { | ||
return this.broadcast(this.marshal(command, params, "admin_"), f); | ||
}, | ||
personal: function (command, params, f) { | ||
return this.broadcast(this.marshal(command, params, "personal_"), f); | ||
}, | ||
txpool: function (command, params, f) { | ||
return this.broadcast(this.marshal(command, params, "txpool_"), f); | ||
}, | ||
sha3: function (data, isHex) { | ||
@@ -759,13 +775,22 @@ if (isHex) data = abi.decode_hex(data); | ||
var startBlock, endBlock, self = this; | ||
(function fastforward() { | ||
self.blockNumber(function (blockNumber) { | ||
blockNumber = parseInt(blockNumber); | ||
if (startBlock === undefined) { | ||
startBlock = blockNumber; | ||
endBlock = blockNumber + parseInt(blocks); | ||
} | ||
if (blockNumber >= endBlock) return callback(endBlock); | ||
setTimeout(fastforward, 500); | ||
}); | ||
})(); | ||
this.miner("start", [], function (mining) { | ||
if (!mining || mining.error) { | ||
self.miner("stop", [], function () { callback(mining); }); | ||
} | ||
(function fastforward() { | ||
self.blockNumber(function (blockNumber) { | ||
blockNumber = parseInt(blockNumber); | ||
if (startBlock === undefined) { | ||
startBlock = blockNumber; | ||
endBlock = blockNumber + parseInt(blocks); | ||
} | ||
if (blockNumber >= endBlock) { | ||
return self.miner("stop", [], function () { | ||
callback(endBlock); | ||
}); | ||
} | ||
setTimeout(fastforward, 500); | ||
}); | ||
})(); | ||
}); | ||
}, | ||
@@ -772,0 +797,0 @@ |
{ | ||
"name": "ethrpc", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Ethereum JSON RPC", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"async": "^1.4.2", | ||
"augur-abi": "^0.2.7", | ||
"augur-abi": "^0.3.0", | ||
"augur-contracts": "AugurProject/augur-contracts", | ||
@@ -26,0 +26,0 @@ "bignumber.js": "^2.0.7", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
616704
11479
+ Addedaugur-abi@0.3.6(transitive)
- Removedaugur-abi@0.2.7(transitive)
Updatedaugur-abi@^0.3.0