Move RawLogEntry to types package

This commit is contained in:
Fabio Berger
2018-03-07 14:22:15 +01:00
parent 5356b0e118
commit a6303de4d1
3 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +1,9 @@
# CHANGELOG
## v0.3.1 - _TBD_
* Added `RawLogEntry` type.
## v0.3.0 - _March 4, 2018_
* Add `data` to `TxData` (#413)

View File

@@ -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[];
}

View File

@@ -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>;