@cashscript/utils
Advanced tools
Comparing version 0.10.2 to 0.11.0-next.0
@@ -1,2 +0,3 @@ | ||
export declare const Op: typeof import("@bitauth/libauth").OpcodesBCH2023; | ||
import { OpcodesBch2023 } from '@bitauth/libauth'; | ||
export declare const Op: typeof OpcodesBch2023; | ||
export type Op = number; | ||
@@ -3,0 +4,0 @@ export type OpOrData = Op | Uint8Array; |
@@ -1,5 +0,5 @@ | ||
import { OpcodesBCH, encodeDataPush, hexToBin, disassembleBytecodeBCH, flattenBinArray, encodeAuthenticationInstructions, decodeAuthenticationInstructions, } from '@bitauth/libauth'; | ||
import { OpcodesBch2023, encodeDataPush, hexToBin, disassembleBytecodeBch, flattenBinArray, encodeAuthenticationInstructions, decodeAuthenticationInstructions, } from '@bitauth/libauth'; | ||
import { decodeInt, encodeInt } from './data.js'; | ||
import OptimisationsEquivFile from './cashproof-optimisations.js'; | ||
export const Op = OpcodesBCH; | ||
export const Op = OpcodesBch2023; | ||
export function scriptToAsm(script) { | ||
@@ -52,3 +52,3 @@ return bytecodeToAsm(scriptToBytecode(script)); | ||
// Convert the bytecode to libauth's ASM format | ||
let asm = disassembleBytecodeBCH(bytecode); | ||
let asm = disassembleBytecodeBch(bytecode); | ||
// COnvert libauth's ASM format to BITBOX's | ||
@@ -65,3 +65,3 @@ asm = asm.replace(/OP_PUSHBYTES_[^\s]+/g, ''); | ||
// Convert the bytecode to libauth's ASM format | ||
let asm = disassembleBytecodeBCH(bytecode); | ||
let asm = disassembleBytecodeBch(bytecode); | ||
// COnvert libauth's ASM format to BitAuth Script ASM | ||
@@ -68,0 +68,0 @@ asm = asm.replace(/OP_PUSHBYTES_[^\s]+/g, ''); |
{ | ||
"name": "@cashscript/utils", | ||
"version": "0.10.2", | ||
"version": "0.11.0-next.0", | ||
"description": "CashScript utilities and types", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@bitauth/libauth": "^3.0.0" | ||
"@bitauth/libauth": "^3.1.0-next.2" | ||
}, | ||
@@ -52,3 +52,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "a7c4f652462ddfccd54fc929f06cb16022769df9" | ||
"gitHead": "18df35aa3276e64fa64e92386106374d1d35b28d" | ||
} |
47205
916
+ Added@bitauth/libauth@3.1.0-next.4(transitive)
- Removed@bitauth/libauth@3.0.0(transitive)