algoDEA
  • algoDEA - Algorand IntelliJ Plugin
  • Overview
  • Installation using JetBrains Plugin Repository
  • Installation - Manual
  • Algorand Node Configuration
  • Account Management
  • Algorand Project Structure
  • Compile TEAL Program
  • Import an existing project
  • Variables/Placeholders in TEAL program
  • Stateful Smart Contract
    • Create Project - Stateful Smart Contract
    • Stateful Smart Contract - Deploy
  • Multiple Stateful Smart Contract in a Project
  • Stateless Smart Contract
    • Create Project - Stateless Smart Contract
    • Stateless Smart Contract - Delegated Signature
  • Stateless Smart Contract - Contract Account
  • Algorand Standard Assets
    • Create, Manage & Transfer
  • Atomic Transfer
    • Create Atomic Transfer
  • Dry Run
    • Dry Run Stateful / Stateless Contract Call
    • Dry Run - Atomic Transfer
  • PyTeal
    • Configure Python SDK and PyTeal
  • Create PyTeal file
  • Create or Configure a Stateful Contract with PyTeal Programs
  • Compile PyTeal File
  • Debugger Support (Beta)
    • Overview
    • Debugger Configuration
    • Debug Stateless Contract
    • Debug Stateful Smart Contract
    • Debug Stateful Contract using Dry Run Dump file
    • Debug Atomic Transfer
  • Debug Atomic Transfer using Dry Run Dump file
Powered by GitBook
On this page

Was this helpful?

Create or Configure a Stateful Contract with PyTeal Programs

PreviousCreate PyTeal fileNextCompile PyTeal File

Last updated 4 years ago

Was this helpful?

You can create a new stateful contract configuration and set a PyTeal program as approval or clear state program for the stateful application.

To create a new stateful contract configuration,

  • Right click on the project > New > Stateful TEAL Configuration

  • Provide contract name, approval program and clear state program

  • Select PyTeal program for both approval and clearstate program

  • Notice that when you select a .py file for approval / clear state program, the value will be converted to *.teal file in the generated-src folder. That's because the pyteal file is compiled into TEAL file during pyteal compilation.