Skip to content

Commit

Permalink
Merge pull request #867 from ExchangeUnion/cleanup-imports
Browse files Browse the repository at this point in the history
style: clean up imports
  • Loading branch information
sangaman committed Apr 5, 2019
2 parents d0374bb + 6374e0f commit 0991bbc
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/db/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Sequelize, { DataTypeAbstract, DefineAttributeColumnOptions, DefineAttributes } from 'sequelize';
import { Address, NodeConnectionInfo } from '../p2p/types';
import { SwapDeal } from '../swaps/types';
import { Currency, Pair, OwnOrder, Order } from '../orderbook/types';
import { Currency, Pair, Order } from '../orderbook/types';
import { ReputationEvent } from '../constants/enums';

export type SequelizeAttributes<T extends { [key: string]: any }> = DefineAttributes & {
Expand Down
2 changes: 1 addition & 1 deletion lib/orderbook/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SwapClient } from '../constants/enums';
import { SwapSuccess, SwapFailure } from 'lib/swaps/types';
import { SwapSuccess, SwapFailure } from '../swaps/types';

export type OrderMatch = {
maker: Order;
Expand Down
2 changes: 1 addition & 1 deletion lib/p2p/Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getExternalIp } from '../utils/utils';
import assert from 'assert';
import { ReputationEvent, DisconnectionReason } from '../constants/enums';
import NodeKey from '../nodekey/NodeKey';
import { ReputationEventInstance } from 'lib/db/types';
import { ReputationEventInstance } from '../db/types';
import semver from 'semver';

const minCompatibleVersion: string = require('../../package.json').minCompatibleVersion;
Expand Down
2 changes: 0 additions & 2 deletions lib/p2p/packets/types/SessionAckPacket.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Packet, { PacketDirection } from '../Packet';
import PacketType from '../PacketType';
import { NodeState } from '../../types';
import * as pb from '../../../proto/xudp2p_pb';
import { removeUndefinedProps } from '../../../utils/utils';

export type SessionAckPacketBody = {
ephemeralPubKey: string;
Expand Down
3 changes: 1 addition & 2 deletions lib/service/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Pool from '../p2p/Pool';
import OrderBook from '../orderbook/OrderBook';
import LndClient, { LndInfo } from '../lndclient/LndClient';
import RaidenClient, { RaidenInfo } from '../raidenclient/RaidenClient';
import Client from '../BaseClient';
import { EventEmitter } from 'events';
import errors from './errors';
import { SwapClient, OrderSide, SwapRole } from '../constants/enums';
Expand All @@ -12,7 +11,7 @@ import * as lndrpc from '../proto/lndrpc_pb';
import { Pair, Order, OrderPortion, PlaceOrderEvent } from '../orderbook/types';
import Swaps from '../swaps/Swaps';
import { OrderSidesArrays } from '../orderbook/TradingPair';
import { SwapSuccess, SwapFailure } from 'lib/swaps/types';
import { SwapSuccess, SwapFailure } from '../swaps/types';

/**
* The components required by the API service layer.
Expand Down
2 changes: 1 addition & 1 deletion lib/swaps/Swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import assert from 'assert';
import { SwapDealInstance } from '../db/types';
import { SwapDeal, SwapSuccess } from './types';
import { randomBytes } from '../utils/utils';
import { ResolveRequest } from 'lib/proto/hash_resolver_pb';
import { ResolveRequest } from '../proto/hash_resolver_pb';

type OrderToAccept = Pick<SwapDeal, 'quantity' | 'price' | 'localId' | 'isBuy'> & {
quantity: number;
Expand Down

0 comments on commit 0991bbc

Please sign in to comment.