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?

  1. Dry Run

Dry Run Stateful / Stateless Contract Call

PreviousCreate Atomic TransferNextDry Run - Atomic Transfer

Last updated 4 years ago

Was this helpful?

Smart contracts can be debugged using two different methods.

The first is an interactive debugger that uses the tealdbg command-line tool to launch a debug session where the smart contract can be examined as the contract is being evaluated.

The second method is "Dry Run" which outputs a line by line result of the evaluation of the smart contract.

With Dry Run support in algoDEA plugin, you can "Dry Run" any stateful or stateless smart contract transaction. You can also "Dry Run" an Atomic Transfer with multiple stateless and stateful smart contract transactions.

For stateful contract dry run, you also need to provide the path to the source file.

All contract transaction UIs (stateful contract, stateless contract/ logic sig, Atomic Transfer) have a "Dry Run" button.

Dry Run - Stateful Smart Contract Transaction

While you try to dry run a stateful contract transaction, IDE opens an UI to capture additional inputs required for the dry run call. Some of the inputs like application Id, txn index are auto-populated. For a stateful contract call, you need to select the source teal file.

Dry Run Output file

Dry run output files are generated and stored under build/dryrun folder.

Dry Run - Stateful Contract Call Transaction
Dry Run - Logic Sig Txn
Dry Run - Input screen
Dry Run - Result file content