@ton/blueprint 0.39.0 → 0.40.0-dev.20250804180504.c771d11

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.39.1] - 2025-08-04
9
+
10
+ ### Added
11
+
12
+ - Added `--compiler-version` flag to support precise version selection when verifying
13
+
8
14
  ## [0.39.0] - 2025-08-04
9
15
 
10
16
  ### Added
package/README.md CHANGED
@@ -305,7 +305,7 @@ npx blueprint run \
305
305
 
306
306
  You can also use custom network to verify contracts, like so:
307
307
  ```bash
308
- npx blueprint verify --custom https://toncenter.com/api/v2/jsonRPC --custom-version v2 --custom-type mainnet --custom-key YOUR_API_KEY
308
+ npx blueprint verify --custom https://toncenter.com/api/v2/jsonRPC --custom-version v2 --custom-type mainnet --custom-key YOUR_API_KEY --compiler-version 0.4.4-newops.1
309
309
  ```
310
310
  (or similarly using the config), however custom type MUST be specified as either `mainnet` or `testnet` when verifying.
311
311
 
@@ -110,6 +110,7 @@ Verifies a deployed contract on ${chalk_1.default.underline('https://verifier.to
110
110
 
111
111
  ${chalk_1.default.bold('Flags:')}
112
112
  ${chalk_1.default.cyan('--mainnet')}, ${chalk_1.default.cyan('--testnet')} - selects network
113
+ ${chalk_1.default.cyan('--compiler-version')} - specifies the exact compiler version to use (e.g. ${chalk_1.default.cyan('0.4.4-newops.1')}). Note: this does not change the underlying compiler itself.
113
114
  ${chalk_1.default.cyan('--custom')} [api-endpoint] - use custom API (requires --custom-type)
114
115
  ${chalk_1.default.cyan('--custom-version')} - API version (v2 default)
115
116
  ${chalk_1.default.cyan('--custom-key')} - API key (v2 only)
@@ -139,6 +139,7 @@ const verify = async (_args, ui, context) => {
139
139
  ui.write(constants_1.helpMessages['verify']);
140
140
  return;
141
141
  }
142
+ const preciseVersion = localArgs['--compiler-version'];
142
143
  const selectedContract = await (0, build_1.selectContract)(ui, (0, Runner_1.extractFirstArg)(localArgs));
143
144
  const networkProvider = await (0, createNetworkProvider_1.createNetworkProvider)(ui, localArgs, context.config, false);
144
145
  const sender = networkProvider.sender();
@@ -180,7 +181,7 @@ const verify = async (_args, ui, context) => {
180
181
  src = {
181
182
  compiler: 'func',
182
183
  compilerSettings: {
183
- funcVersion: result.version,
184
+ funcVersion: preciseVersion ?? result.version,
184
185
  commandLine: '-SPA ' + result.targets.join(' '),
185
186
  },
186
187
  knownContractAddress: addr,
@@ -236,7 +237,7 @@ const verify = async (_args, ui, context) => {
236
237
  src = {
237
238
  compiler: 'tolk',
238
239
  compilerSettings: {
239
- tolkVersion: result.version,
240
+ tolkVersion: preciseVersion ?? result.version,
240
241
  },
241
242
  knownContractAddress: addr,
242
243
  knownContractHash: result.code.hash().toString('base64'),
@@ -9,6 +9,7 @@ export declare const argSpec: {
9
9
  '--custom-type': StringConstructor;
10
10
  '--custom-version': StringConstructor;
11
11
  '--custom-key': StringConstructor;
12
+ '--compiler-version': StringConstructor;
12
13
  '--tonconnect': BooleanConstructor;
13
14
  '--deeplink': BooleanConstructor;
14
15
  '--mnemonic': BooleanConstructor;
@@ -41,6 +41,7 @@ exports.argSpec = {
41
41
  '--custom-type': String,
42
42
  '--custom-version': String,
43
43
  '--custom-key': String,
44
+ '--compiler-version': String,
44
45
  '--tonconnect': Boolean,
45
46
  '--deeplink': Boolean,
46
47
  '--mnemonic': Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton/blueprint",
3
- "version": "0.39.0",
3
+ "version": "0.40.0-dev.20250804180504.c771d11",
4
4
  "description": "Framework for development of TON smart contracts",
5
5
  "main": "dist/index.js",
6
6
  "bin": "./dist/cli/cli.js",