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

@tact-lang/opcode

Package Overview
Dependencies
Maintainers
4
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.13 to 0.0.14

.idea/dbnavigator.xml

5

CHANGELOG.md

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

## [0.0.14] - 2023-09-05
### Changed
- Migrated to @ton org libraries and upgraded tvm-disassembler version
## [0.0.13] - 2023-04-08

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

2

dist/codepage/Codepage.d.ts

@@ -1,2 +0,2 @@

import { Cell, Slice } from 'ton-core';
import { Cell, Slice } from '@ton/core';
import { OpCode } from './opcodes.gen';

@@ -3,0 +3,0 @@ export type Arg = string | number | boolean | Cell;

@@ -1,2 +0,2 @@

import { Cell, Slice } from "ton-core";
import { Cell, Slice } from "@ton/core";
import { OpCode } from "./opcodes.gen";

@@ -3,0 +3,0 @@ export declare function loadOpcode(slice: Slice, cell: Cell): {

@@ -1,2 +0,2 @@

import { Cell } from 'ton-core';
import { Cell } from '@ton/core';
export type OpCodeWithArgs = {

@@ -3,0 +3,0 @@ code: 'XCHG';

/// <reference types="node" />
import { Cell } from "ton-core";
import { Cell } from "@ton/core";
import { Maybe } from "../utils/maybe";

@@ -4,0 +4,0 @@ import { Printer } from "./printer";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decompileAll = void 0;
const ton_core_1 = require("ton-core");
const core_1 = require("@ton/core");
const opcodeToString_1 = require("../codepage/opcodeToString");

@@ -27,3 +27,3 @@ const Writer_1 = require("../utils/Writer");

let dictCell = opcodes[1].op.args[1];
let dict = ton_core_1.Dictionary.loadDirect(ton_core_1.Dictionary.Keys.Int(dictKeyLen), createCodeCell(), dictCell);
let dict = core_1.Dictionary.loadDirect(core_1.Dictionary.Keys.Int(dictKeyLen), createCodeCell(), dictCell);
// Extract all methods

@@ -200,3 +200,3 @@ let extracted = new Map();

if (Buffer.isBuffer(args.src)) {
src = ton_core_1.Cell.fromBoc(args.src)[0];
src = core_1.Cell.fromBoc(args.src)[0];
}

@@ -203,0 +203,0 @@ else {

/// <reference types="node" />
import { Cell } from "ton-core";
import { Cell } from "@ton/core";
import { OpCode } from "../codepage/opcodes.gen";

@@ -4,0 +4,0 @@ import { Maybe } from "../utils/maybe";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decompile = void 0;
const ton_core_1 = require("ton-core");
const core_1 = require("@ton/core");
const loadOpcode_1 = require("../codepage/loadOpcode");

@@ -13,5 +13,5 @@ const subcell_1 = require("../utils/subcell");

if (Buffer.isBuffer(args.src)) {
source = ton_core_1.Cell.fromBoc(args.src)[0];
source = core_1.Cell.fromBoc(args.src)[0];
}
else if (args.src instanceof ton_core_1.Cell) {
else if (args.src instanceof core_1.Cell) {
source = args.src;

@@ -49,3 +49,3 @@ }

if (args.allowUnknown) {
let fullCell = (0, ton_core_1.beginCell)();
let fullCell = (0, core_1.beginCell)();
for (let bit of Array.from(opcode.read).map(a => a == '0' ? false : true)) {

@@ -52,0 +52,0 @@ fullCell.storeBit(bit);

@@ -1,2 +0,2 @@

import { Cell, Slice } from "ton-core";
import { Cell, Slice } from "@ton/core";
export declare function subcell(args: {

@@ -3,0 +3,0 @@ cell: Cell;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.subslice = exports.subcell = void 0;
const ton_core_1 = require("ton-core");
const core_1 = require("@ton/core");
function subcell(args) {
let s = args.cell.beginParse();
let b = (0, ton_core_1.beginCell)();
let b = (0, core_1.beginCell)();
// Skip bits and refs

@@ -23,3 +23,3 @@ s.skip(args.offsetBits);

let s = args.cell.beginParse();
let b = (0, ton_core_1.beginCell)();
let b = (0, core_1.beginCell)();
// Copu bits and refs

@@ -26,0 +26,0 @@ b.storeBits(s.loadBits(args.bits + args.offsetBits));

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

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

"js-yaml": "^4.1.0",
"ton-core": "^0.49.0",
"ton-crypto": "^3.2.0",
"@ton/core": "^0.49.2",
"@ton/crypto": "^3.2.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.0.2",
"tvm-disassembler": "^2.0.0"
"tvm-disassembler": "^3.0.0"
},
"peerDependencies": {
"ton-core": ">=0.49.0",
"ton-crypto": "^3.2.0"
"@ton/core": ">=0.49.2",
"@ton/crypto": "^3.2.0"
},

@@ -35,0 +35,0 @@ "publishConfig": {

@@ -6,3 +6,3 @@ import fs from 'fs';

// Generate Defs
let opcodesDefs: string = 'import { Cell } from \'ton-core\';\n';
let opcodesDefs: string = 'import { Cell } from \'@ton/core\';\n';

@@ -9,0 +9,0 @@ function writeOpcode(name: string, args?: ("string" | "bigint" | "int" | "bool" | "cell")[]) {

@@ -1,2 +0,2 @@

import { Cell, Slice } from 'ton-core';
import { Cell, Slice } from '@ton/core';
import { OpCode } from './opcodes.gen';

@@ -3,0 +3,0 @@ import { Trie } from '../utils/trie';

@@ -1,2 +0,2 @@

import { Cell, Slice } from "ton-core";
import { Cell, Slice } from "@ton/core";
import { CP0Auto } from "./opcodes";

@@ -3,0 +3,0 @@ import { OpCode } from "./opcodes.gen";

@@ -1,2 +0,2 @@

import { Cell } from 'ton-core';
import { Cell } from '@ton/core';

@@ -3,0 +3,0 @@ export type OpCodeWithArgs =

@@ -1,2 +0,2 @@

import { beginCell, Cell, Slice } from 'ton-core';
import { beginCell, Cell, Slice } from '@ton/core';
import { Codepage } from './Codepage';

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

import { Cell, Dictionary, DictionaryValue } from "ton-core";
import { Cell, Dictionary, DictionaryValue } from "@ton/core";
import { opcodeToString } from "../codepage/opcodeToString";

@@ -3,0 +3,0 @@ import { Maybe } from "../utils/maybe";

@@ -1,2 +0,2 @@

import { Cell } from "ton-core";
import { Cell } from "@ton/core";
import { fromCode } from "tvm-disassembler";

@@ -3,0 +3,0 @@ import { decompile } from "./decompiler";

@@ -1,2 +0,2 @@

import { beginCell, Cell, Slice } from "ton-core";
import { beginCell, Cell, Slice } from "@ton/core";
import { loadOpcode } from "../codepage/loadOpcode";

@@ -3,0 +3,0 @@ import { OpCode } from "../codepage/opcodes.gen";

@@ -1,2 +0,2 @@

import { beginCell, Cell, Slice } from "ton-core";
import { beginCell, Cell, Slice } from "@ton/core";

@@ -3,0 +3,0 @@ export function subcell(args: { cell: Cell, offsetBits: number, offsetRefs: number, bits: number, refs: number }): Cell {

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