From 4af8449337aeffef70d20dfbfc7ba88260d78587 Mon Sep 17 00:00:00 2001 From: Danil Ovchinnikov Date: Thu, 27 Nov 2025 01:08:04 +0300 Subject: [PATCH 1/5] feat: support TVM v12 --- package.json | 4 ++-- yarn.lock | 37 ++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 88c598ea..be1a0f43 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@ton-community/func-js": "^0.9.1", "@ton/core": "^0.61.0", "@ton/crypto": "^3.3.0", - "@ton/sandbox": "^0.36.0", + "@ton/sandbox": "^0.39.0", "@ton/test-utils": "^0.7.0", "@ton/tolk-js": "^1.1.0", "@truecarry/tlb-abi": "^0.2.0", @@ -47,7 +47,7 @@ "react-icons": "^5.5.0", "react-markdown": "^10.1.0", "ton-assembly": "0.2.4", - "txtracer-core": "^0.3.1" + "txtracer-core": "^0.4.0" }, "devDependencies": { "@astrojs/check": "^0.9.4", diff --git a/yarn.lock b/yarn.lock index 42ddf975..3a8966e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2449,27 +2449,27 @@ __metadata: languageName: node linkType: hard -"@ton/sandbox@npm:^0.36.0": - version: 0.36.0 - resolution: "@ton/sandbox@npm:0.36.0" +"@ton/sandbox@npm:^0.39.0": + version: 0.39.0 + resolution: "@ton/sandbox@npm:0.39.0" dependencies: "@vscode/debugadapter": "npm:^1.68.0" chalk: "npm:^4.1.2" fflate: "npm:^0.8.2" table: "npm:^6.9.0" - ton-assembly: "npm:0.1.0" + ton-assembly: "npm:0.1.2" peerDependencies: "@ton-community/func-js": ">=0.10.0" "@ton/core": ">=0.61.0" "@ton/crypto": ">=3.3.0" "@ton/test-utils": ">=0.7.0" - jest: ^29.5.0 + jest: ^29.5.0 || ^30.0.5 peerDependenciesMeta: "@ton/test-utils": optional: true jest: optional: true - checksum: 10c0/66270e89188a390d82dbbcf4cc4b493945476cc44c39bb15abf31d66f81f7a2084e8fb2ec14447f6ed3c62871d0f60efecafe3c53f37b1d89b6810e424cc0e0a + checksum: 10c0/10566a559ff55c1806388c0c3299261447e8a56f4a1c17c493ee29c2e839a2a216e464509150126048bde41d1ada84460583ee28eea009daf511f05c539c6b8a languageName: node linkType: hard @@ -11570,19 +11570,18 @@ __metadata: languageName: node linkType: hard -"ton-assembly@npm:0.1.0": - version: 0.1.0 - resolution: "ton-assembly@npm:0.1.0" +"ton-assembly@npm:0.1.2": + version: 0.1.2 + resolution: "ton-assembly@npm:0.1.2" dependencies: - "@ton/core": "npm:^0.60.1" "@tonstudio/parser-runtime": "npm:^0.0.1" cac: "npm:^6.7.14" peerDependencies: - "@ton/core": ">=0.60.1" + "@ton/core": ">=0.61.0" bin: tasm: dist/cli/assembler.js tdisasm: dist/cli/disassembler.js - checksum: 10c0/5880376d14f45394e959446f7f50352f1796b80a390b4c6ecd502251a2495ce2565fcc0a7522764eb626821f1ba568065a27cf5179629cf52b485319df3acad1 + checksum: 10c0/f0c8bc73d157bf04d2eb2c1611e19c67d570bc035c5b089b43e4f5862926e26b46e08d8e855a2c2c8ae85dec31af21444c3b0438feea4cd323db455f609f9e86 languageName: node linkType: hard @@ -11744,16 +11743,16 @@ __metadata: languageName: node linkType: hard -"txtracer-core@npm:^0.3.1": - version: 0.3.1 - resolution: "txtracer-core@npm:0.3.1" +"txtracer-core@npm:^0.4.0": + version: 0.4.0 + resolution: "txtracer-core@npm:0.4.0" dependencies: "@ton-community/func-js": "npm:^0.10.0" "@ton/core": "npm:^0.61.0" - "@ton/sandbox": "npm:^0.36.0" + "@ton/sandbox": "npm:^0.39.0" "@ton/ton": "npm:^15.3.1" axios: "npm:^1.6.7" - checksum: 10c0/507906a3cf3740895a45593169a75884d06d34e8dec7832604ff9bd49f19c39406873e2659a0e82584f79d1c7f445956f23d0456841d2bb79a45c6d4c036e886 + checksum: 10c0/be26e17b3d9442a981036d96685e9f2bddb9ecd22ebe426caebbb4d64c1cd15fa939d8a9839e45dfea188179be9824dd553e2a262d1b3c02a837f259ac48c31a languageName: node linkType: hard @@ -11772,7 +11771,7 @@ __metadata: "@ton-community/func-js": "npm:^0.9.1" "@ton/core": "npm:^0.61.0" "@ton/crypto": "npm:^3.3.0" - "@ton/sandbox": "npm:^0.36.0" + "@ton/sandbox": "npm:^0.39.0" "@ton/test-utils": "npm:^0.7.0" "@ton/tolk-js": "npm:^1.1.0" "@truecarry/tlb-abi": "npm:^0.2.0" @@ -11824,7 +11823,7 @@ __metadata: stylelint-config-standard: "npm:^39.0.0" ton-assembly: "npm:0.2.4" ts-node: "npm:^10.9.1" - txtracer-core: "npm:^0.3.1" + txtracer-core: "npm:^0.4.0" typescript: "npm:~5.8.3" typescript-eslint: "npm:^8.30.1" vite: "npm:^6.3.5" From 2cd3982a117963050159654278fa179c13a23fd1 Mon Sep 17 00:00:00 2001 From: Danil Ovchinnikov Date: Wed, 3 Dec 2025 01:17:52 +0300 Subject: [PATCH 2/5] update `@ton/tolk-js` --- package.json | 2 +- yarn.lock | 35 +++++++++++++++++------------------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index be1a0f43..b888365f 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "react-helmet-async": "^2.0.5", "react-icons": "^5.5.0", "react-markdown": "^10.1.0", - "ton-assembly": "0.2.4", + "ton-assembly": "0.6.0", "txtracer-core": "^0.4.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 3a8966e1..f6e51d3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2407,17 +2407,6 @@ __metadata: languageName: node linkType: hard -"@ton/core@npm:^0.60.1": - version: 0.60.1 - resolution: "@ton/core@npm:0.60.1" - dependencies: - symbol.inspect: "npm:1.0.1" - peerDependencies: - "@ton/crypto": ">=3.2.0" - checksum: 10c0/aa2181cb1b7db85ce651f5d31b552858e2e6b98bb69803fc384a7e62b6a9cb4685f6e9f6f00a29bddfa872486ba7c2eb9e51fc84a8599b253c1649b2802876be - languageName: node - linkType: hard - "@ton/core@npm:^0.61.0": version: 0.61.0 resolution: "@ton/core@npm:0.61.0" @@ -11585,20 +11574,30 @@ __metadata: languageName: node linkType: hard -"ton-assembly@npm:0.2.4": - version: 0.2.4 - resolution: "ton-assembly@npm:0.2.4" +"ton-assembly@npm:0.6.0": + version: 0.6.0 + resolution: "ton-assembly@npm:0.6.0" dependencies: - "@ton/core": "npm:^0.60.1" "@tonstudio/parser-runtime": "npm:^0.0.1" cac: "npm:^6.7.14" + ton-source-map: "npm:^0.2.2" peerDependencies: - "@ton/core": ">=0.60.1" + "@ton/core": ">=0.61.0" + peerDependenciesMeta: + "@ton/core": + optional: false bin: tasm: dist/cli/assembler.js tdisasm: dist/cli/disassembler.js tfift: dist/cli/fift-compiler.js - checksum: 10c0/453042e3776ba9cf72dd1186643f5c79ce6c4dc88daadd56ee7eceeb68e0d20c1e70e7e2bab529288398eea2d2ddc41408e59e07d1bffe8699aaed09eab8badd + checksum: 10c0/88bbb543420aeb499a5ecee902d9643f2704421d84de9594df5e1d4087cae301bb74b7fa7bd27e3953f9d0acab8ee2e74f9cac4d838a2f49f788b5d5681d8c93 + languageName: node + linkType: hard + +"ton-source-map@npm:^0.2.2": + version: 0.2.2 + resolution: "ton-source-map@npm:0.2.2" + checksum: 10c0/c1e0413983f589a1dfcbb53aa35d04f42244e88d75899eb4c04a3733ac37d2a915063dc91a726409b0239e4a039059d860e1069efb9c8faa6580d06c8b88f3a0 languageName: node linkType: hard @@ -11821,7 +11820,7 @@ __metadata: stylelint: "npm:^16.24.0" stylelint-config-css-modules: "npm:^4.5.1" stylelint-config-standard: "npm:^39.0.0" - ton-assembly: "npm:0.2.4" + ton-assembly: "npm:0.6.0" ts-node: "npm:^10.9.1" txtracer-core: "npm:^0.4.0" typescript: "npm:~5.8.3" From f9afc61b1929cd70a10f47323577a4472b9786e4 Mon Sep 17 00:00:00 2001 From: Danil Ovchinnikov Date: Fri, 5 Dec 2025 23:19:48 +0300 Subject: [PATCH 3/5] update `@ton/sandbox` --- package.json | 6 +++--- yarn.lock | 49 +++++++++++++++++-------------------------------- 2 files changed, 20 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index b888365f..29d731fe 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@ton-community/func-js": "^0.9.1", "@ton/core": "^0.61.0", "@ton/crypto": "^3.3.0", - "@ton/sandbox": "^0.39.0", + "@ton/sandbox": "^0.41.0", "@ton/test-utils": "^0.7.0", "@ton/tolk-js": "^1.1.0", "@truecarry/tlb-abi": "^0.2.0", @@ -46,8 +46,8 @@ "react-helmet-async": "^2.0.5", "react-icons": "^5.5.0", "react-markdown": "^10.1.0", - "ton-assembly": "0.6.0", - "txtracer-core": "^0.4.0" + "ton-assembly": "0.6.1", + "txtracer-core": "^0.5.0" }, "devDependencies": { "@astrojs/check": "^0.9.4", diff --git a/yarn.lock b/yarn.lock index f6e51d3c..880cf7df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2438,15 +2438,15 @@ __metadata: languageName: node linkType: hard -"@ton/sandbox@npm:^0.39.0": - version: 0.39.0 - resolution: "@ton/sandbox@npm:0.39.0" +"@ton/sandbox@npm:^0.41.0": + version: 0.41.0 + resolution: "@ton/sandbox@npm:0.41.0" dependencies: "@vscode/debugadapter": "npm:^1.68.0" chalk: "npm:^4.1.2" fflate: "npm:^0.8.2" table: "npm:^6.9.0" - ton-assembly: "npm:0.1.2" + ton-assembly: "npm:0.6.1" peerDependencies: "@ton-community/func-js": ">=0.10.0" "@ton/core": ">=0.61.0" @@ -2458,7 +2458,7 @@ __metadata: optional: true jest: optional: true - checksum: 10c0/10566a559ff55c1806388c0c3299261447e8a56f4a1c17c493ee29c2e839a2a216e464509150126048bde41d1ada84460583ee28eea009daf511f05c539c6b8a + checksum: 10c0/15471f4dfa35d17182f9577941a85ea4c2e88ed0bf2ece8bacd1f7302bd42195d82eaf205fb5940e334a7930c302546a2c3fbedf0065318de6531191a9820238 languageName: node linkType: hard @@ -11559,24 +11559,9 @@ __metadata: languageName: node linkType: hard -"ton-assembly@npm:0.1.2": - version: 0.1.2 - resolution: "ton-assembly@npm:0.1.2" - dependencies: - "@tonstudio/parser-runtime": "npm:^0.0.1" - cac: "npm:^6.7.14" - peerDependencies: - "@ton/core": ">=0.61.0" - bin: - tasm: dist/cli/assembler.js - tdisasm: dist/cli/disassembler.js - checksum: 10c0/f0c8bc73d157bf04d2eb2c1611e19c67d570bc035c5b089b43e4f5862926e26b46e08d8e855a2c2c8ae85dec31af21444c3b0438feea4cd323db455f609f9e86 - languageName: node - linkType: hard - -"ton-assembly@npm:0.6.0": - version: 0.6.0 - resolution: "ton-assembly@npm:0.6.0" +"ton-assembly@npm:0.6.1": + version: 0.6.1 + resolution: "ton-assembly@npm:0.6.1" dependencies: "@tonstudio/parser-runtime": "npm:^0.0.1" cac: "npm:^6.7.14" @@ -11590,7 +11575,7 @@ __metadata: tasm: dist/cli/assembler.js tdisasm: dist/cli/disassembler.js tfift: dist/cli/fift-compiler.js - checksum: 10c0/88bbb543420aeb499a5ecee902d9643f2704421d84de9594df5e1d4087cae301bb74b7fa7bd27e3953f9d0acab8ee2e74f9cac4d838a2f49f788b5d5681d8c93 + checksum: 10c0/0248810f2b3e7a31d3617996d0f0b0ea973e0b288af0985fdc8e1c9784638dbc4d9876dd82f381ed838753f2d8c0c5273fcae93d422c4f9da6c09f88f0f37b38 languageName: node linkType: hard @@ -11742,16 +11727,16 @@ __metadata: languageName: node linkType: hard -"txtracer-core@npm:^0.4.0": - version: 0.4.0 - resolution: "txtracer-core@npm:0.4.0" +"txtracer-core@npm:^0.5.0": + version: 0.5.0 + resolution: "txtracer-core@npm:0.5.0" dependencies: "@ton-community/func-js": "npm:^0.10.0" "@ton/core": "npm:^0.61.0" - "@ton/sandbox": "npm:^0.39.0" + "@ton/sandbox": "npm:^0.41.0" "@ton/ton": "npm:^15.3.1" axios: "npm:^1.6.7" - checksum: 10c0/be26e17b3d9442a981036d96685e9f2bddb9ecd22ebe426caebbb4d64c1cd15fa939d8a9839e45dfea188179be9824dd553e2a262d1b3c02a837f259ac48c31a + checksum: 10c0/fca832c727cd4455c650b966782cd9543a609d86381a2b2ca4b1ea0856b00160c0396e7614ddf60ef630ee517708bfb00a3709ae0ab1173b7a08ce58991629c5 languageName: node linkType: hard @@ -11770,7 +11755,7 @@ __metadata: "@ton-community/func-js": "npm:^0.9.1" "@ton/core": "npm:^0.61.0" "@ton/crypto": "npm:^3.3.0" - "@ton/sandbox": "npm:^0.39.0" + "@ton/sandbox": "npm:^0.41.0" "@ton/test-utils": "npm:^0.7.0" "@ton/tolk-js": "npm:^1.1.0" "@truecarry/tlb-abi": "npm:^0.2.0" @@ -11820,9 +11805,9 @@ __metadata: stylelint: "npm:^16.24.0" stylelint-config-css-modules: "npm:^4.5.1" stylelint-config-standard: "npm:^39.0.0" - ton-assembly: "npm:0.6.0" + ton-assembly: "npm:0.6.1" ts-node: "npm:^10.9.1" - txtracer-core: "npm:^0.4.0" + txtracer-core: "npm:^0.5.0" typescript: "npm:~5.8.3" typescript-eslint: "npm:^8.30.1" vite: "npm:^6.3.5" From 34b62af23c0bc1c1ad955a4752a404307214e53d Mon Sep 17 00:00:00 2001 From: Danil Ovchinnikov Date: Fri, 5 Dec 2025 23:48:24 +0300 Subject: [PATCH 4/5] fix code --- package.json | 1 + src/features/godbolt/lib/func/compilation.ts | 14 +++++++++----- src/features/godbolt/lib/tolk/compilation.ts | 11 +++++++---- src/features/tasm/lib/executor.ts | 6 ++++-- src/features/txTrace/hooks/useFuncLineStepper.ts | 4 +++- src/features/txTrace/lib/traceTx.ts | 10 ++++------ .../GodboltPage/hooks/useSourceMapHighlight.ts | 4 +++- yarn.lock | 1 + 8 files changed, 32 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 29d731fe..3c18ecce 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "react-icons": "^5.5.0", "react-markdown": "^10.1.0", "ton-assembly": "0.6.1", + "ton-source-map": "^0.2.2", "txtracer-core": "^0.5.0" }, "devDependencies": { diff --git a/src/features/godbolt/lib/func/compilation.ts b/src/features/godbolt/lib/func/compilation.ts index 3d457975..a4e5d44d 100644 --- a/src/features/godbolt/lib/func/compilation.ts +++ b/src/features/godbolt/lib/func/compilation.ts @@ -1,6 +1,8 @@ import {Cell} from "@ton/core" import {runtime as i, text, trace} from "ton-assembly" +import type {InstructionInfo} from "ton-source-map" + import {FUNC_STDLIB} from "@features/godbolt/lib/func/stdlib.ts" import {funcCompile} from "@features/godbolt/lib/func/func-wasm/func-compile.ts" @@ -10,7 +12,7 @@ export interface FuncCompilationResult { readonly code: string readonly assembly: string readonly sourceMap?: trace.FuncMapping - readonly mapping: Map + readonly mapping: Map } export class FuncCompilationError extends Error { @@ -51,12 +53,14 @@ export const compileFuncCode = async (code: string): Promise() + const debugSectionToInstructions = new Map() for (const instr of allInstructions) { - const arr = debugSectionToInstructions.get(instr.debugSection) ?? [] - arr.push(instr) - debugSectionToInstructions.set(instr.debugSection, arr) + for (const debugSection of instr.debugSections) { + const arr = debugSectionToInstructions.get(debugSection) ?? [] + arr.push(instr) + debugSectionToInstructions.set(debugSection, arr) + } } return { diff --git a/src/features/godbolt/lib/tolk/compilation.ts b/src/features/godbolt/lib/tolk/compilation.ts index 52d8e8a5..aef6b122 100644 --- a/src/features/godbolt/lib/tolk/compilation.ts +++ b/src/features/godbolt/lib/tolk/compilation.ts @@ -1,6 +1,7 @@ import {Cell} from "@ton/core" import {runtime as i, text, trace} from "ton-assembly" +import type {InstructionInfo} from "ton-source-map" import {runTolkCompiler} from "@ton/tolk-js" import {TolkCompilationError, type TolkCompilationResult} from "@features/godbolt/lib/tolk/types.ts" @@ -27,12 +28,14 @@ export const compileTolkCode = async (code: string): Promise() + const debugSectionToInstructions = new Map() for (const instr of allInstructions) { - const arr = debugSectionToInstructions.get(instr.debugSection) ?? [] - arr.push(instr) - debugSectionToInstructions.set(instr.debugSection, arr) + for (const debugSection of instr.debugSections) { + const arr = debugSectionToInstructions.get(debugSection) ?? [] + arr.push(instr) + debugSectionToInstructions.set(debugSection, arr) + } } return { diff --git a/src/features/tasm/lib/executor.ts b/src/features/tasm/lib/executor.ts index d3c578ff..443ac7ba 100644 --- a/src/features/tasm/lib/executor.ts +++ b/src/features/tasm/lib/executor.ts @@ -3,9 +3,11 @@ import type {Address, Contract, ContractProvider, Sender, StateInit, TupleReader import {Cell, contractAddress, toNano, TupleBuilder} from "@ton/core" import {GetMethodError, type SandboxContract, type TreasuryContract} from "@ton/sandbox" import {Blockchain} from "@ton/sandbox" -import {createMappingInfo, type MappingInfo} from "ton-assembly/dist/trace/mapping" +import {createMappingInfo} from "ton-assembly/dist/trace/mapping" import type {StackElement} from "ton-assembly/dist/trace" +import type {AssemblyMapping} from "ton-source-map" + import {type ExitCode, findExitCode} from "@features/txTrace/lib/traceTx.ts" function stackElementsToTupleBuilder(stackElements: StackElement[]): TupleBuilder { @@ -112,7 +114,7 @@ export interface AssemblyExecutionResult { readonly vmLogs: string readonly instructions: i.Instr[] readonly code: string - readonly mappingInfo: MappingInfo | null + readonly mappingInfo: AssemblyMapping | null readonly exitCode: ExitCode | undefined readonly traceInfo: trace.TraceInfo | undefined } diff --git a/src/features/txTrace/hooks/useFuncLineStepper.ts b/src/features/txTrace/hooks/useFuncLineStepper.ts index 76b94cf2..1d4b7f59 100644 --- a/src/features/txTrace/hooks/useFuncLineStepper.ts +++ b/src/features/txTrace/hooks/useFuncLineStepper.ts @@ -1,10 +1,12 @@ import {useCallback, useEffect, useMemo, useState} from "react" import {trace} from "ton-assembly" +import type {InstructionInfo} from "ton-source-map" + import type {UseTraceStepperReturn} from "./useTraceStepper" export interface CompilationResult { - readonly mapping?: Map + readonly mapping?: Map readonly assembly?: string readonly funcSourceMap?: trace.FuncMapping } diff --git a/src/features/txTrace/lib/traceTx.ts b/src/features/txTrace/lib/traceTx.ts index 500f065b..7babcd21 100644 --- a/src/features/txTrace/lib/traceTx.ts +++ b/src/features/txTrace/lib/traceTx.ts @@ -1,17 +1,15 @@ import {retrace, retraceBaseTx} from "txtracer-core" import type {TraceResult} from "txtracer-core/dist/types" import {compileCellWithMapping, decompileCell} from "ton-assembly/dist/runtime/instr" -import { - createMappingInfo, - type InstructionInfo, - type MappingInfo, -} from "ton-assembly/dist/trace/mapping" +import {createMappingInfo} from "ton-assembly/dist/trace/mapping" import {type Step, type TraceInfo} from "ton-assembly/dist/trace" import {createTraceInfoPerTransaction, findInstructionInfo} from "ton-assembly/dist/trace/trace" import {parse, print} from "ton-assembly/dist/text" import * as l from "ton-assembly/dist/logs" import {Cell} from "@ton/core" +import type {AssemblyMapping, InstructionInfo} from "ton-source-map" + import type {NetworkType, RetraceResultAndCode} from "@features/txTrace/ui" import type {TransactionInfo} from "@features/sandbox/lib/transaction" import type {ContractData} from "@features/sandbox/lib/contract" @@ -135,7 +133,7 @@ export function findException(reversedEntries: l.VmLine[]) { return mapped.find(it => it !== undefined) } -export function findExitCode(vmLogs: string, mappingInfo: MappingInfo) { +export function findExitCode(vmLogs: string, mappingInfo: AssemblyMapping) { const res = l.parse(vmLogs) const reversedEntries = [...res].reverse() const description = findException(reversedEntries) diff --git a/src/pages/GodboltPage/hooks/useSourceMapHighlight.ts b/src/pages/GodboltPage/hooks/useSourceMapHighlight.ts index 001724f6..62a0096f 100644 --- a/src/pages/GodboltPage/hooks/useSourceMapHighlight.ts +++ b/src/pages/GodboltPage/hooks/useSourceMapHighlight.ts @@ -3,6 +3,8 @@ import type * as monaco from "monaco-editor" import {trace} from "ton-assembly" +import type {InstructionInfo} from "ton-source-map" + import type {HighlightGroup, HighlightRange} from "@shared/ui/CodeEditor" export interface UseSourceMapHighlightReturn { @@ -78,7 +80,7 @@ const COLORS = [ export function useSourceMapHighlight( sourceMap: trace.FuncMapping | undefined, - debugSectionToInstructions?: Map, + debugSectionToInstructions?: Map, funcEditorRef?: React.RefObject, asmEditorRef?: React.RefObject, originalAsmCode?: string, diff --git a/yarn.lock b/yarn.lock index 880cf7df..25523f74 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11806,6 +11806,7 @@ __metadata: stylelint-config-css-modules: "npm:^4.5.1" stylelint-config-standard: "npm:^39.0.0" ton-assembly: "npm:0.6.1" + ton-source-map: "npm:^0.2.2" ts-node: "npm:^10.9.1" txtracer-core: "npm:^0.5.0" typescript: "npm:~5.8.3" From f45dd29d3bd3680b7b27c81d0eb5093f88c91955 Mon Sep 17 00:00:00 2001 From: Danil Ovchinnikov Date: Fri, 5 Dec 2025 23:52:13 +0300 Subject: [PATCH 5/5] fix code --- src/features/godbolt/lib/tolk/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/godbolt/lib/tolk/types.ts b/src/features/godbolt/lib/tolk/types.ts index 8029b442..96702b92 100644 --- a/src/features/godbolt/lib/tolk/types.ts +++ b/src/features/godbolt/lib/tolk/types.ts @@ -1,11 +1,12 @@ -import {runtime as i, trace} from "ton-assembly" +import {runtime as i} from "ton-assembly" +import type {InstructionInfo} from "ton-source-map" export interface TolkCompilationResult { readonly lang: "tolk" readonly instructions: i.Instr[] readonly code: string readonly assembly: string - readonly mapping: Map + readonly mapping: Map } export class TolkCompilationError extends Error {