packages/jellyfish-transaction/src/script/mapping.ts
File mapping.ts
has 834 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { SmartBuffer } from 'smart-buffer'
import { readCompactSize, writeCompactSize } from '@defichain/jellyfish-buffer'
import { toBuffer, toOPCodes } from './_buffer'
import { OPCode, StaticCode } from './opcode'
import { OP_PUSHDATA } from './data'
OP_CODES
has 60 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export const OP_CODES = {
/**
* Read SmartBuffer and create OPCode[] stack.
*
* Using P2WPKH redeem script as an example.