Skip to content

Commit

Permalink
chore(docs): note on occasional use of compilables/ over `wrappers/…
Browse files Browse the repository at this point in the history
…` in Blueprint projects (#1112)
  • Loading branch information
novusnota authored Dec 4, 2024
1 parent f5c84f2 commit d43373b
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Docs: complete overhaul of the exit codes page: PR [#978](https://github.com/tact-lang/tact/pull/978)
- Docs: enhanced Jettons Cookbook page: PR [#944](https://github.com/tact-lang/tact/pull/944)
- Error codes in the report are now formatted as a list: PR [#1051](https://github.com/tact-lang/tact/pull/1051)
- Docs: note that `compilables/` can sometimes be used over `wrappers/` in Blueprint projects: PR [#1112](https://github.com/tact-lang/tact/pull/1112)

### Fixed

Expand Down
2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"cleanall",
"codegen",
"comptime",
"Compilables",
"compilables",
"Daniil",
"decompilation",
"decompile",
Expand Down
2 changes: 2 additions & 0 deletions docs/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"Cheatsheet",
"Cheatsheets",
"Comptime",
"Compilables",
"Daniil",
"Decompilation",
"Decompiled",
Expand Down Expand Up @@ -114,6 +115,7 @@
"cleanall",
"codegen",
"comptime",
"compilables",
"decompilation",
"decompilation",
"decompile",
Expand Down
5 changes: 3 additions & 2 deletions docs/src/content/docs/book/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ In [Blueprint][bp], `name` refers to the name of the contract itself.

Path to the project's Tact file. You can only specify one Tact file per project.

In [Blueprint][bp], `path` is superseded by the `target` field in `wrappers/ContractName.compile.ts`.
In [Blueprint][bp], `path` is superseded by the `target` field in `wrappers/ContractName.compile.ts` by default, or in `compilables/ContractName.compile.ts` if you have `separateCompilables` the option set in the [`blueprint.config.ts`][bp-config].

```json filename="tact.config.json" {5}
{
Expand Down Expand Up @@ -97,7 +97,7 @@ In [Blueprint][bp], `output` is not used and all generated files are always plac

Compilation options for the project.

In [Blueprint][bp], they act as default unless modified in `wrappers/ContractName.compile.ts`.
In [Blueprint][bp], they act as default unless modified in `wrappers/ContractName.compile.ts` by default, or in `compilables/ContractName.compile.ts` if you have `separateCompilables` the option set in the [`blueprint.config.ts`][bp-config].

```json filename="tact.config.json" {7,11}
{
Expand Down Expand Up @@ -413,3 +413,4 @@ In [Blueprint][bp], `mode` is always set to `"full"{:json}` and cannot be overwr
```

[bp]: https://github.com/ton-org/blueprint
[bp-config]: https://github.com/ton-org/blueprint/tree/main?tab=readme-ov-file#configuration
7 changes: 7 additions & 0 deletions docs/src/content/docs/book/contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ export const compile: CompilerConfig = {

In addition to that, [`tact.config.json`](/book/config) may still be used in [Blueprint][bp] projects. In such cases values specified in [`tact.config.json`](/book/config) act as default unless modified in the `wrappers/`.

:::note

If you have the `separateCompilables` option set to `true{:typescript}` in the [`blueprint.config.ts`][bp-config], then the `.compile.ts` files will be located in the `compilables/` directory and **not** in `wrappers/`.

:::

:::caution

Be aware that adding an interface does not guarantee that the contract actually implements any particular functionality, or that it implements it in any particular way. It's just an off-chain, verifiable promise that a contract _might_ have some specific code in it. It's up to you to trust, but verify, such claims.
Expand Down Expand Up @@ -352,3 +358,4 @@ contract Functions {
[trait]: /book/types#traits

[bp]: https://github.com/ton-org/blueprint
[bp-config]: https://github.com/ton-org/blueprint/tree/main?tab=readme-ov-file#configuration
7 changes: 7 additions & 0 deletions docs/src/content/docs/book/debug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ Note, that versions of [Blueprint][bp] starting with 0.20.0 automatically enable

In addition to that, [`tact.config.json`](/book/config) may still be used in [Blueprint][bp] projects. In such cases values specified in [`tact.config.json`](/book/config) act as default unless modified in the `wrappers/`.

:::note

If you have the `separateCompilables` option set to `true{:typescript}` in the [`blueprint.config.ts`][bp-config], then the `.compile.ts` files will be located in the `compilables/` directory and **not** in `wrappers/`.

:::

:::note

Read more about configuration and [`tact.config.json`](/book/config) file: [Configuration](/book/config).\
Expand Down Expand Up @@ -725,5 +731,6 @@ If you're overwhelmed by the testing setup of [Blueprint][bp] or just want to te

[tg]: https://t.me/tactlang
[bp]: https://github.com/ton-org/blueprint
[bp-config]: https://github.com/ton-org/blueprint/tree/main?tab=readme-ov-file#configuration
[sb]: https://github.com/ton-org/sandbox
[jest]: https://jestjs.io
7 changes: 7 additions & 0 deletions docs/src/content/docs/book/masterchain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@ export const compile: CompilerConfig = {

However, [`tact.config.json`](/book/config) may still be used in [Blueprint][bp] projects. In such cases values specified in [`tact.config.json`](/book/config) act as default unless modified in the `wrappers/`.

:::note

If you have the `separateCompilables` option set to `true{:typescript}` in the [`blueprint.config.ts`][bp-config], then the `.compile.ts` files will be located in the `compilables/` directory and **not** in `wrappers/`.

:::

[bp]: https://github.com/ton-org/blueprint
[bp-config]: https://github.com/ton-org/blueprint/tree/main?tab=readme-ov-file#configuration
4 changes: 2 additions & 2 deletions schemas/configSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"path": {
"type": "string",
"description": "Path to the project's Tact file. You can only specify one Tact file per project.\n\nIn Blueprint, `path` is superseded by the `target` field in `wrappers/ContractName.compile.ts`.",
"description": "Path to the project's Tact file. You can only specify one Tact file per project.\n\nIn Blueprint, `path` is superseded by the `target` field in `wrappers/ContractName.compile.ts` by default, or in `compilables/ContractName.compile.ts` if you have `separateCompilables` the option set in the `blueprint.config.ts`.",
"examples": ["./path/to/contract.tact"]
},
"output": {
Expand All @@ -29,7 +29,7 @@
},
"options": {
"type": "object",
"description": "Compilation options for the project.\n\nIn Blueprint, they act as default unless modified in `wrappers/ContractName.compile.ts`.",
"description": "Compilation options for the project.\n\nIn Blueprint, they act as default unless modified in `wrappers/ContractName.compile.ts` by default, or in `compilables/ContractName.compile.ts` if you have `separateCompilables` the option set in the `blueprint.config.ts`.",
"properties": {
"debug": {
"type": "boolean",
Expand Down

0 comments on commit d43373b

Please sign in to comment.