Remove unnecessary imports

This commit is contained in:
Donam Kim
2018-09-11 00:40:27 +10:00
parent 349ab453cd
commit cbcc096e3c
7 changed files with 5 additions and 13 deletions
-1
View File
@@ -1,7 +1,6 @@
import { Callback, EventLog, EventEmitter } from "../types";
import { TransactionObject, BlockType } from "./types";
import { ABIDefinition } from "./abi";
import BigNumber = require("bn.js");
import { Provider } from "../providers";
interface CustomOptions {
-1
View File
@@ -1,4 +1,3 @@
import BigNumber = require("bn.js");
import { Provider } from "../providers";
import Contract, { CustomOptions as CustomContractOptions } from "./contract";
import PromiEvent from "../promiEvent";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Callback, EventLog } from "../types";
import { Callback } from "../types";
import PromiEvent from "../promiEvent";
import { ABIDefinition } from "./abi";
export interface Tx {
+2 -3
View File
@@ -18,10 +18,9 @@
// Donam Kim <https://github.com/donamk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
import BigNumber = require("bn.js");
import Providers, { Provider } from "./providers";
import Contract from "./eth/contract";
import { Callback, Bzz, Shh } from "./types";
import { Bzz, Shh } from "./types";
import { BatchRequest, Net, Personal } from "./eth/types";
import Utils from "./utils";
import Eth from "./eth/index";
-4
View File
@@ -1,7 +1,3 @@
import BigNumber = require("bn.js");
import * as us from "underscore";
import PromiEvent from "./promiEvent";
import { ABIDefinition } from "./eth/abi";
export type Callback<T> = (error: Error, result: T) => void;
export interface EventEmitter {
+1 -1
View File
@@ -1,5 +1,5 @@
import BigNumber = require("bn.js");
import * as us from "underscore";
import BigNumber from "bignumber.js";
type Unit =
| "noether"
+1 -2
View File
@@ -1,5 +1,5 @@
import Web3 = require("web3");
import BigNumber = require("bn.js");
import BigNumber from "bignumber.js";
const web3 = new Web3();
const myProvider = new web3.providers.HttpProvider("http://localhost:5454");
web3.setProvider(myProvider);
@@ -22,7 +22,6 @@ const weiStr: string = web3.utils.toWei("100", "gwei");
const weiBn: BigNumber = web3.utils.toWei(web3.utils.toBN("1"));
const rndHex: string = Web3.utils.randomHex(10);
web3.eth.personal.unlockAccount(
web3.eth.defaultAccount,
"passphrase",