From f86d2583cf4b5a9eab632e733caca3440ceecd45 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Fri, 1 Nov 2019 19:36:14 +0200 Subject: [PATCH] ethereumjs-tx: Provides its own types (#39621) --- notNeededPackages.json | 6 ++++ types/ethereumjs-tx/ethereumjs-tx-tests.ts | 4 --- types/ethereumjs-tx/index.d.ts | 37 ---------------------- types/ethereumjs-tx/tsconfig.json | 16 ---------- types/ethereumjs-tx/tslint.json | 1 - 5 files changed, 6 insertions(+), 58 deletions(-) delete mode 100644 types/ethereumjs-tx/ethereumjs-tx-tests.ts delete mode 100644 types/ethereumjs-tx/index.d.ts delete mode 100644 types/ethereumjs-tx/tsconfig.json delete mode 100644 types/ethereumjs-tx/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 456aaf8d41..d8395ff177 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1062,6 +1062,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/escape-string-regexp", "asOfVersion": "2.0.0" }, + { + "libraryName": "ethereumjs-tx", + "typingsPackageName": "ethereumjs-tx", + "sourceRepoURL": "https://github.com/ethereumjs/ethereumjs-tx", + "asOfVersion": "2.0.0" + }, { "libraryName": "eventemitter2", "typingsPackageName": "eventemitter2", diff --git a/types/ethereumjs-tx/ethereumjs-tx-tests.ts b/types/ethereumjs-tx/ethereumjs-tx-tests.ts deleted file mode 100644 index 393dfd81d7..0000000000 --- a/types/ethereumjs-tx/ethereumjs-tx-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import EthereumjsTx = require('ethereumjs-tx'); - -const txParams = {}; -const tx = new EthereumjsTx(txParams); diff --git a/types/ethereumjs-tx/index.d.ts b/types/ethereumjs-tx/index.d.ts deleted file mode 100644 index a030edee1e..0000000000 --- a/types/ethereumjs-tx/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Type definitions for ethereumjs-tx 1.0 -// Project: https://github.com/ethereumjs/ethereumjs-tx -// Definitions by: Leonid Logvinov -// David Mihal -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -import BN = require("bn.js"); - -declare class EthereumTx { - raw: Buffer[]; - r: Buffer; - s: Buffer; - v: Buffer; - nonce: Buffer; - gasPrice: Buffer; - gasLimit: Buffer; - to: Buffer; - value: Buffer; - data: Buffer; - serialize(): Buffer; - sign(buffer: Buffer): void; - toJSON(): string | string[]; - toCreationAddress(): boolean; - hash(includeSignature?: boolean): Buffer; - getChainId(): Buffer; - getSenderAddress(): Buffer; - getSenderPublicKey(): Buffer; - verifySignature(): boolean; - getDataFee(): BN; - getBaseFee(): BN; - getUpfrontCost(): BN; - validate(stringError?: boolean): string | boolean; - constructor(txParams: any); -} -export = EthereumTx; diff --git a/types/ethereumjs-tx/tsconfig.json b/types/ethereumjs-tx/tsconfig.json deleted file mode 100644 index 8909d40844..0000000000 --- a/types/ethereumjs-tx/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": ["es6"], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": ["../"], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": ["index.d.ts", "ethereumjs-tx-tests.ts"] -} diff --git a/types/ethereumjs-tx/tslint.json b/types/ethereumjs-tx/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ethereumjs-tx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }