@scrypt-inc/bitcoinjs-lib
Version:
Client-side Bitcoin JavaScript library
15 lines (14 loc) • 445 B
TypeScript
declare const OPS: {
[key: string]: number;
};
declare const REVERSE_OPS: {
[key: number]: string;
};
/**
* Returns true if given opcode is classified as a "success".
* This was taken from commit https://github.com/bitcoin/bitcoin/commit/72422ce396b8eba7b1a72c171c2f07dae691d1b5
* @param {Number|String} opcode
* @returns {Boolean}
*/
declare function isOpSuccess(opcode: number): boolean;
export { OPS, REVERSE_OPS, isOpSuccess };