aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/parsers
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-09 02:15:09 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commitccad046eb649a60fdf7319a075fa41490d593ae8 (patch)
tree3c356e71868c7dcc770791dc70e90ae7abc16a30 /packages/pipeline/src/parsers
parent954c3b9272556723c10fd02ad6b753ac98ca47fa (diff)
downloaddexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.tar
dexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.gz
dexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.bz2
dexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.lz
dexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.xz
dexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.zst
dexon-sol-tools-ccad046eb649a60fdf7319a075fa41490d593ae8.zip
Reorganize entities. Make scripts work from any directory.
Diffstat (limited to 'packages/pipeline/src/parsers')
-rw-r--r--packages/pipeline/src/parsers/events/index.ts4
-rw-r--r--packages/pipeline/src/parsers/relayer_registry/index.ts2
-rw-r--r--packages/pipeline/src/parsers/sra_orders/index.ts2
-rw-r--r--packages/pipeline/src/parsers/web3/index.ts3
4 files changed, 4 insertions, 7 deletions
diff --git a/packages/pipeline/src/parsers/events/index.ts b/packages/pipeline/src/parsers/events/index.ts
index abfb7ddb6..7211eed76 100644
--- a/packages/pipeline/src/parsers/events/index.ts
+++ b/packages/pipeline/src/parsers/events/index.ts
@@ -9,9 +9,7 @@ import { AssetProxyId, ERC721AssetData } from '@0x/types';
import { LogWithDecodedArgs } from 'ethereum-types';
import * as R from 'ramda';
-import { ExchangeCancelEvent } from '../../entities/ExchangeCancelEvent';
-import { ExchangeCancelUpToEvent } from '../../entities/ExchangeCancelUpToEvent';
-import { ExchangeFillEvent } from '../../entities/ExchangeFillEvent';
+import { ExchangeCancelEvent, ExchangeCancelUpToEvent, ExchangeFillEvent } from '../../entities';
import { bigNumbertoStringOrNull } from '../../utils';
export type ExchangeEventEntity = ExchangeFillEvent | ExchangeCancelEvent | ExchangeCancelUpToEvent;
diff --git a/packages/pipeline/src/parsers/relayer_registry/index.ts b/packages/pipeline/src/parsers/relayer_registry/index.ts
index 50fd12443..a61f4e62a 100644
--- a/packages/pipeline/src/parsers/relayer_registry/index.ts
+++ b/packages/pipeline/src/parsers/relayer_registry/index.ts
@@ -1,7 +1,7 @@
import * as R from 'ramda';
import { RelayerResponse, RelayerResponseNetwork } from '../../data_sources/relayer-registry';
-import { Relayer } from '../../entities/Relayer';
+import { Relayer } from '../../entities';
export function parseRelayers(rawResp: Map<string, RelayerResponse>): Relayer[] {
const parsedAsObject = R.mapObjIndexed(parseRelayer, rawResp);
diff --git a/packages/pipeline/src/parsers/sra_orders/index.ts b/packages/pipeline/src/parsers/sra_orders/index.ts
index 39c222afd..5cd19b08a 100644
--- a/packages/pipeline/src/parsers/sra_orders/index.ts
+++ b/packages/pipeline/src/parsers/sra_orders/index.ts
@@ -3,7 +3,7 @@ import { assetDataUtils, orderHashUtils } from '@0x/order-utils';
import { AssetProxyId, ERC721AssetData } from '@0x/types';
import * as R from 'ramda';
-import { SraOrder } from '../../entities/SraOrder';
+import { SraOrder } from '../../entities';
import { bigNumbertoStringOrNull } from '../../utils';
export function parseSraOrders(rawOrdersResponse: OrdersResponse): SraOrder[] {
diff --git a/packages/pipeline/src/parsers/web3/index.ts b/packages/pipeline/src/parsers/web3/index.ts
index c6647c966..11571278b 100644
--- a/packages/pipeline/src/parsers/web3/index.ts
+++ b/packages/pipeline/src/parsers/web3/index.ts
@@ -1,7 +1,6 @@
import { BlockWithoutTransactionData, Transaction as EthTransaction } from 'ethereum-types';
-import { Block } from '../../entities/Block';
-import { Transaction } from '../../entities/Transaction';
+import { Block, Transaction } from '../../entities';
export function parseBlock(rawBlock: BlockWithoutTransactionData): Block {
if (rawBlock.hash == null) {