New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ethrpc

Package Overview
Dependencies
Maintainers
1
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethrpc - npm Package Compare versions

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc