Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

ton-core/tact-template

Repository files navigation

TACT template has been moved to tact-lang/tact-template

⚠️ This repository marked as archived and no longer supported.

TACT template project

This project has ready to use TACT compiler, typescript + jest with ton-emulator, example how to do tests.

yarn test # To test contract
yarn build # To build contract
yarn deploy # To deploy contract

Overview

This project has ready to use TACT compiler, typescript + jest with ton-emulator, example how to do tests.

To launch your own contract you should:

  1. Specify contract.tact that will be used in yarn build

  2. Specify contract.spec.ts tests for using yarn tests for launching local tests on your local IDE. Not necessary for deployment.

  3. Specify contract.deploy.ts according to your contract.tact to generate a deployment link. In particular, it is necessary to correctly call the Init() function from the contract. From the beginning in the template project using Tonhub endpoint in the deeplink, that means you can deploy your smart contract via Tonhub/Sandbox application.

  4. If you refactor template project to your own contract, you should update tact.config.json correspondingly.

{
"projects": [{
    "name": "sample",
    "path": "./sources/contract.tact",
    "output": "./sources/output"
}]
}

Where:

  • path - is path to *.tact contract file it will be used when yarn build run.
  • output - is path to building files when yarn build run. yarn test & yarn deploy use these output files.

In this way you can use template project to play with Tact smart contract examples from examples. Good luck!🍀🚀

Tact documentation.

Licence

MIT

Releases

No releases published

Packages

No packages published