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

@types/web3

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/web3 - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

0

web3/eth/abi.d.ts

@@ -0,0 +0,0 @@ export interface ABIDefinition {

31

web3/eth/accounts.d.ts

@@ -6,8 +6,12 @@ import { Tx } from "./types";

privateKey: string;
publicKey: string;
sign(data: string): MessageSignature;
signTransaction(
tx: Tx,
cb?: (err: Error, result: TxSignature) => void
): Promise<TxSignature>;
encrypt(password: string, options?: any): PrivateKey;
}
export interface Signature {
message: string;
hash: string;
messageHash: string;
r: string;

@@ -17,6 +21,13 @@ s: string;

}
export interface MessageSignature extends Signature {
message: string;
signature: string;
}
export interface TxSignature extends Signature {
rawTransaction: string;
}
export interface PrivateKey {
address: string;
Crypto: {
crypto: {
cipher: string;

@@ -48,11 +59,9 @@ ciphertext: string;

privateKey: string,
returnSignature?: boolean,
cb?: (err: Error, result: string | Signature) => void
): Promise<string> | Signature;
recoverTransaction(signature: string | Signature): string;
cb?: (err: Error, result: TxSignature) => void
): Promise<TxSignature>;
recoverTransaction(signature: string): string;
sign(
data: string,
privateKey: string,
returnSignature?: boolean
): string | Signature;
privateKey: string
): MessageSignature;
recover(

@@ -59,0 +68,0 @@ sigOrHash: string | Signature,

@@ -0,0 +0,0 @@ import { Callback, EventLog, EventEmitter } from "../types";

@@ -0,0 +0,0 @@ import BigNumber = require("bn.js");

@@ -0,0 +0,0 @@ import { Callback } from "../types";

@@ -0,0 +0,0 @@ // Type definitions for web3 1.0

{
"name": "@types/web3",
"version": "1.0.6",
"version": "1.0.7",
"description": "TypeScript definitions for web3",

@@ -103,4 +103,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "c6f42430c2426912ff7e6231c86bf91fdd68dc44868cfd9668218dcb03e95a76",
"typesPublisherContentHash": "8ac323d1ec086c586f030b3fb6f04e2e2bbe3e4dabf95ecdebdb6b7bd686820e",
"typeScriptVersion": "2.4"
}

@@ -0,0 +0,0 @@ import { TransactionReceipt } from "./types";

@@ -0,0 +0,0 @@ interface JsonRPCRequest {

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 19 Sep 2018 16:39:29 GMT
* Last updated: Mon, 08 Oct 2018 17:40:37 GMT
* Dependencies: bn.js, underscore

@@ -14,0 +14,0 @@ * Global values: none

@@ -0,0 +0,0 @@ export type Callback<T> = (error: Error, result: T) => void;

@@ -0,0 +0,0 @@ import BigNumber = require("bn.js");

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