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 contract
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:
-
Specify
contract.tact
that will be used inyarn build
-
Specify
contract.spec.ts
tests for usingyarn tests
for launching local tests on your local IDE. Not necessary for deployment. -
Specify
contract.deploy.ts
according to yourcontract.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. -
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 whenyarn 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!🍀🚀
MIT