TACT template has been moved to tact-lang/tact-template
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 contractThis project has ready to use TACT compiler, typescript + jest with ton-emulator, example how to do tests.
To launch your own contract you should:
-
Specify
contract.tactthat will be used inyarn build -
Specify
contract.spec.tstests for usingyarn testsfor launching local tests on your local IDE. Not necessary for deployment. -
Specify
contract.deploy.tsaccording to yourcontract.tactto 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. -
If you refactor template project to your own contract, you should update
tact.config.jsoncorrespondingly.
{
"projects": [{
"name": "sample",
"path": "./sources/contract.tact",
"output": "./sources/output"
}]
}Where:
path- is path to *.tact contract file it will be used whenyarn buildrun.output- is path to building files when yarn build run.yarn test&yarn deployuse these output files.
In this way you can use template project to play with Tact smart contract examples from examples. Good luck!🍀🚀
MIT