@ton/blueprint 0.44.2 → 0.45.0

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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ > [!CAUTION]
2
+ > Deprecated. Use [Acton](https://ton-blockchain.github.io/acton/) instead.
3
+
1
4
  <img src="https://raw.githubusercontent.com/ton-org/blueprint/main/logo.svg" width=400 >
2
5
 
3
6
  # Blueprint
@@ -163,7 +166,7 @@ Before developing, make sure that your current working directory is located in t
163
166
  ### Creating contracts
164
167
 
165
168
  1. Run interactive: &nbsp;&nbsp; `npx blueprint create` &nbsp; or &nbsp; `yarn blueprint create`
166
- 2. Non-interactive: &nbsp; `npx/yarn blueprint create <CONTRACT> --type <TYPE>` (type can be `tolk-empty`, `func-empty`, `tact-empty`, `tolk-counter`, `func-counter`, `tact-counter`)
169
+ 2. Non-interactive: &nbsp; `npx/yarn blueprint create <CONTRACT> --type <TYPE>` (type can be `tolk-empty`, `tolk-counter`, `func-empty` (deprecated), `func-counter` (deprecated), `tact-empty` (deprecated), `tact-counter` (deprecated))
167
170
  * Example: `yarn blueprint create MyNewContract --type tolk-empty`
168
171
 
169
172
  ### Renaming contracts
package/dist/cli/cli.js CHANGED
@@ -76,9 +76,16 @@ async function main() {
76
76
  permissive: true,
77
77
  });
78
78
  if (args._.length === 0) {
79
+ printDeprecationNotice();
80
+ console.log();
79
81
  showHelp();
80
82
  process.exit(0);
81
83
  }
84
+ const command = args._[0];
85
+ if (command === 'help' || command === 'create') {
86
+ printDeprecationNotice();
87
+ console.log();
88
+ }
82
89
  let effectiveRunners = {};
83
90
  const runnerContext = {};
84
91
  const config = await (0, utils_1.getConfig)();
@@ -100,7 +107,6 @@ async function main() {
100
107
  ...effectiveRunners,
101
108
  ...runners,
102
109
  };
103
- const command = args._[0];
104
110
  const runner = effectiveRunners[command];
105
111
  if (!runner) {
106
112
  console.log(chalk_1.default.redBright(`Error: command ${command} not found.`) +
@@ -145,3 +151,6 @@ function showHelp() {
145
151
  }
146
152
  console.log(``);
147
153
  }
154
+ function printDeprecationNotice() {
155
+ console.log(`${chalk_1.default.red('!')} Deprecated. Use https://ton-blockchain.github.io/acton/ instead.`);
156
+ }
@@ -11,11 +11,11 @@ exports.templateTypes = [
11
11
  value: 'tolk-empty',
12
12
  },
13
13
  {
14
- name: 'An empty contract (FunC)',
14
+ name: 'An empty contract (FunC, deprecated)',
15
15
  value: 'func-empty',
16
16
  },
17
17
  {
18
- name: 'An empty contract (Tact)',
18
+ name: 'An empty contract (Tact, deprecated)',
19
19
  value: 'tact-empty',
20
20
  },
21
21
  {
@@ -23,11 +23,11 @@ exports.templateTypes = [
23
23
  value: 'tolk-counter',
24
24
  },
25
25
  {
26
- name: 'A simple counter contract (FunC)',
26
+ name: 'A simple counter contract (FunC, deprecated)',
27
27
  value: 'func-counter',
28
28
  },
29
29
  {
30
- name: 'A simple counter contract (Tact)',
30
+ name: 'A simple counter contract (Tact, deprecated)',
31
31
  value: 'tact-counter',
32
32
  },
33
33
  ];
@@ -198,7 +198,7 @@ int check_data_signature(slice data, slice signature, int public_key) asm "CHKSI
198
198
  (int, int, int, int) compute_data_size?(cell c, int max_cells) asm "CDATASIZEQ NULLSWAPIFNOT2 NULLSWAPIFNOT";
199
199
 
200
200
  ;;; A non-quiet version of [slice_compute_data_size?] that throws a cell overflow exception (8) on failure.
201
- (int, int, int, int) slice_compute_data_size?(cell c, int max_cells) asm "SDATASIZEQ NULLSWAPIFNOT2 NULLSWAPIFNOT";
201
+ (int, int, int, int) slice_compute_data_size?(slice s, int max_cells) asm "SDATASIZEQ NULLSWAPIFNOT2 NULLSWAPIFNOT";
202
202
 
203
203
  ;;; Throws an exception with exit_code excno if cond is not 0 (commented since implemented in compilator)
204
204
  ;; () throw_if(int excno, int cond) impure asm "THROWARGIF";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton/blueprint",
3
- "version": "0.44.2",
3
+ "version": "0.45.0",
4
4
  "description": "Framework for development of TON smart contracts",
5
5
  "main": "dist/index.js",
6
6
  "bin": "./dist/cli/cli.js",
@@ -28,7 +28,7 @@
28
28
  "@ton/crypto": "^3.3.0",
29
29
  "@ton/sandbox": "^0.40.0",
30
30
  "@ton/tolk-js": "^1.0.0",
31
- "@ton/ton": "^16.2.4",
31
+ "@ton/ton": "^16.3.0",
32
32
  "@ton/toolchain": "the-ton-tech/toolchain#v1.6.0",
33
33
  "@types/inquirer": "^8.2.6",
34
34
  "@types/jest": "^30.0.0",
@@ -59,7 +59,7 @@
59
59
  "@ton-api/ton-adapter": "^0.2.0",
60
60
  "@tonconnect/sdk": "^2.2.0",
61
61
  "arg": "^5.0.2",
62
- "axios": "1.15.0",
62
+ "axios": "^1.15.0",
63
63
  "chalk": "^4.1.0",
64
64
  "dotenv": "^16.1.4",
65
65
  "inquirer": "^8.2.5",