Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howardpen9/tact-test1
https://github.com/howardpen9/tact-test1
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/howardpen9/tact-test1
- Owner: howardpen9
- Created: 2023-08-18T07:29:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-18T08:19:53.000Z (over 1 year ago)
- Last Synced: 2023-08-18T10:39:25.859Z (over 1 year ago)
- Language: HTML
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TACT template project
This project has ready to use TACT compiler, typescript + jest with [tact-emulator](https://github.com/tact-lang/tact-emulator), example how to do tests.
```bash
yarn test # To test contract
yarn build # To build contract
yarn deploy # To deploy contract
```
## DeploymentTo deploy contract you should:
1) Specify `contract.tact` that will be used as entry point of your contract
2) Configure `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.If you renamed `contract.tact` to something else, you need to update `tact.config.json` correspondingly. For more information , see [Tact Documentation](https://docs.tact-lang.org/language/guides/config)
## TestingExample of contract tests are in `contract.spec.ts`. For more information about testing, see [Tact Documentation](https://docs.tact-lang.org/language/guides/debug)
To add new test files to contract you should create `*.spec.ts` files similar to template's one and they would be automatically included in testing.
## Licence
MIT