Move RawLogEntry to types package
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# CHANGELOG
|
||||
|
||||
## v0.3.1 - _TBD_
|
||||
|
||||
* Added `RawLogEntry` type.
|
||||
|
||||
## v0.3.0 - _March 4, 2018_
|
||||
|
||||
* Add `data` to `TxData` (#413)
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user