Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@truffle/blockchain-utils

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@truffle/blockchain-utils - npm Package Compare versions

Comparing version 0.0.17-alphaTez.0 to 0.0.17

14

index.ts

@@ -0,3 +1,3 @@

import { Provider, Callback, JsonRPCResponse } from "web3/providers";
import { parsedUriObject } from "typings";
import { Callback, JsonRpcResponse, Provider } from "@truffle/provider";

@@ -8,3 +8,3 @@ const Blockchain = {

provider: Provider,
callback: Callback<JsonRpcResponse>
callback: Callback<JsonRPCResponse>
) {

@@ -26,3 +26,3 @@ const params = [blockNumber, true];

provider: Provider,
callback: Callback<JsonRpcResponse>
callback: Callback<JsonRPCResponse>
) {

@@ -61,3 +61,3 @@ const params = [blockHash, true];

provider,
(err: Error, { result }: JsonRpcResponse) => {
(err: Error, { result }: JsonRPCResponse) => {
if (err) return callback(err);

@@ -69,3 +69,3 @@ genesis = result;

provider,
(err: Error, { result }: JsonRpcResponse) => {
(err: Error, { result }: JsonRPCResponse) => {
if (err) return callback(err);

@@ -93,3 +93,3 @@ latest = result;

provider,
(err: Error, { result }: JsonRpcResponse) => {
(err: Error, { result }: JsonRPCResponse) => {
if (err) return callback(err);

@@ -102,3 +102,3 @@ const block = result;

provider,
(err: Error, { result }: JsonRpcResponse) => {
(err: Error, { result }: JsonRPCResponse) => {
// Treat an error as if the block didn't exist. This is because

@@ -105,0 +105,0 @@ // some clients respond differently.

@@ -11,3 +11,3 @@ {

},
"version": "0.0.17-alphaTez.0",
"version": "0.0.17",
"main": "dist/index.js",

@@ -24,2 +24,3 @@ "scripts": {

"@types/node": "^12.12.5",
"@types/web3": "1.0.19",
"mocha": "5.2.0",

@@ -37,6 +38,3 @@ "ts-node": "^8.3.0",

},
"dependencies": {
"@truffle/provider": "^0.2.4-alphaTez.0"
},
"gitHead": "f3a5706949563228f5e04445061569007bc3f792"
"gitHead": "6829f4a137d648efb1cdcad81c50174146e3b8ae"
}

@@ -13,5 +13,5 @@ {

"paths": {
"net": [
"../../node_modules/@types/node",
"node_modules/@types/node"
"web3": [
"../../node_modules/@types/web3/index",
"node_modules/web3/index"
]

@@ -22,4 +22,5 @@ },

"./typings",
"../../**/node_modules/@types/mocha",
"../../**/node_modules/@types/assert"
"../../node_modules/@types/mocha",
"../../node_modules/@types/web3",
"../../node_modules/@types/assert"
]

@@ -26,0 +27,0 @@ },

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