@types/web3
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -0,0 +0,0 @@ export interface ABIDefinition { |
@@ -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"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
780
28240