This project was generated from Acton's empty template. It gives you a
minimal but fully working contract starter with storage, one message, a wrapper,
tests, and a deployment script you can extend.
contracts/Empty.tolkimplements a small ownable contract.contracts/types.tolkdefines storage, messages, and starter error codes.wrappers/Empty.gen.tolkis the generated wrapper used by tests and scripts.tests/contract.test.tolkcovers deployment and ownership transfer.scripts/deploy.tolkdeploys the contract withdeployeras the initial owner and reads the owner back after deployment..github/workflows/contracts.ymlruns build, format, lint, and test checks on GitHub Actions.
acton buildacton testacton run deploy-emulation- Extend
contracts/types.tolkwith your storage and messages. - Update
contracts/Empty.tolkwith your contract logic. - Adjust
wrappers/Empty.gen.tolkto match the new ABI, or regenerate it withacton wrapper Empty. - Extend
tests/contract.test.tolkwith the scenarios you care about. - Update
scripts/deploy.tolkwith the storage and deployment flow you want.
- Create a local wallet named
deployerand fund it on testnet:
acton wallet new --name deployer --local --airdrop- Update the starter contract, wrapper, and deploy script for your use case.
- Run the deployment script against testnet:
acton script scripts/deploy.tolk --net testnetThe starter script waits for the transaction and then reads the deployed owner
back from testnet. You do not need a separate --fork-net for that check.
The generated Acton.toml also includes shortcut scripts:
acton run deploy-emulation
acton run deploy-testnetIf you hit rate limits while talking to Toncenter, copy .env.example to
.env and put TONCENTER_MAINNET_API_KEY or TONCENTER_TESTNET_API_KEY there,
depending on the network you use. Acton loads .env automatically.
The generated project includes .github/workflows/contracts.yml, which runs:
acton buildacton fmt --checkacton check --output-format githubacton test
- Quickstart: https://ton-blockchain.github.io/acton/docs/quickstart
- Testing: https://ton-blockchain.github.io/acton/docs/commands/test
- Scripts and deployment: https://ton-blockchain.github.io/acton/docs/commands/script
- Wrappers: https://ton-blockchain.github.io/acton/docs/commands/wrapper
- Wallets: https://ton-blockchain.github.io/acton/docs/commands/wallet