Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tact-lang/opcode

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tact-lang/opcode - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

5

CHANGELOG.md

@@ -8,2 +8,7 @@ # Changelog

## [0.0.8] - 2023-03-24
## Fixed
- Fix hashes in shifted cells
## [0.0.7] - 2023-03-24

@@ -10,0 +15,0 @@

4

dist/decompiler/decompileAll.js

@@ -16,2 +16,3 @@ "use strict";

src: args.src,
srcOffset: args.srcOffset,
allowUnknown: false

@@ -60,3 +61,2 @@ });

let name = knownMethods_1.knownMethods[key] || '?fun_' + (unknownIndex++);
let body = value.cell.beginParse().skip(value.offset).asCell();
let w = new Writer_1.Writer();

@@ -66,3 +66,3 @@ w.inIndent(() => {

decompileCell({
src: body,
src: value.cell,
srcOffset: value.offset,

@@ -69,0 +69,0 @@ root: false,

@@ -21,5 +21,8 @@ "use strict";

// Parse cell
let globalOffset = args.srcOffset || 0;
let scl = sc.remainingBits;
let sco = 0;
let sco = args.srcOffset || 0;
// Skip offset
if (args.srcOffset && args.srcOffset > 0) {
sc.skip(args.srcOffset);
}
while (sc.remainingBits > 0) {

@@ -46,3 +49,3 @@ // Load opcode

},
offset: currentOffset + globalOffset,
offset: currentOffset,
length: currentLength

@@ -59,3 +62,3 @@ });

op: opcode.read,
offset: currentOffset + globalOffset,
offset: currentOffset,
length: currentLength

@@ -62,0 +65,0 @@ });

{
"name": "@tact-lang/opcode",
"version": "0.0.7",
"version": "0.0.8",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "repository": "https://github.com/tact-lang/ton-opcode.git",

@@ -22,2 +22,3 @@ import { beginCell, BitReader, Cell, Dictionary, DictionaryValue } from "ton-core";

src: args.src,
srcOffset: args.srcOffset,
allowUnknown: false

@@ -72,3 +73,2 @@ });

let name = knownMethods[key] || '?fun_' + (unknownIndex++);
let body = value.cell.beginParse().skip(value.offset).asCell();
let w = new Writer();

@@ -78,3 +78,3 @@ w.inIndent(() => {

decompileCell({
src: body,
src: value.cell,
srcOffset: value.offset,

@@ -81,0 +81,0 @@ root: false,

@@ -29,5 +29,10 @@ import { beginCell, Cell, Slice } from "ton-core";

// Parse cell
let globalOffset = args.srcOffset || 0;
let scl = sc.remainingBits;
let sco = 0;
let sco = args.srcOffset || 0;
// Skip offset
if (args.srcOffset && args.srcOffset > 0) {
sc.skip(args.srcOffset);
}
while (sc.remainingBits > 0) {

@@ -57,3 +62,3 @@

},
offset: currentOffset + globalOffset,
offset: currentOffset,
length: currentLength

@@ -70,3 +75,3 @@ });

op: opcode.read,
offset: currentOffset + globalOffset,
offset: currentOffset,
length: currentLength

@@ -73,0 +78,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc