Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
> [!CAUTION]
> Deprecated. Use [Acton](https://ton-blockchain.github.io/acton/) instead.

<img src="https://raw.githubusercontent.com/ton-org/blueprint/main/logo.svg" width=400 >

# Blueprint
Expand Down Expand Up @@ -163,7 +166,7 @@ Before developing, make sure that your current working directory is located in t
### Creating contracts

1. Run interactive: &nbsp;&nbsp; `npx blueprint create` &nbsp; or &nbsp; `yarn blueprint create`
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`)
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))
* Example: `yarn blueprint create MyNewContract --type tolk-empty`

### Renaming contracts
Expand Down
15 changes: 13 additions & 2 deletions src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,19 @@ async function main() {
});

if (args._.length === 0) {
printDeprecationNotice();
console.log();
showHelp();
process.exit(0);
}

const command = args._[0];

if (command === 'help' || command === 'create') {
printDeprecationNotice();
console.log();
}

let effectiveRunners: Record<string, Runner> = {};

const runnerContext: RunnerContext = {};
Expand All @@ -73,8 +82,6 @@ async function main() {
...runners,
};

const command = args._[0];

const runner = effectiveRunners[command];
if (!runner) {
console.log(
Expand Down Expand Up @@ -134,3 +141,7 @@ function showHelp() {

console.log(``);
}

function printDeprecationNotice() {
console.log(`${chalk.red('!')} Deprecated. Use https://ton-blockchain.github.io/acton/ instead.`);
}
8 changes: 4 additions & 4 deletions src/cli/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ export const templateTypes: { name: string; value: string }[] = [
value: 'tolk-empty',
},
{
name: 'An empty contract (FunC)',
name: 'An empty contract (FunC, deprecated)',
value: 'func-empty',
},
{
name: 'An empty contract (Tact)',
name: 'An empty contract (Tact, deprecated)',
value: 'tact-empty',
},
{
name: 'A simple counter contract (Tolk)',
value: 'tolk-counter',
},
{
name: 'A simple counter contract (FunC)',
name: 'A simple counter contract (FunC, deprecated)',
value: 'func-counter',
},
{
name: 'A simple counter contract (Tact)',
name: 'A simple counter contract (Tact, deprecated)',
value: 'tact-counter',
},
];
Expand Down
Loading