From a6303de4d1973039c6f97b0a47af8877fd86e837 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 7 Mar 2018 14:22:15 +0100 Subject: Move RawLogEntry to types package --- packages/types/CHANGELOG.md | 4 ++++ packages/types/src/index.ts | 11 +++++++++++ packages/web3-wrapper/src/index.ts | 13 +------------ 3 files changed, 16 insertions(+), 12 deletions(-) (limited to 'packages') diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index e1117b170..ce24c4b29 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v0.3.1 - _TBD_ + + * Added `RawLogEntry` type. + ## v0.3.0 - _March 4, 2018_ * Add `data` to `TxData` (#413) diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 6242d4268..480a52454 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -67,3 +67,14 @@ export enum BlockParamLiteral { } export type BlockParam = BlockParamLiteral | number; + +export interface RawLogEntry { + logIndex: string | null; + transactionIndex: string | null; + transactionHash: string; + blockHash: string | null; + blockNumber: string | null; + address: string; + data: string; + topics: string[]; +} diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts index a07805344..64a19f531 100644 --- a/packages/web3-wrapper/src/index.ts +++ b/packages/web3-wrapper/src/index.ts @@ -1,19 +1,8 @@ -import { TransactionReceipt, TxData } from '@0xproject/types'; +import { RawLogEntry, TransactionReceipt, TxData } from '@0xproject/types'; import { BigNumber, promisify } from '@0xproject/utils'; import * as _ from 'lodash'; import * as Web3 from 'web3'; -interface RawLogEntry { - logIndex: string | null; - transactionIndex: string | null; - transactionHash: string; - blockHash: string | null; - blockNumber: string | null; - address: string; - data: string; - topics: string[]; -} - export class Web3Wrapper { private _web3: Web3; private _defaults: Partial; -- cgit v1.2.3