Best Practices
- Use boilerplate-stateful-smart-contract as a template for new smart-contracts.
- Use zero address to prevent future updates or deletion of a smart-contract.
Entry points
Deployment
- Use the compile endpoint of the Developer API to convert your TEAL source code into the byte string required by the SDKs.
- Use the
makeApplicationCreate
SDK method types to deploy the initial application.
Interact
- The user will first interact with the application using the
makeApplicationOptIn
method. After that user can callmakeApplicationNoOpTxn
method to execute logic within thehandle_noop
section of the approval program (see boilerplate template linked above). Calls to othermakeApplication*
type call methods will execute Update, Clear and CloseOut TEAL code section from the boilerplate template.