@ton/blueprint 0.22.0 → 0.23.0-debugger.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { SourcesArray } from '@ton-community/func-js';
|
|
2
|
+
import { SourcesArray, DebugInfo } from '@ton-community/func-js';
|
|
3
3
|
import { Cell } from '@ton/core';
|
|
4
4
|
import { TactCompilerConfig } from './CompilerConfig';
|
|
5
5
|
export declare function getCompilablesDirectory(): Promise<string>;
|
|
@@ -10,6 +10,7 @@ export type FuncCompileResult = {
|
|
|
10
10
|
targets: string[];
|
|
11
11
|
snapshot: SourcesArray;
|
|
12
12
|
version: string;
|
|
13
|
+
debugInfo?: DebugInfo;
|
|
13
14
|
};
|
|
14
15
|
export type TactCompileResult = {
|
|
15
16
|
lang: 'tact';
|
|
@@ -21,5 +22,6 @@ export type CompileResult = TactCompileResult | FuncCompileResult;
|
|
|
21
22
|
export declare function doCompile(name: string, opts?: CompileOpts): Promise<CompileResult>;
|
|
22
23
|
export type CompileOpts = {
|
|
23
24
|
hookUserData?: any;
|
|
25
|
+
debugInfo?: boolean;
|
|
24
26
|
};
|
|
25
27
|
export declare function compile(name: string, opts?: CompileOpts): Promise<Cell>;
|
package/dist/compile/compile.js
CHANGED
|
@@ -70,6 +70,7 @@ async function doCompileFunc(config) {
|
|
|
70
70
|
targets,
|
|
71
71
|
snapshot: cr.snapshot,
|
|
72
72
|
version: (await (0, func_js_1.compilerVersion)()).funcVersion,
|
|
73
|
+
debugInfo: cr.debugInfo,
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
function findTactBoc(fs) {
|
|
@@ -130,10 +131,14 @@ async function doCompileInner(name, config) {
|
|
|
130
131
|
targets: config.targets,
|
|
131
132
|
sources: config.sources ?? ((path) => (0, fs_1.readFileSync)(path).toString()),
|
|
132
133
|
optLevel: config.optLevel,
|
|
134
|
+
debugInfo: config.debugInfo,
|
|
133
135
|
});
|
|
134
136
|
}
|
|
135
137
|
async function doCompile(name, opts) {
|
|
136
138
|
const config = await getCompilerConfigForContract(name);
|
|
139
|
+
if (opts?.debugInfo && config.lang === 'func') {
|
|
140
|
+
config.debugInfo = true;
|
|
141
|
+
}
|
|
137
142
|
if (config.preCompileHook !== undefined) {
|
|
138
143
|
await config.preCompileHook({
|
|
139
144
|
userData: opts?.hookUserData,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { tonDeepLink, sleep } from './utils';
|
|
2
2
|
export { NetworkProvider } from './network/NetworkProvider';
|
|
3
3
|
export { createNetworkProvider } from './network/createNetworkProvider';
|
|
4
|
-
export { compile, CompileOpts } from './compile/compile';
|
|
4
|
+
export { compile, CompileOpts, CompileResult, FuncCompileResult, TactCompileResult, doCompile } from './compile/compile';
|
|
5
5
|
export { CompilerConfig, HookParams } from './compile/CompilerConfig';
|
|
6
6
|
export { UIProvider } from './ui/UIProvider';
|
|
7
7
|
export { Config } from './config/Config';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildAll = exports.buildOne = exports.compile = exports.createNetworkProvider = exports.sleep = exports.tonDeepLink = void 0;
|
|
3
|
+
exports.buildAll = exports.buildOne = exports.doCompile = exports.compile = exports.createNetworkProvider = exports.sleep = exports.tonDeepLink = void 0;
|
|
4
4
|
var utils_1 = require("./utils");
|
|
5
5
|
Object.defineProperty(exports, "tonDeepLink", { enumerable: true, get: function () { return utils_1.tonDeepLink; } });
|
|
6
6
|
Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return utils_1.sleep; } });
|
|
@@ -8,6 +8,7 @@ var createNetworkProvider_1 = require("./network/createNetworkProvider");
|
|
|
8
8
|
Object.defineProperty(exports, "createNetworkProvider", { enumerable: true, get: function () { return createNetworkProvider_1.createNetworkProvider; } });
|
|
9
9
|
var compile_1 = require("./compile/compile");
|
|
10
10
|
Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return compile_1.compile; } });
|
|
11
|
+
Object.defineProperty(exports, "doCompile", { enumerable: true, get: function () { return compile_1.doCompile; } });
|
|
11
12
|
var build_1 = require("./build");
|
|
12
13
|
Object.defineProperty(exports, "buildOne", { enumerable: true, get: function () { return build_1.buildOne; } });
|
|
13
14
|
Object.defineProperty(exports, "buildAll", { enumerable: true, get: function () { return build_1.buildAll; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ton/blueprint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0-debugger.1",
|
|
4
4
|
"description": "Framework for development of TON smart contracts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "./dist/cli/cli.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@orbs-network/ton-access": "^2.3.3",
|
|
38
38
|
"@tact-lang/compiler": "^1.4.0",
|
|
39
|
-
"@ton-community/func-js": "^0.
|
|
39
|
+
"@ton-community/func-js": "^0.8.0-debuginfo.1",
|
|
40
40
|
"@tonconnect/sdk": "^2.2.0",
|
|
41
41
|
"arg": "^5.0.2",
|
|
42
42
|
"chalk": "^4.1.0",
|