diff options
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/types.ts b/src/types.ts index af3c36736..a18164e20 100644 --- a/src/types.ts +++ b/src/types.ts @@ -403,8 +403,6 @@ export interface ZeroExConfig { etherTokenContractAddress?: string; } -export type TransactionReceipt = Web3.TransactionReceipt; - export enum AbiType { Function = 'function', Constructor = 'constructor', @@ -423,7 +421,7 @@ export interface DecodedArgs<ArgsType> { export interface LogWithDecodedArgs<ArgsType> extends Web3.LogEntry, DecodedArgs<ArgsType> {} -export interface TransactionReceiptWithDecodedLogs extends Web3.TransactionReceipt { +export interface TransactionReceiptWithDecodedLogs extends TransactionReceipt { logs: Array<LogWithDecodedArgs<DecodedLogArgs>|Web3.LogEntry>; } @@ -473,3 +471,17 @@ export enum TransferType { Trade = 'trade', Fee = 'fee', } + +export interface TransactionReceipt { + blockHash: string; + blockNumber: number; + transactionHash: string; + transactionIndex: number; + from: string; + to: string; + status: null|0|1; + cumulativeGasUsed: number; + gasUsed: number; + contractAddress: string|null; + logs: Web3.LogEntry[]; +} |