toronet-smart-contract-development
When to use
Use this skill when the user wants to:
- write a new smart contract for ToroNet
- adapt an existing Solidity contract for ToroNet
- get a ToroNet-specific review of a smart contract
- structure ownership or admin permissions for ToroNet contracts
- get a ToroNet-compatible Solidity example
- refactor a contract to match ToroNet conventions
Do not use this skill for frontend integration, SDK usage, or full deployment walkthroughs unless directly needed to complete a ToroNet smart contract task.
Instructions
- Treat ToroNet smart contract conventions as mandatory.
- Ensure all ToroNet-targeted contract examples use Solidity
0.8.18or below and inherit anOwnabletrait. - When the user does not provide an ownership implementation, use the default ToroNet-compatible
Ownablereference inreferences/REFERENCE.md. - Keep generated contracts practical, readable, and deployable, and clearly identify privileged functions and owner-only operations.
- When reviewing a contract, check ToroNet compatibility before suggesting improvements.
- When deployment is mentioned, briefly note that ToroNet contracts are commonly deployed through a web UI, the ToroNet SDK, or the
toronetdeploynpm package, but keep the focus on contract development unless the user asks for deployment details.
Default workflow
- Identify whether the task is writing, reviewing, explaining, or refactoring a contract.
- Check the Solidity version and adjust it to a ToroNet-compatible version if needed.
- Check whether the contract inherits
Ownable. - Add or adapt ownership controls where needed.
- Produce the contract, review, explanation, or refactor, and briefly note any ToroNet-specific issues, assumptions, or deployment-readiness concerns.
Checks
- Solidity version is
0.8.18or lower - contract inherits
Ownable - owner-only functions are clearly restricted
- admin flow is understandable
- contract structure is realistic for ToroNet deployment
- code avoids unnecessary complexity for the stated use case
See the reference guide for ToroNet conventions, the default Ownable implementation, and deployment notes.