MCPcopy Create free account
hub / github.com/CashScript/cashscript / asmToScript

Function asmToScript

packages/utils/src/script.ts:30–32  ·  view source on GitHub ↗
(asm: string)

Source from the content-addressed store, hash-verified

28}
29
30export function asmToScript(asm: string): Script {
31 return bytecodeToScript(asmToBytecode(asm));
32}
33
34// asmToBytecode also works for BitAuth ASM
35export function bitAuthAsmToScript(asm: string): Script {

Callers 9

util.test.tsFile · 0.90
constructorMethod · 0.90
runFunction · 0.90
visitSourceFileMethod · 0.90
script.test.tsFile · 0.85
bitAuthAsmToScriptFunction · 0.85
replaceOpsOldFunction · 0.85
replaceOpsFunction · 0.85

Calls 2

bytecodeToScriptFunction · 0.85
asmToBytecodeFunction · 0.85

Tested by

no test coverage detected