mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-13 20:45:05 +00:00
Add definition file for bn.js (#317)
* Add definition file for bn.js * Remove types-bn * make isBN a static property * Swap out bignumber for bn in vendor * Remove types-bn
This commit is contained in:
parent
70a2b3ca9a
commit
346f777976
540
common/typescript/bn.d.ts
vendored
Normal file
540
common/typescript/bn.d.ts
vendored
Normal file
@ -0,0 +1,540 @@
|
||||
declare module 'bn.js' {
|
||||
import { Buffer } from 'buffer';
|
||||
|
||||
type Endianness = 'le' | 'be';
|
||||
type IPrimeName = 'k256' | 'p224' | 'p192' | 'p25519';
|
||||
class RedBN {
|
||||
redAdd(b: RedBN): RedBN;
|
||||
redIAdd(b: RedBN): RedBN;
|
||||
redSub(b: RedBN): RedBN;
|
||||
redISub(b: RedBN): RedBN;
|
||||
redShl(num: number): RedBN;
|
||||
redMul(b: RedBN): RedBN;
|
||||
redIMul(b: RedBN): RedBN;
|
||||
redSqr(): RedBN;
|
||||
redISqr(): RedBN;
|
||||
/**
|
||||
* @description square root modulo reduction context's prime
|
||||
*/
|
||||
redSqrt(): RedBN;
|
||||
/**
|
||||
* @description modular inverse of the number
|
||||
*/
|
||||
redInvm(): RedBN;
|
||||
redNeg(): RedBN;
|
||||
/**
|
||||
* @description modular exponentiation
|
||||
*/
|
||||
redPow(b: RedBN): RedBN;
|
||||
fromRed(): BN;
|
||||
}
|
||||
|
||||
// FIXME: not sure how to specify the reduction context here
|
||||
interface IReductionContext {
|
||||
m: number;
|
||||
prime: object;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export default class BN {
|
||||
constructor(
|
||||
number: number | string | number[] | Buffer | BN,
|
||||
base?: number,
|
||||
endian?: Endianness
|
||||
);
|
||||
/**
|
||||
* @description create a reduction context
|
||||
*/
|
||||
|
||||
static red(reductionContext: BN | IPrimeName): IReductionContext;
|
||||
/**
|
||||
* @description create a reduction context with the Montgomery trick.
|
||||
*/
|
||||
|
||||
static mont(num: BN): IReductionContext;
|
||||
/**
|
||||
* @description Convert number to red
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description returns true if the supplied object is a BN.js instance
|
||||
*/
|
||||
|
||||
static isBN(b: object): boolean;
|
||||
|
||||
toRed(reductionContext: IReductionContext): RedBN;
|
||||
/**
|
||||
* @description clone number
|
||||
*/
|
||||
|
||||
clone(): BN;
|
||||
|
||||
/**
|
||||
* @description convert to base-string and pad with zeroes
|
||||
*/
|
||||
|
||||
toString(base?: number, length?: number): string;
|
||||
|
||||
/**
|
||||
* @description convert to Javascript Number (limited to 53 bits)
|
||||
*/
|
||||
|
||||
toNumber(): number;
|
||||
|
||||
/**
|
||||
* @description convert to JSON compatible hex string (alias of toString(16))
|
||||
*/
|
||||
|
||||
toJSON(): string;
|
||||
|
||||
/**
|
||||
* @description convert to byte Array, and optionally zero pad to length, throwing if already exceeding
|
||||
*/
|
||||
|
||||
toArray(endian?: Endianness, length?: number): number[];
|
||||
|
||||
/**
|
||||
* @description convert to an instance of `type`, which must behave like an Array
|
||||
*/
|
||||
toArrayLike(
|
||||
ArrayType: Buffer | Array<any>,
|
||||
endian?: Endianness,
|
||||
length?: number
|
||||
): Buffer | Array<any>;
|
||||
|
||||
/**
|
||||
* @description convert to Node.js Buffer (if available). For compatibility with browserify and similar tools, use this instead: a.toArrayLike(Buffer, endian, length)
|
||||
*/
|
||||
toBuffer(endian?: Endianness, length?: number): Buffer;
|
||||
|
||||
/**
|
||||
* @description get number of bits occupied
|
||||
*/
|
||||
|
||||
bitLength(): number;
|
||||
|
||||
/**
|
||||
* @description return number of less-significant consequent zero bits (example: 1010000 has 4 zero bits)
|
||||
*/
|
||||
|
||||
zeroBits(): number;
|
||||
|
||||
/**
|
||||
* @description return number of bytes occupied
|
||||
*/
|
||||
|
||||
byteLength(): number;
|
||||
|
||||
/**
|
||||
* @description true if the number is negative
|
||||
*/
|
||||
|
||||
isNeg(): boolean;
|
||||
|
||||
/**
|
||||
* @description no comments
|
||||
*/
|
||||
|
||||
isEven(): boolean;
|
||||
|
||||
/**
|
||||
* @description no comments
|
||||
*/
|
||||
|
||||
isOdd(): boolean;
|
||||
|
||||
/**
|
||||
* @description no comments
|
||||
*/
|
||||
|
||||
isZero(): boolean;
|
||||
|
||||
/**
|
||||
* @description compare numbers and return `-1 (a < b)`, `0 (a == b)`, or `1 (a > b)` depending on the comparison result
|
||||
*/
|
||||
|
||||
cmp(b: BN): -1 | 0 | 1;
|
||||
|
||||
/**
|
||||
* @description compare numbers and return `-1 (a < b)`, `0 (a == b)`, or `1 (a > b)` depending on the comparison result
|
||||
*/
|
||||
|
||||
ucmp(b: BN): -1 | 0 | 1;
|
||||
|
||||
/**
|
||||
* @description compare numbers and return `-1 (a < b)`, `0 (a == b)`, or `1 (a > b)` depending on the comparison result
|
||||
*/
|
||||
|
||||
cmpn(b: number): -1 | 0 | 1;
|
||||
|
||||
/**
|
||||
* @description a less than b
|
||||
*/
|
||||
|
||||
lt(b: BN): boolean;
|
||||
|
||||
/**
|
||||
* @description a less than b
|
||||
*/
|
||||
|
||||
ltn(b: number): boolean;
|
||||
|
||||
/**
|
||||
* @description a less than or equals b
|
||||
*/
|
||||
|
||||
lte(b: BN): boolean;
|
||||
|
||||
/**
|
||||
* @description a less than or equals b
|
||||
*/
|
||||
|
||||
lten(b: number): boolean;
|
||||
|
||||
/**
|
||||
* @description a greater than b
|
||||
*/
|
||||
|
||||
gt(b: BN): boolean;
|
||||
|
||||
/**
|
||||
* @description a greater than b
|
||||
*/
|
||||
|
||||
gtn(b: number): boolean;
|
||||
|
||||
/**
|
||||
* @description a greater than or equals b
|
||||
*/
|
||||
|
||||
gte(b: BN): boolean;
|
||||
|
||||
/**
|
||||
* @description a greater than or equals b
|
||||
*/
|
||||
|
||||
gten(b: number): boolean;
|
||||
|
||||
/**
|
||||
* @description a equals b
|
||||
*/
|
||||
|
||||
eq(b: BN): boolean;
|
||||
|
||||
/**
|
||||
* @description a equals b
|
||||
*/
|
||||
|
||||
eqn(b: number): boolean;
|
||||
|
||||
/**
|
||||
* @description convert to two's complement representation, where width is bit width
|
||||
*/
|
||||
|
||||
toTwos(width: number): BN;
|
||||
|
||||
/**
|
||||
* @description convert from two's complement representation, where width is the bit width
|
||||
*/
|
||||
|
||||
fromTwos(width: number): BN;
|
||||
|
||||
/**
|
||||
* @description negate sign
|
||||
*/
|
||||
|
||||
neg(): BN;
|
||||
|
||||
/**
|
||||
* @description negate sign
|
||||
*/
|
||||
|
||||
ineg(): BN;
|
||||
|
||||
/**
|
||||
* @description absolute value
|
||||
*/
|
||||
|
||||
abs(): BN;
|
||||
|
||||
/**
|
||||
* @description absolute value
|
||||
*/
|
||||
|
||||
iabs(): BN;
|
||||
|
||||
/**
|
||||
* @description addition
|
||||
*/
|
||||
|
||||
add(b: BN): BN;
|
||||
/**
|
||||
* @description addition
|
||||
*/
|
||||
|
||||
iadd(b: BN): BN;
|
||||
addition;
|
||||
/**
|
||||
* @description addition
|
||||
*/
|
||||
|
||||
addn(b: number): BN;
|
||||
/**
|
||||
* @description addition
|
||||
*/
|
||||
|
||||
iaddn(b: number): BN;
|
||||
|
||||
/**
|
||||
* @description subtraction
|
||||
*/
|
||||
|
||||
sub(b: BN): BN;
|
||||
/**
|
||||
* @description subtraction
|
||||
*/
|
||||
|
||||
isub(b: BN): BN;
|
||||
/**
|
||||
* @description subtraction
|
||||
*/
|
||||
|
||||
subn(b: number): BN;
|
||||
/**
|
||||
* @description subtraction
|
||||
*/
|
||||
|
||||
isubn(b: number): BN;
|
||||
|
||||
/**
|
||||
* @description multiply
|
||||
*/
|
||||
|
||||
mul(b: BN): BN;
|
||||
/**
|
||||
* @description multiply
|
||||
*/
|
||||
|
||||
imul(b: BN): BN;
|
||||
/**
|
||||
* @description multiply
|
||||
*/
|
||||
|
||||
muln(b: number): BN;
|
||||
/**
|
||||
* @description multiply
|
||||
*/
|
||||
|
||||
imuln(b: number): BN;
|
||||
|
||||
/**
|
||||
* @description square
|
||||
*/
|
||||
sqr(): BN;
|
||||
/**
|
||||
* @description square
|
||||
*/
|
||||
isqr(): BN;
|
||||
|
||||
/**
|
||||
* @description raise `a` to the power of `b`
|
||||
*/
|
||||
|
||||
pow(b: BN): BN;
|
||||
|
||||
/**
|
||||
* @description divide
|
||||
*/
|
||||
div(b: BN): BN;
|
||||
/**
|
||||
* @description divide
|
||||
*/
|
||||
divn(b: number): BN;
|
||||
/**
|
||||
* @description divide
|
||||
*/
|
||||
idivn(b: number): BN;
|
||||
|
||||
/**
|
||||
* @description reduct
|
||||
*/
|
||||
|
||||
mod(b: BN): BN;
|
||||
/**
|
||||
* @description reduct
|
||||
*/
|
||||
|
||||
umod(b: BN): BN;
|
||||
/**
|
||||
* @description reduct
|
||||
*/
|
||||
|
||||
modn(b: number): BN;
|
||||
|
||||
/**
|
||||
* @description rounded division
|
||||
*/
|
||||
|
||||
divRound(b: BN): BN;
|
||||
|
||||
/**
|
||||
* @description or
|
||||
*/
|
||||
|
||||
or(b: BN): BN;
|
||||
/**
|
||||
* @description or
|
||||
*/
|
||||
|
||||
ior(b: BN): BN;
|
||||
/**
|
||||
* @description or
|
||||
*/
|
||||
|
||||
uor(b: BN): BN;
|
||||
/**
|
||||
* @description or
|
||||
*/
|
||||
|
||||
iuor(b: BN): BN;
|
||||
|
||||
/**
|
||||
* @description and
|
||||
*/
|
||||
|
||||
and(b: BN): BN;
|
||||
/**
|
||||
* @description and
|
||||
*/
|
||||
|
||||
iand(b: BN): BN;
|
||||
/**
|
||||
* @description and
|
||||
*/
|
||||
|
||||
uand(b: BN): BN;
|
||||
/**
|
||||
* @description and
|
||||
*/
|
||||
|
||||
iuand(b: BN): BN;
|
||||
/**
|
||||
* @description and (NOTE: `andln` is going to be replaced with `andn` in future)
|
||||
*/
|
||||
|
||||
andln(b: number): BN;
|
||||
/**
|
||||
* @description xor
|
||||
*/
|
||||
|
||||
xor(b: BN): BN;
|
||||
|
||||
/**
|
||||
* @description xor
|
||||
*/
|
||||
|
||||
ixor(b: BN): BN;
|
||||
/**
|
||||
* @description xor
|
||||
*/
|
||||
|
||||
uxor(b: BN): BN;
|
||||
/**
|
||||
* @description xor
|
||||
*/
|
||||
|
||||
iuxor(b: BN): BN;
|
||||
/**
|
||||
* @description set specified bit to 1
|
||||
*/
|
||||
|
||||
setn(b: number): BN;
|
||||
/**
|
||||
* @description shift left
|
||||
*/
|
||||
|
||||
shln(b: number): BN;
|
||||
/**
|
||||
* @description shift left
|
||||
*/
|
||||
|
||||
ishln(b: number): BN;
|
||||
/**
|
||||
* @description shift left
|
||||
*/
|
||||
|
||||
ushln(b: number): BN;
|
||||
/**
|
||||
* @description shift left
|
||||
*/
|
||||
|
||||
iushln(b: number): BN;
|
||||
/**
|
||||
* @description shift right
|
||||
*/
|
||||
|
||||
shrn(b: number): BN;
|
||||
|
||||
/**
|
||||
* @description shift right
|
||||
*/
|
||||
|
||||
ishrn(b: number): BN;
|
||||
/**
|
||||
* @description shift right
|
||||
*/
|
||||
|
||||
ushrn(b: number): BN;
|
||||
/**
|
||||
* @description shift right
|
||||
*/
|
||||
|
||||
iushrn(b: number): BN;
|
||||
/**
|
||||
* @description test if specified bit is set
|
||||
*/
|
||||
|
||||
testn(b: number): boolean;
|
||||
/**
|
||||
* @description clear bits with indexes higher or equal to `b`
|
||||
*/
|
||||
|
||||
maskn(b: number): BN;
|
||||
/**
|
||||
* @description clear bits with indexes higher or equal to `b`
|
||||
*/
|
||||
|
||||
imaskn(b: number): BN;
|
||||
/**
|
||||
* @description add `1 << b` to the number
|
||||
*/
|
||||
|
||||
bincn(b: number): BN;
|
||||
/**
|
||||
* @description not (for the width specified by `w`)
|
||||
*/
|
||||
|
||||
notn(w: number): BN;
|
||||
/**
|
||||
* @description not (for the width specified by `w`)
|
||||
*/
|
||||
|
||||
inotn(w: number): BN;
|
||||
|
||||
/**
|
||||
* @description GCD
|
||||
*/
|
||||
|
||||
gcd(b: BN): BN;
|
||||
/**
|
||||
* @description Extended GCD results `({ a: ..., b: ..., gcd: ... })`
|
||||
*/
|
||||
|
||||
egcd(b: BN): { a: BN; b: BN; gcd: BN };
|
||||
/**
|
||||
* @description inverse `a` modulo `b`
|
||||
*/
|
||||
|
||||
invm(b: BN): BN;
|
||||
}
|
||||
}
|
3
common/typescript/ethereumjs-tx.d.ts
vendored
3
common/typescript/ethereumjs-tx.d.ts
vendored
@ -1,6 +1,5 @@
|
||||
declare module 'ethereumjs-tx' {
|
||||
import { BigNumber } from 'bignumber.js';
|
||||
import BN = require('bn.js');
|
||||
import BN from 'bn.js';
|
||||
import { Buffer } from 'buffer';
|
||||
|
||||
/*
|
||||
|
2
common/typescript/ethereumjs-util.d.ts
vendored
2
common/typescript/ethereumjs-util.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
declare module 'ethereumjs-util' {
|
||||
import { Buffer } from 'buffer';
|
||||
import BN = require('bn.js');
|
||||
import BN from 'bn.js';
|
||||
export import rlp = require('rlp');
|
||||
|
||||
interface Signature {
|
||||
|
@ -22,5 +22,5 @@ require('moment');
|
||||
require('prop-types');
|
||||
require('qrcode');
|
||||
require('qrcode.react');
|
||||
require('bignumber.js');
|
||||
require('bn.js');
|
||||
require('classnames');
|
||||
|
917
package-lock.json
generated
917
package-lock.json
generated
@ -2350,7 +2350,6 @@
|
||||
"requires": {
|
||||
"anymatch": "1.3.2",
|
||||
"async-each": "1.0.1",
|
||||
"fsevents": "1.1.2",
|
||||
"glob-parent": "2.0.0",
|
||||
"inherits": "2.0.3",
|
||||
"is-binary-path": "1.0.1",
|
||||
@ -4653,905 +4652,6 @@
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||
"dev": true
|
||||
},
|
||||
"fsevents": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz",
|
||||
"integrity": "sha512-Sn44E5wQW4bTHXvQmvSHwqbuiXtduD6Rrjm2ZtUEGbyrig+nUH3t/QD4M4/ZXViY556TBpRgZkHLDx3JxPwxiw==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"nan": "2.6.2",
|
||||
"node-pre-gyp": "0.6.36"
|
||||
},
|
||||
"dependencies": {
|
||||
"abbrev": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"ajv": {
|
||||
"version": "4.11.8",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"co": "4.6.0",
|
||||
"json-stable-stringify": "1.0.1"
|
||||
}
|
||||
},
|
||||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"aproba": {
|
||||
"version": "1.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"are-we-there-yet": {
|
||||
"version": "1.1.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"delegates": "1.0.0",
|
||||
"readable-stream": "2.2.9"
|
||||
}
|
||||
},
|
||||
"asn1": {
|
||||
"version": "0.2.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"assert-plus": {
|
||||
"version": "0.2.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"aws-sign2": {
|
||||
"version": "0.6.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"aws4": {
|
||||
"version": "1.6.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"balanced-match": {
|
||||
"version": "0.4.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"bcrypt-pbkdf": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"tweetnacl": "0.14.5"
|
||||
}
|
||||
},
|
||||
"block-stream": {
|
||||
"version": "0.0.9",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"inherits": "2.0.3"
|
||||
}
|
||||
},
|
||||
"boom": {
|
||||
"version": "2.10.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"hoek": "2.16.3"
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.7",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "0.4.2",
|
||||
"concat-map": "0.0.1"
|
||||
}
|
||||
},
|
||||
"buffer-shims": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"caseless": {
|
||||
"version": "0.12.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"co": {
|
||||
"version": "4.6.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"code-point-at": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"combined-stream": {
|
||||
"version": "1.0.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"delayed-stream": "1.0.0"
|
||||
}
|
||||
},
|
||||
"concat-map": {
|
||||
"version": "0.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"console-control-strings": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"core-util-is": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"cryptiles": {
|
||||
"version": "2.0.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"boom": "2.10.1"
|
||||
}
|
||||
},
|
||||
"dashdash": {
|
||||
"version": "1.14.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"assert-plus": "1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"assert-plus": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "2.6.8",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"deep-extend": {
|
||||
"version": "0.4.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"delegates": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"ecc-jsbn": {
|
||||
"version": "0.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"jsbn": "0.1.1"
|
||||
}
|
||||
},
|
||||
"extend": {
|
||||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"extsprintf": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"forever-agent": {
|
||||
"version": "0.6.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"form-data": {
|
||||
"version": "2.1.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"asynckit": "0.4.0",
|
||||
"combined-stream": "1.0.5",
|
||||
"mime-types": "2.1.15"
|
||||
}
|
||||
},
|
||||
"fs.realpath": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"fstream": {
|
||||
"version": "1.0.11",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "4.1.11",
|
||||
"inherits": "2.0.3",
|
||||
"mkdirp": "0.5.1",
|
||||
"rimraf": "2.6.1"
|
||||
}
|
||||
},
|
||||
"fstream-ignore": {
|
||||
"version": "1.0.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"fstream": "1.0.11",
|
||||
"inherits": "2.0.3",
|
||||
"minimatch": "3.0.4"
|
||||
}
|
||||
},
|
||||
"gauge": {
|
||||
"version": "2.7.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"aproba": "1.1.1",
|
||||
"console-control-strings": "1.1.0",
|
||||
"has-unicode": "2.0.1",
|
||||
"object-assign": "4.1.1",
|
||||
"signal-exit": "3.0.2",
|
||||
"string-width": "1.0.2",
|
||||
"strip-ansi": "3.0.1",
|
||||
"wide-align": "1.1.2"
|
||||
}
|
||||
},
|
||||
"getpass": {
|
||||
"version": "0.1.7",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"assert-plus": "1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"assert-plus": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"glob": {
|
||||
"version": "7.1.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fs.realpath": "1.0.0",
|
||||
"inflight": "1.0.6",
|
||||
"inherits": "2.0.3",
|
||||
"minimatch": "3.0.4",
|
||||
"once": "1.4.0",
|
||||
"path-is-absolute": "1.0.1"
|
||||
}
|
||||
},
|
||||
"graceful-fs": {
|
||||
"version": "4.1.11",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"har-schema": {
|
||||
"version": "1.0.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"har-validator": {
|
||||
"version": "4.2.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ajv": "4.11.8",
|
||||
"har-schema": "1.0.5"
|
||||
}
|
||||
},
|
||||
"has-unicode": {
|
||||
"version": "2.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"hawk": {
|
||||
"version": "3.1.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"boom": "2.10.1",
|
||||
"cryptiles": "2.0.5",
|
||||
"hoek": "2.16.3",
|
||||
"sntp": "1.0.9"
|
||||
}
|
||||
},
|
||||
"hoek": {
|
||||
"version": "2.16.3",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"http-signature": {
|
||||
"version": "1.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"assert-plus": "0.2.0",
|
||||
"jsprim": "1.4.0",
|
||||
"sshpk": "1.13.0"
|
||||
}
|
||||
},
|
||||
"inflight": {
|
||||
"version": "1.0.6",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"once": "1.4.0",
|
||||
"wrappy": "1.0.2"
|
||||
}
|
||||
},
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"ini": {
|
||||
"version": "1.3.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"is-fullwidth-code-point": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"number-is-nan": "1.0.1"
|
||||
}
|
||||
},
|
||||
"is-typedarray": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"isarray": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"isstream": {
|
||||
"version": "0.1.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"jodid25519": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"jsbn": "0.1.1"
|
||||
}
|
||||
},
|
||||
"jsbn": {
|
||||
"version": "0.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"json-schema": {
|
||||
"version": "0.2.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"json-stable-stringify": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"jsonify": "0.0.0"
|
||||
}
|
||||
},
|
||||
"json-stringify-safe": {
|
||||
"version": "5.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"jsonify": {
|
||||
"version": "0.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"jsprim": {
|
||||
"version": "1.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"assert-plus": "1.0.0",
|
||||
"extsprintf": "1.0.2",
|
||||
"json-schema": "0.2.3",
|
||||
"verror": "1.3.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"assert-plus": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.27.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.15",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mime-db": "1.27.0"
|
||||
}
|
||||
},
|
||||
"minimatch": {
|
||||
"version": "3.0.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"brace-expansion": "1.1.7"
|
||||
}
|
||||
},
|
||||
"minimist": {
|
||||
"version": "0.0.8",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "0.5.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minimist": "0.0.8"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"node-pre-gyp": {
|
||||
"version": "0.6.36",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"mkdirp": "0.5.1",
|
||||
"nopt": "4.0.1",
|
||||
"npmlog": "4.1.0",
|
||||
"rc": "1.2.1",
|
||||
"request": "2.81.0",
|
||||
"rimraf": "2.6.1",
|
||||
"semver": "5.3.0",
|
||||
"tar": "2.2.1",
|
||||
"tar-pack": "3.4.0"
|
||||
}
|
||||
},
|
||||
"nopt": {
|
||||
"version": "4.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"abbrev": "1.1.0",
|
||||
"osenv": "0.1.4"
|
||||
}
|
||||
},
|
||||
"npmlog": {
|
||||
"version": "4.1.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"are-we-there-yet": "1.1.4",
|
||||
"console-control-strings": "1.1.0",
|
||||
"gauge": "2.7.4",
|
||||
"set-blocking": "2.0.0"
|
||||
}
|
||||
},
|
||||
"number-is-nan": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"oauth-sign": {
|
||||
"version": "0.8.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"once": {
|
||||
"version": "1.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"wrappy": "1.0.2"
|
||||
}
|
||||
},
|
||||
"os-homedir": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"os-tmpdir": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"osenv": {
|
||||
"version": "0.1.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"os-homedir": "1.0.2",
|
||||
"os-tmpdir": "1.0.2"
|
||||
}
|
||||
},
|
||||
"path-is-absolute": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"performance-now": {
|
||||
"version": "0.2.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"process-nextick-args": {
|
||||
"version": "1.0.7",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"punycode": {
|
||||
"version": "1.4.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"rc": {
|
||||
"version": "1.2.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"deep-extend": "0.4.2",
|
||||
"ini": "1.3.4",
|
||||
"minimist": "1.2.0",
|
||||
"strip-json-comments": "2.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "1.2.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "2.2.9",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"buffer-shims": "1.0.0",
|
||||
"core-util-is": "1.0.2",
|
||||
"inherits": "2.0.3",
|
||||
"isarray": "1.0.0",
|
||||
"process-nextick-args": "1.0.7",
|
||||
"string_decoder": "1.0.1",
|
||||
"util-deprecate": "1.0.2"
|
||||
}
|
||||
},
|
||||
"request": {
|
||||
"version": "2.81.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"aws-sign2": "0.6.0",
|
||||
"aws4": "1.6.0",
|
||||
"caseless": "0.12.0",
|
||||
"combined-stream": "1.0.5",
|
||||
"extend": "3.0.1",
|
||||
"forever-agent": "0.6.1",
|
||||
"form-data": "2.1.4",
|
||||
"har-validator": "4.2.1",
|
||||
"hawk": "3.1.3",
|
||||
"http-signature": "1.1.1",
|
||||
"is-typedarray": "1.0.0",
|
||||
"isstream": "0.1.2",
|
||||
"json-stringify-safe": "5.0.1",
|
||||
"mime-types": "2.1.15",
|
||||
"oauth-sign": "0.8.2",
|
||||
"performance-now": "0.2.0",
|
||||
"qs": "6.4.0",
|
||||
"safe-buffer": "5.0.1",
|
||||
"stringstream": "0.0.5",
|
||||
"tough-cookie": "2.3.2",
|
||||
"tunnel-agent": "0.6.0",
|
||||
"uuid": "3.0.1"
|
||||
}
|
||||
},
|
||||
"rimraf": {
|
||||
"version": "2.6.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"glob": "7.1.2"
|
||||
}
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"semver": {
|
||||
"version": "5.3.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"set-blocking": {
|
||||
"version": "2.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"signal-exit": {
|
||||
"version": "3.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"sntp": {
|
||||
"version": "1.0.9",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"hoek": "2.16.3"
|
||||
}
|
||||
},
|
||||
"sshpk": {
|
||||
"version": "1.13.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"asn1": "0.2.3",
|
||||
"assert-plus": "1.0.0",
|
||||
"bcrypt-pbkdf": "1.0.1",
|
||||
"dashdash": "1.14.1",
|
||||
"ecc-jsbn": "0.1.1",
|
||||
"getpass": "0.1.7",
|
||||
"jodid25519": "1.0.2",
|
||||
"jsbn": "0.1.1",
|
||||
"tweetnacl": "0.14.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"assert-plus": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"string-width": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"code-point-at": "1.1.0",
|
||||
"is-fullwidth-code-point": "1.0.0",
|
||||
"strip-ansi": "3.0.1"
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"safe-buffer": "5.0.1"
|
||||
}
|
||||
},
|
||||
"stringstream": {
|
||||
"version": "0.0.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"strip-ansi": {
|
||||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ansi-regex": "2.1.1"
|
||||
}
|
||||
},
|
||||
"strip-json-comments": {
|
||||
"version": "2.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"tar": {
|
||||
"version": "2.2.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"block-stream": "0.0.9",
|
||||
"fstream": "1.0.11",
|
||||
"inherits": "2.0.3"
|
||||
}
|
||||
},
|
||||
"tar-pack": {
|
||||
"version": "3.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"debug": "2.6.8",
|
||||
"fstream": "1.0.11",
|
||||
"fstream-ignore": "1.0.5",
|
||||
"once": "1.4.0",
|
||||
"readable-stream": "2.2.9",
|
||||
"rimraf": "2.6.1",
|
||||
"tar": "2.2.1",
|
||||
"uid-number": "0.0.6"
|
||||
}
|
||||
},
|
||||
"tough-cookie": {
|
||||
"version": "2.3.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"punycode": "1.4.1"
|
||||
}
|
||||
},
|
||||
"tunnel-agent": {
|
||||
"version": "0.6.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"safe-buffer": "5.0.1"
|
||||
}
|
||||
},
|
||||
"tweetnacl": {
|
||||
"version": "0.14.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"uid-number": {
|
||||
"version": "0.0.6",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"util-deprecate": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
},
|
||||
"uuid": {
|
||||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"verror": {
|
||||
"version": "1.3.6",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"extsprintf": "1.0.2"
|
||||
}
|
||||
},
|
||||
"wide-align": {
|
||||
"version": "1.1.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"string-width": "1.0.2"
|
||||
}
|
||||
},
|
||||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"fstream": {
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
|
||||
@ -13556,23 +12656,6 @@
|
||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
||||
"dev": true
|
||||
},
|
||||
"types-bn": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/types-bn/-/types-bn-0.0.1.tgz",
|
||||
"integrity": "sha512-Kqx+ic862yy/dqXex5M6ZFEf3w1Hwx2yynygY7zhnWw3n58jImSwUlN0JoaWyuCFWfbf12X+7/qiURXYSKv6GA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bn.js": "4.11.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"bn.js": {
|
||||
"version": "4.11.7",
|
||||
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.7.tgz",
|
||||
"integrity": "sha512-LxFiV5mefv0ley0SzqkOPR1bC4EbpPx8LkOz5vMe/Yi15t5hzwgO/G+tc7wOtL4PZTYjwHu8JnEiSLumuSjSfA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"types-rlp": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/types-rlp/-/types-rlp-0.0.1.tgz",
|
||||
|
@ -105,7 +105,6 @@
|
||||
"tslint": "^5.7.0",
|
||||
"tslint-config-prettier": "^1.5.0",
|
||||
"tslint-react": "^3.2.0",
|
||||
"types-bn": "0.0.1",
|
||||
"types-rlp": "0.0.1",
|
||||
"typescript": "^2.5.2",
|
||||
"url-loader": "^0.5.8",
|
||||
|
@ -15,12 +15,7 @@
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true
|
||||
},
|
||||
"include": [
|
||||
"./common/",
|
||||
"spec",
|
||||
"./node_modules/types-rlp/index.d.ts",
|
||||
"./node_modules/types-bn/index.d.ts"
|
||||
],
|
||||
"include": ["./common/", "spec", "./node_modules/types-rlp/index.d.ts"],
|
||||
"awesomeTypescriptLoaderOptions": {
|
||||
"transpileOnly": true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user