@0x/contracts-test-utils
Version:
Test utils for 0x contracts
17 lines • 1 kB
TypeScript
/// <reference types="node" />
import { SignedZeroExTransaction, ZeroExTransaction } from '@0x/types';
export declare const transactionHashUtils: {
/**
* Computes the transactionHash for a supplied 0x transaction.
* @param transaction An object that conforms to the ZeroExTransaction or SignedZeroExTransaction interface definitions.
* @return Hex encoded string transactionHash from hashing the supplied order.
*/
getTransactionHashHex(transaction: ZeroExTransaction | SignedZeroExTransaction): string;
/**
* Computes the transactionHash for a supplied 0x transaction.
* @param transaction An object that conforms to the ZeroExTransaction or SignedZeroExTransaction interface definitions.
* @return A Buffer containing the resulting transactionHash from hashing the supplied 0x transaction.
*/
getTransactionHashBuffer(transaction: ZeroExTransaction | SignedZeroExTransaction): Buffer;
};
//# sourceMappingURL=transaction_hash.d.ts.map