diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/types/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/types/src/index.ts | 11 | ||||
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 13 |
3 files changed, 16 insertions, 12 deletions
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<TxData>; |