aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-07 21:22:15 +0800
committerFabio Berger <me@fabioberger.com>2018-03-07 21:22:15 +0800
commita6303de4d1973039c6f97b0a47af8877fd86e837 (patch)
tree8543439068e4c03f90c485228e227ecdeaee623c
parent5356b0e1186ab8bb835c118507ae27947ca6e8c2 (diff)
downloaddexon-sol-tools-a6303de4d1973039c6f97b0a47af8877fd86e837.tar.gz
dexon-sol-tools-a6303de4d1973039c6f97b0a47af8877fd86e837.tar.zst
dexon-sol-tools-a6303de4d1973039c6f97b0a47af8877fd86e837.zip
Move RawLogEntry to types package
-rw-r--r--packages/types/CHANGELOG.md4
-rw-r--r--packages/types/src/index.ts11
-rw-r--r--packages/web3-wrapper/src/index.ts13
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>;