mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Remove unnecessary imports
This commit is contained in:
Vendored
-1
@@ -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 {
|
||||
|
||||
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
import BigNumber = require("bn.js");
|
||||
import { Provider } from "../providers";
|
||||
import Contract, { CustomOptions as CustomContractOptions } from "./contract";
|
||||
import PromiEvent from "../promiEvent";
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { Callback, EventLog } from "../types";
|
||||
import { Callback } from "../types";
|
||||
import PromiEvent from "../promiEvent";
|
||||
import { ABIDefinition } from "./abi";
|
||||
export interface Tx {
|
||||
|
||||
Vendored
+2
-3
@@ -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";
|
||||
|
||||
Vendored
-4
@@ -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 {
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import BigNumber = require("bn.js");
|
||||
import * as us from "underscore";
|
||||
import BigNumber from "bignumber.js";
|
||||
|
||||
type Unit =
|
||||
| "noether"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user