UNPKG

@0x/contracts-test-utils

Version:
14 lines 799 B
import { Web3Wrapper } from '@0x/web3-wrapper'; import { ContractArtifact, DecodedLogArgs, LogEntry, LogWithDecodedArgs, RawLog, TransactionReceipt, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; export declare class LogDecoder { private readonly _web3Wrapper; private readonly _abiDecoder; static wrapLogBigNumbers(log: any): any; constructor(web3Wrapper: Web3Wrapper, artifacts: { [contractName: string]: ContractArtifact; }); decodeLogOrThrow<ArgsType extends DecodedLogArgs>(log: LogEntry): LogWithDecodedArgs<ArgsType> | RawLog; getTxWithDecodedLogsAsync(txHash: string): Promise<TransactionReceiptWithDecodedLogs>; decodeReceiptLogs(receipt: TransactionReceipt): TransactionReceiptWithDecodedLogs; } //# sourceMappingURL=log_decoder.d.ts.map